Introduction
Facial expressions are complex signals composed of multiple independent muscle movements. In computer vision, the Facial Action Coding System (FACS) is used to decompose these expressions into discrete Facial Action Units (FAUs), such as a "Brow Lowerer" or "Cheek Raiser." Automatically detecting these units is a significant challenge due to two primary factors: the need for precise spatial localization of muscle movements and the complex, often non-linear correlations between different FAUs (e.g., a smile typically involves both the mouth and eyes).
This paper, presented at CVPR 2021 by researchers at the Rakuten Institute of Technology, introduces a novel multi-task learning framework. By integrating region-of-interest (ROI) attention with the relational modeling capabilities of Transformers, the authors achieve state-of-the-art performance in FAU detection.
Methodology
The proposed architecture is designed to address both spatial localization and inter-AU relationships through four integrated modules:
- Feature Extraction: The model utilizes a pre-trained InceptionV3 backbone to extract high-level spatial features from input facial images.
- ROI Attention Module: To ensure the model focuses on relevant anatomical regions, this module learns spatial attention maps for each AU. Uniquely, these maps are supervised during training using facial landmarks, providing a strong inductive bias for where specific muscle movements occur.
- Per-AU Embeddings: The framework branches into task-specific paths for each AU. To enhance feature discriminability, the authors introduce a Center Contrastive (CC) loss, which encourages the model to cluster features of the same AU state while separating them from others.
- AU Correlation Module (Transformer): The core innovation is the use of a Transformer encoder to model the "grammar" of facial expressions. By processing the per-AU embeddings through self-attention layers, the model learns the global dependencies and correlations between different facial movements.
To mitigate the effects of class imbalance common in facial expression datasets, the training process employs a Tversky loss function, allowing for a tunable balance between precision and recall.
Experimental Results
The model was rigorously evaluated on three benchmark datasets: BP4D, DISFA, and the large-scale EmotioNet.
- Performance Gains: The framework achieved an average F1-score of 64.2 on BP4D and 61.5 on DISFA. This represents a significant 2% absolute improvement over previous state-of-the-art methods like JAA-Net and ARL.
- Ablation Study: Removing the Transformer-based correlation module resulted in a 2.4% drop in F1-score, highlighting the critical importance of modeling AU relationships.
- Efficiency: Despite its sophisticated architecture, the model is highly efficient, with an inference time of approximately 2ms per image on an NVIDIA RTX 2080Ti, making it suitable for real-time applications.
Discussion and Conclusion
The success of this approach underscores two key insights: the value of supervised spatial attention and the effectiveness of Transformers in modeling structured relationships outside of natural language processing. By using facial landmarks to guide attention, the model avoids the pitfalls of purely data-driven localization. Furthermore, the Transformer encoder successfully captures the co-occurrence patterns of FAUs, effectively learning how different parts of the face work in concert.
However, the model's reliance on accurate facial landmarks presents a limitation in "in the wild" scenarios where faces may be heavily occluded or at extreme angles. Future research may focus on improving robustness to such conditions and addressing label noise in large-scale, automatically annotated datasets.
Overall, this work sets a new benchmark for FAU detection, providing a robust framework for understanding the nuances of human facial behavior.
Summary updated