Abstract
Emotion recognition datasets are relatively small, making the use of deep learning techniques challenging. In this work, we propose a transfer learning method for speech emotion recognition (SER) where features extracted from pre-trained wav2vec 2.0 models are used as input to shallow neural networks to recognize emotions from speech. We propose a way to combine the output of several layers from the pre-trained model, producing richer speech representations than the model’s output alone. We evaluate the proposed approaches on two standard emotion databases, IEMOCAP and RAVDESS, and compare different feature extraction techniques using two wav2vec 2.0 models: a generic one, and one finetuned for speech recognition. We also experiment with different shallow architectures for our speech emotion recognition model, and report baseline results using traditional features. Finally, we show that our best performing models have better average recall than previous approaches that use deep neural networks trained on spectrograms and waveforms or shallow neural networks trained on features extracted from wav2vec 1.0.
Introduction
Speech Emotion Recognition (SER) is a challenging task due to the scarcity of high-quality, labeled datasets, which often contain only a few dozen speakers. This data sparsity makes training deep neural networks from scratch prone to overfitting. Transfer learning offers a solution by leveraging models pre-trained on large-scale tasks. This paper investigates the effectiveness of wav2vec 2.0, a state-of-the-art self-supervised model for speech recognition, as a feature extractor for SER. The goal is to determine if wav2vec 2.0 captures essential prosodic features like pitch and rhythm and how to best utilize its internal representations.
Methods
The researchers utilized the wav2vec 2.0 Base model as a feature extractor, exploring several architectural configurations to optimize emotion detection.
Multi-Layer Feature Fusion
A key innovation is the use of a trainable weighted average of all 12 transformer blocks plus the initial local encoder, rather than relying solely on the final layer. This allows the downstream model to adaptively select the most relevant levels of abstraction for emotion detection.
Model Architectures
The extracted features were processed by shallow downstream models to mitigate overfitting:
- Dense: Two layers with 128 neurons followed by global average pooling.
- LSTM: Designed to capture long-range temporal dependencies.
- Fusion: An architecture combining wav2vec features with traditional handcrafted acoustic features (eGeMAPS).
The study also compared a model only Pre-Trained (PT) on unlabeled audio against one Fine-Tuned (FT) for Automatic Speech Recognition (ASR) to see how task-specific tuning affects emotion information.
Key Insights and Results
The models were evaluated on the IEMOCAP and RAVDESS datasets. The results yielded several critical insights:
The "Goldilocks" Layers
Analysis of the learned weights for the multi-layer fusion revealed that middle layers are the most significant for emotion recognition. Early layers contain representations that are too "raw," while final layers in the FT model become too specialized for ASR, losing vital prosodic information.
PT vs. FT Performance
Surprisingly, the model fine-tuned for ASR (Wav2vec2-FT) performed significantly worse than the raw pre-trained model (Wav2vec2-PT). This suggests that ASR training may "wash away" non-lexical cues like pitch and tone that are essential for identifying feelings.
Performance Comparison
The proposed method achieved new state-of-the-art results, outperforming complex CNN-BiLSTM architectures and previous wav2vec 1.0 based approaches.
| Model (Wav2vec2-PT + All Layers) | IEMOCAP (Recall %) | RAVDESS (Recall %) |
|---|---|---|
| Proposed (Speaker Norm) | 67.2 | 84.3 |
| Proposed (Global Norm) | 65.8 | 75.7 |
| Previous SOTA (Wav2Vec 1.0) | 64.3 | - |
| Baseline (eGeMAPS) | 52.4 | 57.0 |
Discussion
While the results are promising, several challenges remain. Speaker normalization provided a significant performance boost, but it requires multiple samples from the same speaker, which is not always feasible in real-time applications. Additionally, there is a potential lexical bias in datasets like IEMOCAP, where the model might rely on keywords rather than pure acoustics. Future work will focus on improving robustness to unseen speakers and further disentangling lexical and prosodic information.
Summary updated