RANDOM FOREST-BASED CARDIOVASCULAR DISEASE PREDICTION WITH SHAP-DRIVEN INTERPRETABILITY

  • Farrel Rafa Akbar Department of Statistics, Faculty of Mathematics and Natural Sciences, Universitas Islam Indonesia, Indonesia https://orcid.org/0009-0004-9711-0560
  • Dina Tri Utari Department of Statistics, Faculty of Mathematics and Natural Sciences, Universitas Islam Indonesia, Indonesia https://orcid.org/0009-0000-8489-8062
Keywords: Cardiovascular disease prediction, Clinical decision support systems, Imbalanced data handling, Model interpretability, Random forest algorithm, SHAP, SMOTE

Abstract

Cardiovascular disease continues to be a significant worldwide health issue, where early detection is essential due to the frequently asymptomatic beginning of heart attacks. This research presents a model for predicting the risk of heart disease utilizing the Random Forest (RF) algorithm, trained on clinical data obtained from Zheen Hospital in Erbil, Iran. The data can be found online through the Mendeley Data website. The Synthetic Minority Oversampling Technique (SMOTE) was used to fix the problem of uneven class sizes, and Shapley Additive Explanations (SHAP) were used to explain how the model made its predictions. The RF model, improved with the best settings and evaluated with the F1-score, achieved impressive results, which are more than 99% for training, validation, and testing data. These results underscore its capacity to discover minority class patterns, crucial for recognizing rare yet significant occurrences. SHAP analysis identified troponin, creatine kinase-MB, and age as the primary predictors. The new idea is not just about individual methods but how they work together for predicting cardiovascular disease, especially by making AI easier to understand and dealing with uneven data using real clinical information. The subsequent study will aim to enhance robustness and generalizability across diverse patient populations.

Downloads

Download data is not yet available.

References

J. Huang and M. Li, “CLASSIFICATION AND PREDICTION OF CARDIOVASCULAR PATIENTS BASED ON OPTIMAL RANDOM FOREST ALGORITHM,” Cloud and Service-Oriented Computing, vol. 2, no. 1, pp. 28–35, 2022, doi: https://doi/10.23977/csoc.2022.020104.

L. Yang, et al., “STUDY OF CARDIOVASCULAR DISEASE PREDICTION MODEL BASED ON RANDOM FOREST IN EASTERN CHINA,” Sci Rep, vol. 10, no. 1, pp. 5245, 2020, doi: https://doi/10.1038/s41598-020-62133-5.

C. Hu, et al, “INTERPRETABLE MACHINE LEARNING FOR EARLY PREDICTION OF PROGNOSIS IN SEPSIS: A DISCOVERY AND VALIDATION STUDY,” Infect Dis Ther, vol. 11, no. 3, pp. 1117–1132, 2022, doi: https://doi/10.1007/s40121-022-00628-6.

S. J. Saba, E. A. Abd Al-Kareem, and M. R. Hameed, “OPTIMIZATION BASED APPROACH FOR HEART DISEASE CLASSIFICATION,” International Journal of Computational Methods and Experimental Measurements, vol. 13, no. 1, pp. 149–156, 2025, doi: https://doi/10.18280/ijcmem.130116.

A. G. Abiodun, et al., “DETECTION OF HEART DISEASE USING BINARY CLASSIFICATION MACHINE LEARNING MODEL,” Ingenierie des Systemes d’Information, vol. 30, no. 5, pp. 1111–1122, 2025, doi: https://doi/10.18280/isi.300501.

C. S. Chaithra, S. Siddesha, V. N. Manjunath Aradhya, and S. K. Niranjan, “A REVIEW OF MACHINE LEARNING TECHNIQUES USED IN THE PREDICTION OF HEART DISEASE,” Revue d'Intelligence Artificielle, vol. 38, no. 1, pp. 201–212, 2024, doi: https://doi/10.18280/ria.380120.

S. Jaya, A. Yulianto, and E. Purwanto, “COMPUTATIONAL MODELING USING LINEAR REGRESSION AND RANDOM FOREST TO ANALYZE THE IMPACT OF WORKLOAD ON EMPLOYEE PERFORMANCE EVALUATIONS,” International Journal of Computational Methods and Experimental Measurements, vol. 13, no. 2, pp. 227–237, 2025, doi: https://doi/10.18280/ijcmem.130202.

J. Ma, et al., “INTERPRETABLE MACHINE LEARNING ALGORITHMS REVEAL GUT MICROBIOME FEATURES ASSOCIATED WITH ATOPIC DERMATITIS,” Front Immunol, vol. 16, pp. 1528046, 2025, doi: https://doi/10.3389/fimmu.2025.1528046.

I. Ahn, et al., “MACHINE LEARNING–BASED HOSPITAL DISCHARGE PREDICTION FOR PATIENTS WITH CARDIOVASCULAR DISEASES: DEVELOPMENT AND USABILITY STUDY,” JMIR Med Inform, vol. 9, no. 11, pp. e32662, 2021, doi: https://doi/10.2196/32662.

L. Breiman, “RANDOM FORESTS,” Mach Learn, vol. 45, no. 1, pp. 5–32, 2001, doi: https://doi/10.1023/A:1010933404324.

G. Biau, and E. Scornet, “A RANDOM FOREST GUIDED TOUR,” TEST, vol. 25, no. 2, pp. 197–227, 2016, doi: https://doi/10.1007/s11749-016-0481-7.

