Joint framework with deep feature distillation and adaptive focal loss for weakly supervised audio tagging and acoustic event detection

Yunhao Liang, Yanhua Long, Yijie Li, Jiaen Liang, Yu-Ping Wang · DOI

Abstract

This paper presents a robust joint framework for tackling two primary tasks in machine acoustic sensing: Audio Tagging (AT) and Acoustic Event Detection (AED). The proposed system utilizes target-events based deep feature distillation (TFD), an adaptive focal loss (AFL), and event-specific post-processing (ESP) to improve performance under weak supervision. Evaluated on the DCASE 2019 Task 4 benchmark, the framework achieved a 49.8% F1-score in event detection, significantly surpassing previous state-of-the-art methods.

Introduction

In real-world acoustic sensing, labeling audio data with precise timestamps is prohibitively expensive. Consequently, researchers often work with large amounts of unlabeled data, moderate amounts of weakly labeled data (indicating event presence without timing), and very small sets of strongly labeled data. The primary challenge lies in building models that can accurately perform Acoustic Event Detection (AED)—identifying when sounds occur—when the majority of training signals lack temporal information.

Previous "Teacher-Student" approaches attempted to transfer knowledge globally, often treating all audio frames with equal importance. This paper addresses the inefficiencies of global knowledge transfer and the difficulties of training on imbalanced datasets where certain acoustic events are significantly harder to distinguish than others.

Methodology

The proposed architecture is based on a joint Convolutional Recurrent Neural Network (CRNN). The framework introduces three novel components to enhance learning from limited strong labels.

The joint framework architecture illustrating the Teacher-Student model and Deep Feature Distillation (TFD).

Target-events based deep Feature Distillation (TFD)

Standard distillation techniques typically attempt to match the teacher's entire feature map. In contrast, TFD leverages strong labels to focus the student model's learning. The student is forced to mimic the teacher's feature representations only during frames where a target event is active. This selective masking ensures that "learning energy" is concentrated on informative acoustic signatures rather than background noise or silence.

Adaptive Focal Loss (AFL) and Two-Stage Training

To handle class imbalance and varying event difficulty, the authors implement a curriculum-based training strategy:

  1. Stage 1: The model is initialized using standard cross-entropy loss to learn basic acoustic features.
  2. Stage 2: The loss function switches to an Adaptive Focal Loss. This dynamically down-weights "easy" events that the model has already mastered, forcing the network to prioritize "hard" examples (e.g., distinguishing between a vacuum cleaner and running water).

CNN Block Structure

The feature extraction backbone consists of multiple CNN blocks. Each block follows a specific sequence to ensure stable training and effective feature propagation.

Detailed view of the internal components of a single CNN block.

Event-Specific Post-Processing (ESP)

Standard systems often use a uniform median filter for temporal smoothing. However, acoustic events vary naturally in duration (e.g., a "clink of dishes" is much shorter than "speech"). ESP calculates unique filter window sizes for each of the 10 categories based on the statistical distribution of their durations in the training set, improving the temporal precision of the final predictions.

Experimental Setup

The study utilizes the DCASE 2019 Task 4 dataset, which focuses on domestic environment sounds across 10 categories, including Speech, Dog, Cat, Alarm/bell, Dishes, Frying, Blender, Running water, Vacuum cleaner, and Electric shaver. The dataset comprises 1,473 weakly labeled clips, 13,390 unlabeled clips, and 2,045 synthetic strongly labeled clips.

Results and Discussion

The proposed framework demonstrated superior performance compared to the DCASE 2019 baseline and the previous top-ranked "Guided Learning" system.

  • Acoustic Event Detection (Event-F1): The system achieved 49.8%, a substantial improvement over the 25.8% baseline and the 40.5% achieved by previous state-of-the-art methods.
  • Audio Tagging (AT-F1): The model reached 81.2%, significantly higher than the previous best of 70.2%.

Analysis of the confusion matrix revealed that while the model is highly accurate for distinct sounds like "Dog" and "Speech," it still faces challenges with acoustically similar classes like "Electric Shaver" and "Vacuum Cleaner."

Conclusion

The integration of selective distillation, adaptive loss functions, and physically-informed post-processing provides a powerful framework for weakly supervised audio tasks. Future work will address data imbalance issues in ESP for rare classes and investigate the generalizability of these techniques to non-domestic environments.

Summary updated

BibTeX
@inproceedings{liang2022joint,
  author = {Yunhao Liang and Yanhua Long and Yijie Li and Jiaen Liang and Yu-Ping Wang},
  title = {{Joint framework with deep feature distillation and adaptive focal loss for weakly supervised audio tagging and acoustic event detection}},
  booktitle = {Digital},
  year = {2022},
  doi = {10.1016/j.dsp.2022.103446},
}
Figure