- Research
- Open access
- Published:
Construction and validation of a predictive model for suicidal ideation in non-psychiatric elderly inpatients
BMC Geriatrics volume 25, Article number: 322 (2025)
Abstract
Background
Suicide poses a substantial public health challenge globally, with the elderly population being particularly vulnerable. Research into suicide risk factors among elderly inpatients with non-psychiatric disorders remains limited. This investigation focused on crafting a machine learning-based prediction model for suicidal ideation (SI) in this population to aid suicide prevention efforts in general hospitals.
Methods
A total of 807 non-psychiatric elderly inpatients aged over 60 were assessed using demographic and clinical data, and SI was measured using the Patient Health Questionnaire-9 (PHQ-9). Data were processed utilizing machine learning algorithms, and predictive models were developed using multiple logistic regression, Nomogram, and Random Forest models.
Results
Key predictors included PHQ-8, Athens Insomnia Scale, hospitalization frequency, Perceived Social Support from Family scale, comorbidities, income, and employment status. Both models demonstrated excellent predictive performance, with AUC values exceeding 0.9 for both training and test sets. Notably, the Random Forest model outperformed others, achieving an AUC of 0.958, with high accuracy (0.952), precision (0.962), sensitivity (0.987), and an F1 score of 0.974.
Conclusion
These models offer valuable tools for suicide risk prediction in elderly non-psychiatric inpatients, supporting clinical prevention strategies.
Clinical trial number
Not applicable.
Background
Globally, suicide represents a critical public health challenge and is identified as the 14th leading cause of death [1, 2]. The susceptibility to suicide escalates with age, showing markedly higher rates among the elderly population. Suicide in the elderly is a complex and multifaceted behavior. Access to deadly means, presence of depression, disease, disability, and social disconnection are factors that increase vulnerability [3]. Data from the Global Burden of Disease estimates an annual suicide rate of 27.45 per 100,000 for individuals over the age of 70, compared to 16.17 per 100,000 for those aged 50–69, and 11.6 per 100,000 for individuals aged 15–49 [1, 2]. In China, the frequency of suicide attempts or completed suicides among general hospital inpatients stands at 3.26 per 100,000. The rates are higher among inpatients aged 60 and older, those with education levels of junior high school or lower, patients in Grade II comprehensive hospitals, and those with malignant tumors or chronic diseases [4]. Research indicates that hospitalized patients face an eightfold higher risk of suicide compared to the general population [5].
Non-psychiatric illnesses refer to medical conditions not diagnosed as mental illnesses. In this study, non-psychiatric inpatients include those admitted for various reasons, such as organic diseases or trauma. These patients may experience psychological issues, including stress and mood disturbances due to their physical health conditions, which can influence suicidal behavior. The suicide risk for non-psychiatric inpatients at admission is estimated at 2.7% [6]. Suicidal behavior in elderly non-psychiatric inpatients poses serious harm not only to individuals and their families but also to society at large [7,8,9]. It leads to emotional trauma and significant financial burdens for both patients and their families [9]. Additionally, medical staff who encounter inpatient suicides often experience negative emotions, with sadness (61.95%), shock (48.91%), and guilt (25%) being the most common, which can impact their professional and personal lives [10, 11]. Inpatient suicide can also strain the doctor-patient relationship and lead to medical disputes [9]. This situation may garner public attention regarding the elderly population and exert a broader societal impact. Therefore, preventing suicide among elderly non-psychiatric inpatients is of considerable importance.
SI is a broad term that encompasses thoughts, desires, and concerns about death and suicide [12]. It is often a preliminary stage before engaging in actual suicidal actions and typically involves clear self-harm intentions without detailed planning or execution [13]. In general hospitals, medical staff often hesitate to assess patients for SI, fearing that directly asking about suicidal thoughts may inadvertently lead patients to consider suicide or because such inquiries are perceived as impolite [14, 15]. Additionally, there is a societal stigma surrounding suicide [16], which makes clinicians uncomfortable when asking patients about suicidal tendencies. Consequently, SI in elderly patients is frequently overlooked, despite evidence suggesting that SI tends to increase with age, along with the incidence of suicide-related behaviors [17,18,19]. For instance, research from nursing homes in Hunan Province revealed a 17.9% prevalence rate of SI among the elderly [20]. The first step in suicide prevention is identifying patients at high risk [21]. Since SI is a critical risk factor for suicide [21, 22], it serves as a vital indicator in assessing suicide risk. Thus, accurately evaluating SI is essential for effective suicide prevention [23, 24].
Although awareness of suicide in the elderly has increased in recent years, existing studies highlight several factors associated with SI, including social support [20, 25], economic status [26], sleep quality [27], and psychological conditions like depression, anxiety, and loneliness [25, 28, 29]. However, most of these studies have been conducted among elderly populations in communities or nursing homes. There remains a lack of specific research focusing on SI among elderly inpatients without psychiatric illnesses. The necessity for targeted suicide prevention strategies for this demographic is critical yet underexplored. A comprehensive grasp of SI within this group remains elusive, impeding the development of effective interventions. This study aims to develop a predictive model for SI in non-psychiatric elderly inpatients and to enhance early identification and prevention of suicide risk in this population. By leveraging statistical and machine learning approaches, the model will provide healthcare providers with a clinically actionable decision-support tool for timely intervention. The ultimate goal is to reduce SI related morbidity and improve patient safety and care quality in general hospital settings. Specifically, we hypothesize that specific clinical features of non-psychiatric elderly inpatients are significantly associated with SI and may serve as key variables in predictive models for suicide risk assessment. We hypothesize that non-psychiatric elderly hospitalized patients exhibit significant associations between mental health conditions and SI, with these psychological factors serving as critical predictors in risk models. We hypothesize that insufficient family support independently predicts SI in non-psychiatric elderly inpatients, with lower levels of familial engagement correlating with heightened risk. We hypothesize that a novel SI prediction model, is expected to demonstrate superior accuracy, robustness, and generalizability compared to conventional screening tools.
Methods
This study included elderly patients with non-psychiatric illnesses who were hospitalized at Guangdong Provincial Hospital of Chinese Medicine between December 2023 and June 2024. All departments participated in the survey except for gynecology and obstetrics, surgery, and the department of infectious diseases, which were excluded due to the specific physical characteristics or age of their patients. Obstetric/gynecological cases were excluded due to pregnancy or childbirth-related physiological states, as these physiological characteristics conflict with the non-psychiatric geriatric focus. Patients with gynecological malignancies (routinely managed through the oncology department) were not excluded. Surgical cases requiring emergency interventions, trauma care, or prolonged postoperative management were excluded due to heterogeneous surgical pathologies, unpredictable complications, and recovery timelines. Infectious disease cases necessitating isolation protocols were excluded due to contagious pathologies and infection control requirements misaligned with the study’s non-communicable disease objectives.
Inclusion criteria: Eligible participants included individuals aged 60 years or older, exhibited stable vital signs, possessed the ability to communicate effectively, could cooperate in completing assessments and investigations, and voluntarily participated in the study by signing informed consent.
-
1.
Exclusion criteria: Patients with any of the following conditions were not included: diagnoses of bipolar disorder, schizophrenia, or other mental illnesses(Patients with documented psychiatric disorders confirmed through clinical diagnosis were excluded following a systematic review of psychiatric consultation records in the hospital’s electronic medical system; Participants scoring ≥ 10 on the PHQ-9 underwent further evaluation by psychiatrists to exclude individuals with acute psychiatric symptoms (e.g., hallucinations, manic episodes) or active mental illnesses); those with severe or unstable cardiovascular, respiratory, neurological, endocrine, or other physical conditions; Aphasia, uncorrected severe hearing impairment, and functional communication disorders, etc., which affected the completion of the investigation (including but not limited to: understanding interview questions, accurately expressing subjective experiences, and filling out questionnaires).
Observation and measurement
Observational data included gender, age, smoking status, existing diseases, family status, BMI, albumin (ALB), hemoglobin (Hb), and lipid levels, all of which were analyzed for their association with SI in elderly non-psychiatric inpatients.
Participants’ personality traits (extraversion/introversion/ambiversion) were categorized through self-reported behavioral patterns and contextual interviews. Extraversion is characterized by a high propensity for social interaction, positive emotionality, and responsiveness to external stimuli [30,31,32]. Introversion is characterized by energy restoration through solitary reflection rather than external social stimulation, with core features encompassing a preference for deep thinking, reduced social engagement needs, and heightened sensitivity to excessive environmental stimuli [30,31,32]. Ambiversion is characterized by a midrange positioning on the extraversion introversion continuum, with the capacity to adapt social behaviors flexibly according to contextual demands [33].
Comorbidities were identified by extracting patients’ admission diagnoses, medication records, and laboratory/imaging reports from the hospital’s electronic medical record system.
The Perceived Social Support from Family (PSS-Fa) scale is a self-reported measure of family support, originally developed by Procidano et al. in 1983 and adapted to fit the context of China [34,35,36]. This scale evaluates the support, behaviors, and attitudes of caregivers towards patients and has been widely used in clinical assessments of family support. The PSS-Fa consists of 15 items, with a “yes” response scoring 1 point and a “no” response scoring 0 points. The maximum score is 15, with some items being reverse-scored. A higher total score signifies greater family support, with scores categorized as low (0–5), moderate (6–10), or high (11–15) levels of family support [35, 36].
The Barthel Index (BI) evaluates the independence of patients in daily activities. It encompasses ten activities: eating, bathing, grooming, dressing, managing bowel and bladder functions, toileting, transferring between positions, walking, and climbing stairs. The scoring system ranges from 0 to 100, where higher scores denote greater autonomy in daily functioning [37, 38].
PHQ-8 is a reliable and valid self-report tool for screening and assessing the severity of depressive symptoms [39]. It asks participants to reflect on their symptom frequency over the last two weeks, scoring each item from 0 (none) to 3 (nearly constant). Overall scores span from 0 to 24, with higher totals reflecting more pronounced depressive symptoms.
Athens Insomnia Scale (AIS) measures the severity of sleep disturbances and serves as a tool for insomnia screening. It is recognized for its consistency, reliability, and accuracy [40,41,42]. The scale scores insomnia severity based on the past month’s symptoms, categorizing scores into no insomnia (0–5), mild insomnia (6–9), moderate insomnia (10–15), and severe insomnia (16–24).
The ninth item of the PHQ-9 was adopted to check the patient’s thoughts of self-harm or suicide within the past two weeks, serving as a criterion for determining SI [43,44,45]. A response indicating suicidal ideation was classified as “SI,” while the absence of such thoughts was classified as “no SI.” Numerous studies have demonstrated that using the PHQ-9 to screen individuals for SI is effective, accurate, and reliable [46,47,48,49].
Procedure
Research Staff Training: All research assistants were required to complete a standardized 2-day training program. Key components included: Standardized protocols for administering and clarifying assessment tools; training to avoid leading language and ensure neutral participant engagement; emergency psychological crisis protocols, including escalation pathways for participants endorsing SI.
Data collection was conducted through a mixed-mode survey methodology that systematically integrated electronic questionnaires with paper-based assessments. The surveys were administered in person by well-trained researchers employing neutral, standardized language to ensure consistency. Subjects were selected strictly according to the sampling method and inclusion criteria. During the field investigation, researchers were instructed to ask relevant questions thoroughly and professionally. Patients were not permitted to complete the questionnaire themselves to ensure the accuracy and authenticity of the responses. After each survey, the questionnaire was promptly reviewed to ensure completeness, and it was assigned a questionnaire number and signed by the researcher.
Quality control
Prior to the investigation, all researchers involved received thorough training to ensure they were fully informed about the content and process of the survey. Repeated practice sessions ensured consistency among investigators, with the required standard of agreement (Kappa > 0.85) achieved before the official survey commenced. After ensuring uniformity in approach and content across interviewers, a pilot study was conducted. During the survey, the data’s accuracy and completeness were checked on-site, and any errors or omissions were corrected promptly. Each evening, the collected survey data were reviewed for quality assurance. After the survey was completed, double data entry was used to identify and eliminate questionnaires with more than 5% missing data.
Statistical analysis
Statistical analyses were completed utilizing R software (version 4.3.0). Data underwent tests for normality and variance homogeneity. Measurements adhering to a normal or near-normal distribution were described utilizing mean ± standard deviation (x ± s), while data not following were presented utilizing median and interquartile range (IQR). Normally distributed data with homogeneous variance were compared employing the t-test, and the corrected t-test was applied when variances were unequal. The Mann-Whitney U test was applied to compare non-normally distributed datasets. Pearson’s Chi-squared test was employed for categorical data comparison, while Fisher’s Exact Test with simulated p-values (based on 2,000 simulations) was utilized for precision in cases of small or unbalanced samples. The Wilcoxon rank-sum test was adopted to compare ranked data. P < 0.05 was deemed statistically significant.
Results
Demographic and clinical characteristics of participants
Table 1 presents the demographic characteristics of the enrolled subjects. The cohort consisted of 807 elderly non-psychiatric inpatients were included, with a prevalence of SI of 8.55%. Participants were categorized into two groups: 69 patients with SI and 738 patients without. The SI group contained a smaller percentage of males and a larger percentage of females (P = 0.008). Additionally, the SI group exhibited higher rates of chronic obstructive pulmonary disease (COPD), chronic kidney disease, and cancers (P < 0.001), more frequent hospitalizations (P < 0.001), higher rates of unemployment and liberal professions (P = 0.007), a higher prevalence of widowhood (p = 0.003), fewer children or no children (P = 0.030), and more individuals living alone (P = 0.031). The SI group also had a lower proportion of high-income families (P = 0.017), a higher prevalence of introverted or hybrid personalities (P = 0.035), and lower rates of no religious affiliation (P = 0.035). Furthermore, the SI group had a higher proportion of patients with more than four comorbidities (P < 0.001), more severe perceived illness (P < 0.001), lower albumin levels (p = 0.001), lower BMI (P = 0.007), lower hemoglobin levels (p = 0.007), higher phosphorus levels (p = 0.032), higher PHQ-8 scores (P < 0.001), lower BI scores (p < 0.001), and higher AIS scores (P < 0.001). Social support from family, measured by the PSS-Fa, also differed significantly (P = 0.006), and the wider range of family support scores in the SI group suggested greater variability.
Multiple logistic regression was implemented with the presence of SI as the dependent variable. The model integrated independent variables that emerged as significant predictors from the initial univariate analysis. These included scores from the PHQ-8, AIS, frequency of hospitalization, PSS-Fa, comorbidities, family income, and employment status (Table 2).
Nomogram for predicting SI in elderly non-psychiatric inpatients
A nomogram was constructed utilizing the “Nomogram” function in R (Fig. 1). In this model, individual predictors were quantified and assigned specific scores. The aggregate of these scores for each patient determined their total score, which directly correlated with their projected risk of SI on the nomogram’s risk scale. Consequently, a higher cumulative score on the nomogram indicates an increased risk of SI for the patient.A visualized nomogram for suicide risk was constructed using these predictors to provide medical staff and patients with quantitative risk estimates based on the patient’s current health status. Each predictor was displayed on the nomogram as columns, with a 0-100 scoring scale on the top axis. The corresponding range of values for each variable was represented in rows, with the length of each line segment denoting the relative significance of that variable in predicting risk. The predicted suicide risk for elderly non-psychiatric inpatients was represented by the total score on the risk axis, offering a clear and intuitive visual tool for risk assessment.
Comparison of general information of patients in the training and test sets
Totally 807 patients were randomly divided into training and test sets utilizing a computerized random number generator, with an 8:2 ratio. An analysis of the general characteristics between the two sets revealed no significant statistical differences (P > 0.05), indicating effective randomization. The analysis of differences in factors included in the training and test sets is shown in Table 3.
Evaluation of the nomogram prediction model and random forest prediction model based on independent predictors
The Nomogram prediction model was developed utilizing the glm function in R, and its discriminatory power was assessed by calculating the AUC. For SI among elderly non-psychiatric inpatients, the model demonstrated a AUC of 0.937 (95% CI: 0.904–0.970) in the training set and 0.939 (95% CI: 0.886–0.992) in the test set (Fig. 2), reflecting its high discriminatory capacity in both datasets (Fig. 2).
Using the Calibrate function in R, Bootstrap sampling was implemented on the training and test sets. The calibration curve plots, obtained after eliminating selective bias, showed that the curves closely overlapped with the diagonal line, indicating a high degree of calibration and internal consistency. The model’s calibration was further endorsed by its conformity in the Hosmer-Lemeshow test, where it showed no significant deviation (P > 0.05) (Fig. 3).
For a more intuitive presentation of the model’s accuracy, a confusion matrix heat map was constructed for the test set, visually confirming the model’s effectiveness in predicting the correct outcomes (Fig. 4).
The Nomogram model’s predictive capabilities were quantified utilizing various metrics, including accuracy, recall, precision, sensitivity, and the F1 score, across both datasets (Table 4). The analysis confirms the model’s exceptional predictive accuracy.
Construction and evaluation of random forest prediction models
Using the previously collected data, a Random Forest prediction model was constructed in Python, utilizing the Random Forest Classifier from the open-source machine learning toolkit, Scikit-learn. The importance of each independent predictor contributing to the risk of SI was calculated through feature importance evaluation. The predictors were ranked in descending order of importance as follows: PHQ-8, AIS, frequency of hospitalization, PSS-Fa, comorbidities, family income, and employment status (Fig. 5). The Random Forest model demonstrated its predictive strength with an AUC of 0.958 (95% CI: 0.934–0.982) in the training dataset, affirming its robust discriminative power. In the test set, the model maintained a high level of performance, recording an AUC of 0.905 (95% CI: 0.822–0.989), showcasing its consistent ability to differentiate outcomes across both datasets (Fig. 6).
A confusion matrix heat map for the test set was generated to summarize and visualize the prediction results of the Random Forest model. The heat map demonstrates that the model accurately predicted SI across the test set samples (Fig. 7). The model’s predictive capabilities were further assessed using key performance metrics such as accuracy, recall, precision, and the F1 score, for both datasets (Table 5). The model demonstrated strong predictive performance, with high values across all metrics in both sets.
Discussion
This study developed a multidimensional predictive model of suicide risk for elderly non-psychiatric inpatients, incorporating various factors such as demographic information, PHQ-8, AIS, BI, family income, comorbidities, and clinical laboratory data. Through feature importance analysis, we identified seven clinical variables affecting the prediction of suicidal ideation, in order of decreasing importance: PHQ-8, AIS, frequency of hospitalization, PSS-Fa, comorbidities, family income, and employment status. The comprehensiveness of these predictive factors adds significant value for clinical guidance and intervention. Upon reviewing the literature, we found that few studies have applied machine learning to construct predictive models for SI in hospitalized patients without psychiatric disorders. For example, Korean scholars [50] highlighted a model with an AUC below 0.9, which incorporated factors like depression, physical and mental stress, psychotropic medication use, caregiving responsibilities, future concerns, family size, oral health, basic needs fulfillment, and life frustrations. However, these factors are less applicable to elderly non-psychiatric inpatients.
In this study, a predictive model for SI in elderly non-psychiatric patients was developed and validated using machine learning algorithms. The dataset included 807 elderly non-psychiatric inpatients, with 646 cases in the training set and 161 cases in the test set. The efficacy of the models was assessed by comparing performance metrics such as accuracy to identify the optimal prediction algorithm. The AUC values of both the Nomogram and Random Forest models exceeded 0.9 for the training and test sets, indicating good discriminatory ability.
In machine learning, evaluating the performance of a model is critical. Accuracy, Precision, Sensitivity, and the F1 Score are commonly used performance metrics that assess the effectiveness of classification models from different perspectives. Accuracy represents the ratio of correctly predicted samples to the total number of samples, focusing on the overall prediction accuracy. Precision focuses on the accuracy of samples predicted as positive, while Sensitivity primarily evaluates the model’s ability to identify positive samples. The F1 Score, on the other hand, provides a balanced consideration of both Precision and Sensitivity. A higher F1 Score indicates better performance in both Precision and Sensitivity, making it a more comprehensive evaluation metric. In this study, accuracy, precision, F1, and sensitivity values for both models were above 0.9, demonstrating excellent predictive performance. Specifically, the Random Forest model demonstrated superior predictive capabilities, registering an AUC of 0.958 in the training dataset (95% CI: 0.934–0.982), with an accuracy of 0.952, precision of 0.962, and sensitivity of 0.987, outperforming the Nomogram model in predictive performance.
In the model, the PHQ-8 score (OR = 1.022, 95% CI: 1.017–1.027) emerged as the most significant predictor, ranking as the most important risk factor. Each incremental increase in the PHQ-8 score was associated with a 1.022-fold increase in the risk of SI. Notably, while the study focused on elderly patients with non-psychiatric illnesses, the results highlighted a marked linkage between SI and the presence of depressive symptoms among participants. A total PHQ-8 score of ≥ 10 is typically indicative of depressive symptoms, suggesting that some elderly patients in this study may have experienced psychological distress or depression. Suicide screening and mental health assessment were low in older elderly [3]. Therefore, to prevent suicide in elderly non-psychiatric patients, it is crucial to enhance psychological screening and evaluation, paying close attention to depressive symptoms and mental health issues in this population.
In the model, the AIS score (OR = 1.005, 95% CI: 1.001–1.009) was identified as a critical risk factor for SI. There is extensive research indicating that insomnia is a key risk factor that may elevate the likelihood of suicide, and it is considered a modifiable risk factor [51,52,53,54,55]. Moreover, insomnia accompanied by short sleep duration has been shown to elevate the risk of suicide, indicating the importance of assessing both abnormal sleep duration and insomnia symptoms during suicide risk evaluations [56]. The AIS score, which provides a reliable measure for diagnosing insomnia and assessing its severity, includes key aspects such as total sleep time and time to fall asleep. Given its simplicity, the AIS score could be incorporated into the suicide risk assessment framework in general hospitals to improve monitoring and intervention for suicide risk.
Unemployment was also significantly associated with SI and emerged as an independent predictor in the model. Unemployment may increase feelings of despair among elderly patients, thereby elevating their risk of suicide [57]. Similarly, low family income was significantly associated with SI, as it negatively impacts patients’ mental health [58, 59]. Both unemployment and lower family income contribute to psychological distress in elderly inpatients, potentially increasing their suicide risk.
A novel finding in our study was that the frequency of hospitalization (OR = 1.007, 95% CI: 1.002–1.011) was linked to SI and was an independent predictor in the model. Frequent hospitalizations may exacerbate the economic, familial, and psychological burdens on elderly patients, leading to greater emotional strain. The added financial and familial pressures may elevate the risk of suicide in this population [57].
Comorbidity (OR = 1.088, 95% CI: 1.004–1.178) of four or more illnesses was significantly associated with SI. Comorbidity, defined as the coexistence of two or more chronic health conditions, poses a substantial risk. Older adults with multiple chronic diseases experience severe psychological distress, which may elevate the risk of SI and potential suicide attempts due to factors such as social exclusion, functional limitations, perceived burden, and financial strain [60]. As the number of illnesses increases, the risk of SI also rises [60, 61]. Patients with multiple comorbidities face heavy financial burdens, which may further increase their risk of suicide [57]. Additionally, the complexity of managing multiple conditions, which often requires specialized treatment from multiple healthcare providers, can heighten feelings of despair and anxiety, leading to an increased risk of suicide [62].
PSS-Fa (OR = 0.987, 95% CI: 0.978–0.996) was linked to SI. Family support is a critical protective factor against SI in elderly patients [35]. As individuals age, their families often become their primary source of both practical and emotional support, which is essential for their well-being [63]. Low levels of family support, coupled with the psychological burden many elderly patients face, tend to increase the risk of suicide.
In our analysis, measures such as triglycerides, total cholesterol, and low-density lipoprotein cholesterol (LDL-C) did not show a significant correlation with SI. This finding contrasts with other studies; for instance, American researchers have noted that a higher ratio of non-high-density lipoprotein cholesterol to high-density lipoprotein cholesterol (NHHR) correlates with an increased likelihood of SI [64]. Similarly, findings from Korea indicate a significant association between lower triglyceride levels and a decreased risk of SI in men [65], and low levels of LDL-C were linked to a higher risk of SI among Korean men over the age of 19 [66]. The discrepancies between our results and those from other regions may stem from variations in demographic or regional characteristics.
Conclusion
This study is innovative in that it applies machine learning algorithms to construct a visual nomogram for predicting SI in elderly non-psychiatric inpatients, offering a simple and intuitive tool for clinical use. This model can assist in early screening for individuals at risk of SI and provide quantitative risk assessments for healthcare providers. Additionally, we developed a Random Forest prediction model for SI in this population. Both the Nomogram and Random Forest models were validated, demonstrating high accuracy, sensitivity, and precision. These models provide a promising method for suicide prevention among elderly non-psychiatric inpatients in general hospitals, enabling targeted psychological interventions to prevent suicide and other adverse safety events.
However, the clinical interpretation of these results requires cautious optimism. Notably, existing evidence suggests that the predictive validity of SI for actual suicidal behaviors is limited.Meta-analyses indicate that even among individuals expressing SI, the transition rates to suicide attempts or deaths are low, particularly in non-psychiatric populations. In the non-psychiatric population with suicidal ideation (SI), the 12-month cumulative suicide risk was 0.23% (95% CI 0.10–0.54) [67, 68]. These findings highlight the critical need to contextualize model predictions within broader risk assessment frameworks, rather than relying solely on SI as a definitive marker.
This research has certain constraints that must be acknowledged. First, the dataset for participants reporting SI (n = 69) and stroke survivors (n = 32) was limited in size. The limited sample sizes of SI and stroke survivor may have elevated overfitting risks in the machine learning. While Fisher’s exact test and internal validation procedures partially mitigated this limitation, the external validity of these findings requires confirmation through future research employing larger, clinically diverse cohorts with longitudinal follow-up. Second, the single-center design (conducted in an urban tertiary hospital) may limit the applicability of findings to healthcare settings with disparities in resource distribution or infrastructure capacity. The exclusion of departments such as surgery, infectious diseases, and obstetrics could reduce the external validity of results for hospitals with different departmental configurations. Urban-focused cohort selection further restricts rural population applicability, given urban-rural disparities in socioeconomic factors and healthcare access that may impact clinical outcomes. Third, while suicide risk is multifactorial in nature, with psychache (e.g., feelings of hopelessness, existential distress) serving as a core driver [69], this study did not incorporate dedicated instruments to quantify psychache. Although depressive symptoms were evaluated using the PHQ-9, the absence of psychache-specific measures may have limited the mechanistic interpretation of psychological risk dimensions. Furthermore, pandemic-specific stressors (e.g., COVID-19-related social isolation, healthcare disruptions) were not systematically evaluated, despite evidence linking heightened elderly suicide risk during the pandemic to isolation, reduced mental healthcare access, and crisis-exacerbated economic instability [70]. Future research should explicitly examine how cross-cultural differences in crisis response protocols moderate these effects. Additionally, the cross-sectional nature of this study restricts our ability to explore or establish any temporal or causal relationships, potentially leading to biases in interpreting the results. Importantly, while our models achieved high statistical performance, their clinical utility may be constrained by the inherently low base rate of suicidal outcomes in this population, necessitating further validation in larger, prospective cohorts.
In the future, we plan to develop a suicide risk prediction app based on this model for use in large-scale clinical practice. To enhance real-world applicability, this tool will integrate multimodal risk indicators beyond SI. Such an approach may help healthcare professionals make more informed decisions, maximizing the clinical value of predictive models while mitigating over-reliance on single risk factors.
Data availability
The datasets generated during and/or analyzed during the current study are available from the corresponding author by request.
Abbreviations
- WHO:
-
World Health Organization
- SI:
-
Suicide Ideation
- MMSE:
-
Mini-mental state examination
- MMSE:
-
Mini-mental state examination
- PHQ-9:
-
Patient Health Questionnaire-9
- PHQ-8:
-
Patient Health Questionnaire-8
- PSS-fa:
-
Perceived Social Support from family scale
- AUC:
-
Area Under Curve
- BI:
-
Barthel Index
- CI:
-
Interval
- ROC:
-
Receiver Operating Characteristic
- COPD:
-
Chronic Obstructive Pulmonary Disease
- Hb:
-
Hemoglobin
- BMI:
-
Body Mass Index
- ALB:
-
Albumin
- CRP:
-
C Reactive Protein
- Ca:
-
Calcium
- P:
-
Phosphorus
- UA:
-
Uric Acid
- GLU:
-
Glucose
- TG:
-
Triglyceride
- TC:
-
Total cholesterol
- HDL-C:
-
High density lipoprotein cholesterol
- LDL-C:
-
Low density lipoprotein cholesterol
- NHHR:
-
non-High-density lipoprotein cholesterol to High density lipoprotein cholesterol ratio
References
Roth GA, Abate D, Abate KH, Abay SM, Abbafati C, Abbasi N, Abbastabar H, Abd-Allah F, Abdela J, Abdelalim A, et al. Global, regional, and National age-sex-specific mortality for 282 causes of death in 195 countries and territories, 1980–2017: a systematic analysis for the global burden of disease study 2017. Lancet. 2018;392(10159):1736–88.
Beghi M, Butera E, Cerri CG, Cornaggia CM, Febbo F, Mollica A, Berardino G, Piscitelli D, Resta E, Logroscino G, et al. Suicidal behaviour in older age: A systematic review of risk factors associated to suicide attempts and completed suicides. NEUROSCI BIOBEHAV R. 2021;127:193–211.
Ding OJ, Kennedy GJ. Understanding vulnerability to Late-Life suicide. CURR PSYCHIAT REP. 2021;23(9):58.
Wan Q, Ding X, Hu D, Han Y, Wang S, Liu Y, Wu C, Huang L, Lu R, Xu K. A study of the epidemiology and risk factors for attempted suicide and suicide among non-psychiatric inpatients in 48 general hospitals in Hubei Province, China, 2015–2017. GEN HOSP PSYCHIAT. 2020;63:21–9.
Tseng MC, Cheng IC, Hu FC. Standardized mortality ratio of inpatient suicide in a general hospital. J FORMOS MED ASSOC. 2011;110(4):267–9.
Liao J, Rosenheck R, Sun B, Liu J, Shen Y, Yuan S, Ma Y, Zhang J, Zhang R, Zheng L, et al. Prevalence and correlates of suicide risk among non-psychiatric inpatients in a general hospital in China. J AFFECT DISORDERS. 2024;347:509–14.
Creuze C, Lestienne L, Vieux M, Chalancon B, Poulet E, Leaune E. Lived experiences of suicide bereavement within families: A qualitative study. INT J ENV RES PUB HE 2022, 19(20).
Sokolowski M, Wasserman J, Wasserman D. An overview of the neurobiology of suicidal behaviors as one meta-system. MOL PSYCHIATR. 2015;20(1):56–71.
Xue C, Yang Y, Xu K, Shi X, Liu H. Health personnel-targeted education interventions on inpatient suicide prevention in general hospitals: A scoping review. INT J NURS SCI. 2020;7(4):477–83.
Takahashi C, Chida F, Nakamura H, Akasaka H, Yagi J, Koeda A, Takusari E, Otsuka K, Sakai A. The impact of inpatient suicide on psychiatric nurses and their need for support. BMC Psychiatry. 2011;11:38.
Alshutwi M, Alawad M, Alammari M, Almanea M, Alhumaid R, Alkhalifah AS, Alosaimi FD. Perceived impact of patients’ suicide and serious suicidal attempts on their treating psychiatrists and trainees: a National cross-sectional study in Saudi Arabia. BMC Psychiatry. 2023;23(1):607.
Harmer B, Lee S, Duong T, Saadabadi A. Suicidal Ideation. 2024.
Cohen CI, Abdallah CG, Diwan S. Suicide attempts and associated factors in older adults with schizophrenia. SCHIZOPHR RES. 2010;119(1–3):253–7.
Lundin A, Bergenheim A. Encountering suicide in primary healthcare rehabilitation: the experiences of physiotherapists. BMC Psychiatry. 2020;20(1):597.
Rukundo GZ, Wakida EK, Maling S, Kaggwa MM, Sserumaga BM, Atim LM, Atuhaire CD, Obua C. Knowledge, attitudes, and experiences in suicide assessment and management: a qualitative study among primary health care workers in Southwestern Uganda. BMC Psychiatry. 2022;22(1):605.
Graham RD, Rudd MD, Bryan CJ. Primary care providers’ views regarding assessing and treating suicidal patients. SUICIDE LIFE-THREAT. 2011;41(6):614–23.
Fairweather AK, Anstey KJ, Rodgers B, Jorm AF, Christensen H. Age and gender differences among Australian suicide ideators: prevalence and correlates. J NERV MENT DIS. 2007;195(2):130–6.
Kolves K, Ide N, De Leo D. Suicidal ideation and behaviour in the aftermath of marital separation: gender differences. J AFFECT DISORDERS. 2010;120(1–3):48–53.
Jukkala T, Stickley A, Makinen IH, Baburin A, Sparen P. Age, period and cohort effects on suicide mortality in Russia, 1956–2005. BMC Public Health. 2017;17(1):235.
Nie Y, Hu Z, Zhu T, Xu H. A Cross-Sectional study of the prevalence of and risk factors for suicidal ideation among the elderly in nursing homes in Hunan Province, China. FRONT PSYCHIATRY. 2020;11:339.
Luo Y, Lai Q, Huang H, Luo J, Miao J, Liao R, Yang Z, Zhang L. Risk factor analysis and nomogram construction for predicting suicidal ideation in patients with cancer. BMC Psychiatry. 2022;22(1):353.
Hauser M, Galling B, Correll CU. Suicidal ideation and suicide attempts in children and adolescents with bipolar disorder: a systematic review of prevalence and incidence rates, correlates, and targeted interventions. BIPOLAR DISORD. 2013;15(5):507–23.
Okolie C, Dennis M, Simon TE, John A. A systematic review of interventions to prevent suicidal behaviors and reduce suicidal ideation in older people. INT PSYCHOGERIATR. 2017;29(11):1801–24.
Laflamme L, Vaez M, Lundin K, Sengoelge M. Prevention of suicidal behavior in older people: A systematic review of reviews. PLoS ONE. 2022;17(1):e262889.
Zhang D, Wang R, Zhao X, Zhang J, Jia J, Su Y, Wang K. Role of resilience and social support in the relationship between loneliness and suicidal ideation among Chinese nursing home residents. AGING MENT HEALTH. 2021;25(7):1262–72.
Chan HL, Liu CY, Chau YL, Chang CM. Prevalence and association of suicide ideation among Taiwanese elderly–a population-based cross-sectional study. Chang Gung Med J. 2011;34(2):197–204.
Bernert RA, Turvey CL, Conwell Y, Joiner TJ. Association of poor subjective sleep quality with risk for death by suicide during a 10-year period: a longitudinal, population-based study of late life. JAMA PSYCHIAT. 2014;71(10):1129–37.
Zhang D, Yang Y, Sun Y, Wu M, Xie H, Wang K, Zhang J, Jia J, Su Y. Characteristics of the Chinese rural elderly living in nursing homes who have suicidal ideation: A multiple regression model. GERIATR NURS. 2017;38(5):423–30.
Cheung G, Edwards S, Sundram F. Death wishes among older people assessed for home support and long-term aged residential care. INT J GERIATR PSYCH. 2017;32(12):1371–80.
McCrae RR, John OP. An introduction to the five-factor model and its applications. J PERS. 1992;60(2):175–215.
Goldberg LR. The structure of phenotypic personality traits. AM PSYCHOL. 1993;48(1):26–34.
McCrae RR, Costa PJ. Personality trait structure as a human universal. AM PSYCHOL. 1997;52(5):509–16.
Grant AM. Rethinking the extraverted sales ideal: the ambivert advantage. PSYCHOL SCI. 2013;24(6):1024–30.
Procidano ME, Heller K. Measures of perceived social support from friends and from family: three validation studies. AM J COMMUN PSYCHOL. 1983;11(1):1–24.
Miao H, Lu H, Sun Y, Ji J, Lu Y, Meng Y, Wang C, Ding W, Chen X. The protective influence of family support on anxiety, depressive symptoms, and suicidal ideation among elderly Chinese nursing home residents: A study of serial mediation. Medicine. 2024;103(4):e36930.
Zhang Y, Chen X, Sun Y, Feng S, Wang F, Gu H, Jia H, Zhang Q, Ding W, Lu H, et al. Relationship of widowhood with pulse pressure, fasting blood glucose, and mental health in older adults: a propensity matching score analysis. FRONT PUBLIC HEALTH. 2023;11:1257133.
Matzen LE, Jepsen DB, Ryg J, Masud T. Functional level at admission is a predictor of survival in older patients admitted to an acute geriatric unit. BMC GERIATR. 2012;12:32.
Kang Y, Fang XY, Wang D, Wang XJ. Activity of daily living upon admission is an independent predictor of in-hospital mortality in older patients with community-acquired pneumonia. BMC INFECT DIS. 2021;21(1):314.
Arias DLTJ, Vilagut G, Ronaldson A, Valderas JM, Bakolis I, Dregan A, Molina AJ, Navarro-Mateu F, Pérez K, Bartoll-Roca X, et al. Reliability and cross-country equivalence of the 8-item version of the patient health questionnaire (PHQ-8) for the assessment of depression: results from 27 countries in Europe. LANCET REG HEALTH-EU. 2023;31:100659.
Soldatos CR, Dikeos DG, Paparrigopoulos TJ. Athens insomnia scale: validation of an instrument based on ICD-10 criteria. J PSYCHOSOM RES. 2000;48(6):555–60.
Jahrami H, Trabelsi K, Saif Z, Manzar MD, BaHammam AS, Vitiello MV. Reliability generalization meta-analysis of the Athens insomnia scale and its translations: examining internal consistency and test-retest validity. SLEEP MED. 2023;111:133–45.
Soldatos CR, Dikeos DG, Paparrigopoulos TJ. The diagnostic validity of the Athens insomnia scale. J PSYCHOSOM RES. 2003;55(3):263–7.
Tordoff DM, Wanta JW, Collin A, Stepney C, Inwards-Breland DJ, Ahrens K. Mental health outcomes in transgender and nonbinary youths receiving Gender-Affirming care. JAMA NETW OPEN. 2022;5(2):e220978.
Xu S, Ju Y, Wei X, Ou W, Ma M, Lv G, Zhao X, Qin Y, Li Y, Li L, et al. Network analysis of suicide ideation and depression-anxiety symptoms among Chinese adolescents. GEN PSYCHIAT. 2024;37(2):e101225.
Penfold RB, Whiteside U, Johnson EE, Stewart CC, Oliver MM, Shortreed SM, Beck A, Coleman KJ, Rossom RC, Lawrence JM, et al. Utility of item 9 of the patient health questionnaire in the prospective identification of adolescents at risk of suicide attempt. SUICIDE LIFE-THREAT. 2021;51(5):854–63.
Bryan CJ, Allen MH, Bryan AO, Thomsen CJ, Baker JC, May AM. Does suicide risk screening improve the identification of primary care patients who will attempt suicide versus depression screening alone?? JT COMM J QUAL PATIE. 2023;49(12):680–8.
Bryan CJ, Allen MH, Thomsen CJ, May AM, Baker JC, Bryan AO, Harris JA, Cunningham CA, Taylor KB, Wine MD, et al. Improving suicide risk screening to identify the highest risk patients: results from the primary care screening methods (PRISM) study. ANN FAM MED. 2021;19(6):492–8.
Sattler A, Dunn J, Albarran M, Berger C, Calugar A, Carper J, Chirravuri L, Jawad N, Zein M, McGovern M. Asynchronous versus synchronous screening for depression and suicidality in a primary health care system: quality improvement study. JMIR MENT HEALTH. 2024;11:e50192.
Kim S, Lee HK, Lee K. Which PHQ-9 items can effectively screen for suicide?? Machine learning approaches. INT J ENV RES PUB HE 2021, 18(7).
Jung HW, Jang JS. Constructing prediction models and analyzing factors in suicidal ideation using machine learning, focusing on the older population. PLoS ONE. 2024;19(7):e305777.
Lavigne JE, Hur K, Gibbons JB, Pigeon WR. Associations between insomnia medications and risk of death by suicide. SLEEP MED. 2023;111:199–206.
Pigeon WR, Caine ED. Insomnia and the risk for suicide: does sleep medicine have interventions that can make a difference? SLEEP MED. 2010;11(9):816–7.
Ruggieri V. [Autism, depression and risk of suicide]. MEDICINA-BUENOS AIRE. 2020;80(Suppl 2):12–6.
Vargas I, Perlis ML, Grandner M, Gencarelli A, Khader W, Zandberg LJ, Klingaman EA, Goldschmied JR, Gehrman PR, Brown GK, et al. Insomnia symptoms and Suicide-Related ideation in U.S. Army service members. BEHAV SLEEP MED. 2020;18(6):820–36.
Woznica AA, Carney CE, Kuo JR, Moss TG. The insomnia and suicide link: toward an enhanced Understanding of this relationship. SLEEP MED REV. 2015;22:37–46.
Hedström AK, Hössjer O, Bellocco R, Ye W, Trolle LY, Åkerstedt T. Insomnia in the context of short sleep increases suicide risk. Sleep 2021, 44(4).
Elbogen EB, Lanier M, Montgomery AE, Strickland S, Wagner HR, Tsai J. Financial strain and suicide attempts in a nationally representative sample of US adults. AM J EPIDEMIOL. 2020;189(11):1266–74.
Sherman BW, Lawrence DF, Kuharic M, Chrones L, Patel S, Touya M. Mental health diagnoses and services utilization vary by wage level. AM J MANAG CARE. 2023;29(4):173–8.
Thomson RM, Igelström E, Purba AK, Shimonovich M, Thomson H, McCartney G, Reeves A, Leyland A, Pearce A, Katikireddi SV. How do income changes impact on mental health and wellbeing for working-age adults? A systematic review and meta-analysis. LANCET PUBLIC HEALTH. 2022;7(6):e515–28.
Xiong F, Wang L, Shen L, Guo W, Li S, Guan Q. The relationship between Multimorbidity and suicidal ideation: A meta-analysis. J PSYCHOSOM RES. 2020;138:110257.
Jing Z, Li J, Fu PP, Wang Y, Yuan Y, Zhao D, Hao W, Yu C, Zhou C. Physical Multimorbidity and lifetime suicidal ideation and plans among rural older adults: the mediating role of psychological distress. BMC Psychiatry. 2021;21(1):78.
Qiu T, Klonsky ED, Klein DN. Hopelessness predicts suicide ideation but not attempts: A 10-Year longitudinal study. SUICIDE LIFE-THREAT. 2017;47(6):718–22.
Amiya RM, Poudel KC, Poudel-Tandukar K, Pandey BD, Jimba M. Perceived family support, depression, and suicidal ideation among people living with HIV/AIDS: a cross-sectional study in the Kathmandu Valley, Nepal. PLoS ONE. 2014;9(3):e90959.
Qing G, Deng W, Zhou Y, Zheng L, Wang Y, Wei B. The association between non-high-density lipoprotein cholesterol to high-density lipoprotein cholesterol ratio (NHHR) and suicidal ideation in adults: a population-based study in the united States. LIPIDS HEALTH DIS. 2024;23(1):17.
Shin HY, Kang G, Kang HJ, Kim SW, Shin IS, Yoon JS, Kim JM. Associations between serum lipid levels and suicidal ideation among Korean older people. J AFFECT DISORDERS. 2016;189:192–8.
Cho H, Shin J, Choi JK. Serum lipid levels and suicidal ideation of adults: A Cross-Sectional study using the Korea National health and nutrition examination survey. J CLIN MED 2023, 12(13).
Hubers A, Moaddine S, Peersmann S, Stijnen T, van Duijn E, van der Mast RC, Dekkers OM, Giltay EJ. Suicidal ideation and subsequent completed suicide in both psychiatric and non-psychiatric populations: a meta-analysis. EPIDEMIOL PSYCH SCI. 2018;27(2):186–98.
Ribeiro JD, Franklin JC, Fox KR, Bentley KH, Kleiman EM, Chang BP, Nock MK. Self-injurious thoughts and behaviors as risk factors for future suicide ideation, attempts, and death: a meta-analysis of longitudinal studies. PSYCHOL MED. 2016;46(2):225–36.
Pompili M. On mental pain and suicide risk in modern psychiatry. ANN GEN PSYCHIATR. 2024;23(1):6.
Barlattani T, D’Amelio C, Capelli F, Mantenuto S, Rossi R, Socci V, Stratta P, Di Stefano R, Rossi A, Pacitti F. Suicide and COVID-19: a rapid scoping review. ANN GEN PSYCHIATR. 2023;22(1):10.
Funding
This study was funded by Guangzhou Municipal Science and Technology Bureau (SL2023A03J00112).
Author information
Authors and Affiliations
Contributions
S.Y.X. has full access to all the data in the study and takes responsibility for the integrity of the data and the accuracy of the data analysis. J.C.C. and D.X.S. are responsible for the concept of the study. J. L.Z., Y.L., D.N.L., L.X.H., X.H.C. M.Z.D. and C.Y.T. conducted the questionnaire. S.Y.X.,D.X.S. and C.Y.T. are responsible for the statistical analysis. All authors made substantial contributions to the study design, analysis and interpretation of data, and the writing of the manuscript.
Corresponding authors
Ethics declarations
Ethical approval and consent to participate
The study was conducted in accordance with the guidelines of the Declaration of Helsinki and approved by the Medical Ethics Committee of Guangdong Provincial Hospital of Chinese Medicine (number: ZF2023-453-01). Informed consent was obtained from each participant with the right to withdraw from the study at any time and their names and other confidential information were protected. The participants were not harmed.
Consent for publication
Not Applicable.
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Xiong, S., Si, D., Ding, M. et al. Construction and validation of a predictive model for suicidal ideation in non-psychiatric elderly inpatients. BMC Geriatr 25, 322 (2025). https://doiorg.publicaciones.saludcastillayleon.es/10.1186/s12877-025-05980-z
Received:
Accepted:
Published:
DOI: https://doiorg.publicaciones.saludcastillayleon.es/10.1186/s12877-025-05980-z