Region Attention Networks for Pose and Occlusion Robust Facial Expression Recognition

Kai Wang, Xiaojiang Peng, Jianfei Yang, Debin Meng, Yu Qiao

Introduction

Facial Expression Recognition (FER) is a critical component of human-computer interaction, yet its performance in "in-the-wild" scenarios remains a significant challenge. Two primary obstacles hinder robust FER: occlusions (such as sunglasses, masks, or hands) and pose variations (non-frontal face views). Traditional Convolutional Neural Networks (CNNs) often struggle because they treat the face as a single global entity, potentially missing subtle local cues when parts of the face are obscured or distorted by perspective.

Examples of facial expressions with pose variations and occlusions from AffectNet and FERPlus datasets.

The Region Attention Network (RAN)

To address these challenges, researchers have proposed the Region Attention Network (RAN). Unlike standard approaches that analyze the entire face at once, RAN decomposes the face into multiple local regions to capture informative facial features adaptively.

Methodology

The RAN framework consists of several key components designed to prioritize expressive facial regions:

  1. Region Generation: The system generates multiple crops from a single face image using various strategies, including fixed positions, random cropping, and landmark-based cropping. These regions, along with the original full face, are processed by a shared backbone CNN (e.g., ResNet-18) to extract feature maps.
  2. Self-Attention Module: This module calculates an initial importance score for each region independently. It evaluates how much discriminative information a specific patch contributes to the overall expression recognition.
  3. Relation-Attention Module: This component refines the attention weights by considering the relationship between local regions and the global facial context. By comparing each region's features to a fused global representation, the network can intelligently down-weight occluded or uninformative areas.
  4. Region Biased Loss (RB-Loss): A novel loss function is introduced to encourage the model to find at least one local region that is more informative than the global face. This "biases" the network toward discovering fine-grained local details that might be overlooked in a global analysis.
The architecture of the Region Attention Network (RAN), illustrating the flow from region generation to the final compact feature representation.

Datasets and Benchmarking

The effectiveness of RAN was evaluated on four major "in-the-wild" datasets: FERPlus, AffectNet, RAF-DB, and SFEW.

A significant contribution of this work is the creation of six new manually annotated test subsets specifically for occlusion and pose: Occlusion-FERPlus, Pose-FERPlus, Occlusion-AffectNet, Pose-AffectNet, Occlusion-RAF-DB, and Pose-RAF-DB. These subsets provide a rigorous benchmark for evaluating the robustness of FER models under challenging real-world conditions.

Key Insights and Results

The experimental results demonstrate that RAN achieves state-of-the-art (SOTA) performance across multiple benchmarks:

  • Performance Gains: RAN achieved accuracies of 89.16% on FERPlus, 59.5% on AffectNet, and 86.9% on RAF-DB.
  • Robustness to Occlusion: On the Occlusion-FERPlus subset, RAN showed a remarkable 10.3% improvement over the baseline CNN.
  • Pose Invariance: For faces with extreme poses (greater than 45 degrees) in FERPlus, the network improved accuracy by nearly 5%.

Qualitative analysis through attention map visualization confirms that the model successfully learns to "ignore" occluding objects, such as hands or glasses, and focuses its attention on the most expressive visible parts of the face, such as the eyes or mouth.

Conclusion

The Region Attention Network represents a significant step forward in making facial expression recognition more practical for real-world use. By leveraging a two-stage attention mechanism and a region-biased loss, the model effectively navigates the complexities of occlusions and pose variations.

While the RAN is highly effective, it does come with a computational cost, being approximately four times slower than a standard CNN due to the processing of multiple image crops. Future research may focus on optimizing this overhead or extending the framework to handle temporal dynamics in video-based facial expression recognition.

Summary updated

BibTeX
@article{wang2020region,
  author = {Kai Wang and Xiaojiang Peng and Jianfei Yang and Debin Meng and Yu Qiao},
  title = {{Region Attention Networks for Pose and Occlusion Robust Facial Expression Recognition}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  url = {https://openreview.net/forum?id=G0dx8siVtWW8},
}
Figure