/ Модель

Характеристики

Контекст
1 024 токена
Лицензия
Своя лицензия
Архитектура
ser-whisper-ecapa · dense
Библиотека
transformers
Опубликована
25 июн 2026

MERaLiON-SER-v1-s

Классификация аудиоАудио → label3 профессии

Производная модели MERaLiON/MERaLiON-SER-v1. Мультиязычная модель MERaLiON для распознавания семи эмоций в речи и оценки валентности, возбуждения и доминирования по аудио.

20скачиваний за 30 дней0лайковвеса обновлены25 июн 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Карточка модели swarnendu123/MERaLiON-SER-v1-s на Hugging Face совпадает с карточкой MERaLiON/MERaLiON-SER-v1, поэтому описание составлено по ней.

MERaLiON-SER-v1 — мультиязычная модель распознавания эмоций и аффективных характеристик речи, разработанная командой MERaLiON. Она принимает аудио и предсказывает семь категорий эмоций: нейтральность, радость, грусть, гнев, удивление, страх и отвращение, а также непрерывные оценки валентности, возбуждения и доминирования в диапазоне от 0 до 1. Модель содержит 309 млн параметров и использует замороженный энкодер Whisper-Medium с LoRA-адаптацией, за которым следуют attention pooling и модифицированный ECAPA-TDNN; декодер Whisper не используется.

Модель предназначена для анализа эмоциональной окраски речи в аудиозаписях и потоковом сценарии, включая оценку эмоциональных траекторий. Заявлена поддержка английского, китайского, малайского и тамильского языков; поддержка тайского, индонезийского и вьетнамского ограничена. В оценке на нескольких публичных наборах данных показаны конкурентные результаты, но качество зависит от языка, домена и представленности эмоций. Модель распространяется по MERaLiON Public License.

Сценарии применения

  • распознавание эмоций в голосовых записях
  • оценка настроения и эмоциональной окраски речи
  • анализ изменений эмоционального состояния во времени
  • разметка аудиосегментов по категориям эмоций
  • оценка валентности, возбуждения и доминирования в речи

Ограничения

Поддержка тайского, индонезийского и вьетнамского языков ограничена; точность распознавания редких эмоций и перенос на новые языки или аудиодомены могут быть ниже. Эмоциональные оценки по голосу не гарантируют достоверного определения внутреннего состояния говорящего.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MERaLiON-SER-v1: Multilingual Speech Emotion Model

🎤 Live Demo

You can experience speech emotion recognition by selecting Gender/Speech recognition tab via our interactive Hugging Face Space:

👉 MERaLiON-SER Demo

Upload an audio clip or record your voice to visualize categorical emotions
and dimensional affect trajectories in real time.


📘 Model Summary

MERaLiON-SER-v1 is a multilingual speech emotion recognition (SER) model jointly predicting

  1. Categorical emotions – 7 discrete classes (Neutral, Happy, Sad, Angry, Surprised, Fearful, Disgusted), and
  2. Dimensional affect values – continuous (Valence, Arousal, Dominance).
    Valence (0 negative, 1 positive), Arousal (0 calm, 1 active), Dominance (0 weak, 1 strong)

The design achieves parameter-efficient adaptation for multilingual, paralinguistic affect modeling using just 309 M parameters.

Language(s): English (Global & Singapore), Chinese, Malay, Tamil, Limited support for Thai, Indonesian, and Vietnamese.

More details on model architecture, training and evaluation is available here: Technical report

License: MERaLiON Public License

🎯 Supported Outputs

HeadTypeOutputDescription
CategoricalSoftmaxlogits → (7)Neutral, Happy, Sad, Angry, Surprised, Fearful, Disgusted
DimensionalSigmoiddims → (3)Valence [V], Arousal [A], Dominance [D] in [0, 1]

