ANALISIS PERBANDINGAN ALGORITMA K-NEAREST NEIGHBOR (KNN) DAN SUPPORT VECTOR MACHINE (SVM) DALAM KLASIFIKASI KUALITAS SUSU
Main Article Content
Abstract
This analysis aims to compare the performance of two classification algorithms, namely K-Nearest Neighbor (KNN) and Support Vector Machine (SVM) in the context of milk quality classification. This analysis uses data from the “Milk Quality” dataset available on the Kaggle platform. To identify the best performing algorithm, the dataset was used to evaluate two algorithms' precision, recall, F1-Score, and accuracy values. The KNN algorithm consistently outperforms SVM in terms of performance, as evidenced by the results.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Menawarkan akses terbukaReferences
[1] F. Adiba, A. A. N. Risal and M. Tahir, "Implementasi Algoritma Backpropagation untuk Klasifikasi Kualitasi Susu Sapi," Jurnal MediaTIK: Jurnal Media Pendidikan Teknik Informatika dan Komputer Vol.6 No.2, pp. 42-45, Mei 2023.
[2] H. RESNAWATI, "KUALITAS SUSU PADA BERBAGAI PENGOLAHAN," Semiloka Nasional Prospek Industri Sapi Perah Menuju Perdagangan Bebas, pp. 497-502, 2020.
[3] N. Sholikah, A. A. Mufid,, A. S. Bachrul,, T. R. Hidayat and Y. Yoga, "PENGOLAHAN SUSU SAPI MENJADI SUSU PASTEURISASI UNTUK MENINGKATKAN NILAI SUSU DAN DAYA JUAL," JURNAL PEMBELAJARAN PEMBERDAYAAN MASYARAKAT Vol. 2 No. 1, pp. 75-79, 2021.
[4] 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 (JTIIK) Vol. 10, No. 2, pp. 301-308, April 2023.
[5] S. S. Berutu, H. Budiati, J. and F. Gulo, "Data preprocessing approach for machine learning-based sentiment classification," JURNAL INFOTEL, pp. 317-325, 2023.
[6] M. R. Firmansyah and Y. P. Astuti, "Stroke Classification Comparison with KNN through Standardization and Normalization Techniques," Advance Sustainable Science, Engineering and Technology (ASSET) Vol. 6, No.1, pp. 02401012-01 ~ 02401012-08, January 2024.
[7] B. K. W., H. Prasetyo, G. A. L., B. A. Wibisono and D. S. Prasvita, "Analisis Perbandingan Algoritma SVM dan CNN untuk Klasifikasi Buah," September 2021.
[8] R. A. Pradana, I. Cholissodin and N. Hidayat, "Klasifikasi Mutu Susu Sapi menggunakan Metode Modified K-Nearest Neighbor (MKNN)," Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer Vol. 6, No. 3, pp. 1360-1367, Maret 2022.
[9] N. Wakhidah and S. N. Rochmah, "Klasifikasi kualitas mutu susu pasteurisasi menggunakan metode klasifikasi K-Nearest Neighbor," AITI: Jurnal Teknologi Informasi, Volume 21 No. 1, pp. 58-71, Maret 2024.
[10] E. Y. Boateng, J. Otoo and D. A. Abaye, "Basic Tenets of Classification Algorithms K-Nearest-Neighbor, Support Vector Machine, Random Forest and Neural Network: A Review," Journal of Data Analysis and Information Processing, pp. 341-357, 2020.
[11] S. R. Cholil, T. Handayani, R. Prathivi and T. Ardianita, "Implementasi Algoritma Klasifikasi K-Nearest Neighbor (KNN) Untuk Klasifikasi Seleksi Penerima Beasiswa," IJCIT (Indonesian Journal on Computer and Information Technology), pp. 118-127, 2021.
[12] A. S. Naufal, A. and W. Astuti, "Analisis Perbandingan Klasifikasi Support Vector Machine (SVM) dan K-Nearest Neighbors (KNN) untuk Deteksi Kanker dengan Data Microarray," JURIKOM (Jurnal Riset Komputer), pp. 162-168, Februaru 2020.
[13] S. Zhang, "Challenges in KNN Classification," IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, VOL. 34, NO. 10, Oktober 2022.
[14] L. A. Demidova, "Two-Stage Hybrid Data Classifiers Based on SVM and kNN Algorithms," 2021.
[15] R. Nanda, E. Haerani, S. K. Gusti and S. Ramadhani, "Klasifikasi Berita Menggunakan Metode Support Vector Machine," Jurnal Nasional Komputasi dan Teknologi Informasi Vol. 5 No. 2, pp. 269-278, April 2022.
[16] S. Ghosh, A. Dasgupta and A. Swetapadma, "A Study on Support Vector Machine based Linear and Non-Linear Patttern Classification," International Conference on Intelligent Sustainable Systems, pp. 24-28, 2019.
[17] R. A. Wati, H. Irsyad and M. E. A. Rivan, "Klasifikasi Pneumonia Menggunakan Metode Support Vector Machine," Jurnal Algoritme Vol. 1, No. 1, pp. 21-32, Oktober 2020.
[18] Z. Soumaya, B. D. Taoufiq, N. Benayad, K. Yunus and. A. Abdelkrim, "The detection of Parkinson disease using the genetic algorithm and SVM classifier," 2021.
[19] N. G. Ramadhan and A. Khoirunnisa, "Klasifikasi Data Malaria Menggunakan Metode Support Vector Machine," JURNAL MEDIA INFORMATIKA BUDIDARMA, Vol. 5 No. 4, pp. 1580-1584, Oktober 2021.
[20] J. Cervantes, F. G. Lamont, L. R. Mazahua and A. Lopez, "A comprehensive survey on support vector machine classification: Applications, challenges and trends," 2019.