Views
No views yet
Multilingual Speech Emotion Recognition for Iberian Languages A Generative AI Approach with LLMs and Data Augmentation Techniques
whisper-ser-iemocap_meacorpus.ckpt, released as part of the paper:Bellver-Soler, J., Guragain, A., Ramos-Varela, S., Córdoba, R., & D’Haro, L.F. (2025) Multilingual Speech Emotion Recognition for Iberian Languages: A Generative AI Approach with LLMs and Data Augmentation Techniques. Universidad Politécnica de Madrid (UPM) 📄 SSRN Preprint
| Component | Description |
|---|---|
| Audio Encoder | openai/whisper-large-v3 – frozen during training |
| Pooling | Single-head attentive pooling layer |
| Classifier | Frozen bigscience/bloomz-7b1 LLM used as classification head |
| Projection Layer | Linear adapter mapping acoustic embeddings to LLM hidden size |
| Loss Function | Weighted cross-entropy |
| Optimizer | AdamW with cosine LR schedule and warm-up |
| Sampling Rate | 16 kHz |
['neutral', 'happy', 'sad', 'angry', 'fear', 'surprise', 'disgust']
| Dataset | Language | Type | Hours | Notes |
|---|---|---|---|---|
| IEMOCAP | English | Acted | 7.0 | Standard benchmark |
| MEACorpus | Spanish | Natural | 13.2 | In-the-wild TV data |
| Dataset | F1 (macro) | Augmentation |
|---|---|---|
| IEMOCAP | 0.719 | Spectrogram masking |
| MEACorpus | 0.786 | Mix-up |
| EMS (Spanish) | 0.783 | TTS Augmentation |
| VERBO (Portuguese) | 0.765 | Mix-up |
| AhoEmo3 (Basque) | 0.994 | Mix-up |
Audio → Whisper Encoder → Attentive Pooling → Linear Projection → Bloomz-7B1 (frozen) → Emotion logits1import torch
2import torchaudio
3
4# Load model checkpoint
5model = torch.load("whisper-ser-iemocap_meacorpus.ckpt", map_location="cpu")
6model.eval()
7
8# Example audio
9waveform, sr = torchaudio.load("example.wav")
10assert sr == 16000, "Audio must be 16 kHz"
11
12# Forward pass
13with torch.no_grad():
14 logits = model(waveform)
15 probs = torch.nn.functional.softmax(logits, dim=-1)
16 emotion = probs.argmax(dim=-1)
17
18print("Predicted emotion:", emotion.item())1@article{bellversoler2025multilingual,
2 title={Multilingual Speech Emotion Recognition for Iberian Languages: A Generative AI Approach with LLMs and Data Augmentation Techniques},
3 author={Bellver-Soler, Jaime and Guragain, Anmol and Ramos-Varela, Samuel and Córdoba, Ricardo and D’Haro, Luis Fernando},
4 journal={Computer Speech & Language},
5 year={2025},
6 note={Preprint, SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5244228}
7}| Resource | Description |
|---|---|
| 🧠 SpeechFactory (GitHub) | Codebase to generate synthetic emotional datasets |
| 🎧 SER-MSPMEA-Spanish (Hugging Face) | Synthetic Spanish emotional dataset generated via FishSpeech-TTS |
| MSP-MEA | Spanish extension of MSP-Podcast generated with voice cloning |
| Upcoming: IEMOCAP-MEA dataset | A new cross-lingual dataset combining IEMOCAP and MEACorpus recordings will be released soon, extending the current Whisper-SER model for multilingual benchmarking. |