Describing emotions with acoustic property prompts for speech emotion recognition

Hira Dhamyal, Benjamin Elizalde, Soham Deshmukh, Huaming Wang, Bhiksha Raj, Rita SingharXiv 2022

Abstract

Emotions lie on a broad continuum and treating emotions as a discrete number of classes limits the ability of a model to capture the nuances in the continuum. The challenge is how to describe the nuances of emotions and how to enable a model to learn the descriptions. In this work, we devise a method to automatically create a description (or prompt) for a given audio by computing acoustic properties, such as pitch, loudness, speech rate, and articulation rate. We pair a prompt with its corresponding audio using 5 different emotion datasets. We trained a neural network model using these audio-text pairs. Then, we evaluate the model using one more dataset. We investigate how the model can learn to associate the audio with the descriptions, resulting in performance improvement of Speech Emotion Recognition and Speech Audio Retrieval. We expect our findings to motivate research describing the broad continuum of emotion.

Introduction

Traditional Speech Emotion Recognition (SER) typically treats emotions as a handful of discrete categories, such as "angry," "happy," or "sad." However, human emotion exists on a broad, nuanced continuum. Labeling two very different audio clips as "angry" ignores critical acoustic differences; for instance, one might be a quiet, simmering resentment while the other is a loud, high-pitched shout.

The challenge is twofold: how to describe these nuances in a scalable way without manual labeling, and how to enable machine learning models to learn from these descriptions. Current models often struggle to capture the "continuity" of emotion because they lack the descriptive vocabulary to distinguish between different expressions of the same categorical label.

Methodology

To address these limitations, we propose a method to automatically generate acoustic prompts by extracting low-level acoustic correlates from audio files. The process involves four main stages:

  1. Feature Extraction: Using tools like Librosa and Praat, we calculate four key properties: average pitch, intensity (loudness), speech rate, and articulation rate.
  2. Prompt Generation: These properties are "binned" into categories (e.g., low vs. high intensity) and combined with the emotion label to create natural language strings like "low pitch anger" or "high speech rate happy."
  3. Model Architecture: We utilize the CLAP (Contrastive Language-Audio Pretraining) framework. This architecture uses separate audio and text encoders (CNN14 and BERT, respectively) to project both modalities into a shared multimodal space. The model is trained to maximize the similarity between an audio clip and its corresponding text description.
  4. Prompt Augmentation: To increase robustness, we pair a single audio clip with five different independent prompts (one for each acoustic property plus the base label), forcing the model to learn multiple facets of the same audio signal.
Overview of the CLAP training and zero-shot testing framework using acoustic prompts.

Experimental Setup

The study utilizes an array of datasets to ensure generalizability, including standard emotion datasets (ED) like CMU-MOSEI, IEMOCAP, MELD, CREMA-D, RAVDESS, and CMU-MOSI. We also leverage pre-training datasets (4D) such as ClothoV2 and AudioCaps. Models were tested using "leave-one-out" cross-dataset scenarios and specific finetuning on datasets like RAVDESS and CREMA-D.

Key Results and Insights

Our experiments revealed several critical insights into how acoustic prompts influence model performance:

  • Pitch is King: Among individual acoustic properties, the pitch prompt consistently provided the highest performance boost in classification tasks.
  • Prompt Augmentation (PA): Combining multiple acoustic descriptions (PA) yielded the best overall results. For example, in a finetuning setup on the RAVDESS dataset, using prompt augmentation improved absolute accuracy from 68.69% to 72.46%.
  • Zero-Shot Generalization: Adding emotion-specific datasets to the training mix (moving from "4D" to "5ED") improved performance on unseen datasets significantly—jumping from 17.85% to 35.22% on CREMA-D.
  • Retrieval Capability: The model demonstrated a significant improvement in Precision@K for audio retrieval when trained with augmented prompts, proving it learned the actual relationship between text descriptions and sound properties.
Performance comparison across different prompt types (C: Class, P: Pitch, I: Intensity, SR: Speech Rate, AR: Articulation Rate, PA: Prompt Augmentation) on Crema-d and Ravdess.

Conclusion

While distribution shift remains a challenge—where "high intensity" in one dataset might be "medium" in another—this work demonstrates that acoustic prompts are a powerful tool for capturing emotional nuance. Future research will focus on incorporating more complex descriptions involving semantics, environment, and situational context to move closer to human-level emotional understanding.

Summary updated

BibTeX
@misc{dhamyal2022describing,
  author = {Hira Dhamyal and Benjamin Elizalde and Soham Deshmukh and Huaming Wang and Bhiksha Raj and Rita Singh},
  title = {{Describing emotions with acoustic property prompts for speech emotion recognition}},
  year = {2022},
  eprint = {2211.07737},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.07737},
}
Figure