Machine learning-based identification of depression in older patients with type 2 diabetes mellitus: A multicenter retrospective study.
Xiao Zhang, Juntao Tan, Manni Xiao, Yuxin He, Si Tang
Department of Medical Records and Statistics, Affiliated Banan Hospital of Chongqing Medical University, Chongqing, China. · College of Artificial Intelligence Medicine, Chongqing Medical University, Chongqing, China.
Key points
From the paper's conclusion- Early identification of depression in this vulnerable population remains challenging due to the absence of practical, externally validated screening tools tailored to routine clinical settings in China.MethodsIn this multicenter retrospective study, we developed and validated nine machine learning classifiers to identify clinically documented depression in older patients (aged ≥ 65 years) with T2D
Abstract
ObjectiveType 2 diabetes mellitus (T2DM) and depression frequently co-occur in older adults, creating a bidirectional relationship that complicates disease management and worsens clinical outcomes. Early identification of depression in this vulnerable population remains challenging due to the absence of practical, externally validated screening tools tailored to routine clinical settings in China.MethodsIn this multicenter retrospective study, we developed and validated nine machine learning classifiers to identify clinically documented depression in older patients (aged ≥ 65 years) with T2DM during hospitalization, using electronic health records from 31,980 individuals across six centers. Candidate predictors encompassed demographic characteristics, comorbidities, lifestyle factors, and 15 composite laboratory biomarkers. Least absolute shrinkage and selection operator (LASSO) regression was applied for feature selection, and model performance was evaluated via discrimination (area under the receiver operating characteristic curve (AUC)), calibration, and decision curve analysis across training, internal validation, and institutionally independent external validation sets.ResultsSeven predictors-age, sex, hypertension, cerebrovascular disease (CeVD), drinking history, surgical history, and neutrophil-to-albumin ratio (NAR)-were retained as selected predictors associated with model-predicted depression risk. All nine algorithms except SVM showed comparable discriminative performance in the external validation set (AUCs 0.769-0.772). XGBoost achieved AUCs of 0.836 (95% CI: 0.829-0.843), 0.784 (95% CI: 0.771-0.797), and 0.772 (95% CI: 0.756-0.787) in the training, internal validation, and external validation sets, respectively, which was comparable to logistic regression (LR) (AUC = 0.772) in the external validation set. XGBoost was therefore selected as a representative model for SHAP-based interpretability analysis.ConclusionsThe machine learning model, integrating routinely available clinical and laboratory variables, may offer an interpretable and institutionally externally validated tool for depression identification in older Chinese patients with T2DM. Its discriminative performance was moderate (external validation AUC = 0.772) and comparable to that of conventional LR, with no clear advantage of more complex algorithms and only minimal differences among most models. Validation in other geographic regions and healthcare systems is warranted.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development of an explainable machine learning model for predicting depression in adults with type 2 diabetes mellitus: A cross-sectional SHAP-based analysis of NHANES 2009–2023Medicine · 2026
- Prediction model for depression risk in middle-aged and elderly patients with metabolic syndrome: a nomogram and interpretable machine learning approach based on CHARLSBMC Psychiatry · 2025
- An explainable machine learning model for predicting depressive symptoms among Chinese older adults with chronic diseasesBMC Psychiatry · 2026
- Development and temporal validation of a machine learning-based prediction model for long-term depressive symptoms in older adults with cardiovascular disease or hypertension: A longitudinal cohort study.Medicine · 2026
- Weight-to-waist circumference index enhances interpretable machine learning models for screening depressive symptoms in middle-aged and elderly adults comorbid with hypertension and diabetes.Nutricion hospitalaria · 2026
- Development and internal validation of an interpretable machine learning-based risk stratification model for sarcopenic obesity in patients with type 2 diabetes mellitus.Frontiers in medicine · 2026