Ethoscopes: an open platform for high-throughput ethomics

Quentin Geissmann, Luis García Rodríguez, Esteban J. Beckwith, Alice S. French, Arian R. Jamasb, Giorgio F. GilestrobioRxiv 2017

Abstract

We present ethoscopes, machines for high-throughput analysis of behaviour in Drosophila and other animals. Ethoscopes provide a software and hardware solution that is reproducible and easily scalable; they perform, in real-time, tracking and profiling of behaviour using a supervised machine learning algorithm; they can deliver behaviourally-triggered stimuli to flies in a feedback-loop mode; and they are highly customisable and open source. Ethoscopes can be built easily using 3D printing technology and rely on Raspberry Pi microcomputers and Arduino boards to provide affordable and flexible hardware.

Introduction

In modern neuroscience, the ability to manipulate neural circuits—using tools like optogenetics and thermogenetics—has far outpaced our ability to measure the resulting behavioral changes at scale. This gap has led to the emergence of "ethomics," the high-throughput study of animal behavior. However, researchers have traditionally been forced to choose between simple, scalable systems that provide low-resolution data (such as beam-break monitors) and high-resolution video systems that are expensive and computationally centralized.

Ethoscopes bridge this gap by providing an open-source, 3D-printable platform that combines the scalability of simple monitors with the sophisticated data capture of video tracking. By utilizing decentralized "edge computing," Ethoscopes allow labs to monitor hundreds of animals simultaneously with high precision and real-time behavioral classification.

Decentralized Architecture and Edge Computing

The core innovation of the Ethoscope is its decentralized architecture. Traditional video tracking systems often rely on a single powerful workstation to process feeds from multiple cameras. This creates a bottleneck: as more cameras are added, the system's performance degrades, and the hardware costs rise exponentially.

In contrast, each Ethoscope is a self-contained unit equipped with its own "brain"—a Raspberry Pi microcomputer. This allows each unit to process its own video data locally and in real-time. Because the computation is distributed across the devices, the system is infinitely scalable; a lab can run 10 or 1,000 units on the same network without a performance hit. Each unit costs approximately €100, making high-throughput ethomics accessible to researchers with modest budgets.

Real-Time Behavioral Classification

Ethoscopes do more than just track an animal's X-Y coordinates. The platform uses a supervised machine learning algorithm (Random Forest) to classify behaviors into three distinct categories:

  1. Walking: Active locomotion across the arena.
  2. Micro-movements: Subtle behaviors such as grooming or feeding where the animal remains in one place.
  3. Immobility: Total lack of movement, often associated with sleep.

This distinction is critical. Traditional trackers often conflate grooming or feeding with rest because the animal's position remains static. By identifying these micro-movements, Ethoscopes provide a more accurate representation of an animal's metabolic and behavioral state. The system achieved 94.3% accuracy in detecting micro-movements and 99.0% accuracy for walking during validation.

Closed-Loop Feedback and Modularity

Because behavioral processing happens in real-time on the device, Ethoscopes can interact with the animal through a "closed-loop" feedback system. Using GPIO pins or Arduino integration, the Ethoscope can trigger external stimuli the moment a specific behavior is detected.

This capability enables "functional" sleep deprivation studies. Unlike traditional methods that shake all flies at set intervals—stressing both awake and sleeping subjects—an Ethoscope can be programmed to deliver a stimulus (like a motor rotation or a pulse of light) only when it confirms a specific fly has been immobile for a predetermined amount of time. The platform is highly modular, with existing designs for air/gas/odor (AGO) delivery and rotational modules.

Validation and Performance

The authors validated the system using a "ground-truth" dataset consisting of 1,297 manually annotated video fragments and 1,413 manually marked still frames. The results demonstrated high precision, with a median discrepancy between manual and automated tracking of only 300 µm—roughly 1/10th of a fruit fly's body length. The platform's robustness was further proven by running 70 Ethoscopes simultaneously, analyzing 1,400 flies in a single experimental setup.

Limitations and Future Directions

While the Raspberry Pi 3 provides sufficient power for many applications, its temporal resolution is currently limited to 1–4 Hz for real-time tracking. This is adequate for studying sleep and general activity but may be too slow for capturing high-speed behaviors like wing-flapping or complex courtship rituals. Additionally, the microcomputers generate significant heat, necessitating use within climate-controlled chambers.

Future iterations of the platform may incorporate dedicated machine-learning chips (TPUs) to enable even more complex behavioral discrimination. The authors have made all software, 3D designs, and instructions—including low-cost "LEGOscope" and "PAPERscope" variants—available to the community to encourage further innovation in the field of ethomics.

Summary updated

BibTeX
@misc{geissmann2017ethoscopes,
  author = {Quentin Geissmann and Luis García Rodríguez and Esteban J. Beckwith and Alice S. French and Arian R. Jamasb and Giorgio F. Gilestro},
  title = {{Ethoscopes: an open platform for high-throughput <i>ethomics</i>}},
  year = {2017},
  doi = {10.1101/113647},
  howpublished = {bioRxiv},
}
Figure