Comparative Analysis of Machine Learning Algorithms for Predicting Heart Attack
DOI:
https://doi.org/10.57152/ijatis.v3i1.2514Keywords:
Decision Tree, Extreme Gradient Boosting, Heart Attack, Random Forest, Support Vector MachineAbstract
Early detection of heart attack risk is crucial for reducing mortality rates associated with cardiovascular diseases. This study aims to perform a comparative performance analysis of four machine learning algorithms: Decision Tree, Random Forest (RF), Support Vector Machine (SVM), and Extreme Gradient Boosting (XGBoost) in classifying heart attack risk using a clinical dataset from Kaggle. The research methodology includes data preprocessing, data splitting using a 70:30 hold-out scheme, and model evaluation through a confusion matrix and standard classification metrics. The test results indicate that Random Forest provides the superior performance with the highest accuracy of 84%. Meanwhile, the SVM and XGBoost algorithms achieved 80% accuracy each, while the Decision Tree achieved the lowest at 70%. These findings confirm that ensemble-based models like Random Forests exhibit greater stability in handling complex clinical data patterns, making them highly promising for integration into early heart health warning systems.
References
World Health Organization (2024). World Health Statistics 2024: Monitoring health for the SDGs.
Kementerian Kesehatan Republik Indonesia (2023). Laporan Nasional Riset Kesehatan Dasar (Riskesdas) terkait Penyakit Tidak Menular. Jakarta: Kemenkes RI.
Hendy, A., et al. (2025). "Ensemble Learning for Cardiovascular Disease Prediction: A Comparative Study of Random Forest and Gradient Boosting." Journal of Medical Systems.
Misganaw, T., et al. (2025). "Optimization of Machine Learning Models for Early Detection of Ischemic Heart Disease." IEEE Access.
Sabilillah, M. R., et al. (2024). "Comparative Analysis of Supervised Learning Algorithms for Heart Attack Prediction using Kaggle Datasets." International Journal of Information Systems.
Janiesch, C., Zschech, P., & Heinrich, K. (2021). "Machine learning and deep learning." Electronic Markets, 31(3), 685-695.
Mahesh, B. (2020). "Machine learning algorithms - a review." International Journal of Science and Research (IJSR), 9(1), 381-386.
Jordan, M. I., & Mitchell, T. M. (2020). "Machine learning: Trends, perspectives, and prospects." Science, 349(6245), 255-260.
Pudjihardi, E., et al. (2022). "Feature Selection and Machine Learning Optimization for Cardiovascular Disease Prediction." IEEE Access.
Sarker, I. H. (2021). "Machine learning: Algorithms, real-world applications and research directions." SN Computer Science, 2(3), 160.
Cervantes, J., Garcia-Lamont, F., Rodríguez-Mazahua, L., & Lopez, A. (2020). "A comprehensive review on support vector machines after 25 years." Neural Computing and Applications, 32, 12325-12357.
Guerrouj, K., et al. (2023). "The Impact of Data Normalization on the Performance of Support Vector Machines for Medical Diagnosis." International Journal of Intelligent Systems and Applications in Engineering, 11(2), 254-261.
Battineni, G., Sagaro, G. G., Chinatalapudi, N., & Amenta, F. (2020). "Applications of Machine Learning Predictive Models in the Chronic Disease Diagnosis." Journal of Personalized Medicine, 10(2), 21.
Sarker, I. H. (2021). "Machine Learning: Algorithms, Real-World Applications and Research Directions." SN Computer Science, 2(160).
Xu, Y., & Goodacre, R. (2023). "On Parameter Tuning, Hyperparameter Optimization and Model Selection in Machine Learning." Metabolomics, 14(4), 52.
A. I. Putri, “Implementation of K-Nearest Neighbors, Naïve Bayes Classifier, Support Vector Machine and Decision Tree Algorithms for Obesity Risk Prediction”, PREDATECS, vol. 2, no. 1, pp. 26-33, Apr. 2024.
S. Suryani, M. F. Fayyad, D. T. Savra, V. Kurniawan, and B. H. Estanto, “Sentiment Analysis of Towards Electric Cars using Naive Bayes Classifier and Support Vector Machine Algorithm”, PREDATECS, vol. 1, no. 1, pp. 1-9, Jul. 2023.
Y. H. Shakir, E. A. A. A. Mandhari, and A. Alkhazraji, “Leveraging Machine Learning for Early Risk Prediction in Cirrhosis Outcome Patients”, PREDATECS, vol. 3, no. 1, pp. 22-30, Jul. 2025.







