Deep learning · CNN + LSTM

Speech Emotion Recognition

A hybrid CNN + LSTM model for real-time emotion detection from voice. Extracted MFCC audio features from voice datasets and tuned the model for strong classification performance across emotion categories.

PyTorchCNNLSTMAudioMFCC
Role
ML engineer
Timeline
2023
Classifier UI — live prediction
Signal chain — 94.2% / 88.6%

Problem

Detecting emotion from raw audio in real time — traditional classifiers on hand-crafted features plateaued in accuracy.

Approach

  1. 01Extracted MFCC features from open voice datasets (RAVDESS-style).
  2. 02Trained a hybrid CNN + LSTM: CNN for local spectral patterns, LSTM for temporal dynamics.
  3. 03Tuned dropout, learning rate, and window size; used class-balanced sampling.
  4. 04Wrapped inference in a lightweight Python service for real-time streaming input.

Stack

  • PyTorch
  • Librosa
  • NumPy
  • CNN
  • LSTM

Outcomes

  • Strong classification performance across primary emotion categories.
  • Sub-second inference on CPU for short audio clips.
View on GitHub