Research

Research case study · First author · 2025

CPU-efficient speech emotion recognition

A reproducible pipeline combining pretrained speech representations with automated hyperparameter optimisation—reaching 97% balanced class accuracy on eight CPU cores, without a GPU.

Make model selection cheaper without treating accuracy as an afterthought.

Speech emotion recognition systems can depend on costly GPU training and extensive manual tuning. This work asks whether a pretrained encoder and a deliberately small automated search can reach competitive performance on commodity CPU hardware.

As first author, I led the engineering of the experimental workflow used to compare Gaussian-process Bayesian optimisation and tree-structured Parzen estimators, and framed the analysis around accuracy, wall-clock efficiency, and cross-corpus transfer.

0.97Top balanced class accuracyTPE · Hyperopt · 15 minutes
2.4 minTime to exceed 0.90 BCAGP-BO · Ax · trial 2
8 CPUCores used for HPO experiments32 GB RAM · no GPU
+0.25 / +0.26Cross-corpus BCA improvementCREMA-D / RAVDESS

One controlled path from audio to evidence.

Every optimiser used the same preprocessing, model, objective, search dimensions, trial budget, and random seeds. That isolates the search strategy as the main experimental variable.

  1. Prepare speech

    Resample EmoDB audio to 16 kHz, normalise length, and create a stratified 80/20 split.

  2. Encode

    Use SpeechBrain's wav2vec 2.0 encoder, pretrained for speech and previously fine-tuned on IEMOCAP.

  3. Search

    Compare GP-BO and TPE across the same four-dimensional search space and 15-trial budget.

  4. Select

    Optimise balanced class accuracy, retaining the strongest configuration from each search engine.

  5. Stress-test

    Evaluate the selected model in-domain and on CREMA-D and RAVDESS without further fine-tuning.

Target dataset
EmoDB · 535 utterances · 10 speakers · 7 emotions
Model
SpeechBrain wav2vec 2.0 encoder + linear classifier
Search space
Learning rate, epochs, encoder unfreeze epoch, maximum input length
Optimisers
Ax GP-BO · Hyperopt TPE · Optuna TPE
Objective
Balanced class accuracy, suitable for uneven class distributions
Budget
15 trials per HPO engine under identical training code

Fast convergence mattered more than brute force.

TPE through Hyperopt produced the strongest score, while GP-BO through Ax reached a high-quality region fastest and delivered the best accuracy-to-time trade-off.

Best reported result for each method and its compute context
MethodComputeBest BCATime to bestContext
TPE (Hyperopt)8 CPU cores0.9715 minHighest BCA
GP-BO (Ax)8 CPU cores0.9611 minBest efficiency
TPE (Optuna)8 CPU cores0.93185 minWithin 15 trials
AutoSpeech 2020Tesla P100 GPU0.85~30 minPublished baseline
Grid search64 CPU cores0.981,680 min143 trials

Wall-clock comparisons are descriptive rather than a controlled hardware benchmark: grid search and the published AutoSpeech baseline used different compute environments. The controlled comparison is between Ax, Hyperopt, and Optuna on the same eight-core setup.

The tuned representation transferred—but the domain gap remained.

A model tuned on German EmoDB was evaluated without further training on the English CREMA-D and RAVDESS corpora. The gains are meaningful, but the lower out-of-domain scores keep the conclusion appropriately modest.

EmoDB

Baseline0.11
HPO-tuned0.96

+0.85 BCA

CREMA-D

Baseline0.13
HPO-tuned0.38

+0.25 BCA

RAVDESS

Baseline0.18
HPO-tuned0.44

+0.26 BCA

What the experiment supports—and what it does not.

Supported conclusions

  • Sequential HPO found high-performing configurations in far fewer trials than grid search.
  • GP-BO was the strongest choice when iteration speed mattered most.
  • TPE through Hyperopt achieved the highest BCA under the shared 15-trial budget.
  • HPO tuning improved transfer to both English evaluation corpora.

Limitations

  • EmoDB is a small benchmark with 535 utterances from 10 speakers.
  • The evaluation uses one stratified 80/20 split rather than repeated speaker-independent folds.
  • Cross-corpus label mapping simplifies differences between emotion taxonomies.
  • Out-of-domain BCA remains substantially below in-domain performance.

The implementation is public.

The repository separates data preparation from training and HPO, records structured experiment outputs, and includes fixed seeds, logging, and checkpoints to support repeatable runs.

Golbaghi, A. & Zhou, S. (2025). Enhancing Speech Emotion Recognition via Fine-Tuning Pre-Trained Models and Hyper-Parameter Optimisation. arXiv:2510.07052.

View all research