Auto Attendence
Auto Attendence
net/publication/350925954
CITATIONS READS
13 2,890
4 authors:
All content following this page was uploaded by Ashim Dey on 30 June 2021.
Abstract— We are living in the 21st century which is the era differentiated from other biometric systems using fingerprint,
of modern technology. Many traditional problems are being voice or iris recognition. Even if facial recognition systems as
solved using new innovative technologies. Taking attendance a biometric application have lesser accuracy than fingerprint
daily is an indispensable part of educational institutions as well and iris recognition, it is widely used because of its non-
as offices. It is both exhausting and time-consuming if done contact, lower time-consuming and non-interfering process [1,
manually. Biometric attendance systems through voice, iris, and 11]. Nowadays, it has also become desired as a marketing and
fingerprint recognition require complex and expensive commercial authentication tool. Advanced human-computer
hardware support. An auto attendance system using face interaction, video surveillance, automatic indexing of images,
recognition, which is another biometric trait, can resolve all
video database etc. are some other applications of facial
these problems. This paper represents the development of a face
recognition based automatic student attendance system using
recognition [12].
Convolutional Neural Networks which includes data entry, Here, in this work, the intention was to detect faces and
dataset training, face recognition and attendance entry. The recognize them in real-time for effortless recording of
system can detect and recognize multiple person’s face from attendance. The main objectives of this work are:
video stream and automatically record daily attendance. The
proposed system achieved an average recognition accuracy of To detect faces from real-time video stream.
about 92%. Using this system, daily attendance can be recorded To develop a machine learning model to recognize a
effortlessly avoiding the risk of human error. person from a pre-trained dataset.
To record attendance after recognition for future use.
Keywords—Face Detection and Recognition, Automatic
Attendance, Convolutional Neural Network, Image Processing. The rest of the paper is summarized as follows. Related
literature and studies are presented in Section II. The proposed
I. INTRODUCTION system is described in Section III. In Section IV, implemented
Recording the daily attendance of students in all system’s Graphical User Interface (GUI) is presented. Results
educational institutions is a major concern. In the traditional are discussed in Section V. And the paper is concluded in
attendance system, a person has to check one by one if Section VI.
someone is absent or not which is very time-consuming. In
other ways, everyone puts their signature on an attendance II. LITERATURE REVIEW
sheet which is not also appropriate as anyone can easily copy In recent times, different techniques, methods and
signatures for others [1]. An automatic attendance system can algorithms have been used to perform facial recognition and
reduce all the complexities. In this work, we have developed increase the accuracy of facial recognition.
a biometric artificial intelligence (AI) based system that will
In [6], the authors developed a real-time multiple face
be advantageous in educational/official sectors where regular
recognition system using deep learning on embedded GPU.
attendance is greatly needed.
Convolutional Neural Network (CNN) based face recognition
A facial recognition system is a technology which can with face tracking and deep CNN face recognition algorithm
identify or authenticate a person from a digital image or a have been used for the system. In [13], an automatic student
video stream from a video source. These systems operate in attendance system was proposed that can be utilized in small
different methods. Usually, they compare extracted facial and crowded classrooms. In this model, after the training
features from an input image of human faces within a database stage, the user, e.g. the teacher, can get the attendance by
to recognize a person. It can also be defined as a biometric AI taking one or multiple images of the classroom using his/her
based application which can recognize a person uniquely by smartphone. The implemented system detects the faces in the
investigating the texture patterns and shape of the person’s images and recognizes which students are present in order to
face. Through face recognition models, the application mark the attendance. But real-time video attendance was not
identifies a person and saves the record. possible with this system.
In recent years, face recognition from stationary and The Bilateral Filter, Haar-like features [14] techniques
moving images has been an active and demanding research were applied to identify the model of the human face in [15].
area in the field of image processing, pattern recognition and The Simplified Fuzzy Adaptive Resonance Theory Map
so on [2-6]. At first, images with different postures of an Neural Network (SFAM-NN) method has been compared to
individual are collected as a training dataset. After that, face the Cascade Classifier Adaboost method to evaluate the
recognition is done for input facial images depending on their efficiency of the proposed method. In [16], the authors
intensity value estimation. As a form of computer application, implemented a system where the Viola and Jones algorithm
face recognition is being widely used in recent times on [17] has been utilized for detecting face bounding box,
mobile platforms [7, 8]. It has also seen wider uses in other constrained local model-based face tracking and face
technological forms, such as robotics [9, 10]. It is generally landmark identification algorithms. It is also called the
applied as access control in security systems. This can be AdaBoost algorithm for face recognition. To perform facial
recognition in this model, Principle Component Analysis So, the system is already set to be used any time after the
(PCA) has been used. In [18], an automatic attendance student’s data have been entered.
management system was proposed using face recognition Fig. 1. Data Entry Process
algorithms. A camera at the doorway captures students’ image
while entering into the class. But, that system faced limitations 2) Dataset Training: This step is automatically done after
as it could not define two persons at the same time.
For the proposed system, we have used CNN architecture
to detect faces and train the system.
III. PROPOSED SYSTEM
A. System Overview
The goal of the proposed automatic class attendance
system is to detect the faces of each student from a video
stream and then recognize the faces by cross-referencing the
detected faces with the ones stored in the system. This system
also has the ability to detect and recognize multiple people on
the screen automatically in real-time from the video stream. the Data Entry stage. But the system also has the option of
The system starts by capturing the students’ facial data and manually activating this stage at any point. The training is
storing them with their appropriate labels to create a dataset. done by a triplet training step. This method consists of three
For recognizing faces, CNN model is used. Although different face images, two of which belong to the same
Histogram of Oriented Gradient (HOG) method can also be person. The CNN extracts 128 facial measurements, called
used for detecting the faces, this method is less accurate than embeddings from each face. These are stored as 128-d
CNN and also requires the captured face to be completely vectors. For the two images belonging to the same person, the
straight in relation to the camera in order to be detected [19].
CNN tweaks their weights to make the vectors closer while
The dataset is then trained for the next step. The system is then
connected to a video source, which is placed at a convenient also making them slightly further away than the third picture.
position in the classroom. The system then analyzes the video This whole process is done using the face_encodings function
stream and detects the faces of the students present in the of the face_recognition library. The extracted data is then
classroom. The detected faces are then compared to those stored as a pickle file, which is used later for comparing and
from the trained dataset. This is the recognition stage. The recognizing faces in the next stage. This step also
recognized students’ data is then saved in an excel sheet, automatically creates a spreadsheet that contains the names
which marks their attendance. and IDs of all the students of the class, whose data has been
B. Methodology entered in the previous stage.
The different parts of the system can be grouped into four
main stages. These are: 3) Face Recognition: Fig. 2 depicts the steps of face
recognition. In this step, the system can be set up by putting
Data Entry
Dataset Training
Face Recognition
Attendance Entry
These stages are discussed in the following section.
1) Data Entry: The first step is to include the faces of the
students in the system for creating a dataset, which is shown
in Fig. 1. For this, continuous photos of each of the enrolled
students are taken by the system from a live video stream one
person at a time, along with their names and IDs. The default
setting is set to take 20 pictures at a 2 second interval from a
live video stream. It is preferred that the students have
different head positioning during this time to create a better
dataset. The setting can be changed to increase the number of
pictures taken to make a more accurate dataset. A folder for
each student is created with the corresponding student’s name
and ID as the label. Each of the pictures of faces is then saved
in that student’s designated folder. Besides this process,
previously taken pictures of the enrolled students can be
added to the dataset for making it more diverse. In this case,
the new photos will be saved in that student’s previously Fig. 2. Face Recognition Process
created folder. After every data entry, the system is
a video camera on a good position, preferably on the doorway
automatically trained using the currently available dataset.
of the classroom or inside the classroom itself where it has a
clear view of the students. The system can then detect the
faces of the students from the ongoing video stream of the B. Add
camera. The detected faces are then compared to the trained The data entry stage of the system is done by clicking the
dataset. A confidence value is assigned to each of the ‘Add’ option. This opens a new page as shown in Fig. 5.
matches. The match with the highest confidence is selected
and the label, which is the name and ID of the student, is
extracted. If there is not a match of a high enough accuracy,
then the student is labeled as ‘Unknown’.
D. Take Attendance
The system can be signaled to automatically start taking
attendance, by selecting the ‘Take Attendance’ option. This
tells the camera situated in the classroom to start recording.
The camera can also be set up to always stay turned on during
class. From the video stream, the students’ faces are detected
and recognized. As shown in Fig. 7, a frame is taken from the
video stream. Here, it can be seen that six students’ faces are
detected in rectangular boxes and identified showing their
corresponding names and IDs. The system then starts marking
and recording attendance. This process is repeated for every
class period to automatically mark the attendance of the
present students.
The built-in webcam of a laptop is used as a default video
recorder for testing the system. The accuracy of the system in
relation to the number of input images per person in the dataset
is calculated in TABLE I. The dataset consists of various
number of images of 17 distinct people. The accuracy was
measured by training a certain number of images per person
and running the system to recognize them from five different
frames from video source. This experiment was repeated four
Fig. 7. Taking Attendance times while increasing the number of images per person
during the training stage.
E. Show Attendance
TABLE I. ACCURACY COMPARISON
The ‘Show Attendance’ option opens a new window as
shown in Fig. 8, which gives the option to view specific Result
Inputs
attendance sheets or the total attendance of all the registered Trial Correct False Average
per Total Accuracy
students during a specific time period as shown in Fig. 9. No.
person Faces
Recog- Recog-
(%)
Accu-
nitions nitions racy (%)
01. 6 4 2 66.67
02. 6 3 3 50
04. 8 4 4 50
05. 9 2 7 22.22
01. 6 6 0 100
02. 6 4 2 66.67
04. 8 5 3 62.50
05. 9 5 4 55.55
Fig. 8. Selecting Attendance Sheet
01. 6 6 0 100
02. 6 4 2 66.67
04. 8 6 2 75
05. 9 7 2 77.78
01. 6 6 0 100
02. 6 5 1 83.33
04. 8 7 1 87.5
05. 9 8 1 88.89