Background Suicidal behaviors among adolescents are a serious global public health concern and are closely linked to both mental health and everyday lifestyle behaviors. Suicidal ideation, planning, and attempts lie along a spectrum of increasing severity. However, how psychological distress and health-related behaviors interact to influence suicide risk is complex and not yet fully understood. This study aimed to identify key mental health and lifestyle factors associated with different stages of adolescent suicidal behaviors using interpretable machine learning methods. Methods Data were obtained from the 2021 Youth Risk Behavior Surveillance System (YRBS), a nationally representative survey of U.S. high school students. After data cleaning and multiple imputation, 16,946 adolescents aged 14–18 years were included in the analysis. Extreme Gradient Boosting (XGBoost) models were developed to predict suicidal ideation, suicide planning, and suicide attempts. Model performance was assessed using the area under the receiver operating characteristic curve (AUC) and related metrics. Feature importance was examined using gain-based measures, while SHapley Additive exPlanations (SHAP) and partial dependence plots were used to explore the direction, strength, and nonlinear effects of key predictors. Results All three XGBoost models showed satisfactory predictive performance. Mental health factors, particularly persistent feelings of sadness and self-rated mental health, were the strongest predictors across all stages of suicidal behaviors. Lifestyle behaviors, including sleep duration, physical activity, diet, screen time, and substance use, also contributed meaningfully to risk prediction, although their relative importance differed by outcome. SHAP analyses indicated that greater sadness and poorer mental health were strongly associated with higher suicide risk, whereas adequate sleep and higher levels of physical activity were associated with lower predicted risk. Substance use, including alcohol, cigarette, and marijuana use, played an important role in predicting suicide attempts than suicidal ideation or planning. Partial dependence analyses showed nonlinear and threshold effects, especially for sadness, mental health status, and sleep duration. Conclusion Mental health factors, especially persistent sadness and overall psychological well-being, were among the most prominent factors associated with suicidal behaviors among adolescents, while lifestyle behaviors showed important and stage-specific associations. Interpretable machine learning approaches help identify complex and nonlinear patterns associated with adolescent suicide risk and offer valuable insights to guide targeted, evidence-based prevention efforts.
No takes yet. Share an insight, caveat, or question.
Ding et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: