An ESP32-CAM Face Recognition Prototype with Course Enrolment and Blink Liveness Checks to Address Proxy Attendance in University Lectures

Authors

Muhamad Sani Mustafa

Faculty of Electronic Engineering & Technology, Universiti Malaysia Perlis, Arau, Perlis (Jitra Kedah Malaysia)

Luqman Hakim Mohd Nazir

Faculty of Electronic Engineering & Technology, Universiti Malaysia Perlis, Arau, Perlis (Jitra Kedah Malaysia)

Zainuddin Mat Isa

Faculty of Electronic Engineering & Technology, Universiti Malaysia Perlis, Arau, Perlis (Jitra Kedah Malaysia)

Zulkifli Husin

Faculty of Electronic Engineering & Technology, Universiti Malaysia Perlis, Arau, Perlis (Jitra Kedah Malaysia)

Article Information

DOI: 10.47772/IJRISS.2026.101000421

Subject Category: Engineering & Technology

Volume/Issue: 10/10 | Page No: 5931-5943

Publication Timeline

Submitted: 2026-10-18

Accepted: 2026-10-23

Published: 2026-11-04

Abstract

Class attendance is closely linked to students’ academic performance, and many universities use attendance records to decide examination eligibility. Manual sign-in sheets, shared QR codes and online forms, however, still allow students to mark attendance for absent classmates. Face recognition confirms who is present, but a plain recogniser can be fooled by a photograph, and recognition alone does not show that the student belongs to the course session. This study aimed to design and functionally validate EZAttendance, a lecture attendance system that records a student as present only after three checks are passed in sequence. An ESP32-CAM module streams video over Wi-Fi to a Python server, which detects faces with a histogram of oriented gradients (HOG) detector and compares 128-dimensional face encodings with those of registered students using a Euclidean distance tolerance of 0.55. The identified student is then checked against the course enrolment list in Cloud Firestore, and liveness is confirmed by an eye blink, detected when the eye aspect ratio falls below 0.19 and returns above 0.26 within 3.0 s. An Android application lets lecturers create courses, run sessions, generate reports and send absence reminders, while students enrol their faces and view their own records. In functional tests with two registered student volunteers, the system marked a blinking enrolled student as present, refused a registered student who was not enrolled in the course, and labelled a photograph shown on a phone screen as fake without writing any record. Attendance updates appeared in the mobile application through Firestore synchronisation. These results show that the three checks can be combined on an ESP32-CAM and a laptop in a small functional test, but they do not yet show how reliable the system is in a real classroom. The study sets out the quantitative evaluation needed before wider deployment.

Keywords

proxy attendance, face recognition, liveness detection, higher education, Internet of Things

Downloads

References

1. Abdylhalyk, D., Zhuma, S., Aubakir, Y., & Kydyrbekova, A. (2026). An AI-based face recognition approach for student attendance: A prototype system. In 2026 International Conference on Cybersecurity, Digital Forensics, and AI Applications (ICCSDFAI) (pp. 145–150). IEEE. [Google Scholar] [Crossref]

2. https://doi.org/10.1109/ICCSDFAI70505.2026.11648057 [Google Scholar] [Crossref]

3. Chintalapati, S., & Raghunadh, M. V. (2013). Automated attendance management system based on face recognition algorithms. In 2013 IEEE International Conference on Computational Intelligence and Computing Research (pp. 1–5). IEEE. https://doi.org/10.1109/ICCIC.2013.6724266 [Google Scholar] [Crossref]

4. Credé, M., Roch, S. G., & Kieszczynka, U. M. (2010). Class attendance in college: A meta-analytic review of the relationship of class attendance with grades and student characteristics. Review of Educational Research, 80(2), 272–295. https://doi.org/10.3102/0034654310362998 [Google Scholar] [Crossref]

5. Dalal, N., & Triggs, B. (2005). Histograms of oriented gradients for human detection. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Vol. 1, pp. 886–893). IEEE. https://doi.org/10.1109/CVPR.2005.177 [Google Scholar] [Crossref]

6. Das, B., & Halder, K. (2024). Face recognition using ESP32-Cam for real-time tracking and monitoring. In 2024 International Conference on Advances in Computing, Communication, Electrical, and Smart Systems (iCACCESS) (pp. 1–6). IEEE. [Google Scholar] [Crossref]

7. https://doi.org/10.1109/iCACCESS61735.2024.10499606 [Google Scholar] [Crossref]

8. Deephika, R., Kaviya, S., & Gowri Vidhya, N. (2026). Blink verified face recognition attendance system using Dlib embeddings and deep learning techniques. In 2026 International Conference on Electronic Systems and Intelligent Computing (ICESIC) (pp. 598–602). IEEE. [Google Scholar] [Crossref]

9. https://doi.org/10.1109/ICESIC67389.2026.11496542 [Google Scholar] [Crossref]

10. Dewi, C., Chen, R.-C., Chang, C.-W., Wu, S.-H., Jiang, X., & Yu, H. (2022). Eye aspect ratio for real-time drowsiness detection to improve driver safety. Electronics, 11(19), 3183. [Google Scholar] [Crossref]

11. https://doi.org/10.3390/electronics11193183 [Google Scholar] [Crossref]

12. Dewi, C., Chen, R.-C., Jiang, X., & Yu, H. (2022). Adjusting eye aspect ratio for strong eye blink detection based on facial landmarks. PeerJ Computer Science, 8, e943. https://doi.org/10.7717/peerj-cs.943 [Google Scholar] [Crossref]

13. Gaurav, K. (2026). An intelligent attendance monitoring system using AI and computer vision. International Journal for Research in Applied Science and Engineering Technology. [Google Scholar] [Crossref]

14. https://doi.org/10.22214/ijraset.2026.80132 [Google Scholar] [Crossref]

15. He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (pp. 770–778). IEEE. [Google Scholar] [Crossref]

16. https://doi.org/10.1109/CVPR.2016.90 [Google Scholar] [Crossref]

17. Hosen, M. A., Moz, S. H., Khalid, M., Kabir, S. S., & Galib, S. (2023). Face recognition-based attendance system with anti-spoofing, system alert, and email automation. Radioelectronic and Computer Systems, (2). https://doi.org/10.32620/reks.2023.2.10 [Google Scholar] [Crossref]

18. International Organization for Standardization. (2023). ISO/IEC 30107-3:2023 Information technology — Biometric presentation attack detection — Part 3: Testing and reporting. ISO. [Google Scholar] [Crossref]

19. Kanapathy, P., Mustafa, N., Yusop, N., Ibrahim, Y., Moketar, N. A., & Hakimi, H. (2026). Enhancing attendance authenticity in higher education using a QR code and GPS-based smart attendance system. International Journal of Research and Innovation in Social Science, 10(1), 7855–7867. [Google Scholar] [Crossref]

20. https://doi.org/10.47772/IJRISS.2026.10100611 [Google Scholar] [Crossref]

21. Kassarnig, V., Bjerre-Nielsen, A., Mones, E., Lehmann, S., & Lassen, D. D. (2017). Class attendance, peer similarity, and academic performance in a large field study. PLoS ONE, 12(11), e0187078. https://doi.org/10.1371/journal.pone.0187078 [Google Scholar] [Crossref]

22. Kazemi, V., & Sullivan, J. (2014). One millisecond face alignment with an ensemble of regression trees. In 2014 IEEE Conference on Computer Vision and Pattern Recognition (pp. 1867–1874). IEEE. https://doi.org/10.1109/CVPR.2014.241 [Google Scholar] [Crossref]

23. King, D. E. (2009). Dlib-ml: A machine learning toolkit. Journal of Machine Learning Research, 10, 1755–1758. https://www.jmlr.org/papers/v10/king09a.html [Google Scholar] [Crossref]

24. King, D. E. (n.d.). face_recognition.py [Example program]. dlib C++ Library. Retrieved October 23, 2026, from http://dlib.net/face_recognition.py.html [Google Scholar] [Crossref]

25. Makigod, G. M. G., Arboleda, E. R., Sebastian, J. J. B., & Ongquit, L. A. T. (2024). Design and development of IoT-based automated attendance system using facial recognition. ITEGAM Journal of Engineering and Technology for Industrial Applications, 10(48), 135–143. [Google Scholar] [Crossref]

26. https://doi.org/10.5935/jetia.v10i48.976 [Google Scholar] [Crossref]

27. Masalha, F., & Hirzallah, N. (2014). A students attendance system using QR code. International Journal of Advanced Computer Science and Applications, 5(3). [Google Scholar] [Crossref]

28. https://doi.org/10.14569/IJACSA.2014.050310 [Google Scholar] [Crossref]

29. Muzammil, M., Khan, M. A., Yunus B, M., Raza, M. N., Wakde, B., & Komal V, S. (2026). AI smart attendance system using face recognition. Iconic Research and Engineering Journals, 10(4). [Google Scholar] [Crossref]

30. https://doi.org/10.64388/IREV10I4-1723595 [Google Scholar] [Crossref]

31. Nwabuwe, A., Sanghera, B., Alade, T., & Olajide, F. (2023). Fraud mitigation in attendance monitoring systems using dynamic QR code, geofencing and IMEI technologies. International Journal of Advanced Computer Science and Applications, 14(4), 938–945. [Google Scholar] [Crossref]

32. https://doi.org/10.14569/IJACSA.2023.01404104 [Google Scholar] [Crossref]

33. Personal Data Protection Act 2010 (Act 709). (2010). Laws of Malaysia. [Google Scholar] [Crossref]

34. Potdar, A., Barbhaya, P., & Nagpure, S. (2022). Face recognition for attendance system using CNN based liveliness detection. In 2022 International Conference on Advances in Computing, Communication and Materials (ICACCM) (pp. 1–6). IEEE. [Google Scholar] [Crossref]

35. https://doi.org/10.1109/ICACCM56405.2022.10009024 [Google Scholar] [Crossref]

36. Ramachandra, R., & Busch, C. (2017). Presentation attack detection methods for face recognition systems: A comprehensive survey. ACM Computing Surveys, 50(1), Article 8. [Google Scholar] [Crossref]

37. https://doi.org/10.1145/3038924 [Google Scholar] [Crossref]

38. Sapna, M. K. (2025). FaceRF: A secure, dual-factor automated attendance system with server-side liveness detection. International Research Journal of Computer Science, 12(10). [Google Scholar] [Crossref]

39. https://doi.org/10.26562/irjcs.2025.v1210.07 [Google Scholar] [Crossref]

40. Shamila, L. M. A. (2025). QR code based attendance management system. International Journal of Research and Innovation in Social Science, 9(4). https://doi.org/10.47772/IJRISS.2025.90400372 [Google Scholar] [Crossref]

41. Singh, A. K., Joshi, P., & Nandi, G. C. (2014). Face recognition with liveness detection using eye and mouth movement. In 2014 International Conference on Signal Propagation and Computer Technology (ICSPCT) (pp. 592–597). IEEE. https://doi.org/10.1109/ICSPCT.2014.6884911 [Google Scholar] [Crossref]

42. Soukupová, T., & Čech, J. (2016). Real-time eye blink detection using facial landmarks. In 21st Computer Vision Winter Workshop. Rimske Toplice, Slovenia. [Google Scholar] [Crossref]

43. Sunaryono, D., Siswantoro, J., & Anggoro, R. (2021). An android based course attendance system using face recognition. Journal of King Saud University – Computer and Information Sciences, 33(3), 304–312. https://doi.org/10.1016/j.jksuci.2019.01.006 [Google Scholar] [Crossref]

44. Surantha, N., & Sugijakko, B. (2024). Lightweight face recognition-based portable attendance system with liveness detection. Internet of Things, 25, 101089. https://doi.org/10.1016/j.iot.2024.101089 [Google Scholar] [Crossref]

45. Yu, Z., Qin, Y., Li, X., Zhao, C., Lei, Z., & Zhao, G. (2023). Deep learning for face anti-spoofing: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(5), 5609–5631. [Google Scholar] [Crossref]

46. https://doi.org/10.1109/TPAMI.2022.3215850 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles