XGBoost-Based Prediction of Family Resilience from Psychological Flexibility, Social Support, Family Cohesion, and Emotional Regulation
Keywords:
Family Resilience, XGBoost, Machine Learning, Psychological Flexibility, Social Support, Family Cohesion, Emotional RegulationAbstract
Objective: The present study aimed to predict family resilience based on psychological flexibility, social support, family cohesion, and emotional regulation using the XGBoost machine learning algorithm and to determine the relative importance of these predictors in explaining resilience outcomes among Canadian adults.
Methods and Materials: This cross-sectional predictive study was conducted among 812 adults residing in Canada. Participants were recruited through community organizations, family support centers, and online platforms using a stratified convenience sampling method. Data were collected using the Family Resilience Assessment Scale (FRAS), Acceptance and Action Questionnaire-II (AAQ-II), Multidimensional Scale of Perceived Social Support (MSPSS), Family Adaptability and Cohesion Evaluation Scales IV (FACES-IV), and Emotion Regulation Questionnaire (ERQ). Following data preprocessing and standardization procedures, the dataset was divided into training (80%) and testing (20%) subsets. An Extreme Gradient Boosting (XGBoost) model was developed and optimized using five-fold cross-validation and grid-search hyperparameter tuning. Model performance was evaluated using the coefficient of determination (R²), root mean square error (RMSE), mean absolute error (MAE), and mean squared error (MSE). Feature importance and SHAP (Shapley Additive Explanations) analyses were performed to determine the relative contribution of each predictor.
Findings: The XGBoost model demonstrated excellent predictive performance, achieving an R² of 0.867 on the testing dataset, indicating that 86.7% of the variance in family resilience was explained by the predictors. Family resilience was positively correlated with psychological flexibility (r = .68, p < .001), social support (r = .72, p < .001), family cohesion (r = .79, p < .001), and emotional regulation (r = .64, p < .001). Feature importance analysis revealed that family cohesion was the strongest predictor (34.8%), followed by social support (28.7%), psychological flexibility (21.5%), and emotional regulation (15.0%). SHAP analyses confirmed these findings and demonstrated that higher levels of each predictor contributed positively to resilience predictions, with family cohesion exerting the largest overall influence.
Conclusion: The findings indicate that family resilience can be predicted with high accuracy using psychological flexibility, social support, family cohesion, and emotional regulation. Family cohesion emerged as the most influential determinant, highlighting the critical role of strong family relationships in fostering adaptive functioning. The study demonstrates the utility of machine learning approaches, particularly XGBoost, for identifying key resilience factors and provides evidence supporting multidimensional models of family resilience that integrate individual, relational, and social protective resources.
Downloads
References
Brites, R., Brandão, T., Hipólito, J., Jiménez-Ros, A. M., & Nunes, O. (2023). Emotion Regulation, Resilience, and Mental Health: A Mediation Study With University Students in the Pandemic Context. Psychology in the Schools, 61(1), 304-328. https://doi.org/10.1002/pits.23055
Engström, A. H., Alvariza, A., Kuylenstierna, A., Wikman, A., & Ljungman, L. (2025). Navigating the Hardship Together: Factors Associated With Couple Relationship Functioning in Parents With Cancer Who Have Dependent Children. Psycho-Oncology, 34(8). https://doi.org/10.1002/pon.70245
Georgoulas‐Sherry, V. (2022). Understanding the Distinctions of Positive Constructs Resilience, Grit and Hardiness. American Journal of Medical and Clinical Sciences, 7(2). https://doi.org/10.33425/2832-4226/22006
Goldin, D., Maltseva, T., Scaccianoce, M., & Brenes, F. (2022). Holistic Psychosocial Approaches in the Care of Hispanic Victims of Trauma: An Overview. Journal of Holistic Nursing, 41(1), 7-16. https://doi.org/10.1177/08980101221083162
Im, H., Lee, S., Warsame, A. H., & Isse, M. (2025). Beyond Individual Coping: The Role of Social Capital in Community-Based Mental Health Support for Displaced Somali Youth. International journal of environmental research and public health, 22(5), 784. https://doi.org/10.3390/ijerph22050784
Kalra, G. K., Beauty, & Modi, K. (2025). Rethinking Contours of Family Through Diverse Lenses: Beyond the Conventional Context. Institutionalised Children Explorations and Beyond, 12(2), 239-251. https://doi.org/10.1177/23493003251364952
Kosić, R., Petrić, D., Vlašić-Cicvarić, I., & Kosec, T. (2025). Associations Between Parental Alexithymia and Family Dynamics in Autism Spectrum Disorder. Healthcare, 13(4), 373. https://doi.org/10.3390/healthcare13040373
Lie, S. Ø., Wisting, L., Stedal, K., Rø, Ø., & Friborg, O. (2023). Stressful Life Events and Resilience in Individuals With and Without a History of Eating Disorders: A Latent Class Analysis. Journal of eating disorders, 11(1). https://doi.org/10.1186/s40337-023-00907-8
Low, W. Y., Zhao, Y., Geetha, V., & Bono, S. A. (2025). Walter Patrick Memorial Lecture: Building Resilience in Families and Communities in Times of Crisis. Asia Pacific Journal of Public Health, 37(4), 361-365. https://doi.org/10.1177/10105395251340119
Luo, D., Foster, K., & White, K. (2025). Conceptualisation and Measurement of Resilience of Adults With Cancer: An Umbrella Review. Journal of Advanced Nursing, 81(10), 6095-6119. https://doi.org/10.1111/jan.16724
Magantor, J. (2024). Family Psychological Distress Among OFW Parents and Their Children in the Middle East: A Mixed Method Study. Asian Journal of Education and Social Studies, 50(11), 33-45. https://doi.org/10.9734/ajess/2024/v50i111633
Mohammadhosseini, M., & Schmid, S. (2025). Embodied Engagement: Fostering Caring Thinking in a Multimodal Singing-Based Learning Environment for Refugee Children. Frontiers in psychology, 16. https://doi.org/10.3389/fpsyg.2025.1602855
Parrott, E., Bernardino, A., Lomeli-Rodriguez, M., Burgess, R., Rahman, A., Direzkia, Y., & Joffé, H. (2023). Community Resilience After Disasters: Exploring Teacher, Caregiver and Student Conceptualisations in Indonesia. Sustainability, 16(1), 73. https://doi.org/10.3390/su16010073
Post, G. (2024). Resilient Parents; Resilient Kids: How Parental Self-Awareness Is Critical to Helping Smart Kids Thrive. Gifted Education International, 41(1), 92-111. https://doi.org/10.1177/02614294241274442
Restrepo, L. E. V., Hernández, G. J. B., & Astudillo, M. N. M. (2023). Socio-Family Factors Predictive of Adaptative Coping Post COVID-19 Pandemic in Nursing Students From a Private University. Investigación Y Educación en Enfermería, 41(2). https://doi.org/10.17533/udea.iee.v41n2e05
Roberts, C. L., & Symons, F. J. (2023). Self‐injurious Behavior in Individuals With Intellectual and Developmental Disabilities: An Interdisciplinary Family Systems Review. Journal of Family Theory & Review, 16(2), 329-351. https://doi.org/10.1111/jftr.12548
Sabah, A., Aljaberi, M. A., Hajji, J., Fang, C. Y., Lai, Y.-C., & Lin, C. Y. (2023). Family Communication as a Mediator Between Family Resilience and Family Functioning Under the Quarantine and COVID-19 Pandemic in Arabic Countries. Children, 10(11), 1742. https://doi.org/10.3390/children10111742
Sezgin, E. (2025). The Mediating Effect of Mindfulness on Adverse Childhood Experiences and Psychological Resilience in Turkish Female University Students. Frontiers in psychology, 16. https://doi.org/10.3389/fpsyg.2025.1528159
Shao, M., Xue, Y., Zhang, M., Zhou, H., Ma, B., Wang, K., Yang, Y., Yu, L., Chen, C., & Wang, T. (2024). Family Mutuality Enhances the Family Resilience of CRC Patients Through Positive Family Functioning. https://doi.org/10.21203/rs.3.rs-4793857/v1
Shen, Z., Fang, Y., Li, C., Luo, X., Cui, J., Liu, Y., & Hong, J. (2025). Family Resilience and Its Influencing Factors Among Patients With Lung Cancer Based on Double ABC‐X Theoretical Framework. Cancer Medicine, 14(8). https://doi.org/10.1002/cam4.70868
Silva, K., Amarneh, D., & Viana, A. G. (2024). Acculturative Stress Among Latino Youth. Advances in Psychiatry and Behavioral Health, 4(1), 199-210. https://doi.org/10.1016/j.ypsc.2024.05.014
Smith, N., Bostock, L., Barrett, E., Sandal, G. M., Jones, M. V., & Wuebker, R. (2023). Profiles of Resilient Psychosocial Function During Three Isolated Ski Expeditions in the High Arctic. Stress and Health, 40(3). https://doi.org/10.1002/smi.3331
Son, H.-J., & Park, S.-A. (2025). The Impact of an Agro-Healing Program on Family Resilience, Parental Stress, and Social Skills of Children With Developmental Disabilities. Heliyon, 11(4), e42389. https://doi.org/10.1016/j.heliyon.2025.e42389
Sousa, D., Ana Lúcia da Silva, F., Sequeira, J., Monteiro, M. J., Simões, M., & Castelo-Branco, M. (2024). Brief Report: Caregivers’ Well-Being in Families With Neurodevelopmental Disorders Members During COVID-19: Implications for Family Therapy. Frontiers in Psychiatry, 15. https://doi.org/10.3389/fpsyt.2024.1409294
Uditha, S., & Bulathwatta, A. (2025). Predictability of the Psychological Impact of the Economic Crisis on Family Functioning Within the Family Context in Sri Lanka. Frontiers in psychology, 16. https://doi.org/10.3389/fpsyg.2025.1587710
Xie, S., Chen, S., Xia, M., Chen, X., & Chi, X. (2025). Investigating the Interplay Among Family Climate, Mother–child Closeness, and Young Children’s Psychosocial Functioning: Integrating Large-Scale Surveys With Daily Diary Design. Translational Issues in Psychological Science. https://doi.org/10.1037/tps0000464
Yousefi, Z., Saadati, N., & Golparvar, M. (2024). The Impact of Emotional Intelligence and Resilience on Family Cohesion: Insights From Married Individuals. Journal of Psychosociological Research in Family and Culture, 16-22. https://doi.org/10.61838/kman.jprfc.2.1.4
Zanella, E., & Lee, E. (2022). Integrative Review on Psychological and Social Risk and Prevention Factors of Eating Disorders Including Anorexia Nervosa and Bulimia Nervosa: Seven Major Theories. Heliyon, 8(11), e11422. https://doi.org/10.1016/j.heliyon.2022.e11422
Zhu, Z. (2025). Family Resilience, Emotional Intelligence, and Non-Suicidal Self-Injury Among Chinese Adolescents With Mental Disorders: A Latent Variable Mediation Analysis. Frontiers in Psychiatry, 16. https://doi.org/10.3389/fpsyt.2025.1631266


