Optimasi XGBoost Dengan SHAP Untuk Sistem Skrining Penyakit Jantung
DOI:
https://doi.org/10.61132/prosemnasproit.v2i2.147Keywords:
Clinical Decision Support System, Explainable AI, Heart Disease, SHAP, XGBoostAbstract
Heart disease is the leading cause of death in Indonesia and globally, necessitating an early screening system that is both accurate and clinically trustworthy. Although XGBoost demonstrates high predictive performance, its black-box nature undermines clinical trust, while low recall risks missed diagnosis an unacceptable consequence in population screening, especially in middle-income countries with limited healthcare resources. This study aims to develop a sensitive, transparent, and implementation-ready heart disease screening framework through the integration of SHAP-based Explainable AI. The CDC's Indicators of Heart Disease dataset (319,795 samples) was processed according to WHO/CDC standards, followed by class imbalance handling, hyperparameter optimization using RandomizedSearchCV, evaluation based on metrics sensitive to minority classes (AUC, recall, F1-score, AUC-PR), and threshold tuning to maximize recall. The baseline model showed a very low recall of 12.18%. After optimization and threshold tuning at 0.10, the model achieved recall >96% (96.79%) with a G-mean of 0.7477, supported by SHAP interpretation stability and the ability to capture non-linear interactions between advanced age (AgeCategory_WHO) and poor general health (GenHealth). SHAP analysis confirmed the alignment of dominant features with medical evidence, and its visualizations provide transparent explanations for healthcare professionals indicating its potential implementation as an interpretable clinical decision support system.
References
Chaddad, A., Peng, J., Xu, J., & Bouridane, A. (2023). Survey of Explainable AI Techniques in Healthcare. Sensors, 23(2), 634. https://doi.org/10.3390/s23020634
Explainable Artificial Intelligence for Biomedical and Healthcare Applications. (2025). CRC Press. https://www.google.co.id/books/edition/Explainable_Artificial_Intelligence_for/6U4aEQAAQBAJ?hl=en&gbpv=0
Guan, C., Gong, A., Zhao, Y., Yin, C., Geng, L., Liu, L., Yang, X., Lu, J., & Xiao, B. (2024). Interpretable machine learning model for new-onset atrial fibrillation prediction in critically ill patients: A multi-center study. Critical Care, 28(1), 349. https://doi.org/10.1186/s13054-024-05138-0
Harrison, M. (n.d.). Effective Xgboost.
Houssein, E. H., Mohamed, R. E., & Ali, A. A. (2023). Heart disease risk factors detection from electronic health records using advanced NLP and deep learning techniques. Scientific Reports, 13(1), 7173. https://doi.org/10.1038/s41598-023-34294-6
Jones, O. T., Matin, R. N., Van Der Schaar, M., Prathivadi Bhayankaram, K., Ranmuthu, C. K. I., Islam, M. S., Behiyat, D., Boscott, R., Calanzani, N., Emery, J., Williams, H. C., & Walter, F. M. (2022). Artificial intelligence and machine learning algorithms for early detection of skin cancer in community and primary care settings: A systematic review. The Lancet Digital Health, 4(6), e466–e476. https://doi.org/10.1016/S2589-7500(22)00023-1
Khamparia, A., & Gupta, D. (Eds.). (2025). Explainable artificial intelligence for biomedical and healthcare applications (First edition). CRC Press. https://doi.org/10.1201/9781003220107
Klosterman, S. (2021). Data science projects with Python: A case study approach to gaining valuable insights from real data with machine learning, 2nd edition (2nd ed). Packt Publishing.
Li, J., Liu, S., Hu, Y., Zhu, L., Mao, Y., & Liu, J. (2022). Predicting Mortality in Intensive Care Unit Patients With Heart Failure Using an Interpretable Machine Learning Model: Retrospective Cohort Study. Journal of Medical Internet Research, 24(8), e38082. https://doi.org/10.2196/38082
Littlewood, J. R., Jain, L., & Howlett, R. J. (Eds.). (2024). Sustainability in Energy and Buildings 2023 (1st ed. 2024). Springer Nature Singapore. https://doi.org/10.1007/978-981-99-8501-2
Luo, H., Xiang, C., Zeng, L., Li, S., Mei, X., Xiong, L., Liu, Y., Wen, C., Cui, Y., Du, L., Zhou, Y., Wang, K., Li, L., Liu, Z., Wu, Q., Pu, J., & Yue, R. (2024). SHAP based predictive modeling for 1 year all-cause readmission risk in elderly heart failure patients: Feature selection and model interpretation. Scientific Reports, 14(1), 17728. https://doi.org/10.1038/s41598-024-67844-7
Mahalle, P. N., & Ingle, Y. S. (2024). Explainable artificial intelligence: A practical guide. River Publishers. https://doi.org/10.1201/9788770047142
Maharani, A., Sujarwoto, Praveen, D., Oceandy, D., Tampubolon, G., & Patel, A. (2024). Implementation of mobile-health technology is associated with five-year survival among individuals in rural areas of Indonesia. PLOS Digital Health, 3(4), e0000476. https://doi.org/10.1371/journal.pdig.0000476
Marcolino, M. S., Schettini, I. V. G., Do Nascimento, G. F., Da Rocha, L. C. D., Lana, F. C. B., & Gonçalves, M. A. (2025). Explainable artificial intelligence for predicting cardiovascular events in hospitalised COVID-19 patients. BMC Infectious Diseases, 25(1), 1569. https://doi.org/10.1186/s12879-025-11465-6
Oikonomou, E. K., & Khera, R. (2023). Machine learning in precision diabetes care and cardiovascular risk prediction. Cardiovascular Diabetology, 22(1), 259. https://doi.org/10.1186/s12933-023-01985-3
Rahman, A., Hossain, Md. S., Muhammad, G., Kundu, D., Debnath, T., Rahman, M., Khan, Md. S. I., Tiwari, P., & Band, S. S. (2023). Federated learning-based AI approaches in smart healthcare: Concepts, taxonomies, challenges and open issues. Cluster Computing, 26(4), 2271–2311. https://doi.org/10.1007/s10586-022-03658-4
Reátegui, R., Tandazo-Malla, C., Suárez, R., & Ramírez-Cerna, L. (2025). Cardiovascular risk prediction via ensemble machine learning and oversampling methods. Scientific Reports, 15(1), 43576. https://doi.org/10.1038/s41598-025-30895-5
Rokom. (2022, September 29). Penyakit Jantung Penyebab Utama Kematian, Kemenkes Perkuat Layanan Primer – Sehat Negeriku. Sehat Negriku. https://kemkes.go.id/id/penyakit-jantung-penyebab-utama-kematian-kemenkes-perkuat-layanan-primer
Sergounioti, A., Rigas, D., Zoitopoulos, V., & Kalles, D. (2025). From Preliminary Urinalysis to Decision Support: Machine Learning for UTI Prediction in Real-World Laboratory Data. Journal of Personalized Medicine, 15(5), 200. https://doi.org/10.3390/jpm15050200
Siefkes, H., Oliveira, L. C., Koppel, R., Hogan, W., Garg, M., Manalo, E., Cresalia, N., Lai, Z., Tancredi, D., Lakshminrusimha, S., & Chuah, C. (2024). Machine Learning–Based Critical Congenital Heart Disease Screening Using Dual‐Site Pulse Oximetry Measurements. Journal of the American Heart Association, 13(12), e033786. https://doi.org/10.1161/JAHA.123.033786
tang, x. (n.d.). Mobile Computing And Sustainable Informatics. Springer Singapore.
Wang, K., Tian, J., Zheng, C., Yang, H., Ren, J., Liu, Y., Han, Q., & Zhang, Y. (2021). Interpretable prediction of 3-year all-cause mortality in patients with heart failure caused by coronary heart disease based on machine learning and SHAP. Computers in Biology and Medicine, 137, 104813. https://doi.org/10.1016/j.compbiomed.2021.104813
WHO. (2024, Agustus). The top 10 causes of death. WHO. https://www.who.int/news-room/fact-sheets/detail/the-top-10-causes-of-death
Ye, Z., An, S., Gao, Y., Xie, E., Zhao, X., Guo, Z., Li, Y., Shen, N., Ren, J., & Zheng, J. (2023). The prediction of in-hospital mortality in chronic kidney disease patients with coronary artery disease using machine learning models. European Journal of Medical Research, 28(1), 33. https://doi.org/10.1186/s40001-023-00995-x
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Prosiding Seminar Nasional Ilmu Teknik

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.






