Analisis Komparasi Kinerja SVM, Random Forest, dan XGBoost untuk Diagnosis Penyakit Batu Empedu


  • Ananda Dika Erlangga Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • Erliyan Redy Susanto * Mail Universitas Teknokrat Indonesia, Bandar Lampung, Indonesia
  • (*) Corresponding Author
Keywords: Gallstone Disease; Machine Learning; SVM; Random Forest; XGBoost; Classification

Abstract

Gallstone disease is a hepatobiliary disorder that requires accurate diagnosis to support timely management and reduce the risk of complications. The availability of clinical and laboratory data provides an opportunity to apply machine learning as a supporting approach for disease classification. This study aims to compare the performance of Support Vector Machine (SVM), Random Forest, and XGBoost algorithms for gallstone disease classification using the Gallstone Dataset from the UCI Machine Learning Repository. The contribution of this study is to provide a comparative evaluation of SVM, Random Forest, and XGBoost on the Gallstone Dataset by consistently applying feature selection, feature standardization, class imbalance handling, and cross-validation to obtain a more objective comparison of the three algorithms. The dataset consists of 319 samples; therefore, model evaluation needs to consider the limited sample size and the potential risk of overfitting, which may affect model generalization. The research stages include feature selection using the ANOVA F-Value, handling class imbalance using the Synthetic Minority Over-sampling Technique (SMOTE), feature standardization, model development, and validation using Stratified 5-Fold Cross Validation. Evaluation was conducted using accuracy, precision, recall, F1-score, and Area Under the Curve (AUC). The results show that XGBoost achieved the best performance, with an accuracy of 79.00%, precision of 80.95%, recall of 75.32%, F1-score of 78.03%, and AUC of 85.04%. Random Forest achieved an accuracy of 78.06%, while SVM achieved 74.92%. Feature importance analysis indicated that C-Reactive Protein (CRP), Vitamin D, Hyperlipidemia, Bone Mass, and Aspartate Aminotransferase (AST) were among the attributes that contributed significantly to the classification. The results indicate that XGBoost outperformed SVM and Random Forest on the dataset used and has potential as a supporting approach for developing a gallstone disease classification system; however, evaluation using larger and more diverse datasets is required to confirm its generalization capability.

Downloads

Download data is not yet available.

References

A. H. Andini, M. Romdhoni, and F. Oktavrisa, “Karakteristik Pasien Batu Empedu Yang di Rawat di RSUD Waled Periode 2019-2022,” Syntax Literate ; Jurnal Ilmiah Indonesia, vol. 7, no. 9, pp. 15291–15303, Dec. 2023, doi: 10.36418/syntax-literate.v7i9.14253.

X. Wang et al., “Global Epidemiology of Gallstones in the 21st Century: A Systematic Review and Meta-Analysis,” Clinical Gastroenterology and Hepatology, vol. 22, no. 8, pp. 1586–1595, Aug. 2024, doi: 10.1016/j.cgh.2024.01.051.

F. Lammert et al., “EASL Clinical Practice Guidelines on the prevention, diagnosis and treatment of gallstones,” J. Hepatol., vol. 65, no. 1, pp. 146–181, Jul. 2022, doi: 10.1016/j.jhep.2016.03.005.

S. A. Alowais et al., “Revolutionizing healthcare: the role of artificial intelligence in clinical practice,” Dec. 01, 2023, BioMed Central Ltd. doi: 10.1186/s12909-023-04698-z.

A. Rindang, A. Amin, and B. Satria, “Analisis Komparatif Model Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, dan K-Nearest Neighbor untuk Klasifikasi Penyakit Batu Empedu Menggunakan Machine Learning,” Bulletin of Information System Research (BIOS), vol. 4, no. 2, pp. 90–101, Apr. 2026, doi: 10.62866/bios.v4i2.281.

Yoan, D. Marta Putria, A. Rahmawatia, and B. Wajhi Akramunnas, “Perbandingan Algoritma CatBoost dan XGBoost dalam Klasifikasi Penyakit Jantung,” Jurnal APTEK (Artikel Ilmiah Aplikasi Teknologi), vol. 15, no. 2, pp. 126–133, Jun. 2023, doi: https://doi.org/10.30606/aptek.v15i2.1930.

A. Rindang, A. Amin, and B. Satria, “Analisis Komparatif Model Logistic Regression, Decision Tree, Random Forest, Support Vector Machine, dan K-Nearest Neighbor untuk Klasifikasi Penyakit Batu Empedu Menggunakan Machine Learning,” Bulletin of Information System Research (BIOS), vol. 4, no. 2, 2026, doi: 10.62866/bios.v4i2.281.

A. Setiawan, D. Mulia Hutabalian, R. Irnanda, H. Fredi, and P. Studi Ilmu Komputer, “Evaluasi Perbandingan Kinerja Model Machine Learning Untuk Prediksi Diabetes: Studi Kasus Xgboost, Random Forest, Dan Svm 1,” Jurnal Informatika dan Komputer, vol. 12, no. 2, pp. 105–115, Dec. 2024, doi: https://doi.org/10.56689/infokom.v12i2.2350.

S. A. Hicks et al., “On evaluation metrics for medical applications of artificial intelligence,” Sci. Rep., vol. 12, no. 1, Dec. 2022, doi: 10.1038/s41598-022-09954-8.

D. Mpouziotas, J. Besharat, I. G. Tsoulos, and C. Stylios, “AliAmvra—Enhancing Customer Experience through the Application of Machine Learning Techniques for Survey Data Assessment and Analysis,” Information (Switzerland), vol. 15, no. 2, Feb. 2024, doi: 10.3390/info15020083.

