Skip to main content
Back

USTC Builds Emotion AI That Reads Feelings Without Seeing Your Face

A USTC team's dual-branch Transformer tackles missing faces, skewed emotion data, and noisy video for the ABAW 2026 challenge at CVPR

Pro

Paper, Full Access
  • USTC and Unisound AI propose a dual-branch Transformer for emotion recognition that gracefully falls back to audio when faces are occluded.
  • The "safe cross-attention" mechanism automatically zeroes out visual attention outputs when no face is detected, relying purely on audio features.
  • Modality dropout during training (p=0.10) boosts F1 from 0.4764 to 0.5029 by forcing the model to use audio as a backup signal.
  • BEiT-Large significantly outperforms ResNet50, EfficientNetV2-M, and MAE-ViT-Base as a visual backbone on the Aff-Wild2 dataset.
  • Focal loss and sliding-window soft voting address the dataset's extreme class imbalance, where the top two emotion classes account for nearly 80% of all frames.
  • Final results: 60.79% accuracy and 0.5029 F1 on Aff-Wild2 validation; paper on arXiv, no public code release yet.

Teaching a machine to read emotions from video sounds straightforward until you try it in the real world. Faces get blocked, people walk off camera, and most footage is dominated by just two emotional states: neutral and "other." A team from the University of Science and Technology of China and Unisound AI Technology tackled exactly these problems for the 10th ABAW Expression Recognition Challenge at CVPR 2026, proposing a multimodal framework that keeps working even when the camera can't see the subject's face.

The competition that pushes emotion AI to its limits

The 10th Affective and Behavior Analysis in-the-Wild (ABAW) Workshop and Competition at CVPR 2026 is a premier forum for showcasing the latest advances in multimodal analysis, modelling and understanding of human affect and behavior in real-world, unconstrained environments. The competition is split into six challenges, including Valence-Arousal Estimation, Expression Recognition, Action Unit Detection, Fine-grained Violence Detection, Emotional Mimicry Intensity Estimation, and Ambivalence/Hesitancy Video Recognition.

The Expression (EXPR) track is particularly brutal. The challenge uses the Aff-Wild2 dataset, which features a diverse range of subjects across different ages, genders, and ethnicities, recorded under varying lighting conditions, backgrounds, and head poses to reflect natural interaction scenarios. It contains 548 videos with approximately 2.7 million frames. Participants must classify each frame into one of eight categories: six basic emotions, neutral, and an "other" bucket for everything else.

The core difficulty is the dataset's extreme class imbalance. The top two classes account for 79.7% of all instances and the top three for 90.6%. That means rare emotions like fear, disgust, and surprise are massively underrepresented, and a model that just predicts "neutral" or "other" most of the time will still score reasonably well on accuracy while being useless in practice.

Three problems, one framework

The paper identifies three distinct failure modes that any competitive system must address:

  • Missing modalities: Subjects frequently leave the camera frame or get occluded, leaving the model with no visual signal at all.
  • Class imbalance: Standard cross-entropy loss is easily dominated by the majority classes, causing the model to ignore rare emotions.
  • Temporal jitter: Frame-level predictions flip rapidly between adjacent frames, producing unstable outputs that don't reflect how emotions actually evolve over time.

The proposed solution is a five-component end-to-end framework built around a dual-branch Transformer. The framework consists of a two-stage feature extraction and pre-training pipeline, a multimodal attention network with cross-attention and dynamic gating, a modality dropout and safe attention mechanism, a focal loss-based optimization objective, and an inference strategy with overlapping sliding windows and post-processing.

How it works, step by step

Feature extraction. For visual features, the team uses the BEiT-Large architecture as the backbone. They first construct a large-scale mixed static dataset from Raf-DB, FERPlus, and AffectNet, keeping only high-quality manual annotations, then apply domain-adaptive fine-tuning on Aff-Wild2 video frames. BEiT (Bidirectional Encoder representation from Image Transformers) is pre-trained by predicting discrete visual tokens rather than reconstructing raw pixels, which pushes it toward higher-level semantic understanding of faces. For the audio modality, the team separates the audio stream from the video and processes it using WavLM-Large, a model pre-trained on a large speech corpus, to capture acoustic prosody and subtle emotional fluctuations.

