← All projects
AI2024First Author · Researcher

Baby Cry Sound Detection — CNN Benchmark Study

First-author, peer-reviewed study (JEEEMI, Sinta 2): benchmarked six CNN architectures over Mel-spectrogram images across two infant-cry datasets. AlexNet led at 84.78% — and the interesting result was why the deeper networks lost.

Outcome84.78% best accuracy · 6 architectures · published
Stack
PythonTensorFlow/KerasCNNLibrosaNumPyPandasScikit-learn
Problem

Infant cries carry intent — pain, hunger, discomfort, colic, fatigue — but the signal is short, the classes overlap acoustically, and recording conditions vary wildly. Prior work applied CNNs to cry audio without ever comparing architectures head-to-head on the same representation, so nobody knew whether depth actually helped. The datasets also carry severe class imbalance: in Donate-a-Cry, 382 of 457 recordings are a single class ('hungry'), which quietly inflates naive accuracy.


Solution

Built an end-to-end audio ML pipeline (raw audio → WAV → Mel-spectrogram image via Librosa → stratified 90/10 split) and trained six CNN architectures from scratch on identical splits: LeNet-5, AlexNet, VGG-16, VGG-19, ResNet-50, and ResNet-152 — nine variants in total including the V2 residual and grayscale/RGB versions. Every model used the same protocol (batch 8, 50 epochs, Adam @ 1e-4, ReLU, dropout 0.5) so the comparison isolated architecture rather than tuning. Evaluated on accuracy, precision, recall, and F1 via confusion matrices, and logged wall-clock training time to weigh accuracy against computational cost.

System architecture

Audio → image → benchmark

The experiment turns a classification problem into an image problem: raw cry audio becomes a Mel-spectrogram, then six CNN architectures compete on identical splits under an identical training protocol — so the result measures architecture, not tuning luck.

01

Datasets

2 sources · 5 classes

  • Donate-a-Cry457 clips · 7s WAV
  • Dunstan Baby Language156 clips · 1–26s
  • belly-pain · burping · discomfort · hungry · tiredimbalanced
02

Preprocessing

audio → tensor

  • MP4/video → WAVsegment by label
  • Mel-spectrogramLibrosa · FFT → Mel scale
  • Resize per architecture32² · 227² · 224²
  • Stratified split90 / 10
03

Architectures

9 variants trained from scratch

  • LeNet-57 layers · RGB + grayscale
  • AlexNet8 layers — best result
  • VGG-1616 layers
  • VGG-1919 layers
  • ResNet-50 / V2residual
  • ResNet-152 / V2152 layers
04

Training protocol

identical for every model

  • batch = 8
  • epochs = 50
  • Adam · lr 1e-4
  • ReLU
  • dropout 0.5
05

Evaluation

beyond accuracy

  • Confusion matrixTP / FP / FN / TN
  • Precision · Recall · F1per class
  • Training wall-clockaccuracy vs cost
  • AlexNet 84.78% / 72.73%winner
Load-bearing rules
  • One protocol for every architecture — same split, same optimizer, same epochs — so the comparison isolates architecture rather than tuning effort.
  • Stratified splitting preserves class distribution; with 382 of 457 clips in one class, a random split would quietly distort every metric.
  • Accuracy alone is not the verdict: precision, recall, and F1 are reported per class because the datasets are imbalanced.
  • Training time is treated as a first-class result — ResNet-152 cost ~12× AlexNet and still scored lower.
  • Depth is not free. On small, imbalanced audio datasets the deeper networks overfit; the shallower AlexNet generalized better.

Highlights
Read the paper (DOI) ↗
Next project
FilesGI — File Management System→