Intelligent System for Early Detection of Heart Disease Using XGBoost Machine Learning Algorithm on Web Application

Authors

DOI:

https://doi.org/10.25047/ijhitech.v3i2.6685

Keywords:

Early Detection, Heart Disease Detection, Machine Learning, Web-based Application, XGBoost Algorithm

Abstract

Heart disease remains a major contributor to global mortality, highlighting the importance of effective early detection systems that can assist both clinicians and general users. This study develops a heart disease prediction model based on the XGBoost algorithm and deploys it within a web-based application to enhance accessibility and practical usability. The research uses a dataset of 918 instances containing 12 demographic and clinical features commonly associated with cardiovascular risk. Pearson correlation analysis was performed to assess feature relevance, revealing that ExerciseAngina, Oldpeak, ST_Slope, Age, and MaxHR exhibit the strongest correlations with the HeartDisease outcome. These findings align with established clinical evidence on exercise-induced angina, ST-segment depression, and cardiac functional capacity. Following preprocessing and feature encoding, the XGBoost model was trained and evaluated. The model achieved strong predictive performance, with 88.26% accuracy, 88.32% precision, 91.66% recall, an F1-score of 89.96%, and an ROC-AUC of 0.93. The results demonstrate that XGBoost effectively discriminates between positive and negative cases and provides a good balance between sensitivity and precision. To enable real-world applicability, the final model was deployed on a Flask backend and integrated into a web application that allows users to input clinical parameters and receive real-time predictions. System testing confirmed that the application accurately delivers outputs and functions reliably across different input conditions. Overall, this study shows the feasibility of combining machine learning with web technologies to support early, accessible heart disease screening. Future work will involve usability testing and validation using real patient data to further strengthen the system’s clinical relevance.

References

[1] WHO, “Cardiovascular diseases (CVDs).” Accessed: May 12, 2025. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/cardiovascular-diseases-(cvds)

[2] Kementrian Kesehatan RI, “Laporan Riskesdas 2018 Nasional,” 2018. [Online]. Available: https://repository.badankebijakan.kemkes.go.id/id/eprint/3514/1/Laporan Riskesdas 2018 Nasional.pdf

[3] J. Brandts and K. K. Ray, “Novel and future lipid-modulating therapies for the prevention of cardiovascular disease,” Nat. Rev. Cardiol., vol. 20, no. 9, pp. 600–616, 2023.

[4] P. K. Pande, P. Khobragade, S. N. Ajani, and V. P. Uplanchiwar, “Early Detection and Prediction of Heart Disease with Machine Learning Techniques,” in 2024 International Conference on Innovations and Challenges in Emerging Technologies (ICICET), IEEE, 2024, pp. 1–6.

[5] H. Dai et al., “Global, regional, and national burden of ischaemic heart disease and its attributable risk factors, 1990–2017: results from the Global Burden of Disease Study 2017,” Eur. Hear. Journal-Quality Care Clin. Outcomes, vol. 8, no. 1, pp. 50–60, 2022.

[6] S. A. A. Shah, A. H. Saleh, M. Ebrahimian, and R. Kashef, “Early detection of heart disease using advances of machine learning for large-scale patient datasets,” in 2022 IEEE Canadian Conference on Electrical and Computer Engineering (CCECE), IEEE, 2022, pp. 274–280.

[7] Y. Muhammad, M. Tahir, M. Hayat, and K. T. Chong, “Early and accurate detection and diagnosis of heart disease using intelligent computational model,” Sci. Rep., vol. 10, no. 1, p. 19747, 2020.

[8] R. E. Uli, R. P. U. Satyana, E. Zomer, D. Magliano, D. Liew, and Z. Ademi, “Health and productivity burden of coronary heart disease in the working Indonesian population using life-table modelling,” BMJ Open, vol. 10, no. 9, p. e039221, 2020.

[9] B. E. Putra and R. Prakoso, “Pentingnya Mendeteksi Penyakit Jantung Bawaan Lebih Dini: Skrining Fase Prenatal dan Postnatal,” J. Indones. Med. Assoc., vol. 72, no. 2, pp. 56–58, 2022.

[10] U. Nagavelli, D. Samanta, and P. Chakraborty, “Machine Learning Technology‐Based Heart Disease Detection Models,” J. Healthc. Eng., vol. 2022, no. 1, p. 7351061, 2022.

[11] B. Krithiga, P. Sabari, I. Jayasri, and I. Anjali, “Early detection of coronary heart disease by using naive bayes algorithm,” in Journal of Physics: Conference Series, IOP Publishing, 2021, p. 12040.

[12] R. Yılmaz and F. H. Yağın, “Early detection of coronary heart disease based on machine learning methods,” Med. Rec., vol. 4, no. 1, pp. 1–6, 2022.

[13] M. Pal and S. Parija, “Prediction of heart diseases using random forest,” in Journal of Physics: Conference Series, IOP Publishing, 2021, p. 12009.

[14] S. S. Azmi and S. Baliga, “An overview of boosting decision tree algorithms utilizing AdaBoost and XGBoost boosting strategies,” Int. Res. J. Eng. Technol, vol. 7, no. 5, pp. 6867–6870, 2020.

[15] C. M. Bhatt, P. Patel, T. Ghetia, and P. L. Mazzeo, “Effective heart disease prediction using machine learning techniques,” Algorithms, vol. 16, no. 2, p. 88, 2023.

Downloads

Published

2025-12-23

Issue

Section

Articles

How to Cite

Intelligent System for Early Detection of Heart Disease Using XGBoost Machine Learning Algorithm on Web Application. (2025). International Journal of Healthcare and Information Technology, 3(2), 88-95. https://doi.org/10.25047/ijhitech.v3i2.6685

Similar Articles

1-10 of 36

You may also start an advanced similarity search for this article.