Abstract
This paper introduces a hybrid approach to Automatic dominant Melody Estimation (AME) by integrating traditional signal processing with deep learning. By utilizing Source-Filter Non-negative Matrix Factorization (SF-NMF) to generate a musically-informed "salience" representation, the proposed Convolutional Recurrent Neural Network (CRNN) achieves state-of-the-art performance on the MedleyDB dataset. This method demonstrates that providing neural networks with musically-motivated inputs can significantly improve accuracy and data efficiency compared to learning from raw spectral data alone.
Introduction
Automatic dominant Melody Estimation (AME) is the task of identifying the fundamental frequency ($F_0$) of the lead voice or instrument in polyphonic audio. This is a complex challenge because background accompaniment often overlaps with the melody in both rhythmic and harmonic space. The core difficulty lies in finding a salience representation that makes the melody distinct from the background. While deep learning models like CNNs can learn these representations, they often require massive datasets to master basic musical concepts like harmonicity. This research explores whether a musically-informed input can give neural networks a "head start," leading to better performance with less training data.
Methodology
The proposed system utilizes a four-stage pipeline to process audio into a melody estimate:
- Pretraining with SF-NMF: Instead of raw spectrograms, the model uses SF-NMF to decompose audio into a "source" (harmonic structure), a "filter" (timbre), and background components. The resulting activation matrix serves as a salience map that highlights potential melody pitches.
- CNN Stage: This map is processed by a Convolutional Neural Network to enhance local features. The authors tested two architectures: CNN1, which reduces frequency resolution to semitones early for efficiency, and CNN2, which maintains high resolution.
- RNN Stage: A bidirectional Gated Recurrent Unit (BiGRU) models temporal dynamics, ensuring the melody follows a logical path over time rather than jumping randomly.
- Classification: A final softmax layer classifies each time frame into one of 61 semitone bins or a "non-melody" class.
Experimental Setup
The model was trained and evaluated on the MedleyDB dataset using the "Melody2" annotation, which tracks the $F_0$ of the dominant source even as the lead instrument changes. The dataset was split into 67 training tracks, 14 validation tracks, and 27 test tracks, ensuring no artist overlap between sets.
Key Results
The proposed SF-CRNN-1 model outperformed the previous state-of-the-art baseline across several key metrics.
- Accuracy: SF-CRNN-1 achieved an Overall Accuracy (OA) of 0.595 and a Raw Pitch Accuracy (RPA) of 0.756, compared to the baseline's 0.580 and 0.638, respectively.
- Efficiency: SF-CRNN-1 is highly efficient, utilizing approximately 307k parameters—significantly fewer than the baseline (~406k) or the more complex SF-CRNN-2 (~854k).
- Input Significance: When the same network was fed a standard Constant Q-Transform (CQT) instead of the SF-NMF salience map, RPA dropped from 0.538 to 0.210, proving that the SF-NMF pre-processing is the critical "secret sauce" of the system.
Discussion and Insights
The results confirm that musically-informed inputs act as powerful feature extractors, allowing simpler architectures to achieve superior results with less data. The success of CNN1 suggests that for melody estimation, the "neighborhood" of a note provides sufficient context for accurate classification. Furthermore, the system reached state-of-the-art levels without the need for heavy data augmentation, making it ideal for domains where labeled data is scarce.
Limitations and Future Work
The model currently relies on Western harmonic structures, which may not translate to music with different tuning systems. Additionally, it showed a higher Voicing False Alarm (VFA) rate, sometimes identifying a melody during silent segments due to temporal over-smoothing. Future work will investigate joint training of the SF-NMF and neural network components to optimize the decomposition specifically for the classification task.
Summary updated