Identifying Non-Linear Predictors of Suicidal Ideation in Hospitalized Youth using SHAP-explained Extreme Gradient Boosting

Authors

    Petrus Amutenya * Department of Psychology, University of Namibia, Windhoek, Namibia pamutenya@unam.na
    Sofía Alvarado Department of Clinical Psychology, Universidad de San Carlos de Guatemala, Guatemala City, Guatemala
    Manuel Vaultier Department of Educational Foundations, University of Nigeria, Nsukka, Nigeria
https://doi.org/10.61838/

Keywords:

Suicidal Ideation, Machine Learning, Adolescent Psychiatry, Hospitalized Youth

Abstract

Objective: The objective of this study is to identify and interpret the non-linear clinical and demographic predictors of suicidal ideation among hospitalized youth using a SHAP-explained Extreme Gradient Boosting predictive model.

Methods and Materials: A retrospective cross-sectional study was conducted using the electronic medical records of hospitalized youths aged to years in Nigeria. Clinical and demographic data, including evaluations from the Columbia-Suicide Severity Rating Scale, Patient Health Questionnaire (PHQ-9), Generalized Anxiety Disorder scale (GAD-7), and Adverse Childhood Experiences (ACE) count, were extracted. An Extreme Gradient Boosting (XGBoost) machine learning algorithm was trained to predict the presence of suicidal ideation. To resolve the “black-box” nature of the algorithm, the SHapley Additive exPlanations (SHAP) framework was utilized to interpret model outputs, rank global feature importance, and map complex, non-linear risk thresholds via dependence plots.

Findings: The overall prevalence of suicidal ideation in the clinical cohort was ( ). The XGBoost predictive model demonstrated excellent diagnostic performance on the independent test set, achieving an accuracy of and an Area Under the Curve (AUC) of . SHAP analysis identified depressive severity as the most dominant global predictor, revealing a distinct non-linear threshold where predictive risk exponentially spiked once a PHQ-9 score reached exactly . The cumulative burden of trauma emerged as the second strongest predictor, with or more adverse childhood experiences significantly amplifying risk, specifically interacting with older adolescence (ages to ). Furthermore, anxiety demonstrated a bimodal, non-monotonic risk curve, while a history of non-suicidal self-injury within the past months formed a steep logarithmic risk trajectory.

Conclusion: Traditional linear clinical assessments fail to capture the complex, exponential tipping points of youth suicide risk. Integrating SHAP-explained XGBoost algorithms into psychiatric practice can uncover critical non-linear thresholds.

Downloads

Download data is not yet available.

References

Boylan, K., Duncan, L., Wang, L., Manion, I., Bennett, K., Colman, I., & Georgiades, K. (2025). Prevalence and Correlates of Non-Suicidal Self-Injuring Youth Who Do Not Endorse Suicidal Ideation: Prévalence Et Corrélation De L’automutilation Non Suicidaire Chez Des Jeunes Qui N’ont Pas D’idées Suicidaires. The Canadian Journal of Psychiatry, 70(7), 574-582. https://doi.org/10.1177/07067437251337609

Chung, K., & Park, J. Y. (2025). Identifying Subgroups at Risk for Major Depression and Suicidal Ideation via Mobile App–Based Ecological Momentary Assessment: A Cluster Analysis (Preprint). https://doi.org/10.2196/preprints.80332

Daneshvar, S., Bytamar, J. M., Zeraatpisheh, Z., Zand, S., Sahraian, A., & Jobson, L. (2025). Adverse childhood experiences and suicidal ideation in patients with major depressive disorder: Investigating the mediating role of emotional reactivity and probabilistic and reinforcement learning. BMC psychology, 13(1), 11. https://doi.org/10.1186/s40359-024-02339-8

Fearon, D., Luther, A. W., Browne, D. T., Colman, I., Dubin, J. A., Duncan, L., & Ferro, M. A. (2025). Morbidity, Suicidal Ideation and Suicide Attempts Among Youth in Canada: A Nationally-Representative Study: Morbidité, Idées Suicidaires Et Tentatives De Suicide Chez Les Jeunes Au Canada : Une Étude Représentative À L’échelle Nationale. The Canadian Journal of Psychiatry. https://doi.org/10.1177/07067437251343292

