Construction and Verification of a Risk Prediction Model for Suicidal Ideation in Patients With Bipolar Disorder: A Machine Learning Analysis
Open Access
- 23 April 2026
- journal article
- Published by IMR Press in ALPHA PSYCHIATRY
- Vol. 27 (2)
Abstract
Background: Bipolar disorder (BD) is closely associated with suicidal ideation (SI). The development of an effective prediction model for SI in BD patients could facilitate early risk identification in high-risk groups. Methods: This study employed a cross-sectional design. Patients with BD were enrolled from three tertiary hospitals between July 2021 and July 2024. All participants were randomly allocated to training (n = 204) or testing (n = 88) sets at a 7:3 ratio. A hybrid feature selection strategy integrating the data-driven Boruta algorithm with clinical expertise was used to identify potential predictors of SI. Nine machine learning algorithms were applied to the training set to construct SI prediction models. The optimal model was selected through comprehensive evaluation of the area under the receiver operating characteristic curve (AUC), F1 score, balanced accuracy, sensitivity, and other indicators. SHapley Additive exPlanations (SHAP) analysis was used to rank and interpret the importance of features in the best-performing model and to assess their contributions to SI. Results: A total of 292 patients with BD were analyzed, of whom 149 (51.03%) reported SI during the past week. Among the nine models, the random forest (RF) model demonstrated superior predictive performance, with an AUC of 0.915 (95% CI: 0.850–0.965), a balanced accuracy of 0.818, a sensitivity of 0.891, a specificity of 0.833, a precision of 0.826, a average precision of 0.922, an F1 score of 0.860, and a Matthews correlation coefficient of 0.704. The SHAP analysis revealed that quality of life was the most influential predictor, followed by the number of depressive episodes, history of suicide attempts, cognitive functioning, and emotional abuse in childhood trauma. Conclusions: RF-based models can effectively predict SI in BD patients and inform clinically targeted interventions.Keywords
Funding Information
- Postdoctoral Fellowship Program of CPSF (GZC20242135)
- Fujian Province Science and Technology Project (2025Y9768)
- Special Funding for Postdoctoral Research Projects of Chongqing (2023CQBSHTB3107)
- Nursing Collaborative Innovation, Chongqing Medical University (20240202)
This publication has 51 references indexed in Scilit:
- Predicting Suicidal Ideation Among Youths With Autism Spectrum Disorder: An Advanced Machine Learning StudyClinical Psychology & Psychotherapy, 2025
- Serum BDNF, depressive symptoms, sleep quality, and cognitive function: a study on their impact and predictive value for suicidal ideation in bipolar depressive disorder patientsEuropean Archives of Psychiatry and Clinical Neuroscience, 2025
- Identifying suicidal ideation in Chinese higher vocational students using machine learning: a cross-sectional surveyEuropean Archives of Psychiatry and Clinical Neuroscience, 2025
- Suicidal Ideation in Bipolar Disorder: The Relation with Clinical and Sociodemographic VariablesPsychiatric Quarterly, 2021
- The microbiota-gut-brain axis and bipolar disorder2021
- Bipolar Disorder and Suicide: a ReviewCurrent Psychiatry Reports, 2020
- Prediction Models for Suicide Attempts and DeathsJAMA Psychiatry, 2019
- Reliability and validity of 12-item Short-Form health survey (SF-12) for the health status of Chinese community elderly population in Xujiahui district of ShanghaiAging Clinical and Experimental Research, 2015
- Suicide attempts are associated with worse quality of life in patients with bipolar disorder type IComprehensive Psychiatry, 2012
- Preferential association between childhood emotional abuse and bipolar disorderJournal of Traumatic Stress, 2010