Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

EAI Endorsed Transactions: Smart Attendance System Using Face Recognition

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

EAI Endorsed Transactions

on Scalable Information Systems Research Article

Smart Attendance System using Face Recognition


Jayaraj Viswanathan1,*, Kuralamudhan E2, Navaneethan S3 and Veluchamy S4

1,2,3,4
Department of Computer Science and Engineering, Amrita Vishwa Vidyapeetham, Chennai, India

Abstract

Face recognition offers a wide range of valuable applications in social media, security, and surveillance contexts. The
software used for building facial recognition algorithms is Python and OpenCV. "Attendance using Face Recognition" is a
method for tracking and managing attendance that makes use of facial recognition technology. By seamlessly integrating
the 'Face Recognition' module, a native Python feature, and the OpenCV library, our system excels in accuracy and
dependability. The system then stores attendance records in a database and provides real-time reports. In this article, we
demonstrate how to create a face recognition system in Python utilizing the built-in "Face Recognition" module and the
OpenCV library. Our results show that our system achieves high accuracy and robustness while being efficient and
scalable, catering to a wide spectrum of educational institutions, organizations, and enterprises.

Keywords: Computer Vision, machine learning, face recognition, Open CV, facial feature extraction

Received on 30 November 2023, accepted on 19 February 2024, published on 26 February 2024

Copyright © 2024 Jayaraj Viswanathan et al., licensed to EAI. This is an open access article distributed under the terms of the CC
BY-NC-SA 4.0, which permits copying, redistributing, remixing, transformation, and building upon the material in any medium so
long as the original work is properly cited.

doi: 10.4108/eetsis.5203

Corresponding author. Email: ch.en.u4cys21026@ch.students.amrita.edu


*

easy way to keep track of people and manage their


attendance [3]. This implementation offers a more efficient
1. Introduction and accurate way to manage attendance records compared to
other traditional methods such as paper-based systems or
Face recognition has gotten a part of consideration due to its manual data entry.
convenience in numerous diverse areas. It includes
identifying and recognizing people from facial pictures or The primary achievements of this endeavour are outlined as
recordings [1]. In computer vision and machine learning, follows:
face recognition has grown in popularity, and numerous 1. Creation of an independent attendance management
algorithms have been created over time [2]. The main idea is system which depends on detecting facial features
to naturally distinguish or confirm a person based on their present within human faces.
facial highlights. Python and OpenCV are popular tools for 2. Demonstration of facial feature extraction within group
implementing face recognition algorithms, with many
settings as a focal point of this study.
libraries and modules available for use. Using facial
3. Implementation of the complete operational model in
recognition technology, "Attendance using Face
Recognition" is a system created to make the procedure of the form of a web application, ensuring straightforward
recording attendance automatic. A camera is used by the accessibility.
model to capture images of people entering specific
locations, their identities are then verified and processed 1.1 Disadvantages of Manual Attendance
using deep learning algorithms.
System
The model stores the attendance records in a database to
provide real time reports to the administrators. It provides an

EAI Endorsed Transactions on


Scalable Information Systems
1 Online First
J. Viswanathan et al.

Manual attendance systems have several drawbacks. Firstly, A deep neural network and set-based face recognition
they are time-consuming as it requires employees to sign in method was proposed by Prathama et al [7]. since ageing
and out which causes delays. Secondly, they are error-prone, alters facial features and affects recognition. They regard
with issues like misreading handwriting and discrepancy in each subject's collection of photographs captured at various
recording attendance at times lead inaccuracies [4]. Lastly, points in time as a single set and contrast it with collections
these systems raise security concerns, as they are vulnerable of images of other subjects. It has been discovered that set-
to fraud and manipulation by employees, resulting in based recognition outperforms singleton-based recognition
inaccurate attendance records. This can impact financial and for both identification and verification, and that utilizing set-
tracking processes. based recognition, it is simpler to distinguish between older
and younger people.
A novel approach to facial recognition incorporating
1.1 Benefits of Smart Attendance System advanced feature extraction techniques was proposed by
Husein et al [8]. The system uses the OpenCV cascade
Implementing face recognition technology for attendance classifier to detect faces and the distinctive characteristics
tracking comes with several advantages. Firstly, it extracted from the set of facial data to distinguish between
significantly saves time by automatically identifying the facial images. The authors also assess the android
individuals and recording their attendance thereby device's battery life, processor power, and memory usage.
eliminating the need for manual processes and paperwork. The results demonstrate 93% accuracy in favourable
Secondly, it enhances accuracy by minimizing the lighting. The paper concludes by discussing the benefits and
likelihood of errors in attendance records. Moreover, this limitations of face recognition in android.
technology provides real-time attendance data allowing Facial Recognition for Attendance and Management by
administrators to make quick decisions related to staffing, Baskar et al [9]
scheduling, or absenteeism [5]. Additionally, it bolsters proposed a facial identification and recognition system to
security measures, as it is difficult to impersonate someone automate attendance records in classrooms. The system
else's face, reducing the risk of fraudulent attendance involved an enrolment process, recognition, and
entries. In summary, adopting face recognition for authentication procedures. They used machine learning
attendance offers improved precision, time efficiency, real- models and classifiers to identify and label faces, and record
time insights, and heightened security compared to attendance accordingly. The paper concludes with the
traditional manual systems. implementation results and areas for improvement.
Udit’s "Image Processing Using OpenCV" [10] This
study investigated the application of OpenCV, a free
2. Literature Survey computer vision toolkit, to image processing tasks. The
paper provides an overview of OpenCV and its features,
Face Recognition System Technology by Sagar et al [6]
including its ability to handle real-time image processing,
discussed biometric and face recognition as a domain that
detect and track objects, and recognize faces.
begins with face detection and extraction of features. It
Face Recognition by Sudhir et al [11] is the foundation
explained the scope and benefits of the project along with
of the Smart Attendance System utilising OpenCV. This
related works and challenges in face recognition due to
research study described a system for automating classroom
limited datasets. It concludes that face recognition is an
attendance using OpenCV and facial recognition methods.
emerging technology that will only become more accurate
The study laid out the need for a mechanized participation
and efficient.
framework which reduces errors and saves time compared to
the traditional manual frameworks.

