A Neural Network Algorithm-Based Prediction Model for Depression Among Elderly Individuals with Diabetes Mellitus

A Neural Network Algorithm-Based Prediction Model for Depression Among Elderly Individuals with Diabetes Mellitus

Authors

  • Xiaojuan Wang
  • Shaofeng Wang
  • Wencong Xu
  • Xiaoqin Zhao
  • Zhang Zhao
  • Jing Li

DOI:

https://doi.org/10.64549/jaai-ii.v1i1.52

Keywords:

Geriatric Diabetes, Depression, Random Forest, BP Neural Network, CHARLS

Abstract

Objective: To address the "syndemic" of depression among elderly diabetic patients in China by developing a non-invasive machine learning predictive model for large-scale community screening.

Methods: Data from 4,827 participants (aged 60–85) were extracted from the 2020 CHARLS database. Random Forest (RF), a tree-based machine learning technique, was used to select important variables. Then, a Backpropagation Neural Network (BPNN), which can capture complex, non-linear relationships, was built. Model performance was evaluated using Accuracy (correct prediction rate) and AUC (area under the curve, a measure of discrimination ability).

Results: The prevalence of depressive symptoms was 33.7%. RF identified age, physical pain distribution, and sleep duration as the top predictors. Although post-noon nap duration was not significant in a simple statistical analysis, it emerged as important in a neural network, which detects hidden patterns. The model achieved an accuracy of 0.67 (percentage of correct predictions) and AUC of 0.59 (ability to distinguish cases) on the test set, indicating strong negative predictive value for risk triaging.

Conclusion: Physical pain, sleep patterns, and social engagement are decisive warning signs for depression in elderly diabetics. This non-invasive model is an essential, scalable solution for early identification and intervention within primary healthcare systems.

References

Yang, K., Fang, Y., He, J. and Li, J. (2025) ‘Prevalence and risk factors of depression in patients with diabetes mellitus: a systematic review and meta-analysis’, Frontiers in Endocrinology, 16, 1660478. doi: 10.3389/fendo.2025.1660478.

Luo, C., Yu, X.M., Zeng, M.Q., Duan, C.Z., Xu, S.Y., Zhu, C.Y., Zheng, Z.G., Sun, D., Fang, J. and He, D.J. (2025) ‘Breaking the diabetes-depression cycle: Exploring shared mechanisms, neuroinflammation, and emerging interventions for metabolic-mood comorbidities’, World Journal of Diabetes, 16(7), 107406. doi: 10.4239/wjd.v16.i7.107406.

Lei, A.A., Phang, V.W.X., Lee, Y.Z., Kow, A.S.F., Tham, C.L., Ho, Y.C. and Lee, M.T. (2025) ‘Chronic Stress-Associated Depressive Disorders: The Impact of HPA Axis Dysregulation and Neuroinflammation on the Hippocampus—A Mini Review’, International Journal of Molecular Sciences, 26, 2940. doi: 10.3390/ijms26072940.

Oh, D.J., et al. (2024) ‘Association of depression with the progression of multimorbidity in older adults: A population-based cohort study’, The American Journal of Geriatric Psychiatry, 32(8), pp. 957-967.

Ju, C., et al. (2025) ‘Interactive effect of sleep duration, lifestyle factors and comorbidity on depressive symptoms: Insights from the China health and retirement longitudinal study’, Journal of Affective Disorders, 379, pp. 900-912.

Li, Z., et al. (2025) ‘Social support mediates the relationship between depression and subjective well-being in elderly patients with chronic diseases: Evidence from a survey in Rural Western China’, PLoS ONE, 20(6), e0325029.

Chekroud, A.M., et al. (2021) ‘The promise of machine learning in predicting treatment outcomes in psychiatry’, World Psychiatry, 20(2), pp. 154-170.

Ke, H., Xu, A., Zhou, H., Chen, J., Wu, W., He, Q. and Cao, H. (2025) ‘Machine learning models of depression in middle-aged and older adults with cardiovascular metabolic diseases’, Journal of Affective Disorders, 387, 119494. doi: 10.1016/j.jad.2025.119494.

Murri, M.B., Cattelani, L., Chesani, F., Palumbo, P., Triolo, F. and Alexopoulos, G.S. (2022) ‘Risk prediction models for depression in community-dwelling older adults’, The American Journal of Geriatric Psychiatry, 30, pp. 949–960.

Speiser, J.L., et al. (2019) ‘A comparison of random forest variable selection methods for classification prediction modeling’, Expert Systems with Applications, 134, pp. 93-101.

Marcus, G. (2018) ‘Deep learning: A critical appraisal’, arXiv preprint, arXiv:1801.00631.

Dadgar, S.M.H. and Kaardaan, M. (2017) ‘A hybrid method of feature selection and neural network with genetic algorithm to predict diabetes’, International Journal of Mechatronics, Electrical and Computer Technology (IJMEC), 7(24), pp. 3397-3404.

Tanik, N., Sarp, U., Ucar, M., Celikbilek, A., Balbaloğlu, Ö., Ak, H., Atalay, T., Arik, H.O., Okyay, M. and İnan, L. (2016) ‘Pain, depression and sleep disorders in patients with diabetic and nondiabetic carpal tunnel syndrome: A vicious cycle’, Arquivos de Neuro-Psiquiatria, 74, pp. 207-211. doi: 10.1590/0004-282X20160020.

Miao, E., Wu, Q. and Cai, Y. (2024) ‘Mediating effect of depressive symptoms on the relationship of chronic pain and cardiovascular diseases among Chinese population: evidence from the CHARLS’, Journal of Psychosomatic Research, 180, 111639.

Stubbs, B., et al. (2016) ‘The epidemiology of back pain and its relationship with depression, psychosis, anxiety, sleep disturbances, and stress sensitivity: Data from 43 low-and middle-income countries’, General Hospital Psychiatry, 43, pp. 63-70.

Martin, D.J., et al. (2012) ‘The impact of chronic musculoskeletal pain on physical activity in older adults: implications for self-management’, Journal of Aging and Physical Activity, 20(Supplement), pp. S294-S295.

Christiansen, J., et al. (2021) ‘Loneliness, social isolation, and chronic disease outcomes’, Annals of Behavioral Medicine, 55(3), pp. 203-215.

Leng, Y., et al. (2014) ‘Daytime napping, sleep duration and serum C reactive protein: a population-based cohort study’, BMJ Open, 4(11), e006071.

Hu, M., et al. (2021) ‘Sleep, inflammation and cognitive function in middle-aged and older adults: a population-based study’, Journal of Affective Disorders, 284, pp. 120-125.

Han, X., et al. (2016) ‘Long sleep duration and afternoon napping are associated with higher risk of incident diabetes in middle-aged and older Chinese: the Dongfeng-Tongji cohort study’, Annals of Medicine, 48(4), pp. 216-223.

Souabni, M., Souabni, M.J., Hammouda, O., Romdhani, M., Trabelsi, K., Ammar, A. and Driss, T. (2022) ‘Benefits and risks of napping in older adults: A systematic review’, Frontiers in Aging Neuroscience, 14, 1000707.

Downloads

Published

2026-03-12
Loading...