Robust CNN for facial emotion recognition and real-time GUI

被引:0
作者
Ali I. [1 ]
Ghaffar F. [2 ]
机构
[1] Department of Computer Science, University of Swat, KP, Swat
[2] System Design Engineering Department, University of Waterloo, Waterloo
来源
AIMS Electronics and Electrical Engineering | 2024年 / 8卷 / 02期
关键词
CNN; facial emotions; GUI; prediction; preprocessing; recognition;
D O I
10.3934/electreng.2024010
中图分类号
学科分类号
摘要
Computer vision is witnessing a surge of interest in machines accurately recognizing and interpreting human emotions through facial expression analysis. However, variations in image properties such as brightness, contrast, and resolution make it harder for models to predict the underlying emotion accurately. Utilizing a robust architecture of a convolutional neural network (CNN), we designed an efficacious framework for facial emotion recognition that predicts emotions and assigns corresponding probabilities to each fundamental human emotion. Each image is processed with various pre-processing steps before inputting it to the CNN to enhance the visibility and clarity of facial features, enabling the CNN to learn more effectively from the data. As CNNs entail a large amount of data for training, we used a data augmentation technique that helps to enhance the model's generalization capabilities, enabling it to effectively handle previously unseen data. To train the model, we joined the datasets, namely JAFFE and KDEF. We allocated 90% of the data for training, reserving the remaining 10% for testing purposes. The results of the CCN framework demonstrated a peak accuracy of 78.1%, which was achieved with the joint dataset. This accuracy indicated the model's capability to recognize facial emotions with a promising level of performance. Additionally, we developed an application with a graphical user interface for real-time facial emotion classification. This application allows users to classify emotions from still images and live video feeds, making it practical and user-friendly. The real-time application further demonstrates the system's practicality and potential for various real-world applications involving facial emotion analysis. © 2024 the Author(s).
引用
收藏
页码:217 / 236
页数:19
相关论文
共 27 条
  • [1] Albornoz EM, Milone DH, Rufiner HL, Spoken emotion recognition using hierarchical classifiers, Comput Speech Lang, 25, pp. 556-570, (2011)
  • [2] Erol BA, Majumdar A, Benavidez P, Rad P, Choo KKR, Jamshidi M, Toward artificial emotional intelligence for cooperative social human-machine interaction, IEEE Transactions on Computational Social Systems, 7, pp. 234-246, (2019)
  • [3] Cohn JF, Ambadar Z, Ekman P, Observer-based measurement of facial expression with the Facial Action Coding System, The Handbook of Emotion Elicitation and Assessment, 1, pp. 203-221, (2007)
  • [4] Vaillant R, Monrocq C, Le Cun Y, Original approach for the localization of objects in images, IEE Proceedings-Vision, Image and Signal Processing, 141, pp. 245-250, (1994)
  • [5] Rowley HA, Baluja S, Kanade T, Neural network-based face detection, IEEE T Pattern Anal, 20, pp. 23-38, (1998)
  • [6] Jain V, Learned-Miller E, FDDB: A benchmark for face detection in unconstrained settings, (2010)
  • [7] Zhu X, Ramanan D, Face detection, pose estimation, and landmark localization in the wild, IEEE Conference on Computer Vision and Pattern Recognition, pp. 2879-2886, (2012)
  • [8] Yan J, Zhang X, Lei Z, Li SZ, Face detection by structural models, Image Vision Comput, 32, pp. 790-799, (2014)
  • [9] Viola P, Jones M, Rapid object detection using a boosted cascade of simple features, Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 1-9, (2001)
  • [10] Lienhart R, Maydt J, An extended set of Haar-like features for rapid object detection, Proceedings of the IEEE International Conference on Image Processing, pp. 1-4, (2002)