Adaptive Few-Shot Learning Algorithm for Rare Sound Event Detection

Chendong Zhao, Jianzong Wang, Leilai Li, Xiaoyang Qu, Jing Xiao

Abstract

Detecting rare sound events is inherently challenging due to the scarcity of available training data. This paper introduces a novel Task-Adaptive Module (TAM) designed to enhance metric-based few-shot sound detection. By dynamically identifying task-specific acoustic features through commonality and uniqueness analysis, the proposed framework significantly improves classification performance. Experimental results on the ESC-50 and noiseESC-50 benchmarks demonstrate a nearly 7% accuracy boost over existing baselines, particularly in extreme low-data (1-shot) scenarios.

Introduction

Rare sound event detection, such as identifying glass breaking or specific wildlife calls, often suffers from a lack of sufficient training data. Few-Shot Learning (FSL) addresses this by enabling models to learn from a limited "support set." However, conventional FSL methods typically employ a static feature extractor that fails to account for the fact that different acoustic features—such as timbre, pitch, or loudness—may vary in relevance depending on the specific sounds being compared. This work introduces task-specific adaptation to improve the discriminative power of few-shot sound detection models by focusing on the features most relevant to the current classification task.

Methodology

The proposed framework integrates three key innovations to enhance few-shot learning performance:

  1. Feature Encoder with Attention: The model utilizes an encoder equipped with temporal and channel attention mechanisms, allowing it to prioritize relevant time segments and frequency bands within a sound clip.
  2. Masked Mixup Data Augmentation: To mitigate overfitting on small datasets, the authors combine SpecAugment (time/frequency masking) with Mixup (linear combination of sound samples), creating a more robust training pipeline.
  3. Task-Adaptive Module (TAM): As the central contribution, TAM consists of a Task-Adaptive-Extractor (TAE) to identify class-level commonalities and a Projector to determine task-level uniqueness. This module generates a task-specific mask that re-weights feature embeddings based on the current classification context.
Overview of the proposed framework including the Task-Adaptive Module and data augmentation pipeline.

The TAM is designed to be architecture-agnostic, meaning it can be plugged into popular few-shot frameworks like Prototypical Networks (ProtoNet) or Transductive Propagation Networks (TPN).

Experimental Setup

The model was evaluated across several benchmarks to test its versatility and robustness:

  • ESC-50: A standard environmental sound dataset containing 2,000 recordings across 50 categories.
  • noiseESC-50: A variant of ESC-50 featuring real-world background noise to evaluate performance in challenging acoustic environments.
  • AudioSet: Used for domain-mismatch evaluation, testing the model's ability to generalize from general sounds to specific "Music" and "Animal" categories.

Results and Discussion

The proposed "TA+TPN+DA" configuration (Task-Adaptive + TPN + Data Augmentation) achieved state-of-the-art performance, particularly in 1-shot scenarios. On the ESC-50 benchmark (5-way 1-shot), the model reached 81.0% accuracy, representing a 6.8% gain over the previous TPN baseline. Similar improvements were observed in noisy environments (noiseESC-50), where the task-adaptive weighting helped the model focus on target sound signatures while ignoring background interference.

Test accuracy comparison on the ESC-50 dataset for various training/test shots, highlighting the superiority of the proposed model in low-shot regimes.

Key insights from the evaluation include:

  • Contextual Feature Weighting: The effectiveness of the TAM stems from its ability to treat feature importance as relative to the current task. By looking at the entire support set at once, the model dynamically decides which acoustic properties are the "deciding factors."
  • Transductive Synergy: The module performs exceptionally well when paired with TPN, which leverages the entire query set (unlabeled test data) for more precise task adaptation.
  • Diminishing Returns with More Data: The performance gap between the proposed model and baselines narrows as the number of shots (K) increases, suggesting that the module's primary value lies in scenarios where data is at its absolute scarcest.

Conclusion

This research demonstrates that task-adaptive feature weighting is a powerful tool for rare sound event detection. While highly effective for 1-shot tasks, future work will focus on optimizing adaptation for larger support sets and exploring unsupervised adaptation techniques. The portability of the Task-Adaptive Module suggests potential applications in broader fields such as Automatic Speech Recognition (ASR).

Summary updated

BibTeX
@inproceedings{zhao2022adaptive,
  author = {Chendong Zhao and Jianzong Wang and Leilai Li and Xiaoyang Qu and Jing Xiao},
  title = {{Adaptive Few-Shot Learning Algorithm for Rare Sound Event Detection}},
  booktitle = {IJCNN},
  year = {2022},
  url = {https://openreview.net/forum?id=dml1k11dJOD},
}
Figure