Abstract
Deep Facial Expression Recognition (FER) often relies on large-scale labeled datasets, which are costly and time-consuming to produce. Semi-supervised learning (SSL) offers a solution by leveraging unlabeled data; however, standard SSL methods using fixed confidence thresholds often discard valuable data and introduce class bias. This paper presents Ada-CM (Adaptive Confidence Margin), a novel framework that employs class-specific, evolving thresholds to maximize unlabeled data utilization. By partitioning data into high-confidence samples for pseudo-labeling and low-confidence samples for contrastive learning, Ada-CM achieves state-of-the-art performance across multiple FER benchmarks.
Introduction
Facial Expression Recognition (FER) is a critical task in computer vision with applications ranging from human-computer interaction to mental health monitoring. While deep learning has significantly advanced FER, the requirement for extensive expert-labeled data remains a bottleneck. Semi-supervised learning (SSL) methods, such as FixMatch, attempt to bridge this gap by using a fixed confidence threshold (e.g., 0.95) to decide which unlabeled images receive "pseudo-labels" for training.
However, the authors identify two primary limitations of fixed-threshold SSL in the context of FER:
- The Fairness Gap: Expressions vary in complexity. A model may easily achieve high confidence on "Happy" faces but struggle with "Disgust" or "Fear," leading to the exclusion of harder classes from training.
- Data Waste: Samples falling below the threshold are typically ignored, despite containing subtle features essential for robust representation learning.
Proposed Method: Ada-CM
The Adaptive Confidence Margin (Ada-CM) framework addresses these issues through two integrated components:
Adaptive Confidence Margin Construction
Rather than a static threshold, Ada-CM learns a dynamic margin for each class. This margin is calculated based on the model's confidence in correctly predicted labeled samples for that specific category. Furthermore, the margin evolves over time, starting low to allow early learning from "easy" samples and increasing as the model matures, following a curriculum learning strategy.
Dual-Path Learning (Full Data Utilization)
Ada-CM utilizes the entire unlabeled dataset by splitting it based on the adaptive margin:
- High-Confidence Path: Samples exceeding the margin receive pseudo-labels. The model is trained using Entropy Minimization on strongly-augmented versions of these images to ensure predictions match the pseudo-labels.
- Low-Confidence Path: Samples below the margin are not discarded. Instead, they undergo Feature-Level Contrastive Learning using the InfoNCE loss. This ensures that different augmentations of the same ambiguous image are mapped closely in the feature space, improving the model's underlying representations without needing explicit labels.
Experimental Results
The framework was evaluated on four major benchmarks: RAF-DB, SFEW, AffectNet, and CK+.
- Performance: Ada-CM consistently outperformed existing SSL methods like FlexMatch and UDA. Notably, on the RAF-DB dataset, Ada-CM achieved 84.42% accuracy using only 4,000 labels, surpassing the fully-supervised baseline of 84.13% which used the complete dataset.
- Generalization: Cross-dataset testing on the lab-controlled CK+ dataset demonstrated that Ada-CM learns more universal facial features, showing superior robustness compared to competitors.
- Ablation Studies: Results confirmed that the synergy between the adaptive margin and contrastive learning is vital; the combination prevents the model from ignoring difficult parts of the data distribution while maintaining high pseudo-label quality.
Conclusion
Ada-CM effectively tackles the challenges of class imbalance and data underutilization in semi-supervised FER. By replacing fixed thresholds with adaptive, class-specific margins and incorporating contrastive learning for low-confidence samples, the framework achieves state-of-the-art results and demonstrates remarkable efficiency in low-label regimes. Future work will focus on refining the margin to better handle the inherent label noise in facial expression datasets.
Summary updated