Machine-learning prediction of post-stroke depression using admission clinical and laboratory features: a derivation study
Ling Hu, Qiu Han, Ming Wei, Xiu Yang, Xiaoyu Ni
Key points
From the paper's conclusion- External validation and probability recalibration remain priorities before clinical deployment.
Abstract
Background Post-stroke depression (PSD) affects approximately one third of patients after acute ischemic stroke and impairs functional recovery, quality of life and survival, yet no admission-time prediction tool is in routine use. We aimed to derive and internally evaluate machine-learning (ML) models for PSD using routinely available admission variables. Methods We analysed 378 adults with acute ischemic stroke (156 with PSD; 41.3%), randomly split into a training set ( n = 264) and a held-out validation set ( n = 114) in a stratified 70/30 ratio. Logistic regression (LR), random forest (RF) and XGBoost were trained on 21 admission variables. Within the training set, repeated stratified 5-fold cross-validation (10 repeats) provided internal performance estimates; the final models were refit on the full training set and evaluated once on the held-out validation set. Discrimination (area under the receiver operating characteristic curve, AUC), sensitivity, specificity, Brier score and calibration were assessed; SHAP analysis and multivariable logistic regression provided model interpretation. Results XGBoost achieved the highest held-out discrimination (AUC 0.905, 95% CI 0.867–0.933; sensitivity 0.787, specificity 0.821, Brier 0.124), followed by RF (AUC 0.890, 95% CI 0.847–0.922) and LR (AUC 0.849, 95% CI 0.788–0.894); paired DeLong tests showed XGBoost significantly outperformed LR ( P = 0.043) but not RF ( P = 0.40), and RF did not significantly outperform LR ( P = 0.09). Training internal cross-validation AUCs were 0.812 (LR), 0.801 (RF) and 0.792 (XGBoost), a different ordering from the hold-out set. Left-hemisphere stroke, baseline NIHSS, education, homocysteine and sex were the dominant predictors across SHAP and multivariable analyses. XGBoost was reasonably well calibrated on the held-out validation set (calibration slope 1.28, 95% CI 0.96–1.90; intercept − 0.24, 95% CI -0.84 to 0.31; Brier 0.124). Conclusions Admission variables alone support a preliminary, internally evaluated PSD risk-stratification model; among the three algorithms tested, XGBoost gave the highest held-out discrimination, although its advantage over logistic regression was of borderline significance. External validation and probability recalibration remain priorities before clinical deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Logistic Regression Analysis-Based Study of Risk Factors and Assessment Model of Non-Acute-Phase Post-Stroke DepressionActas Españolas de Psiquiatría · 2026
- Identifying key predictors of post-stroke depression and cognitive impairment in acute stroke survivorsFrontiers in Neurology · 2026
- Associated factors and predictive modeling of deep vein thrombosis in stroke patients undergoing rehabilitation.Frontiers in neurology · 2026
- XGBoost based machine learning prediction model for major adverse cardiovascular events after PCI in STEMI patientsScientific Reports · 2026
- Machine learning for dysphagia risk prediction in older adults after acute ischemic strokeBMC Medical Informatics and Decision Making · 2026
- Machine learning-based prediction of in-hospital deep vein thrombosis in patients with acute ischemic stroke: a multicenter study.Frontiers in neurology · 2026