Scientific Journal of Informatics
Vol. 11 No. 4: November 2024

Comparison of KNN and CNN Algorithms for Gender Classification Based on Eye Images

Wicaksono, Rizky Dwi (Unknown)
Fajar Shidiq, Guruh (Unknown)



Article Info

Publish Date
10 Dec 2024

Abstract

Purpose: This study explores gender classification using iris images and compares two methods k-nearest neighbors (KNN) and convolutional neural networks (CNN). Most research has focused on facial recognition. However, iris classification is more unique and accurate. This research addresses a gap in gender classification using iris images. It also tests the effectiveness of CNN and KNN for this task. Methods: This study used 11,525 iris images from Kaggle. Of these, 6,323 were male and 5,202 were female. The authors split the data into training (75%) and testing (25%). Preprocessing involved normalizing and augmenting images by rotating, scaling, shifting, and reflecting the them. Pixel values were also adjusted. The study compared the KNN algorithm, using Euclidean distance and 16 neighbors, with a CNN model. The CNN had layers for convolution, pooling, and density. The authors performed evaluation using accuracy, precision, recall, F1-score, and confusion matrix. Result: The KNN model demonstrated 81% accuracy. It identified males with 87% precision but only 70% recall. Meanwhile, the CNN model was better, achieving 93% accuracy with 94% precision and 95% recall for males. The CNN model outperformed KNN for females in precision, recall, and F1-score, indicating its superior ability to learn patterns and classify gender from iris images. Novelty: CNN outperforms KNN in classifying gender from iris images. It effectively recognizes patterns and achieves high accuracy. The study shows CNN’s superiority in biometric tasks, suggesting that future research should balance datasets and test better models, as well as combining models for better performance.

Copyrights © 2024






Journal Info

Abbrev

sji

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management Electrical & Electronics Engineering Engineering

Description

Scientific Journal of Informatics (p-ISSN 2407-7658 | e-ISSN 2460-0040) published by the Department of Computer Science, Universitas Negeri Semarang, a scientific journal of Information Systems and Information Technology which includes scholarly writings on pure research and applied research in the ...