Explainable machine learning for predicting activities of daily living at discharge in stroke patients: A retrospective study using SHAP interpretability

Q Qian Ye G Guilin Fang L Liping Li Q Qinggui Li Y Yun Yang L Lingling Liu

Abstract

Purpose We aimed to develop a machine learning model to predict activities of daily living (ADL) at discharge in stroke patients and identify key predictors to guide rehabilitation decisions. Materials and methods Data of 589 stroke inpatients (2019–2024) were split into good (BI ≥ 60) and poor (BI < 60) ADL groups. Continuous variables were processed using Z-score normalization, followed by preliminary univariate regression screening (P < 0.05) and final feature selection via LASSO regression (lambda.1se = 0.0488). The screened features were used to train and validate ten machine learning algorithms; 30% of the dataset (n = 177) was allocated as an independent test set for model evaluation, and SHAP analysis was performed to interpret the optimal model. Results Six of 41 features were retained. Random forest achieved the best performance (AUC = 0.958; accuracy = 0.936; sensitivity = 0.934; specificity = 0.950). SHAP identified the top drivers: admission Barthel Index, standing balance, Brunnstrom stages (upper and lower limb), dressing, and grooming abilities. Conclusion The ADL risk prediction model constructed using machine learning, particularly the random forest model, shows excellent predictive performance and clinical interpretability, making it valuable for individualized risk assessment of daily living skills in stroke patients at discharge.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 7
Published July 02, 2026
Pages e0351468
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (6)

Q

Qian Ye

G

Guilin Fang

L

Liping Li

Q

Qinggui Li

Y

Yun Yang

L

Lingling Liu