acoupi: An open‐source Python framework for deploying bioacoustic <scp>AI</scp> models on edge devices

Aude Vuilliomenet, Santiago Martínez Balvanera, Oisin Mac Aodha, Kate E. Jones, Duncan Wilson

TL;DR

This paper introduces acoupi, an open-source Python framework designed to simplify the deployment of AI-powered bioacoustic monitoring systems on low-cost edge devices like the Raspberry Pi. It addresses the challenges of data offloading and computational demands of traditional systems by enabling on-device AI processing and selective data transmission, making advanced biodiversity monitoring more accessible.

What Problem Does This Paper Address?

Biodiversity monitoring is crucial for conservation efforts, and passive acoustic monitoring (PAM) coupled with Artificial Intelligence (AI) offers a scalable solution. However, traditional PAM systems generate massive amounts of audio data, requiring manual offloading and significant storage and computational resources. This creates a bottleneck, especially for researchers with limited infrastructure. Furthermore, deploying AI models on edge devices for real-time analysis is technically challenging, demanding expertise in embedded systems and software engineering. Existing solutions often lack flexibility, being tightly coupled to specific hardware and AI models, hindering their widespread adoption for diverse monitoring goals.

Methods

acoupi provides a modular, Python-based framework that integrates several key components of a bioacoustic monitoring workflow into a unified system for edge devices. Its core innovation lies in its programmable, task-based architecture. Users can define "programmes" composed of various "tasks" (e.g., data collection, AI processing, data management, wireless transfer). These tasks are built using a "plug-and-play" approach with reusable components, allowing users to customize workflows without extensive coding. The framework standardizes data exchange between components using a defined data schema. For deployment, acoupi utilizes a command-line interface for setup and management, leveraging tools like Celery for robust task execution and automatic recovery.

Datasets

The paper does not explicitly mention datasets used for training the AI models themselves, as it focuses on the deployment framework. However, for evaluation, the acoupi framework was deployed with two pre-trained AI models:

  • BirdNET: For bird species classification.
  • BatDetect2: For UK bat species classification.

The performance of these models within the acoupi framework was evaluated during a month-long deployment in a UK urban park.

Key Insights and Ideas

  • Democratizing Edge AI for Bioacoustics: acoupi significantly lowers the barrier to entry for deploying sophisticated AI models on low-cost hardware, making advanced bioacoustic monitoring accessible to a broader range of researchers and conservationists.
  • Modularity is Key: The framework's modular design allows for easy customization and extension, enabling users to tailor monitoring solutions to specific research questions and environmental conditions.
  • On-Device Processing is Crucial: By processing data locally on the edge device, acoupi drastically reduces the volume of data that needs to be transmitted and stored, addressing a major bottleneck in traditional PAM.
  • Bridging the Gap: acoupi effectively bridges the gap between AI model development and practical field deployment, allowing researchers to leverage cutting-edge AI without needing deep expertise in embedded systems.

Key Results

The paper demonstrates the reliability of acoupi through a month-long deployment of two Raspberry Pi 4B devices running acoupi_birdnet and acoupi_batdetect2 programs.

  • Both deployments successfully captured nearly all scheduled recordings (99.88% for acoupi_birdnet and 99.21% for acoupi_batdetect2).
  • The acoupi_birdnet program processed all but four recordings, while acoupi_batdetect2 had a slightly higher processing failure rate (1.83% of recordings unprocessed).
  • All generated messages were successfully sent to the remote server under good network conditions.
  • The acoupi_birdnet deployment detected a variety of bird species and anthropogenic sounds, with Eurasian magpies and engine noise being among the most frequent.
  • The acoupi_batdetect2 deployment yielded very few high-confidence bat detections, consistent with the November deployment period when most UK bat species hibernate.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Model Integration: While acoupi supports integrating various AI models, careful consideration of model size and complexity is needed to avoid processing backlogs and system overloads on edge devices. Techniques like quantization and pruning are mentioned as potential solutions.
  • Field Testing: The month-long deployment, while successful, was in a controlled urban environment. More extensive field testing is needed to evaluate performance under diverse and challenging conditions (e.g., varying network connectivity, power availability).
  • Hardware Compatibility: While designed for Linux-compatible SBCs, further testing on a wider range of SBCs is recommended to ensure broad compatibility.
  • Connectivity and Sensors: The current version relies on Wi-Fi for communication and only audio recording. Future work could include integrating other connectivity options (cellular, LoRaWAN) and additional sensors (multichannel audio for localization, abiotic sensors, camera modules for visual monitoring).
  • Power Management: acoupi requires a continuous power supply, which can be a limitation for remote deployments. Future iterations could incorporate advanced power management mechanisms.
  • Privacy: The paper highlights the privacy advantage of on-device processing but notes the absence of human speech detection. Users are strongly encouraged to ensure compliance with privacy regulations.
  • Customization: While acoupi offers pre-configured programs, researchers may need to adapt or extend modules to meet specific requirements. The open-source nature encourages community contributions.

Summary updated

BibTeX
@inproceedings{vuilliomenet2025acoupi,
  author = {Aude Vuilliomenet and Santiago Martínez Balvanera and Oisin Mac Aodha and Kate E. Jones and Duncan Wilson},
  title = {{acoupi: An open‐source Python framework for deploying bioacoustic <scp>AI</scp> models on edge devices}},
  booktitle = {Methods},
  year = {2025},
  doi = {10.1111/2041-210x.70208},
}
Figure