Building an early warning model for the risk of suicide attempt in people with depression based on machine learning: a single-centre study
Mian Zhang, Wen Liu, Wenzhi Pei, Long Chen, Min Pan, Anzhen Wang, Boyu Zhang, Xialong Cheng,
Anhui Medical University
Key points
From the paper's conclusion- Conclusion This study successfully constructed an early warning model for the risk of suicide attempt in patients with depression based on multimodal data.
Abstract
Background Attempted suicide is one of the most serious clinical consequences for patients with depression, and early identification of high-risk individuals is crucial for preventing suicide deaths. Traditional clinical assessment often relies on subjective judgment, lacking objective biological markers and multi-dimensional data integration analysis. Objective This study aims to use machine learning algorithms to integrate demographic characteristics, clinical symptom scales, and blood biochemical indicators to construct and validate an early warning model for the risk of attempted suicide in patients with depression, and to explore key predictors. Methods A total of 1,229 patients with depression were included in this study, including 578 cases in the suicide attempt group and 651 cases in the non-suicide attempt group. Demographic information, Hamilton Depression Scale (HAMD) sub-item scores, and biochemical indicators such as thyroid function, liver and kidney function, blood lipids, and electrolytes were collected. Predictive models were constructed using six machine learning algorithms: Random Forest (RF), Extreme Gradient Boost (XGBoost), Support Vector machine (SVM), multi-layer perceptron (MLP), logistic regression (LR), and Decision tree (DT). Model performance was evaluated by area (AUC) under the receiver operating characteristic curve (ROC), accuracy, sensitivity, specificity, and F1 score, and feature importance was explained by SHAP (Shapley Additive exPlanations) values. Results Univariate analysis showed significant differences (P<0.05) between the two groups in terms of gender, education level, free triiodothyronine (FT3), albumin, triglycerides, blood potassium, social dysfunction, cognitive impairment, sense of hopelessness, and mental anxiety. In the comparison of model performance, random forest (RF) performed the best, with an AUC of 0.675 (95% CI: 0.621-0.727), outperforming other models. Feature importance analysis indicated that age of onset (AOO), body mass index (BMI), free thyroxine (FT3), and uric acid (UA) were core predictor variables consistent across models. The SHAP analysis further revealed that advanced age, low education level, high mental symptom markers, high cognitive impairment scores, and high uric acid levels significantly increased the risk of attempted suicide, while higher FT3 levels might have a protective effect. Conclusion This study successfully constructed an early warning model for the risk of suicide attempt in patients with depression based on multimodal data. The random forest model demonstrated good predictive performance. The study found that in addition to traditional psychosocial factors, metabolic indicators such as BMI and uric acid and thyroid function (FT3) are also important risk predictors, providing a new biological perspective for early clinical intervention.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Multidimensional Suicide Risk Assessment with Machine Learning using Electronic Health RecordsarXiv · 2026
- Predicting suicide attempts in people with autism and co-morbid mood or psychotic disordersmedRxiv · 2026
- Artificial intelligence approach for predicting suicide-related behaviour in emergency departmentsScientific Reports · 2026
- A machine learning framework for the multi-class prediction of suicide attempt risk.Acta psychologica · 2026
- Machine learning-based identification of depression in older patients with type 2 diabetes mellitus: A multicenter retrospective study.Science progress · 2026
- Predictive machine learning algorithms for depression and anxiety disorders in six cancer types: a comprehensive multi-center population-based studyJournal of the Formosan Medical Association · 2026