Abstract
We propose a simple recurrent model for detecting rare sound events, when the time boundaries of events are available for training. Our model optimizes the combination of an utterance-level loss, which classifies whether an event occurs in an utterance, and a frame-level loss, which classifies whether each frame corresponds to the event when it does occur. The two losses make use of a shared vectorial representation the event, and are connected by an attention mechanism. We demonstrate our model on Task 2 of the DCASE 2017 challenge, and achieve competitive performance.
Introduction
Detecting rare sound events—such as a window shattering or a baby crying—within complex acoustic environments is a critical task for audio monitoring systems. This problem requires both classification (determining if an event occurred in a clip) and localization (identifying the specific onset and offset times).
Traditional approaches often rely on segment-based models that require extensive hyperparameter tuning or frame-based models that necessitate complex post-processing heuristics to aggregate individual frame predictions into coherent event detections. This research proposes an elegant, end-to-end approach that bridges the gap between individual audio frames and the entire sound clip.
Methodology
The proposed model utilizes a dual-objective learning strategy powered by an attention mechanism to bridge frame-level and utterance-level representations.
Dual-Objective Learning and Attention
The model optimizes two simultaneous objectives: a frame-level loss to ensure accurate identification of temporal boundaries, and an utterance-level loss to determine the presence of the target sound within the entire clip. These objectives share a common event vector ($w$), which serves as a classifier for both individual frames and the aggregated utterance representation.
Instead of simple temporal averaging, the model employs an attention mechanism to weight frames based on their relevance to the target sound. This creates a summary vector that represents the entire utterance, effectively focusing the model on the most informative parts of the audio signal.
Multi-resolution RNNs
To accommodate sound events of varying durations, a multi-resolution feature extractor was developed. By subsampling data after each RNN layer, higher layers observe the audio at coarser resolutions. This allows the network to capture both transient, sharp sounds (e.g., gunshots) and longer, evolving acoustic patterns (e.g., baby crying) more effectively than standard deep RNNs.
Experimental Results
The model was evaluated on the DCASE 2017 Challenge (Task 2) dataset, which includes 15 different acoustic scenes and three target event categories: baby crying, glass breaking, and gunshots.
Performance Analysis
The multi-resolution architecture consistently outperformed standard uni-directional and bi-directional RNNs. On the development set, the model achieved an average Error Rate (ER) of 0.11, significantly outperforming the DCASE baseline (0.53) and approaching the top-performing challenge entry (0.07).
As shown in the figure above, the multi-resolution model (red line) generally maintains lower error rates across different weighting factors ($\alpha$) for the dual loss, particularly in the "babycry" category. The model also maintained high F1-scores (above 90% on the development set), indicating a strong balance between precision and recall.
Conclusion
This work demonstrates that a simple, end-to-end recurrent model can effectively detect rare sound events by combining frame-level and utterance-level objectives through attention. The multi-resolution approach provides robustness across different sound types without the need for complex heuristics. Future work will explore scaling this architecture to handle multiple overlapping sound events and larger, more diverse datasets.
Summary updated