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
+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.
Transcript: It is like a river running by my home.
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.
- Classical · 4
- Spectral subtraction
- Wiener filtering
- Wavelet thresholding
- Adaptive wavelet thresholding
- Deep learning · 1
- U-Net (16 kHz)
- Data
- VoiceBank+DEMAND
- 11,572 training pairs
- 824 test pairs
- Evaluation · 3
- PESQ (sound quality)
- STOI (intelligibility)
- SNR (noise level)
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
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
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
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
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.