Optimizing Face Recognition and Emotion Detection in Student Identification Using FaceNet and YOLOv8 Models


Abstract
The growing need for efficient student identification systems has driven advancements in face recognition and emotion detection technologies. This research presents a single-photo-based system that integrates YOLOv8 for face detection and FaceNet for generating unique facial embeddings, ensuring high-precision student identification and consistent emotion detection under diverse conditions. YOLOv8 localizes faces within images, while FaceNet processes them to generate embeddings for recognition. Emotion detection is performed using these embeddings or an auxiliary emotion classification model. The methodology includes pre-processing images into 64x64 grayscale format, employing image augmentation to enhance model generalization, and evaluating performance using accuracy, precision, recall, and F1 score metrics. The experimental dataset comprises 10 formal student photos, with testing conducted on 100 images. Results demonstrate 94% accuracy in face recognition with augmentation, surpassing 92% without it. Emotion detection achieves 95% accuracy in identifying seven emotions, including angry, happy, sad, neutral, fear, disgust, and surprise, despite variations in expression, lighting, and angle. This system provides a scalable and efficient solution for educational applications such as automated student identification, attendance monitoring, and emotion-based learning management. Its potential spans short-term automation in attendance and mental health monitoring, medium-term improvements in personalized learning and campus security, and long-term AI-driven educational advancements while addressing privacy and social acceptance challenges.
References
Tej Chinimilli, A. Anjali, A. Kotturi, V. Reddy Kaipu, and J. Varma Mandapati, "Face Recognition based Attendance System using Haar Cascade and Local Binary Pattern Histogram Algorithm," in Proceedings of the 4th International Conference on Trends in Electronics and Informatics, ICOEI 2020, Institute of Electrical and Electronics Engineers Inc., Jun. 2020, pp. 701–704. doi: 10.1109/ICOEI48184.2020.9143046.
E. P. Sochima, O. E. Taylor, P. S. Ezekiel, O. E. Taylor, and F. B. Deedam-Okuchaba, "Smart Attendance Monitoring System Using Facial Recognition," International Journal of Computer Techniques, vol. 8, no. 2, 2021.
V. Savchenko, L. V. Savchenko, and I. Makarov, "Classifying Emotions and Engagement in Online Learning Based on a Single Facial Expression Recognition Neural Network," IEEE Trans Affect Comput, vol. 13, no. 4, pp. 2132–2143, 2022, doi: 10.1109/TAFFC.2022.3188390.
S. Serengil and A. Özpınar, "A Benchmark of Facial Recognition Pipelines and Co-Usability Performances of Modules," Bilişim Teknolojileri Dergisi, vol. 17, no. 2, pp. 95–107, Apr. 2024, doi: 10.17671/gazibtd.1399077.
S. I. Serengil and A. Ozpinar, "LightFace: A Hybrid Deep Face Recognition Framework," IEEE Access, Nov. 2020, doi: 10.1109/ASYU50717.2020.9259802.
S. Qi, X. Zuo, W. Feng, and I. G. Naveen, "Face Recognition Model Based On MTCNN And FaceNet," IEEE Access, Feb. 2023, doi: 10.1109/ICMNWC56175.2022.10031806.
F. Cahyono, W. Wirawan, and R. Fuad Rachmadi, "Face recognition system using FaceNet algorithm for employee presence," in 4th International Conference on Vocational Education and Training, ICOVET 2020, Institute of Electrical and Electronics Engineers Inc., Sep. 2020, pp. 57–62. doi: 10.1109/ICOVET50258.2020.9229888.
M. Talib, A. H. Y. Al-Noori, and J. Suad, "YOLOv8-CAB: Improved YOLOv8 for Real-time Object Detection," Karbala International Journal of Modern Science, vol. 10, no. 1, pp. 56–68, 2024, doi: 10.33640/2405-609X.3339.
Y. Chen and J. He, "Deep Learning-Based Emotion Detection," Journal of Computer and Communications, vol. 10, no. 02, pp. 57–71, 2022, doi: 10.4236/jcc.2022.102005.
Zhuchkov, "Analyzing the Effectiveness of Image Augmentations for Face Recognition from Limited Data," in 2021 International Conference "Nonlinearity, Information and Robotics", NIR 2021, Institute of Electrical and Electronics Engineers Inc., 2021. doi: 10.1109/NIR52917.2021.9666135.
K. P. Hasaraddi, G. Thambkar, A. P. Bidargaddi, A. P. Patil, and G. Betageri, "YOLOv8-Enhanced Facial Recognition for One-Shot Learning Attendance System," in 2024 5th International Conference for Emerging Technology, INCET 2024, Institute of Electrical and Electronics Engineers Inc., 2024. doi: 10.1109/INCET61516.2024.10593178.
P. Prayogo, Hendrawan, E. Mulyana, and W. Hermawan, "A Novel Approach for Face Recognition: YOLO-Based Face Detection and FaceNet," in Proceeding of 2023 9th International Conference on Wireless and Telematics, ICWT 2023, Institute of Electrical and Electronics Engineers Inc., 2023. doi: 10.1109/ICWT58823.2023.10335263.
J. Wang and H. Zhao, "Improved YOLOv8 Algorithm for Water Surface Object Detection," Sensors, vol. 24, no. 15, Aug. 2024, doi: 10.3390/s24155059.
F. Feng, Y. Hu, W. Li, and F. Yang, "Improved YOLOv8 algorithms for small object detection in aerial imagery," Journal of King Saud University - Computer and Information Sciences, vol. 36, no. 6, Jul. 2024, doi: 10.1016/j.jksuci.2024.102113.
Yi, B. Liu, B. Zhao, and E. Liu, "Small Object Detection Algorithm Based on Improved YOLOv8 for Remote Sensing," IEEE J Sel Top Appl Earth Obs Remote Sens, vol. 17, pp. 1734–1747, 2024, doi: 10.1109/JSTARS.2023.3339235.
L. Shen, B. Lang, and Z. Song, "DS-YOLOv8-Based Object Detection Method for Remote Sensing Images," IEEE Access, 2023, doi: 10.1109/ACCESS.2023.3330844.
O. Rukundo, "Effects of Image Size on Deep Learning," Electronics (Switzerland), vol. 12, no. 4, Feb. 2023, doi: 10.3390/electronics12040985.
Fein-Ashley, S. Wickramasinghe, B. Zhang, R. Kannan, and V. Prasanna, "A Single Graph Convolution is All You Need: Efficient Grayscale Image Classification," Abu Dhabi, United Arab Emirates: IEEE International Conference on Image Processing (ICIP), Oct. 2024. doi: 10.1109/ICIP51287.2024.10647347.
Rahmad, K. Arai, R. A. Asmara, E. Ekojono, and D. R. H. Putra, "Comparison of Geometric Features and Color Features for Face Recognition," International Journal of Intelligent Engineering and Systems, vol. 14, no. 1, pp. 541–551, Feb. 2021, doi: 10.22266/IJIES2021.0228.50.
P. Lu, B. Song, and L. Xu, "Human face recognition based on convolutional neural network and augmented dataset," Systems Science and Control Engineering, vol. 9, no. S2, pp. 29–37, 2021, doi: 10.1080/21642583.2020.1836526.
O. E. Gundersen, S. Shamsaliei, and R. J. Isdahl, "Do machine learning platforms provide out-of-the-box reproducibility?," Future Generation Computer Systems, vol. 126, pp. 34–47, Jan. 2022, doi: 10.1016/j.future.2021.06.014.
M. A. H. Akhand, S. Roy, N. Siddique, M. A. S. Kamal, and T. Shimamura, "Facial emotion recognition using transfer learning in the deep CNN," Electronics (Switzerland), vol. 10, no. 9, May 2021, doi: 10.3390/electronics10091036.
Paramita, C. Supriyanto, and K. Rahmyanto Putra, “Comparative Analysis of YOLOv5 and YOLOv8 Cigarette Detection in Social Media Content,” Scientific Journal of Informatics, vol. 11, no. 2, 2024, doi: 10.15294/sji.v11i2.2808
Copyright (c) 2025 Ghina Fairuz Mumtaz, Junta Zeniarja, Ardytha Luthfiarta, Almas Najiib Imam Muttaqin

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with Inform: Jurnal Ilmiah Bidang Teknologi Informasi dan Komunikasi agree to the following terms:
-
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
-
Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
-
Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.