Perbandingan Kinerja Algoritma K-Nearest Neighbor (KNN) Dan Naive Bayes Dalam Pengklasifikasian Skor Ujian Mahasiswa Berdasarkan Faktor Akademik Dan Non-Akademik
DOI:
https://doi.org/10.30872/atasi.v5i2.4652Keywords:
Academic performance, KNN, Naïve BayesAbstract
Student academic achievement is an important indicator for assessing the success of the learning process in higher education. Students’ exam scores are influenced not only by academic factors, such as study hours, class attendance, study methods, exam difficulty, and course, but also by non-academic factors, such as age, gender, internet access, sleep duration, sleep quality, and learning facilities. This study aims to compare the performance of the K-Nearest Neighbor (KNN) and Naïve Bayes algorithms in classifying students’ exam scores into two categories: Poor and Good. The dataset used in this study consists of 5,716 records with 12 attributes. The research process includes data preprocessing, target transformation, data splitting into training and testing sets, algorithm implementation, and performance evaluation using accuracy, precision, recall, and classification error. The results show that Naïve Bayes achieved an accuracy of 83.02%, precision of 82.85%, recall of 82.79%, and classification error of 16.98%, making it more effective than KNN in classifying students’ exam scores.
References
Amra, I. A. A., & Maghari, A. Y. A. (2017). Students performance prediction using KNN and naïve Bayesian. In 2017 8th International Conference on Information Technology (ICIT) (pp. 909–913).
Aram, M. (2024). Strategi pengelolaan akademik dan penjaminan mutu di perguruan tinggi. Penerbit Widina. https://repository.penerbitwidina.com/publications/585310/strategi-pengelolaan-akademik-dan-penjaminan-mutu-di-perguruan-tinggi
Arumdani, A. L. (2025). Strategi organisasi dalam meningkatkan prestasi (akademik dan non-akademik) mahasiswa. Jurnal Penelitian Ilmu-Ilmu Sosial, 3(2), 214–223.
Efendi, A., & Dahlia. (2025). Pengaruh aspek kognitif dan afektif terhadap prestasi akademik mahasiswa. MAMEN: Jurnal Manajemen, 4(3), 267–277. https://doi.org/10.55123/mamen.v4i3.5287
Feri, S. L. N. (2023). Basic data mining from A to Z. https://books.google.co.id/books/about/Basic_Data_Mining_from_A_to_Z.html?id=JcLhEAAAQBAJ
Gopinda, M. (2026). Studi perbandingan algoritma machine learning. [Nama Jurnal tidak diketahui], 1(1), 22–28.
Lumley, M., & Wilkinson, J. (2014). Teorema naïve Bayes. In Developing employability for business. Oxford University Press.
Munarsih, & Ningsi, B. A. (2023). Performance comparison of data mining classification algorithms on student academic achievement prediction. Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM), 6(1), 29–39.
Muthohharoh, N., Lidimilah, L. F., & Homaidi, A. (2025). Perbandingan algoritma naïve Bayes dan K-nearest neighbor untuk mengklasifikasikan status kesehatan. Karsanusa: Jurnal Pengabdian dan Riset Kesehatan Masyarakat, 1(1), 24–32. https://journalng.uwks.ac.id/karsanusa/article/view/512
Nooraeni, R., & Nurfalah, G. (2022). Kajian penerapan jarak Euclidean, Manhattan, Minkowski, dan Chebyshev pada algoritma clustering K-prototype. Sains, Aplikasi, Komputasi dan Teknologi Informasi, 4(2), 72–82.
Pebdika, A., Herdiana, R., & Solihudin, D. (2023). Klasifikasi menggunakan metode naive Bayes untuk menentukan calon penerima PIP. JATI (Jurnal Mahasiswa Teknik Informatika), 7(1), 452–458. https://doi.org/10.36040/jati.v7i1.6303
Rohman, N., & Wibowo, A. (2024). Perbandingan metode K-medoids dan metode K-means dalam analisis segmentasi pelanggan mall. SINTECH (Science and Information Technology) Journal, 7(1), 49–58. https://doi.org/10.31598/sintechjournal.v7i1.1507
Runimeirati, Muis, A., & Muhammad, F. (2023). Pelatihan text mining menggunakan bahasa pemrograman Python. ABDIMAS LANGKANAE: Jurnal Pengabdian kepada Masyarakat, 36–46.
Sudarsono, B. G., Leo, M. I., Santoso, A., & Hendrawan, F. (2021). Analysis data mining Netflix data using the Rapid Miner application. Journal of Business and Audit Information Systems, 4(1), 13–21.
Warinda. (2025). Keterlambatan penyelesaian studi mahasiswa hukum keluarga Islam fakultas syariah di IAIN Palopo [Skripsi, IAIN Palopo]. Repository IAIN Palopo. https://repository.uinpalopo.ac.id/id/eprint/11231/
Watratan, A. F., Puspita B, A., & Moeis, D. (2020). Implementation of the naive Bayes algorithm to predict the spread of Covid-19 in Indonesia. Journal of Applied Computer Science and Technology, 1(1), 7–14.
Wijaya, A., & Bismi, W. (2025). Penerapan algoritma machine learning dalam mengklasifikasi data masa studi di Indonesia berdasarkan jenis kelamin. Journal of Information Engineering and Educational Technology, 8(2), 62–74. https://doi.org/10.26740/jieet.v8n2.p62-74
Yuliansyah, M. R., Muslimin, B., & Franz, A. (2022). Perbandingan metode K-nearest neighbors dan naïve Bayes classifier pada klasifikasi status gizi balita di Puskesmas Muara Jawa Kota Samarinda. Adopsi Teknologi dan Sistem Informasi (ATASI), 1(1), 8–20. https://doi.org/10.30872/atasi.v1i1.25
Zhang, Z. (2016). Introduction to machine learning: K-nearest neighbors. Annals of Translational Medicine, 4(11), 1–7. https://doi.org/10.21037/atm.2016.03.37
Zulkifli, R., Andryadi, A. A., Nurfadhilah, D. S., & Utami, L. L. (2024). Penerapan algoritma naive Bayes dalam memprediksi minat mahasiswa baru. JOISM: Journal of Information System Management, 5(1), 1–10. https://jurnal.amikom.ac.id/index.php/joism/article/view/2375
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Adopsi Teknologi dan Sistem Informasi (ATASI)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.