Figure 1. Block diagram describing the design of our algorithm for face recognition

EAI Endorsed Transactions on


Scalable Information Systems
2 Online First
Smart Attendance System using Face Recognition

by first converting the real-time image from "BGR"


3. Proposed Methodology to "RGB" format and then saving them in pairs.
4. Face Recognition: After that, the facial features are
analysed, and if they match those in our dataset,
3.1. Existing Practice attendance is noted in the excel sheet along with the
date and hour.
The existing practice for taking attendance can vary
depending on the specific setting and purpose. Typical
actions include the following: 4. Results
1. Sign-in sheet: In this method, the instructor or teacher
provides a sheet of paper with the names of the
students and asks them to sign in when they arrive 4.1. Dataset and Environmental setup
[12].
2. Roll Call: This is the traditional method where the In this work, a dataset comprising 16 human face images
instructor or teacher calls out each student's name and was utilized. These images were obtained from students
and teachers affiliated with Amrita Vishwa
the student respond with "present" or "here".
Vidyapeetham, showcasing a diverse range of facial
3. Barcode/RFID scanning: Some institutions use
expressions. These images serve as the dataset for training
technology such as barcode or radio-frequency and evaluating our face recognition system [Figure 2].
identification (RFID) scanners to track attendance The images were originally in JPEG and JPG formats
[13]. and possessed a resolution of 1209 x 1620 pixels, as
4. Participation-based: In some courses, attendance may depicted in Figure 2. Subsequently, the images were pre-
be taken based on participation. This means that processed by cropping them to isolate the facial area and
students need to actively participate in the class resizing them to a consistent size. This resizing ensured
discussion, group work, or other activities to be that the resulting output images were one-fourth the width
counted as present [14]. and height of the original input images.
5. Peer Check-in: In this method, students may be asked
to check in with a classmate or group to confirm their
attendance [15][16].
Most of these approaches are subject to errors, Time
consuming and are not 100% reliable thus a need for a
better solution to taking attendance is necessary in the
near future.
Figure 2. Sample images collected from students
3.2. Proposed Method
Figure 1 illustrates the proposed method which involves
the following steps:
1. Face Detection: To detect facial features in the given
input stream, we employ the "Face Recognition"
module in Python. In order to find faces, the module
makes use of a trained model. The image of the
person is loaded using “load_image_file” method and
the detected faces are then passed to the next step for
alignment.
2. Face Alignment and Feature Extraction: The
face_encodings approach, which uses the popular Figure 3.1 Real-time face capture and recognition
“FaceNet” algorithm to find the lineaments and to
extract the facial features. The detected features are
then used get the facial coordinates which are then The experiment and implementation were conducted
stored as an array. using a Python language framework using Intel Core i7 |
3. Real Time Face Detection: For real time detection we 16 GB RAM. The Flask application was utilized to load a
use CV2 where cap.read()command is used to capture real-time video feed, where users were expected to
display their faces. The captured face in real time is
a frame from the video. The face_recognition library
compared with the pre-existing dataset using advanced
facilitates the extraction and storage of facial features
face recognition algorithms. The system matches the
facial features and accurately recognizes the individual

EAI Endorsed Transactions on


Scalable Information Systems
3 Online First
J. Viswanathan et al.

