Explainable machine learning for stroke risk prediction: a comparative study with SHAP-based interpretation
Xiaoyu Tang, Min Tang, Wu Liu, Shaoyang Cui
Guangzhou University of Chinese Medicine · Hubei University of Chinese Medicine
Key points
From the paper's conclusion- Conclusion: Machine learning methods have advantages in stroke risk prediction.
Abstract
Background: Stroke is one of the leading causes of death and disability worldwide, making early screening and risk prediction crucial. Traditional methods have limitations in handling nonlinear relationships between variables, class imbalance, and model interpretability. Methods: Logistic regression (LR), random forest (RF), extreme gradient boosting (XGBoost), categorical boosting (CatBoost), multi-layer perceptron (MLP) neural network, and ensemble models were constructed and compared. Their performance in stroke risk prediction was systematically evaluated, and feature contributions were interpreted using SHapley Additive exPlanations (SHAP). Confusion matrices and Precision-Recall (PR) curves were used to compare the differences in recognition of the positive class (stroke patients) among the models, and training time was calculated to quantify resource consumption. Results: The ensemble model and neural network demonstrated superior overall predictive ability to traditional algorithms, with the MLP performing particularly well in terms of recall. SHAP results revealed that "hypertension," "average blood glucose level," and "age" were key influencing factors. Confusion matrices and PR curves indicated differences in positive classification among the models. Training time analysis provided a basis for resource assessment for subsequent deployment. Conclusion: Machine learning methods have advantages in stroke risk prediction. Incorporating interpretability analysis can enhance the clinical credibility of the models, providing data and methodological reference for stroke risk stratification management and early warning.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Development and validation of explainable machine learning models for predicting 3-month functional outcomes in acute ischemic stroke: a SHAP-based approachFrontiers in Neurology · 2025
- Construction of a machine learning-based risk prediction model for acute stroke in maintenance hemodialysis patients.PeerJ · 2026
- Explainable Tree-Based Ensemble Models for Diabetes Prediction Using SHAPAUIQ technical engineering science. · 2026
- Development and validation of an ML-driven risk prediction model for stroke-heart syndrome after acute ischemic stroke.Heart & lung : the journal of critical care · 2026
- Mortality prediction in patients with acute myocardial infarction and prior ischemic stroke: a prospective cohort study with explainable machine learning and SHAP analysis.Frontiers in cardiovascular medicine · 2026
- Analysis of sex-specific stroke risk factors in middle-aged and elderly Chinese population based on machine learning approach: A retrospective observational cohort study.Medicine · 2026