[Paper Review] DNN and CNN with Weighted and Multi-task Loss Functions for Audio Event Detection
This paper proposes a DNN and CNN-based audio event detection system with weighted and multi-task loss functions to address class imbalance and temporal structure modeling in rare audio event detection. By integrating phase-aware signal enhancement and task-specific loss functions, the system achieves an F1-score of 88.3% and error rate of 0.22 on evaluation data—significantly outperforming the DCASE 2017 baseline (64.1% F1, 0.64 error rate).
This report presents our audio event detection system submitted for Task 2, "Detection of rare sound events", of DCASE 2017 challenge. The proposed system is based on convolutional neural networks (CNNs) and deep neural networks (DNNs) coupled with novel weighted and multi-task loss functions and state-of-the-art phase-aware signal enhancement. The loss functions are tailored for audio event detection in audio streams. The weighted loss is designed to tackle the common issue of imbalanced data in background/foreground classification while the multi-task loss enables the networks to simultaneously model the class distribution and the temporal structures of the target events for recognition. Our proposed systems significantly outperform the challenge baseline, improving F-score from 72.7% to 90.0% and reducing detection error rate from 0.53 to 0.18 on average on the development data. On the evaluation data, our submission obtains an average F1-score of 88.3% and an error rate of 0.22 which are significantly better than those obtained by the DCASE baseline (i.e. an F1-score of 64.1% and an error rate of 0.64).
Motivation & Objective
- Address class imbalance in audio event detection, particularly for rare foreground events against abundant background frames.
- Improve recognition performance by jointly modeling event class distribution and temporal onsets/offsets using a multi-task learning framework.
- Enhance robustness to noise through state-of-the-art phase-aware signal enhancement in the STFT domain.
- Develop a unified multi-class detection system that detects baby cry, glass break, and gun shot events simultaneously, avoiding per-category optimization.
- Optimize inference through threshold and smoothing window tuning to maximize F-score on development data.
Proposed method
- Apply phase-aware signal enhancement using magnitude estimation from noisy STFT with clean phase reconstruction, improving input signal quality.
- Extract log Gammatone spectral coefficients as input features for both DNN and CNN models, with tailored preprocessing for each network type.
- Implement a two-stage detection pipeline: first, a binary classifier rejects background frames; second, a multi-class classifier distinguishes among baby cry, glass break, and gun shot.
- Design a weighted loss function that assigns higher penalty to false negatives (missed events) to address class imbalance in foreground/background classification.
- Introduce a multi-task loss combining cross-entropy for class prediction and L2 loss for onset/offset regression, enabling joint modeling of class and temporal structure.
- Train DNNs for 200 epochs and CNNs for 5 epochs using Adam optimizer with learning rate 1e-4, and tune inference thresholds and smoothing windows via grid search.
Experimental results
Research questions
- RQ1Can a weighted loss function improve detection performance for rare audio events by reducing false negative errors in imbalanced data?
- RQ2Does a multi-task loss that jointly optimizes for classification and temporal boundary regression enhance generalization and detection accuracy?
- RQ3How do DNNs and CNNs compare in performance when detecting human-generated (e.g., baby cry) versus non-human (e.g., glass break, gun shot) events?
- RQ4To what extent does phase-aware signal enhancement improve the robustness of deep learning models in audio event detection?
- RQ5Can a single unified multi-class system outperform category-specific models in rare audio event detection?
Key findings
- The proposed system achieved an average F1-score of 90.0% and detection error rate of 0.18 on the DCASE 2017 development set—representing a 17.3 percentage point improvement over the baseline (72.7% F1, 0.53 error rate).
- On the evaluation set, the system achieved an F1-score of 88.3% and error rate of 0.22, significantly outperforming the DCASE 2017 baseline (64.1% F1, 0.64 error rate).
- The CNN-based system outperformed the DNN-based system for human-generated baby cry events, likely due to its ability to learn invariant features across speakers.
- The DNN-based system performed better than the CNN for non-human events (glass break and gun shot), suggesting that convolutional operations may degrade performance when temporal-spectral patterns are not suitable for pooling.
- The best-performing system combined the CNN for baby cry and DNN for glass break and gun shot, demonstrating that model choice should be event-type dependent.
- The use of a smoothing window length near 0.5 event presence rate helped prevent overfitting and improved generalization on unseen data.
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.