D2SP: Dynamic Dual-Stage Purification Framework for Dual Noise Mitigation in Vision-based Affective Recognition

Haoran Wang, Xinji Mai, Zeng Tao, Xuan Tong, Junxiong Lin, Yan Wang, Jiawen Yu, Boyang Wang, Shaoqi Yan, Qing Zhao, Ziheng Zhou, Shuyong Gao, Wenqiang Zhang

TL;DR

Dynamic Facial Expression Recognition (DFER) models often struggle when trained on "in-the-wild" datasets plagued by low-quality video frames and human annotation errors. This paper introduces D2SP (implemented via the SCIU framework), a plug-and-play, two-stage data purification method that automatically prunes unusable low-quality samples and corrects mislabeled data by tracking prediction stability across training epochs.

What Problem Does This Paper Address?

Deep learning models for recognizing facial expressions in video have shifted from controlled lab environments to complex, "in-the-wild" datasets. While more realistic, these datasets suffer from a major bottleneck: dual noise.

  1. Low-Quality Data (Usability Uncertainty): Issues like severe facial occlusion, dim lighting, and motion blur make certain video frames completely uninformative.
  2. Wrong Annotations (Label Reliability Uncertainty): Human annotators are prone to subjective errors. This includes confirmation bias (subconsciously labeling consecutive ambiguous faces with the same emotion) and mislabeling low-intensity emotional expressions as "Neutral."
Figure 1: Illustration of a selection of noisy samples from the FERV39k and DFEW datasets, representing the two principal types of uncertain samples: low quality and wrong annotation. The low quality of samples introduce uncertainty regarding their usability and the wrong annotation of samples introduce uncertainty about the accuracy of their labels. Low-quality samples are attributable to factors such as occlusion, dim lighting, blurriness, etc. Wrong-annotation samples result from reasons such as: (1) the confirmation bias of annotators leading to misclassificaiton; (2) low-intensity of emotion, which are often incorrectly labeled as Neutral.

Existing uncertainty-learning methods typically target static images and fail to handle the temporal complexities or the dual nature of noise in video-based recognition.

Methods

The authors propose a framework called SCIU (Seeking Certain data In extensive Uncertain data) to execute their Dynamic Dual-Stage Purification (D2SP) strategy. It acts as a plug-and-play wrapper around existing DFER architectures.

Figure 2: This figure illustrates an overview of our proposed Seeking Certainty in Uncertainty (SCIU) framework. Figure 2(a) outlines the overview of SCIU , comprising two primary stages: Coarse-Grain Pruning (CGP) and Fine-Grain Correction (FGC). The objective of Coarse-Grain Pruning (CGP) is to eliminate the first type of uncertainty by pruning the low-quality and unusable data , resulting in a coarse-grained certain dataset. This subset is then processed in the FGC stage, where the wrong-annotated samples are corrected. Finally, we obtain fine-grained-certain data which are subsequently utilized for model training. Figure 2(b) illustrates that CGP calculates the weight of each sample and prunes those with low weights. Figure 2(c) demonstrates that FGC corrects samples that are stably mispredicted across epochs, thus ensuring correctly annotated samples are used for training.

Stage 1: Coarse-Grained Pruning (CGP)

This stage targets low-quality data. The framework adds a simple, two-layer Multilayer Perceptron (MLP) branch parallel to the main classification layer to compute a weight for each sample. High-quality samples receive higher weights, while low-quality, ambiguous samples receive lower weights. If a sample's moving average score falls below a threshold ($\lambda$), it is dynamically pruned from the training set. A Weighted Cross-Entropy Loss (LWCE) ensures the network learns these weights autonomously via gradient feedback.

Stage 2: Fine-Grained Correction (FGC)

Once the unlearnable data is pruned, the remaining data is passed to the FGC stage to fix mislabeling. The framework monitors the model's predictions over a window of $t$ epochs across two dimensions:

  • Predicted Label Stability: Checks if the model consistently predicts the same alternative label over consecutive epochs.
  • Prediction Score Stability: Measures the confidence margin ($\Delta p$) between the average probability of the model's predicted label and the original ground-truth label.

If the model is both stable and highly confident in its disagreement with the original human label, the sample is automatically relabeled.

Datasets

