Abstract
Sound Event Detection and Audio Classification tasks are traditionally addressed through time-frequency representations of audio signals such as spectrograms. However, the emergence of deep neural networks as efficient feature extractors has enabled the direct use of audio signals for classification purposes. In this paper, we attempt to recognize musical instruments in polyphonic audio by only feeding their raw waveforms into deep learning models. Various recurrent and convolutional architectures incorporating residual connections are examined and parameterized in order to build end-to-end classifiers with low computational cost and only minimal preprocessing. We obtain competitive classification scores and useful instrument-wise insight through the IRMAS test set, utilizing a parallel CNN-BiGRU model with multiple residual connections, while maintaining a significantly reduced number of trainable parameters.
Introduction
Traditionally, Audio Signal Processing has relied on time-frequency representations like spectrograms or Constant-Q Transforms (CQT). These act as visual maps of sound, allowing standard image-recognition AI to process audio. However, creating these representations is computationally expensive and requires manual feature engineering. This research explores a shift toward direct raw waveform processing, asking whether a neural network can learn features directly from high-dimensional, noisy 1D signals, particularly in the challenging context of polyphonic music where multiple instruments overlap.
Methodology
The researchers developed a lightweight Convolutional Recurrent Neural Network (CRNN) to classify instruments. The architecture balances spatial feature extraction with temporal context modeling:
- 1D Convolutional Cells: These use 1D filters to capture local patterns, such as the "attack" of a note, directly from the waveform.
- Residual Connections (RFCN): Skip connections allow low-level signal information to flow deeper into the network, preventing gradient degradation.
- Hybrid CRNN: The optimal model combines CNN cells with Bidirectional Gated Recurrent Units (BiGRU) to handle long-term temporal dependencies in music.
The study utilized the IRMAS (Instrument Recognition in Musical Audio Signals) dataset, training on 6,705 monophonic snippets and testing on 2,355 polyphonic tracks across 11 instrument classes.
Key Results and Insights
The proposed Residual FCN-BiGRU model achieved an F1-macro score of 0.543, surpassing previous state-of-the-art waveform models. Remarkably, this was achieved with only 1.07 million parameters, a 20-fold reduction compared to previous top-performing architectures (24.3 million parameters).
Waveforms vs. Spectrograms
A critical finding was that raw waveforms significantly outperformed traditional spectrogram-based methods for specific instrument families, particularly brass and woodwinds. For instance, the F1-score for the clarinet (cla) improved by 14% when using waveforms. This suggests that waveforms better capture the unique temporal signatures of wind instruments that may be blurred in frequency-domain representations.
Conversely, the model still faces challenges with percussive and harmonic instruments like the piano (pia) and acoustic guitar (gac). These instruments currently remain better served by CQT spectrograms, likely because their identity is more closely tied to specific frequency relationships than temporal wave shapes.
Conclusion
This work demonstrates that deep learning models can effectively identify musical instruments by "listening" directly to raw audio waveforms, achieving state-of-the-art results with high efficiency. Future research will focus on multi-modal learning to fuse waveform and spectrogram data, improving robustness to background noise, and implementing attention mechanisms to better isolate instruments within dense polyphonic mixes.
Summary updated