Related Experiment Video
Updated: Sep 9, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Longitudinal machine learning prediction of non-suicidal self-injury among Chinese adolescents: A prospective
Xinyu Guo1, Shuyi Liu2, Lihua Jiang3
1Department of Health Policy and Management, West China School of Public Health and West China Fourth Hospital, Sichuan University, Chengdu, China; Department of Applied Social Sciences, The Hong Kong Polytechnic University, Hung Hom, Hong Kong Special Administrative Region of China.
Background:
Non-suicidal self-injury (NSSI) is an important public health problem among adolescents, yet traditional prediction approaches yield limited accuracy. This study aims to develop and evaluate machine learning models for predicting NSSI and to examine the patterns of feature importance using longitudinal data.
Methods:
Data were obtained from the Chengdu Positive Child Development Cohort, which covers students from five primary and middle schools in China. The analysis utilized four waves of longitudinal data collected from 3,483 students over a period of 2.5 years. A progressive prediction framework with three prediction windows was constructed, and seven machine learning algorithms were compared. Five-fold cross-validation was used to ensure the robustness of performance evaluation. SMOTE-NC (Synthetic Minority Over-sampling Technique-Nominal Continuous) was used to address the class imbalance in the training set. Model performance was evaluated by area under the receiver operating characteristic curve (AUROC), accuracy, precision, recall, and F1 score. SHapley Additive exPlanations (SHAP) analysis was conducted to assess the models' interpretability.
Results:
Random Forests showed superior performance in all windows (AUROC = 0.843, 0.855, and 0.853, respectively). The top predictive risk factors included suicide-related behaviors, depression, delinquent behaviors, and anxiety, while spirituality, emotional competence, life satisfaction, and empathy emerged as protective factors.
Conclusion:
The progressive prediction framework achieved robust longitudinal NSSI prediction. Positive child development factors, particularly spirituality and emotional competence, emerged as key protective factors against NSSI risk. These model-interpretable results provide an evidence-based foundation for developing targeted prevention strategies and early intervention programs.
Related Concept Videos
Longitudinal Research
Longitudinal Studies

