Audio Classification
Transformers
Safetensors
Spanish
wav2vec2-bert
emotion-recognition
speech-emotion-recognition
multimodal-learning
speech-processing
text-processing
spanish
affective-computing
umuteam
Eval Results (legacy)
Instructions to use UMUTeam/w2v-bert-beto-concat-emotion-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UMUTeam/w2v-bert-beto-concat-emotion-es with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="UMUTeam/w2v-bert-beto-concat-emotion-es")# Load model directly from transformers import AutoProcessor, CustomAudioClassificationConcat processor = AutoProcessor.from_pretrained("UMUTeam/w2v-bert-beto-concat-emotion-es") model = CustomAudioClassificationConcat.from_pretrained("UMUTeam/w2v-bert-beto-concat-emotion-es", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 7,898 Bytes
39d774d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | ---
language:
- es
license: mit
library_name: transformers
pipeline_tag: audio-classification
tags:
- emotion-recognition
- speech-emotion-recognition
- multimodal-learning
- audio-classification
- speech-processing
- text-processing
- spanish
- affective-computing
- umuteam
datasets:
- NLP-UMUTeam/Spanish-MEACorpus-2023
metrics:
- accuracy
- f1
model-index:
- name: UMUTeam/w2v-bert-beto-concat-emotion-es
results:
- task:
type: audio-classification
name: Multimodal Speech Emotion Recognition
dataset:
name: Spanish MEACorpus 2023
type: custom
metrics:
- type: accuracy
value: 90.0682
name: Accuracy
- type: weighted-f1
value: 90.0642
name: Weighted F1
- type: macro-f1
value: 87.7455
name: Macro F1
---
# UMUTeam/w2v-bert-beto-concat-emotion-es
## Model description
`UMUTeam/w2v-bert-beto-concat-emotion-es` is a Spanish multimodal emotion recognition model developed as part of **speech-emotion**, an open-source multilingual and multimodal toolkit for emotion recognition from speech, text, and multimodal inputs.
This model performs **multimodal emotion classification from Spanish speech and text inputs**.
The model combines acoustic representations extracted with Wav2Vec2-BERT and linguistic representations generated with BETO using a concatenation-based multimodal fusion strategy.
It is designed to jointly exploit complementary emotional information from speech and text in order to improve emotion recognition performance compared to unimodal approaches.
The model predicts one of the following emotion labels:
- `anger`
- `disgust`
- `fear`
- `joy`
- `neutral`
- `sadness`
## Intended use
This model is intended for research and applied scenarios involving multimodal emotion recognition in Spanish, such as:
- multimodal conversational analysis
- speech and text emotion analysis
- affective computing research
- emotion-aware conversational systems
- human-computer interaction
- multimodal AI research
The model is particularly useful in scenarios where both speech audio and transcribed text are available.
It can be used through the `speech-emotion` toolkit.
## Out-of-scope use
This model should not be used as the sole basis for high-stakes decisions, including but not limited to:
- clinical diagnosis
- mental health assessment
- employment, legal, or educational decisions
- biometric profiling or surveillance
- automated decisions affecting individuals without human oversight
Emotion recognition is inherently uncertain and context-dependent. Predictions should be interpreted as model estimates, not as definitive assessments of a person's emotional state.
## Training data
The model was trained on the Spanish portion of the datasets used in the `speech-emotion` project, primarily based on the **Spanish MEACorpus 2023** dataset.
Spanish MEACorpus 2023 is a multimodal speech-text emotion corpus for Spanish emotion analysis collected from natural environments. The dataset contains aligned speech and textual information for emotion recognition tasks.
The emotion labels were harmonized into the following six-class taxonomy:
- `anger`
- `disgust`
- `fear`
- `joy`
- `neutral`
- `sadness`
For the Spanish multimodal emotion recognition setup, the same aligned speech-text samples were used for both the acoustic and textual modalities:
- Training samples: 3,692
- Validation samples: 410
- Test samples: 1,027
More details about the dataset and preprocessing pipeline are available in the project repository:
https://github.com/NLP-UMUTeam/umuteam-speech-emotion
## Evaluation
The model was evaluated on the Spanish held-out test set used in the `speech-emotion` toolkit.
### Performance comparison on Spanish emotion recognition
| Configuration | Accuracy | Weighted Precision | Weighted F1 | Macro F1 |
|---|---:|---:|---:|---:|
| Speech-only | 88.1207 | 88.3244 | 88.1357 | 84.4829 |
| Text-only | 77.0204 | 77.0449 | 76.8367 | 69.3886 |
| Multimodal (Concat) | **90.0682** | **90.2048** | **90.0642** | **87.7455** |
| Multimodal (Mean) | 88.5102 | 88.6163 | 88.5011 | 84.1653 |
| Multimodal (Multihead) | 82.6680 | 82.3820 | 82.4600 | 75.5606 |
The results show that combining acoustic and linguistic representations improves emotion recognition performance compared to unimodal speech-only or text-only systems.
Among the evaluated fusion strategies, the concatenation-based multimodal approach achieved the best overall performance across all reported metrics.
## How to use
```bash
pip install speech-emotion
```
### Multimodal emotion recognition using audio and text
```python
from speech_emotion import predict_emotion
emotion = predict_emotion(
audio_path="audio.wav",
text="Estoy muy feliz de verte de nuevo.",
language="es",
mode="concat",
model_config_path="model.json"
)
print("Detected emotion:", emotion)
```
### Multimodal emotion recognition using automatic transcription (Whisper)
If no transcription is provided, the toolkit can automatically generate it using Whisper before performing emotion recognition.
```python
from speech_emotion import predict_emotion
emotion = predict_emotion(
audio_path="audio.wav",
language="es",
mode="concat",
model_config_path="model.json"
)
print("Detected emotion:", emotion)
```
Repository:
https://github.com/NLP-UMUTeam/umuteam-speech-emotion
## Limitations
- The model is designed for Spanish multimodal emotion recognition and may not generalize reliably to other languages.
- It predicts a single label from a fixed set of six emotions.
- Emotion expression is subjective and highly context-dependent.
- Performance may decrease with noisy audio, inaccurate transcriptions, overlapping speakers, or domain shifts.
- The model assumes that audio and text inputs are semantically aligned.
- Errors in automatic speech transcription may negatively affect multimodal performance.
## Bias and ethical considerations
Emotion recognition systems may reflect biases present in their training data, including differences related to accents, speaking styles, demographics, recording conditions, or annotation subjectivity.
Users should avoid interpreting predictions as objective truths about a person's internal emotional state. The model should be used with transparency, appropriate consent, and human oversight, especially in sensitive contexts.
## Citation
If you use this model in your research, please cite the following works:
### speech-emotion toolkit
```bibtex
@article{PAN2026102677,
title = {speech-emotion: A multilingual and multimodal toolkit for emotion recognition from speech},
journal = {SoftwareX},
volume = {34},
pages = {102677},
year = {2026},
issn = {2352-7110},
doi = {https://doi.org/10.1016/j.softx.2026.102677},
url = {https://www.sciencedirect.com/science/article/pii/S235271102600169X},
author = {Ronghao Pan and Tomás Bernal-Beltrán and José Antonio García-Díaz and Rafael Valencia-García},
}
```
### Spanish MEACorpus 2023
```bibtex
@article{PAN2024103856,
title = {Spanish MEACorpus 2023: A multimodal speech–text corpus for emotion analysis in Spanish from natural environments},
journal = {Computer Standards & Interfaces},
volume = {90},
pages = {103856},
year = {2024},
issn = {0920-5489},
doi = {https://doi.org/10.1016/j.csi.2024.103856},
url = {https://www.sciencedirect.com/science/article/pii/S0920548924000254},
author = {Ronghao Pan and José Antonio García-Díaz and Miguel Ángel Rodríguez-García and Rafael Valencia-García},
}
```
## Acknowledgments
This work is part of the research project LaTe4PoliticES (PID2022-138099OB-I00), funded by MICIU/AEI/10.13039/501100011033 and the European Regional Development Fund (ERDF/EU - FEDER/UE), “A way of making Europe”.
Mr. Tomás Bernal-Beltrán is supported by the University of Murcia through the predoctoral programme. |