Skip to content
Back to projects

Deep Learning · 2026

Environmental Sound Classification

Classifies 50 sound categories (ESC-50) by converting waveforms to log-Mel spectrograms and using a 2D CNN in PyTorch.

Model

  • 2D CNN over log-Mel spectrograms (Librosa frontend)
  • Augmentation: time-shift and noise injection on waveforms before spectrogram extraction
  • Pretrained-free backbone trained from scratch on ESC-50

Dataset

ESC-50 — 2,000 five-second environmental recordings across 50 balanced classes (5 folds).

Results & metrics

Classes
50
Validation
5-fold cross-validation
Accuracy
~0.80+

Deployment steps

  1. 1Convert audio to log-Mel spectrogram at inference
  2. 2Run the CNN forward pass and arg-max the 50 classes
  3. 3Package inference in a small script/API for file or mic input

Tech stack

  • PyTorch
  • CNN
  • Librosa
  • ESC-50
M

drawing ideas into systems...