Abstract
We show in this work that learning a rich feature extractor from scratch using only official training data is feasible. We achieve this by learning representations using a supervised contrastive learning framework. We then transfer the learned feature extractor to the sets of validation and test for few-shot evaluation. For few-shot validation, we simply train a linear classifier on the negative and positive shots and obtain a F-score of 63.46% outperforming the baseline by a large margin. We don't use any external data or pretrained model. Our approach doesn't require choosing a threshold for prediction or any post-processing technique.
Introduction: The Challenge of Bioacoustic Data Scarcity
Bioacoustic monitoring is essential for tracking wildlife, yet it faces a significant data scarcity hurdle. While recording audio is easy, labeling specific events—such as rare bird calls or whale vocalizations—is expensive and time-consuming for experts.
Few-Shot Learning (FSL) aims to solve this by enabling systems to detect new sound categories from just a few examples (e.g., five "shots"). Traditional methods like Prototypical Networks (ProtoNets) often struggle to generalize across diverse acoustic environments. This research investigates building a robust feature extractor from scratch, avoiding reliance on massive external datasets like ImageNet or AudioSet.
Methodology: Supervised Contrastive Learning
The proposed approach shifts from standard meta-learning to Transfer Learning powered by Supervised Contrastive Learning (SCL).
- SCL Framework: Unlike standard cross-entropy, SCL learns an embedding space where samples of the same class are clustered together and different classes are pushed apart. A ResNet encoder is paired with a small MLP projector to minimize contrastive loss.
- Data Augmentation: The success of SCL relies on diverse "views" of the data. The authors applied spectrogram mixing, frequency shifting, time stretching, and power gain/noise adjustments to force the model to learn generalized acoustic features.
- Few-Shot Adaptation: After training on the base set, the projector is discarded. For new tasks, a simple linear binary classifier is trained on top of the frozen or partially finetuned encoder using the provided five positive and five negative shots.
Results and Performance Comparison
The SCL-based system (Submission 2) significantly outperformed official DCASE baselines. As shown in the comparison below, the method achieved an F1-score of 63.46%, surpassing the Prototypical Networks baseline by over 33 percentage points.
Analysis: Domain Adaptation and Finetuning
A key insight from the study is that the optimal amount of finetuning depends on the acoustic characteristics of the target sound. For short, transient events (such as those in the PB dataset), freezing the encoder entirely proved most effective. Conversely, for longer, complex events (HB dataset), finetuning more layers of the ResNet yielded superior results.
This granularity suggests that while SCL provides a powerful base, the adaptation strategy must be tailored to the specific bioacoustic domain. Notably, the system achieved these results without any post-processing (like median filtering) or manual threshold tuning.
Conclusion and Future Work
This research demonstrates that learning rich features directly from task-specific data via SCL is a viable alternative to using massive pre-trained models. Future work will focus on automating the selection of finetuning depth based on the characteristics of the few-shot examples and incorporating standard post-processing techniques to further refine detection accuracy.
Summary updated