Y. Yuliani, “Algoritma Random Forest Untuk Prediksi Kelangsungan Hidup Pasien Gagal Jantung Menggunakan Seleksi Fitur Bestfirst,” Infotek: Jurnal Informatika dan Teknologi, vol. 5, no. 2, pp. 298–306, Jul. 2022, doi: 10.29408/jit.v5i2.5896.

B. H. Garin Jhovany, “BATU EMPEDU,” Proceeding of The 18th Continuing Medical Education, pp. 540–550, Mar. 2025, Accessed: Aug. 04, 2026. [Online]. Available: https://proceedings.ums.ac.id/kedokteran/article/view/6294/5603

Ary Prandika Siregar, Dwi Priyadi Purba, Jojor Putri Pasaribu, and Khairul Reza Bakara, “Implementasi Algoritma Random Forest Dalam Klasifikasi Diagnosis Penyakit Stroke,” Jurnal Penelitian Rumpun Ilmu Teknik, vol. 2, no. 4, pp. 155–164, Nov. 2023, doi: 10.55606/juprit.v2i4.3039.

A. G. Zunus Saputra and Fikri Budiman, “Analisis Komparatif Model Random Forest dan XGBoost untuk Klasifikasi Penyakit Jantung Berbasis Data Klinis,” JURIKOM (Jurnal Riset Komputer), vol. 13, no. 1, pp. 254–264, Feb. 2026, doi: 10.30865/jurikom.v13i1.9427.

F. Widyawati, H. P. Suhito, W. Yassin, and H. Agus Santoso, “Classification Of Toddler Nutritional Status Using Support Vector Machine And Random Forest Techniques With Optimal Feature Selection,” Jurnal Teknik Informatika (Jutif), vol. 5, no. 6, pp. 1893–1904, Jan. 2025, doi: 10.52436/1.jutif.2024.5.6.4162.

R. S. Wijaya, A. Qur’ania, and I. Anggraeni, “Klasifikasi Penyakit Cacar Monyet Menggunakan Support Vector Machine (SVM),” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 4, no. 4, pp. 1253–1260, Jul. 2024, doi: 10.57152/malcom.v4i4.1417.

D. Mualfah, W. Fadila, and R. Firdaus, “Teknik SMOTE untuk Mengatasi Imbalance Data pada Deteksi Penyakit Stroke Menggunakan Algoritma Random Forest,” Jurnal CoSciTech (Computer Science and Information Technology), vol. 3, no. 2, pp. 107–113, Aug. 2022, doi: 10.37859/coscitech.v3i2.3912.

H. A. Nabila and Endang Wahyu Pamungkas, “Perbandingan Algoritma Machine Learning: Svm, Random Forest, Dan Xgboost Untuk Prediksi Stroke,” Rabit : Jurnal Teknologi dan Sistem Informasi Univrab, vol. 10, no. 2, pp. 1098–1110, Jul. 2025, doi: 10.36341/rabit.v10i2.6444.

V. W. Mada and D. Damayanti, “Perbandingan Algoritma Random Forest, XGBoost dan SVM Pada Klasifikasi Penyakit Demam Berdarah Dengue (DBD),” Building of Informatics, Technology and Science (BITS), vol. 7, no. 3, pp. 2157–2167, Dec. 2025, doi: 10.47065/bits.v7i3.8591.

O. Opitasari, F. Natsir, and E. S. Marsiani, “Klasifikasi Diagnosis untuk Penyakit Kanker Serviks Menggunakan Algoritma Extreme Gradient Boosting (XGBoost),” Jurnal Ilmiah FIFO, vol. 16, no. 1, p. 55, May 2024, doi: 10.22441/fifo.2024.v16i1.006.

P. Septiana Rizky, R. Haiban Hirzi, U. Hidayaturrohman, U. Hamzanwadi Selong Jl TGKH Muhammad Zainuddin Abdul Madjid Pancor, and L. Timur, “Perbandingan Metode LightGBM dan XGBoost dalam Menangani Data dengan Kelas Tidak Seimbang,” J Statistika, vol. 15, no. 2, pp. 228–236, Dec. 2022, doi: https://doi.org/10.36456/jstat.vol15.no2.a5548.

R. Harahap, M. Irpan, M. Azzuhri Dinata, and L. Efrizoni, “Perbandingan Algoritma Random Forest Dan Xgboost Untuk Klasifikasi Penyakit Paru-Paru Berdasarkan Data Demografi Pasien,” Jurnal Ilmiah Betrik, vol. 15, no. 02, pp. 130–141, Aug. 2024, doi: https://doi.org/10.36050/3v3xwn06.

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 : Jurnal Sistem Komputer, vol. 14, no. 2, pp. 149–157, Nov. 2025, doi: 10.34010/komputika.v14i2.16618.


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Analisis Komparasi Kinerja SVM, Random Forest, dan XGBoost untuk Diagnosis Penyakit Batu Empedu

Dimensions Badge
Article History
Submitted: 2026-08-16
Published: 2026-09-22
Abstract View: 71 times
PDF Download: 42 times
How to Cite
Erlangga, A., & Susanto, E. (2026). Analisis Komparasi Kinerja SVM, Random Forest, dan XGBoost untuk Diagnosis Penyakit Batu Empedu. Building of Informatics, Technology and Science (BITS), 8(2), 894-905. https://doi.org/10.47065/bits.v8i2.11008
Section
Articles