Hamid, M., & Dasht Bozorgi, Z. (2025). The Correlation of Loneliness and Rumination with Suicidal Ideation in Female Students: The Mediating Role of Perceived Parenting Styles. International Journal of School Health, 12(2), 67-76. https://intjsh.sums.ac.ir/article_50720.html

Hu, C., Huang, W., & Zhang, W. (2025). Childhood emotional abuse and suicidal ideation in college students: exploring the mediating role of alexithymia and the moderating effect of physical exercise. Frontiers in Psychiatry, 16, 1660164. https://doi.org/10.3389/fpsyt.2025.1660164

Jiao, Y., & Zhang, W. (2025). The efficacy of cognitive behavioral therapy on reducing suicidal ideation and deliberate self-harm: A systematic review. Frontiers in psychology, 16, 1672957. https://doi.org/10.3389/fpsyg.2025.1672957

Lee, S.-H., & Bae, S. M. (2025). The Effect of Anhedonia on Suicidal Ideation: The Moderated Mediation Effect of Emotional Intelligence Through Loneliness. Psychiatry Investigation, 22(5), 591-601. https://doi.org/10.30773/pi.2024.0388

Liu, Y., Tong, Y., Huang, G., & et al. (2025). Physical exercise moderates the mediating effect of depressive symptoms between sleep quality and suicidal ideation among college students. Scientific reports, 15, 21925. https://doi.org/10.1038/s41598-025-07767-z

Olié, E., & Courtet, P. (2025). Acceptance and commitment therapy reduces perceived stress and suicidal ideation in patients with a history of suicide attempts: A randomized controlled trial. Psychiatry research, 320, 114100. https://doi.org/10.1016/j.psychres.2023.114100

Renaud‐Charest, O., Gold, A. S., Mok, É., Kichler, J., Nakhla, M., & Li, P. (2024). Suicidal Ideation, Suicide Attempts, and Suicide Deaths in Adolescents and Young Adults With Type 1 Diabetes: A Systematic Review and Meta-Analysis. Diabetes Care, 47(7), 1227-1237. https://doi.org/10.2337/dc24-0411

Riera-Serra, P., Navarra-Ventura, G., Castro, A., Gili, M., Salazar-Cedillo, A., Ricci-Cabello, I., & Roca, M. (2024). Clinical predictors of suicidal ideation, suicide attempts and suicide death in depressive disorder: a systematic review and meta-analysis. European Archives of Psychiatry and Clinical Neuroscience, 274(7), 1543-1563. https://doi.org/10.1007/s00406-023-01716-5

Seah, T. H. S., Eckstrand, K., Gupta, T., Jensen, L. W. C., Brodnick, Z. M., Horter, C., Gregory, A. M., Franzen, P. L., Marshal, M. P., & Forbes, E. E. (2025). Sleep Disturbance and Social Reward Processing as Characteristics Linking Minority Victimization and Suicidal Ideation in Youth. Frontiers in Neuroscience, 18. https://doi.org/10.3389/fnins.2024.1475097

Shahrokh Afshari, I., Savabi Niri, V., Fadaei Goke, F., Bagheri Sheykhangafshe, F., & Esrafilian, F. (2025). The Effectiveness of Dialectical Behavior Therapy in Reducing Fear of Compassion and Self-Concealment while Enhancing Emotion Efficacy in Female Adolescents with Suicidal Ideation. Health Dev J.

Shu, Z., Chen, S., Chen, H., Chen, X., Tang, H., Zhou, J., Tian, Y., Xiao-ping, W., & Zhou, J.-S. (2024). The Effects of Subjective Family Status and Subjective School Status on Depression and Suicidal Ideation Among Adolescents: The Role of Anxiety and Psychological Resilience. Peerj, 12, e18225. https://doi.org/10.7717/peerj.18225

