(2) Zakial Vikki
(3) Nur Amalia Hasma
(4) Asmaul Husna
(5) Nur Afni Safarina
(6) Imam Muslem
*corresponding author
AbstractStroke risk prediction is challenging because stroke-positive cases are much fewer than non-stroke cases, making conventional accuracy-based evaluation potentially misleading. This study developed a machine learning pipeline for stroke risk prediction by combining genetic algorithm-based feature selection, calibrated XGBoost classification, threshold adjustment, decision curve analysis, and SHAP-based interpretation. A publicly available dataset containing 5,110 patient records was used. After preprocessing and feature selection, the final XGBoost model with isotonic calibration achieved ROC-AUC = 0.835, PR-AUC = 0.193, and Brier score = 0.0424. At the default threshold of 0.50, the model achieved high accuracy but failed to detect stroke-positive cases, with precision, recall, and F1-score all equal to 0.0000. Reducing the threshold to 0.15 improved recall to 0.5600 and F1-score to 0.3314, while the Youden-optimal threshold of 0.09 increased recall to 0.7400, although precision decreased to 0.1770. SHAP analysis showed that age was the only dominant explanatory feature retained after genetic algorithm-based feature selection. Higher age values shifted predictions toward the stroke-positive class, while lower age values reduced the predicted risk. These results indicate that the proposed pipeline improves interpretability and threshold-dependent analysis under class imbalance while exposing the trade-off between sensitivity and false-positive burden. However, the final model still depends heavily on age and should be viewed as a research-oriented decision-support framework rather than a ready-to-use clinical screening tool. Future studies should evaluate the pipeline using richer clinical variables and external validation datasets in independent clinical settings.
Keywordsstroke prediction; genetic algorithm; feature selection; XGBoost; SHAP
|
DOIhttps://doi.org/10.26555/ijain.v12i4.2533 |
Article metricsAbstract views : 154 |
Cite |
References
[1] N. Melnykova, Y. Patereha, S. Skopivskyi, M. Farion, S. Fedushko, and K. Drohomyretska, “Machine learning for stroke prediction using imbalanced data,” Sci. Rep., vol. 15, no. 1, p. 33773, Sep. 2025, doi: 10.1038/s41598-025-01855-w.
[2] P. O. Akinwumi, S. Ojo, T. I. Nathaniel, J. Wanliss, O. Karunwi, and M. Sulaiman, “Evaluating machine learning models for stroke prediction based on clinical variables,” Front. Neurol., vol. 16, p. 1668420, Sep. 2025, doi: 10.3389/fneur.2025.1668420.
[3] Y. Wu, S. Duan, J. Zhu, and Y. Fang, “Imbalanced prediction in epidemiological study: A machine learning-based analysis,” Ann. Epidemiol., vol. 109, no. September, pp. 83–92, Sep. 2025, doi: 10.1016/j.annepidem.2025.07.023.
[4] J. Chen et al., “The association between liver disease and stroke risk: A cross-sectional study with machine learning in a large-scale Chinese cohort,” Int. J. Cardiol. Cardiovasc. Risk Prev., vol. 29, p. 200600, Jun. 2026, doi: 10.1016/j.ijcrp.2026.200600.
[5] R. Nithya, T. Kokilavani, and T. L. A. Beena, “Balancing cerebrovascular disease data with integrated ensemble learning and SVM-SMOTE,” Netw. Model. Anal. Heal. Informatics Bioinforma., vol. 13, no. 1, p. 12, Mar. 2024, doi: 10.1007/s13721-024-00447-4.
[6] K. Kitova, I. Ivanov, and V. Hooper, “Stroke Dataset Modeling: Comparative Study of Machine Learning Classification Methods,” Algorithms, vol. 17, no. 12, p. 571, Dec. 2024, doi: 10.3390/a17120571.
[7] A. F. Eram, A. S. Mahmud, M. M. Khadem, and M. A. Ihsan, “Beyond the numbers: App-enabled stroke prediction system for high-risk individuals in imbalanced datasets,” Neurosci. Informatics, vol. 5, no. 3, p. 100215, Sep. 2025, doi: 10.1016/j.neuri.2025.100215.
[8] S. Xie, S. Peng, L. Zhao, B. Yang, Y. Qu, and X. Tang, “A comprehensive analysis of stroke risk factors and development of a predictive model using machine learning approaches,” Mol. Genet. Genomics, vol. 300, no. 1, p. 18, Dec. 2025, doi: 10.1007/s00438-024-02217-3.
[9] G. Y. H. Lip, A. Genaidy, G. Tran, P. Marroquin, C. Estes, and S. Sloop, “Improving Stroke Risk Prediction in the General Population: A Comparative Assessment of Common Clinical Rules, a New Multimorbid Index, and Machine-Learning-Based Algorithms,” Thromb. Haemost., vol. 122, no. 01, pp. 142–150, Jan. 2022, doi: 10.1055/a-1467-2993.
[10] S. Dev, H. Wang, C. S. Nwosu, N. Jain, B. Veeravalli, and D. John, “A predictive analytics approach for stroke prediction using machine learning and neural networks,” Healthc. Anal., vol. 2, no. November, p. 100032, Nov. 2022, doi: 10.1016/j.health.2022.100032.
[11] R. Wijaya, F. Saeed, P. Samimi, A. M. Albarrak, and S. N. Qasem, “An Ensemble Machine Learning and Data Mining Approach to Enhance Stroke Prediction,” Bioengineering, vol. 11, no. 7, p. 672, Jul. 2024, doi: 10.3390/bioengineering11070672.
[12] X. Tang, M. Tang, W. Liu, and S. Cui, “Explainable machine learning for stroke risk prediction: a comparative study with SHAP-based interpretation,” Front. Neurol., vol. 16, p. 1716984, Jan. 2026, doi: 10.3389/fneur.2025.1716984.
[13] L. Mochurad, V. Babii, Y. Boliubash, and Y. Mochurad, “RETRACTED ARTICLE: Improving stroke risk prediction by integrating XGBoost, optimized principal component analysis, and explainable artificial intelligence,” BMC Med. Inform. Decis. Mak., vol. 25, no. 1, p. 63, Feb. 2025, doi: 10.1186/s12911-025-02894-z.
[14] F. Asadi, M. Rahimi, A. H. Daeechini, and A. Paghe, “The most efficient machine learning algorithms in stroke prediction: A systematic review,” Heal. Sci. Reports, vol. 7, no. 10, p. e70062, Oct. 2024, doi: 10.1002/hsr2.70062.
[15] R. Bhuria and K. Sudheer, “Leveraging XGBoost for Accurate Brain Stroke Prediction: An Innovative Approach to Data-Driven Healthcare Solutions,” in 2025 International Conference on Pervasive Computational Technologies (ICPCT), IEEE, Feb. 2025, pp. 144–148. doi: 10.1109/ICPCT64145.2025.10939264.
[16] P.-Y. Su et al., “Machine Learning Models for Predicting Influential Factors of Early Outcomes in Acute Ischemic Stroke: Registry-Based Study,” JMIR Med. Informatics, vol. 10, no. 3, p. e32508, Mar. 2022, doi: 10.2196/32508.
[17] C. Huang et al., “Performance Metrics for the Comparative Analysis of Clinical Risk Prediction Models Employing Machine Learning,” Circ. Cardiovasc. Qual. Outcomes, vol. 14, no. 10, p. E007526, Oct. 2021, doi: 10.1161/CIRCOUTCOMES.120.007526.
[18] C. Mosquera, L. Ferrer, D. H. Milone, D. Luna, and E. Ferrante, “Class imbalance on medical image classification: towards better evaluation practices for discrimination and calibration performance,” Eur. Radiol., vol. 34, no. 12, pp. 7895–7903, Jun. 2024, doi: 10.1007/s00330-024-10834-0.
[19] S. Liu, X. Sun, F. W. Roemer, A. Guermazi, and C. K. Kwoh, “COMPARISON OF VARIOUS METRICS FOR EVALUATING THE PERFORMANCE OF DEEP LEARNING BINARY CLASSIFICATION, PARTICULARLY WHEN UNDERLYING IMAGING DATA ARE IMBALANCED,” Osteoarthr. Imaging, vol. 2, p. 100017, Jan. 2022, doi: 10.1016/j.ostima.2022.100017.
[20] E. Richardson, R. Trevizani, J. A. Greenbaum, H. Carter, M. Nielsen, and B. Peters, “The receiver operating characteristic curve accurately assesses imbalanced datasets,” Patterns, vol. 5, no. 6, p. 100994, Jun. 2024, doi: 10.1016/j.patter.2024.100994.
[21] Y. Si et al., “Optimized feature selection and advanced machine learning for stroke risk prediction in revascularized coronary artery disease patients,” BMC Med. Inform. Decis. Mak., vol. 25, no. 1, p. 276, Jul. 2025, doi: 10.1186/s12911-025-03116-2.
[22] H. Wang, M. Zhang, L. Mai, X. Li, A. Bellou, and L. Wu, “An effective multi-step feature selection framework for clinical outcome prediction using electronic medical records,” BMC Med. Inform. Decis. Mak., vol. 25, no. 1, p. 84, Feb. 2025, doi: 10.1186/s12911-025-02922-y.
[23] C. Palacio, M. Hovorka, M. Acosta, R. Bautista, C. Chen, and J. Hovorka, “Predicting factors for extremity fracture among border-fall patients using machine learning computing,” Heliyon, vol. 10, no. 11, p. e32185, Jun. 2024, doi: 10.1016/j.heliyon.2024.e32185.
[24] P. Chakraborty et al., “Predicting stroke occurrences: a stacked machine learning approach with feature selection and data preprocessing,” BMC Bioinformatics, vol. 25, no. 1, p. 329, Oct. 2024, doi: 10.1186/s12859-024-05866-8.
[25] A. S. Hermiati, R. Herteno, F. Indriani, T. H. Saragih, Muliadi, and T. Triwiyanto, “A Comparative Study: Application of Principal Component Analysis and Recursive Feature Elimination in Machine Learning for Stroke Prediction,” J. Electron. Electromed. Eng. Med. Informatics, vol. 6, no. 3, pp. 231–242, May 2024, doi: 10.35882/jeeemi.v6i3.446.
[26] Z. Y. Taha, A. A. Abdullah, and T. A. Rashid, “Optimizing feature selection with genetic algorithms: a review of methods and applications,” Knowl. Inf. Syst., vol. 67, no. 11, pp. 9739–9778, Nov. 2025, doi: 10.1007/s10115-025-02515-1.
[27] R. M. Aziz, “Nature-inspired metaheuristics model for gene selection and classification of biomedical microarray data,” Med. Biol. Eng. Comput., vol. 60, no. 6, pp. 1627–1646, Jun. 2022, doi: 10.1007/s11517-022-02555-7.
[28] F. Farid and D. Rosadi, “Portfolio optimization based on self-organizing maps clustering and genetics algorithm,” Int. J. Adv. Intell. Informatics, vol. 8, no. 1, p. 33, Mar. 2022, doi: 10.26555/ijain.v8i1.587.
[29] G. S. Nayak et al., “Optimizing stroke detection with genetic algorithm-based feature selection in deep learning models,” Appl. Neuropsychol. Adult, vol. 0, no. 0, pp. 1–10, Jun. 2025, doi: 10.1080/23279095.2025.2516259.
[30] O. Efthimiou, M. Seo, K. Chalkou, T. Debray, M. Egger, and G. Salanti, “Developing clinical prediction models: a step-by-step guide,” BMJ, vol. 386, p. e078276, Sep. 2024, doi: 10.1136/bmj-2023-078276.
[31] S. Fan et al., “Applying probability calibration to ensemble methods to predict 2-year mortality in patients with DLBCL,” BMC Med. Inform. Decis. Mak., vol. 21, no. 1, p. 14, Dec. 2021, doi: 10.1186/s12911-020-01354-0.
[32] X. Liu et al., “Illness severity assessment of older adults in critical illness using machine learning (ELDER-ICU): an international multicentre study with subgroup bias evaluation,” Lancet Digit. Heal., vol. 5, no. 10, pp. e657–e667, Oct. 2023, doi: 10.1016/S2589-7500(23)00128-0.
[33] J. M. Adepoju, E. T. Adetunji, and O. O. Awe, “Predictive Modeling for Disease Diagnosis Using Calibrated Machine Learning: A Comparative Analysis of Spline, Beta, and Platt Calibration Scaling,” in Practical Statistical Learning and Data Science Methods: Case Studies from LISA 2020 Global Network, USA, O. O. Awe and E. A. Vance, Eds., Cham: Springer Nature Switzerland, 2025, pp. 435–462. doi: 10.1007/978-3-031-72215-8_19.
[34] G. Mulugeta, T. Zewotir, A. S. Tegegne, L. H. Juhar, and M. B. Muleta, “Classification of imbalanced data using machine learning algorithms to predict the risk of renal graft failures in Ethiopia,” BMC Med. Inform. Decis. Mak., vol. 23, no. 1, p. 98, May 2023, doi: 10.1186/s12911-023-02185-5.
[35] J. Luu, E. Borisenko, V. Przekop, A. Patil, J. D. Forrester, and J. Choi, “Practical guide to building machine learning-based clinical prediction models using imbalanced datasets,” Trauma Surg. Acute Care Open, vol. 9, no. 1, p. e001222, Jun. 2024, doi: 10.1136/tsaco-2023-001222.
[36] D. Piovani, R. Sokou, A. G. Tsantes, A. S. Vitello, and S. Bonovas, “Optimizing Clinical Decision Making with Decision Curve Analysis: Insights for Clinical Investigators,” Healthcare, vol. 11, no. 16, p. 2244, Aug. 2023, doi: 10.3390/healthcare11162244.
[37] M. Chua et al., “Tackling prediction uncertainty in machine learning for healthcare,” Nat. Biomed. Eng., vol. 7, no. 6, pp. 711–718, Dec. 2022, doi: 10.1038/s41551-022-00988-x.
[38] M. S. Jabal et al., “Interpretable Machine Learning Modeling for Ischemic Stroke Outcome Prediction,” Front. Neurol., vol. 13, pp. 1–8, May 2022, doi: 10.3389/fneur.2022.884693.
[39] M. Fu, Y. Liu, Z. Hou, and Z. Wang, “Interpretable prediction of acute ischemic stroke after hip fracture in patients 65 years and older based on machine learning and SHAP,” Arch. Gerontol. Geriatr., vol. 129, no. February, p. 105641, Feb. 2025, doi: 10.1016/j.archger.2024.105641.
[40] S. Shinde, M. P Kurhekar, T. Diwan, N. K Pikle, and M. Gulhane, “Design of a Novel Enhanced Machine Learning Model for Early Prediction of Cerebral Stroke Early Prediction of Brain Stroke,” Int. J. Comput. Digit. Syst., vol. 15, no. 1, pp. 1807–1821, Jun. 2024, doi: 10.12785/ijcds/1501127.
[41] V.-P. Truong, D. Lee, and J.-H. Huh, “Crunch Mode: Make Early Predictions about Risk of Stroke Using Machine Learning,” J. Inf. Commun. Converg. Eng., vol. 23, no. 1, pp. 17–25, Mar. 2025, doi: 10.56977/jicce.2025.23.1.17.
[42] A. Davahli, M. Shamsi, G. Abaei, and A. Khosravi, “Empirical analyses of genetic algorithm and grey wolf optimiser to improve their efficiency with a new multi-objective weighted fitness function for feature selection in machine learning classification: the roadmap,” J. Exp. Theor. Artif. Intell., vol. 35, no. 2, pp. 171–206, Feb. 2023, doi: 10.1080/0952813X.2021.1960627.
[43] F. Cisternas-Caneo et al., “How Is the Objective Function of the Feature Selection Problem Formulated?,” in Optimization and Learning, B. Dorronsoro, M. Zagar, and E.-G. Talbi, Eds., Cham: Springer Nature Switzerland, 2025, pp. 3–13. doi: 10.1007/978-3-031-77941-1_1.
[44] M. Huber, P. Schober, S. Petersen, and M. M. Luedi, “Decision curve analysis confirms higher clinical utility of multi-domain versus single-domain prediction models in patients with open abdomen treatment for peritonitis,” BMC Med. Inform. Decis. Mak., vol. 23, no. 1, p. 63, Apr. 2023, doi: 10.1186/s12911-023-02156-w.
[45] B. Goh and S. M. M. Bhaskar, “Evaluating Machine Learning Models for Stroke Prognosis and Prediction in Atrial Fibrillation Patients: A Comprehensive Meta-Analysis,” Diagnostics, vol. 14, no. 21, p. 2391, Oct. 2024, doi: 10.3390/diagnostics14212391.
[46] M. S. Singh, K. Thongam, P. Choudhary, and P. K. Bhagat, “Stroke Risk Prediction and Prevention: Traditional versus Machine Learning Approaches,” Arch. Comput. Methods Eng., vol. 33, no. 3, pp. 3583–3634, Apr. 2026, doi: 10.1007/s11831-025-10406-5.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
___________________________________________________________
International Journal of Advances in Intelligent Informatics
ISSN 2442-6571 (print) | 2548-3161 (online)
Organized by UAD and ASCEE Computer Society
Published by Universitas Ahmad Dahlan
W: http://ijain.org
E: info@ijain.org (paper handling issues)
andri.pranolo.id@ieee.org (publication issues)
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
























