- Emotion recognition
- Image + audio
- Cross-modal attention
- RAF-DB + RAVDESS
MultimodalTransformerNet
A face can be read two ways: what it looks like, and what it sounds like. Using both settles the hard cases.
- 99.7%Accuracy on balanced RAF-DB + RAVDESS
- 0.9996AUC: near-perfect separation
- +14.7 ptsOver the best single-modality model
One modality isn't always enough
A single frame can be ambiguous. A downturned mouth might be sadness, or concentration, or fatigue. Vision-only models feel this most on subtle emotions: in this setting a visual-only method reaches only 71% on sadness. The voice carries what the face hides, and the reverse. This model uses both.
A face and a voice, paired
Each example is a face image drawn from RAF-DB and a short speech clip from RAVDESS, labelled with the same emotion. The datasets are balanced so no emotion dominates training.
100 × 100 × 3 image
~3 s speech clip
Both datasets are released to researchers on request and aren't hosted here; the face and waveform are illustrations.
The face → a CNN–Transformer hybrid
The image passes through convolution blocks that read local detail, then the feature map is cut into patches and run through Transformer blocks that relate parts of the face to each other, the same hybrid design as GlobalFaceNet. The stream ends as one compact visual feature vector.
CNN (local detail) → patches + Transformer (global context) → visual vector
The voice → 39 numbers → a deep network
The waveform is summarised as a 39-dimensional feature vector: 13 MFCCs (the timbre of the voice), plus spectral and chroma descriptors (brightness and pitch content). A deep fully-connected network turns those into an acoustic feature vector that matches the visual one in size.
13 MFCC · spectral · chroma = 39-D → dense layers → acoustic vector
Cross-modal attention: each stream weighs the other
Rather than simply gluing the two vectors together, a cross-modal attention layer lets each modality query the other: the visual features ask "which parts of the voice matter here?", and the voice asks the same of the face. When one modality is uncertain, it leans on the other. The attended features are combined and passed to the classifier.
Image only · audio only · both
Pick an emotion, then switch the inputs on and off. Watch what happens to the model's confidence when the second modality joins. The jump is largest exactly where a single modality struggles, like sadness. (Illustrative outputs that follow the paper's reported pattern, not live inference.)