Region Attention Networks for Pose and Occlusion Robust Facial Expression Recognition

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

TL;DR

Researchers have developed a Region Attention Network (RAN) designed to recognize facial expressions even when faces are partially blocked (occlusions) or turned away (pose variations). By combining a multi-region cropping strategy with a two-stage attention mechanism and a novel "Region Biased Loss," the system achieves state-of-the-art results on major "in-the-wild" facial expression datasets.

What Problem Does This Paper Address?

Facial Expression Recognition (FER) has come a long way, but most systems still struggle in the real world. Two major "monsters" in this field are occlusions (e.g., sunglasses, masks, or a hand covering the mouth) and pose variations (e.g., a profile view instead of a front-facing one).

Traditional approaches often try to detect and "remove" occluded areas, but detecting occlusions is a difficult task in itself. Furthermore, standard Convolutional Neural Networks (CNNs) trained on whole faces often fail to capture the subtle, local cues—like a crinkle around the eyes or a slight mouth movement—that define an emotion when the rest of the face is obscured or distorted by perspective.

Methods

The authors propose the Region Attention Network (RAN), which moves away from analyzing the face as a single block.

  1. Region Generation: The system crops multiple regions from a face (using fixed positions, random crops, or landmark-based crops). These regions, along with the original face, are fed into a backbone CNN (like ResNet-18).
  2. Self-Attention Module: This module assigns an initial "importance weight" to each region. It asks: How much useful information does this specific patch contain on its own?
  3. Relation-Attention Module: This is the "secret sauce." It refines the weights by comparing each region's features to a global representation of the face. It captures the context—for example, realizing that a mouth region is particularly important if the eyes are covered by sunglasses.
  4. Region Biased Loss (RB-Loss): To ensure the network doesn't just default to looking at the whole face, the authors introduced a unique loss function. It forces the network to ensure that at least one of the cropped regions has a higher attention weight than the original full-face image, essentially "biasing" the model toward finding informative local details.

Datasets

The study utilizes four popular "in-the-wild" datasets:

  • FERPlus
  • AffectNet
  • RAF-DB
  • SFEW

New Contribution: Because existing datasets lacked specific labels for occlusion and pose, the authors manually annotated and released six new test subsets: Occlusion-FERPlus, Pose-FERPlus, Occlusion-AffectNet, Pose-AffectNet, Occlusion-RAF-DB, and Pose-RAF-DB. These serve as a new benchmark for testing robustness in challenging conditions.

Key Insights and Ideas

  • Context Matters: Simple self-attention isn't enough. The Relation-Attention module is crucial because it allows the model to weigh a region based on what else is visible (or invisible) on the face.
  • The Power of Local Cues: Facial expressions are driven by "Action Units" (specific muscle movements). By forcing the model to prioritize local regions via the RB-Loss, the RAN learns to "zoom in" on these units even when the global face structure is compromised.
  • Data Augmentation vs. Attention: The authors found that simply adding more cropped images to the training set (standard data augmentation) helped a little, but the RAN's ability to adaptively weight those regions provided a much larger performance boost.

Key Results

The RAN significantly outperformed baseline CNNs and previous state-of-the-art (SOTA) methods:

  • SOTA Performance: Achieved 89.16% on FERPlus, 59.5% on AffectNet, and 86.9% on RAF-DB.
  • Occlusion Robustness: On the new Occlusion-FERPlus subset, the RAN improved accuracy by 10.3% over the baseline.
  • Pose Invariance: On faces turned more than 45 degrees in FERPlus, the RAN improved accuracy by nearly 5%.
  • Qualitative Success: Visualization of the attention weights showed the model successfully "ignoring" occluders (like a hand) and focusing on the most expressive visible parts of the face.

Limitations and Future Work

  • Computational Overhead: Because the RAN processes multiple regions (the paper uses 5 crops + 1 original image), the inference time is higher than a standard CNN (0.025s vs 0.006s per image). While still fast enough for many real-time applications, it is roughly 4x slower.
  • Alignment Dependency: The "Fixed Position" cropping strategy—which performed best—relies on reasonably accurate face alignment. If the initial face detection is wildly off, the crops might miss the intended features.
  • Future Directions: The authors suggest that exploring more sophisticated region generation or integrating temporal information (for video-based FER) could further improve results.

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