Introduction
Environmental Sound Classification (ESC) involves identifying diverse sounds such as barking dogs, rain, or machinery. This task is inherently challenging due to overlapping sound events, background noise, and the lack of structured syntax found in human speech. Traditionally, the "gold standard" approach has been to convert audio into 2D spectrograms and apply heavy 2D Convolutional Neural Networks (CNNs) borrowed from computer vision.
However, 2D convolutions are computationally expensive and often conflate temporal and spectral information. This paper proposes a highly efficient two-stream 1D CNN architecture that "disentangles" audio features into separate time and frequency streams. By treating these dimensions in isolation before fusion, the model achieves state-of-the-art accuracy while significantly reducing computational overhead.
Proposed Architecture
The core of the proposed system is a two-stream 1D convolutional architecture designed on the principle of feature disentanglement. The model uses Mel-frequency cepstral coefficients (MFCC) as the primary input.
As shown in the architecture diagram, the model splits the input into two distinct paths:
- Time Stream: Processes the MFCC features directly to capture temporal patterns.
- Frequency Stream: Processes the transposed MFCC features to capture spectral characteristics.
Each stream consists of "Iterable Modules" equipped with Squeeze-and-Excitation (SE) Attention to dynamically weight important features. To prevent information loss, the authors avoided internal pooling layers, relying instead on stride and kernel variety to manage dimensionality. Finally, the two streams are merged via global average pooling and a softmax classifier for feature fusion.
Convolutional Block Design
Instead of standard 2D filters, the model employs specialized 1D convolution blocks. These blocks use parallel 1D filters with varying "odd" kernel sizes (ranging from 1 to 21).
This multi-scale approach allows the model to maintain a massive receptive field—comparable to very deep 2D networks—without the quadratic parameter explosion associated with 2D kernels. The outputs of these parallel convolutions are batch-normalized, passed through ReLU activations, and then concatenated to form a rich, multi-receptive field feature map.
Experimental Evaluation
The model was evaluated on two benchmark datasets:
- ESC-10: A subset of the ESC-50 dataset containing 400 recordings across 10 classes.
- UrbanSound8K: A larger dataset containing 8,732 clips of urban sounds like jackhammers and sirens.
To improve robustness and prevent overfitting, data augmentation techniques including pitch shifting, time stretching, and random padding were applied, significantly increasing the effective training sample size.
Results and Insights
The proposed model achieved impressive results, often surpassing much larger 2D models:
- State-of-the-Art Accuracy: The architecture reached 98.51% on UrbanSound8K and 97.50% on ESC-10.
- Efficiency: The model utilizes only 1.71M to 2.29M parameters. In contrast, the classic Piczak-CNN (a 2D model) requires 26M parameters yet achieves a much lower accuracy of 73.70% on UrbanSound8K.
- The Value of Disentanglement: Ablation studies revealed that while the frequency stream is generally more informative (98.17% alone on UrbanSound8K), the combination of both streams provides the optimal performance. The time-domain stream was found to be superior for rhythmic sounds (e.g., clock ticking), while the frequency-domain stream excelled at identifying sounds with discrete spectral distributions (e.g., street music).
Mathematically, the efficiency gain is clear. For an input of $W \times H$, a 1D convolution requires $E_{1D} = (H - K + 1)KW$ operations, whereas a 2D convolution requires $E_{2D} = (W - K + 1)(H - K + 1)K^2$.
Conclusion
By disentangling time and frequency features through a two-stream 1D CNN, this research demonstrates that high-performance ESC does not require massive 2D architectures. While the model currently relies on hand-crafted MFCC features, future work will explore end-to-end learning from raw waveforms and pre-training on larger datasets like Google's AudioSet to further enhance generalization in noisy, real-world environments.
Summary updated