MICACL: Multi-Instance Category-Aware Contrastive Learning for Long-Tailed Dynamic Facial Expression Recognition

Feng-Qi Cui, Zhen Lin, Xinlong Rao, Anyang Tong, Shiyao Li, Fei Wang, Changlin Chen, Bin LiuarXiv 2025 · DOI

Abstract

Dynamic Facial Expression Recognition (DFER) in unconstrained environments is hindered by two primary issues: the inherent long-tailed distribution of emotional categories and the difficulty of modeling temporal evolution in noisy video sequences. We present MICACL, a framework that leverages multi-instance learning and category-aware contrastive loss to address these hurdles. By employing graph-based instance interaction and a dynamic weighting mechanism, MICACL effectively filters noise and emphasizes salient emotional features. Our approach significantly boosts performance on rare "tail" categories, achieving state-of-the-art results on the DFEW and FERV39k benchmarks.

The Challenge of "In-the-Wild" Recognition

While facial expression recognition is well-understood in controlled laboratory settings, "in-the-wild" data—such as movie clips or social media videos—presents a much harsher environment. Two major obstacles prevent standard models from achieving high accuracy:

  1. Long-Tailed Distributions: Real-world datasets are naturally imbalanced. Common expressions like "Neutral" or "Happy" dominate the training data (the "head"), while rarer emotions like "Disgust" or "Fear" (the "tail") are often neglected, leading to biased models.
  2. Spatio-Temporal Complexity: A video is more than a stack of images. It contains "peak" expressions interspersed with neutral or blurry frames. Distinguishing these critical moments and understanding their temporal relationships is vital for accurate classification.
The long-tailed distribution of the DFEW dataset highlights the imbalance between "head" and "tail" classes.

The MICACL Framework

To overcome these challenges, MICACL introduces a three-pronged architecture designed for robust feature extraction and balanced optimization.

Overview of the MICACL architecture, featuring the Multi-instance Interactive learning Module, Graph-Enhanced Instance Interaction, and Category-Aware Contrastive Learning.

1. Graph-Enhanced Instance Interaction Module (GEIIM)

Rather than processing frames linearly, GEIIM treats video frames as nodes in a graph. An adaptive adjacency matrix allows the model to learn relationships between frames regardless of their temporal distance. This is combined with multiscale convolutions to capture both instantaneous micro-expressions and long-term emotional shifts.

2. Weighted Instance Aggregation Network (WIAN)

Recognizing that not every frame in a video is equally informative, the WIAN utilizes a Dynamic Weight Gate (DWG). This gate evaluates the relevance of each frame, suppressing noise (e.g., motion blur or non-expressive frames) and highlighting salient "peak" instances. This ensures that the final "bag-level" feature accurately represents the intended emotion.

3. Multi-scale Category-Aware Contrastive Learning (MCACL)

The core of MICACL’s ability to handle long-tailed data lies in its optimization strategy. MCACL employs a category-aware contrastive loss that dynamically adjusts its "temperature" parameter ($\tau$) based on class frequency. By applying a lower temperature to rare classes, the model is forced to learn more discriminative features for the "tail," effectively pushing different emotion clusters further apart in the feature space.

Experimental Results

MICACL was rigorously tested on two major benchmarks: DFEW and FERV39k.

  • DFEW Dataset: MICACL achieved a Weighted Average Recall (WAR) of 69.56% and an Unweighted Average Recall (UAR) of 63.21%, outperforming previous state-of-the-art models.
  • FERV39k Dataset: On this massive dataset of nearly 39,000 clips, MICACL set a new benchmark with 48.57% WAR and 40.25% UAR.

A key highlight of these results is the improvement in rare categories. For instance, recognition of the "Disgust" category—which often sees 0% accuracy in standard models—rose to nearly 30% with MICACL.

Conclusion

MICACL demonstrates that addressing the long-tail problem and temporal noise is essential for real-world facial expression recognition. By combining graph-based interactions with category-aware optimization, the framework provides a more balanced and robust solution for understanding human emotions in complex, dynamic video data.

Summary updated

BibTeX
@misc{cui2025micacl,
  author = {Feng-Qi Cui and Zhen Lin and Xinlong Rao and Anyang Tong and Shiyao Li and Fei Wang and Changlin Chen and Bin Liu},
  title = {{MICACL: Multi-Instance Category-Aware Contrastive Learning for Long-Tailed Dynamic Facial Expression Recognition}},
  year = {2025},
  eprint = {2509.04344},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04344},
}
Figure