Contrastive Unsupervised Learning for Speech Emotion Recognition

Mao Li, Bo Yang, Joshua Levy, Andreas Stolcke, Viktor Rozgić, Spyros Matsoukas, Constantinos Papayiannis, Daniel Bone, Chao Wang · DOI

Abstract

Speech emotion recognition (SER) is a key technology to enable more natural human-machine communication. However, SER has long suffered from a lack of public large-scale labeled datasets. To circumvent this problem, we investigate how unsupervised representation learning on unlabeled datasets can benefit SER. We show that the contrastive predictive coding (CPC) method can learn salient representations from unlabeled datasets, which improves emotion recognition performance. In our experiments, this method achieved state-of-the-art concordance correlation coefficient (CCC) performance for all emotion primitives (activation, valence, and dominance) on IEMOCAP. Additionally, on the MSP-Podcast dataset, our method obtained considerable performance improvements compared to baselines.

Introduction

Speech Emotion Recognition (SER) is essential for creating digital assistants that feel human, yet it remains a "low-resource" field. While fields like Automatic Speech Recognition (ASR) benefit from thousands of hours of transcribed data, labeling emotion is subjective, slow, and expensive. Consequently, most public SER datasets are small, leading to deep learning models that often overfit or fail to generalize to real-world scenarios.

A particular challenge in SER is the "valence" problem. Emotions are typically measured by three primitives: activation (energy), dominance (control), and valence (sentiment/positivity). While activation is relatively easy to detect from acoustic features like volume and pitch, valence is notoriously difficult to extract from audio alone. This research investigates whether unsupervised pre-training can bridge this gap by learning the underlying structure of speech before any emotion labels are introduced.

Methodology

The researchers proposed a two-stage framework leveraging Contrastive Predictive Coding (CPC):

  1. Unsupervised Pre-training (CPC): A "feature extractor" is trained using CPC on raw audio. The model encodes audio into a latent space via a CNN and uses a Gated Recurrent Unit (GRU) to summarize temporal context. Using the infoNCE loss, the model learns to predict future audio frames by maximizing similarity between its prediction and the actual future signal while ignoring "noise" (negative samples).
  2. Downstream Emotion Recognition: The pre-trained feature extractor is then used with an attention-based emotion recognizer. This recognizer employs a multi-headed self-attention mechanism to identify emotionally salient segments within an utterance to produce final predictions for activation, valence, and dominance.

The study compared four configurations: a supervised-only baseline (Sup), a joint-trained model (jointCPC), a "mini" CPC model trained only on target data (miniCPC), and the full preCPC model pre-trained on a large external corpus.

Experimental Setup

The models were evaluated using three primary datasets:

  • LibriSpeech (train-clean-100): 100 hours of clean English audiobook speech used for unsupervised pre-training.
  • IEMOCAP: A standard benchmark with ~12 hours of acted and improvised emotional interactions.
  • MSP-Podcast: A challenging 84-hour dataset of spontaneous emotional speech harvested from podcasts.

Results and Discussion

The performance was measured using the Concordance Correlation Coefficient (CCC). Across both evaluation datasets, the hierarchy of performance remained consistent: preCPC > miniCPC > jointCPC > Supervised.

State-of-the-Art Performance

On the IEMOCAP dataset, the preCPC model achieved an average CCC of 0.731, significantly outperforming the supervised baseline of 0.664. Notably, it set new state-of-the-art marks for all three primitives, including the difficult valence dimension.

CCC performance comparison on the IEMOCAP dataset.

Emergent Emotion Clusters

A key finding was that unsupervised learning creates "universal" features that generalize better than task-specific features. Even without explicit labels during pre-training, the CPC-learned embedding space naturally clustered similar emotions. Visualization of the latent space revealed that "sadness" and "anger" were already being separated before the model ever saw an emotion label.

t-SNE visualization showing natural clustering of anger and sadness in the latent space.

The Impact of Out-of-Domain Data

Pre-training on LibriSpeech—which consists of calm audiobook readings—significantly boosted performance on emotional datasets. This suggests that learning the fundamental "physics" of speech is a prerequisite for understanding emotion, and that large-scale unlabeled data can effectively mitigate the scarcity of labeled emotional speech.

Conclusion

This work demonstrates that contrastive unsupervised pre-training is a powerful tool for Speech Emotion Recognition. By learning robust representations from unlabeled data, models can overcome the limitations of small labeled datasets and achieve superior performance, particularly in challenging areas like valence detection. Future work may explore pre-training on more diverse, expressive, or noisy corpora to further enhance real-world robustness.

Summary updated

BibTeX
@misc{li2021contrastive,
  author = {Mao Li and Bo Yang and Joshua Levy and Andreas Stolcke and Viktor Rozgić and Spyros Matsoukas and Constantinos Papayiannis and Daniel Bone and Chao Wang},
  title = {{Contrastive Unsupervised Learning for Speech Emotion Recognition}},
  year = {2021},
  eprint = {2102.06357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.06357},
}
Figure