Comparison Of The Effectiveness Of K-Nearest Neighbor (KNN) And Naive Bayes Algorithms In Identifying Diabetes Patients

Eko Budi Susanto, Anin Naba Anzila, Bambang Ismanto

Sari


Delay in diagnosis of diabetes is one of the causes of increasing mortality due to complications before diagnosis is made. In the medical field, the application of machine learning models has opened up significant opportunities in improving the accuracy of early diagnosis of diabetes. This study aims to compare the performance of the K-Nearest Neighbors (KNN) and Naive Bayes Classifier (NBC) algorithms using a secondary dataset of 128 data records and containing 10 data variables relevant to the prediction of diabetes. The results of the analysis show that the KNN algorithm with parameters K = 21 based on the evaluation of the confusion matrix obtained an accuracy of 76.92%, recall 100%, precision 72% and F1-Score 84%. Meanwhile, the naïve Bayes algorithm obtained an accuracy of 65.63%, recall 52%, precision 100% and F1-Score 69%. In the evaluation using the k-fold cross validation method with K = 10, the average accuracy for the KNN algorithm was 73% and for the Naïve Bayes algorithm was 70%. Thus, the KNN algorithm is superior and recommended for diabetes disease classification.

Teks Lengkap:

PDF

Referensi


S. U. Putri, E. Irawan and R. Fitri, "Implementasi Data Mining Untuk Prediksi Penyakit Diabetes Dengan Algoritma C4.5," Jurnal Penerapan Sistem Informasi (Komputer & Manajemen), p. 40, 2021.

V. Wulandari, W. J. Sari, Z. Alfian, Legito and T. Arifianto, "Implementasi Algoritma Naive Bayes Classifier dan K-Nearest Neighbor untuk Klasifikasi Penyakit Ginjal Kronik," Indonesia Journal of Machine Learning Computer Science, p. 711, 2024.

Sahar, "Analisis Perbandingan Metode K-Nearest Neighbor dan Naive Bayes Classifier pada Dataset Penyakit Jantung," Indonesia Journal of Data amd Science, p. 80, 2020.

N. B. Sari and N. M. Purty, "Komparasi Algoritma KNN dan Naive Bayes Untuk Klasifikasi Diagnosis Penyakit Diabetes Melitus," Jurnal Sains dan Manajemen, pp. 45-57, 2022.

A. K. E. Pily, Oktavianda, F. Aprilia, Rahmaddeni dan L. Efrizoni, “Komparasi Algoritma K-Nearest Neighborn dan Naive Bayes dalam Klasifikasi Penyakit Diabetes Gestasional,†Indonesia Journal of Computer Science, p. 1196, 2024.

S. K. Mandala, "https://www.kaggle.com/," 2022. [Online]. Available: https://www.kaggle.com/datasets/sujithmandala/easiest-diabetes-classification-dataset.

A. Rianti, N. W. A. Majid and A. Fauzi, "CRIPS-DM: Metodologi Proyek Data Science," SENARIB, p. 108, 2023.




DOI: http://dx.doi.org/10.30811/jaise.v5i1.6275

Refbacks

  • Saat ini tidak ada refbacks.


Indexing :

Creative Commons License
Journal of Artificial Intelligence and Software Engineering (JAISE) licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.