Exploration of comorbidity mechanisms between chronic pain and depression: Machine learning prediction models and SHAP interpretability analysis based on the CHARLS cohort
Tao-Ming Dai, Jie Yuan, Yue-Yang Ma, Jun-Jun Liu
Nantong University · Yancheng Vocational Institute of Industry Technology
Key points
From the paper's conclusion- Integrating interpretable machine learning with a biopsychosocial framework highlights the dominant role of pain-related features in depression risk patterns among older adults.
Abstract
INTRODUCTION: With rapid population aging in China, depression among middle-aged and older adults has become a major public health concern. Chronic pain and sociodemographic factors are closely associated with depressive symptoms, yet their combined and heterogeneous effects are difficult to capture using traditional analytical approaches. Interpretable machine learning provides a framework to explore depression-related risk patterns within a biopsychosocial perspective. METHODS: Data were obtained from seven waves of the China Health and Retirement Longitudinal Study (CHARLS, 2011-2020), including 38,970 adults aged 45 years and older. Depressive symptoms were assessed using the 10-item Center for Epidemiologic Studies Depression Scale (CES-D-10). Predictors covering sociodemographic characteristics, lifestyle factors, and pain at specific anatomical sites were selected using LASSO regression and recursive feature elimination. Seven machine learning models-logistic regression, Bernoulli and Gaussian Naive Bayes, support vector machine (SVM), random forest, extreme gradient boosting (XGBoost), and k-nearest neighbors-were developed and evaluated using accuracy, area under the receiver operating characteristic curve (AUC), precision, recall, and F1-score. Model interpretability was assessed using SHapley Additive exPlanations (SHAP). RESULTS: Chronic pain, particularly involving the lower limbs and spine, showed a strong association with depressive status. Model accuracy ranged from 61.6% to 71.9%, with AUC values between 0.61 and 0.72. SVM and Gaussian Naive Bayes demonstrated relatively better overall discrimination, though sensitivity for depressive cases remained limited. SHAP analysis identified lower limb pain and a nonlinear association with body mass index as key contributors to depression risk prediction. DISCUSSION: Integrating interpretable machine learning with a biopsychosocial framework highlights the dominant role of pain-related features in depression risk patterns among older adults. Given limited sensitivity for depressive case identification, these models are more suitable for population-level risk exploration than direct clinical screening.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An explainable machine learning model for predicting depressive symptoms among Chinese older adults with chronic diseasesBMC Psychiatry · 2026
- Explainable Machine Learning Reveals Pattern-Specific Drivers of Depression in Middle-Aged and Older Adults with Multimorbidity: A Nationwide Cross-Sectional Study from CHARLS.Healthcare (Basel, Switzerland) · 2026
- Machine learning prediction model and influencing factors for low back pain in middle-aged and older adults based on CHARLS cohort data.European spine journal : official publication of the European Spine Society, the European Spinal Deformity Society, and the European Section of the Cervical Spine Research Society · 2026
- Predicting longitudinal depressive symptom trajectories among older Chinese adults with chronic health conditions: An interpretable machine learning study.International psychogeriatrics · 2026
- Cross-national predictive correlates of depressive symptoms among middle-aged and older adults with chronic conditions: an explainable machine learning analysis.Frontiers in psychiatry · 2026
- Machine learning algorithms to predict frailty in older adults in China: a cross-sectional studyBMC Geriatrics · 2025