<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhishek Ranjan</title>
    <description>The latest articles on DEV Community by Abhishek Ranjan (@abhishekr700).</description>
    <link>https://dev.to/abhishekr700</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F249190%2Ffda53635-2121-48f1-8992-61bf7359acd6.jpeg</url>
      <title>DEV Community: Abhishek Ranjan</title>
      <link>https://dev.to/abhishekr700</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhishekr700"/>
    <language>en</language>
    <item>
      <title>Automated Attendance Management System Using Face Recognition</title>
      <dc:creator>Abhishek Ranjan</dc:creator>
      <pubDate>Fri, 22 May 2020 22:43:51 +0000</pubDate>
      <link>https://dev.to/abhishekr700/automated-attendance-management-system-using-face-recognition-2mh2</link>
      <guid>https://dev.to/abhishekr700/automated-attendance-management-system-using-face-recognition-2mh2</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Marking attendance is a regular activity in schools &amp;amp; colleges. It is&lt;br&gt;
done anytime during the length of class depending on the instructors. Some prefer to do it before starting the class, while others prefer doing it after the class. Others may even do this activity in between the class. Overall, the focus here is that this is an activity which is done repeatedly, regularly and thus, wastes precious teaching time of the instructor. If done in between the class duration, this breaks&lt;br&gt;
the flow of the class and often causes the peers to lose in the subject/topic being currently taught by the instructor. We aim to solve this problem by providing an &lt;strong&gt;Automated Attendance System Using Face Recognition.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Challenges
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Reduce attendance time - If we can create an attendance
management system in which the time required to take the attendance is
less as compared to other attendance management systems. Then educational institutions will prefer our attendance management system as
it will save the attendance time in the class which will be productive as it can be utilized more effectively.&lt;/li&gt;
&lt;li&gt;Reduce Hassle - There is
effort from the teacher and more workload to manage and maintain the
attendance of the students of the class.&lt;/li&gt;
&lt;li&gt;Improve Accuracy - The existing models of attendance management system generally has low frequency due to certain factors involved in different management
systems.&lt;/li&gt;
&lt;li&gt;Increase ROI&lt;/li&gt;
&lt;li&gt;Enhance Security - There is a security issue in some of the existing attendance management systems. If a system can designed with role based access and zero
manipulation of the attendance data of the students. Then it will be a better solution&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Proposed Solution
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;When a student enters the class, his/her photo is captured(using a video frame).&lt;/li&gt;
&lt;li&gt;We pass this image through our model and find out the dataset entry which is most similar(above a particular threshold).&lt;/li&gt;
&lt;li&gt;The user is given a prompt to verify the name predicted by the model.&lt;/li&gt;
&lt;li&gt;If user replies “no”, steps 1,2,3 are repeated.&lt;/li&gt;
&lt;li&gt;Else, the details of the student along with the time of entry is written into a db.&lt;/li&gt;
&lt;li&gt;Same procedure applies when students exit.&lt;/li&gt;
&lt;li&gt;Attendance is marked for students who attend the class for the entire
duration.&lt;/li&gt;
&lt;li&gt;The teachers are given an option to manually override the attendance
marked by the system.&lt;/li&gt;
&lt;li&gt;After the teacher confirms the shown attendance, it is uploaded to the database.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Design &amp;amp; Methodology
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Dataset Used
&lt;/h3&gt;

&lt;p&gt;We started creating out own dataset of 10-12 images per person.&lt;br&gt;
This we did with the help of out friends.&lt;br&gt;
Next up, to increase the amount of training data, we tried the concept&lt;br&gt;
of image augmentation. In this technique, new images are generated from already&lt;br&gt;
existing image using the following kinds of transformations :&lt;br&gt;
❖ Horizontal and Vertical Shift Augmentation&lt;br&gt;
❖ Horizontal and Vertical Flip Augmentation&lt;br&gt;
❖ Random Rotation Augmentation&lt;br&gt;
❖ Random Brightness Augmentation&lt;br&gt;
❖ Random Zoom Augmentation&lt;/p&gt;

&lt;h3&gt;
  
  
  NN Architecture
&lt;/h3&gt;

