Introduction and Problem Definition
Facial expression spotting (FES) is the task of automatically locating the specific frames in a video sequence where an expression begins (onset) and ends (offset). This task is critical for understanding human emotion in naturalistic settings but faces significant hurdles due to the varying nature of expressions.
Expressions are generally categorized into two types:
- Macro-expressions (MaEs): High-intensity, voluntary movements lasting between 0.5 and 4 seconds.
- Micro-expressions (MEs): Involuntary, subtle, and fleeting movements lasting less than 0.5 seconds.
Spotting micro-expressions is particularly challenging because their muscle movements are often indistinguishable from sensor noise or neutral states. Furthermore, irrelevant global motions like head tilts, blinking, or talking can easily obscure these minute signals. Traditional methods often fail to capture the complex temporal evolution of these expressions or lack the spatial sensitivity required for facial geometry.
Methodology: The SpotFormer Framework
To address these challenges, the authors introduce SpotFormer, a framework that combines specialized feature extraction with a graph-based Transformer architecture.
SW-MRO Feature Extraction
Standard optical flow between adjacent frames often misses the subtle buildup of a micro-expression. SpotFormer utilizes Sliding Window-based Multi-Resolution Optical Flow (SW-MRO). By calculating motion within a compact sliding window—comparing the initial frame to all subsequent frames in that window—the method effectively "magnifies" subtle movements while filtering out larger, irrelevant global motions.
SpotFormer Architecture
The core of the model is a Transformer that treats the face as a graph of landmarks.
- Facial Local Graph Pooling (FLGP): Unlike standard image pooling, FLGP aggregates features based on facial anatomy. It groups landmarks into functional units (e.g., lips, eyebrows), allowing the model to learn multi-scale spatial relationships that respect the face's physical structure.
- Spatio-Temporal Attention: The architecture employs spatial graph attention to model how different facial regions move in concert, paired with temporal node attention to track these movements across the video sequence.
Supervised Contrastive Learning
To improve precision at expression boundaries, the authors employ a supervised contrastive loss. This training strategy encourages the model to cluster similar expression types (MaE, ME, Neutral) together in the feature space while maximizing the distance between different types, helping the model better distinguish a subtle expression from a truly neutral face.
Experimental Results
SpotFormer was evaluated on three major benchmarks: SAMM-LV, CAS(ME)², and the large-scale CAS(ME)³.
The framework achieved state-of-the-art (SOTA) performance across all datasets. Notably, on the SAMM-LV dataset, SpotFormer delivered a 49.4% improvement in the F1-score for micro-expression spotting compared to previous models. Overall F1-scores reached 0.4401 on SAMM-LV and 0.4841 on CAS(ME)², marking a significant advancement over both traditional and deep-learning-based predecessors.
Ablation studies confirmed the importance of each component: removing either the SW-MRO features or the FLGP module resulted in a measurable decline in spotting accuracy.
Key Insights and Future Directions
The research highlights several critical factors for successful FES:
- Temporal Resolution: A window of approximately 17 frames (~0.5 seconds) was found to be the "Goldilocks" duration—long enough to encompass a full micro-expression without introducing noise from unrelated movements.
- Anatomy-Awareness: Incorporating facial geometry through graph pooling is superior to generic CNN-based spatial feature extraction.
- Boundary Precision: Contrastive learning is highly effective at resolving the "hard" cases at the temporal boundaries of an expression.
While SpotFormer sets a new benchmark, limitations remain. The model's performance is sensitive to lighting conditions due to its reliance on optical flow, and it still faces challenges with extreme data imbalance in smaller datasets. Future work will focus on developing a fully end-to-end "spot-then-recognize" pipeline that integrates landmark detection and feature extraction directly into the learning process.
Summary updated