Development of a machine learning-based depression risk prediction model for middle-aged and elderly Chinese heart

Guangzhen Fu1, Yuhan Shen1, Jingjing Yang1

  • 1Department of Clinical Laboratory, The First Affiliated Hospital of Zhengzhou University, Zhengzhou, China.

Digital Health
|May 19, 2026
PubMed

Insights

Machine learning accurately predicts depression risk in heart disease patients. Key factors include pain, rural residence, sleep duration, and grip strength, aiding early intervention.

Area of Science:

  • Cardiology
  • Geriatrics
  • Psychiatry
  • Machine Learning

Background:

  • Heart disease is a major cause of mortality and morbidity in older adults.
  • Depression frequently co-occurs with heart disease, worsening patient outcomes and quality of life.

Purpose of the Study:

  • To develop and validate a machine learning (ML)-based model for predicting depression risk in middle-aged and elderly individuals with heart disease.
  • To identify key predictors of depression in this patient population using data from the China Health and Retirement Longitudinal Study (CHARLS).

Main Methods:

  • Utilized data from 947 CHARLS participants (2015) with heart disease.
  • Employed random forest for missing data imputation and rigorous variable selection techniques (univariate analysis, Lasso, RFE, feature importance).
  • Constructed and evaluated 11 ML models, selecting logistic regression (LR) for its superior performance, validated using cross-validation and SHAP values.

Main Results:

  • A parsimonious 4-variable LR model (pain, address, sleep time, grip strength) achieved an AUC of 0.788.
  • Pain emerged as the strongest predictor (69% vs. 26.9% in depressed vs. non-depressed groups).
  • Increased depression risk was associated with rural residence, shorter sleep duration, and lower grip strength.

Conclusions:

  • The simplified LR model demonstrates strong predictive accuracy and clinical utility for identifying high depression risk in cardiac patients.
  • The developed web-based calculator offers a practical tool for clinical application and early risk assessment.
Abstract

Related Concept Videos