BEANS: The Benchmark of Animal Sounds

Masato Hagiwara, Benjamin Hoffman, Jen-Yu Liu, Maddie Cusimano, Felix Effenberger, Katie Zacarian

TL;DR

BEANS (the BEnchmark of ANimal Sounds) is a new standardized evaluation framework designed to bring the "ImageNet moment" to bioacoustics. By aggregating 12 diverse datasets covering everything from bird choruses to whale "boings" and mosquito wingbeats, it provides a unified yardstick for measuring how well machine learning models generalize across different species and acoustic tasks.

What Problem Does This Paper Address?

In fields like Computer Vision or Natural Language Processing, progress is driven by massive, agreed-upon benchmarks like ImageNet or GLUE. Bioacoustics—the study of animal sounds—has historically lacked this. Most research focuses on a single species or a specific recording site, leading to a proliferation of "niche" models that don't necessarily work elsewhere.

Furthermore, the sheer volume of data from passive acoustic monitoring (PAM) has become a bottleneck for biologists. We need machine learning (ML) to automate the processing of these recordings, but without a standard way to compare algorithms, it’s hard to know which methods are truly robust and generalizable. BEANS addresses this by providing curated datasets, standardized splits (train/val/test), and baseline performance metrics.

Methods

The authors define two primary tasks within the benchmark:

  1. Classification: Assigning a single label (e.g., species or individual ID) to a sound clip.
  2. Detection: Identifying the start and end times of vocalizations in long, continuous recordings. This is treated as a multi-label classification problem using a sliding window approach.
Overview of the BEANS benchmark structure, including classification, detection, and auxiliary tasks.

To set the bar, the researchers tested a variety of baseline models:

  • Traditional ML: Logistic Regression, SVM, and tree-based methods (GBDT, XGBoost) trained on MFCC (Mel-frequency cepstral coefficients) features.
  • Deep Learning: Several flavors of ResNet (both randomly initialized and pretrained on ImageNet) and VGGish (a VGG-like architecture pretrained on a massive YouTube audio dataset).

Datasets

BEANS consists of 10 core bioacoustic datasets and 2 auxiliary datasets:

  • Classification: Includes watkins (marine mammals), bats, cbi (264 bird species), dogs, and humbugdb (mosquitoes).
  • Detection: Includes dcase (birds/mammals), enabirds, hiceas (whales), rfcx (tropical frogs/birds), and hainan-gibbons.
  • Auxiliary: esc-50 (environmental sounds) and speech-commands (human speech) to test how well bioacoustic models generalize to related domains.
Detailed breakdown of the datasets included in BEANS, including sample rates and label types.

Key Insights and Ideas

  • The "Generalist" Challenge: The benchmark intentionally includes species with wildly different acoustic properties—from the 250kHz ultrasonic clicks of bats to the low-frequency calls of marine mammals. A model that excels at one may fail at the other, highlighting the need for flexible architectures.
  • Detection is Hard: Performance on detection tasks was significantly lower than on classification. The authors attribute this to data sparsity (animal calls are often a tiny fraction of a long recording) and the complexity of overlapping sounds in the wild.
  • Pretraining Paradox: While ImageNet-pretrained ResNets are the gold standard in vision, VGGish (pretrained on audio) generally performed better here. This suggests that "acoustic features" are distinct enough from "visual features" that domain-specific pretraining is crucial.
  • SVMs are Surprisingly Resilient: On some classification tasks, a simple SVM trained on MFCCs outperformed deep neural networks. This serves as a reminder that for smaller datasets with specific features, "old school" ML is still a heavy hitter.

Key Results

The quantitative results, summarized in Table 2, show that VGGish is the strongest overall performer, achieving the best or second-best results on nearly every dataset.

Baseline performance results across all BEANS datasets. VGGish emerges as the most robust model.
  • Classification: Accuracy reached as high as 91.4% for dog bark identification (SVM) but dropped to 57.3% for the challenging 264-species Cornell Bird Identification (cbi) task.
  • Detection: The mean Average Precision (mAP) scores were generally low, often hovering between 0.1 and 0.5, indicating that current "off-the-shelf" models struggle with the temporal precision required for bioacoustic detection.

Limitations and Future Work

The authors identify several hurdles for the community to clear:

  • Sample Rate Diversity: Bioacoustic data ranges from 9.6kHz to 500kHz. Most ML models expect a fixed rate, which is a major engineering challenge.
  • The "Cocktail Party" Problem: Currently, BEANS doesn't explicitly handle overlapping calls from multiple individuals, a common occurrence in nature.
  • Geographic Bias: The benchmark is currently skewed toward North American bird species. Future iterations aim to include more diverse global datasets.
  • Better Pretraining: The authors hypothesize that pretraining on large-scale audio datasets like AudioSet (rather than ImageNet) will be the key to unlocking higher performance.

By releasing the code and datasets as open source, the Earth Species Project team hopes BEANS will become the standard proving ground for the next generation of bioacoustic AI.

Summary updated

BibTeX
@inproceedings{hagiwara2023beans,
  author = {Masato Hagiwara and Benjamin Hoffman and Jen-Yu Liu and Maddie Cusimano and Felix Effenberger and Katie Zacarian},
  title = {{BEANS: The Benchmark of Animal Sounds}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=s1b2Uo4itL},
}
Figure