Skip to content
All workCase study · 01 / 04 · Master’s research project

Speech Denoising

Can a neural network clean up a noisy recording better than classic signal processing? I tested both side by side to find out.

Role
R&D Project Engineer, MyTech Lab
Timeline
May – Aug 2025
Supervisor
Dr. Srini Sampalli, Dalhousie University
Dataset
VoiceBank+DEMAND, 16 kHz
Metrics
PESQ · STOI · SNR
Technology
Python · TensorFlow · librosa · PyWavelets
Headline result

+0.36

Average PESQ gain over the noisy recordings, from the U-Net.

PESQ estimates how good speech sounds to a person. Higher is better, and this was the biggest gain of the five methods.

fig. 1 · Listen
After the U-Net (16 kHz)0:00 / 0:00

Transcript: It is like a river running by my home.

A sentence from the test set, over bus noise at 2.5 dB, the noisiest of its four levels. The speaker is one of the two voices the U-Net never heard in training. The U-Net did better than average on this clip, so treat it as one of the good ones. Switching versions keeps your place. Audio from VoiceBank+DEMAND (Valentini-Botinhao, 2017), CC BY 4.0.

Problem

Old-school signal processing and deep learning both promise cleaner speech. I wanted a fair test: the same recordings and the same scoring for every method.

Every method faced the same 824 test pairs, from two speakers the U-Net never heard in training.

What I wanted to solve

Noise makes calls, hearing aids, and voice assistants harder to use. Many models train on 8 kHz audio or on artificial noise, so I wanted to see how a U-Net trained at 16 kHz on recordings of real noise, from cafés, streets, and buses, compares with the classic filters.

16 kHz audio keeps sound up to 8 kHz, twice the range of the 8 kHz audio many older studies used.

How I approached it

I ran five methods on the same 824 test pairs and scored every result with PESQ, STOI, and SNR.

  1. Classical · 4
    • Spectral subtraction
    • Wiener filtering
    • Wavelet thresholding
    • Adaptive wavelet thresholding
  2. Deep learning · 1
    • U-Net (16 kHz)
  3. Data
    • VoiceBank+DEMAND
    • 11,572 training pairs
    • 824 test pairs
  4. Evaluation · 3
    • PESQ (sound quality)
    • STOI (intelligibility)
    • SNR (noise level)
fig. 2 · Spectrograms, before and after
A · Noisy
B · U-Net
Same clip as fig. 1, drawn on one shared scale. The U-Net clears the pause before the sentence and most of the noise around the words, and the stripes of the voice stay in place.

Technical decisions

The U-Net works on spectrograms. It predicts a mask for each noisy spectrogram, and I rebuild the audio with the noisy clip’s original phase. Training used L1 loss plus a term that protects speech energy, with time and frequency masking to help the model handle noise it hadn’t heard.

A four-level U-Net with skip connections, trained with Adam in batches of 16 for up to 30 epochs, stopping after 4 epochs without improvement. Each clip is padded or cut to about 3.5 seconds to fit its fixed input size.

Challenges

A fair comparison meant every method had to read the same files and write audio the evaluator could line up with the clean reference. PESQ rejects clips that are too short or silent, so the evaluator checks every file and skips the bad ones.

The evaluator is one Python tool. It scores each output with the pesq and pystoi packages and saves the results as CSV files and charts.

Results

fig. 3

PESQ change by method

  • ClassicalSpectral subtraction−0.42
  • ClassicalWiener filtering−0.22
  • ClassicalWavelet thresholding+0.05
  • ClassicalAdaptive wavelet thresholding−0.03
  • Deep learningU-Net (16 kHz)+0.36
Average change over the noisy recordings across the 824 test pairs. Above zero sounds better, below zero sounds worse. The U-Net is the only blue bar.
fig. 4a

STOI change by method

  • ClassicalSpectral subtraction−0.064
  • ClassicalWiener filtering−0.047
  • ClassicalWavelet thresholding−0.010
  • ClassicalAdaptive wavelet thresholding−0.001
  • Deep learningU-Net (16 kHz)+0.004
Intelligibility barely moved for any method, probably because the test clips start out easy to understand.
fig. 4b

SNR change by method

  • ClassicalSpectral subtraction−0.65 dB
  • ClassicalWiener filtering−1.07 dB
  • ClassicalWavelet thresholding+0.13 dB
  • ClassicalAdaptive wavelet thresholding+0.25 dB
  • Deep learningU-Net (16 kHz)−6.17 dB
Wavelet thresholding raised SNR slightly. The next row explains the U-Net’s large drop.

Looking back at SNR

The U-Net’s SNR drop comes mostly from how I measured it. Rebuilding its audio from the spectrogram made it about 1.7 times louder than the clean reference, and SNR counts any difference in loudness as noise. On the two validation clips I saved, where every version went through the same rebuild, the U-Net improved SNR by 4.6 and 6.5 dB.

SI-SDR, a version of SNR that ignores loudness, would avoid this.

What I learned

Metrics can disagree. PESQ ranked the U-Net first and SNR ranked it last, and the gap traced back to my own pipeline. On these recordings, spectral subtraction and Wiener filtering made speech sound worse, while wavelet thresholding stayed close to neutral and costs very little to run.

Next, I’d test the U-Net on noise it never heard in training, estimate phase instead of reusing the noisy one, and run a small listening test.