Architecture diagram of the multimodal emotion recognition framework showing BEiT-Large and WavLM-Large feature extraction, unified embedding space, and transformer-based fusion

Cross-attention fusion. The two feature streams are projected into a shared embedding space with sinusoidal positional encodings to preserve temporal order. Transformer encoders process these features to produce intra-modal contextual representations, then cross-attention branches run in both directions: visual attending to audio, and audio attending to visual. A learnable gating mechanism then decides how much weight to give the cross-modal signal versus the original unimodal representation for each branch independently.

Safe attention for missing faces. This is the most novel architectural piece. During training, a modality dropout strategy randomly masks the visual input within a batch with probability p, setting the visual window of selected samples to zero. This simulates real-world visual signal loss and prevents over-reliance on a single modality. At inference time, if the model detects a completely empty visual window, it temporarily unmasks one token to let the attention mechanism complete its forward pass, then manually zeroes out the attention output. Combined with the residual connection, the layer automatically simplifies so the model fully retains the pure audio features, allowing it to maintain classification performance even without visual cues.

Temporal smoothing. The inference strategy for long videos relies on soft voting and temporal smoothing over overlapping sliding windows with a window size of 64 and a stride of 8. Rather than applying hard label voting, the model averages the predicted logits across all windows covering a given frame, then applies median filtering with a kernel size of 11 to reduce transient classification jitter.

What the ablations reveal

The backbone comparison alone is instructive. BEiT-Large significantly outperformed the alternatives:

Visual BackboneAccuracyF1-Score
ResNet500.45310.3345
EfficientNetV2-M0.49210.3932
MAE-ViT-Base0.49240.3686
BEiT-Large0.54210.4268

The modality dropout ablation is equally revealing. For a network with hidden dimension 256 and 3 self-attention layers, introducing a dropout probability of 0.10 increases the F1-score from 0.4764 to 0.5029 and pushes accuracy above 0.60. However, increasing the dropout probability to 0.15 or 0.20 degrades performance due to excessive loss of primary visual information. The sweet spot is narrow: too little dropout and the model never learns to fall back on audio; too much and you destroy the dominant signal.

The team also found that increasing network depth or width under the no-dropout setting yields only marginal gains, and increasing both simultaneously causes the F1-score to drop. These trends suggest that highly parameterized models are prone to overfitting on noisy, limited-scale datasets like Aff-Wild2. A medium-capacity network with 256 hidden dimensions and 3 layers hits the best generalization.

Results and real-world relevance

The final model achieves 60.79% accuracy and an F1-score of 0.5029 on the Aff-Wild2 validation set. For context, the winning team in the EXPR track of ABAW 2026 achieved a macro-averaged F1 score of 0.5368 on the validation set, ranking first in the EXPR track. This paper's system is competitive but not the top performer.

Where this work genuinely advances the field is in its graceful degradation story. While vision is the dominant modality, audio offers essential supplementary cues. In unconstrained environments, tone and pitch can compensate for missing visual information caused by head turns or occlusions. The safe cross-attention mechanism formalizes this fallback in a way that doesn't require any special-casing at inference time -- the architecture handles it automatically.

The practical use-cases are clear:

  • Mental health monitoring: Video therapy sessions where patients may turn away or cover their faces.
  • Customer experience analytics: Retail or call-center footage with frequent occlusions and camera exits.
  • Social robotics: Robots that need to read emotion even when they can only partially see a person.
  • Driver monitoring: In-cabin systems where the face is regularly obscured by hands, sunglasses, or head turns.

No code or pretrained models have been released publicly alongside this paper. The paper is available on arXiv, and accepted solutions will appear in the CVPR 2026 proceedings. The framework's design is modular enough that the safe cross-attention block could be transplanted into other multimodal pipelines facing the same missing-modality problem -- which, in real-world video, is essentially every deployment scenario.