Komparasi Algoritma Extreme Gradient Boosting, Support Vector Machine, dan Random Forest Klasifikasi Penyakit Jantung
Abstract
Heart disease is one of the leading causes of death worldwide and requires early detection to reduce the risk of fatality. This study aims to analyze and compare the performance of three machine learning algorithms, namely Support Vector Machine (SVM), Random Forest, and XGBoost, in heart disease classification. The dataset was obtained from the Kaggle platform and consists of variables such as BMI, smoking habits, physical activity, general health conditions, and other health-related attributes, with HeartDisease as the target variable. The research stages include data preprocessing, categorical data encoding, data normalization, and data splitting using the 80:20 train-test split method. The results show that SVM and XGBoost achieved an accuracy of 0.90, while Random Forest achieved 0.89. Based on other evaluation metrics, XGBoost demonstrated the best performance with a precision of 0.88, recall of 0.90, and F1-score of 0.88. Feature importance analysis also revealed that several health factors significantly influence the risk of heart disease. The contribution of this study lies in comparing the performance of machine learning algorithms for heart disease classification and identifying influential health factors related to heart disease risk. The findings are expected to serve as a reference for developing decision support systems to assist early heart disease detection more accurately and efficiently.
Downloads
References
M.C. Rani, R.A. Dewi, F.D. Adzika, M. Wahyudi, S. Sumanto, and A.S. Budiman, “Perbandingan Algoritma Random Forest, Naive Bayes, Dan Neural Network Dalam Klasifikasi Penyakit Jantung,” J. Sains Inform. Terap. ( JSIT ), vol. 4, no. 2, pp. 187–201, 2025, doi: 10.62357/jsit.v4i2.609.
I. Rashad, R. R. Isnanto, and C. E. Widodo, “Klasifikasi Penyakit Jantung Menggunakan Algoritma Analisis Diskriminan Linier,” J. Sist. Info. Bisnis, vol. 13, no. 1, pp. 29–36, 2023, doi: 10.21456/vol13iss1pp29-36.
G. Ariyanto Pamungkas, R. Rahmadewi, and I. Purwita Sary, “Klasifikasi Risiko Penyakit Jantung Menggunakan Algoritma Vector Machine (Svm),” JATI (Jurnal Mhs. Tek. Inform., vol. 9, no. 3, pp. 5438–5443, 2025, doi: 10.36040/jati.v9i3.14243.
A. Sunyoto and H. Al Fatta, “Klasifikasi Penyakit Jantung Menggunakan Random Forest Classifier,” J. Sist. Komput. dan Kecerdasan Buatan, vol. VII, no. September, pp. 31–40, 2023, doi: 10.47970/siskom-kb.v7i1.464.
F. Novitasari, E. Haerani, A. Nazir, J. Jasril, and F. Insani, “Sistem Klasifikasi Penyakit Jantung Menggunakan Teknik Pendekatan SMOTE Pada Algoritma Modified K-Nearest Neighbor,” Build. Informatics, Technol. Sci., vol. 5, no. 1, pp. 274–284, 2023, doi: 10.47065/bits.v5i1.3610.
H. A. N. E. W. Pamungkas, “Perbandingan Algoritma Machine Learning: Svm, Random Forest, Dan Xgboost Untuk Prediksi Stroke,” J. Teknol. dan Sist. Inf. Univrab, vol. 10, no. 2, pp. 1098–1110, 2025, doi: 10.36341/rabit.v10i2.6444.
J. P. Anggraini, Chaya Gladys Zhafirah A, and A. Desiani, “Perbandingan Algoritma Random Forest dan Extreme Gradient Boosting (XGBoost) dalam Klasifikasi Penyakit Gagal Jantung,” Komputika J. Sist. Komput., vol. 14, no. 2, pp. 149–157, 2025, doi: 10.34010/komputika.v14i2.16618.
B. A. Seno Aji, Y. Setiawan, and S. D. Anggraini, “Analisis Perbandingan Algoritma Decision Tree, Random Forest, dan XGBoost untuk Klasifikasi Penyakit Infeksi Gigi dan Mulut,” INTEGER J. Inf. Technol., vol. 10, no. 1, pp. 135–148, 2025, doi: 10.31284/j.integer.2024.v10i1.7501.
T. R. Putri, H. Z. Zavira, N. Sulistyowati, and A. R. Pratama, “Klasifikasi Indeks Pembangunan Manusia Menggunakan Model Stacking Random Forest-XGBoost,” J. Teknol. Inf. Digit., vol. 1, no. 2, pp. 75–81, 2025, [Online]. Available: https://jurnal.ipdig.id/index.php/jtid/article/view/194
M. Erkamim, S. Suswadi, M. Z. Subarkah, and E. Widarti, “Komparasi Algoritme Random Forest dan XGBoosting dalam Klasifikasi Performa UMKM,” J. Sist. Inf. Bisnis, vol. 13, no. 2, pp. 127–134, 2023, doi: 10.21456/vol13iss2pp127-134.
M. R. Fauzi, M. Handika, A. Awinanto, A. J. Wahidin, B. Rahmatullah, and I. Kurniawati, “Analisis Perbandingan Kinerja Algoritma Linear Regression, Random Forest, dan XGBoost dalam Prediksi Harga Rumah,” RIGGS J. Artif. Intell. Digit. Bus., vol. 4, no. 4, pp. 1541–1548, 2025, doi: 10.31004/riggs.v4i4.3620.
R. Harahap, M. Irpan, M. A. Dinata, L. Efrizoni, and R. Rahmaddeni, “Perbandingan Algoritma Random Forest dan XGBoost untuk Klasifikasi Penyakit Paru-Paru Berdasarkan Data Demografi Pasien,” J. Ilm. BETRIK Besemah Teknol. Inf. dan Komput., vol. 15, no. 2, pp. 130–141, 2024, [Online]. Available: https://ejournal.pppmitpa.or.id/index.php/betrik/article/view/231
F. Alvin, N. Anisa, and S. Winarsih, “Perbandingan Kinerja Model IndoBERT , IndoBERTweet , dan Algoritma Klasik pada Analisis Sentimen Isu Indonesia Gelap,” vol. 7, no. 3, pp. 1601–1613, 2025, doi: 10.47065/bits.v7i3.8636.
I. Ciputra and A. Fahmi, “Evaluasi Komparatif Algoritma Naïve Bayes , KNN , Logistic Regression , SVM , dan Extra Trees untuk Analisis Sentimen Tokopedia,” vol. 7, no. 3, pp. 1464–1478, 2025, doi: 10.47065/bits.v7i3.8537.
I. Arfyanti, T. Bustomi, and I. Haristyawan, “Perbandingan Kinerja Algoritma Klasifikasi Data Mining Untuk Prediksi Penyakit Darah Tinggi,” vol. 6, no. 3, pp. 1987–1994, 2024, doi: 10.47065/bits.v6i3.6477.
M. Al, G. Muttaqin, and G. A. Trisnapradika, “Optimasi Algoritma SVM dengan Teknik SMOTE dan Tuning Parameter pada Klasifikasi Balita Stunting,” vol. 7, no. 3, pp. 1547–1556, 2025, doi: 10.47065/bits.v7i3.8330.
M. B. Fadli and I. Purnama, “Komparasi Perbandingan Algoritma C4 . 5 , Naive Bayes , K-Nearest Neighbor , Random Forest Untuk Prediksi Faktor Penyebab Penyakit Diabetes,” vol. 7, no. 3, pp. 2118–2126, 2025, doi: 10.47065/bits.v7i3.8683.
R. F. Apriyani and D. A. Megawaty, “Komparasi Performa Klasifikasi Sentimen Masyarakat Terhadap Kurikulum Merdeka di Sekolah Menggunakan SVM dan KNN,” vol. 6, no. 4, pp. 2795–2806, 2025, doi: 10.47065/bits.v6i4.6877.
D. Hayatunnisa, A. T. Priandika, and R. D. Gunawan, “Perbandingan Random Forest dan XGBoost Untuk Prediksi Penjualan Produk E-Commerce Rumah Madu,” vol. 7, no. 3, pp. 1479–1489, 2025, doi: 10.47065/bits.v7i3.8491.
R. Nurhidayat and N. Hendrastuty, “Analisis Sentimen Komentar Media Sosial Twitter Terhadap Tes CPNS dengan Algoritma Naive Bayes,” Build. Informatics, Technol. Sci., vol. 6, no. 3, pp. 1477–1489, 2024, doi: 10.47065/bits.v6i3.6148.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Komparasi Algoritma Extreme Gradient Boosting, Support Vector Machine, dan Random Forest Klasifikasi Penyakit Jantung
Pages: 667-676
Copyright (c) 2026 Fadil Arrosyid Fayyadh, Damayanti Damayanti

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















