AccScience Publishing / HPR / Online First / DOI: 10.36922/HPR026260138
RESEARCH ARTICLE

Development and external validation of an interpretable machine learning model for depressive symptom screening in Chinese adults aged 50 years or older with diabetes

Siheng Ma1† Qilong Wang2† Rui Qi3 Huaning Wang1 Min Cai1*
Show Less
1 Department of Psychiatry, Xijing Hospital, The Fourth Military Medical University, Xi’an, Shaanxi, China
2 Department of Psychiatry, Gansu Provincial Hospital, Gansu University of Chinese Medicine, Lanzhou, Gansu, China
3 Department of Endocrinology, Xijing Hospital, The Fourth Military Medical University, Xi’an, Shaanxi, China
†These authors contributed equally to this work.
Received: 25 June 2026 | Revised: 26 July 2026 | Accepted: 3 August 2026 | Published online: 14 August 2026
© 2026 by the Author(s). This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution -Noncommercial 4.0 International License (CC-by the license) ( https://creativecommons.org/licenses/by-nc/4.0/ )
Abstract

Background: Depressive symptoms are common among people with diabetes and may impair self-management and quality of life.

Objective: This study aimed to develop and externally validate an interpretable machine-learning model for depressive symptom screening in Chinese adults aged 50 years or older with diabetes and translate it into an online assessment tool.

Methods: Participants with diabetes from Round 4 of the China Health and Retirement Longitudinal Study (n = 2,187) were randomly divided into training and internal validation/model-selection sets at a 7:3 ratio. An independent cohort from Xijing Hospital (n = 695) was reserved for external validation. Depressive symptoms were defined as a Center for Epidemiologic Studies Depression Scale-10 (CESD-10) score of 10 or higher. Least absolute shrinkage and selection operator regression was used for feature selection; nine machine-learning algorithms were compared in the development data, and SHapley Additive exPlanations analysis interpreted the final Extreme Gradient Boosting (XGBoost) model.

Results: Sixteen predictors were retained. XGBoost achieved areas under the curve of 0.822, 0.832, and 0.812 in the training, internal validation, and external validation sets, respectively. Major contributors included sleep duration, self-perceived health status, cognitive function, activities of daily living, instrumental activities of daily living, and life satisfaction. An online assessment tool was developed.

Conclusions: The XGBoost model showed consistent discrimination but non-ideal calibration and may support concurrent preliminary classification and triage of depressive symptoms in Chinese adults aged 50 years or older with diabetes. The calculator is not diagnostic, should not replace CESD-10 administration or professional assessment when clinically indicated, and requires recalibration and prospective multicenter validation before broader clinical use.

Keywords
Diabetes
Depressive symptoms
Machine learning
External validation
XGBoost
Online assessment tool
Funding
This research was funded by the Clinical Research Program of Xijing Hospital (Grant No. XJZT24LY35), the Fourth Military Medical University (Grant No. 2023LC2306), and the Shaanxi Province Science and Technology New Star Project (Grant No. 2023KJXX-024). The funders had no role in the design and conduct of the study; collection, management, analysis, and interpretation of the data; preparation, review, and approval of the manuscript; or the decision to submit the manuscript for publication.
Conflict of interest
The authors declare no conflicts of interest.
References
  1. Ducat L, Philipson LH, Anderson BJ. The Mental Health Comorbidities of Diabetes. JAMA. 2014;312(7):691-692. doi: 10.1001/jama.2014.8040
  2. Farooqi A, Gillies C, Sathanapally H, et al. A systematic review and meta-analysis to compare the prevalence of depression between people with and without Type 1 and Type 2 diabetes. Prim Care Diabetes. 2022;16(1):1-10. doi: 10.1016/j.pcd.2021.11.001
  3. Nguyen KA, Daniel M, Zhao Y, et al. Association of depression with glycaemic control in people living with diabetes in low- and middle-income countries: a systematic review and meta-analysis. BMJ Glob Health. 2025;10(7):e018939. doi: 10.1136/bmjgh-2025-018939
  4. Derese A, Gebreegzhiabhere Y, Medhin G, Sirgu S, Hanlon C. Impact of depression on self-efficacy, illness perceptions and self-management among people with type 2 diabetes: A systematic review of longitudinal studies. PLoS One. 2024;19(5):e0302635. doi: 10.1371/journal.pone.0302635
  5. Schram MT, Baan CA, Pouwer F. Depression and quality of life in patients with diabetes: a systematic review from the European depression in diabetes (EDID) research consortium. Curr Diabetes Rev. 2009;5(2):112-119. doi: 10.2174/157339909788166828
  6. van Dooren FE, Nefs G, Schram MT, Verhey FR, Denollet J, Pouwer F. Depression and risk of mortality in people with diabetes mellitus: a systematic review and meta-analysis. PLoS One. 2013;8(3):e57058. doi: 10.1371/journal.pone.0057058
  7. Tylee A, Gandhi P. The importance of somatic symptoms in depression in primary care. Prim Care Companion J Clin Psychiatry. 2005;7(4):167-176. doi: 10.4088/pcc.v07n0405
  8. Mitchell AJ, Vaze A, Rao S. Clinical diagnosis of depression in primary care: a meta-analysis. Lancet. 2009;374(9690):609-619. doi: 10.1016/S0140-6736(09)60879-5
  9. Chireh B, Li M, D'Arcy C. Diabetes increases the risk of depression: A systematic review, meta-analysis and estimates of population attributable fractions based on prospective studies. Prev Med Rep. 2019;14:100822. doi: 10.1016/j.pmedr.2019.100822
  10. Azmiardi A, Murti B, Febrinasari RP, Tamtomo DG. Low Social Support and Risk for Depression in People With Type 2 Diabetes Mellitus: A Systematic Review and Meta-analysis. J Prev Med Public Health. 2022;55(1):37-48. doi: 10.3961/jpmph.21.490
  11. Lee JY, Won D, Lee K. Machine learning-based identification and related features of depression in patients with diabetes mellitus based on the Korea National Health and Nutrition Examination Survey: A cross-sectional study. PLoS One. 2023;18(7):e0288648. doi: 10.1371/journal.pone.0288648
  12. Song X, Zheng Q, Zhang R, et al. Potential Biomarkers for Predicting Depression in Diabetes Mellitus. Front Psychiatry. 2021;12:731220. doi: 10.3389/fpsyt.2021.731220
  13. Ma J, Dhiman P, Qi C, et al. Poor handling of continuous predictors in clinical prediction models using logistic regression: a systematic review. J Clin Epidemiol. 2023;161:140-151. doi: 10.1016/j.jclinepi.2023.07.017
  14. Christodoulou E, Ma J, Collins GS, Steyerberg EW, Verbakel JY, Van Calster B. A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models. J Clin Epidemiol. 2019;110:12-22. doi: 10.1016/j.jclinepi.2019.02.004
  15. Stahlschmidt SR, Ulfenborg B, Synnergren J. Multimodal deep learning for biomedical data fusion: a review. Brief Bioinform. 2022;23(2). doi: 10.1093/bib/bbab569
  16. Efthimiou O, Seo M, Chalkou K, Debray T, Egger M, Salanti G. Developing clinical prediction models: a step-by-step guide. BMJ. 2024;386:e078276. doi: 10.1136/bmj-2023-078276
  17. Collins GS, Moons KGM, Dhiman P, et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ. 2024;385:e078378. doi: 10.1136/bmj-2023-078378
  18. Cai X, Guo G, Zhou J, Han M, Cui Y, Chen Z. Machine learning-based risk predictive models for depression in patients with diabetes: a systematic review and meta-analysis. Front Endocrinol (Lausanne). 2026;17:1816661. doi: 10.3389/fendo.2026.1816661
  19. Tang Y, Jia L, Zhou J, et al. 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-2023. Medicine (Baltimore). 2026;105(6):e47522. doi: 10.1097/md.0000000000047522
  20. Albert PR. Why is depression more prevalent in women? J Psychiatry Neurosci. 2015;40(4):219-221. doi: 10.1503/jpn.150205
  21. Yin L, Pu K, Ke W. A predictive model for depression in Chinese middle-aged and elderly people with arthritis. BMC Psychiatry. 2026;26(1). doi: 10.1186/s12888-026-07864-x
  22. Matcham F, Rayner L, Steer S, Hotopf M. The prevalence of depression in rheumatoid arthritis: a systematic review and meta-analysis. Rheumatology (Oxford). 2013;52(12):2136-2148. doi: 10.1093/rheumatology/ket169
  23. Cheng C, Guo D, Cao X, et al. Association Between Digestive Diseases, Nighttime Sleep, and Depressive Symptoms Among the Middle-Aged and Elderly Adults: A Mediation Analysis. JGH Open. 2025;9(10):e70294. doi: 10.1002/jgh3.70294
  24. Leng S, Yao L, Deng J. Associations between self-rated health and depressive symptoms among middle-aged and older adults in China: A cross-lagged panel analysis (2011-2020). PLoS One. 2025;20(4):e0321272. doi: 10.1371/journal.pone.0321272
  25. Deng L, Luo S, Wang T, Xu H. Depression screening model for middle-aged and elderly diabetic patients in China. Sci Rep. 2024;14(1):29158. doi: 10.1038/s41598-024-80816-1
  26. Li XL, Wei J, Zhang X, Meng Z, Zhu W. Relationship between night-sleep duration and risk for depression among middle-aged and older people: A dose-response meta-analysis. Front Physiol. 2023;14:1085091. doi: 10.3389/fphys.2023.1085091
  27. Quiñones AR, Markwardt S, Botoseneanu A. Diabetes-Multimorbidity Combinations and Disability Among Middle-aged and Older Adults. J Gen Intern Med. 2019;34(6):944-951. doi: 10.1007/s11606-019-04896-w
  28. Zhu X, Wang Y, Luo Y, Ding R, Shi Z, He P. Bidirectional, longitudinal associations between depressive symptoms and IADL/ADL disability in older adults in China: a national cohort study. BMC Geriatr. 2024;24(1):659. doi: 10.1186/s12877-024-05248-y
  29. van Sloten TT, Sedaghat S, Carnethon MR, Launer LJ, Stehouwer CDA. Cerebral microvascular complications of type 2 diabetes: stroke, cognitive dysfunction, and depression. Lancet Diabetes Endocrinol. 2020;8(4):325-336. doi: 10.1016/s2213-8587(19)30405-x
  30. Hansen MSS, Lykkegaard J, Möller S, Kristian Kjær N, Ahrenfeldt LJ. Sensory impairments, loneliness, and quality of life among middle-aged and older Europeans: the mediating roles of depressive symptoms and activity participation. Aging Ment Health. 2026;30(2):346-358. doi: 10.1080/13607863.2025.2553329
  31. Hu X, Liu Y, Fu Y, et al. Association of spousal cardio-pulmo-metabo-disease and sensory impairment with incident depression in middle-aged and older adults: a prospective multi-cohort study. Int J Surg. 2026. doi: 10.1097/js9.0000000000004861
Share
Back to top
Health Psychology Research, Electronic ISSN: 2420-8124 Published by AccScience Publishing