Facial Expressions Recognitions with Supervised Contrastive Learning

Authors

  • Xiaotian Wang

DOI:

https://doi.org/10.54097/hset.v41i.6743

Keywords:

Facial Expression Recognition; Convultional Neural Networks; Supervised Contrastive Learning.

Abstract

Facial expressions are significant ways that humans express and perceive emotions. Facial Expression Recognition (FER) can be challenging in computer vision since facial expressions tend to be different among individuals. Researchers have introduced many outstanding methodologies and approaches to achieve the best performance in classifying and identifying emotions based on images of facial expressions. Supervised Contrastive Learning (SCL), outperforming supervised learning with cross-entropy loss, has gained much attention due to its recent performance in computer vision. In this work, we extended traditional approaches to common cross entropy loss and made approaches of contrastive learning to tackle the issue. Specifically, the frameworks in this work focus on the performance of cross entropy loss and supervised contrastive loss on the FER-2013 dataset. The result showed that supervised contrastive loss substantially improved accuracy by about 2% to 6% for ResNet architectures.

Downloads

Download data is not yet available.

References

L. Zahara, P. Musa, E. Prasetyo Wibowo, I. Karim, and S. Bahri Musa, “The facial emotion recognition (FER-2013) dataset for prediction system of micro-expressions face using the convolutional neural network (CNN) algorithm based raspberry pi,” in Proc. 5th Int. Conf. Informat. Comput. (ICIC), Nov. 2020, pp. 1–9.

P. Khosla, P. Teterwak, C. Wang, A. Sarna, Y. Tian, P. Isola, A. Maschinot, C. Liu, and D. Krishnan. Supervised contrastive learning. In NeurIPS, 2020.

K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, pages 770– 778, 2016.

A. Khanzada, C. Bai, and F. T. Celepcikay, “Facial expression recognition with deep learning,” arXiv preprint arXiv:2004.11823, 2020.

K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.

D. P. Kingma and M. Welling. Auto-encoding variational bayes. ICLR, 2014

I. J. Goodfellow, D. Erhan, P. L. Carrier, A. Courville, M. Mirza, B. Hamner, W. Cukierski, Y. Tang, D. Thaler, D.- H. Lee, et al. Challenges in representation learning: A report on three machine learning contests. In Neural information processing, pages 117–124. Springer, 2013.

M. R. Islam, L. F. Abdulrazak, M. Nahiduzzaman, M. O. F. Goni, M. S. Anower, M. Ahsan, J. Haider, M. Kowalski. Applying supervised contrastive learning for the detection of diabetic retinopathy and its severity levels from fundus images. Computers in Biology and Medicine. 2022 May 10:105602.

J. Bergstra, D.D. Cox, Hyperparameter optimization and boosting for classifying facial expressions: how good can a “null” model be?, arXiv:1306.3476 (2013).

P. U. Diehl, D. Neil, J. Binas, M. Cook, S.-C. Liu, and M. Pfeiffer, “Fast-classifying, high-accuracy spiking deep networks through weight and threshold balancing,” in International Joint Conference on Neural Networks, 2015, in press.

FER-2013 Dataset. Accessed: May 1, 2020. [Online]. Available: https://www.kaggle.com/c/challenges-in-representation-learning-facialexpression-recognition-challenge/data

C. Pramerdorfer and M. Kampel. Facial expression recognition using convolutional neural networks: State of the art. CoRR, abs/1612.02903, 2016.

M. I. Georgescu, R. T. Ionescu, and M. Popescu, ‘‘Local learning with deep and handcrafted features for facial expression recognition,’’ IEEE Access, vol. 7, pp. 64827–64836, 2018.

A. Jaiswal, A. R. Babu, M. Z. Zadeh, D. Banerjee, and F. Makedon, “A survey on contrastive self-supervised learning,” Technologies, vol. 9, no. 1, p. 2, 2021.

T. Kanade, J. Cohn, and Y.-L. Tian. Comprehensive database for facial expression analysis. In Proc. of the 4th IEEE International Conference on Automatic Face and Gesture Recognition, 2000.

Y. Khaireddin and Z. Chen, Facial emotion recognition: State of the art performance on FER2013, 2021, arXiv:2105.03588.

S. Li and W. Deng, “Deep facial expression recognition: A survey,” CoRR, vol. abs/1804.08348, Jun. 2018.

O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 115(3):211–252, 2015

Y. Tian, T. Kanade, and J. F. Cohn, “Facial expression recognition,” in Handbook of Face Recognition. London, U.K.: Springer, 2011, pp. 487–519.

R. Yamashita, M. Nishio, R. K. G. Do, and K. Togashi, ‘‘Convolutional neural networks: An overview and application in radiology,’’ Insights into Imag., vol. 9, no. 4, pp. 611–629, Aug. 2018, doi: 10.1007/s13244-018- 0639-9.

S. Arora, H. Khandeparkar, M. Khodak, O. Plevrakis, and N. Saunshi. A theoretical analysis of contrastive unsupervised representation learning. ICML, 2019

H. Zhao, O. Gallo, I. Frosio, and J. Kautz, “Loss functions for image restoration with neural networks,” IEEE Trans. Comput. Imag., vol. 3, no. 1, pp. 47–57, Mar. 2017.

Downloads

Published

30-03-2023

How to Cite

Wang, X. (2023). Facial Expressions Recognitions with Supervised Contrastive Learning. Highlights in Science, Engineering and Technology, 41, 53-64. https://doi.org/10.54097/hset.v41i.6743