TL;DR
This paper introduces a novel "Mask-Guided Classification" (MGC) framework that uses attention mechanisms to denoise underwater bioacoustic recordings and improve the recognition of marine mammal vocalizations. By generating "pseudo-attention masks" from spectrograms, the MGC framework effectively focuses on relevant acoustic signals, leading to more robust and accurate detection, even in noisy and challenging environments.
What Problem Does This Paper Address?
Underwater bioacoustic monitoring, crucial for understanding and protecting marine mammals, faces significant challenges. These include:
- Extreme Noise: Recordings are often contaminated by anthropogenic noise (e.g., ship traffic) and environmental sounds, making it difficult to detect faint or overlapping marine mammal calls.
- Signal Variability: Marine mammal vocalizations span a wide range of frequencies (from low-frequency moans to ultrasonic clicks) and can overlap with each other.
- Environmental Dynamics: Acoustic conditions can change drastically due to seasons, weather, and the presence of different species.
These factors make automated, reliable detection and classification of marine mammal sounds a complex task, hindering effective conservation efforts.
Methods
The core innovation is the Mask-Guided Classification (MGC) framework, which operates in several steps:
- Spectrogram Generation: Raw audio is converted into time-frequency representations (spectrograms) using the Short-Time Fourier Transform (STFT).
- Pseudo-Attention Mask Generation: A segmentation model is trained to identify and highlight regions of interest in the spectrograms, creating "pseudo-attention masks." These masks are initially binary but are then transformed into continuous "soft masks" that encode the spatial proximity of relevant information. This is achieved by calculating the Euclidean distance to the nearest signal pixel and applying a Gaussian function.
- Multi-Modal Fusion: The framework employs a multi-modal approach, fusing information from both the spectrograms and their corresponding masks. Two parallel encoding branches (one for spectrograms, one for masks) generate embeddings. These embeddings are then fused at an intermediate stage using a cross-attention mechanism. This allows the model to adaptively weigh spectro-temporal regions based on the mask's guidance.
- Denoising and Classification: The fused representation is used to guide a denoising process, suppressing background noise and enhancing biologically relevant signals. Finally, a classifier head uses this refined representation to predict the presence of different marine mammal vocalizations.
The paper also explores different fusion strategies (concatenation, gated fusion, cross-attention) and the impact of using binary versus soft masks.
Datasets
The primary dataset used is an exclusive subset from the Saguenay-St. Lawrence Marine Park (SSLMP) monitoring dataset. This dataset includes:
- Approximately 1,500 hours of continuous recordings from passive acoustic monitoring (PAM) hydrophones.
- Approximately 500 hours of visual observations from shore-based surveys (LBS).
- Species-level annotations for belugas (Delphinapterus leucas) and harbor porpoises (Phocoena phocoena).
- The subset consists of about 10,000 five-minute segments.
- The data covers a frequency range of 10 Hz to 150 kHz, capturing vessel noise and marine mammal sounds.
The paper also introduces an out-of-distribution (OOD) evaluation scenario by applying alternative acoustic transformations to the spectrograms, testing the model's generalization capabilities.
Key Insights and Ideas
- Masks as Denoising Guides: Pseudo-attention masks, even when generated automatically, can effectively guide a model to focus on relevant acoustic signals, acting as a form of attention-based denoising.
- Soft Masks Enhance Robustness: Transforming binary masks into continuous soft masks, which encode spatial proximity, significantly improves the performance of attention-based fusion mechanisms, especially in out-of-distribution scenarios.
- Cross-Attention is Key: The cross-attention fusion mechanism consistently outperforms simpler fusion methods (concatenation, gated fusion), demonstrating its ability to effectively leverage the complementary information between spectrograms and masks.
- Robustness to Distributional Shifts: The MGC framework, particularly with simpler fusion strategies like gated or concat, shows remarkable robustness to out-of-distribution data generated by alternative spectrogram transformations, unlike high-capacity baseline models that degrade significantly. This suggests MGC learns more transferable representations.
Key Results
- The Mask-Guided Classification (MGC) framework with cross-attention fusion achieved 89.7% accuracy and 89.0% macro-F1 on the in-distribution dataset using high-quality masks.
- Even with generated masks, the MGC framework with cross-attention achieved 83.7% accuracy, significantly outperforming baseline unimodal models (e.g., ViT at 78.8%).
- In the out-of-distribution (OOD) setting, MGC models with gated and concat fusion maintained stable performance, with accuracies around 0.74-0.75, while high-capacity models like ViT saw a notable drop.
- The paper demonstrates that the MGC framework consistently outperforms baseline architectures on both in-distribution and OOD data.
Limitations and Future Work
- STFT Limitations: The authors acknowledge that STFT can introduce resolution trade-offs and information loss, potentially limiting the model's ability to capture the full complexity of marine mammal vocalizations.
- Uncertainty Quantification: The study did not incorporate explicit uncertainty quantification, which is important for trustworthy ecological monitoring.
- Future Directions:
- Exploring alternative time-frequency representations.
- Improving attention mechanisms.
- Integrating methods to quantify predictive uncertainty.
- Addressing the limitations of STFT by investigating other representations.
Summary updated