Optimizing Face Recognition with PCA and KNN: A Machine Learning Approach

Authors

  • Ajeet Singh
  • Atul Pratap Singh
  • Minal Rajendra Wadyalkar

Keywords:

KNN, Face Detection, PCA, Dimensionality Reduction, Machine Learning, Feature Extraction, Artificial Intelligence, Face Recognition, Python, Scikit-learn.

Abstract

Face detection and recognition have become critical applications in various fields, including security, identity verification, and human-computer interaction. This paper presents a comprehensive analysis of face detection techniques using Artificial Intelligence (AI), focusing on the integration of PCA and KNN algorithms. PCA is employed to reduce the dimensionality of face image datasets, effectively extracting important features while minimizing data loss. The KNN classifier is used for classification by identifying the closest matching face in a dataset. By applying these techniques to the LFW dataset, we achieved an overall accuracy of 88%, demonstrating the efficacy of this approach for face detection. The methodology involves training the system with face image data, utilizing PCA to project the images onto a lower-dimensional space, and applying KNN to classify the images based on their reduced feature set. The implementation was carried out using Python’s Scikit-learn library, highlighting the ease of combining well-established machine learning algorithms in a straightforward programming environment. Results show that using KNN with an optimal K value of 5, alongside PCA retaining 95% variance, provides a robust and efficient solution for face detection tasks. While this approach achieved significant success, further improvements could be made by integrating advanced classifiers such as CNNs or exploring neural networks for feature extraction. Additionally, real-time performance can be enhanced by optimizing the computational process or leveraging OpenCV for real-world applications.

Downloads

Download data is not yet available.
Cover Page

Downloads

Published

16-12-2024

How to Cite

Ajeet Singh, Atul Pratap Singh, & Minal Rajendra Wadyalkar. (2024). Optimizing Face Recognition with PCA and KNN: A Machine Learning Approach. International Journal of Research and Review in Applied Science, Humanities, and Technology, 1(2), 86-93. https://ijrasht.com/index.php/files/article/view/124

Similar Articles

You may also start an advanced similarity search for this article.