HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Distract Your Attention: Multi-head Cross Attention Network for Facial Expression Recognition

Zhengyao Wen Wenzhong Lin Tao Wang Ge Xu

Distract Your Attention: Multi-head Cross Attention Network for Facial Expression Recognition

Abstract

We present a novel facial expression recognition network, called Distract your Attention Network (DAN). Our method is based on two key observations. Firstly, multiple classes share inherently similar underlying facial appearance, and their differences could be subtle. Secondly, facial expressions exhibit themselves through multiple facial regions simultaneously, and the recognition requires a holistic approach by encoding high-order interactions among local features. To address these issues, we propose our DAN with three key components: Feature Clustering Network (FCN), Multi-head cross Attention Network (MAN), and Attention Fusion Network (AFN). The FCN extracts robust features by adopting a large-margin learning objective to maximize class separability. In addition, the MAN instantiates a number of attention heads to simultaneously attend to multiple facial areas and build attention maps on these regions. Further, the AFN distracts these attentions to multiple locations before fusing the attention maps to a comprehensive one. Extensive experiments on three public datasets (including AffectNet, RAF-DB, and SFEW 2.0) verified that the proposed method consistently achieves state-of-the-art facial expression recognition performance. Code will be made available at https://github.com/yaoing/DAN.

Code Repositories

sithu31296/EasyFace
pytorch
Mentioned in GitHub
yaoing/dan
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
facial-expression-recognition-on-affectnetDAN
Accuracy (7 emotion): 65.69
Accuracy (8 emotion): 62.09
facial-expression-recognition-on-raf-dbDAN
Overall Accuracy: 89.70

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp