Learning to localise sounds with spiking neural networks

Dan F. M. Goodman, Romain BretteNeurIPS 2010

Figuring out exactly where a sound is coming from using only two ears is one of the most complex tasks in auditory processing. In this paper, researchers Dan F. M. Goodman and Romain Brette present a biologically inspired approach to solving this problem. They developed a spiking neural network (SNN) that learns to localize sounds in 3D space without any prior knowledge of the listener's head shape or ear geometry. By detecting "synchrony patterns" across different frequency channels, the model successfully navigates the complex filtering effects of the human body to achieve high-accuracy localization.

The Challenge of Sound Localization

Sound localization isn't just about calculating the time delay between a sound hitting your left and right ear (known as the Interaural Time Difference, or ITD). Our heads and outer ears (pinnae) act as complex acoustic filters that change the "color" or spectrum of a sound depending on its location. These filtering effects are known as Head-Related Transfer Functions (HRTFs).

Relying on HRTFs introduces two major challenges for the brain:

  1. Dynamic Geometry: Because our bodies grow and change over time, these HRTF filters aren't static. A hardwired auditory system wouldn't work over a lifespan; the brain must continuously learn the mapping between sound patterns and spatial locations.
  2. Spectral Complexity: Distinguishing whether a sound is in front of or behind you, or at different elevations, requires processing subtle spectral cues. These cues are often confounded by the sound's original source. For example, the brain must determine if a sound has a high pitch because of its spatial location, or simply because the source itself is high-pitched.

Previous models often relied on simplified stimuli like pure tones. This paper aims to solve localization for natural, complex sounds in realistic environments using a learning-based SNN.

The Spiking Neural Network Approach

To tackle this, the authors propose a model based on synchrony patterns.

  • Monaural Filtering: Sounds entering each ear are passed through a bank of gammatone filters (simulating the cochlea) and then through "neural filters" (representing various delays and gains in the auditory pathway).
  • Coincidence Detection: The model looks for pairs of neurons—one from each side—that fire at the exact same time. When the internal "neural filters" perfectly compensate for the external "acoustical filters" (the HRTFs), the neurons fire in synchrony.
  • The SNN Architecture: Built using the "Brian" simulator, the model uses roughly one million leaky integrate-and-fire neurons to process these signals.
Architecture of the sound localization model showing cochlear and neural filtering leading to coincidence detection.

Instead of hardcoding the HRTFs, the model uses a simple supervised learning algorithm. It presents sounds from known locations and identifies which "assemblies" of coincidence detectors are most active. It then maps these active assemblies to those specific 3D coordinates.

Key Insights

  • Commutativity of Convolution: The mathematical "aha moment" of the paper is that if the neural filter on the left side matches the acoustic filter on the right side (and vice versa), the signals become identical, leading to perfect synchrony. This allows the network to effectively "cancel out" the source signal's unique characteristics and focus purely on its location.
  • Location-Specific Assemblies: Every location in 3D space induces a unique "fingerprint" of synchrony across different frequency bands.
  • Learning vs. Hardwiring: The model proves that a system doesn't need to "know" the physics of the ear. It only needs to observe which neurons fire together when a sound is at a known location (a "teacher" signal that could be provided by vision in biological systems).
  • Resolving the Cone of Confusion: One of the model's most impressive feats is distinguishing sounds from the front versus the back—locations which have identical ITDs but different spectral signatures.

Key Results

The study utilized several high-quality datasets for training and evaluation, including the IRCAM LISTEN HRTF Database, the RWC Music Database, and datasets of human speech and white noise.

The model demonstrated high accuracy, even when tested on sounds it had never heard before:

  • Azimuth Accuracy: The model achieved an average error of just 4–8 degrees.
  • Elevation Accuracy: It achieved an average error of 10–27 degrees.
  • Categorization: It reached nearly 100% accuracy in left-right discrimination and 75–85% accuracy in the notoriously difficult task of front-back discrimination.
  • Efficiency: Remarkably, the model reached high performance with as little as one second of training data per location, suggesting the learning process is highly efficient.
Performance metrics showing localization error and accuracy relative to the amount of training data.

Limitations and Future Work

While the results are robust, the authors acknowledge a few hurdles for future research. First, the current model was tested in a "virtual" (anechoic) environment. In the real world, reflections from walls and objects change binaural cues, which would likely require a "precedence effect" mechanism to ignore echoes. Second, the learned model didn't quite reach the peak performance of a perfectly "hardwired" version, likely due to the limited sampling of delays/gains and the presence of neural noise. Finally, while the model focused on azimuth and elevation, the authors note that the same principles could theoretically be extended to estimate the distance of a sound source.

Summary updated

BibTeX
@inproceedings{goodman2010learning,
  author = {Dan F. M. Goodman and Romain Brette},
  title = {{Learning to localise sounds with spiking neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2010},
}
Figure