Tapeinos, A., Karakasidou, E., & Stalikas, A. (2024). The Mediating Role of Self-Compassion Between Suicidal Ideation and Gender Role in Adolescents. The European Journal of Counselling Psychology. https://doi.org/10.46853/001c.120186

Tynes, B. M., Maxie-Moreman, A., Hoang, T.-M. H., Willis, H. A., & English, D. (2024). Online Racial Discrimination, Suicidal Ideation, and Traumatic Stress in a National Sample of Black Adolescents. JAMA Psychiatry, 81(3), 312. https://doi.org/10.1001/jamapsychiatry.2023.4961

Vashaghani Farahani, N., & Safari, H. (2025). Predicting suicidal ideation based on brain-behavioral systems with the mediating role of emotion regulation in depressed patients. Rooyesh-e-Ravanshenasi, 13(12), 177-186.

Villacura-Herrera, C., Ávalos-Tejeda, M., Gaete, J., Robinson, J., & Núñez, D. (2025). The underlying dynamics of a suicidal ideation latent network model: The role of hopelessness, psychopathology, emotion regulation, and behavioral coping skills in adolescents from the general population. Journal of affective disorders, 379, 540-548. https://doi.org/10.1016/j.jad.2025.02.101

Wang, W., Volkow, N. D., Berger, N. A., Davis, P. B., Kaelber, D. C., & Xu, R. (2024). Association of semaglutide with risk of suicidal ideation in a real-world cohort. Nature medicine, 30(1), 168-176. https://doi.org/10.1038/s41591-023-02672-2

Weatherford, J. V., Ruork, A. K., Yin, Q., Lopez, A. C., & Rizvi, S. L. (2024). Shame, suicidal ideation, and urges for non‐suicidal self‐injury among individuals with borderline personality disorder receiving dialectical behavior therapy: The mediating role of anger. Suicide and Life‐Threatening Behavior. https://onlinelibrary.wiley.com/doi/epdf/10.1111/sltb.13045

Wu, J., Wang, C., Zheng, Y., Han, X., Guo, J., Cui, Y., Hu, J., Lin, M. P., & You, J. (2025). Intolerance of Uncertainty Predicts Suicidal Ideation Among Adolescents Through Maladaptive Cognitive Emotion Regulation Strategies and Psychache. Suicide and Life-Threatening Behavior, 55(2). https://doi.org/10.1111/sltb.70001

Wu, Y., Guo, Z., Zhang, D., Wang, Y., & Wang, S. (2024). Sleep Quality and Suicidal Ideation in Adolescent Depression: A Chain Mediation Effect of Perceived Social Support and Resilience. Clinical Psychology & Psychotherapy, 31(2). https://doi.org/10.1002/cpp.2990

Xiao, Y. (2025). Addictive Screen Use Trajectories and Suicidal Behaviors, Suicidal Ideation, and Mental Health in US Youths. JAMA. https://doi.org/10.1001/jama.2025.7829

Ye, Y., Chen, B., Zhen, R., Li, Y., Liu, Z., & Zhou, X. (2024). Childhood maltreatment patterns and suicidal ideation: mediating roles of depression, hope, and expressive suppression. European Child & Adolescent Psychiatry, 33(11), 3951-3964. https://doi.org/10.1007/s00787-024-02442-6

Zeinal Langroudi, Z. (2024). Effectiveness of Self-Compassion-Based Training on Reducing Suicidal Thoughts and Death Anxiety in Chronic Pulmonary Patients. Mental Health and Lifestyle Journal, 2(4), 1-7. https://doi.org/10.61838/mhlj.2.4.1

Downloads

Additional Files

Published

2026-03-10

Submitted

2025-11-11

Revised

2026-01-28

Accepted

2026-02-02

How to Cite

Amutenya, P., Alvarado, S., & Vaultier , M. . (2026). Identifying Non-Linear Predictors of Suicidal Ideation in Hospitalized Youth using SHAP-explained Extreme Gradient Boosting. Journal of Adolescent and Youth Psychological Studies (JAYPS), 7(3), 1-11. https://doi.org/10.61838/