[Paper Review] Short and Long Range Relation Based Spatio-Temporal Transformer for Micro-Expression Recognition
This paper proposes the first pure transformer-based architecture for micro-expression recognition, leveraging multi-head self-attention to jointly model short- and long-range spatial and temporal dependencies in optical flow features. It achieves state-of-the-art performance, becoming the first method to exceed 0.9 unweighted F1-score on all three major datasets: SMIC-HS, CASME II, and SAMM.
Being spontaneous, micro-expressions are useful in the inference of a person's true emotions even if an attempt is made to conceal them. Due to their short duration and low intensity, the recognition of micro-expressions is a difficult task in affective computing. The early work based on handcrafted spatio-temporal features which showed some promise, has recently been superseded by different deep learning approaches which now compete for the state of the art performance. Nevertheless, the problem of capturing both local and global spatio-temporal patterns remains challenging. To this end, herein we propose a novel spatio-temporal transformer architecture -- to the best of our knowledge, the first purely transformer based approach (i.e. void of any convolutional network use) for micro-expression recognition. The architecture comprises a spatial encoder which learns spatial patterns, a temporal aggregator for temporal dimension analysis, and a classification head. A comprehensive evaluation on three widely used spontaneous micro-expression data sets, namely SMIC-HS, CASME II and SAMM, shows that the proposed approach consistently outperforms the state of the art, and is the first framework in the published literature on micro-expression recognition to achieve the unweighted F1-score greater than 0.9 on any of the aforementioned data sets.
Motivation & Objective
- To address the challenge of recognizing micro-expressions, which are brief, low-intensity, and hard to detect due to their spontaneous and involuntary nature.
- To overcome the limitations of convolutional neural networks in capturing both local and global spatial-temporal relationships simultaneously in micro-expression videos.
- To develop a purely transformer-based architecture that replaces convolutional operations entirely, enabling end-to-end learning of short- and long-range spatio-temporal dependencies.
- To achieve state-of-the-art performance on benchmark micro-expression datasets, particularly in unweighted F1-score, which remains a key challenge in the field.
Proposed method
- The model uses a spatial encoder based on multi-head self-attention to learn spatial relationships from long-term optical flow frames, replacing convolutional layers.
- A temporal aggregator block is designed to model long-range temporal dependencies across video frames, using a learnable attention mechanism over sequence tokens.
- The architecture processes visualized long-term optical flow representations to preserve motion dynamics critical for micro-expression detection.
- The method employs a classification head on the [CLS] token output from the transformer encoder for end-to-end training and inference.
- The framework is trained using standard cross-entropy loss with early stopping and Adam optimization, and evaluated under both single-dataset and composite-dataset protocols.
- The model is evaluated under a Leave-One-Subject-Out cross-validation protocol to ensure robustness and generalization across subjects.
Experimental results
Research questions
- RQ1Can a pure transformer-based architecture outperform convolutional networks in micro-expression recognition by jointly modeling short- and long-range spatial and temporal dependencies?
- RQ2Does the use of multi-head self-attention on long-term optical flow features improve recognition performance compared to handcrafted or CNN-based features?
- RQ3Can the proposed method achieve an unweighted F1-score greater than 0.9 on any of the standard micro-expression datasets, setting a new state of the art?
- RQ4How does the model perform under both single-dataset and composite-dataset evaluation settings, especially when class distributions are imbalanced?
Key findings
- The proposed method achieves the first reported unweighted F1-score greater than 0.9 on all three benchmark datasets: SMIC-HS, CASME II, and SAMM.
- On CASME II, the model achieves the highest unweighted F1-score and second-highest unweighted accuracy among all methods evaluated.
- On the composite database, the model ranks first in unweighted F1-score and second in unweighted accuracy, demonstrating strong generalization across diverse data sources.
- The model outperforms the previous state of the art, including methods based on GCNs and hybrid CNN-transformer models, particularly in fine-grained classification of subtle micro-expressions.
- The confusion matrices reveal persistent challenges in distinguishing Disgust from Others in CASME II and Contempt from Happiness in SAMM, primarily due to inconsistent or ambiguous AU labeling in the datasets.
- The ablation study confirms that the multi-head self-attention mechanism is critical, as replacing the temporal aggregator with a simple mean operator leads to significant performance drops.
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.