A Human-in-the-Loop Tool for Annotating Passive Acoustic Monitoring Datasets

Hannes Kath, Thiago S. Gouvêa, Daniel SonntagIJCAI 2023

Abstract

Passive Acoustic Monitoring (PAM) is a vital tool for biodiversity conservation, yet the sheer volume of data generated creates a significant annotation bottleneck. This paper introduces a human-in-the-loop (HITL) web application designed to accelerate the labeling process. By integrating a Deep Generative Model (DGM) with an interactive "state-space" interface, the tool allows experts to visualize audio segments in a 2D latent space, perform cluster-based annotations, and fine-tune models in real-time. Preliminary evaluations demonstrate that this interactive workflow can increase the F-score of event detection from 77.0% to 94.2%, significantly improving the efficiency of acoustic data processing.

Introduction

Passive Acoustic Monitoring (PAM) offers a cost-effective, non-invasive method for tracking wildlife and environmental health by recording environmental audio 24/7. However, the resulting datasets are often too massive for manual review. Traditional annotation methods—where experts scan linear spectrograms and manually draw bounding boxes—are laborious and increasingly incompatible with the scale of modern research. While automated detection tools exist, they frequently suffer from low precision or a lack of user-friendly interfaces for expert correction. This research addresses the "data bottleneck" by proposing a workflow where artificial intelligence and human expertise operate in a tight feedback loop.

The Human-in-the-Loop Framework

The core of the proposed system is a web-based application built on the Dash framework, centered around a Deep Generative Model (DGM). The technical architecture facilitates a continuous cycle of data processing and human refinement.

The system architecture illustrates the feedback loop between the dataset, the generative models (U and G), and the user interface.

As shown in the workflow above, the process begins with a Variational Autoencoder (VAE) equipped with a classification head. The model processes raw audio into spectrograms, breaks them into one-second segments, and maps these segments into a 2D "latent space" or state-space. Initially, the model operates in an unsupervised mode, grouping similar acoustic patterns without explicit labels. As the user interacts with the system, providing labels for specific clusters, the model is fine-tuned to better differentiate between classes, such as distinguishing a siren from background drilling noise.

Interactive Annotation Interface

The interface is designed to move beyond linear timeline scrolling. Instead of treating audio as a one-dimensional stream, the tool represents audio chunks as points in a 2D plot. This visualization allows users to identify "outliers"—distinctive sounds that stand out from the ambient background—and annotate them en masse using a lasso-selection tool.

The user interface features a spectrogram with predicted bounding boxes (top) and a dual-view state-space representation (bottom) showing the effects of fine-tuning.

As seen in the interface, the state-space representation evolves during the session. The "fine-tuning" view demonstrates how the model "distorts" the latent space to push different acoustic classes further apart, making clusters more distinct and easier for the human annotator to identify in subsequent rounds. To further reduce cognitive load, the tool utilizes a clickable label system, eliminating the need for repetitive manual text entry.

Experimental Evaluation

To validate the tool, the researchers utilized a controlled dataset combining ambient recordings from Singapore’s Central Catchment Nature Reserve with foreground events from the UrbanSound8k dataset (e.g., sirens, drilling, and dog barks). The events were randomly inserted into the background tracks using a Poisson distribution to simulate realistic occurrences.

The preliminary results indicate a substantial performance boost through the HITL approach:

  • Bounding Box Accuracy: The fine-tuned model achieved a 79.9% accuracy in predicting the temporal and spectral boundaries of acoustic events.
  • F-Score Improvement: The F-score rose from 77.0% for the initial unsupervised pre-trained model to 94.2% following human-guided fine-tuning.
  • Efficiency: The ability to select outliers in the state-space proved to be a viable method for rapidly generating high-quality training data.

Discussion and Future Work

While the results are promising, the authors acknowledge several areas for further development. The current study relied on artificial data; real-world PAM data is often significantly noisier and contains overlapping biological signals that are more difficult to disentangle. Future work will focus on scaling the tool for integration with large-scale remote databases and conducting formal user studies with domain experts, such as biologists and ecologists. Additionally, planned features include the ability to play back audio directly from the 2D state-space plot and the inclusion of frequency-specific units within the latent representation to further enhance the verification process.

Summary updated

BibTeX
@inproceedings{kath2023human,
  author = {Hannes Kath and Thiago S. Gouvêa and Daniel Sonntag},
  title = {{A Human-in-the-Loop Tool for Annotating Passive Acoustic Monitoring Datasets}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/835},
}
Figure