TL;DR
This paper introduces a novel method to make facial expression recognition (FER) models more interpretable by guiding their attention using "Action Unit" (AU) cues, mimicking how human experts analyze faces. By training models to align their internal feature maps with these AU-based heatmaps, the researchers achieve improved interpretability without sacrificing classification accuracy, and even sometimes enhancing it.
What Problem Does This Paper Address?
Facial Expression Recognition (FER) systems have become quite accurate, but they often act as "black boxes." This lack of interpretability is a significant hurdle for real-world applications, especially in sensitive areas like healthcare, where users need to understand why a model makes a certain prediction to build trust and facilitate adoption. Current methods that try to provide interpretability, like Class Activation Maps (CAMs) or attention mechanisms, often highlight regions that are discriminative for classification but don't necessarily align with how human experts analyze facial expressions. Experts typically rely on a set of "Action Units" (AUs) – specific muscle movements on the face – to interpret expressions. The challenge is to train models to leverage these expert-defined AU cues for interpretability without requiring extensive manual annotations, which are costly and difficult to obtain.
Methods
The core of this work is a new learning strategy that explicitly incorporates spatial AU cues into the training of FER classifiers. Here's how it works:
- AU Heatmap Generation: Instead of relying on manual AU annotations, the authors generate "AU heatmaps." These heatmaps are created using:
- Image Class Supervision: The known facial expression label of the image.
- Facial Landmarks: Standard facial landmarks (like those from SynergyNet) are extracted to pinpoint facial regions.
-
AU Codebook: A pre-defined mapping of facial expressions to their constituent AUs (based on expert knowledge, e.g., from the FACS system). By combining these, they create a heatmap indicating the likely locations of relevant AUs for a given expression. This process is "weakly supervised" as it only requires the image class label, not explicit AU bounding boxes.
-
Guided Training with Composite Loss: The FER classifier is trained with a composite loss function that includes:
- Classification Loss: Standard cross-entropy loss to ensure accurate prediction of the facial expression.
- AU Map Alignment Loss: A novel loss term that encourages the classifier's internal spatial feature maps (specifically, layer-wise attention maps) to be correlated with the generated AU heatmaps. This is achieved using cosine similarity.
- Layer-wise Attention: The method focuses on aligning layer-wise attention maps, which are derived from the spatial feature maps of the classifier. This allows the model to learn to focus on regions relevant to AUs at different levels of abstraction within the network.
- Generic Applicability: The proposed strategy is designed to be generic, meaning it can be applied to any deep CNN or transformer-based FER classifier without requiring architectural changes or significant additional training time.
Datasets
The proposed method was evaluated on two widely used public benchmarks for facial expression recognition:
- RAF-DB (Real-world Affective Faces Database): A large-scale dataset with manually annotated images, containing six basic expressions plus "Neutral."
- AffectNet: Another large dataset with over 420,000 images, also featuring the six basic expressions and "Neutral."
Key Insights and Ideas
- Expert Knowledge as a Training Signal: The paper demonstrates that mimicking expert reasoning (by using AU cues) can significantly improve model interpretability, even when only image-level expression labels are available.
- Weak Supervision for Interpretability: Generating AU heatmaps from image class labels and facial landmarks is a clever way to obtain interpretability supervision without the prohibitive cost of manual AU annotations.
- Alignment vs. Direct Correlation: Instead of forcing attention maps to directly match AU heatmaps (which can be brittle), the paper uses cosine similarity to encourage correlation, leading to more robust alignment.
- Interpretability Can Boost Accuracy: Surprisingly, guiding the model towards interpretable features (via AU alignment) not only improves interpretability but can also lead to better classification accuracy, especially on larger datasets like AffectNet. This suggests that interpretable features are often also discriminative.
- Layer-wise Attention is Key: Aligning attention maps from intermediate layers proves more effective for interpretability than solely relying on final-layer CAMs, as it captures more nuanced spatial reasoning.
Key Results
- Improved Interpretability: The proposed AU alignment strategy significantly improves the interpretability of both CAMs (CAM-COS metric) and layer-wise attention maps (ATT-COS metric) across various baseline methods. For instance, the APVIT model achieved an attention interpretability score of 0.85 with AU alignment, compared to 0.38 without.
- Classification Accuracy Maintained or Improved: The method generally maintains or slightly improves classification accuracy (CL). On AffectNet, classification accuracy saw a notable improvement.
- No Significant Computational Overhead: The additional training cost for AU map generation and alignment is minimal, adding only a small percentage to the overall training time.
- Effective on Diverse Architectures: The approach showed benefits when applied to both CNN-based (e.g., ResNet50) and transformer-based (e.g., APVIT) architectures.
Limitations and Future Work
- Reliance on Facial Landmarks: The method's performance is dependent on the accuracy of the extracted facial landmarks. While off-the-shelf methods are used, inaccuracies could propagate.
- AU Codebook Dependency: The quality of the AU-expression mapping in the codebook is crucial. The paper uses a standard codebook, but variations or more nuanced mappings could be explored.
- Future Work: The authors suggest exploring the use of pre-trained AU detectors to build ideal interpretable models, which could further enhance interpretability at the cost of more complex annotation or model requirements. They also mention the potential for using active AUs to build ideal interpretable models, implying a more direct link to observed facial movements.
Summary updated