Komparasi Algoritma Extreme Gradient Boosting, Support Vector Machine, dan Random Forest Klasifikasi Penyakit Jantung


  • Fadil Arrosyid Fayyadh Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • Damayanti Damayanti * Mail Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • (*) Corresponding Author
Keywords: Heart Disease; Random Forest; Support Vector Machine; XGBoost

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

Download data is not yet available.

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

Dimensions Badge
Article History
Submitted: 2026-05-04
Published: 2026-06-30
Abstract View: 56 times
PDF Download: 47 times
How to Cite
Fayyadh, F., & Damayanti, D. (2026). Komparasi Algoritma Extreme Gradient Boosting, Support Vector Machine, dan Random Forest Klasifikasi Penyakit Jantung. Building of Informatics, Technology and Science (BITS), 8(1), 667-676. https://doi.org/10.47065/bits.v8i1.9833
Issue
Section
Articles