Real-Time Face Attendance System Using CNN Mobilenet and MTCNN
Abstract
This research presents the development of a real-time attendance system utilizing facial recognition, which incorporates three main components: the MobileNet Convolutional Neural Network (CNN) for classification, Multi-task Cascaded Convolutional Networks (MTCNN) for face detection, and Contrast Limited Adaptive Histogram Equalization (CLAHE) for image preprocessing. The model was trained on a curated subset of the Labeled Faces in the Wild (LFW) dataset, containing 20 categories with 50 images each, and evaluated using a locally captured dataset. Training was conducted on Google Colab using a pre-trained MobileNet model that was fine-tuned with 800 images, while 200 images were used for validation. System performance was assessed through several metrics, including accuracy, precision, recall, F1-score, and a confusion matrix. The model achieved a validation accuracy of 86% and an average F1-score of 0.85, reflecting high classification accuracy. To enhance usability, the system was implemented within a Python-based graphical user interface (GUI), which automates attendance tracking and records data directly into Excel spreadsheets. This study highlights the potential of integrating lightweight CNN architectures with effective preprocessing techniques and real-time GUI applications to create a reliable, efficient, and practical biometric attendance system
Downloads
References
H. Du, H. Shi, D. Zeng, X. Zhang, and T. Mei, “The Elements of End-to-End Deep Face Recognition: A Survey of Recent Advances,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–42, 2022, doi: 10.1145/3507902.
T. Schlett, C. Rathgeb, O. Henniger, J. Galbally, J. Fiérrez, and C. Busch, “Face Image Quality Assessment: A Literature Survey,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–49, 2022, doi: 10.1145/3507901.
M. R. Hasan, R. Guest, and F. Deravi, “Presentation-Level Privacy Protection Techniques for Automated Face Recognition—A Survey,” ACM Comput Surv, vol. 55, no. 13s, pp. 1–27, 2023, doi: 10.1145/3583135.
A. Khan, A. Sohail, U. Zahoora, and A. S. Qureshi, “A Survey of the Recent Architectures of Deep Convolutional Neural Networks,” Artif Intell Rev, vol. 53, no. 8, pp. 5455–5516, 2020, doi: 10.1007/s10462-020-09825-6.
Y. Martínez-Díaz et al., “Benchmarking Lightweight Face Architectures on Specific Face Recognition Scenarios,” Artif Intell Rev, vol. 54, no. 8, pp. 6201–6244, 2021, doi: 10.1007/s10462-021-09974-2.
L. Yang, H. Jiang, Q. Song, and J. Guo, “A Survey on Long-Tailed Visual Recognition,” Int J Comput Vis, vol. 130, no. 7, pp. 1837–1872, 2022, doi: 10.1007/s11263-022-01622-8.
F. Abdullakutty, E. Elyan, and P. Johnston, “A Review of State-of-the-Art in Face Presentation Attack Detection: From Early Development to Advanced Deep Learning and Multi-Modal Fusion Methods,” Information Fusion, vol. 75, pp. 55–69, 2021, doi: 10.1016/j.inffus.2021.04.015.
C. Wang, S. A. Moqurrab, and J. Yoo, “Face Recognition of Remote Teaching Video Image Based on Improved Frame Difference Method,” Mobile Networks and Applications, vol. 28, no. 3, pp. 995–1006, 2023, doi: 10.1007/s11036-023-02195-7.
Z. Chen, K. Gryllias, and W. Li, “Intelligent Fault Diagnosis for Rotary Machinery Using Transferable Convolutional Neural Network,” IEEE Trans Industr Inform, vol. 16, no. 1, pp. 339–349, 2020, doi: 10.1109/tii.2019.2917233.
Y. Lei, S. He, M. Khamis, and J. Ye, “An End-to-End Review of Gaze Estimation and Its Interactive Applications on Handheld Mobile Devices,” ACM Comput Surv, vol. 56, no. 2, pp. 1–38, 2023, doi: 10.1145/3606947.
P. A. Marks, “Can the Biases in Facial Recognition Be Fixed; Also, Should They?,” Commun ACM, vol. 64, no. 3, pp. 20–22, 2021, doi: 10.1145/3446877.
M. Georgopoulos, J. Oldfield, M. A. Nicolaou, Y. Panagakis, and M. Pantić, “Mitigating Demographic Bias in Facial Datasets With Style-Based Multi-Attribute Transfer,” Int J Comput Vis, vol. 129, no. 7, pp. 2288–2307, 2021, doi: 10.1007/s11263-021-01448-w.
T. Hussain, K. Muhammad, A. Ullah, Z. Cao, S. W. Baik, and V. H. C. de Albuquerque, “Cloud-Assisted Multiview Video Summarization Using CNN and Bidirectional LSTM,” IEEE Trans Industr Inform, vol. 16, no. 1, pp. 77–86, 2020, doi: 10.1109/tii.2019.2929228.
R. Ibrahim and M. O. Shafiq, “Explainable Convolutional Neural Networks: A Taxonomy, Review, and Future Directions,” ACM Comput Surv, vol. 55, no. 10, pp. 1–37, 2023, doi: 10.1145/3563691.
Y. Jia et al., “CroApp: A CNN-Based Resource Optimization Approach in Edge Computing Environment,” IEEE Trans Industr Inform, vol. 18, no. 9, pp. 6300–6307, 2022, doi: 10.1109/tii.2022.3154473.
X. Zhao, L. Wang, Y. Zhang, X. Han, M. Deveci, and M. Parmar, “A Review of Convolutional Neural Networks in Computer Vision,” Artif Intell Rev, vol. 57, no. 4, 2024, doi: 10.1007/s10462-024-10721-6.
D. Kollias, S. Cheng, E. Ververas, I. Kotsia, and S. Zafeiriou, “Deep Neural Network Augmentation: Generating Faces for Affect Analysis,” Int J Comput Vis, vol. 128, no. 5, pp. 1455–1484, 2020, doi: 10.1007/s11263-020-01304-3.
S. Sinha, H. Ohashi, and K. Nakamura, “Class-Difficulty Based Methods for Long-Tailed Visual Recognition,” Int J Comput Vis, vol. 130, no. 10, pp. 2517–2531, 2022, doi: 10.1007/s11263-022-01643-3.
H. M. Balaha, E. M. El-Gendy, and M. M. Saafan, “A Complete Framework for Accurate Recognition and Prognosis of COVID-19 Patients Based on Deep Transfer Learning and Feature Classification Approach,” Artif Intell Rev, vol. 55, no. 6, pp. 5063–5108, 2022, doi: 10.1007/s10462-021-10127-8.
Ş. Yücer, F. Tektas, N. A. Moubayed, and T. P. Breckon, “Racial Bias Within Face Recognition: A Survey,” ACM Comput Surv, vol. 57, no. 4, pp. 1–39, 2024, doi: 10.1145/3705295.
C. F. G. dos Santos and J. P. Papa, “Avoiding Overfitting: A Survey on Regularization Methods for Convolutional Neural Networks,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–25, 2022, doi: 10.1145/3510413.
H. Bello, L. A. S. Marin, S. Suh, B. Zhou, and P. Lukowicz, “InMyFace: Inertial and Mechanomyography-Based Sensor Fusion for Wearable Facial Activity Recognition,” Information Fusion, vol. 99, p. 101886, 2023, doi: 10.1016/j.inffus.2023.101886.
Y. Himeur et al., “AI-big Data Analytics for Building Automation and Management Systems: A Survey, Actual Challenges and Future Perspectives,” Artif Intell Rev, vol. 56, no. 6, pp. 4929–5021, 2022, doi: 10.1007/s10462-022-10286-2.
H. ZainEldin et al., “Silent No More: A Comprehensive Review of Artificial Intelligence, Deep Learning, and Machine Learning in Facilitating Deaf and Mute Communication,” Artif Intell Rev, vol. 57, no. 7, 2024, doi: 10.1007/s10462-024-10816-0.
H. Du, H. Shi, D. Zeng, X. Zhang, and T. Mei, “The Elements of End-to-End Deep Face Recognition: A Survey of Recent Advances,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–42, 2022, doi: 10.1145/3507902.
T. Schlett, C. Rathgeb, O. Henniger, J. Galbally, J. Fiérrez, and C. Busch, “Face Image Quality Assessment: A Literature Survey,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–49, 2022, doi: 10.1145/3507901.
M. R. Hasan, R. Guest, and F. Deravi, “Presentation-Level Privacy Protection Techniques for Automated Face Recognition—A Survey,” ACM Comput Surv, vol. 55, no. 13s, pp. 1–27, 2023, doi: 10.1145/3583135.
H. Du, H. Shi, D. Zeng, X. Zhang, and T. Mei, “The Elements of End-to-End Deep Face Recognition: A Survey of Recent Advances,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–42, 2022, doi: 10.1145/3507902.
T. Schlett, C. Rathgeb, O. Henniger, J. Galbally, J. Fiérrez, and C. Busch, “Face Image Quality Assessment: A Literature Survey,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–49, 2022, doi: 10.1145/3507901.
M. Georgopoulos, J. Oldfield, M. A. Nicolaou, Y. Panagakis, and M. Pantić, “Mitigating Demographic Bias in Facial Datasets With Style-Based Multi-Attribute Transfer,” Int J Comput Vis, vol. 129, no. 7, pp. 2288–2307, 2021, doi: 10.1007/s11263-021-01448-w.
M. Abdel‐Basset, V. Chang, H. Hawash, R. K. Chakrabortty, and M. J. Ryan, “Deep-Ifs: Intrusion Detection Approach for Industrial Internet of Things Traffic in Fog Environment,” IEEE Trans Industr Inform, vol. 17, no. 11, pp. 7704–7715, 2021, doi: 10.1109/tii.2020.3025755.
H. Du, H. Shi, D. Zeng, X. Zhang, and T. Mei, “The Elements of End-to-End Deep Face Recognition: A Survey of Recent Advances,” ACM Comput Surv, vol. 54, no. 10s, pp. 1–42, 2022, doi: 10.1145/3507902.
M. R. Hasan, R. Guest, and F. Deravi, “Presentation-Level Privacy Protection Techniques for Automated Face Recognition—A Survey,” ACM Comput Surv, vol. 55, no. 13s, pp. 1–27, 2023, doi: 10.1145/3583135.
U. Muhammad, J. Laaksonen, D. R. Beddiar, and M. Oussalah, “Domain Generalization via Ensemble Stacking for Face Presentation Attack Detection,” Int J Comput Vis, vol. 132, no. 12, pp. 5759–5782, 2024, doi: 10.1007/s11263-024-02152-1.
Copyright (c) 2025 Hajijin Amri Hajijin Amri

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
This is an open-access article distributed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License which permits unrestricted use, distribution, and reproduction in any medium. Users are allowed to read, download, copy, distribute, search, or link to full-text articles in this journal without asking by giving appropriate credit, provide a link to the license, and indicate if changes were made. All of the remix, transform, or build upon the material must distribute the contributions under the same license as the original.