Abstract
Music, speech, and acoustic scene sound are often handled separately in the audio domain because of their different signal characteristics. However, as the image domain grows rapidly by versatile image classification models, it is necessary to study extensible classification models in the audio domain as well. In this study, we approach this problem using two types of sample-level deep convolutional neural networks that take raw waveforms as input and uses filters with small granularity. One is a basic model that consists of convolution and pooling layers. The other is an improved model that additionally has residual connections, squeeze-and-excitation modules and multi-level concatenation. We show that the sample-level models reach state-of-the-art performance levels for the three different categories of sound. Also, we visualize the filters along layers and compare the characteristics of learned filters.
Introduction
Traditionally, audio classification relies on transforming raw signals into time-frequency representations, such as Mel-spectrograms. While effective, this approach requires "hand-crafting" features and making sub-optimal guesses about window sizes and frequency resolutions. A major challenge in moving to end-to-end raw waveform models is phase invariance: a periodic sound wave can start at any point in its cycle, making it difficult for standard CNNs with large filters to learn consistent patterns. This paper investigates whether a "sample-level" approach—using extremely small filters—can overcome these hurdles to provide a universal architecture for all types of sound.
Methods
The authors propose two primary architectures designed to handle raw audio input at a granular level:
- SampleCNN: Inspired by VGG-style architectures, this model stacks 1D convolutional layers with very small filters (size 2 or 3) and max-pooling. By using small granularities at the bottom layers, the network can learn to be invariant to small phase shifts.
- ReSE-2-Multi: An enhanced version incorporating modern deep learning techniques: Residual Connections for deeper training, Squeeze-and-Excitation (SE) Modules for channel-wise attention, and Multi-level Concatenation to combine low-level textures with high-level semantic abstractions.
Experiments and Results
The models were evaluated across three distinct domains: Music (MagnaTagATune), Speech (Google Speech Commands), and Scene Sound (DCASE 2017 Task 4). To test for universality, all datasets were resampled to a unified 16kHz.
The ReSE-2-Multi model demonstrated high versatility:
- Music: Achieved an AUC of 0.9091, rivaling state-of-the-art performance.
- Speech: Reached 86% accuracy, comparable to specialized speech models.
- Scene Sound: Achieved a 45.1% F-score, outperforming standard Convolutional Recurrent Neural Network (CRNN) baselines.
Filter Visualization and Insights
Through activation maximization, the authors visualized the learned filters. They found that the first few layers effectively learn to act like a Mel-filterbank, essentially "inventing" a spectrogram tailored to the specific data domain. Visualizations also revealed domain-specific adaptations; for instance, music filters were more sensitive to low-frequency content compared to speech filters.
Conclusion
Sample-level CNNs prove to be a promising path toward true end-to-end audio classification. By using small filters to address phase invariance, these models achieve high performance across diverse audio tasks without domain-specific feature engineering. Future work may focus on handling higher sample rates and improving the interpretability of deeper multi-level layers.
Summary updated