Tilbage til forskningsbiblioteket
Original publikation
Opbygning og validering af en risikoprediktionsmodel for suicidal ideation hos patienter med bipolar lidelse: En maskinlæringsanalyse
Studiet undersøger, hvordan man kan udvikle en model til at forudsige suicidal ideation hos personer med bipolar lidelse. Formålet er at identificere højrisikogrupper tidligt ved hjælp af maskinlæring.
Titel og resumé er skrevet på dansk med AI ud fra den originale publikation. Originalteksten står nedenfor.
Luo X, Lin X, Zhao Q, Mu S, Yu X, Zhang C, Lin D, Zhou T, Shui Q. · Alpha psychiatry · 2026
AI-billedeCC BY 4.0 · © 2026 The Author(s). Published by IMR Press.
Teksten oversættes automatisk og kan indeholde fejl. Originalteksten på engelsk er den gældende. Oversættelsen er ikke medicinsk rådgivning.
Construction and Verification of a Risk Prediction Model for Suicidal Ideation in Patients With Bipolar Disorder: A Machine Learning Analysis
Original dokumenttekst
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.
Main Points
1. This cross-sectional study developed and compared nine machine learning models to predict suicidal ideation in 292 patients with bipolar disorder.
2. The random forest model demonstrated excellent predictive performance (area under the curve (AUC): 0.915) for identifying high-suicide-risk bipolar patients.
3. Quality of life emerged as the most significant predictor, followed by the number of depressive episodes, a history of suicide attempts, cognitive functioning (both subjective complaints and objective performance), and emotional abuse in childhood trauma.
1. Introduction
Suicide, defined as death caused by intentional self-directed harm, remains a leading cause of mortality worldwide, accounting for more than 700,000 deaths annually [1]. Suicidal ideation (SI), a precursor to suicidal behavior, involves self-reported inclinations toward self-harm without preparatory actions [2]. Recognized as the nascent phase in the progression toward suicide, SI is deemed a prerequisite for suicidal behavior and serves as a key predictor of future suicidal attempts (SAs), necessitating early intervention [3]. The risk of suicide is extraordinarily high among patients diagnosed with bipolar disorder (BD). Indeed, among psychiatric disorders, BD is linked to the highest suicide rates [4, 5, 6]. This risk is estimated to be 30–60 times greater than that observed in the general population [4, 5, 6]. Studies indicate that approximately 30%–50% of adult patients with BD attempt suicide, and approximately 15%–20% ultimately die by suicide [4, 5, 6]. SI is prevalent in patients with BD and appears to be a risk factor for completed suicide. Approximately 59% of patients with BD report SI, a proportion that is 20–30 times greater than that in the general population [7]. However, some studies conflate SI with SAs, limiting its clinical utility [8]. This conflation obscures distinct intervention pathways. Therefore, precisely identifying and addressing the risk factors for SI specifically among patients with BD are critical public health priorities for targeted prevention and intervention before suicidal behaviors escalate.
Prior studies have identified multiple risk factors for SI in patients with BD, such as a history of SAs, younger age, younger age at onset of illness, more severe depressive or manic symptoms, BD type II/nos, higher levels of insight and impulsiveness, concurrent hopelessness, a history of childhood trauma, neurocognitive dysfunction, functional impairment, a poor or dysfunctional family environment, and low psychological resilience, social support and quality of life (QoL) [9, 10, 11, 12, 13, 14, 15]. Crucially, for patients with BD, a previous SAs can powerfully predict future SI [13, 15], with 40% of suicide deaths occurring subsequent to such an attempt [15]. The risk of SI is particularly pronounced among younger patients with BD, especially within the first few years following the onset of the illness [15]. Aaltonen et al. [12] reported that younger age, severe depressive symptoms, BD type II/nos, hopelessness, and childhood physical abuse can independently predict SI in individuals with BD. Moreover, other studies have demonstrated that compared with manic and hypomanic phases, mixed and depressive episodes of BD are associated with a higher likelihood of SI [16]. Our previous research revealed that depressive symptoms and cognitive functioning are predictors of SI in patients with BD [14]. Furthermore, adverse family dynamics, such as excessively expressed emotions, reduced cohesion, and increased conflict, are correlated with an elevated risk of SI and SAs [10]. Notably, SI can mediate the relationship between family and psychosocial functioning [9]. Given the complex interplay among these risk factors for SI in patients with BD, the development of clinically actionable prediction tools is critical for enabling early interventions to reduce preventable suicide deaths.
Although existing suicide prediction models have achieved acceptable classification accuracy, their predictive utility remains constrained by methodological challenges. Traditional approaches often rely on univariate screening followed by logistic regression, which risk oversimplifying the complex, interactive nature of psychopathological data. These methods may introduce multicollinearity or overfitting while failing to capture the nonlinear dynamics inherent in high-dimensional clinical datasets [17]. Furthermore, they typically lack the ability to quantify the individual contribution of each risk factor to the outcome. Consequently, advanced analytical techniques that can more effectively integrate these multifaceted predictors are needed to develop robust clinical prediction tools. Machine learning (ML) is expected to address these constraints by algorithmically detecting multidimensional patterns within high-dimensional data [18]. By circumventing linearity assumptions and automatic feature weighting, ML techniques identify clinically significant variables while enhancing predictive accuracy, offering a methodological advance for SI risk modeling [18].
ML has emerged as a highly promising tool in psychiatric research because of its robust ability to integrate multidimensional predictors and classify outcomes with heightened precision [19]. Ensemble methods and deep learning architectures model complex nonlinear interactions and adapt to subtle data variability within high-dimensional clinical-behavioral data by capturing patterns eluding conventional approaches [20]. In addition, automated feature selection and scalable pattern recognition can efficiently address the complex risk factors associated with suicidality [17]. Furthermore, ML natively handles datasets comprising mixed feature types (continuous and categorical), which aligns with our predictor set comprising scales, counts, and binary indicators. The ensemble structure of methods such as Random Forest (RF), built on bagging and random feature selection, further confers robustness to noise and missing values. These techniques not only increase the precision of prediction models but also generate clinically actionable insights to guide targeted interventions and personalized health care.
ML models have been applied to predict SI or SAs in diverse populations. For example, Deng et al. (2025) [21] constructed risk prediction models for SAs in patients with mood disorders using the RF method, which exhibited good discriminant ability, stability, and calibration. In addition, ML algorithms have been utilized to predict SI among university students in Bangladesh (with more than 90% accuracy) [22] and among youth with autism spectrum disorder [23], demonstrating the potential of data-driven approaches for informing precision prevention strategies and guiding tailored support for high-risk subgroups.
To the best of our knowledge, research using ML models to predict SI among patients with BD is nearly nonexistent. Thus, this study aimed to develop ML-based prediction models for SI through multidimensional assessments of psychiatric, psychological, and sociodemographic variables in patients with BD.
2. Materials and Methods
2.1 Participants
This study used a cross-sectional design. The reporting of this study follows the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) guidelines for cross-sectional studies, for STROBE checklist see Supplementary Material. Patients with BD (aged 18–60 years) were recruited through convenience sampling from the psychiatric departments of three tertiary hospitals between July 2021 and July 2024. The sample size was determined based on the events per variable (EPV) criterion, with a minimum of 10 events per predictor variable, requiring at least 140 participants with SI. The diagnosis of BD was rigorously determined by two psychiatrists using the Structured Clinical Interview for DSM-V Axis I Disorders, Clinical version, along with the 17-item Hamilton Depression Rating Scale (HDRS-17) [24] and the Young Mania Rating Scale (YMRS) [25]. All patients received pharmacological treatment, with valproate, lithium, and antipsychotics representing the most commonly prescribed medications. All the participants had the ability to understand and read Chinese, and cooperate in completing the relevant tests.
Patients were excluded for any of the following: pregnancy/lactation; current severe depressive/manic episodes (HDRS-17 ≥24 or YMRS ≥20) or active psychotic symptoms that impeded testing; severe physical/neurological disorders (e.g., epilepsy, brain injury); history of head trauma with loss of consciousness >5 minutes; color blindness/uncorrected visual impairment; electroconvulsive therapy within six months; substance/alcohol abuse or dependence within one year (as per DSM-V criteria); intellectual disability (Wechsler Adult Intelligence Scale score <70); or participation in other interventional trials within three months prior to enrollment.
2.2 Assessments
In this study, multiple patient characteristics, such as sociodemographic and clinical indicators, SI within the past week, cognitive functioning (objective cognitive performance and subjective cognitive complaints), psychosocial factors (resilience, self-esteem, and childhood trauma), environmental influences (social support and family functioning), and functional outcomes (QoL), were assessed. The detailed measurement protocols are described below.
2.2.1 Sociodemographic and Clinical Assessment
The sociodemographic and clinical data of all participants were collected using a structured questionnaire and medical records, such as demographic profile (age, sex, body mass index (BMI), waist‒hip ratio (WHR), smoking status, marital status, and occupation), disease characteristics (duration of untreated illness, course, number of depressive episodes, history of psychotic symptoms, history of SAs, depressive symptoms, and manic symptoms), treatment parameters (current pharmacotherapy regimens). Depressive and manic symptoms were assessed using the HDRS-17 and the YMRS, respectively.
Blood biomarker profiling was conducted for all participants’ standardized protocols. Fasting venous blood samples (5 mL) were collected at 07:00 by trained phlebotomists. The samples were immediately aliquoted into appropriate vacutainers and processed according to established laboratory protocols, such as centrifugation (3000 rpm, 10 min, 4 °C) and serum separation. The biochemical panel included hematological indices (red blood cell (RBC) count, white blood cell (WBC) count, and hemoglobin (HGB), hepatic function (glutamic oxaloacetic transaminase (AST), glutamic-pyruvic transaminase (ALT), albumin (ALB), total protein (TP), globulin (GLO), and total bilirubin (TBIL)), and metabolic markers (blood glucose (BG), cholesterol (CHO), triglyceride (TG), high-density lipoprotein cholesterol (HDL), low-density lipoprotein cholesterol (LDL), apolipoprotein A1 (APOA1), and apolipoprotein B (APOB)). All analyses were performed in Clinical Laboratory Improvement Amendments (CLIA)-certified laboratories using automated analyzers with strict quality-control measures.
2.2.2 Suicidal Ideation
SI was evaluated using the first five items of the Beck Scale for Suicidal Sdeation (BSI) [26]. Each item is scored on a 3-point Likert scale ranging from 0 to 2. Participants with a cumulative score of ≥1 across these five items were classified as having experienced SI during the preceding week, while a score of 0 indicated no SI. The validated BSI demonstrated acceptable internal consistency in the Chinese population (Cronbach’s α = 0.68) [27].
2.2.3 Cognitive Functioning
Objective cognitive functioning was evaluated using a battery of neuropsychological tests. Attention and processing speed were assessed using the Trail Making Test Part A [28], Digital Span Forward subtest, and Digit Symbol Coding subtest of the Wechsler Adult Intelligence Scale-Revised by China (WAISRC) [29]. Memory was evaluated using the Digital Span Backward subtest of the WAISRC [29] and the Visual Reproduction and Recognition subtest of the Wechsler Memory Scale-Revised [30]. Executive functions were assessed using the Trail Making Test Part B [31], a categorical verbal fluency test (animal naming) [32], and the Stroop Color and Word Test [33]. The raw scores were converted into standardized z scores. The mean of the z scores from the respective subtests was computed to generate the composite domain scores. The global cognitive functioning score was calculated by averaging all the domain scores [34].
Subjective cognitive complaints were detected using the Cognitive Complaints in Bipolar Disorder Rating Assessment (COBRA) [35]. The COBRA is a 16-item unidimensional instrument answered on a 4-point Likert scale ranging from 0 to 3. A total score ≥11 points indicated clinically significant cognitive complaints. The Chinese version of the COBRA has good validity and reliability (Cronbach’s α = 0.91) [36].
2.2.4 Psychosocial Variables
Psychological resilience over the preceding two-week period was evaluated using the Resilience Questionnaire for Bipolar Disorder (RBD). The RBD comprises 23 items evaluated on a 5-point Likert scale ranging from 1 (strongly disagree) to 5 (strongly agree). Higher scores indicate greater resilience. The Chinese version of the RBD has good reliability and validity, with a Cronbach’s α value of 0.95 [37].
The self-esteem level of the subjects was assessed using the Rosenberg Self-Esteem Scale (RSES). The scale contains 10 items and employs a 4-point Likert scale ranging from 1 (strongly disagree) to 4 (strongly agree). Higher scores reflect a greater level of self-esteem. The Chinese version of the RSES has good validity (Cronbach’s α = 0.92) [38].
The traumatic experiences of subjects up to 16 years of age were evaluated using the Childhood Trauma Questionnaire (CTQ) [39]. The CTQ includes five dimensions: emotional neglect, emotional abuse, physical neglect, physical abuse, and sexual abuse. The CTQ has 28 items and uses a 5-point scale ranging from 1 (never) to 5 (always), with higher scores indicating more severe traumatic experiences. The Chinese version of the CTQ has good reliability and validity (Cronbach’s α = 0.77) [40].
2.2.5 Environmental Variables
Social support in the past year was assessed using the Social Support Rating Scale (SSRS). The SSRS consists of ten items, in three dimensions: subjective support, objective support, and utilization of support. The total scores range from 12 to 66, with higher scores indicating higher levels of social support. The item consistency of the SSRS ranged from 0.89 to 0.94, indicating good test-retest reliability [41].
Family functioning was evaluated through the general functioning dimension of the Family Assessment Device (FAD). A 4-point Likert scale was used, ranging from 1 (much like my home) to 4 (not at all like my home). Higher scores indicate healthier families. This scale has high reliability and validity, with the Cronbach’s α of each subscale ranging from 0.72 to 0.92 [42].
2.2.6 Functional Outcomes
QoL was assessed using the 12-Item Short Form Health Survey (SF-12). The total score ranges from 12 to 48, with higher scores indicating better QoL. The SF-12 has good reliability and validity in the Chinese population (Cronbach’s α = 0.91) [43].
2.3 Statistical Analysis
Statistical analyses and data visualization were conducted in Python 3.11.4 using standard scientific libraries (NumPy, SciPy, Matplotlib, etc.). The code development and execution were performed using Visual Studio Code 1.85. Missing data were handled by multiple imputations using the MICE package (version 1.0.2, https://pypi.org/project/mice/). Prior to model training, all the continuous variables were standardized using Z-score normalization (mean = 0, standard deviation = 1) to mitigate the influence of varying scales and units. The normality assumption for continuous variables was evaluated using the Shapiro–Wilk test, with descriptive statistics presented as the means (M) ± standard deviation (SDs) for normally distributed data and medians (Mdns) with first and third quartiles (Q1, Q3) for nonnormal distributions. Categorical variables are summarized using frequencies (n) and proportions (%). Group differences in sociodemographic, clinical, and psychological characteristics were analyzed using the independent samples t test for normally distributed continuous variables, the Mann‒Whitney U test for nonnormally distributed continuous variables, and Pearson’s χ2 test for categorical variables. Statistical significance was defined as a two-tailed p-value of < 0.05.
RF is a supervised ML algorithm based on ensemble learning that addresses classification and regression problems through bagging integration and optimization of decision trees, demonstrating efficacy in psychiatric prediction tasks. In addition to RF, eight other ML algorithms were utilized: logistic regression (LR), extreme gradient boosting (XGBoost), light gradient boosting machine (LightGBM), categorical boosting (CatBoost), gradient boosting machine (GBM), adaptive boosting (AdaBoost), extremely randomized trees (ET), and support vector classification (SVC).
The dataset was randomly partitioned into training (n = 204) and test (n = 88) sets at a ratio of 7:3 using the train_test_split tool in the sklearn module (version 1.7.1, https://pypi.org/project/scikit-learn/). A hybrid feature selection strategy combining data-driven technology (Boruta) and clinical expertise was employed to screen features that might be related to SI as predictors. This approach ensured the retention of both statistically significant and clinically relevant variables. All feature selection procedures were conducted solely on the training set to prevent information leakage from the test set.
In this study, all the ML models were constructed using their default hyperparameters to ensure a straightforward and equitable baseline comparison of algorithmic performance. Model development employed a stratified 5-fold cross-validation framework to ensure robust performance estimation. The model evaluation metrics included the area under the receiver operating characteristic curve (AUC-ROC), balanced accuracy (overall correctness), sensitivity (recall), specificity, precision, average precision, F1 score (harmonic mean of precision and recall), and the Matthews correlation coefficient (MCC, accounting for class imbalance). Class weighting was applied to address potential outcome class imbalances. The SHapley Additive exPlanations (SHAP) package was used to conduct an interpretive analysis of the model with the best prediction performance. The average |SHAP| value of the characteristic parameters was defined as their predictive importance for the ranking.
The comprehensive performance of the optimal model was evaluated using the learning curve, validation curve, and precision‒recall (PR) curve. First, the learning curve was used to analyze the evolution of both training and cross-validation scores as the size of the training dataset progressively increased to assess the learning behavior of the model and potential overfitting. The validation curve was subsequently used to evaluate the sensitivity of the model to the key hyperparameter (n_estimators) within the RF architecture. By mapping the performance metrics across incrementally adjusted estimator counts, this curve pinpoints the threshold value beyond which incremental performance gains plateaued. The PR curve is used to plot the precision against the recall to specifically evaluate the performance of the model across different classification thresholds. The area under the PR curve, quantified as the average precision score, provided a consolidated metric summarizing the precision‒recall trade-off quality across all the thresholds. Finally, for practical deployment and user interaction, an interactive web application was deployed. By leveraging the ExplainerDashboard framework (version 0.5.8, https://pypi.org/project/explainerdashboard/) (xpl.run_app()), a browser-accessible interface was delivered to enable the prediction of the SI based on inputs for relevant risk factors for patients.
The development of prediction models strictly followed the Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis (TRIPOD) statement guidelines. This framework integrates contemporary ML techniques with rigorous statistical practice. Clinical relevance was preserved through domain expert-guided feature selection, ensuring both the methodological robustness and translational applicability of the findings.
3. Results
3.1 Participant Characteristics
Fig. 1 shows the participant flow diagram. During the study period, 318 patients with BD were assessed for eligibility. After applying inclusion/exclusion criteria, 292 patients were included in the final analysis. Among them, 149 (51.03%) reported SI within the past week, and 125 (42.81%) had a history of SAs. The mean patient age was 29.50 ± 11.90 years. Compared with the NSI group, the SI group was significantly younger (Cohen’s d = 0.39, p = 0.001), had a greater proportion of nonsmokers (Cramer’s V = 0.13, p = 0.007), and had a markedly greater prevalence of previous SAs (Cramer’s V = 0.33, p < 0.001). Comprehensive demographic characteristics, clinical profiles, and psychological assessments are presented in Tables 1,2, respectively.
3.2 Model Performance
The comparative performance metrics of the nine ML models are listed in Table 3, and the receiver operating characteristic (ROC) and calibration curves are presented in Fig. 2. All nine models achieved statistically significant AUC values (p < 0.001), among which the RF model outperformed the others across multiple validation metrics (Table 3), demonstrating superior discriminative capacity (AUC = 0.915; 95% CI: 0.850–0.965) and balanced accuracy (0.818). While AdaBoost approached RF performance in terms of AUC (0.905) and average precision (0.917) and ExtraTrees matched its sensitivity (0.891), RF maintained comprehensive superiority, establishing it as the optimal predictive architecture for the identification of SI.
3.3 Variable Importance
The feature importance analysis of the RF model is shown in Fig. 3. QoL was identified as the paramount predictor of SI, followed by the number of depressive episodes, history of SAs, subjective cognitive complaints, emotional abuse from childhood trauma, TG level, age, social support, objective cognitive functioning, resilience, self-esteem, Ca2+ level, and RBC count.
Three evaluation curves revealed the behavioral patterns of the RF model (Fig. 4). The learning curve exhibited progressive convergence between training accuracy (modestly declining) and cross-validation accuracy (steadily increasing) with increasing dataset size, demonstrating enhanced generalization capability without overfitting. Validation profiling indicated significant performance gains with increasing estimator counts until an optimization plateau was reached at approximately n = 150, beyond which marginal improvements became statistically negligible. The precision‒recall relationship proved robust across classification thresholds, achieving an average precision score of 0.922, while maintaining clinically relevant precision (≥0.85) at recall rates exceeding 0.80, indicating reliable positive case identification capability.
Finally, an operational web-based prediction interface was developed to enable suicide risk prediction by inputting the identified risk factor profiles, thereby facilitating risk assessment in diverse health care settings.
4. Discussion
In this study, nine ML models were developed and compared to predict the risk of SI in patients with BD. The RF model demonstrated superior performance, achieving an AUC of 0.915 with a classification accuracy of 81.8%. Through interpretable SHAP analysis, QoL emerged as the most salient predictor, followed by the number of depressive episodes, history of SAs, cognitive functioning, and emotional abuse. These findings underscore the multifaceted nature of SI risk in BD.
Our results align with existing evidence on SI risk factors in BD [15, 44]. Machine learning approaches have also been successfully applied to identify suicide risk in other populations, such as veterans, by leveraging cross-modal interactions among psychosocial factors [45]. The multimodal ML model developed by Pigoni et al. [44] focused on predicting SAs within a 12-month period and found that combining clinical features with gray matter volume significantly improved predictive sensitivity (reaching 80%). This highlights the important supplementary value in predicting suicidal behavior of neurostructural features, particularly in the prefrontal-temporal-cerebellar regions. Although the present study did not include neuroimaging data, it also achieved high predictive accuracy for SI by incorporating multidimensional features such as psychosocial factors, cognitive functioning, and biomarkers, further supporting the necessity of integrating multidimensional information in suicide risk prediction. In addition, the theoretical model of suicide proposed by Malhi et al. [15] emphasizes that the transition from ideation to action involves multi-stage mechanisms such as motivation and volition. The importance of factors such as previous SAs and cognitive functioning in our findings corresponds to elements like acquired capability and cognitive appraisal in Malhi’s [15] model, while childhood trauma and QoL reflect the foundational roles of early stress and current psychosocial functioning in the formation of SI. Furthermore, Deng et al. [21] also demonstrated the utility of ML and their model achieved an AUC of 0.741 in testing and 0.788 in external validation. Notably, their SHAP analysis identified polarity (i.e., depressive vs. manic episode) and previous SAs as the most influential predictors, which resonates with the “acquired capability” component in Malhi’s model [15] and underscores the transdiagnostic relevance of these factors. Although Deng et al. [21] did not incorporate neuroimaging biomarkers, their model’s strong performance further validates the importance of integrating multidimensional clinical data for suicide risk prediction. In summary, by focusing on the earlier risk stage of SI, this study expands the application of ML in suicide risk prediction in BD and establishes strong theoretical and empirical connections with existing research.
Through feature importance analysis, QoL was determined to be a paramount predictor of SI. These findings are consistent with those of a study by Mazaheri et al. [46] involving 140 inpatients with BD type I, which demonstrated an inverse association between QoL and suicide risk. This suggests that the subjective burden of illness, encompassing functional impairment and psychosocial well-being, may be a more immediate driver of suicidal thinking than some traditional clinical metrics are. It is widely recognized that the direct disease burden of BD significantly compromises QoL through symptomatic manifestations and functional limitations. In reality, diminished QoL also serves as a clinical indicator of compromised psychosocial resources, such as inadequate social support networks and reduced cognitive reserves, all of which collectively contribute to the development of SI [47].
The number of depressive episodes was another critical predictor of SI. These findings concur with prior research demonstrating that increased depressive episodes correlate with increased suicide risk in patients with BD [48]. Recurrent depressive episodes can exacerbate hopelessness, helplessness, and perceived burdensomeness, which are well-established psychological precursors to suicide. In addition to illness characteristics, a history of SAs was also confirmed as a pivotal predictor, which is consistent with the literature [49]. For example, Jiang et al. [50] reported that a history of SAs was a significant predictor of suicide risk in both AdaBoost and binary logistic regression algorithms. This heightened vulnerability may arise from acquired familiarity with suicidal means and lowered aversion to death among individuals with prior SAs. With respect to developmental trajectories, younger age correlated significantly with SI, which is consistent with the literature reporting elevated suicide risk specifically among BD patients aged <35 years [51]. This association likely reflects, in part, the confluence of earlier illness onset and underdeveloped coping mechanisms coupled with limited psychosocial resources in younger individuals. Furthermore, the initial period following diagnosis represents a high-risk window for suicidal behaviors [51], offering a plausible explanation for the increased SI prevalence observed in the younger patients in this study.
Our results reinforce the evidence linking both subjective and objective cognitive deficits to SI. Neurobiologically, cognitive impairments are correlated with functional alterations in the ventral and dorsolateral prefrontal cortices, with cognitive inhibition impairment specifically recognized as a neurocognitive marker for suicide prediction [52]. With respect to the relationship between subjective and objective measures, the current evidence indicates limited convergence. Some studies propose subjective complaints as harbingers of subsequent objective decline [53], whereas others report no significant association between the two [54]. Cognitive deficits may exacerbate depressive symptoms, and depressive episodes may amplify cognitive dysfunction, collectively increasing suicide risk [14, 55]. For instance, executive dysfunction can lead to deficient inhibitory control, impulsive decision-making, emotional dysregulation, and compromised problem-solving abilities, fostering helplessness and intensifying depressive effects. Conversely, recurrent depressive episodes may further decrease cognitive capacity and the ability to suppress intrusive suicidal thoughts.
The significant contribution of emotional abuse from childhood trauma is consistent with the established literature [56]. Exposure to such trauma may foster maladaptive cognitive schemas, heightening an individual’s susceptibility to hopelessness during stressful periods and subsequently increasing their vulnerability to SI. Evidence indicates a potential dose‒response association between the extent of emotional abuse exposure and the severity of BD [57], further contextualizing its clinical relevance. Against this backdrop of vulnerability, resilience was recognized as a protective predictor against SI in our analysis, corroborating the established literature [58]. Individuals with greater resilience may preferentially adopt adaptive coping strategies (such as problem solving), thereby disrupting the progression from hopelessness to SI. An intriguing phenomenon was observed from the methodological perspective. Variables that were not statistically significant in the univariate analysis (e.g., self-esteem) exhibited relatively high |SHAP| values in the RF model. This divergence likely reflects the inherent constraints of univariate approaches, which evaluate variables linearly and independently, overlooking the potential intricate interactions among variables. In contrast, the ensemble decision trees of the RF model can capture nonlinear associations and higher-order variable interactions, potentially elucidating the nuanced relationship between self-esteem and SI.
In the present study, social support was identified as a significant predictor of SI. Existing evidence indicates divergent mechanistic pathways. Tamizi et al. [59] demonstrated a direct association, in which social support independently accounted for 33.3% of the variance in SI among Malaysian university students. Conversely, Owen et al.’s [60] four-month longitudinal study of 80 patients with BD revealed a more complex chain mediation pathway in which low social support leads to feelings of defeat, fosters entrapment cognition, and subsequently amplifies hopelessness, ultimately increasing the risk of SI.
Biochemical markers, such as TG levels, Ca2+ levels, and RBC counts, demonstrated the predictive potential of the SI for BD. However, mechanistic interpretations necessitate nuanced contextualization. With respect to TG levels, our analysis revealed significantly lower concentrations in SI patients, potentially reflecting disease-associated appetite suppression and decreased nutritional intake. Conversely, Liu et al. [61] reported that elevated TG levels (>1.7 mmol/L) were associated with an increased risk of SI (odds ratio = 2.58). This disparity can be attributed to population differences. Specifically, the latter study concentrated on children and adolescents with metabolic syndrome, which may heighten cardiovascular risks and, subsequently, vulnerability to SI. In addition to lipid metabolism, patients with SI exhibited reduced Ca2+ levels. This phenomenon may be attributed to lithium-induced inositol depletion and calcium channel blockade, both of which lead to a reduction in the intracellular Ca2+ concentration. This can potentially indicate illness chronicity and treatment duration. Concurrently, the decreased RBC counts in patients with SI align with previous findings [62], which could be ascribed to chronic low-grade inflammation in BD that suppresses erythropoiesis and shortens the lifespan of erythrocytes. Future research should explore additional biomarkers, such as neurotransmitters and inflammatory factors. For example, Li et al. [55] developed an optimized prediction model (AUC = 0.91) that integrated serum brain-derived neurotrophic factor (BDNF) levels, cognitive functioning, depressive symptoms, and sleep quality to predict SI in patients with bipolar depressive disorder.
Strengths and Limitations
This study possesses several strengths. First, a comprehensive multidimensional assessment framework encompassing sociodemographic, clinical, psychological, cognitive, environmental, and functional domains was employed to allowed for a holistic exploration of predictors associated with SI in BD. Second, the adoption of a hybrid feature selection strategy integrating both data-driven (Boruta algorithm) and clinician-guided approaches enhanced the clinical relevance and interpretability of the selected predictors while maintaining statistical robustness. Third, the use of explainable ML techniques, particularly SHAP, facilitated the interpretation of complex model decisions and identified clinically actionable risk factors, thereby bridging the gap between black-box predictive models and clinical utility. Finally, the development and deployment of an interactive web-based prediction tool (http://losha:8020) demonstrate a commitment to translational research, offering a practical means for real-time risk assessment in clinical settings.
However, several limitations must be acknowledged. First, the cross-sectional design constrained causal inference and obscured the temporal dynamics of risk factors, necessitating a longitudinal study to validate predictive stability. Second, the modest sample size (n = 292), while sufficient for initial model development, may limit the stability of our findings. Future studies with larger, multicenter cohorts are essential to validate and refine this prediction model. Third, all participants were recruited from tertiary hospitals and the model lacks an external validation in independent cohorts. This may limit the model’s generalizability to other patient populations and clinical settings. Fourth, the lack of a control group (e.g., patients with major depressive disorder or healthy controls) prevents us from determining whether the identified predictors are specific to BD or represent general risk factors for suicidality across diagnostic boundaries. Fifth, the use of self-reported questionnaires may be subject to recall and social desirability biases. In addition, although a wide range of covariates were included, unmeasured confounding factors, such as detailed pharmacotherapy history and BD subtype differences, may still have affected the results. Furthermore, SI assessment involves multifaceted complexities. Although this study incorporated routine blood biochemical markers from medical records, the limited specificity and theoretical foundations have restricted their clinical interpretation. Future research should explore more targeted biomarkers, such as those associated with the gut–brain axis (e.g., neurotransmitters, immune factors, and the gut microbiota), to systematically explore the biological mechanisms underlying SI and SAs [63]. Finally, although a web-based predictive tool was developed to facilitate potential clinical translation, its performance and utility necessitate further validation in prospective, real-world clinical settings. In addition, it is crucial to note that the current version of this web tool is a research prototype. While we have implemented basic security measures (e.g., client-side data processing to avoid server transmission and no collection of personal identifiers), it has not yet undergone a formal security audit or obtained certifications for clinical use. Its full compliance with medical software regulations (e.g., from the NMPA in China or equivalent bodies elsewhere) and its resilience against sophisticated cyber threats have not been established. Therefore, any future clinical application must be preceded by a comprehensive security and compliance assessment.
5. Conclusions
In this study, nine ML models for predicting SI in patients with BD were developed and compared, with the RF model demonstrating the optimal performance. Interpretability analyses revealed that QoL, the number of depressive episodes, history of SAs, cognitive functioning, and childhood emotional abuse were the most influential predictors. This study, which combined hybrid feature selection with explainable ML, provides a validated framework for assessing suicide risk and highlights specific targets for clinical intervention. However, the model requires further external validation in prospective, real-world cohorts to confirm its efficacy and generalizability before it can be recommended for routine clinical use. Future research should focus on longitudinal designs to establish causal inference and on integrating these models into collaborative care settings to test their impact on patient outcomes.
Publisher’s Note: IMR Press stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Material
Supplementary material associated with this article can be found, in the online version, at https://doi.org/10.31083/AP45589.
Referencer citeret i publikationen
- [1] World Health Organization Suicide 2025Available at: https://www.who.int/news-room/fact-sheets/detail/suicide (Accessed: 31 July 2025)
- [2] KlonskyED MayAM SafferBY Suicide, Suicide Attempts, and Suicidal Ideation Annual Review of Clinical Psychology 20161230733010.1146/annurev-clinpsy-021815-09320426772209
- [3] KlonskyED SafferBY BryanCJ Ideation-to-action theories of suicide: a conceptual and empirical update Current Opinion in Psychology 201822384310.1016/j.copsyc.2017.07.02030122276
- [4] MillerJN BlackDW Bipolar Disorder and Suicide: a Review Current Psychiatry Reports 202022610.1007/s11920-020-1130-031955273
- [5] XuYE BarronDA SudolK ZisookS OquendoMA Suicidal behavior across a broad range of psychiatric disorders Molecular Psychiatry 2023282764281010.1038/s41380-022-01935-736653675PMC10354222
- [6] DongM LuL ZhangL ZhangQ UngvariGS NgCH et al Prevalence of suicide attempts in bipolar disorder: a systematic review and meta-analysis of observational studies Epidemiology and Psychiatric Sciences 202029e6310.1017/S2045796019000593PMC806129031648654
- [7] PompiliM GondaX SerafiniG InnamoratiM SherL AmoreM et al Epidemiology of suicide in bipolar disorders: a systematic review of the literature Bipolar Disorders 20131545749010.1111/bdi.1208723755739
- [8] BelsherBE SmolenskiDJ PruittLD BushNE BeechEH WorkmanDE et al Prediction Models for Suicide Attempts and Deaths: A Systematic Review and Simulation JAMA Psychiatry 20197664265110.1001/jamapsychiatry.2019.017430865249
- [9] DouW YuX FangH LuD CaiL ZhuC et al Family and Psychosocial Functioning in Bipolar Disorder: The Mediating Effects of Social Support, Resilience and Suicidal Ideation Frontiers in Psychology 20221280754610.3389/fpsyg.2021.80754635153929PMC8832135
- [10] BeruttiM DiasRS PereiraVA LaferB NeryFG Association between history of suicide attempts and family functioning in bipolar disorder Journal of Affective Disorders 2016192283310.1016/j.jad.2015.12.01026706829
- [11] ChenWJ ChenCC HoCK ChouFHC LeeMB LungF et al The relationships between quality of life, psychiatric illness, and suicidal ideation in geriatric veterans living in a veterans’ home: a structural equation modeling approach The American Journal of Geriatric Psychiatry: Official Journal of the American Association for Geriatric Psychiatry 20111959760110.1097/JGP.0b013e3181faec0e21606903
- [12] AaltonenK NäätänenP HeikkinenM KoivistoM BaryshnikovI KarpovB et al Differences and similarities of risk factors for suicidal ideation and attempts among patients with depressive or bipolar disorders Journal of Affective Disorders 201619331833010.1016/j.jad.2015.12.03326774520
- [13] LageRR de Assis da SilvaR TanciniMB NardiAE MograbiDC CheniauxE Suicidal Ideation in Bipolar Disorder: The Relation with Clinical and Sociodemographic Variables The Psychiatric Quarterly 20229345346110.1007/s11126-021-09965-034664176
- [14] LuoX ZhuY LuD ZongK LinX Subjective cognitive dysfunction in patients with bipolar disorder: The prevalence, related factors and effects on predicting psychosocial functioning and suicidal ideation Psychiatry Research 202028411266910.1016/j.psychres.2019.11266931740217
- [15] MalhiGS OuthredT DasP MorrisG HamiltonA MannieZ Modeling suicide in bipolar disorders Bipolar Disorders 20182033434810.1111/bdi.1262229457330
- [16] LageRR SantanaCMT NardiAE CheniauxE Mixed states and suicidal behavior: a systematic review Trends in Psychiatry and Psychotherapy 20194119120010.1590/2237-6089-2018-004231291413
- [17] ChenZS KulkarniPP Galatzer-LevyIR BigioB NascaC ZhangY Modern views of machine learning for precision psychiatry Patterns (New York, N.Y.) 2022310060210.1016/j.patter.2022.10060236419447PMC9676543
- [18] BzdokD AltmanN KrzywinskiM Statistics versus machine learning Nature Methods 20181523323410.1038/nmeth.464230100822PMC6082636
- [19] LeDV MontgomeryJ KirkbyKC ScanlanJ Risk prediction using natural language processing of electronic mental health records in an inpatient forensic psychiatry setting Journal of Biomedical Informatics 201886495810.1016/j.jbi.2018.08.00730118855
- [20] KirtleyOJ van MensK HoogendoornM KapurN de BeursD Translating promise into practice: a review of machine learning in suicide research and prevention The Lancet. Psychiatry 2022924325210.1016/S2215-0366(21)00254-635183281
- [21] DengY ZhangJ LiuX JiangQ XingY XuY et al Construction and verification of risk prediction model for suicidal attempts of mood disorder based on machine learning Journal of Affective Disorders 202538027928710.1016/j.jad.2025.03.10740139405
- [22] SaraSS RahmanMA RahmanR TalukderA Prediction of suicidal ideation with associated risk factors among university students in the southern part of Bangladesh: Machine learning approach Journal of Affective Disorders 202434950250810.1016/j.jad.2024.01.09238218257
- [23] Al-SrehanH AyasrahMN Al-RousanAH KhasawnehMAS GharaibehM Predicting Suicidal Ideation Among Youths With Autism Spectrum Disorder: An Advanced Machine Learning Study Clinical Psychology & Psychotherapy 202532e7008210.1002/cpp.7008240369905
- [24] HAMILTONM A rating scale for depression Journal of Neurology, Neurosurgery, and Psychiatry 196023566210.1136/jnnp.23.1.5614399272PMC495331
- [25] YoungRC BiggsJT ZieglerVE MeyerDA A rating scale for mania: reliability, validity and sensitivity The British Journal of Psychiatry: the Journal of Mental Science 197813342943510.1192/bjp.133.5.429728692
- [26] BeckA SteerR Manual for Beck Scale for Suicide Ideation Psychological CorporationNew York1991
- [27] LiX PhillipsMR TongY LiK ZhangY ZhangY et al Reliability and validity of the Chinese version of Beck Suicide Ideation Scale(BSI-CV) in adult community residents Chinese Mental Health Journal 201024250255In Chinese10.3969/j.issn.1000-6729.2010.04.003
- [28] LezakMD HowiesonDB BiglerED TranelD Neuropsychological assessment Oxford University PressNew York, NY, US20125th ed
- [29] GongY Revision of wechsler’s adult intelligence scale in China Acta Psychologica Sinica 198315121129
- [30] WangJ ZouYZ CuiJF FanHZ ChenR ChenN et al Revision of the wechsler memory scale-fourth edition of chinese version (adult battery) Chinese Mental Health Journal 2015295359In Chinese
- [31] LuL BiglerED Performance on original and a Chinese version of Trail Making Test Part B: a normative bilingual sample Applied Neuropsychology 2000724324610.1207/S15324826AN0704_611296687
- [32] ChenYL ChenYH Lieh-MakF Semantic verbal fluency deficit as a familial trait marker in schizophrenia Psychiatry Research 20009513314810.1016/s0165-1781(00)00166-910963799
- [33] ScarpinaF TaginiS The Stroop Color and Word Test Frontiers in Psychology 2017855710.3389/fpsyg.2017.0055728446889PMC5388755
- [34] LinX LuD HuangZ ChenW LuoX ZhuY The associations between subjective and objective cognitive functioning across manic or hypomanic, depressed, and euthymic states in Chinese bipolar patients Journal of Affective Disorders 2019249738110.1016/j.jad.2019.02.02530763798
- [35] RosaAR MercadéC Sánchez-MorenoJ SoléB Mar BonninCD TorrentC et al Validity and reliability of a rating scale on subjective cognitive deficits in bipolar disorder (COBRA) Journal of Affective Disorders 2013150293610.1016/j.jad.2013.02.02223497792
- [36] XiaoL LinX WangQ LuD TangS Adaptation and validation of the “cognitive complaints in bipolar disorder rating assessment” (COBRA) in Chinese bipolar patients Journal of Affective Disorders 201517322623110.1016/j.jad.2014.11.01125462421
- [37] YuX DouW LuoX ChenM LiH LinX Reliability and validity of the chinese version of resilience questionnaire for bipolar disorder Journal Of New Medicine 20245544945510.3969/j.issn.0253-9802.2024.06.008
- [38] PengW ZhouY ChuJ LiuZ ZhengK YaoS et al Factorial and Criterion Validities of the Chinese Version of Rosenberg Self-Esteem Scale Among Undergraduate Students Psychology Research and Behavior Management 2024174135414410.2147/PRBM.S49445239654814PMC11627100
- [39] BernsteinDP SteinJA NewcombMD WalkerE PoggeD AhluvaliaT et al Development and validation of a brief screening version of the Childhood Trauma Questionnaire Child Abuse & Neglect 20032716919010.1016/s0145-2134(02)00541-012615092
- [40] ZhaoX ZhangY LiL ZhouY LiH YangS Reliability and validity of the Chinese version of the Childhood Abuse Questionnaire Chinese Journal of Clinical Rehabilitation 20059105107In Chinese
- [41] XiaoS Theoretical basis and research application of Social Support Rating Scale Journal of Clinical Psychiatry 1994498100
- [42] EpsteinNB BaldwinLM BishopDS The McMaster Family Assessment Device Journal of Marital and Family Therapy 1983917118010.1111/j.1752-0606.1983.tb01497.x
- [43] ShouJ RenL WangH YanF CaoX WangH et al 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 Shanghai Aging Clinical and Experimental Research 20162833934610.1007/s40520-015-0401-926142623
- [44] PigoniA TesicI PiniC EnricoP Di ConsoliL SiriF et al Multimodal Machine Learning Prediction of 12-Month Suicide Attempts in Bipolar Disorder Bipolar Disorders 20252721723110.1111/bdi.7001140052301PMC12169096
- [45] LevyJ DimambroM DialloA GuiJ ShinerB LevisM Investigating the Differential Impact of Psychosocial Factors by Patient Characteristics and Demographics on Veteran Suicide Risk Through Machine Learning Extraction of Cross-Modal Interactions Pacific Symposium on Biocomputing 20253016718410.1142/9789819807024_001339670369PMC11747942
- [46] MazaheriM GharraeeB ShabaniA LotfiM Studying the predictive factors of suicide attempts in patients with type 1 bipolar disorder Psychiatry Research 201927537337810.1016/j.psychres.2019.04.01231005820
- [47] de AbreuLN NeryFG Harkavy-FriedmanJM de AlmeidaKM GomesBC OquendoMA et al Suicide attempts are associated with worse quality of life in patients with bipolar disorder type I Comprehensive Psychiatry 20125312512910.1016/j.comppsych.2011.03.00321550033
- [48] YangL WangZ ZhangY HuD ZhangJ Analysis of suicide related factors in patients with bipolar disorder Journal of International Psychiatry 20204711481152
- [49] AllenMH ChessickCA MiklowitzDJ GoldbergJF WisniewskiSR MiyaharaS et al Contributors to suicidal ideation among bipolar patients with and without a history of suicide attempts Suicide and Life-Threatening Behavior 20053567168010.1521/suli.2005.35.6.67116552982
- [50] JiangZ SunJ ZouW WangC GaoQ A comparison study of suicidal behavior predictive models of bipolar disorder patients based on two machine learning algorithms Journal of Shandong University (Health Sciences) 202260101108
- [51] DomeP RihmerZ GondaX Suicide Risk in Bipolar Disorder: A Brief Review Medicina (Kaunas, Lithuania) 20195540310.3390/medicina5508040331344941PMC6723289
- [52] Richard-DevantoyS JollantF KefiZ TureckiG OliéJP AnnweilerC et al Deficit of cognitive inhibition in depressed elderly: a neurocognitive marker of suicidal risk Journal of Affective Disorders 201214019319910.1016/j.jad.2012.03.00622464009
- [53] CicconeI Subjective cognitive complaints signal potential cognitive decline in parkinson disease Neurology Live. 16 February 2024 Available at: https://www.neurologylive.com/view/subjective-cognitive-complaints-signal-potential-cognitive-decline-pd (Accessed: 1 October 2025)
- [54] RyuSY LeeSB KimTW LeeTJ Subjective memory complaints, depressive symptoms and instrumental activities of daily living in mild cognitive impairment International Psychogeriatrics 20162848749410.1017/S104161021500194526555226
- [55] LiD MaL FengY Serum BDNF, depressive symptoms, sleep quality, and cognitive function: a study on their impact and predictive value for suicidal ideation in bipolar depressive disorder patients European Archives of Psychiatry and Clinical Neuroscience 202627658359210.1007/s00406-025-01997-y40172689
- [56] JinK ZengT GaoM ChenC ZhangS LiuF et al Identifying suicidal ideation in Chinese higher vocational students using machine learning: a cross-sectional survey European Archives of Psychiatry and Clinical Neuroscience 20252751231124210.1007/s00406-025-01973-639987215
- [57] EtainB MathieuF HenryC RaustA RoyI GermainA et al Preferential association between childhood emotional abuse and bipolar disorder Journal of Traumatic Stress 20102337638310.1002/jts.2053220564371
- [58] Fernández-RochaML García-IzquierdoM Ríos-RísquezMI Psychological Resilience and Suicide Attempt in Patients With Bipolar Disorder: An Exploratory Study Journal of the American Psychiatric Nurses Association 202130445110.1177/1078390321105068234715743
- [59] TamiziNABM PerveenA HamzahH FolashadeAT Social support as moderator for psychological adjustment, anxiety, stress, depression and its interrelationship with suicidal ideation among students post-outbreak of covid-19 in Malaysia Pakistan Journal of Life and Social Sciences (PJLSS) 2024224660467810.57239/pjlss-2024-22.1.00346
- [60] OwenR JonesSH DempseyRC GoodingPA Directly or Indirectly? The Role of Social Support in the Psychological Pathways Underlying Suicidal Ideation in People with Bipolar Disorder International Journal of Environmental Research and Public Health 202219528610.3390/ijerph1909528635564679PMC9099991
- [61] LiuZ SunL SunF ZhangY WangJ ZhangZ et al The abnormalities of lipid metabolism in children and adolescents with major depressive disorder and relationship with suicidal ideation and attempted suicide Heliyon 202410e3034410.1016/j.heliyon.2024.e3034438726112PMC11079100
- [62] WangYJ ZhouZ LiYZ KangJJ YuJT FengJF et al Temporal trends of blood-based markers in various psychiatric disorders and their cross-sectional brain structure associations Communications Medicine 2025523910.1038/s43856-025-00957-w40537582PMC12179275
- [63] Gomes-da-CostaS SalagreE CaminoS VázquezG GrandeI Chapter 23 - The microbiota-gut-brain axis and bipolar disorder Neurobiology of Bipolar Disorder 202127528410.1016/B978-0-12-819182-8.00023-5
Til din tryghed. MitLivMed er et fællesskab. Vi yder ikke krisestøtte eller medicinsk rådgivning og erstatter ikke din behandler. Fortællinger og mestringsforslag er medlemmernes egne erfaringer. Er du i krise? Find akut hjælp her.