EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Machine learning models for detecting suicidal ideation in Chinese in-patients with major depressive disorder: A single-centre retrospective study

Changyan Gu, Hongxin Zheng, Yu Xie, Min Pan, Xulai Zhang, Anzhen Wang, Juan Chen, Xialong Cheng

Journal of Affective Disorders · 2026-08 · 406 · 121679

DOI: 10.1016/j.jad.2026.121679 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Affective Disorders, 2026-08. Verfasst von Changyan Gu und 7 weiteren Autor:innen. Beteiligte Einrichtung: Department of Affiliated Psychological Hospital of Anhui Medical University, Hefei, China; Anhui Mental Health Center, Hefei, China; Hefei Fourth Peo…. Hauptthemen laut MEDLINE: Major Depressive Disorder, Suicidal Ideation, Machine Learning. Die Arbeit nennt 41 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Suicide claims >720,000 lives annually; major depressive disorder (MDD) carries the highest population-attributable risk. Suicidal ideation (SI), the most proximal modifiable predictor of attempt,is poorly captured by subjective scales. We developed and internally validated machine-learning models to detect SI in Chinese MDD in-patients using routine electronic medical records. PURPOSE: This study aimed to develop and internally validate machine-learning (ML) models that exploit routine electronic medical record (EMR) data to identify recent SI in Chinese in-patients with MDD. PATIENTS AND METHODS: A retrospective cohort of 721 in-patients with major depressive disorder (MDD), including 399 with suicidal ideation (SI-positive), was recruited from the Fourth People's Hospital of Hefei between January 2020 and August 2023. The dataset was stratified into training (70%) and test (30%) sets. All preprocessing steps (median imputation and Z-score normalization) and Boruta feature selection were performed exclusively on the training set using R software (version 4.4.2), with multicollinearity removed for variables with a variance inflation factor (VIF) > 5 or a pairwise Pearson correlation coefficient |r| > 0.75. Six machine learning algorithms-random forest (RF), logistic regression (LR), LightGBM, support vector machine (SVM), K-nearest neighbor (KNN), and XGBoost-were trained using GridSearchCV combined with 10-fold stratified cross-validation, with model fine-tuning via the class_weight = 'balanced' parameter. Model performance was evaluated on the independent test set using multiple metrics, including the area under the receiver operating characteristic curve (AUC), area under the precision-recall curve (PR-AUC), accuracy, sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV). SHAP analysis, implemented in Python (version 3.12), was used to enhance model interpretability. Stratified subgroup analysis (stratified by sex and age) and sensitivity analysis (comparing the optimal RF model with the traditional LR baseline model via DeLong's test) were conducted to verify the robustness and superiority of the proposed model. RESULTS: Random Forest achieved the best discrimination (AUC 0.857) and maintained stable discrimination across sexes (AUC = 0.843 in females and 0.822 in males), demonstrating higher sensitivity in females (0.883) and higher specificity in males (0.900).Top risk features: Compared with SI-negative patients, SI-positive patients were predominantly male (74.4% vs. 53.7%), married (80.7% vs. 63.4%), and had a lower educational level (83.7% vs. 29.5% without higher education). Furthermore, both their current age and age at depression onset were significantly greater (all P < 0.001). CONCLUSION: ML models, especially Random Forest, can effectively identify recent SI risk in Chinese MDD patients using readily available clinical data.

Schlagwörter

MeSH-Schlagwörter (MEDLINE)

Major Depressive DisorderSuicidal IdeationMachine LearningHumansRetrospective StudiesMaleChinaFemaleAdultPredictive Learning ModelsRandom ForestBoosting Machine Learning AlgorithmsClassification AlgorithmsMiddle AgedElectronic Health RecordsPrediction AlgorithmsSupport Vector MachineEast Asian People

Stichwörter der Autor:innen

Detection modelsMachine LearningMajor depressive disorderSuicidal ideation

Autor:innen und Institutionen

  • Department of Affiliated Psychological Hospital of Anhui Medical University, Hefei, China; Anhui Mental Health Center, Hefei, China; Hefei Fourth People's Hospital, Hefei, China.
  • School of Educational Science, Anhui Normal University, Wuhu, China.
  • Department of Affiliated Psychological Hospital of Anhui Medical University, Hefei, China; Anhui Mental Health Center, Hefei, China; Hefei Fourth People's Hospital, Hefei, China. Electronic address: xialongcheng2023@163…

Zitieren

APA

Gu, C., Zheng, H., Xie, Y., Pan, M., Zhang, X., Wang, A., Chen, J., & Cheng, X. (2026). Machine learning models for detecting suicidal ideation in Chinese in-patients with major depressive disorder: A single-centre retrospective study. Journal of Affective Disorders, 406, 121679. https://doi.org/10.1016/j.jad.2026.121679

Vancouver

Gu C, Zheng H, Xie Y, Pan M, Zhang X, Wang A, et al. Machine learning models for detecting suicidal ideation in Chinese in-patients with major depressive disorder: A single-centre retrospective study. Journal of Affective Disorders. 2026;406:121679. doi:10.1016/j.jad.2026.121679

BibTeX
@article{Gu2026,
  author = {Gu, Changyan and Zheng, Hongxin and Xie, Yu and Pan, Min and Zhang, Xulai and Wang, Anzhen and Chen, Juan and Cheng, Xialong},
  title = {Machine learning models for detecting suicidal ideation in Chinese in-patients with major depressive disorder: A single-centre retrospective study},
  journal = {Journal of Affective Disorders},
  year = {2026},
  volume = {406},
  pages = {121679},
  doi = {10.1016/j.jad.2026.121679}
}
Kostenlos starten →