Klasifikasi Penyakit Ginjal Kronis Menggunakan K-Nearest Neighbors dengan Feature selection Pearson Correlation Coefficient
Abstract
Chronic kidney disease (CKD) is a global health issue that impacts quality of life and mortality rates. CKD often shows no symptoms in its early stages, earning it the nickname "silent disease," which complicates early detection efforts. This study aims to develop a classification model for CKD using the K-Nearest Neighbors (KNN) algorithm combined with the Pearson Correlation Coefficient feature selection method to enhance model performance. Feature selection is employed to reduce data dimensionality and prevent overfitting. The Kaggle "Chronic Kidney Disease" dataset is used in this study. Evaluation results show that the model with feature selection achieved an accuracy of 93.37%, precision of 91.9%, recall of 93.37%, and F1-score of 91.48%, while the model without feature selection achieved an accuracy of 91.27%, precision of 87.24%, recall of 91.27%, and F1-score of 88.99%. The contribution of this research is to improve the classification performance of chronic kidney disease by utilizing feature selection methods to achieve a better balance between precision and recall while reducing classification errors.
Downloads
References
Q. A’yuniyah et al., “Implementasi Algoritma Naïve Bayes Classifier (NBC) untuk Klasifikasi Penyakit Ginjal Kronik,” J. Sist. Komput. dan Inform., vol. 4, no. 1, hal. 72, 2022, doi: 10.30865/json.v4i1.4781.
C. J. G. Paath, G. Masi, and F. Onibala, “Study Cross Sectional : Dukungan Keluarga Dengan Kepatuhan Hemodialisa Pada Pasien Gagal Ginjal Kronis,” J. Keperawatan, vol. 8, no. 1, hal. 106, 2020, doi: 10.35790/jkp.v8i1.28418.
A. T. Akbar, N. Yudistira, and A. Ridok, “Identifikasi Gagal Ginjal Kronis dengan Mengimplementasikan Metode Support Vector Machine beserta K-Nearest Neighbour (SVM-KNN),” J. Teknol. Inf. dan Ilmu Komput., vol. 10, no. 2, hal. 301–308, 2023, doi: 10.25126/jtiik.20231026059.
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 J. Nas. Riset, Apl. dan Tek. Inform., vol. 5, no. 1, hal. 71–80, 2023, doi: 10.53580/naratif.v5i1.200.
V. Wulandari, W. J. Sari, Z. Alfian, L. Legito, and T. Arifianto, “Implementasi Algoritma Naïve Bayes Classifier dan K-Nearest Neighbor untuk Klasifikasi Penyakit Ginjal Kronik,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 4, no. 2, hal. 710–718, 2024, doi: 10.57152/malcom.v4i2.1229.
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,” J. Rekayasa Elektro Sriwij., vol. 5, no. 1, hal. 1–10, 2023, doi: 10.36706/jres.v5i1.63.
R. Salsabilla, “Data Kemenkes: Lebih dari 700 Ribu Orang RI Menderita Ginjal Kronis,” cnbcindonesia, 2024. https://www.cnbcindonesia.com/lifestyle/20240116111340-33-506206/data-kemenkes-lebih-dari-700-ribu-orang-ri-menderita-ginjal-kronis [Accessed: 14-Feb-2025].
S. N. Chotimah and A. R. Rozzaqi, “Klasifikasi Diagnosis Penyakit Ginjal Kronis Dengan Menerapkan Konsep Algoritma Naïve Bayes,” JIPETIKJurnal Ilm. Penelit. Teknol. Inf. Komput., vol. 4, no. 1, hal. 8–15, 2023, doi: 10.26877/jipetik.v4i1.16174.
E. V. Tjahjadi and B. Santoso, “Klasifikasi Malware Menggunakan Teknik Machine Learning,” Jurnal Inovasi Ilmu Komputer (JIIK), vol. 2, no. 1, hal. 60–70, Desember 2023.
M. F. Akbarollah, W. Wiyanto, D. Ardiatma, and A. T. Zy, “Penerapan Algoritma K-Nearest Neighbor Dalam Klasifikasi Penyakit Jantung,” J. Comput. Syst. Informatics, vol. 4, no. 4, hal. 850–860, 2023, doi: 10.47065/josyc.v4i4.4071.
N. Fatimah Indrianti, A. Kania Ningsih, and R. Ilyas, “Implementasi Data Mining Untuk Klasifikasi Penyakit Gagal Ginjal Kronis Menggunakan Metode K-Nearest Neighbor,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 2, hal. 2255–2260, 2024, doi: 10.36040/jati.v8i2.9464.
M. Knn, S. Kasus, R. S. Di, K. A. B. Gresik, P. Aisyiyah, and R. Devi, “Klasifikasi penyakit gagal ginjal kronis dengan metode knn (studi kasus rs di kab gresik),” vol. 9, no. 3, hal. 1739–1748, 2024.
M. F. Ahmadi and N. F. Abdi, “Klasifikasi Penyakit Ginjal Kronis (CKD) dengan Algoritma KNN dan Decision Tree ID3,” Journal of Informatics and Advanced Computing (JIAC), vol. 5, no. 2, hal. 52–57, November 2024, doi: 10.35814/jiac.v5i2.7189.
D. Leni, A. Dwiharzandis, R. Sumiati, H. Haris, and S. Afriyani, “Seleksi Fitur Berdasarkan Korelasi Pearson dalam Pemodelan Efisiensi Energi Bangunan,” Tek. Sains J. Ilmu Tek., vol. 8, no. 2, hal. 103–115, 2023, doi: 10.24967/teksis.v8i2.2525.
J. Brownlee, “How to Choose a Feature Selection Method For Machine Learning,” Machine Learning Mastery, 2020. [Online]. Available: https://machinelearningmastery.com/feature-selection-with-real-and-categorical-data/. [Accessed: 15-Feb-2025].
M. B. Hanif and G. G. Setiaji, “Meningkatkan Kinerja Decision Tree C4.5 dengan Seleksi Fitur Korelasi Pearson pada Deteksi Penyakit Diabetes,” Indones. J. Comput. Sci., vol. 11, no. 2, hal. 685–695, 2022, doi: 10.33022/ijcs.v11i2.3087.
S. Ratnasingam and J. Muñoz-Lopez, “Distance Correlation-Based Feature Selection in Random Forest,” Entropy, vol. 25, no. 9, 2023, doi: 10.3390/e25091250.
C. Yanasari and T. Arifin, “Implementasi Algoritma K-Nearest Neighbor Untuk Klasifikasi Penerimaan Beasiswa Program Indonesia Pintar,” J. Sist. Inf. dan Ilmu Komput., vol. 1, no. 4, hal. 178–194, 2023.
S. D. Prasetyo, S. S. Hilabi, and F. Nurapriani, “Analisis Sentimen Relokasi Ibukota Nusantara Menggunakan Algoritma Naïve Bayes dan KNN,” J. KomtekInfo, vol. 10, hal. 1–7, 2023, doi: 10.35134/komtekinfo.v10i1.330.
G. Gerry, B. S. Santoso, and J. P. Tanjung, “Classification of Wheat Seeds Using Neural Network Backpropagation Algorithm,” J. Informatics Telecommun. Eng., vol. 4, no. 2, hal. 335–342, 2021, doi: 10.31289/jite.v4i2.4449.
M. Sciences and K. Saikumar, “Optimized Building of Machine Learning Models for The Diagnosis of Thyroid Problems in Human Beings,” Int. J. Pharm. Res., vol. 12, no. Special Issue 3, 2020, doi: 10.31838/ijpr/2020.sp3.058.
A. Yılmaz, “Prediction of Type 2 Diabetes Mellitus Using Feature Selection-Based Machine Learning Algorithms,” Heal. Probl. Civiliz., vol. 16, no. 2, pp. 128–139, 2022, doi: 10.5114/hpc.2022.114541.
M. Miftahuddin, A. Pratama, and I. Setiawan, “Hubungan Antara Kelembaban Relatif Dengan Beberapa Variabel Iklim Dengan Pendekatan Korelasi Pearson di Samudera Hindia,” J. Siger Mat., vol. 2, no. 1, hal. 25–33, 2021, doi: 10.23960/jsm.v2i1.2753.
A. N. Dzulhijjah, S. Anraeni, and S. Sugiarti, “Klasifikasi Kematangan Citra Labu Siam Menggunakan Metode KNN (K-Nearest Neighbor) Dengan Ekstraksi Fitur HSV (Hue, Saturation, Value),” Bul. Sist. Inf. dan Teknol. Islam, vol. 2, no. 2, hal. 103–110, 2021, doi: 10.33096/busiti.v2i2.808.
P. D. Rinanda, B. Delvika, S. Nurhidayarnis, N. Abror, and A. Hidayat, “Perbandingan Klasifikasi Antara Naive Bayes dan K-Nearest Neighbor Terhadap Resiko Diabetes pada Ibu Hamil,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 2, no. 2, hal. 68–75, 2022, doi: 10.57152/malcom.v2i2.432.
A. Maslan, K. M. Bin Mohamad, and F. B. Mohd Foozy, “Feature selection for DDoS detection using classification machine learning techniques,” IAES Int. J. Artif. Intell., vol. 9, no. 1, pp. 137–145, 2020, doi: 10.11591/ijai.v9.i1.pp137-145.
M. A. Bahrudin, R. K. Niswatin, and L. S. Wahyuniar, “Sistem Pendukung Keputusan Penentuan Ekstrakurikuler Siswa SMK Al-Asy’ariyah Prambon Dengan Metode K-Nearest Neighbor (KNN),” dalam Prosiding Seminar Nasional Inovasi Teknologi Terapan (SNITT), vol. 1, hal. 185–192, Agustus 2021.
J. Nasir, R. Saputra, G. Efendi, A. Zahmi, and Y. L. Setiawan, “K-Nearest Neighbor untuk Frasa Guna Mendukung Keputusan dalam Mencari Guru Terbaik,” J. Ilmu Komput. dan Agri-Informatika, vol. 9, no. 1, hal. 13–22, 2022, doi: 10.29244/jika.9.1.13-22.
S. R. Gongada, M. Chakravarthy, and B. Mangu, “Power system contingency classification using machine learning technique,” Bull. Electr. Eng. Informatics, vol. 11, no. 6, pp. 3091-3098, 2022, doi: 10.11591/eei.v11i6.4031.
I. G. I. Sudipa et al., METODE PENELITIAN BIDANG ILMU INFORMATIKA (Teori & Referensi Berbasis Studi Kasus). PT. Sonpedia Publishing Indonesia, 2023.
V. No, K. A. Wulandari, A. Nugraha, A. Luthfiarta, and L. R. Nisa, “Edumatic : Jurnal Pendidikan Informatika Peningkatan Akurasi Deteksi Dini Penyakit Parkinson melalui Pendekatan Ensemble Learning dan Seleksi Fitur Optimal,” vol. 8, no. 2, hal. 575–584, 2024, doi: 10.29408/edumatic.v8i2.27788.
K. T. Pamungkas, L. Aridinanti, and W. Wibowo, “Analisis Sentimen Pelaporan Masyarakat di Situs Media Centre Surabaya dengan Naïve Bayes Classifier,” J. Sains dan Seni ITS, vol. 11, no. 2, 2022, doi: 10.12962/j23373520.v11i2.72566.
K. Wabang, O. D. Nurhayati, and Farikhin, “Application of The Naïve Bayes Classifier Algorithm to Classify Community Complaints,” J. RESTI (Rekayasa Sist. dan Teknol. Informasi), vol. 6, no. 5, pp. 872–876, 2022, doi: 10.29207/resti.v6i5.4498.
H. Suparwito, R. Gunawan, I. Binanto, R. A. Kumalasanti, and W. Widyastuti, Pengantar Pembelajaran Mesin Menggunakan Bahasa Pemrograman Python. Sanata Dharma University Press, 2023.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Penyakit Ginjal Kronis Menggunakan K-Nearest Neighbors dengan Feature selection Pearson Correlation Coefficient
Pages: 1767-1776
Copyright (c) 2025 Mohammad Rizan Khadiki, Vivi Aida Fitria

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






















