Abstract
Few-shot audio event detection is a task that detects the occurrence time of a novel sound class given a few examples. In this work, we propose a system based on segment-level metric learning for the DCASE 2022 challenge of few-shot bioacoustic event detection (task 5). We make better utilization of the negative data within each sound class to build the loss function, and use transductive inference to gain better adaptation on the evaluation set. For the input feature, we find the per-channel energy normalization concatenated with delta mel-frequency cepstral coefficients to be the most effective combination. We also introduce new data augmentation and post-processing procedures for this task. Our final system achieves an f-measure of 68.74 on the DCASE task 5 validation set, outperforming the baseline performance of 29.5 by a large margin.
Introduction
Few-shot learning (FSL) is often considered the "holy grail" for bioacoustics. Researchers tracking rare species often possess only a handful of recorded clips, yet traditional deep learning models require thousands of examples to generalize. The Surrey system addresses a critical gap in existing bioacoustic FSL: the underutilization of "negative" data. In few-shot scenarios, the background noise (forest sounds, wind, or other animals) in a specific recording is as informative for defining a decision boundary as the target sound itself.
Methodology
Segment-level Metric Learning and Transductive Inference
The system utilizes a Prototypical Network backbone enhanced by segment-level metric learning. Instead of merely grouping similar positive sounds in a latent space, the model is trained to explicitly push positive segments away from negative segments found within the same audio file.
Furthermore, the system employs transductive inference, a "look-ahead" strategy where the model is optimized using both training data and unlabeled evaluation data simultaneously. This allows the feature extractor to adapt to the specific acoustic environment of the test set.
Adaptive Segment Length and Feature Engineering
Bioacoustic events vary wildly in duration, from 30ms "chips" to 5-second "trills." To handle this, the system calculates an adaptive window length based on the duration of the provided few-shot examples ($t_{max}$). This ensures that the analysis window is scaled appropriately for the target species.
For input features, the team concatenated Per-Channel Energy Normalization (PCEN) with delta Mel-Frequency Cepstral Coefficients (delta-MFCCs). PCEN effectively handles varying volumes and gain, while delta-MFCCs capture the temporal "movement" of the sound, creating a robust representation for diverse bioacoustic environments.
Results and Discussion
The Surrey system achieved a top performance of 68.74% F-measure on the DCASE validation set. This represents a staggering improvement over the official DCASE baseline of 29.5% and the Template Matching baseline of 4.28%.
Key insights from the development process include:
- The Power of Negatives: Forcing the model to distinguish between a specific call and the specific background noise of that recording makes the latent space significantly more discriminative.
- Contextual Adaptation: Transductive inference allows the model to "learn the room" of the evaluation set, leading to better adaptation than purely supervised approaches.
- Biological Realism: Moving from fixed windows to adaptive segment lengths acknowledges the reality of animal vocalizations, preventing short calls from being lost in overly large windows.
Conclusion
While the system provides a massive leap in performance, challenges remain regarding heuristic dependency in post-processing and the computational trade-offs of window sizing. Future work will focus on automating hyperparameter discovery to make the system more "plug-and-play" for field researchers. The system is fully open-sourced to support the bioacoustics community.
Summary updated