MultimodalTransformerNet

A face can be read two ways: what it looks like, and what it sounds like. Using both settles the hard cases.

Two streams (a CNN–Transformer that reads the face, a deep network that reads the voice) meet in a cross-modal attention layer that lets each modality weigh the other before deciding.

Stage 1 · The problem

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.

face: 71% sad?+voice: low, flat→Sad99%
Stage 2 · Two inputs

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.

Visual · RAF-DB

100 × 100 × 3 image

Acoustic · RAVDESS

~3 s speech clip

Both datasets are released to researchers on request and aren't hosted here; the face and waveform are illustrations.

Stage 3 · Visual stream

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.

face100²·3
CNNconv
splitpatches
Transf.8 heads
visualvector

CNN (local detail) → patches + Transformer (global context) → visual vector

Stage 4 · Acoustic stream

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.

waveform
39-D · MFCC·spectral·chroma
256
128
vector

13 MFCC · spectral · chroma = 39-D → dense layers → acoustic vector

Stage 5 · Fusion

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.

Visual streamCNN–TransformerAcoustic stream39-D → deep MLPCross-modal attentionface → voiceQ:face K,V:voicevoice → faceQ:voice K,V:faceattended features combinedDense+ dropoutsoftmaxemotionsEach stream can lean on the other: the weak modality is rescued by the strong one.
Stage 6 · See it decide

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.)

happy0.2%
angry0.1%
surprise0.2%
fearful0.3%
disgust0.1%
sad99%

Predicted: sad · 99% confident

Image-only would be 71% · audio-only 86% → both 99% (+13.0 pts)