Skip to main content
QUICK REVIEW

[Paper Review] Sound Event Detection of Weakly Labelled Data with CNN-Transformer and Automatic Threshold Optimization

Qiuqiang Kong, Yong Xu|View|Dec 10, 2019
Music and Audio ProcessingComputer Science47 references5 citations
TL;DR

This paper proposes a CNN-Transformer model for sound event detection (SED) on weakly labelled audio data, combining clip-wise training with an automatic threshold optimization method to improve performance. The approach achieves state-of-the-art F1 scores of 0.646 for audio tagging and 0.584 for SED by optimizing thresholds via a two-stage process, outperforming empirical thresholding and prior methods.

ABSTRACT

Sound event detection (SED) is a task to detect sound events in an audio recording. One challenge of the SED task is that many datasets such as the Detection and Classification of Acoustic Scenes and Events (DCASE) datasets are weakly labelled. That is, there are only audio tags for each audio clip without the onset and offset times of sound events. \qk{We compare segment-wise and clip-wise training for SED that is lacking in previous works. We propose a convolutional neural network transformer (CNN-Transfomer) for audio tagging and SED, and show that CNN-Transformer performs similarly to a convolutional recurrent neural network (CRNN)}. Another challenge of SED is that thresholds are required for detecting sound events. Previous works set thresholds empirically, and are not an optimal approaches. To solve this problem, we propose an automatic threshold optimization method. The first stage is to optimize the system with respect to metrics that do not depend on thresholds, such as mean average precision (mAP). The second stage is to optimize the thresholds with respect to metrics that depends on those thresholds. Our proposed automatic threshold optimization system achieves a state-of-the-art audio tagging F1 of 0.646, outperforming that without threshold optimization of 0.629, and a sound event detection F1 of 0.584, outperforming that without threshold optimization of 0.564.

Motivation & Objective

  • To address the challenge of sound event detection (SED) on weakly labelled data, where only clip-level tags are available without onset/offset times.
  • To compare segment-wise and clip-wise training strategies for SED and audio tagging (AT) in the context of weakly labelled data.
  • To develop a novel automatic threshold optimization method that improves SED and AT performance beyond empirical threshold selection.
  • To evaluate the effectiveness of the CNN-Transformer architecture in capturing long-range temporal dependencies compared to CRNNs.
  • To achieve state-of-the-art performance on the DCASE 2017 Task 4 dataset for weakly supervised SED and AT.

Proposed method

  • Proposes a CNN-Transformer architecture that combines convolutional feature extraction with self-attention mechanisms to model long-range temporal dependencies in audio spectrograms.
  • Employs clip-wise training, where entire audio clips are used as input without splitting into segments, to preserve global context.
  • Introduces a two-stage automatic threshold optimization: first optimize model parameters using threshold-agnostic metrics like mAP, then optimize thresholds using threshold-dependent metrics like F1.
  • Uses a validation set to tune thresholds via grid search or optimization algorithms, selecting thresholds that maximize F1 on the validation split before testing on the evaluation set.
  • Applies sigmoid activation on the final layer outputs to obtain class-wise probability scores, which are thresholded to predict event presence.
  • Evaluates performance using standard metrics: mean average precision (mAP), F1-score, and error rate (ER) for both AT and SED tasks.

Experimental results

Research questions

  • RQ1How does clip-wise training compare to segment-wise training in terms of performance for weakly supervised SED and audio tagging?
  • RQ2Can a CNN-Transformer model achieve performance comparable to CRNNs in SED while enabling parallel computation?
  • RQ3Does automatic threshold optimization significantly improve F1 scores in audio tagging and sound event detection compared to fixed empirical thresholds?
  • RQ4Which sound classes are most and least detectable, and how does threshold optimization affect their performance?
  • RQ5Can the proposed method achieve state-of-the-art results on the DCASE 2017 Task 4 benchmark for weakly labelled SED?

Key findings

  • The CNN-Transformer model achieves an audio tagging F1 score of 0.646 on the evaluation set, outperforming the baseline without threshold optimization (0.629).
  • The SED system with automatic threshold optimization achieves an F1 score of 0.584, improving upon the non-optimized version (0.564).
  • The automatic threshold optimization reduces the error rate (ER) from 0.78 to 0.68 on the evaluation set, demonstrating significant improvement in SED performance.
  • The clip-wise training strategy achieves an mAP of 0.650 for audio tagging and an ER of 0.68 for SED, showing strong performance on the DCASE 2017 dataset.
  • The CNN-Transformer performs similarly to CRNN-based models but enables parallel computation, offering a computational advantage.
  • The method achieves state-of-the-art performance on the DCASE 2017 Task 4 benchmark, surpassing previous methods including ensemble systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.