Development and internal validation of machine learning models for identifying suicidal behavior in inpatients with mood disorders.

IF 3.8 3区 医学 Q2 PSYCHIATRY
Frontiers in Psychiatry Pub Date : 2026-10-05 eCollection Date: 2026-01-01 DOI:10.3389/fpsyt.2026.1950186
Sixiang Liang, Qitong Jiang, Jinhe Zhang, Yannan Deng, Yuxuan Xu, Guangwei Zhao, Xinyu Liu, Yujie Xing, Hongye Yu, Chen Hu, Sha Sha
{"title":"Development and internal validation of machine learning models for identifying suicidal behavior in inpatients with mood disorders.","authors":"Sixiang Liang, Qitong Jiang, Jinhe Zhang, Yannan Deng, Yuxuan Xu, Guangwei Zhao, Xinyu Liu, Yujie Xing, Hongye Yu, Chen Hu, Sha Sha","doi":"10.3389/fpsyt.2026.1950186","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Suicidal behavior (SB) is a major concern in mood disorders. Models developed from retrospective records are vulnerable to ambiguous targets, data leakage, and inappropriate handling of class imbalance. We developed and internally validated a model to identify the risk of suicidal behavior in patients with mood disorders upon admission.</p><p><strong>Methods: </strong>The dataset included 1, 099 inpatients with ICD-10 mood disorders admitted to Beijing Anding Hospital in 2022. Exclusion of 20 records with more than 20% row-level missingness and one record without an outcome left 1, 078 patients, including 126 with SB. Current SB comprised documented suicidal ideation, planning, or attempt within the three months before index admission, including the admission assessment. Previous SB and previous suicide attempt (SA) referred to events more than three months before admission. Elastic Net selected 14 predictors from 65 candidates in the development set. We compared 13 classifiers from six model families. All preprocessing and resampling were confined to training folds, and evaluation used only observed patients. Assessment included repeated fivefold cross-validation, probability calibration, bootstrap confidence intervals, precision-recall and decision-curve analyses, clinical baselines, and sensitivity analyses.</p><p><strong>Results: </strong>The analytic cohort comprised 952 SB-negative and 126 SB-positive patients (11.69%). The development set contained 864 patients (97 SB-positive), and the observed test set contained 214 patients (29 SB-positive). Calibrated linear discriminant analysis (LDA) provided the most consistent balance of discrimination and calibration. In repeated cross-validation, mean AUC was 0.721 ± 0.052, mean AUPRC was 0.268 ± 0.060, and mean Brier score was 0.095. In the observed test set, AUC was 0.704 (0.597-0.803), AUPRC was 0.283 (0.198-0.453), and Brier score was 0.111. At the training-derived threshold of 0.111, sensitivity was 0.552 and specificity was 0.659. The leading SHAP contributions were onset-polarity category, previous SA, age, and previous SB, but all attributions were associational.</p><p><strong>Conclusions: </strong>Model performance was acceptable. These internally validated findings are exploratory and require prospective assessment, standardized outcome measurement, and external validation before clinical use.</p>","PeriodicalId":12605,"journal":{"name":"Frontiers in Psychiatry","volume":"17 ","pages":"1950186"},"PeriodicalIF":3.8000,"publicationDate":"2026-10-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13678466/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Psychiatry","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.3389/fpsyt.2026.1950186","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"Q2","JCRName":"PSYCHIATRY","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Suicidal behavior (SB) is a major concern in mood disorders. Models developed from retrospective records are vulnerable to ambiguous targets, data leakage, and inappropriate handling of class imbalance. We developed and internally validated a model to identify the risk of suicidal behavior in patients with mood disorders upon admission.

Methods: The dataset included 1, 099 inpatients with ICD-10 mood disorders admitted to Beijing Anding Hospital in 2022. Exclusion of 20 records with more than 20% row-level missingness and one record without an outcome left 1, 078 patients, including 126 with SB. Current SB comprised documented suicidal ideation, planning, or attempt within the three months before index admission, including the admission assessment. Previous SB and previous suicide attempt (SA) referred to events more than three months before admission. Elastic Net selected 14 predictors from 65 candidates in the development set. We compared 13 classifiers from six model families. All preprocessing and resampling were confined to training folds, and evaluation used only observed patients. Assessment included repeated fivefold cross-validation, probability calibration, bootstrap confidence intervals, precision-recall and decision-curve analyses, clinical baselines, and sensitivity analyses.

Results: The analytic cohort comprised 952 SB-negative and 126 SB-positive patients (11.69%). The development set contained 864 patients (97 SB-positive), and the observed test set contained 214 patients (29 SB-positive). Calibrated linear discriminant analysis (LDA) provided the most consistent balance of discrimination and calibration. In repeated cross-validation, mean AUC was 0.721 ± 0.052, mean AUPRC was 0.268 ± 0.060, and mean Brier score was 0.095. In the observed test set, AUC was 0.704 (0.597-0.803), AUPRC was 0.283 (0.198-0.453), and Brier score was 0.111. At the training-derived threshold of 0.111, sensitivity was 0.552 and specificity was 0.659. The leading SHAP contributions were onset-polarity category, previous SA, age, and previous SB, but all attributions were associational.

Conclusions: Model performance was acceptable. These internally validated findings are exploratory and require prospective assessment, standardized outcome measurement, and external validation before clinical use.

用于识别情绪障碍住院患者自杀行为的机器学习模型的开发和内部验证。
背景:自杀行为(SB)是情绪障碍的主要关注点。从回顾性记录中开发的模型容易受到模糊目标、数据泄漏和类不平衡处理不当的影响。我们开发并内部验证了一个模型,以确定入院时情绪障碍患者的自杀行为风险。方法:收集2022年北京安定医院住院的1099例ICD-10心境障碍患者。排除了20例排级缺失率超过20%的记录和1例无结果的记录,剩下1078例患者,其中126例患有SB。目前的SB包括在索引入院前三个月内记录的自杀意念、计划或企图,包括入院评估。“自杀未遂”指的是入院前三个月以上的事件。Elastic Net从开发集中的65个候选预测器中选择了14个预测器。我们比较了来自6个模型家族的13个分类器。所有预处理和重采样仅限于训练折叠,评估仅使用观察到的患者。评估包括重复的五倍交叉验证、概率校准、自举置信区间、精密度-召回率和决策曲线分析、临床基线和敏感性分析。结果:分析队列包括952例sb阴性患者和126例sb阳性患者(11.69%)。开发组包含864例患者(97例sb阳性),观察组包含214例患者(29例sb阳性)。校正后的线性判别分析(LDA)提供了最一致的判别和校正平衡。经反复交叉验证,平均AUC为0.721±0.052,平均AUPRC为0.268±0.060,平均Brier评分为0.095。在观察的测试集中,AUC为0.704 (0.597 ~ 0.803),AUPRC为0.283 (0.198 ~ 0.453),Brier评分为0.111。训练阈值为0.111时,敏感性为0.552,特异性为0.659。SHAP的主要贡献是发病极性类别、既往SA、年龄和既往SB,但所有归因都是相关的。结论:模型性能可接受。这些内部验证的发现是探索性的,需要前瞻性评估、标准化的结果测量和临床应用前的外部验证。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Frontiers in Psychiatry
Frontiers in Psychiatry Medicine-Psychiatry and Mental Health
CiteScore
6.20
自引率
8.50%
发文量
2813
审稿时长
14 weeks
期刊介绍: Frontiers in Psychiatry publishes rigorously peer-reviewed research across a wide spectrum of translational, basic and clinical research. Field Chief Editor Stefan Borgwardt at the University of Basel is supported by an outstanding Editorial Board of international researchers. This multidisciplinary open-access journal is at the forefront of disseminating and communicating scientific knowledge and impactful discoveries to researchers, academics, clinicians and the public worldwide. The journal''s mission is to use translational approaches to improve therapeutic options for mental illness and consequently to improve patient treatment outcomes.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书