Innovation Series: Advanced Science (ISSN 2938-9933, CNKI Indexed)

Volume 3 · Issue 5 (2026)
98
views
DOI number:
10.66521/2938-9933-2026052901

Research on Multi-Class Facial Expression Recognition Method Based on YOLOv8

 

Zhiyuan Lu, Qiannan Wei*

School of Electronics and Information Engineering, University of Science and Technology Liaoning, Anshan, 114051, China

Corresponding Author: Qiannan Wei

 

Abstract: Facial expression recognition is an important research direction in emotion computing, human-computer interaction, intelligent monitoring, and psychological state analysis. To address the shortcomings of traditional expression recognition methods in handling complex postures, changes in lighting, fine-grained differences in expressions, and multi-category recognition capabilities, this paper proposes a nine-category facial expression recognition method based on YOLOv8. The study uses a self-built multi-category facial expression dataset, with a data size of approximately 60,000 to 70,000 images, including nine categories of expressions: angry, contempt, disgust, fear, happy, natural, sad, sleepy, and surprised. This paper models facial expression recognition as a task combining object detection and category discrimination, utilizing the C2f feature extraction structure, SPPF spatial pyramid pooling module, PAN-FPN multi-scale feature fusion structure, and decoupled detection head of YOLOv8 to achieve end-to-end recognition of facial regions and their categories. Experimental results show that the constructed model achieved 92.8% Precision, 91.6% Recall, 93.4% mAP@0.5, and 78.9% mAP@0.5:0.95 on the test set. The recognition effects of the happy, natural, and surprised categories are better, while the fine-grained categories such as disgust, contempt, and fear still have some confusion. The results indicate that YOLOv8 can better adapt to multi-category facial expression recognition tasks, achieving a better balance between recognition accuracy, inference speed, and deployment convenience. This provides an effective technical foundation for subsequent applications in real-time emotion perception systems.

 

Keywords: YOLOv8; Facial Expression Recognition; Deep Learning; Multi-class Detection; Emotional Computing

 

References

[1]
Wang, W., Li, Z., Zhao, J., Wang, X., & Xie, Y. (2026). Analysis of classroom teaching evaluation methods based on student expression recognition from the perspective of computer vision. PeerJ Computer Science, 12, e3698.
[2]
Zhang, J., Guo, L., & Wang, X. (2025). Student Classroom Behavior Recognition Based on YOLOv8 and Attention Mechanism. Information, 16(11), 934.
[3]
Wang, Z., Yin, H., Xie, H., & Gu, J. (2025). Research on Expression Recognition Algorithm Based on Deep Learning. Engineering Letters, 33(10).
[4]
Ullah, F., Sarwar, S. M., & Xiong, A. (2024, December). Optimizing Real-Time Emotion Recognition: A YOLO v. 8 Deep Learning Solution for Facial Expression Analysis. In 2024 10th International Conference on Computer and Communications (ICCC) (pp. 150-156). IEEE.
[5]
Ma, Y., Lu, R., Ren, W., Huang, Y., Li, W., & Wang, Y. (2025). ALF-YOLO: a modified YOLOv8n algorithm for precise emotion detection via facial expressions. Journal of Real-Time Image Processing, 22(3), 113.
[6]
Wang, L., Zhao, J., Song, H., & Xu, X. (2024). E2e-mferc: A multi-face expression recognition model for group emotion assessment. Computers, Materials & Continua, 79(1), 1105.
[7]
Yang, Y., & Zhang, Y. (2025, December). Lightweight Multi-Class Object Detection Based on Improved YOLOv8-CI Algorithm. In 2025 IEEE 4th International Conference of Safe Production and Informatization (IICSPI) (pp. 36-43). IEEE.
[8]
Amer, M. S. E. S. A Proposed Artificial Intelligence Model for Personalized Education Using Facial Emotion Recognition.
[9]
Sareen, V., & Seeja, K. R. (2025). Video-Based Facial Emotion Recognition using YOLO and Vision Transformer. In EPJ Web of Conferences (Vol. 328, p. 01040). EDP Sciences.
[10]
Chen, C., Liu, X., Zhou, M., Li, Z., Du, Z., & Lin, Y. (2025). Lightweight and Real-Time Driver Fatigue Detection Based on MG-YOLOv8 with Facial Multi-Feature Fusion. Journal of Imaging, 11(11), 385.
Download PDF
Innovation Series

Innovation Series is an academic publisher publishing journals and books covering a wide range of academic disciplines.

Contact

Francesc Boix i Campo, 7

08038 Barcelona, Spain