Spatial Action Unit Cues for Interpretable Deep Facial Expression Recognition

Soufiane Belharbi, Marco Pedersoli, Alessandro Lameiras Koerich, Simon Bacon, Eric GrangerarXiv 2024 · DOI

TL;DR

This paper introduces a novel training strategy for facial expression recognition (FER) models that enhances interpretability by explicitly incorporating spatial "action unit" (AU) cues. By guiding deep learning models with information about facial muscle movements, the approach aims to make FER decisions more transparent and understandable, similar to how human experts analyze expressions.

What Problem Does This Paper Address?

Current state-of-the-art facial expression recognition (FER) models achieve impressive accuracy but often function as "black boxes." This lack of interpretability is a significant hurdle for their adoption in critical applications where understanding why a model makes a certain prediction is as important as the prediction itself. Human experts, on the other hand, analyze facial expressions by identifying specific "action units" (AUs) – the movements of individual facial muscles – and their spatial configurations. This paper aims to bridge this gap by developing a deep learning approach that mimics this expert reasoning process, making FER models more interpretable without sacrificing accuracy.

Methods

The core innovation lies in a new training strategy that leverages a "codebook" of basic facial expressions and their associated AUs. During training, the model learns to generate a spatial AU map (a heatmap) for each input image, guided by the image's expression label and facial landmarks. This AU map highlights discriminative regions related to specific AUs. The model is then trained with a composite loss function that encourages two things simultaneously:

  1. Accurate Classification: The model must correctly predict the facial expression.
  2. Interpretable Localization: The internal spatial features of the deep model (specifically, layer-wise attention maps) are encouraged to align with the generated AU maps. This alignment is achieved using cosine similarity.

This approach allows the model to learn to classify expressions while also producing interpretable visual explanations (like attention maps or Class Activation Maps - CAMs) that correlate with the presence and location of relevant AUs, mimicking expert analysis. The method is designed to be generic and can be applied to existing CNN or Transformer architectures with minimal architectural changes and negligible added training time.

Datasets

The authors evaluate their method on two public FER benchmarks:

  • RAF-DB (Real-world Affective Faces Database): A large-scale dataset for facial expression recognition.
  • AffectNet: Another comprehensive dataset for facial expression recognition.

Key Insights and Ideas

  • Mimicking Human Expertise: The paper successfully translates the human expert's approach of identifying AUs into a deep learning training paradigm. This is a significant step towards making AI decisions more relatable and trustworthy.
  • Spatial Cues for Interpretability: Explicitly using spatial AU information as a supervisory signal during training is shown to be effective in generating more interpretable model outputs.
  • Generic Applicability: The proposed strategy is architecture-agnostic, meaning it can be integrated into various deep learning models (CNNs, Transformers) without requiring complex modifications.
  • No Additional Manual Annotations: The method relies only on image-class labels for supervision, making it practical for real-world scenarios where detailed AU annotations are scarce.

Key Results

The paper demonstrates that their proposed method improves both classification and localization (interpretability) performance on the RAF-DB and AffectNet datasets. Specifically, Table 1 shows that their approach, when applied with AU alignment ("w/AU"), generally leads to better CAM-localization (CAM-COS) and Attention-localization (ATT-COS) scores compared to methods without AU alignment ("w/o AU"), while maintaining competitive or slightly improved classification (CL) accuracy. For instance, on RAF-DB, their method achieves a CL of 91.00% (w/o AU) and 91.03% (w/AU), with significant improvements in localization metrics.

Limitations and Future Work

  • Limitations: The paper notes that while the AU maps are generated during training, they are not directly available during inference. The interpretability at inference time relies on the learned correlation between internal features and the AU maps. The computational cost of generating AU maps on-the-fly during training is negligible, but it still requires facial landmark extraction.
  • Future Work: The authors suggest that their strategy is generic and can be applied to any deep classifier. Further exploration into how this interpretable framework can be extended to other computer vision tasks beyond FER could be a promising direction. The paper also mentions that their code is publicly available, encouraging further research and development in interpretable AI for facial analysis.

Summary updated

BibTeX
@misc{belharbi2024spatial,
  author = {Soufiane Belharbi and Marco Pedersoli and Alessandro Lameiras Koerich and Simon Bacon and Eric Granger},
  title = {{Spatial Action Unit Cues for Interpretable Deep Facial Expression Recognition}},
  year = {2024},
  eprint = {2410.01848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.01848},
}
Figure