Convolutional neural network combined with the attention mechanism for facial emotion recognition
- 1 Durham University
* Author to whom correspondence should be addressed.
Abstract
Facial Emotion Recognition (FER) holds great importance in the fields of computer vision and machine learning. In this study, the aim is to improve the accuracy of facial expression recognition by incorporating attention mechanisms into Convolutional Neural Networks (CNN) with FER2013 dataset, which consists of grayscale images categorized into seven expressions. The combination of proposed CNN architecture and attention mechanisms is thoroughly elucidated, emphasizing the operations and interactions of their components. Additionally, the effectiveness of the new model is evaluated through experiments, comparing its performance with existing approaches in terms of accuracy. Besides, the results demonstrate that the CNN architecture with attention mechanisms outperforms the original CNN by achieving an improved accuracy rate of 69.07%, which is higher than 68.04% accuracy rate of original CNN. Moreover, the study further discusses the confusion matrix analysis, revealing the challenges faced in recognizing specific emotions due to limited training data and vague facial features. In the future, this study suggests addressing these limitations through data augmentation and to reduce the gap between training and testing accuracy. Overall, this research highlights the potential of attention mechanisms in enhancing facial expression recognition systems, paving the way for advanced applications in various domains.
Keywords
convolutional neural network, deep learning, FER
[1]. Ekman P and Friesen W 1978 The facial action coding system: a technique for the measurement of facial movement (Santa Clara: Consulting Psychologists Press)
[2]. Mordor Intelligence 2023 Emotion Detection and Recognition (EDR) Market - Growth, Trends, COVID-19 Impact and Forecast (2023 - 2028) https://www.mordorintelligence.com/zh-CN/industry-reports/emotion-detection-and-recognition-edr-market
[3]. Krizhevsky A and Sutskever I and Hinton G E 2012 ImageNet Classification with Deep Convolutional Neural Networks (In Advances in Neural Information Processing Systems) pp 1097-1105
[4]. Simonyan K and Zisserman A 2014 Very Deep Convolutional Networks for Large-Scale Image Recognition (arXiv preprint arXiv) 1409-1556
[5]. Szegedy C and Liu W and Jia Y and Sermanet P and Reed S and Anguelov D and Rabinovich A 2015 Going Deeper with ConvolutionsIn Proceedings of the IEEE conference on computer vision and pattern recognition pp 1-9
[6]. Carrier P L and Courville A 2013 Challenges in Representation Learning: A Report on Three Machine Learning Contests (Neural Information Processing Systems) Workshop on Challenges in Representation Learning
[7]. Chollet F 2018 Deep learning with Python Manning Publications
[8]. Pramerdorfer C and Kampel M 2016 Facial expression recognition using deep learning: A survey IEEE
[9]. LeCun Y and Bengio Y and Hinton G 2015 Deep learning (Nature) 521 (7553) pp 436-444
[10]. Goodfellow I and Bengio Y and Courville A 2016 Deep learning (MIT press)
[11]. Hu J and Shen L and Sun G 2018 Squeeze-and-Excitation Networks (CVPR) pp 7132-7141 (IEEE)
[12]. Chahed M 2021 Human Emotion Detection https://www.kaggle.com/code/mohamedchahed/human-emotion-detection
[13]. Prechelt L 1998 Early stopping-but when? (Neural Networks: Tricks of the Trade) pp 55-69 (Springer)
[14]. Smith L N 2015 Cyclical learning rates for training neural networks (WACV) pp 464-472 (IEEE)
[15]. Raschka S and Mirjalili V 2020 Python Machine Learning (3rd ed) (Packt Publishing) Chapter 6
[16]. Yao L Xiao X Cao R et al 2020 Three stream 3D CNN with SE block for micro-expression recognition 2020 International Conference on Computer Engineering and Application (ICCEA) IEEE 2020 pp 439-443
[17]. Yu Q Wang J Jin Z et al 2022 Pose-guided matching based on deep learning for assessing quality of action on rehabilitation training Biomedical Signal Processing and Control 72: 103323
[18]. Rouvier M Bousquet P M 2021 Studying squeeze-and-excitation used in CNN for speaker verification 2021 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU) IEEE pp 1110-1115
Cite this article
Luo,X. (2023). Convolutional neural network combined with the attention mechanism for facial emotion recognition. Applied and Computational Engineering,22,1-7.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of the 5th International Conference on Computing and Data Science
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series'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 series.
3. 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 (See
Open access policy for details).