TLDR: This research explores transfer learning strategies for musical onset detection in the Afro-Brazilian Maracatu tradition, which features complex rhythmic patterns. By fine-tuning Temporal Convolutional Network (TCN) architectures—one pre-trained for onset detection (intra-task) and another for beat tracking (inter-task)—using only 5-second annotated snippets per instrument, the study achieves significant performance improvements. The inter-task adaptation is particularly effective for time-keeping instruments whose onsets align with beat positions. The findings highlight the importance of instrument-specific adaptation and offer an efficient human-in-the-loop methodology that minimizes annotation effort, contributing to more inclusive music information retrieval tools for underrepresented musical traditions.
Accurately identifying the precise moment a musical note begins, known as musical onset detection, is a fundamental challenge in audio signal processing. This task is crucial for various Music Information Retrieval (MIR) applications, including rhythmic analysis, score following, and music segmentation. While significant advancements have been made, particularly with neural network architectures like Convolutional Neural Networks (CNNs), challenges persist, especially in detecting subtle onsets and generalizing to diverse musical traditions.
Current supervised learning models often struggle with non-Western musical traditions or rare instruments due to insufficient representation in existing datasets. Addressing these data gaps requires extensive and costly annotation efforts, which demand specialized cultural and domain expertise. Furthermore, manual labeling of onsets can be prone to human error and inconsistencies, making the process even more complex.
A recent study explores a user-driven transfer learning approach to enhance musical onset detection, specifically focusing on the Afro-Brazilian Maracatu tradition. Maracatu de baque solto, a vibrant carnival performance from Pernambuco, Northeast Brazil, features complex rhythmic patterns and unique instrumental acoustic characteristics that pose significant challenges for conventional models. The rhythmic core of Maracatu, the “terno” ensemble, comprises five percussion instruments: cuica, gonge-lo, tarol, mineiro, and tambor-hi. These instruments have distinct waveform shapes and intricate rhythms, making accurate onset detection difficult.
The Transfer Learning Approach
The research adapts a deep neural network for each instrument in the Maracatu ensemble, using only a short 5-second annotated snippet per instrument for fine-tuning. This human-in-the-loop methodology minimizes annotation effort and allows for rapid adaptation cycles, yielding instrument-specific networks optimized for their unique acoustic properties. The study employs Temporal Convolutional Network (TCN)-based models, known for their efficient retraining capabilities.
Two distinct transfer learning scenarios were investigated:
-
Onset-to-Onset (Intra-task): This scenario uses a TCN model initially trained for onset detection. The goal is to fine-tune this model to better recognize onsets in Maracatu instruments.
-
Beat-to-Onset (Inter-task): This novel approach adapts a TCN model originally trained for beat tracking to perform onset detection. Given the inherent relationship between beats and onsets, this adaptation leverages the typically broader training data available for beat tracking models, framing it as a domain adaptation problem.
The researchers systematically evaluated layer-wise retraining strategies, examining the effectiveness of freezing different layer groups within the 15-layer TCN architectures to identify optimal configurations for Maracatu onset detection. This comprehensive evaluation aimed to understand feature transferability between related rhythm analysis tasks.
Key Findings and Improvements
The study demonstrated significant improvements over baseline performance in both transfer learning settings. In the onset-to-onset scenario, F1 scores reached up to 0.998, with notable gains for time-keeping instruments like cuica and gonge-lo, where F1 improvements exceeded 50 percentage points. Even for expressive instruments, which already had higher baseline scores, adaptation consistently improved performance.
The beat-to-onset cross-task adaptation proved particularly effective for time-keeping instruments. Their onsets naturally align with beat positions, allowing the pre-trained beat-tracking model’s rhythmic representations to be highly beneficial. While voicing instruments also saw improvements, the gains were more pronounced for time-keeping instruments, with performance nearly identical to the onset-to-onset scenario for cuica and gonge-lo.
A crucial insight from the research is that the optimal fine-tuning configuration varies by instrument, highlighting the importance of instrument-specific adaptation strategies. This challenges the assumption that only layers closest to the musical surface or the output layer would require recalibration for instrument-specific optimization.
Also Read:
- Unlocking Piano Expression: A New Model for Continuous Sustain Pedal Analysis
- Real-World Audio Fingerprinting: A New Approach to Robust Song Recognition
Implications for Music Information Retrieval
This research offers an efficient human-in-the-loop methodology that minimizes annotation effort while maximizing performance. It demonstrates that fine-tuning consistently enhances performance, making it valuable for achieving high accuracy in underrepresented music genres. The ability to effectively adapt models trained on beat-tracking for onset detection, especially for time-keeping instruments, addresses limited data availability for non-mainstream instruments.
The findings contribute to the development of more inclusive music information retrieval tools applicable beyond Western musical contexts, paving the way for more robust and adaptable systems for analyzing diverse musical traditions. For more detailed information, you can refer to the full research paper: Towards Human-in-the-Loop Onset Detection: A Transfer Learning Approach for Maracatu.


