Perbandingan Algoritma K-Nearest Neighboor dan Naive Bayes Dalam Prediksi Penyakit Ginjal Kronis Pada Lansia
Abstract
Chronic kidney disease is a serious illness that requires early diagnosis to improve treatment outcomes, especially in the elderly. The main challenge in diagnosing this disease lies in the fact that symptoms often do not appear until the disease has reached an advanced stage, which necessitates the use of accurate prediction methods. Additionally, the dataset's limited size, consisting of only 195 patient records, may affect the algorithm's ability to identify patterns. Choosing the appropriate algorithm is also a challenge, as some algorithms have limitations in handling complex medical data. This study aims to evaluate the performance of the K-Nearest Neighbors (KNN) and Naïve Bayes algorithms in predicting chronic kidney disease. The dataset was analyzed using Weka Waikato software and tested using the 9-fold cross-validation method. The best results were obtained using the Naïve Bayes algorithm, with an accuracy of 97.4359%. Based on these results, it can be concluded that both algorithms can be used to predict chronic kidney disease in the elderly. However, to further improve prediction accuracy, proposed solutions include expanding the dataset with more diverse data and optimizing the algorithm's hyperparameters. On the other hand, the Naïve Bayes algorithm demonstrated higher accuracy compared to KNN in this study, making it the more recommended choice.
Downloads
References
T. Pipit Muliyah, Dyah Aminatun, Sukma Septian Nasution, Tommy Hastomo, Setiana Sri Wahyuni Sitepu, “Faktor Yang Berhubungan Dengan Tingkat Kecemasan Pasien Penyakit Ginjal Kronik Yang Menjalani Hemodialisis,” J. GEEJ, vol. 7, no. 2, pp. 831–844, 2020.
and Y. R. M. Rizal, M. Z. Syahaf, S. R. Priyambodo, “Optimasi Algoritma Naïve Bayes Menggunakan Forward Selection Untuk Klasifikasi Penyakit Ginjal Kronis,” Naratif J. Nas. Riset, Apl. dan Tek. Inf., vol. 5, no. 1, pp. 71–80, 2023.
P. M. S. Madani, T. Rohana, K. A. Baihaqi, and A. Fauzi, “Perbandingan Kinerja Klasifikasi Penyakit Ginjal Menggunakan Algoritma Support Vector Machine (SVM) dan Decision Tree (DT),” Build. Informatics, Technol. Sci., vol. 6, no. 1, pp. 74−82-74−82, 2024, [Online]. Available: https://ejurnal.seminar-id.com/index.php/bits/article/view/5206
Sutanto, M. Suandika, and A. Susanto, “Hubungan Body Image Dengan Quality of Life Dan Quality of Sleep Pada Pasien Gagal Ginjal Kronik Yang Menjalani Hemodialisa,” J. Penelit. Perawat Prof., vol. 6, pp. 976–980, 2024
and H. P. N. Komariyah, D. N. Aini, “Hubungan Usia, Jenis Kelamin Dan Tingkat Pendidikan Dengan Kepatuhan Pembatasan Cairan Pada Pasien Gagal Ginjal Kronik Yang Menjalani Hemodialisis,” J. Ilm. Permas J. Ilm. STIKES Kendal, vol. 14, no. 3, pp. 1107–1116, 2024.
O. V. Hafifi et al., “Analisis Survival Penderita Gagal Ginjal Dengan Pendekatan Multivariate Adaptive Regression Spline,” J. Endur. Kaji. Ilm. Probl. Kesehat., vol. 6, no. 3, pp. 504–511, 2021.
and A. F. V. Alvian, D. Hidayatullah, A. Nilogiri, H. Azizah, “Klasifikasi Siswa Berprestasi Menggunakan Metode K-Nearest Neighbor (KNN) Pada SMA Negeri 2 Situbondo Classification Of Achieving Students Using K-Nearest Neighbor (KNN) Method At SMA Negeri 2 Situbondo,” J. Smart Teknol, vol. 1, no. 1, pp. 2774–1702, 2021.
and R. I. N. Fatimah Indrianti, A. Kania Ningsih, “Implementasi Data Mining Untuk Klasifikasi Penyakit Gagal Ginjal Kronis Menggunakan Metode K-Nearest Neighbor,” JATI (Jurnal Mhs. Tek. Inf., vol. 8, no. 2, pp. 2255–2260, 2024.
and P. S. N. N. P. Nugraha, R. Azim, S. Z. Daffa, “Perbandingan Akurasi Metode Naïve Bayes dan Metode KNN untuk Memprediksi Gagal Ginjal Kronis,” J. Rekayasa Elektro Sriwij, vol. 5, no. 1, pp. 1–10, 2023.
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,” J. Teknol. Inf. dan Ilmu Komput., vol. 7, no. 2, pp. 417–426, 2020.
D. Wilandini and P. Purwantoro, “Penerapan Algoritma Naïve Bayes dalam mengklasifikasikan Media Sosial untuk mengamati Trend Kuliner,” J. Teknol. Terpadu, vol. 8, no. 1, pp. 31–39, 2022.
and M. D. S. N. Rahmadani, R. Risnawati, “Penerapan Algoritma Naïve Bayes Dalam Penentuan Kelayakan Penerima Bantuan Program Keluarga Harapan,” J. Tek., vol. 3, no. 2, p. 40, 2023.
and T. S. I. Hadianti, R. Astuti, “Penerapan Algoritma Naïve Bayes Untuk Menentukan Kelayakan Penerima Bantuan Sosial Di Desa Golat,” JATI (Jurnal Mhs. Tek. Inform.), vol. 7, no. 6, pp. 3616–3620, 2024.
A. Hidayati, S., & Yulianto, “Pengaruh Kesehatan Mental Terhadap Kualitas Hidup Lansia Usia 45-65 Tahun,” J. Kesehat. Masy., vol. 16, no. 2, pp. 115–122, 2021.
N. Prasetyo, E., & Sari, “Tingkat Kecemasan dan Depresi pada Lansia Usia 45-65 Tahun di Era Pandemi COVID-19,” J. Psikol., vol. 10, no. 1, pp. 45–54, 2021.
dan R. H. U. S. A. B. Mukhlis, A. R. Mahendra, “Penanganan Missing Value pada Data Kesehatan Menggunakan Imputasi Rata-rata,” J. Sist. Inf., vol. 16, no. 1, pp. 33–40, 2020.
Alfa Saleh, “Implementasi MetodeKlasifikasi Naïve Bayes Dalam Memprediksi Besarnya Penggunaan Listrik Rumah Tangga,” J. Informatics, Inf. Syst. Softw. Eng. Appl., vol. 1, no. 2, pp. 73–81, 2019.
S. D. Herry Derajad Wijaya, “Implementasi Data Mining dengan Algoritma Naïve Bayes pada Penjualan Obat,” J. Inform., vol. 7, no. 1, pp. 1–7, 2020.
E. Chely Aulia Misrun, Haerani, E., Fikry, M., & Budianita, “Analisis sentimen komentar youtube terhadap Anies Baswedan sebagai bakal calon presiden 2024 menggunakan metode naive bayes classifier,” J. CoSciTech(Computer Sci. Inf. Technol., vol. 4, no. 1, pp. 207–215, 2023.
W. Johnson, P., & Zhang, “A Comprehensive Analysis of Naïve Bayes Classifier and Its Applications in Machine Learning,” J. Data Sci. Anal., vol. 45, no. 3, pp. 207–215, 2023.
K. Smith, J., & Johnson, “Evaluation Metrics for Machine Learning Models: The Role of Confusion Matrix,” J. Artif. Intell. Res., vol. 35, no. 2, pp. 112–130, 2023.
N. Hidayat, A., & Suryana, “Analisis Kinerja Algoritma Klasifikasi Menggunakan Confusion Matrix pada Dataset Kesehatan,” J. Inform. dan Sist. Inf., vol. 15, no. 1, pp. 67–74, 2022.
F. Prasetyo, A., & Kurniawan, “Implementasi Confusion Matrix dalam Sistem Klasifikasi Teks Menggunakan Algoritma Naïve Bayes,” J. Teknol. Inf. dan Komput., vol. 9, no. 3, pp. 112–120, 2022.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Perbandingan Algoritma K-Nearest Neighboor dan Naive Bayes Dalam Prediksi Penyakit Ginjal Kronis Pada Lansia
Pages: 1519−1525
Copyright (c) 2025 Marco Duran Simbolon, Dimas Dimanta Bukit, Rian Elby Purba, Faisal Haries Ketaren, Agung Prabowo

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






