🧠 Architecture Overview

  • Modality: Speech-only model
  • Backbone: Whisper-Medium encoder (frozen) for multilingual acoustic features with LoRA adaptation. The Whisper decoder is frozen and unused.
  • Downstream: Attention-based pooling + modified ECAPA-TDNN capturing temporal & speaker-invariant cues.
  • Dual-head outputs:
    • Categorical (Softmax) → discrete emotion classes.
    • Dimensional (Sigmoid) → continuous VAD estimation.
  • Parameter-efficient fine-tuning: LoRA adapters integrated into Q/K/V attention projections.
  • Objective: Weighted Cross-Entropy + Concordance Correlation Coefficient (CCC) loss.
  • Pooling: Attention pooling for combining short-term and long-term cues.
  • Augmentations: MixUp, speed perturbation, and additive noise for robustness.
  • Model parameters size: 309 M

This framework balances computational efficiency, cross-lingual transferability, and robust emotion generalization.


📊 Performance Overview

In speech emotion recognition (SER), class imbalance is a persistent challenge, as certain emotions such as neutral or happy typically dominate spontaneous datasets, while others like fear or disgust occur infrequently. Conventional performance metrics such as weighted accuracy or overall accuracy tend to be dominated by these majority classes, often masking a model’s poor discrimination of minority emotions. To provide a more balanced evaluation, researchers in the affective computing community commonly employ Unweighted Average Recall (UAR) also know as Balanced Accuracy as the principal metric.

UAR is defined as the mean of per-class recall values, thereby assigning equal importance to each emotional category regardless of its occurrence frequency. This ensures that improvements in recognizing underrepresented emotions contribute equally to the final score. Unlike weighted accuracy—which aggregates correct predictions proportional to class distribution—UAR offers a class-independent assessment that more accurately reflects a model’s generalization capability across diverse emotional states. Consequently, UAR has become the de facto standard for benchmarking emotion recognition systems.

We have evaluated MERaLiON-SER-v1 performance using English and Singapore languages: English (Singlish), Chinese, Malay, and Tamil. The evaluation dataset for Singapore languages containes fine-grained labels at every two seconds and merged nearby segments to create a course level segments with maximum 15 second duration.

We have also added performance of primary 4 classes in emotion literature: Neutral, Angry, Sad, and Happy.

Singapore Language Performance

Public Datasets Performance

We have also performed evaluation on selected public datasets for seven classes. It includes three English (MSP-Podcast v1.11 test1, IEMOCAP (avg of five test folds), and MELD (test split)) datasets, Chinese (M3ED test split), and Indonesian (IndoWaveSentiment, entire split) dataset. Note that MSP, IEMOCAP, and IndoWaveSentiment datasets were not included in the model training. The MERaLiON-SER model shows competitive performance for out-of-domain datasets.


⚙️ Usage Examples

🔹 GPU Inference

from transformers import AutoProcessor, AutoModelForAudioClassification
import torch, torchaudio

repo = "MERaLiON/MERaLiON-SER-v1"
device = "cuda" if torch.cuda.is_available() else "cpu"

processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForAudioClassification.from_pretrained(repo, trust_remote_code=True).to(device)
model.eval()

# ------- Single wav exmple --------------
wav, sr = torchaudio.load("sample.wav")
if wav.shape[0] > 1: wav = wav.mean(dim=0, keepdim=True)
wav = torchaudio.transforms.Resample(sr, 16000)(wav)

inputs = processor(wav.squeeze().numpy(), sampling_rate=16000, return_tensors="pt", return_attention_mask=True)
with torch.inference_mode():
    out = model(**{k:v.to(device) for k,v in inputs.items() if k in ("input_features","attention_mask")})
logits, dims = out["logits"], out["dims"]

emo_idx = torch.argmax(logits, dim=1).item()
emo_map = ["Neutral","Happy","Sad","Angry","Fearful","Disgusted","Surprised"]
print("Predicted Emotion:", emo_map[emo_idx])
print("Valance/Arousal/Dominance:", dims.squeeze().tolist())

