[Paper Review] Frame attention networks for facial expression recognition in videos
This paper proposes Frame Attention Networks (FAN), a deep learning framework that uses dual attention mechanisms—self-attention and relation-attention—to automatically identify and weigh discriminative facial frames in video sequences for improved facial expression recognition. The method achieves state-of-the-art performance on the CK+ dataset, outperforming prior CNN-based approaches by learning end-to-end frame importance without manual frame aggregation.
The video-based facial expression recognition aims to classify a given video into several basic emotions. How to integrate facial features of individual frames is crucial for this task. In this paper, we propose the Frame Attention Networks (FAN), to automatically highlight some discriminative frames in an end-to-end framework. The network takes a video with a variable number of face images as its input and produces a fixed-dimension representation. The whole network is composed of two modules. The feature embedding module is a deep Convolutional Neural Network (CNN) which embeds face images into feature vectors. The frame attention module learns multiple attention weights which are used to adaptively aggregate the feature vectors to form a single discriminative video representation. We conduct extensive experiments on CK+ and AFEW8.0 datasets. Our proposed FAN shows superior performance compared to other CNN based methods and achieves state-of-the-art performance on CK+.
Motivation & Objective
- Address the limitation of uniform frame aggregation in video-based facial expression recognition, where all frames are treated equally despite varying discriminative value.
- Improve video-level representation learning by modeling frame importance adaptively, rather than relying on fixed averaging or statistical pooling.
- Design an end-to-end trainable framework that jointly learns feature embedding and frame attention weights for better video-level classification.
- Demonstrate the effectiveness of attention mechanisms in capturing temporal dynamics and key facial expressions in videos.
- Achieve state-of-the-art performance on benchmark datasets using only visual features, without audio or complex post-processing.
Proposed method
- Use a deep Convolutional Neural Network (CNN) as the feature embedding module to extract fixed-dimensional feature vectors from each face frame in a video.
- Introduce a self-attention mechanism that computes attention weights directly from frame features to assess individual frame importance.
- Implement a relation-attention mechanism that computes attention weights based on the similarity between each frame and a global video-level anchor feature.
- Combine self-attention and relation-attention weights to produce final frame weights that are used to perform adaptive, weighted aggregation of frame features.
- Form a single, discriminative video-level representation by applying the learned attention weights to the frame feature vectors.
- Train the entire network end-to-end using cross-entropy loss for classification, enabling joint optimization of feature learning and attention weighting.
Experimental results
Research questions
- RQ1Can attention mechanisms effectively identify the most discriminative frames in facial expression videos without relying on handcrafted aggregation rules?
- RQ2How does the combination of self-attention and relation-attention improve video-level representation compared to using only one attention type?
- RQ3Does the proposed FAN framework outperform existing CNN-based methods that use fixed frame aggregation strategies on standard facial expression recognition benchmarks?
- RQ4To what extent is the performance of FAN robust to variations in backbone network architecture and hyperparameter settings such as the number of attention heads?
- RQ5Can the attention weights learned by FAN be meaningfully visualized to reflect human-annotated emotional intensity in facial sequences?
Key findings
- The proposed FAN achieves a test accuracy of 99.69% on the CK+ dataset, surpassing the baseline and state-of-the-art methods using only visual features.
- Adding relation-attention to the self-attention module improves performance by 2.36% over the baseline, demonstrating the value of modeling frame-to-video relationships.
- The FAN model with only self-attention achieves 99.39% accuracy on CK+, showing significant improvement over standard frame averaging or statistical pooling methods.
- Visualization confirms that the final attention weights (self-attention × relation-attention) assign higher weights to frames with clear, expressive facial features, aligning with human perception.
- The method is robust to hyperparameter changes: performance remains stable across different values of K (number of attention heads), with optimal performance at K=3.
- On the AFEW8.0 dataset, FAN achieves 51.18% accuracy, matching the best single-model performance among state-of-the-art methods, despite not using audio or complex fusion strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.