Jurnal Ilmu Komputer Aceh
Vol 3 No 2 (2026): Jurnal Ilmu Komputer Aceh

Model Pengenalan Wajah Menggunakan Algoritma k-Nearest Neighbors

Rifa Hayatul Nisa (Universitas Almuslim)
Iqbal (Universitas Almuslim)
Imam Muslem (Universitas Almuslim)



Article Info

Publish Date
01 Jun 2026

Abstract

This study explores the development of a face recognition model using the K-Nearest Neighbors (KNN) algorithm as a classification method in biometric systems. The dataset consists of 1,000 grayscale facial images sized 128x128 pixels, collected from 10 individuals with 100 images each. Feature extraction was conducted using the Histogram of Oriented Gradients (HOG) technique to capture distinctive facial characteristics. The experimental results show that the optimal k value is 4, producing a validation accuracy of 75.37%. Further testing achieved an accuracy of 81.37% with an average F1-score of 0.81, demonstrating reliable recognition performance. Live recognition tests confirmed that the system can still identify faces under real-world conditions, such as varied orientations and partial occlusions. These results indicate that KNN is an effective and efficient algorithm for small to medium-scale face recognition tasks, offering fast training time and practical applicability for biometric identification systems.

Copyrights © 2026






Journal Info

Abbrev

ilka

Publisher

Subject

Description

Jurnal Ilmu Komputer Aceh (ILKA) merupakan jurnal berbasis OJS 3 yang dikelola oleh program studi Informatika Fakultas Ilmu Komputer Universitas Almuslim Bireuen - Aceh dengan e-ISSN 2986-7797 (online). Artikel yang diterbitkan pada jurnal ini merupakan hasil penelitian dosen dan mahasiswa di bidang ...