The framework was validated on three major in-the-wild DFER benchmarks:

  • FERV39k: The largest multi-scene DFER dataset, containing 38,935 video clips across 22 distinct scenes.
  • DFEW: A widely used dataset containing 16,372 video clips extracted from over 1,500 movies.
  • MAFW: A large-scale multi-modal database consisting of 10,045 video-audio clips of compound emotions.

Key Insights and Ideas

  • The Necessity of a Two-Stage Pipeline: Pruning everything discards valuable data that is simply mislabeled. Conversely, attempting to correct labels immediately fails because low-quality data corrupts the model's prediction confidence. CGP must clean the dataset before FGC can accurately correct it.
  • Prediction Stability as a Proxy for Truth: The core philosophy behind FGC is that if a model consistently and confidently contradicts a human label over multiple training iterations, it is highly probable that the human annotator suffered from confirmation bias or missed a low-intensity emotion.
  • Universal Compatibility: Because the weight-estimation and stability-tracking mechanisms sit alongside the feature embeddings, SCIU can be integrated into virtually any 3D-CNN or Vision Transformer (ViT) backbone without altering its core architecture.

Key Results

The authors evaluated SCIU across six baseline architectures, including ResNet-LSTM, VGG-LSTM, Former-DFER, and ViT-LSTM.

  • FERV39k Performance: The framework achieved an average improvement of 3.97% in Weighted Average Recall (WAR) and 2.45% in Unweighted Average Recall (UAR). Notably, it boosted the performance of a standard ResNet50_LSTM by 7.82% WAR and 6.85% UAR.
  • DFEW & MAFW Performance: SCIU delivered consistent gains, improving average WAR by 1.67% on DFEW and 1.20% on MAFW.
  • Ablation Proof: Ablation studies confirmed that combining both stages yields significantly better results than applying CGP or FGC in isolation, validating the "dual noise" hypothesis.

Limitations and Future Work

  • Hyperparameter Sensitivity: The framework relies heavily on dataset-specific tuning for its thresholds ($\lambda$ for pruning, $\tau$ for correction) and the epoch window ($t$). For instance, FERV39k performed best at $\lambda=0.7, \tau=0.2, t=3$, whereas the cleaner DFEW dataset optimized at $\lambda=0.6, \tau=0.4, t=2$.
  • Focus on Vision: Although evaluated on the multi-modal MAFW dataset, the framework primarily operates on visual embeddings and does not explicitly leverage audio features to resolve annotation ambiguities. Future work could extend dual-stage purification to multi-modal alignment.

Summary updated

Abstract

The contemporary state-of-the-art of Dynamic Facial Expression Recognition (DFER) technology facilitates remarkable progress by deriving emotional mappings of facial expressions from video content, underpinned by training on voluminous datasets. Yet, the DFER datasets encompass a substantial volume of noise data. Noise arises from low-quality captures that defy logical labeling, and instances that suffer from mislabeling due to annotation bias, engendering two principal types of uncertainty: the uncertainty regarding data usability and the uncertainty concerning label reliability. Addressing the two types of uncertainty, we have meticulously crafted a two-stage framework aiming at \textbf{S}eeking \textbf{C}ertain data \textbf{I}n extensive \textbf{U}ncertain data (SCIU). This initiative aims to purge the DFER datasets of these uncertainties, thereby ensuring that only clean, verified data is employed in training processes. To mitigate the issue of low-quality samples, we introduce the Coarse-Grained Pruning (CGP) stage, which assesses sample weights and prunes those deemed unusable due to their low weight. For samples with incorrect annotations, the Fine-Grained Correction (FGC) stage evaluates prediction stability to rectify mislabeled data. Moreover, SCIU is conceived as a universally compatible, plug-and-play framework, tailored to integrate seamlessly with prevailing DFER methodologies. Rigorous experiments across prevalent DFER datasets and against numerous benchmark methods substantiates SCIU's capacity to markedly elevate performance metrics.
BibTeX
@inproceedings{wang2025d,
  author = {Haoran Wang and Xinji Mai and Zeng Tao and Xuan Tong and Junxiong Lin and Yan Wang and Jiawen Yu and Boyang Wang and Shaoqi Yan and Qing Zhao and Ziheng Zhou and Shuyong Gao and Wenqiang Zhang},
  title = {{D2SP: Dynamic Dual-Stage Purification Framework for Dual Noise Mitigation in Vision-based Affective Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01790},
}
Figure