Skip to main content
QUICK REVIEW

[Paper Review] Environmental Sound Classification with Parallel Temporal-spectral Attention

Helin Wang, Yuexian Zou|View|Dec 14, 2019
Music and Audio ProcessingComputer Science9 references8 citations
TL;DR

This paper proposes a parallel temporal-spectral attention mechanism for convolutional neural networks (CNNs) to improve environmental sound classification by separately attending to relevant time frames and frequency bands. By applying temporal and spectral attention in parallel branches, the method enhances discriminative feature learning, achieving state-of-the-art accuracy of 95.8% on ESC-10, 88.6% on ESC-50, and improved robustness to noise across multiple datasets.

ABSTRACT

Convolutional neural networks (CNN) are one of the best-performing neural network architectures for environmental sound classification (ESC). Recently, temporal attention mechanisms have been used in CNN to capture the useful information from the relevant time frames for audio classification, especially for weakly labelled data where the onset and offset times of the sound events are not applied. In these methods, however, the inherent spectral characteristics and variations are not explicitly exploited when obtaining the deep features. In this paper, we propose a novel parallel temporal-spectral attention mechanism for CNN to learn discriminative sound representations, which enhances the temporal and spectral features by capturing the importance of different time frames and frequency bands. Parallel branches are constructed to allow temporal attention and spectral attention to be applied respectively in order to mitigate interference from the segments without the presence of sound events. The experiments on three environmental sound classification (ESC) datasets and two acoustic scene classification (ASC) datasets show that our method improves the classification performance and also exhibits robustness to noise.

Motivation & Objective

  • To address the limitation of existing attention mechanisms in CNNs for environmental sound classification, which often neglect spectral variations despite focusing on temporal dynamics.
  • To explicitly model the importance of different frequency bands and time frames in spectrograms to improve feature discrimination.
  • To mitigate interference between temporal and spectral features by using a parallel architecture for independent attention computation.
  • To enhance model robustness to noise, especially in weakly labeled scenarios where sound event boundaries are not provided.
  • To validate the method's effectiveness on both environmental sound classification (ESC) and acoustic scene classification (ASC) tasks.

Proposed method

  • A parallel temporal-spectral attention mechanism is designed, with two separate branches: one for temporal attention and one for spectral attention, applied to the same feature map.
  • Temporal attention computes attention weights across time frames using global average pooling and a learnable weight vector, focusing on relevant temporal segments.
  • Spectral attention computes attention weights across frequency bands using global average pooling along the time axis, inspired by human auditory cortex frequency-selective filtering.
  • The attention maps are applied via element-wise multiplication to the input feature map, enhancing relevant time-frequency regions while suppressing noise and irrelevant components.
  • The parallel structure prevents interference between temporal and spectral attention branches, improving stability and robustness under noisy conditions.
  • The mechanism is integrated into a CNN architecture (TS-CNN10) and can be applied to any convolutional layer, with ablation studies showing performance gains at deeper layers.

Experimental results

Research questions

  • RQ1Can a parallel temporal-spectral attention mechanism improve feature representation in CNNs for environmental sound classification?
  • RQ2Does separately attending to time frames and frequency bands lead to better performance than joint or sequential attention mechanisms?
  • RQ3How does the proposed method perform under noisy conditions, especially when sound event boundaries are not available?
  • RQ4Can the attention mechanism be generalized to other audio classification tasks, such as acoustic scene classification?
  • RQ5Does the parallel architecture reduce interference between temporal and spectral feature learning, leading to improved robustness?

Key findings

  • The proposed TS-CNN10 model achieves a state-of-the-art accuracy of 95.8% on the ESC-10 dataset, surpassing human-level performance.
  • On the ESC-50 dataset, the method achieves 88.6% accuracy, a 3.4% improvement over the baseline CNN10 under clean conditions.
  • Under noisy conditions, TS-CNN10 shows significant robustness, with a 5.4% accuracy gain over CNN10 at 10 dB SNR with Gaussian noise.
  • The method improves performance on the DCASE 2018 and 2019 ASC benchmark datasets, confirming its generalization to acoustic scene classification.
  • Visualization results show that TS-CNN10 effectively suppresses noise-activated regions in feature maps, while preserving activation in relevant time-frequency regions.
  • Ablation studies confirm that the parallel structure outperforms concatenated or sequential attention variants, with deeper layers benefiting most from the attention mechanism.

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.