HumBugDB: a large-scale acoustic mosquito dataset

Ivan Kiskin, Bernardo Pérez Orozco, Theo Windebank, Davide Zilli, Marianne Sinka, Katherine J. Willis, Stephen Roberts, Pentaliotis, Andreas, Waqas Rafique, Rinita Dam, Marinos, Theodoros, Li, Yunpeng, Killeen, Gerard, Dickson Msaky, Kaindoa, Emmanuel, Willis, Kathy, Roberts, Steve J.arXiv 2017 · DOI

Abstract

Mosquito-borne diseases like malaria, Zika, and dengue cause hundreds of thousands of deaths annually. Effective combat requires precise surveillance, but current methods are labor-intensive and potentially dangerous. We present a deep learning approach to detect the faint acoustic signature of mosquitoes in flight using the HumBugDB dataset—a large-scale multi-species dataset containing over 20 hours of labeled mosquito recordings. By training a Convolutional Neural Network (CNN) on wavelet-transformed audio, the system achieves detection accuracy that matches or even exceeds human experts, even in noisy, data-scarce environments.

The Challenge of Acoustic Surveillance

Acoustic monitoring, or listening for the characteristic "buzz" of mosquito wingbeats, is a promising alternative to traditional surveillance. However, it faces two significant hurdles: a low signal-to-noise ratio, where quiet wingbeats are drowned out by ambient noise, and extreme data scarcity. Unlike speech recognition, high-quality labeled datasets of mosquitoes in wild conditions are rare. Traditional machine learning often relies on hand-crafted features that fail when environmental conditions shift.

Methods: Wavelets and Compact CNNs

To address these challenges, the researchers moved away from traditional audio features in favor of a deep learning pipeline optimized for small, noisy datasets.

Wavelet Transforms (CWT)

Instead of the standard Short-Time Fourier Transform (STFT), the team utilized the Continuous Wavelet Transform (CWT) with "bump wavelets." This approach provides flexible time-frequency resolution, offering better contrast for the consistent, narrow-band tones of a mosquito wingbeat compared to traditional spectrograms.

Compact CNN Architecture

Given the scarcity of data, the authors designed a lean CNN architecture to avoid overfitting. The model consists of a single convolutional layer followed by a fully connected layer and dropout. This architecture is lightweight enough for potential deployment on smartphones or low-power embedded systems.

The proposed CNN architecture processes wavelet-transformed acoustic inputs through a single convolutional layer and a fully connected layer to produce detection outputs.

Post-Processing and Interpretability

A 1-second median filter was applied to the network's predictions to smooth the output, reflecting the physical reality of an insect's flight path. To ensure the model learned relevant biological features rather than background noise, back-propagation was used to visualize the "excitatory samples" the network prioritized.

Dataset: HumBugDB

The study utilized the HumBugDB dataset, which includes 71,286 seconds of labeled mosquito data and 53,227 seconds of background noise across 36 species. For specific model testing, a subset of 57 recordings of Culex quinquefasciatus was used. Labeling was performed by four human experts, who notably only agreed on 70% of labels, highlighting the inherent difficulty of the task.

Key Results and Insights

  • Superior Representation: Wavelets significantly outperformed standard STFT spectrograms by providing sharper contrast in frequency bands corresponding to mosquito tones.
  • Physical Learning: Visualization confirmed that the CNN learned to identify frequency peaks around 650 Hz—the actual physical wingbeat frequency of the mosquito—without explicit instruction.
  • Performance: The CNN achieved a Precision-Recall (PR) area of 0.909 and, with median filtering, an ROC area of 0.970. This performance surpassed both traditional classifiers and human experts (who scored between 0.873 and 0.901).
  • Spatial Relationships: The CNN's success over standard Multi-Layer Perceptrons (MLPs) confirms that the spatial relationship of frequencies over time is a critical feature for accurate detection.

Conclusion

The HumBugDB project demonstrates that deep learning, specifically compact CNNs combined with wavelet transforms, can provide a robust and scalable solution for mosquito surveillance. While future work is needed to generalize these models across more species and unpredictable field environments, this research marks a significant step toward automated, real-time monitoring of disease vectors.

Summary updated

Abstract

<strong>A large-scale multi-species dataset of acoustic recordings</strong> Dataset accompanying code and paper: <em>HumBugDB: a large-scale acoustic mosquito dataset</em>. A large-scale multi-species dataset containing recordings of mosquitoes collected from multiple locations globally, as well as via different collection methods. In total, we present 71,286 seconds (20 hours) of labelled mosquito data with 53,227 seconds (15 hours) of corresponding background noise, recorded at the sites of 8 experiments. Of these, 64,843 seconds contain species metadata, consisting of 36 species (or species complexes). This repository contains: Multi-part zip of audio files to be extracted into the same folder Metadata in csv format: neurips_2021_zenodo_0_0_1.csv This data is supplemented by a GitHub repository, https://github.com/HumBug-Mosquito/HumBugDB, which aids as follows: The multi-part zip is intended to be extracted into the folder:<em> /data/audio/</em> in the repository. Latest metadata is hosted on GitHub to allow the modification of additional metadata as it becomes available in the database or bug-fixing. Documentation for code use, and a complete Datasheet for Datasets also available on GitHub. Example code for data splitting, feature extraction, model training, and evaluation in the top-level notebook <em>main.ipynb</em>. Bayesian Convolutional Neural Network models, in both Keras and PyTorch, trained on this data available at GitHub release v1.0
BibTeX
@misc{kiskin2017humbugdb,
  author = {Ivan Kiskin and Bernardo Pérez Orozco and Theo Windebank and Davide Zilli and Marianne Sinka and Katherine J. Willis and Stephen Roberts and Pentaliotis, Andreas and Waqas Rafique and Rinita Dam and Marinos, Theodoros and Li, Yunpeng and Killeen, Gerard and Dickson Msaky and Kaindoa, Emmanuel and Willis, Kathy and Roberts, Steve J.},
  title = {{HumBugDB: a large-scale acoustic mosquito dataset}},
  year = {2017},
  eprint = {1705.05180},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.05180},
}
Figure