Publication Date


Document Type


Organizational Units

Daniel Felix Ritchie School of Engineering and Computer Science, Electrical and Computer Engineering


Facial expression recognition, Facial emotion recognition, Ad-Corre loss, Loss function, Convolutional neural network


Automated Facial Expression Recognition (FER) in the wild using deep neural networks is still challenging due to intra-class variations and inter-class similarities in facial images. Deep Metric Learning (DML) is among the widely used methods to deal with these issues by improving the discriminative power of the learned embedded features. This paper proposes an Adaptive Correlation (Ad-Corre) Loss to guide the network towards generating embedded feature vectors with high correlation for within-class samples and less correlation for between-class samples. Ad-Corre consists of 3 components called Feature Discriminator, Mean Discriminator, and Embedding Discriminator. We design the Feature Discriminator component to guide the network to create the embedded feature vectors to be highly correlated if they belong to a similar class, and less correlated if they belong to different classes. In addition, the Mean Discriminator component leads the network to make the mean embedded feature vectors of different classes to be less similar to each other. We use Xception network as the backbone of our model, and contrary to previous work, we propose an embedding feature space that contains k feature vectors. Then, the Embedding Discriminator component penalizes the network to generate the embedded feature vectors, which are dissimilar. We trained our model using the combination of our proposed loss functions called Ad-Corre Loss jointly with the crossentropy loss. We achieved a very promising recognition accuracy on AffectNet, RAF-DB, and FER-2013. Our extensive experiments and ablation study indicate the power of our method to cope well with challenging FER tasks in the wild. The code is available on Github.

Copyright Statement / License for Reuse

Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License
This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.

Publication Statement

This article was originally published as:

Fard, A. P., & Mahoor, M. H. (2022). Ad-Corre: Adaptive correlation-based ioss for facial expression recognition in the wild. IEEEAccess, 10, 26756. DOI: 10.1109/ACCESS.2022.3156598

Rights Holder

Ali Pourramezan Fard, Mohammad H. Mahoor


Received from author

File Format



English (eng)


13 pgs

File Size

3.1 MB

Publication Title




First Page


Last Page