SoundCount: Sound Counting from Raw Audio with Dyadic Decomposition Neural Network

Yuhang He, Zhuangzhuang Dai, Niki Trigoni, Andrew Markham · DOI

Abstract

Sound counting in complex acoustic environments remains a significant challenge due to high polyphony and overlapping sound events. This paper introduces SoundCount, a novel framework utilizing the Dyadic Decomposition Neural Network (DyDecNet). By employing a hierarchical frequency decomposition front-end and energy gain normalization, DyDecNet effectively counts overlapping sounds directly from raw waveforms. Experimental results across bioacoustic and general audio datasets demonstrate that DyDecNet significantly outperforms existing sound event detection and source separation methods.

Introduction

Counting distinct objects in images is a well-established task in computer vision. However, counting "crowds" of sounds—such as identifying the number of birds in a dense forest recording—presents unique difficulties. In "SoundCount: Sound Counting from Raw Audio with Dyadic Decomposition Neural Network," researchers propose DyDecNet, an end-to-end architecture designed to navigate the "polyphonic mess" of overlapping acoustic signals.

The Challenge of Polyphonic Audio

Traditional approaches to sound counting often rely on Sound Event Detection (SED), assuming that identifying the onset and offset of every sound naturally leads to an accurate count. However, SED methods frequently fail in scenarios with high polyphony (multiple simultaneous sounds) and intra-class overlap (multiple instances of the same sound type). Because audio signals are additive, sounds mask one another in both time and frequency, making disentanglement extremely difficult for standard models.

The DyDecNet Architecture

The core of the SoundCount framework is DyDecNet, which processes raw audio through three specialized components:

  1. Dyadic Decomposition Front-end: Instead of a fixed Short-Time Fourier Transform (STFT), the model utilizes a hierarchy of learnable sinc filters. This binary tree structure splits audio into progressively finer frequency bands (coarse-to-fine), allowing the network to adaptively learn the most relevant spectral features for counting.
  2. Energy Gain Normalization (eg-Norm): To address the issue of varying loudness (e.g., a distant vs. nearby sound), the eg-Norm module uses Gaussian smoothing and learnable gain parameters. This helps mitigate masking effects where loud foreground noises drown out quieter background events.
  3. Backbone Module: A series of pooling and convolutional layers extract high-level features from the time-frequency map generated by the front-end.
Overview of the DyDecNet architecture, showing the dyadic decomposition front-end and the backbone module.

Training via Density Map Regression

A key innovation in DyDecNet is the use of density map regression rather than direct count prediction. The network predicts a 1D density map over the temporal axis. The final count is obtained by integrating (summing) this map. This approach preserves temporal information and is more robust to the complexities of overlapping sounds than simple classification or direct regression.

Illustration of the density map regression approach, where individual sound events are aggregated into a continuous temporal representation.

Experimental Evaluation

The researchers evaluated DyDecNet on a wide range of datasets, including bioacoustic recordings (NorthEastUS), general audio (AudioSet, OpenMic2018), and synthetic environmental sounds. To accurately assess performance in crowded scenes, they introduced polyphony-aware metrics such as the polyphony ratio and mean polyphony.

DyDecNet consistently outperformed state-of-the-art SED-based models (like CRNNNet) and source separation models (like DPTasNet). On the massive AudioSet benchmark, DyDecNet achieved a Mean Squared Error (MSE) of 0.32, a significant improvement over the 0.81 achieved by the next best competitor. Notably, the model maintained high accuracy even as polyphony increased, whereas traditional methods saw a sharp decline in performance.

Conclusion

DyDecNet demonstrates that effective sound counting does not require perfect source separation. By focusing on hierarchical frequency decomposition and explicit loudness modeling, the network can "see through" acoustic clutter. While performance may vary as the diversity of sound classes increases, the SoundCount framework provides a powerful tool for applications ranging from biodiversity monitoring to urban noise analysis.

Summary updated

Abstract

In this paper, we study an underexplored, yet important and challenging problem: counting the number of distinct sound events in data characterized by a high degree of polyphonicity and spectral overlap. A key example is counting individual bird calls in bioacoustic data, from which biodiversity can be estimated. We do so by systematically proposing a novel end-to-end trainable neural network, designing new evaluation protocols, quantifying the difficulty of counting depending on sound polyphonicity, and creating a new dataset tailored for concurrent sound event counting. Unlike existing methods that all apply frequency-selective filters on the raw waveform in a one-stage manner, our neural network progressively decomposes the raw waveform dyadically in frequency domain. Taking inspiration from wavelet decomposition, intermediate waveforms convolved by a parent filter are successively processed by a pair of children filters that evenly split the parent filter's carried frequency response. An energy gain normalization module is introduced to normalize received sound events' loudness variance and spectrum overlap. The network is fully convolutional and parameter-frugal so it is light-weight and computationally efficient. We further design a set of polyphony-aware metrics to quantify sound counting difficulty level from different perspectives. To show the efficiency and generalization of our method (we call DyDecNet), we do experiments on both bioacoustic bird sound (both synthetic and real-world sound), telephone-ring sound and music sound data. Comprehensive experiment results show our method outperforms existing sound event detection (SED) methods significantly. The dyadic decomposition front-end network can be used by existing methods to improve their performance accordingly.
BibTeX
@inproceedings{he2024soundcount,
  author = {Yuhang He and Zhuangzhuang Dai and Niki Trigoni and Andrew Markham},
  title = {{SoundCount: Sound Counting from Raw Audio with Dyadic Decomposition Neural Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=z8WxRFIBve},
}
Figure