TL;DR
This paper explores the use of Convolutional Neural Networks (CNNs) for automatic drum transcription (ADT), comparing two main strategies: a hybrid approach combining CNN-based onset detection with Non-negative Matrix Deconvolution (NMD), and a purely CNN-based method using individual networks for each drum instrument. The research demonstrates that a fully CNN-based approach significantly outperforms the hybrid method, especially when using multi-channel spectrograms as input.
What Problem Does This Paper Address?
Automatic drum transcription (ADT) is a challenging task within the broader field of music transcription. The goal is to convert a drum performance in an audio signal into a symbolic representation, akin to a musical score. This is more complex than transcribing monophonic music due to the overlapping nature of sounds from different drum instruments and the presence of harmonic instruments. Existing methods often fall into two categories: segmenting and classifying audio, or separating instruments and then detecting their onsets. While various approaches exist, including Hidden Markov Models (HMMs) and Recurrent Neural Networks (RNNs), the authors investigate the potential of Convolutional Neural Networks (CNNs) for this task, aiming to improve accuracy and efficiency.
Methods
The paper presents two primary CNN-based strategies for ADT:
- Hybrid Approach (CNN Onset Detection + NMD Transcription): This method first uses a CNN to detect "qualified onsets" – drum onsets that meet specific criteria. These detected onsets then serve as input to a Non-negative Matrix Deconvolution (NMD) algorithm, which is detailed in prior work. The NMD algorithm decomposes the audio signal into a dictionary of instrument patterns and their activations. This approach aims to leverage the strengths of both CNNs for precise onset detection and NMD for instrument identification.
- Purely CNN-Based Approach (Individual Instrument Detectors): In this strategy, the authors train three separate CNNs, each dedicated to detecting a specific drum instrument (bass drum, snare drum, hi-hat). This allows for specialized learning and potentially better performance for each instrument. The paper also explores different input representations for the CNNs, including single-channel and multi-channel mel spectrograms derived from various Short-Time Fourier Transform (STFT) configurations.
Key methodological aspects include:
- Input Representations: Comparison of single-channel mel spectrograms with multi-channel mel spectrograms (MCMS), which consist of multiple spectrograms with different time-frequency resolutions.
- Loss Functions: Evaluation of binary cross-entropy with sigmoid output units versus mean square error with ReLU output units for training the CNNs.
- Onset Broadening: A technique where target onsets are represented by a sequence of three ones, rather than a single point, to improve training stability and results.
Datasets
The research utilizes two primary datasets:
- RWC Dataset: Used for initial training and evaluation of CNN configurations. It's a polyphonic music database with MIDI annotations. The authors selected Pop and Jazz genres and augmented it with recordings of individual instruments from the SMT-Drums dataset. A small hold-out test set from the synthetic RWC database was also used.
- ENST-Drums Dataset: This is the primary dataset for evaluating the performance of the proposed ADT methods. It comprises multi-channel recordings from three different drummers and drum kits, with ground truth annotations for percussive instruments. The evaluation employs a cross-validation scheme, training on two drummers and testing on the third.
Key Insights and Ideas
- CNNs Excel at Drum Transcription: The paper strongly suggests that CNNs, particularly when used in a dedicated instrument-detection capacity, are superior to hybrid approaches combining CNNs with traditional methods like NMD for drum transcription.
- Multi-Channel Spectrograms are Key: The multi-channel mel spectrogram (MCMS) representation, which captures different time-frequency resolutions, significantly improves detection performance on the ENST-Drums dataset compared to single-channel spectrograms. This indicates that richer input representations are crucial for robust drum event detection.
- Specialization Outperforms Generalization: Training individual CNNs for each drum instrument yields better results than a single CNN trained to detect all drum onsets or a hybrid approach. This highlights the benefit of task-specific models.
- Loss Function Matters: Binary cross-entropy with sigmoid activation generally outperformed mean square error with ReLU activation for onset detection tasks, suggesting that a probabilistic framing is more suitable.
- Bass Drum Challenges: The bass drum presents a particular challenge, with performance varying significantly across drummers. This is attributed to differences in signal energy and onset prominence, suggesting that CNNs might be too complex for certain subtle instrument sounds, leading to overfitting.
Key Results
- Onset Detection Performance: The CNN-based onset detection achieved F-measures above 90% for the main percussive instruments on the RWC dataset. On the ENST-Drums dataset, the MCMS representation improved performance to nearly 93.5% F-measure, a significant gain over single-channel spectrograms.
- Hybrid vs. Pure CNN: The purely CNN-based approach (individual instrument detectors) significantly outperformed the hybrid CNN+NMD method. For instance, the NMD-fed-by-CNN-onset-detector method achieved an F-measure of 68.9% for bass drum, while individual CNNs achieved much higher scores (e.g., 81.5% for bass drum with normalization).
- Instrument-Specific Performance: The CNNs achieved competitive results for snare drum, outperforming previous methods. However, performance for bass drum and hi-hat was slightly lower than some benchmarks when using the pure CNN approach without specific normalization.
- Normalization Impact: Applying time normalization to the input data improved bass drum detection significantly (F-measure rising from 45% to 67.7% for drummer 1), though it slightly degraded performance for snare and hi-hat.
Limitations and Future Work
- Bass Drum Overfitting: The paper acknowledges that the CNN model, while effective for general drum detection, might be too complex for certain instruments like the bass drum, leading to overfitting and reduced recall, especially for drummers with distinct signal characteristics.
- Comparison with Multi-Label CNNs: The authors suggest that further investigation is needed to compare their single-label (instrument-specific) CNN detectors with multi-label CNN detectors that aim to detect multiple instruments simultaneously.
- Normalization for Bass Drum: While time normalization improved bass drum detection, it had a slight negative impact on other instruments. Future work could explore more sophisticated normalization techniques or model architectures to address this.
- Generalization to Other Drummers: The observed performance variations across drummers highlight the need for models that generalize better to diverse playing styles and instrument timbres.
Summary updated