Evaluasi Random Forest dan SMOTE dalam Menangani Ketidakseimbangan Kelas pada Klasifikasi Chronic Kidney Disease
Abstract
Chronic Kidney Disease (CKD) is a chronic condition characterized by a gradual decline in kidney function and is often detected at an advanced stage. Previous studies have reported that the Random Forest algorithm is capable of achieving good performance in CKD classification. However, CKD datasets generally contain numerous clinical variables and potential class imbalance, which may affect the model’s ability to accurately identify CKD patients. Therefore, this study aims to evaluate the performance of the Random Forest algorithm in CKD classification using the Synthetic Minority Over-sampling Technique (SMOTE) to improve prediction quality and support early disease detection. The study was conducted using a medical dataset consisting of 4,000 patient records. The research stages included exploratory data analysis (EDA), data splitting with an 80:20 ratio, SMOTE implementation, Random Forest modeling, and cross-validation. Model performance was evaluated using a confusion matrix and classification report, including accuracy, precision, recall, and F1-score metrics. The experimental results showed that the model with Random Forest algorithm achieved good classification performance, with an accuracy of 95%, precision of 87%, recall of 49%, and an F1-score of 63% for the CKD class. These findings indicate that the Random Forest algorithm has the potential to serve as an alternative approach in the development of clinical decision support systems for early CKD detection.
Downloads
References
V. Miguel, I. W. Shaw, and R. Kramann, “Metabolism at the crossroads of inflammation and fibrosis in chronic kidney disease,” Nature Reviews Nephrology.,vol. 21, no. 1, pp,39-56, 2025. doi: 10.1038/s41581-024-00889-z.
W. Maryati, I. O. Rahayuningrum, and Hestiana, “Ketepatan Kode Diagnosis Chronic Kidney Disease dalam Mendukung Kelancaran Klaim BPJS di Rumah Sakit,” Indones. Heal. Inf. Manag. J., vol. 11, no. 1, pp. 43–50, 2023, doi: 10.47007/inohim.v11i1.497.
R. M. A. A. Bhirawa and U. P. Sanjaya, “From Data Imbalance to Precision: SMOTE-Driven Machine Learning for Early Detection of Kidney Disease (Optimasi Klasifikasi Data Tidak Seimbang pada Dataset Medis pada Kasus Penyakit Ginjal Kronis dengan Teknik SMOTE),” J. Inovtek Polbeng - Seri Inform., vol. 10, no. 1, pp. 1–12, 2025, doi:10.35314/7jgjmg64.
M. Riansyah, S. Bahri, and H. P. Fiqna, “Perbandingan Akurasi Algoritma Decision Tree dengan Random Forest dalam Diagnosa Penyakit Hepatitis,” Indones. J. Sci. Technol. Humanit., vol. 2, no. 3, pp. 261–267, 2025, doi: 10.60076/ijstech.v2i3.1108.
D. Mualfah et al., " Teknik SMOTE untuk mengatasi imbalance data pada deteksi penyakit stroke menggunakan algoritma random forest " Jurnal Computer Science and Information Technology ( CoSciTech ) algoritma random forest, vol. 3, no. 2, pp. 107–113, 2022, doi: https://doi.org/10.37859/coscitech.v3i2.3912.
A. Fatima, S. Fatima, and A. Kiran, “Big Data and Machine Learning Based Early Chronic Kidney Disease Prediction,” J. Sci. Res. Technol., vol. 2, no. 3, pp. 22–28, 2024, https://www.jsrtjournal.com/index.php/JSRT/article/view/88
M. R. Nurul Istiqamah, “Klasifikasi Ulasan Konsumen Menggunakan Random,”Journal of system and computer engineering., vol. 5, no. 1, pp. 66–77, 2024, doi: 10.61628/jsce.v5i1.1061.
K. N. Qodri, M. R. Fikri, and L. Ardi, “Prediksi Analitik untuk Penyakit Ginjal Kronis: Perbandingan Metode Machine Learning,” J. Keilmuan Teknol. Inf., vol. 1, no. 1, pp. 15–22, 2025, doi: 10.61902/jkti.v1i1.1686.
N. L. Desmita, S. Lonang, and D. T. Kumoro, “Comparative Analysis of Decision Tree and Random Forest Algorithms for Predicting Diabetes Mellitus,” Sainstech Innov. J., vol. 8, no. 1, pp. 507–518, 2025, doi:10.37824/sij.v8i1.2025.783.
R. N. I. A. Anan, U. T. Arshi, S. Karim, M. K. Hasan, M. M. Rahman, T. Taher, “A dataset of demographic and lifestyle risk factors for assessing chronic kidney disease development in diabetic patients,” Data Br., vol. 64, p. 112414, Feb. 2026, doi: 10.1016/j.dib.2025.112414.
H. P. F. M. Riansyah, S. Bahri, “Perbandingan Akurasi Algoritma Decision Tree dan Random Forest dalam Diagnosa Penyakit Hepatitis,” Indones. J. Sci. Technol. Humanit., vol. 2, no. 3, pp. 261–267, Feb. 2025, doi: 10.60076/ijstech.v2i3.1108.
Y. C. Ridwan1, Hanny Hikmayanti Handayani 2, Santi Arum Puspita Lestari 3, “Evaluasi Kinerja Algoritma Random Forest Dan Gradient Boosting Untuk Klasifikasi Penyakit Jantung,” J. Komtika (Komputasi dan Inform., vol. 9, no. 1, pp. 112–124, 2025, doi: 10.31603/komtika.v9i1.13450.
M. U. K. Muhammad Arief, “Klasifikasi Penyakit Mata Menggunakan Metode Support Vector Machine dan Modified Balanced Random Forest,” Rabit J. Teknol. dan Sist. Inf. Univrab, vol. 11, no. 1, pp. 1596–1607, Jan. 2026, doi: 10.36341/rabit.v11i1.6655.
W. J. Veron and S. Muhammad, “Penerapan Metode Naive Bayes dalam Mengklasifikasi Tingkat Obesitas Pada Pria,” JOISIE J. Inf. Syst. Informatics Eng., vol. 6, no. 2, pp. 69–77, 2022, doi: 10.35145/joisie.v6i2.2467.
E. Setiawan, B. Sartono, and K. A. Notodiputro, “SMOTE and Weighted Random Forest for Classification of Areas Based on Health Problems in Java,” J. Appl. Informatics Comput., vol. 9, no. 4, pp. 1587–1592, 2025, doi: 10.30871/jaic.v9i4.9933.
B. N. U. H. H. R. Fikry, R. Kurniawan, “Sistem Klasifikasi Penyakit Diabetes Menggunakan Algoritma Random Forest Berdasarkan Data Medis,” Journal of Computer Science and Artificial Intelligence (JCSAI)., vol. 3, no. 01, pp. 2–7, 2026, https://ruangjurnal.or.id/index.php/jcsai/article/view/293.
I. Puspasari and W. I. Kusumawati, “Pemodelan Kesehatan Jantung Janin: Studi Komparatif Klasifikasi Menggunakan Metode Machine Learning,” J. Ilm. Scroll Jendela Teknol. Inf., vol. 13, no. 1, pp. 1–8, 2025, https://journal.univ45sby.ac.id/index.php/SCROLL/article/view/1.
I. Liana Hulu, N. Mumtazia, S. Shapira Nurulita, A. W. Rakhmawati, and F. I. Komputer, “Penerapan Random Forest untuk Klasifikasi Penyakit Tanaman Padi,” JRIIN J. Ris. Inform. dan Inov., vol. 2, no. 8, pp. 1353–1363, 2025, https://jurnalmahasiswa.com/index.php/jriin/article/view/1795.
N. N. Amalina and H. An, “A Multi-Head Attention Soft Random Forest for Interpretable Patient No-Show Prediction,” Systems, vol. 14, no. 5, p. 576, May 2026, doi: 10.3390/systems14050576
A. Latifah, A. Alrizal, and Y. Fendriani, “Klasifikasi Penyakit Kanker Payudara pada Citra Mammogram Menggunakan Algoritma Convolutional Neural Network (CNN) dan Random Forest,” J. ONLINE Phys., vol. 10, no. 3, pp. 95–103, Jul. 2025, doi: 10.22437/jop.v10i3.43794.
A. Sunyoto and H. Al Fatta, “Hidayat, A. Sunyoto, dan H. A. Fatta, ‘Klasifikasi Penyakit Jantung Menggunakan Random Forest Classifier,’ Jurnal Sistem Komputer dan Kecerdasan Buatan, vol. VII, no. 1, pp. 31–37, Sep. 2023.,” vol. VII, no. September, pp. 31–40, 2023, doi:10.47970/siskom-kb.v7i1.464.
M. Habib Aulia Raihan, Herman Yuliansyah, “Model Klasifikasi Emosi Berbasis Teks dengan Algoritma Decision Tree dan Support Vector Machine,” J. Inform. dan Rekayasa Perangkat Lunak, vol. 7, no. 2, pp. 195–203, 2025.
S. Sarmini, S. Sunardi, and A. Fadlil, “Performa Random Forest dan XGBoost pada Deteksi Penipuan E-Commerce Menggunakan Augmentasi Data CGAN,” Build. Informatics, Technol. Sci., vol. 6, no. 3, pp. 1919–1931, 2024, doi: 10.47065/bits.v6i3.6430.
S. A. Hidayah and Z. Abidin, “Prediksi Penyakit Asma Menggunakan Naïve Bayes dan Random Forest Berbasis Data Klinis Multivariat,” J. Algoritma., vol. 23, no. 1 pp. 1756–1767, 2026, doi: 10.33364/algoritma/v.23-1.3521.
N. Fathirachman Mahing, A. Lazuardi Gunawan, A. Foresta Azhar Zen, F. Abdurrachman Bachtiar, and S. Agung Wicaksono, “Klasifikasi Tingkat Stress dari Data Berbentuk Teks dengan Menggunakan Algoritma Support Vector Machine (SVM) dan Random Forest,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 5, pp. 1067–1076, 2024, doi: 10.25126/jtiik.2024118010.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Evaluasi Random Forest dan SMOTE dalam Menangani Ketidakseimbangan Kelas pada Klasifikasi Chronic Kidney Disease
Pages: 64-75
Copyright (c) 2026 Rahmat Dwi Cahyono, Herman Yuliasnyah, Sunardi

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).


