[Paper Review] Attention based Convolutional Recurrent Neural Network for Environmental Sound Classification
This paper proposes an attention-based convolutional recurrent neural network (ACRNN) for environmental sound classification, integrating frame-level attention with a CNN-RNN architecture to focus on semantically relevant and salient frames. The method achieves state-of-the-art accuracy of 93.7% on ESC-10 and 86.1% on ESC-50, significantly outperforming prior models by effectively filtering silent and irrelevant frames through attention mechanisms.
Environmental sound classification (ESC) is a challenging problem due to the complexity of sounds. The ESC performance is heavily dependent on the effectiveness of representative features extracted from the environmental sounds. However, ESC often suffers from the semantically irrelevant frames and silent frames. In order to deal with this, we employ a frame-level attention model to focus on the semantically relevant frames and salient frames. Specifically, we first propose an convolutional recurrent neural network to learn spectro-temporal features and temporal correlations. Then, we extend our convolutional RNN model with a frame-level attention mechanism to learn discriminative feature representations for ESC. Experiments were conducted on ESC-50 and ESC-10 datasets. Experimental results demonstrated the effectiveness of the proposed method and achieved the state-of-the-art performance in terms of classification accuracy.
Motivation & Objective
- To address the challenge of silent and semantically irrelevant frames in environmental sound classification.
- To improve feature representation by integrating frame-level attention into a CNN-RNN architecture.
- To achieve state-of-the-art performance on public ESC datasets using only spectrogram features, without raw audio fusion.
- To investigate the optimal layer for applying attention in the network architecture.
Proposed method
- The model uses Log-Gammatone spectrograms as input, extracted via STFT and a 128-band Gammatone filter bank.
- A convolutional recurrent neural network (CRNN) is designed with two 1D convolutional layers followed by bidirectional GRUs to capture spectro-temporal and sequential features.
- A frame-level attention mechanism is applied to selectively emphasize relevant frames, computed from the hidden states of the GRUs.
- The attention mechanism is evaluated at multiple layers (l2, l4, l6, l8, l10), with the highest performance achieved when applied at the final RNN layer (l10).
- Data augmentation via time stretch, pitch shift, and mixup is applied to improve generalization and robustness.
- The final architecture combines CNN feature extraction, bidirectional GRU temporal modeling, and attention-based frame selection in an end-to-end trainable framework.
Experimental results
Research questions
- RQ1Where in the network architecture does applying frame-level attention yield the highest performance gain?
- RQ2Can attention mechanisms effectively suppress silent and irrelevant frames in environmental sound classification?
- RQ3Does integrating attention into both CNN and RNN layers improve classification accuracy compared to standard CRNNs?
- RQ4How does the proposed ACRNN compare to state-of-the-art models that use raw audio or multi-stream features?
Key findings
- The ACRNN achieved a state-of-the-art classification accuracy of 93.7% on the ESC-10 dataset and 86.1% on the ESC-50 dataset, outperforming existing models.
- Applying attention at the final RNN layer (l10) yielded the highest accuracy, with a 0.7% absolute improvement on ESC-10 and 1.5% on ESC-50 compared to no attention.
- The attention mechanism improved performance even when combined with data augmentation, showing robustness and effectiveness in filtering irrelevant frames.
- The model achieved superior results using only spectrogram features, while models like WaveMsNet and Multi-Stream CNN required fusion of raw audio and spectrogram inputs.
- Confusion matrix analysis revealed high accuracy (100%) for Church bells and lower accuracy (52.5%) for Helicopter, with misclassification mainly due to acoustic similarity with Airplane.
- Applying attention at early CNN layers (e.g., l2) also improved performance slightly, but not as effectively as at the RNN layers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.