Expression recognition can not only improve human-computer interaction experience and promote the development of emotional computing, but also assist in mental health assessment and treatment, and improve social security and monitoring efficiency. To improve the detection average accuracy of expression recognition, this paper proposes an expression recognition algorithm based on improved YOLOv7-tiny. Firstly, the original activation function of YOLOv7-tiny is replaced with the Mish function, which improves the optimization ability of the model. Furthermore, the CA attention mechanism is added to the backbone network of YOLOv7-tiny to improve the attention to the target area of interest and increase the average accuracy of detection. Finally, the upsampling part of the Neck layer is replaced by the lightweight upsampling operator CARAFE to improve the feature fusion capability. Experimental results show that the detection effect of the improved detection algorithm is significantly improved. Compared with the original YOLOv7-tiny, the detection effect of the enhanced detection algorithm is increased by 1.6 percent point to 88.6%, and that of mAP0.5:0.95 is increased by 1.3 percent point to 64%. Image detection speed reaches 5.0 ms per image and the model remains lightweight.
LIS, DENGW. Deep facial expression recognition: a survey[J]. IEEE Transactions on Affective Computing, 2022, 13(3): 1195-1215.
[2]
SHARIFNEJADM, SHAHBAHRAMIA, AKOUSHIDEHA, et al. Facial expression recognition using a combination of enhanced local binary pattern and pyramid histogram of oriented gradients features extraction[J]. IET Image Processing, 2021, 15(2): 468-478.
[3]
GUOC, LIANGJ, ZHANG, et al. Extended local binary patterns for efficient and robust spontaneous facial micro-expression recognition[J]. IEEE Access, 2019, 7: 174517-174530.
[4]
LOWED G. Distinctive image features from scale-invariant keypoints[J]. International Journal of Computer Vision, 2004, 60(2): 91-110.
[5]
DALALN, TRIGGSB. Histograms of oriented gradients for human detection[C]//2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), 2005: 886-893.
[6]
LIAOJ, LINY, MAT, et al. Facial expression recognition methods in the wild based on fusion feature of attention mechanism and LBP[J]. Sensors, 2023, 23(9): 4204.
[7]
ZHANGW, ZHANGX, TANGY. Facial expression recognition based on improved residual network[J]. IET Image Processing, 2023, 17(7): 2005-2014.
BAIJiale, FANYongsheng. Improvement of YOLOv3 target detection algorithm based on multi-scale[J]. Journal of North University of China(Natual Science Edition), 2022, 42(3): 223-235. (in Chinese)
GUOZiyan, HANHuiyan, HELigang, et al. Gesture recognition algorithm and application based on improved YOLOv4[J]. Journal of North University of China(Natural Science Edition), 2021, 42(3): 229-231. (in Chinese)
[12]
INDOLIAS, NIGAMS, SINGHR. A framework for facial expression recognition using deep self-attention network[J]. Journal of Ambient Intelligence and Humanized Computing, 2023, 14(7): 9543-9562.
[13]
ZHONGH, HANT, XIAW, et al. Research on real-time teachers’ facial expression recognition based on YOLOv5 and attention mechanisms[J]. EURASIP Journal on Advances in Signal Processing, 2023(1): 55.
[14]
ZHANGR, MAR. Facial expression recognition method based on PSA-YOLO network[J]. Frontiers in Neurorobotics, 2023, 16: 1057983.
[15]
BIEM, LIUQ, XUH, et al. FEMFER: feature enhancement for multi-faces expression recognition in classroom images[J]. Multimedia Tools and Applications, 2024, 83(2): 6183-6203.
[16]
WANGC Y, BOCHKOVSKIYA, LIAOH Y M. YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors[J/OL]. Computer Science: Computer Vision and Pattern Recognition, 2022. arXiv: 2207.02696v1.
HOUQ, ZHOUD, FENGJ. Coordinate attention for efficient mobile network design[C]//2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021: 13708-13717.
[19]
WANGJ, CHENK, XUR, et al. CARAFE: content-aware ReAssembly of FEatures[C]//2019 IEEE/CVF International Conference on Computer Vision (ICCV), 2019: 3007-3016.
[20]
LIUY, WANGX. SAR ship detection based on improved YOLOv7-tiny[C]//2022 IEEE 8th International Conference on Computer and Communications (ICCC), 2022: 2166-2170.
[21]
YANGZ J, FENGH L, RUANY P, et al. Tea tree pest detection algorithm based on improved Yolov7-tiny[J]. Agriculture (Basel), 2023, 13(5): 1031.
QIXiangming, DONGXu. Improved Yolov7-tiny algorithm for steel surface defectdetection[J]. Computer Engineering and Applications, 2023, 59(12): 176-183. (in Chinese)
[24]
KUMARA, KALIAA, KALIAA. ETL-YOLO v4: a face mask detection algorithm in era of COVID-19 pandemic[J]. Optik, 2022, 259: 169051.
[25]
MUKHIDDINOVM, MUMINOVA, CHOJ. Improved classification approach for fruits and vegetables freshness based on deep learning[J]. Sensors, 2022, 22(21): 8192.
ZHANGXueli, JIAXinchun, WANGMeigang, et al. Lightweight detection of helmets and reflective clothings: an improved YOLOv5s algorithm[J]. Computer Engineering and Applications, 2023, 60(1): 104-109. (in Chinese)
YINMin, JIAXinchun, ZHANGXueli, et al. Human detection of damage behavior for vending cabinets based on improved YOLOv4-tiny[J]. Computer Engineering and Applications, 2023, 60(8): 234-241. (in Chinese)
CHENGFankai, LIShixin. UAV target detection algorithm with improved YOLOV5[J]. Computer Engineering and Applications, 2023, 59(9): 198-206. (in Chinese)
[32]
WANGH, ZHANGS, ZHAOS, et al. Fast detection of cannibalism behavior of juvenile fish based on deep learning[J]. Computers and Electronics in Agriculture, 2022, 198: 107033.