[Figure 3.1] [Figure 3.2]. Upon successful face


recognition, attendance was recorded in an Excel sheet,
including the individual's name, attendance time, and
status [Figure 4].
The evaluation of the attendance solution presented in
this research relies on the accuracy and face Match Index.
The dataset used for training and testing the system
comprises a very small number of images, resulting in a
relatively low accuracy of the model, with a maximum of
70%. The accuracy of the facial recognition system is
determined by calculating the minimum difference
between the facial highlights of the captured image and
the images in our dataset. The confusion matrix for the
proposed model shows that the model is accountable
[Figure 5].

Figure 4 Recorded attendance stored in an Excel


file

Figure 3.2 Face recognition of images downloaded


from the internet

EAI Endorsed Transactions on


Scalable Information Systems
4 Online First
Smart Attendance System using Face Recognition

Figure 5 Confusion matrix for the proposed model

[2] Lu J, Liong VE, Zhou J. Face Recognition using Local


5. Conclusion and Future Work Quantized Patterns. Proceedings of the 2012 IEEE
Conference on Computer Vision and Pattern Recognition
This study revolves around the creation of an autonomous (CVPR); 2012; Providence, RI, USA. p. 3562-3569.
attendance system that relies on facial characteristics. The [3] Dey AC, Ghosh SB. Improving Attendance Management
process commences with the detection of facial regions within in Educational Institutions using Face Recognition. In:
the input image, followed by the extraction of pertinent facial Proceedings of the International Conference on Machine
data using a Python-based face recognition library. The acquired Learning and Computer Vision; 2014. p. 345-350.
facial data is subsequently input into a CNN model for [4] Blanz V, Vetter T. Face Recognition Based on Fitting a 3D
classification. The experimental result shows that the developed Morphable Model. IEEE Transactions on Pattern Analysis
model exhibits superior performance, even in a group of people and Machine Intelligence. 2003; 25(9):1063-1074.
environment. Future work will delve into assessing the system's [5] Martinez AM, Benavente R. The AR face database. CVC
performance using pretrained models and incorporating Technical Report. 1998.
optimization techniques based on metaheuristics. [6] Deshmukh S, Rawat S. Face Recognition Technology.
Journal of Intelligent Computing. 2023; 120:39-52.
[7] Prathama V, Thippeswamy T. Age Invariant Face
Recognition. Journal of Intelligent Computing. 2023;
References 120:53-68.
[8] Mais Mohamed Husein, Alzubaydi D. Mobile Face
[1] Hui J, Tang S, Hu S. Face Recognition Based on
Recognition Application using Eigen Face Approach for
Convolutional Neural Networks and Softmax Regression.
Android. Journal of Mobile Applications. 2021; 5(2):45-
Proceedings of the 2017 International Conference on
56.
Image, Vision, and Computing (ICIVC), Chengdu, China.
2017; 112(116).

EAI Endorsed Transactions on


Scalable Information Systems
5 Online First
J. Viswanathan et al.

[9] Bhaskar J, Venkatesh V. Face Recognition for Attendance


Management. Journal of Intelligent Computing. 2023;
120:25-38.
[10] Malik U. Image Processing using OpenCV. Journal of
Computer Vision and Image Processing. 2020; 3(1):15-28.
[11] Bussa S, Mani A, Bharuka S. Smart Attendance System
using OpenCV based on Face Recognition. Journal of
Intelligent Computing. 2023; 120:83-96.
[12] Minaee S, Abdolshah S, Khademi Kalantari N. Deep
learning-based face recognition: A survey. Pattern
Recognition. 2020; 107.
[13] Ramya N, Manasa D, Naveed SK. Face Recognition for
Automated Attendance Management. Journal of Intelligent
Computing. 2023; 120:69-82.
[14] Lyon DM, Fisher JW. Multimodal Person Recognition
Using Unconstrained Audio and Video. Proceedings of the
5th IEEE International Conference on Automatic Face and
Gesture Recognition; 2002. p. 293-298.
[15] Veluchamy S, Michael Mahesh K, Pon Bharathi A, Paul T
Sheeba. DeepDrive: A braking decision-making approach
using optimized GAN and Deep CNN for advanced driver
assistance systems. Engineering Applications of Artificial
Intelligence. 2023; 123(A):106111. ISSN 0952-1976.
[16] Veluchamy S, Michael Mahesh K, Muthukrishnan R,
Karthi S. HY-LSTM: A new time series deep learning
architecture for estimation of pedestrian time to cross in
advanced driver assistance system. Journal of Visual
Communication and Image Representation. 2023;
97:103982. ISSN 1047-3203.

EAI Endorsed Transactions on


Scalable Information Systems
6 Online First

You might also like