Analisis Klasifikasi Penyakit Ginjal Kronis Menggunakan Algoritma K-Nearest Neighbor dan Random Forest Berbasis Orange Data Mining
Abstract
Chronic Kidney Disease (CKD) is a global health problem with morbidity rates that continue to increase from year to year. The main challenge in the medical management of CKD is delayed diagnosis due to early symptoms that are often unnoticed by patients, thereby requiring rapid, objective, and accurate detection methods. This study aims to analyze and compare the performance of two popular classification algorithms, K-Nearest Neighbor (kNN) and Random Forest, in classifying chronic kidney disease status. Experiments were conducted using Orange Data Mining software by utilizing a patient clinical medical record dataset. The model evaluation was rigorously tested using the 10-Fold Cross Validation method to ensure the validity of the results. The main contribution of this study is to present an in-depth comparative analysis regarding the evaluation metrics of ensemble trees compared to distance-based approaches to minimize the risk of missed diagnosis in clinical decisions. The results showed that the Random Forest algorithm produced the best and superior performance with an accuracy rate (Accuracy) reaching 99.0%, a Precision value of 99.3%, and an AUC value of 0.999. Conversely, the K-Nearest Neighbor algorithm obtained a lower accuracy rate of 96.0% with an AUC of 0.994. These findings indicate that the ensemble tree approach is more adaptive in handling clinical data characteristics, and has great potential to be integrated as a clinical decision support system for medical personnel in hospitals.
References
A. Francis et al., “Chronic kidney disease and the global public health agenda: an international consensus,” Nat. Rev. Nephrol., vol. 20, no. 7, pp. 473–485, 2024, doi: 10.1038/s41581-024-00820-6.
A. Novandra et al., “Menjalani Hemodialisis Pendahuluan Penyakit merupakan Ginjal Kronis ( PGK ) global albumin urine per gram dari creatinin urin ), Glomerular Filtration Rate ( GFR ) < 60ml / menit / 1 , 73 m 2 dengan jangka waktu PGK menyebabkan perubahan masalah kesehatan,” vol. 10, pp. 235–253, 2025.
J. Pendidikan, “Pemanfaatan Artificial Intelligence Dalam Bidang Kesehatan Ganis,” vol. 11, no. 1, pp. 234–242, 2024.
Khasan Galuh Ramadhan, Gentur Wahyu Nyipto Wibowo, and Nadia Annisa Maori, “Komparasi Deteksi Penyakit Ginjal Kronis Menggunakan Algoritma Support Vector Machine Dan Random Forest,” Jurnal Informatika dan Rekayasa Elektronik, vol. 8, no. 1, pp. 13–21, 2025, doi: 10.36595/jire.v8i1.1288.
S. Dhara, “Data Pre-Processing and Feature Engineering for Optimization,” Artificial Intelligence Techniques in Mathematical Modeling and Optimization, pp. 32–56, 2026, doi: 10.1201/9781003633402-3.
M. Rizal, M. Z. Syahaf, S. R. Priyambodo, and Y. Rhamdani, “Optimasi Algoritma Naïve Bayes Menggunakan Forward Selection Untuk Klasifikasi Penyakit Ginjal Kronis,” Naratif : Jurnal Nasional Riset, Aplikasi dan Teknik Informatika, vol. 5, no. 1, pp. 71–80, 2023, doi: 10.53580/naratif.v5i1.200.
A. T. Akbar, N. Yudistira, and A. Ridok, “Identifikasi Gagal Ginjal Kronis dengan Mengimplementasikan Metode Support Vector Machine beserta K-Nearest Neighbour (SVM-KNN),” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 10, no. 2, pp. 301–308, 2023, doi: 10.25126/jtiik.20236059.
D. Irmansyah, “Jurnal JISIILKOM (Jurnal Inovasi Sistem Informasi & Ilmu Komputer) Prediksi Penyakit Paru-Paru Menggunakan Jaringan Syaraf Tiruan Dengan Metode Backpropagation Article Info,” Jurnal JISIILKOM, vol. 3, no. 1, pp. 3025–4868, 2025.
G. Anantasia and S. R. Rindrayani, “Metodologi Penelitian Quasi Eksperimen,” Adiba: Journal of Education, vol. 5, no. 2, pp. 183–192, 2025.
F. R. Aftha Harianto, Z. Alawi, and I. A. Sa’ida, “Pengaruh Komposisi Split Data Pada Akurasi Klasifikasi Penderita Diabetes Menggunakan Algoritma Machine Learning,” Jurnal Sistem Informasi dan Informatika (Simika), vol. 8, no. 1, pp. 36–44, 2025, doi: 10.47080/simika.v8i1.3663.
P. Aisyiyah and R. Devi, “JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika) Journal homepage: https://jurnal.stkippgritulungagung.ac.id/index.php/jipi Klasifikasi Penyakit Gagal Ginjal Kronis Dengan Metode KNN (Studi Kasus RS Di Kab Gresik),” vol. 9, no. 3, pp. 1739–1748, 2024, [Online]. Available: https://doi.org/10.29100/jipi.v9i3.6226
I. Wisnuadji Gamadarenda and I. Waspada, “Implementation of Data Mining for the Detection of Chronic Kidney Disease (Ckd) Using K-Nearest Neighbor (Knn) With Backward Elimination,” Jurnal Teknologi Informasi dan Ilmu Komputer (JTIIK), vol. 7, no. 2, pp. 417–426, 2020, doi: 10.25126/jtiik.202071896.
F. M. Natsir, R. Y. Bakti, and T. Wahyuni, “Analisis Deteksi Dini Penyakit Jantung dengan Pendekatan Support Vector Machine pada Data Pasien,” Arus Jurnal Sains dan Teknologi, vol. 2, no. 2, pp. 437–446, 2024, doi: 10.57250/ajst.v2i2.669.
L. Sari, A. Romadloni, and R. Listyaningrum, “Penerapan Data Mining dalam Analisis Prediksi Kanker Paru Menggunakan Algoritma Random Forest,” Infotekmesin, vol. 14, no. 1, pp. 155–162, 2023, doi: 10.35970/infotekmesin.v14i1.1751.
N. P. Nugraha, R. Azim, S. Z. Daffa, and P. S. Ningayu, “Perbandingan Akurasi Metode Naïve Bayes dan Metode KNN untuk Memprediksi Gagal Ginjal Kronis,” Jurnal Rekayasa Elektro Sriwijaya, vol. 5, no. 1, pp. 1–10, 2023, doi: 10.36706/jres.v5i1.63.
A. Ar, R. Hasibuan, and N. A. Hrp, “Implementasi Algoritma Decision Tree untuk Klasifikasi Penyakit Ginjal Kronis Berbasis Machine Learning,” vol. 4, no. 2, pp. 49–61, 2026.
F. Hafizulhaq and A. Andasuryani, “Orange Classification using Naïve Bayes and K-Nearest Neighbor Algorithms based on Its Physical Properties,” EKSAKTA: Journal of Sciences and Data Analysis, vol. 7, no. 1, pp. 197–205, 2026, [Online]. Available: https://journal.uii.ac.id/Eksakta/article/view/43102
O.- Pahlevi, A.- Amrin, and Y.- Handrianto, “Implementasi Algoritma Klasifikasi Random Forest Untuk Penilaian Kelayakan Kredit,” Jurnal Infortech, vol. 5, no. 1, pp. 71–76, 2023, doi: 10.31294/infortech.v5i1.15829.
Z. Z. Hulaifah Al Abrori and E. R. Subhiyakto, “Analisis Komparatif Akurasi Prediksi Kanker Payudara Menggunakan Algoritma Random Forest dan Logistic Regression,” Jurnal Algoritma, vol. 22, no. 1, pp. 300–311, 2025, doi: 10.33364/algoritma/v.22-1.2164.
F. Putra, H. F. Tahiyat, R. M. Ihsan, R. Rahmaddeni, and L. Efrizoni, “Penerapan Algoritma K-Nearest Neighbor Menggunakan Wrapper Sebagai Preprocessing untuk Penentuan Keterangan Berat Badan Manusia,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 4, no. 1, pp. 273–281, 2024, doi: 10.57152/malcom.v4i1.1085.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Analisis Klasifikasi Penyakit Ginjal Kronis Menggunakan Algoritma K-Nearest Neighbor dan Random Forest Berbasis Orange Data Mining
Pages: 97 - 107
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).