Frame Attention Networks for Facial Expression Recognition in Videos

Debin Meng, Xiaojiang Peng, Kai Wang, Yu Qiao

Introduction

Facial Expression Recognition (FER) in video sequences presents unique challenges compared to static image analysis. While videos offer a richer temporal context, they also introduce significant noise in the form of neutral frames, motion blur, and head pose variations. Traditional approaches often struggle with feature aggregation—the process of distilling a variable-length sequence of frames into a single, discriminative representation. Many existing methods rely on manual selection of "peak" expressive frames, which is unscalable for real-world applications, or simple temporal averaging, which tends to dilute salient emotional features with information from non-expressive frames.

The Frame Attention Network (FAN)

To address these challenges, the authors introduce the Frame Attention Network (FAN), an end-to-end framework designed to automatically prioritize expressive frames through a multi-stage attention mechanism.

The architecture of the Frame Attention Network (FAN), showing the flow from video frames through a CNN to the two-stage frame attention module.

The FAN architecture consists of two primary components:

  1. Feature Embedding Module: A deep Convolutional Neural Network (CNN), specifically a ResNet18 backbone pre-trained on face recognition and static FER tasks, is used to extract high-level feature vectors from each frame.
  2. Frame Attention Module: This module performs a two-step aggregation:
  3. Self-Attention: It assigns a coarse weight to each frame based on its individual expressiveness, producing a "global anchor"—a preliminary representation of the video's emotional content.
  4. Relation-Attention: It refines these weights by comparing each frame's features against the global anchor. Frames that align closely with the overall video context receive higher weights, effectively filtering out outliers or ambiguous frames that might have misled the self-attention step.

The final video-level feature vector is a weighted sum of the frame features, which is then classified using a SoftMax layer.

Experimental Results

The model was evaluated on two benchmark datasets: the lab-controlled CK+ (Extended Cohn-Kanade) and the more challenging AFEW 8.0 (Acted Facial Expressions in the Wild).

On the CK+ dataset, FAN achieved a state-of-the-art accuracy of 99.69%, outperforming previous temporal models like DTAGN. In the "wild" conditions of AFEW 8.0, the model reached 51.18% accuracy, which is highly competitive with complex ensemble methods.

A crucial finding from the ablation studies is the impact of the Relation-Attention module. As shown in the performance metrics, removing this module leads to a noticeable drop in accuracy (from 99.69% to 99.08% on CK+), confirming that the context-aware refinement step is essential for capturing the most relevant emotional cues.

Discussion and Conclusion

The success of FAN lies in its "global anchor" strategy, which allows the model to judge a frame's importance within the context of the entire sequence rather than in isolation. This approach effectively replaces the need for manual peak-frame selection.

However, limitations remain. The current model is purely visual and does not incorporate audio cues, which are vital in real-world scenarios. Furthermore, while the attention mechanism weights frames, it does not explicitly model the chronological transitions of expressions. Future work could involve integrating FAN with temporal modeling architectures like Transformers or LSTMs to better capture micro-expressions and the dynamics of emotional shifts.

Summary updated

BibTeX
@inproceedings{meng2019frame,
  author = {Debin Meng and Xiaojiang Peng and Kai Wang and Yu Qiao},
  title = {{Frame Attention Networks for Facial Expression Recognition in Videos}},
  booktitle = {ICIP},
  year = {2019},
  url = {https://openreview.net/forum?id=2sA-9R8855},
}
Figure