R. Genuer, “VARIANCE REDUCTION IN PURELY RANDOM FORESTS,” J Nonparametr Stat, vol. 24, no. 3, pp. 543–562, 2012, doi: https://doi/10.1080/10485252.2012.677843.

Y. Mishina, R.Murata, Y. Yamauchi, T. Yamashita, and H. Fujiyoshi, “BOOSTED RANDOM FOREST,” IEICE Trans Inf Syst, vol. E98.D, no. 9, pp. 1630–1636, 2015, doi: https://doi/10.1587/transinf.2014OPP0004.

M. H. Hafezi, L. Liu, and H. Millward, “LEARNING DAILY ACTIVITY SEQUENCES OF POPULATION GROUPS USING RANDOM FOREST THEORY,” Transportation Research Record: Journal of the Transportation Research Board, vol. 2672, no. 47, pp: 194–207, 2018, doi: https://doi/10.1177/0361198118773197.

F. David Krüger, and M. Nabeel, “HYPERPARAMETER TUNING USING GENETIC ALGORITHMS A STUDY OF GENETIC ALGORITHMS IMPACT AND PERFORMANCE FOR OPTIMIZATION OF ML ALGORITHMS,” 2021.

A. Cutler, D. R. Cutler, and J. R. Stevens, “RANDOM FORESTS. IN: ENSEMBLE MACHINE LEARNING,” New York, NY: Springer New York, pp. 157–175, 2012, doi: https://doi/10.1007/978-1-4419-9326-7_5.

P. Gulati, A. Sharma, and M. Gupta, “THEORETICAL STUDY OF DECISION TREE ALGORITHMS TO IDENTIFY PIVOTAL FACTORS FOR PERFORMANCE IMPROVEMENT: A REVIEW,” Int J Comput Appl, vol. 141, no. 14, pp. 19–25, 2016, doi: https://doi/10.5120/ijca2016909926.

S. M. Lundberg and S.-I. Lee, “A UNIFIED APPROACH TO INTERPRETING MODEL PREDICTIONS,” In: Advances in Neural Information Processing Systems, I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Eds., Curran Associates, 2017, Inc. [Online].

V. Baklanova, A. Kurkin, and T. Teplova, “INVESTOR SENTIMENT AND THE NFT HYPE INDEX: TO BUY OR NOT TO BUY?,” China Finance Review International, vol. 14, no. 3, pp. 522–548, 2024, doi: https://doi/10.1108/CFRI-06-2023-0175.

A. Stojić, M. Matek Sarić, and S. Herceg Romanić, “SHAPLEY ADDITIVE EXPLANATIONS OF INDICATOR PCB-138 DISTRIBUTION IN BREAST MILK,” In: Proceedings of the International Scientific Conference-Sinteza, Beograd, Serbia: Singidunum University, 35–40, 2020, doi: https://doi/10.15308/Sinteza-2020-35-40.

L. V. Utkin and A. V. Konstantinov, “ENSEMBLES OF RANDOM SHAPS,” 2021, [Online].

J. Guo, H. Cheng, Z. Wang, M. Qiao, J. Li, and J. Lyu, “FACTOR ANALYSIS BASED ON SHAPLEY ADDITIVE EXPLANATIONS FOR SEPSIS-ASSOCIATED ENCEPHALOPATHY IN ICU MORTALITY PREDICTION USING XGBOOST — A RETROSPECTIVE STUDY BASED ON TWO LARGE DATABASE,” Front Neurol, vol. 14, 2023, doi: https://doi/10.3389/fneur.2023.1290117.

M. R. Islam, et al., “UNDERSTANDING CANCER RISK AMONG BANGLADESHI WOMEN: AN EXPLAINABLE MACHINE LEARNING APPROACH TO SOCIO-REPRODUCTIVE FACTORS USING TERTIARY HOSPITAL DATA,” Healthcare, vol. 13, no. 12, pp. 1432, 2025, doi: https://doi/10.3390/healthcare13121432.

A. V. Ponce‐Bobadilla, V. Schmitt, C. S. Maier, S. Mensing, and S. Stodtmann, “PRACTICAL GUIDE TO SHAP ANALYSIS: EXPLAINING SUPERVISED MACHINE LEARNING MODEL PREDICTIONS IN DRUG DEVELOPMENT,” Clin Transl Sci, vol. 17, no. 11, 2024, doi: https://doi/10.1111/cts.70056.

E. E. Erikštrumbelj and I. Kononenko, “AN EFFICIENT EXPLANATION OF INDIVIDUAL CLASSIFICATIONS USING GAME THEORY,” 2010, [Online].

C. Molnar, “INTERPRETING MACHINE LEARNING MODELS WITH SAP: A GUIDE WITH PYTHON EXAMPLES AND THEORY ON SHAPLEY VALUES,” 2023, Chistoph Molnar c/o MUCBOOK, Heidi Seibold.

C. Molnar, “INTERPRETABLE MACHINE LEARNING A GUIDE FOR MAKING BLACK BOX MODELS EXPLAINABLE,” 2019, Germany: Lean Publishing.

T. A. Rashid and B. Hassan, “HEART ATTACK DATASET,” 2022, Mendeley Data, V1.

Google, GOOGLE COLABORATORY [Computer software], 2023

Published
2026-08-24
How to Cite
[1]
F. R. Akbar and D. T. Utari, “RANDOM FOREST-BASED CARDIOVASCULAR DISEASE PREDICTION WITH SHAP-DRIVEN INTERPRETABILITY”, BAREKENG: J. Math. & App., vol. 20, no. 4, pp. 3545-3556, Aug. 2026.