Perbandingan Algoritma k-Nearest Neighbors (k-NN) dan Support Vector Machines (SVM) untuk Klasifikasi Pengenalan Citra Wajah

Parasian DP Silitonga, Romanus Damanik


Abstract- The study of face recognition is one of the areas of computer vision that requires significant research at the moment. Numerous researchers have conducted studies on facial image recognition using a variety of techniques or methods to achieve the highest level of accuracy possible when recognizing a person's face from existing images. However, recognizing the image of a human face is not easy for a computer. As a result, several approaches were taken to resolve this issue. This study compares two (two) machine learning algorithms for facial image recognition to determine which algorithm has the highest level of accuracy, precision, recall, and AUC. The comparison is carried out in the following steps: image acquisition, preprocessing, feature extraction, face classification, training, and testing. Based on the stages and experiments conducted on public image datasets, it is concluded that the SVM algorithm, on average, has a higher level of accuracy, precision, and recall than the k-NN algorithm when the dataset proportion is 90:10. While the k-NN algorithm has the highest similarity in terms of accuracy, precision, and recall at 80%: 20% and 70%: 30% of 99.20. However, for the highest AUC percentage level, the k-NN algorithm outperforms SVM at a dataset proportion of 80%: 20% at 100%.


Citra, Klasifikasi, SVM, k-NN, Akurasi, Precission, Recall

Full Text:



D. A. Kurnia, A. Setiawan, D. R. Amalia, R. W. Arifin, and D. Setiyadi, “Image Processing Identifacation for Indonesian Cake Cuisine using CNN Classification Technique,” J. Phys. Conf. Ser., vol. 1783, no. 1, 2021.

Y. Religia, “Feature Extraction Untuk Klasifikasi Pengenalan Wajah Menggunakan Support Vector Machine Dan K-Nearest Neighbor,” J. Ilm. Inform. Arsit. dan Lingkung., vol. 14, no. September, pp. 85–92, 2019.

M. Suriakin, B. Kanata, and I. S. Wijaya, “Ekstraksi Ciri Wajah Manusia Menggunakan Algoritma Component Analysis (PCA) untuk Sistem Pengenalan Wajah,” vol. 1, no. 1, pp. 16–23, 2014.

O. Nurdiawan, D. A. Kurnia, D. Solihudin, T. Hartati, and T. Suprapti, “Comparison of the K-Nearest Neighbor algorithm and the decision tree on moisture classification,” IOP Conf. Ser. Mater. Sci. Eng., vol. 1088, no. 1, p. 012031, 2021.

B. Tri and Y. Permana, “Sistem Pengenalan Wajah Berbasis Algoritma Nearest Feature Midpoint,” no. 1157050028.

O. Nurdiawan, F. A. Pratama, D. A. Kurnia, Kaslani, and N. Rahaningsih, “Optimization of Traveling Salesman Problem on Scheduling Tour Packages using Genetic Algorithms,” J. Phys. Conf. Ser., vol. 1477, no. 5, 2020.

Y. A. Sari, R. K. Dewi, and C. Fatichah, “Seleksi Fitur Menggunakan Ekstraksi Fitur Bentuk, Warna, Dan Tekstur Dalam Sistem Temu Kembali Citra Daun,” JUTI J. Ilm. Teknol. Inf., vol. 12, no. 1, p. 1, 2014.

A. Primanita et al., “PENGENALAN WAJAH MENGGUNAKAN PRINCIPAL COMPONENT ANALYSIS dan Self Organizing Maps,” Semin. Nas. Teknol. Inf. Dan Komun. 2015 (Sentika 2015), vol. 2015, no. Sentika, pp. 1–7, 2015.

O. Somantri, D. A. Kurnia, D. Sudrajat, N. Rahaningsih, O. Nurdiawan, and L. Perdana Wanti, “A Hybrid Method Based on Particle Swarm Optimization for Restaurant Culinary Food Reviews,” in 2019 Fourth International Conference on Informatics and Computing (ICIC), 2019, pp. 1–5.

R. D. Mulyawan and C. Supriyanto, “Teknik Pengenalan Wajah Pada Database Citra,” no. 5, pp. 1–7, 2015.


  • There are currently no refbacks.