End-to-end Two-dimensional Sound Source Localization With Ad-hoc Microphone Arrays

Yijun Gong, Shupei Liu, Xiao-Lei Zhang

TL;DR

This paper introduces an end-to-end deep learning approach for 2D sound source localization using ad-hoc microphone arrays, where each node only needs a single microphone. By framing localization as a classification task and employing a novel spatial-temporal attention network, the method achieves robust performance in noisy and reverberant conditions, even with varying numbers of microphone nodes.

What Problem Does This Paper Address?

Traditional sound source localization (SSL) methods often rely on a single, well-defined microphone array and primarily estimate the direction of arrival (DOA). While effective in ideal conditions, their performance degrades significantly in noisy and reverberant environments. Furthermore, these methods struggle to provide precise 2D or 3D location information, especially for sources far from the array.

The advent of ad-hoc microphone arrays – collections of randomly distributed nodes that can collaborate – offers a promising solution. However, existing deep learning approaches for ad-hoc arrays often require multiple microphones per node, fixed node configurations, or are modular, making them less practical and generalizable. This paper tackles the challenge of developing a flexible, end-to-end SSL system for ad-hoc arrays where each node is as simple as a single microphone, and the array configuration can change between training and testing.

Methods

The core innovation lies in reformulating the 2D sound source localization problem as a classification task. The indoor space is divided into a grid of local areas, and each area is represented by a one-hot code. The system takes as input the speech recordings from the ad-hoc microphone nodes and their corresponding location information, encoded as one-hot vectors. The goal is to predict the one-hot code of the local area where the sound source is located.

The proposed method, End-to-end Sound Source Localization (E2ESL), utilizes a deep neural network with a spatial-temporal attention architecture. This architecture comprises:

  • Node and Position Encoders: These modules process the acoustic features (extracted via STFT) and the one-hot encoded node positions, generating embeddings for each ad-hoc node. These encoders are shared across all nodes, promoting efficiency.
  • Spatial Layer: This layer applies multi-head attention to capture cross-channel relationships between the features from different ad-hoc nodes, effectively learning global spatial connections.
  • Fusion Layer: This layer fuses the multi-channel features from the spatial layer into a single feature representation.
  • Temporal Layer: This layer uses multi-head attention to process the temporal dependencies in the fused features, capturing how the acoustic environment evolves over time.
  • Output Layer: A final linear layer followed by a softmax function predicts the probability distribution over the local areas, indicating the most likely location of the sound source.

A key advantage of this architecture is its ability to handle an arbitrary number of microphone nodes during training and testing, a significant improvement over methods requiring fixed configurations.

Datasets

The experiments were conducted on a simulated dataset. The source speech was drawn from the TIMIT corpus. Reverberant environments were simulated using an image source model, and diffused white noise was added. The training data consisted of 81,000 samples, generated across 10 rooms of varying sizes, with each room divided into 225 local areas. For testing, 5 rooms with different sizes were used, and the number of ad-hoc nodes varied from 20 to 30.

Key Insights and Ideas

  • Framing SSL as Classification: Reimagining SSL as a classification problem simplifies the end-to-end learning process and allows for the use of powerful classification architectures.
  • One-Hot Encoding for Location: Using one-hot codes for both node and speaker locations elegantly integrates spatial information into the deep learning framework, enabling generalization to different array configurations.
  • Spatial-Temporal Attention for Robustness: The attention mechanism effectively captures complex spatial and temporal dependencies in the acoustic signals, leading to robust performance even in challenging noisy and reverberant conditions.
  • Flexibility with Ad-hoc Arrays: The architecture's ability to handle varying numbers of microphone nodes is a crucial step towards practical deployment of ad-hoc SSL systems.
  • Single Microphone per Node Simplicity: The method's effectiveness with single-microphone nodes significantly reduces hardware requirements and deployment complexity.

Key Results

The proposed E2ESL method demonstrated good performance on the simulated dataset. Notably:

  • The average Mean Absolute Error (MAE) decreased as the number of ad-hoc nodes increased, with a 6 cm improvement when using 30 nodes compared to 20 nodes.
  • Interestingly, increasing the resolution of the room grid (from 64 to 225 local areas) led to a decrease in classification accuracy but an improvement in localization performance (MAE). The MAE improved from 0.3285 meters to 0.2271 meters, while accuracy dropped from 70.01% to 52.44%. This suggests that while precise classification of the grid might be harder with finer grids, the overall localization accuracy benefits.

Limitations and Future Work

  • Simulated Data: The current evaluation is based on simulated data. Future work should involve testing the method on real-world datasets to validate its performance in practical scenarios.
  • 2D Localization: The current work focuses on 2D localization. Extending the framework to 3D localization would be a natural next step.
  • Comparison with Other Methods: The authors note that direct comparison with some existing methods is not feasible due to the requirement of single-microphone nodes in their approach. Future work could explore adaptations or comparisons with methods that can accommodate this constraint.
  • Room Size Generalization: While the training and test rooms had different sizes, further investigation into the method's generalization capabilities across a wider range of room acoustics and sizes would be beneficial.

Summary updated

BibTeX
@misc{gong2022end,
  author = {Yijun Gong and Shupei Liu and Xiao-Lei Zhang},
  title = {{End-to-end Two-dimensional Sound Source Localization With Ad-hoc Microphone Arrays}},
  year = {2022},
  eprint = {2210.08484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.08484},
}
Figure