Skip to main content
QUICK REVIEW

[Paper Review] Learning How to Listen: A Temporal-Frequential Attention Model for Sound Event Detection

Yuhan Shen, Kexin He|arXiv (Cornell University)|Oct 29, 2018
Music and Audio ProcessingComputer Science12 references3 citations
TL;DR

This paper proposes a temporal-frequential attention model for sound event detection (SED) that enhances a CRNN architecture by learning to focus on critical time segments and frequency bands. By applying separate attention mechanisms for temporal and spectral dimensions, the model achieves state-of-the-art performance on the DCASE 2017 rare sound event detection challenge, attaining the lowest average error rate (0.13) and highest F-score (93.4%) on the evaluation set without model ensembling.

ABSTRACT

In this paper, we propose a temporal-frequential attention model for sound event detection (SED). Our network learns how to listen with two attention models: a temporal attention model and a frequential attention model. Proposed system learns when to listen using the temporal attention model while it learns where to listen on the frequency axis using the frequential attention model. With these two models, we attempt to make our system pay more attention to important frames or segments and important frequency components for sound event detection. Our proposed method is demonstrated on the task 2 of Detection and Classification of Acoustic Scenes and Events (DCASE) 2017 Challenge and achieves competitive performance.

Motivation & Objective

  • To address the challenge of detecting rare, short-duration sound events (e.g., babycry, glassbreak, gunshot) in long audio recordings with severe class imbalance.
  • To improve sound event detection performance by enabling deep learning models to dynamically attend to the most informative temporal segments and spectral components.
  • To develop a dual-attention mechanism—temporal and frequential—that enhances model interpretability and robustness in noisy environments.
  • To demonstrate that attention mechanisms focusing on both time and frequency dimensions outperform standard CRNNs in low-resource, imbalanced SED scenarios.

Proposed method

  • The model uses a CRNN backbone with a 128-dimensional log mel-spectrogram as input, processed through convolutional layers with batch normalization, ReLU, and dropout.
  • A temporal attention mechanism computes frame-wise attention weights using a feedforward network with ReLU activation, which are applied element-wise to CRNN outputs to emphasize important temporal segments.
  • A frequential attention mechanism computes frequency-band-specific weights using a sigmoid-activated feedforward network, which are applied to the input spectrogram to suppress irrelevant spectral components.
  • The model employs weighted cross-entropy loss with a class weight of 10 for positive samples to mitigate data imbalance in rare event detection.
  • Post-processing includes median filtering (240 ms window) and thresholding at 0.5 to generate final binary predictions for event presence.
  • The system is trained using a two-stage strategy: pre-training the baseline CRNN for 10 epochs before fine-tuning the full model for 200 epochs with a batch size of 64.

Experimental results

Research questions

  • RQ1Can a dual-attention mechanism that jointly models temporal and spectral importance improve sound event detection in rare event scenarios?
  • RQ2How does the proposed temporal-frequential attention mechanism compare to standard CRNNs in terms of generalization and robustness on imbalanced datasets?
  • RQ3What kind of patterns do the attention weights learn—do they align with actual event onsets and relevant frequency bands?
  • RQ4Can attention visualization confirm that the model learns to suppress high-frequency noise and focus on low-frequency components of target events?
  • RQ5Does the proposed method achieve competitive performance without model ensembling, especially on rare and short-duration events?

Key findings

  • The proposed temporal-frequential attention model achieves the lowest average event-based error rate (0.13) and highest F-score (93.4%) on the DCASE 2017 evaluation dataset, outperforming all other methods.
  • The addition of temporal attention alone improves baseline CRNN performance, and further integration of frequential attention yields additional gains, demonstrating the benefit of multi-dimensional attention.
  • Visualization confirms that the temporal attention mechanism assigns higher weights to segments containing target events (e.g., babycry, beep sounds), aligning with ground-truth onsets.
  • The frequential attention mechanism learns to suppress high-frequency components, acting as a low-pass filter that reduces sensitivity to high-frequency noise.
  • The model generalizes well, with only a small increase in error rate (from 0.09 to 0.13) from development to evaluation set, indicating strong robustness.
  • The model achieves state-of-the-art performance without using model ensembling, unlike top submissions in the challenge, highlighting its efficiency and generalization capability.

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.