wavlm-bert-base-s-emotion-v1-crosslingual

wavlm-bert-base-s-emotion-v1-crosslingual

Speech emotion recognition over seven classes — anger, disgust, enthusiasm, fear, happiness, neutral, sadness.

Same architecture as Aniemore/wavlm-bert-base-s-emotion-russian-resd, retrained on a mix of 27,939 clips spanning eight languages and three speaking registers instead of one acted Russian corpus. The point of the change is spontaneous speech: the previous release was trained only on acted dialogue, where every class is equally frequent and every utterance is performed, and real speech is neither.

Quantized builds ship in the same repository under int8/, fp8/ and int4/.

Results

test set what it is macro-F1 UA WA previous release
RESD test acted Russian, 7 balanced classes 0.5300 0.5846 0.5857 0.7368
Dusha podcast test spontaneous Russian, majority neutral 0.4502 0.6627 0.8235 0.0927
CAMEO test 7 non-Russian languages 0.5063 0.5111 0.6173 0.2090
Panel results

Read the first two rows together. The acted score goes down and the spontaneous score goes up; both follow from the same change, and which one matters is a deployment question. If your audio is read or performed speech, the previous release may still suit you better.

About the CAMEO row

CAMEO ships no train/test partition, and the usual way to make one — a random split over clips — puts nearly every test speaker into training as well: three of its twelve constituent corpora contain a single speaker each, so no clip-level split of them can be speaker-disjoint even in principle. The number above is reported for completeness. Treat it as an in-domain figure, not as evidence of cross-lingual transfer.

Per class, across the panel — recall and F1 for every class on every test set Per-class recall and F1

Each card leads with the macro-F1 for that set; the rows are the detail behind it. Both per-class numbers are shown because they disagree in a way that matters: recall rewards a class the model over-predicts, so on the spontaneous set the minority classes reach decent recall at poor F1 — most clips called sad there are not sad. If you are going to act on one class, read its F1.

Each set keeps its own class list: the spontaneous corpus has four classes and the other two have seven, and there is no correspondence between positive and any single one of happiness/enthusiasm to line them up with.

Per-class recall on spontaneous speech

class this model previous release
angry 0.5090 0.5749
neutral 0.8383 0.0506
positive 0.6334 0.3877
sad 0.6699 0.1262

neutral carries most of real speech and is the class the previous release missed.

Quantized variants

subfolder scheme weights vs fp32 macro-F1 UA WA
(root) fp32 1887 MiB 1.0x 0.5300 0.5846 0.5857
int8 W8A16 792 MiB 2.4x smaller 0.5296 0.5840 0.5857
fp8 W8A16-float 781 MiB 2.4x smaller 0.5299 0.5840 0.5857
int4 W4A16_ASYM 609 MiB 3.1x smaller 0.5229 0.5801 0.5821
Quality after quantization Weights on disk

Weight-only, round-to-nearest, no calibration. Every variant lands within the seed spread of the fp32 parent on RESD test, so the choice is about download size rather than about quality.

Training data

corpus clips language register
RESD 948 Russian acted dialogue
Dusha crowd 6,800 Russian acted, crowd-sourced
CAMEO 6,800 7 languages 12 corpora, no Russian
Dusha podcast 6,060 Russian spontaneous podcast speech
IEMOCAP 4,735 English elicited dyadic sessions
ASVP-ESD 2,596 multilingual mixed register
total 27,939 8 languages 3 registers

A slice is held out of every corpus in the mix, in the same proportion, and model selection is on that held-out split — never on any of the test sets above. Labels are unified to seven classes; four-class corpora are mapped upward and scored on the classes they actually contain.

Usage

import torch, librosa
from transformers import AutoModelForAudioClassification, AutoFeatureExtractor

repo = "Aniemore/wavlm-bert-base-s-emotion-v1-crosslingual"
model = AutoModelForAudioClassification.from_pretrained(repo).eval()
fe = AutoFeatureExtractor.from_pretrained(repo)

# Resample to 16 kHz. Do not skip it: RESD itself ships at 44.1 kHz,
# and handing the model 44.1 kHz audio while telling the extractor it
# is 16 kHz stretches time 2.8x and silently changes the answer.
wav, _ = librosa.load("clip.wav", sr=16000, mono=True)
x = fe(wav, sampling_rate=16000, return_tensors="pt", padding=True)
with torch.no_grad():
    probs = model(**x).logits.softmax(-1)[0]
print({model.config.id2label[i]: round(p.item(), 3) for i, p in enumerate(probs)})

For a quantized build, name the subfolder — only that subfolder is downloaded:

model = AutoModelForAudioClassification.from_pretrained(
    repo, subfolder="int8").eval()          # or "fp8", "int4"
fe = AutoFeatureExtractor.from_pretrained(repo, subfolder="int8")

Limitations

  • Scores are the mean of two seeds; the seed spread on the 280-clip RESD split is ±0.03–0.05, so differences smaller than that are not differences.
  • The spontaneous set has four classes where the model has seven, so its numbers are computed over a mapped label space and are not comparable to seven-class figures.
  • Spontaneous scores are at zero decision bias. Calibrating the neutral threshold on your own development split will move them.
  • This is a bimodal checkpoint: it takes a transcript alongside the audio. The transcripts used in training and evaluation are corpus-provided and clean, which ASR output is not.
  • Inherited from microsoft/wavlm-large + bert-base-multilingual-cased; the licence follows the base model.
Downloads last month
24
Safetensors
Model size
0.5B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Aniemore/wavlm-bert-base-s-emotion-v1-crosslingual

Datasets used to train Aniemore/wavlm-bert-base-s-emotion-v1-crosslingual

Collection including Aniemore/wavlm-bert-base-s-emotion-v1-crosslingual

Evaluation results