&lt;p&gt;Inception net, broadly, allows the internal layers to pick a suitable&lt;br&gt;
filter which will prove relevant for the image. This has a huge impact as it leads to the network giving good outputs for various image sizes.&lt;br&gt;
When testing on Cifar 10 dataset, this model gives 80% + accuracy on&lt;br&gt;
the test set without any parameter optimisation. Thus, this is one of the most important models for Image Analysis.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--F9sLE7Yd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.analyticsvidhya.com/wp-content/uploads/2018/10/googlenet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--F9sLE7Yd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.analyticsvidhya.com/wp-content/uploads/2018/10/googlenet.png" alt="Inception"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Process
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Data Collection
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Collect the images for each student. We keep these images in folder
corresponding to each student. The folder name is according to the "_id"
field corresponding to the student in the mongodb database.&lt;/li&gt;
&lt;li&gt;We can now use the folder name as a label for training the model on this student's data.&lt;/li&gt;
&lt;li&gt;A model is created for each class consisting of some students. This model is generated once and saved for predictions later on&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Generating the Model
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Get the list of students for a class&lt;/li&gt;
&lt;li&gt;Go through each of the image folders corresponding to each of the
students&lt;/li&gt;
&lt;li&gt;For each image, class label is the parent folder name.&lt;/li&gt;
&lt;li&gt;Run a face detection algorithm on the face and detect the presence of a face&lt;/li&gt;
&lt;li&gt;If a face is detected, get the bounding box coordinates&lt;/li&gt;
&lt;li&gt;Using the bounding box coordinates, crop the image so that you have
image only of a face.&lt;/li&gt;
&lt;li&gt;Detect the orientation of face using Dlib, and apply transforms to make the eyes, mouth &amp;amp; other facial features aligned at a certain level. This ensures good quality input to the neural network.&lt;/li&gt;
&lt;li&gt;Pass the aligned image through the neural network. The net generates 128 embeddings (or mesaurements) of each face&lt;/li&gt;
&lt;li&gt;This is now the data (or features) extracted from the image. Use this
embeddings vector to train a classifier.(See our trials with different
classifiers)&lt;/li&gt;
&lt;li&gt;At the end, the classifier is dumped &amp;amp; saved as a object, this can be loaded anytime from the database &amp;amp; used for predictions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VpMiCT-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/x049mt0b8b1qklfsnjsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VpMiCT-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/x049mt0b8b1qklfsnjsi.png" alt="Pipeline"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Face Recognition Pipeline
&lt;/h4&gt;

&lt;ol&gt;
&lt;li&gt;Load the classifier from the database. Database query is done using
the class for which attendance is being marked.&lt;/li&gt;
&lt;li&gt;For each frame do the next steps&lt;/li&gt;
&lt;li&gt;Run a face detection algorithm on the face and detect the presence
of a face&lt;/li&gt;
&lt;li&gt;If a face is detected, get the bounding box coordinates&lt;/li&gt;
&lt;li&gt;Using the bounding box coordinates, crop the image so that you
have image only of a face.&lt;/li&gt;
&lt;li&gt;Detect the orientation of face using Dlib, and apply transforms to
make the eyes, mouth &amp;amp; other facial features aligned at a certain
level. This ensures good quality input to the neural network.&lt;/li&gt;
&lt;li&gt;Pass the aligned image through the neural network. The net
generates 128 embeddings (or measurements) of each face&lt;/li&gt;
&lt;li&gt;This is now the data (or features) extracted from the image.&lt;/li&gt;
&lt;li&gt;This is now passed to the classifier to detect the correct class label.&lt;/li&gt;
&lt;li&gt;Once we have all class labels from a video file, we can determine
which students were present in the class.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--etpqNTgJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nsldkthj1wuyd6wiypno.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--etpqNTgJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/nsldkthj1wuyd6wiypno.png" alt="Face Recog"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;p&gt;[1] Freya. J. Vora, Pooja. L. Yadav, Rhea. P. Rai, Nikita. M. Yadav “Android Based Mobile Attendance System”, International Journal of Advanced Research in Computer Science and Software Engineering, pp 1-2, Volume 6, Issue 2,&lt;br&gt;
February 2016.&lt;br&gt;
[2] Subhadeep Dey, Sujit Barman, Ramesh K. Bhukya, Rohan K. Das, Haris BC, S. R. M. Prasanna and R. Sinha, “Speech Biometric Based Attendance System”, Communications (NCC), 2014 Twentieth National Conference, pp 2-3, February 2014.&lt;br&gt;
[3] Prof.A.D.Sawant, Arti Dongare, Ichha Gilbile, Amit Singh Thakur,&lt;br&gt;
PoojaTekawade. “A Survey on Smart Attendance System Based on Various&lt;br&gt;
Technologies”, International Journal of Innovative Research in Computer and Communication Engineering, pp 5-7, Vol. 5, Issue 10, October 2017.&lt;br&gt;
[4] Sanjay Badhe, Kunal Chaudhari, Sneha Kale, Tejaswi Mane, “Smart&lt;br&gt;
Attendance Management System”, International Journal of Computer&lt;br&gt;
Applications. pp 4-6, 2016.&lt;br&gt;
[5] Zhang, Xiao zheng, and Yong sheng Gao, "Face recognition across pose: A review." Pattern Recognition42.11 (2009): 2876-2896&lt;br&gt;
[6] Lacey et al, “A Longitudinal Study of AutomaticFace Recognition‖”, IEEE ICB, 2015, pp: 1- 8&lt;br&gt;
[7] Ms. Snehal Houshiram Gorde1, et al, “A Review on Face Recognition&lt;br&gt;
Algorithms”, Volume III, Issue I Issn No.:2350-1146, I.F-2.71&lt;br&gt;
[8] C. Szegedy et al., "Going deeper with convolutions", Proc. IEEE Conf. Comput. Vis. Pattern Recognit., pp. 1-9, Jun. 2015.&lt;/p&gt;

</description>
      <category>attendance</category>
      <category>deeplearning</category>
      <category>neuralnetworks</category>
    </item>
  </channel>
</rss>
