Machine learning–based identification of prevalent depressive symptoms among individuals with cardiovascular disease: development in the CHARLS cohort and external validation in the HRS cohort
Cardiovascular disease (CVD) remains a leading cause of mortality worldwide and is closely associated with depressive symptoms. The coexistence of CVD and depressive symptoms may adversely affect quality of life, disease management, and healthcare utilization. However, practical approaches for identifying prevalent depressive symptoms among individuals with CVD remain limited. This study used data from the 2015 wave of the China Health and Retirement Longitudinal Study (CHARLS). Participants were randomly divided into training, validation, and testing cohorts at a ratio of 7:1.5:1.5. Least absolute shrinkage and selection operator (LASSO) regression and the Boruta algorithm were used for feature selection. Six machine learning models, including decision tree (DT), k-nearest neighbor (KNN), light gradient boosting machine (LightGBM), multilayer perceptron (MLP), support vector machine (SVM), and extreme gradient boosting (XGBoost), were developed and compared, with hyperparameters optimized using 10-fold cross-validation. SHapley Additive exPlanations (SHAP) analysis was performed to interpret the contribution of individual predictors to the final model predictions. External validation was conducted using data from the 12th wave of the Health and Retirement Study (HRS). Multivariable logistic regression was additionally performed to examine the associations between the selected predictors and prevalent depressive symptoms. Ten predictors were retained based on the overlapping results of LASSO regression and the Boruta algorithm. Among the six machine learning models, SVM showed the highest ROC-AUC in the validation and testing cohorts, with values of 0.678 and 0.696, respectively. The final SVM model achieved ROC-AUC values of 0.704, 0.678, and 0.696 in the training, validation, and testing cohorts, respectively. SHAP analysis indicated that residential location and sex made the largest contributions to model predictions, followed by cognitive, sensory, and functional characteristics. In the HRS external validation cohort, the SVM model achieved an ROC-AUC of 0.672 (95% CI: 0.637–0.708) and a Brier score of 0.2137 (95% CI: 0.2076–0.2192), indicating moderate discrimination. This study developed and externally validated a machine learning model for the identification of prevalent depressive symptoms among individuals with CVD. The final SVM model showed moderate discrimination in the HRS external validation cohort, but the model tended to overestimate depressive-symptom risk in the HRS cohort, with observed event rates lower than predicted probabilities. These findings should be interpreted as exploratory and warrant further validation in diverse populations. In the HRS external validation cohort, the model showed moderate discrimination, while the calibration curve indicated some overestimation of the probability of depressive symptoms.
Authors
- Jincheng Li (ORCID: https://orcid.org/0009-0000-5898-6990)
- Wei Wang (ORCID: https://orcid.org/0000-0001-8990-5516)
- Xueling Lu (ORCID: https://orcid.org/0009-0009-8811-6385)
- Dongling Huang
- Jie Yang (ORCID: https://orcid.org/0000-0001-9147-1489)
- Guodong Pang
- Wanxia Wei
- Fan Wang
- Ling Hou
- Zhou Huang
Institutions
- Guangxi University (CN)
- First Affiliated Hospital of GuangXi Medical University (CN)
Publication Details
- Journal
- BMC Medical Informatics and Decision Making
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1186/s12911-026-04005-y
- Primary Topic
- Artificial Intelligence in Healthcare
- Type
- article
- Field-Weighted Citation Impact
- 0.00