CoolFace
Modelpublic

Aniemore/hubert-emotion-v1-crosslingual

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes20downloads
Model Card

<img src="assets/banner.svg" alt="hubert-emotion-v1-crosslingual" width="100%">

hubert-emotion-v1-crosslingual

Speech emotion recognition over seven classes &mdash; anger, disgust, enthusiasm, fear, happiness, neutral, sadness.

Same architecture as `Aniemore/hubert-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 setwhat it ismacro-F1UAWAprevious release
RESD testacted Russian, 7 balanced classes0.61670.61580.62140.7522
Dusha podcast testspontaneous Russian, majority neutral0.31470.58980.59420.1477
CAMEO test7 non-Russian languages0.52930.53630.63500.2404

<img src="assets/panel.svg" alt="Panel results" width="760">

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.

<details><summary>About the CAMEO row</summary>

CAMEO ships no train/test partition, and the usual way to make one &mdash; a random split over clips &mdash; 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.

</details>

<details> <summary><b>Per class, across the panel</b> &mdash; recall and F1 for every class on every test set</summary>

<img src="assets/classes.svg" alt="Per-class recall and F1" width="100%">

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 &mdash; 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.

</details>

Per-class recall on spontaneous speech

classthis modelprevious release
angry0.62870.5329
neutral0.58480.1601
positive0.84450.5854
sad0.30100.2136

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

Quantized variants

subfolderschemeweightsvs fp32macro-F1UAWA
(root)fp321206 MiB1.0x0.61670.61580.6214
int8W8A16351 MiB3.4x smaller0.61950.61900.6250
fp8W8A16-float343 MiB3.5x smaller0.61900.61940.6250
int4W4A16_ASYM209 MiB5.8x smaller0.61940.62040.6250

<img src="assets/quality.svg" alt="Quality after quantization" width="760">

<img src="assets/size.svg" alt="Weights on disk" width="760">

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

corpusclipslanguageregister
RESD948Russianacted dialogue
Dusha crowd6,800Russianacted, crowd-sourced
CAMEO6,8007 languages12 corpora, no Russian
Dusha podcast6,060Russianspontaneous podcast speech
IEMOCAP4,735Englishelicited dyadic sessions
ASVP-ESD2,596multilingualmixed register
total27,9398 languages3 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 &mdash; 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

python
import torch, librosa
from transformers import AutoModelForAudioClassification, AutoFeatureExtractor

repo = "Aniemore/hubert-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 &mdash; only that subfolder is downloaded:

python
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&ndash;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 `facebook/hubert-large-ls960-ft`; the licence follows the base model.