Related Experiment Video
Updated: Jan 3, 2026

08:00
Decoding Natural Behavior from Neuroethological Embedding
Published on: October 3, 2025
526
MARGO (Massively Automated Real-time GUI for Object-tracking), a platform for high-throughput ethology.
Zach Werkhoven1, Christian Rohrsen1,2, Chuan Qin1
1Dept. of Organismic and Evolutionary Biology & Center for Brain Science, Harvard University, Cambridge, MA, United States of America.
Plos One
|November 26, 2019
Summary
MARGO is a new MATLAB tool for fast, accurate, real-time animal tracking. It enables high-throughput behavioral experiments and closed-loop stimulus control for many animals simultaneously.
Area of Science:
- Neuroscience
- Behavioral Science
- Biotechnology
Background:
- Real-time animal tracking is crucial for large-scale behavioral studies and closed-loop experiments.
- Existing tools may lack the speed, throughput, or control capabilities for complex, high-volume assays.
Purpose of the Study:
- To develop and validate MARGO, a MATLAB-based software suite for real-time, high-throughput animal tracking.
- To enable parallelized, closed-loop control of stimuli for numerous animals in custom behavioral experiments.
Main Methods:
- Developed MARGO, a MATLAB suite integrating real-time object tracking with peripheral hardware control.
- Designed a flexible architecture for defining custom experimental routines and stimulus delivery.
- Validated MARGO's performance in phototaxis, optomotor response, and optogenetic operant conditioning assays.
Main Results:
- MARGO demonstrated rapid and accurate tracking of large numbers of animals over extended periods, particularly in spatially separated setups like multiwell plates.
- The system successfully coordinated tracking with hardware control for complex behavioral assays and optogenetic stimulation.
- MARGO offers high throughput, an accessible interface, and robust real-time closed-loop control capabilities.
Conclusions:
- MARGO provides a powerful, versatile solution for large-scale animal tracking and sophisticated behavioral experiments.
- Its strengths in speed, accuracy, throughput, and integrated hardware control optimize complex, multi-animal studies.
- MARGO facilitates advanced research in neuroscience and behavioral science through its comprehensive features.

