[Paper Review] Comparison of Time-Frequency Representations for Environmental Sound Classification using Convolutional Neural Networks
The paper compares STFT (linear and Mel), CQT, CWT, and MFCC-based inputs for CNN-based environmental sound classification on ESC-50 and UrbanSound8K, finding Mel-STFT generally strong and MFCCs weakest; 2D convs often outperform 1D, with window size affecting results by signal class.
Recent successful applications of convolutional neural networks (CNNs) to audio classification and speech recognition have motivated the search for better input representations for more efficient training. Visual displays of an audio signal, through various time-frequency representations such as spectrograms offer a rich representation of the temporal and spectral structure of the original signal. In this letter, we compare various popular signal processing methods to obtain this representation, such as short-time Fourier transform (STFT) with linear and Mel scales, constant-Q transform (CQT) and continuous Wavelet transform (CWT), and assess their impact on the classification performance of two environmental sound datasets using CNNs. This study supports the hypothesis that time-frequency representations are valuable in learning useful features for sound classification. Moreover, the actual transformation used is shown to impact the classification accuracy, with Mel-scaled STFT outperforming the other discussed methods slightly and baseline MFCC features to a large degree. Additionally, we observe that the optimal window size during transformation is dependent on the characteristics of the audio signal and architecturally, 2D convolution yielded better results in most cases compared to 1D.
Motivation & Objective
- Motivate the search for effective time-frequency input representations for CNN-based environmental sound classification.
- Evaluate how different spectro-temporal representations affect CNN performance on two public datasets.
- Assess the impact of CNN architecture (2D vs 1D convolutions) and input windowing on classification accuracy.
Proposed method
- Compute multiple time-frequency representations (linear-STFT, Mel-STFT, CQT, CWT, MFCC cepstrogram) from 4-second clips resampled to 22.05 kHz.
- Prepare inputs as 2D spectrogram-like images and downscale to standardized sizes.
- Train CNN variants (Conv-5 and Conv-3 with 3x3 and Mx3 filters) using ReLU, dropout, L2 regularization, and Adam optimization.
- Evaluate with 5-fold (ESC-50) and 10-fold (UrbanSound8K) cross-validation; report median accuracies and MAD.
- Compare 2D vs 1D convolutions and analyze window-size effects (wideband vs narrowband).
- Use ANOVA and Tukey post-hoc tests to determine significant differences between representations.
Experimental results
Research questions
- RQ1Which time-frequency representation yields the best CNN-based environmental sound classification performance on ESC-50 and UrbanSound8K?
- RQ2How do wideband versus narrowband windowing affect accuracy across representations?
- RQ3Do 2D convolutional layers outperform 1D convolutions for spectrogram-based inputs?
- RQ4Is MFCC-based input still competitive relative to modern spectrogram-based representations when used with CNNs?
- RQ5What is the relative impact of network depth (Conv-3 vs Conv-5) on performance for different inputs?
Key findings
- Mel-STFT spectrogram inputs consistently performed well across models and datasets.
- Most spectral representations improved over MFCC baselines, with MFCCs lagging behind by notable margins in many cases.
- 2D convolutions generally outperformed 1D convolutions, except for a shallower ESC-50 model where the anomaly occurred.
- Wideband vs narrowband effects varied by dataset and class, indicating class-dependent window size advantages.
- Conv-3 (3x3) often outperformed Conv-5, suggesting overfitting and data limitations with deeper architectures on the given clips.
- On UrbanSound8K, some configurations with Conv-5 or Conv-3 and certain inputs achieved the highest accuracy (e.g., Conv-3 with 3x3 on UrbanSound8K reached 74.66% median).
- CWT tended to perform closer to MFCC and was sometimes lower than Mel-STFT and CQT, especially on UrbanSound8K.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.