# -------- Batch inference example using above loaded wav file--------
wav = wav.squeeze().numpy() # tensor of size (41642,) --> (samples,)
wavs = [wav,wav,wav] # example list of wav (tensor) for batch, here batch size =3

batch_inputs = processor(
    wavs,                     # list of 1D numpy arrays
    sampling_rate=16000,
    return_tensors="pt",
     padding="max_length",
    return_attention_mask=True,
)
with torch.inference_mode():
    out = model(**{k: v.to(device) for k, v in batch_inputs.items() if k in ("input_features","attention_mask")})

logits, dims = out["logits"], out["dims"]  # logits: (B, 7), dims: (B, 3) where B is batch size
emo_ids = torch.argmax(logits, dim=1).tolist()

for i in range(len(wavs)):
    eid = emo_ids[i]
    vad = dims.tolist()[i]
    print(f"Batch Index {i} -> {emo_map[eid]} | VAD={vad}")

🔹 CPU Inference

from transformers import AutoProcessor, AutoModelForAudioClassification
import torch, soundfile as sf, torchaudio

repo = "MERaLiON/MERaLiON-SER-v1"
processor = AutoProcessor.from_pretrained(repo)
model = AutoModelForAudioClassification.from_pretrained(repo, trust_remote_code=True).cpu().eval()

wav, sr = sf.read("sample.wav")
if wav.ndim > 1: wav = wav.mean(axis=1)
if sr != 16000:
    wav = torchaudio.functional.resample(torch.tensor(wav).unsqueeze(0), sr, 16000).squeeze(0).numpy()

inputs = processor(wav, sampling_rate=16000, return_tensors="pt")
with torch.inference_mode():
    out = model(**inputs)
logits, dims = out["logits"], out["dims"]
emo_idx = torch.argmax(logits, dim=1).item()
emo_map = ["Neutral","Happy","Sad","Angry","Fearful","Disgusted","Surprised"]
print("Predicted Emotion:", emo_map[emo_idx])
print("Valance/Arousal/Dominance:", dims.squeeze().tolist())

Citation

If you find this model/dataset/space useful in your research, please refer and cite the following papers:

@article{serv1,
  title={MERaLiON-SER: Robust Speech Emotion Recognition Model for English and SEA Languages},
  author={MERaLiON Team},  journal={http://arxiv.org/abs/2511.04914},
  year={2025}
}
@inproceedings{wang2025benchmarking,
  title={Benchmarking Contextual and Paralinguistic Reasoning in Speech-LLMs: A Case Study with In-the-Wild Data},
  author={Wang, Qiongqiong and Sailor, Hardik Bhupendra and Liu, Tianchi and Zhang, Wenyu and Huzaifah, Muhammad and Lertcheva, Nattadaporn and Sun, Shuo and Chen, Nancy F and Wu, Jinyang and Aw, AiTi},
  booktitle={Findings of EMNLP 2025},
  year={2025}
}
@inproceedings{cpqa_interspeech,
  title={Contextual Paralinguistic Data Creation for  Multi-Modal Speech-LLM: Data Condensation and Spoken {QA} Generation},
  author={Wang, Qiongqiong and Sailor, Hardik B and Liu, Tianchi and Aw, Ai Ti},
  booktitle={Proc. Interspeech},
  year={2025},
}

@inproceedings{cpqa_asru,
  title={Incorporating Contextual Paralinguistic
Understanding in Large Speech-Language Models},
  author={
      Wang, Qiongqiong and Sailor, Hardik B and Wong, Jeremy H. M. and Liu, Tianchi and Sun, Shuo and Zhang, Wenyu and Huzaifah, Muhammad and  Chen, Nancy and Aw, Ai Ti},
  booktitle={Proc. IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)},
  year={2025},
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · audio-classification

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
SERWhisperECAPA
Ревизия весов
47534cb

0 моделей