[Paper Review] Towards Semi-Supervised Deep Facial Expression Recognition with An Adaptive Confidence Margin
This paper proposes Ada-CM, a novel semi-supervised deep facial expression recognition method that adaptively learns a confidence margin to leverage all unlabeled data—both high- and low-confidence samples—by applying pseudo-labeling to high-confidence samples and a feature-level contrastive objective to low-confidence ones. The method achieves state-of-the-art performance, surpassing fully-supervised baselines on RAF-DB, SFEW, and AffectNet under low-label settings.
Only parts of unlabeled data are selected to train models for most semi-supervised learning methods, whose confidence scores are usually higher than the pre-defined threshold (i.e., the confidence margin). We argue that the recognition performance should be further improved by making full use of all unlabeled data. In this paper, we learn an Adaptive Confidence Margin (Ada-CM) to fully leverage all unlabeled data for semi-supervised deep facial expression recognition. All unlabeled samples are partitioned into two subsets by comparing their confidence scores with the adaptively learned confidence margin at each training epoch: (1) subset I including samples whose confidence scores are no lower than the margin; (2) subset II including samples whose confidence scores are lower than the margin. For samples in subset I, we constrain their predictions to match pseudo labels. Meanwhile, samples in subset II participate in the feature-level contrastive objective to learn effective facial expression features. We extensively evaluate Ada-CM on four challenging datasets, showing that our method achieves state-of-the-art performance, especially surpassing fully-supervised baselines in a semi-supervised manner. Ablation study further proves the effectiveness of our method. The source code is available at https://github.com/hangyu94/Ada-CM.
Motivation & Objective
- To address the inefficiency of fixed-threshold pseudo-labeling in semi-supervised facial expression recognition, which underutilizes low-confidence unlabeled samples.
- To improve model generalization by fully leveraging all unlabeled data, including those with low confidence scores that are typically discarded.
- To develop an adaptive confidence margin that evolves during training to reflect the varying difficulty of facial expression categories.
- To enhance feature learning for intra-class variations by introducing a contrastive objective on low-confidence samples.
- To surpass fully-supervised baselines in low-data regimes through improved data utilization in semi-supervised learning.
Proposed method
- An adaptive confidence margin is learned dynamically during training based on the model's prediction confidence across different facial expression categories.
- All unlabeled samples are partitioned into two subsets: those with confidence scores ≥ the adaptive margin (subset I) and those below (subset II).
- For subset I, cross-entropy loss is applied between model predictions and pseudo-labels generated from strongly-augmented views.
- For subset II, a feature-level contrastive objective using InfoNCE loss is applied to improve feature discriminability and intra-class compactness.
- The confidence margin is updated iteratively over training epochs to reflect the learning difficulty of different expression classes.
- The method is end-to-end trainable and integrates pseudo-labeling and contrastive learning in a unified framework.
Experimental results
Research questions
- RQ1Can an adaptive confidence margin improve the utilization of unlabeled data in semi-supervised facial expression recognition compared to fixed-threshold methods?
- RQ2How does incorporating low-confidence unlabeled samples through a contrastive objective affect feature learning and model performance?
- RQ3Can Ada-CM outperform fully-supervised baselines when only a small fraction of labeled data is available?
- RQ4Does the adaptive margin mechanism lead to better generalization across different expression categories with varying recognition difficulty?
- RQ5How does the method perform under cross-dataset evaluation, particularly when labeled data is scarce?
Key findings
- Ada-CM surpasses fully-supervised baselines by 0.29% on RAF-DB, 1.38% on SFEW, and 4.45% on AffectNet under low-label settings (1/3, 1/2, and 1/28 labeled data ratios).
- With 4,000 labeled samples, Ada-CM achieves 79.34% accuracy on RAF-DB using WideResNet-28-2, outperforming MarginMix by 13.28 percentage points.
- On the cross-dataset CK+ benchmark using ResNet-18, Ada-CM achieves 85.32% accuracy with 4,000 labeled samples, exceeding the fully-supervised baseline by 3.6%.
- The ablation study confirms that both the adaptive margin and the contrastive objective on low-confidence samples are essential for performance gains.
- t-SNE visualization shows that Ada-CM learns more discriminative features, with clearer inter-class boundaries and tighter intra-class clusters, especially for challenging classes like sadness.
- The method generalizes well across datasets, achieving superior performance even with a lightweight ResNet-18 backbone compared to heavier models used in prior work.
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.