Publication: open source animal tracking and closed-loop stimulation

Expanding the Open Ephys system to include animal tracking and behavior-based closed-loop stimulation extends the availability of high-quality, low-cost experimental setup within standardized data formats.

By hafting
Published Oct. 23, 2018

Buccino, Lepperød, Dragly et al (Journal of Neural Engineering, 2018)

Open source modules for tracking animal behavior and closed-loop stimulation based on Open Ephys and Bonsai. 


Methods that combine monitoring neural activity, behavioral tracking, and targeted manipulation of neurons in closed-loop are powerful tools. However, commercial systems that allow these types of experiments are usually expensive and rely on non-standardized data formats and proprietary software which may hinder user-modifications for specific needs. In order to promote reproducibility and data-sharing in science, transparent software and standardized data formats are an advantage.Based on the Open Ephys system (www.open-ephys.org) we developed multiple modules to include real-time tracking and behavior-based closed-loop stimulation. Combining the open source software Bonsai (bonsai-rx.org) for analyzing camera images in real time with the newly developed modules in Open Ephys, we acquire position information, visualize tracking, and perform tracking-based closed-loop stimulation experiments. To analyze the acquired data we provide an open source file reading package in Python. The system robustly visualizes real-time tracking and reliably recovers tracking information recorded from a range of sampling frequencies (30–1000 Hz). We recorded place cell and grid cell activity in the hippocampus and in the medial entorhinal cortex and used the system for closed-loop optogenetic stimulation of entorhinal grid cells. 


Wiki page on github containing a detailed guide on how to set up the system:

Open source modules for tracking animal behavior and closed-loop stimulation based on Open Ephys and Bonsai

Alessio Paolo Buccino1,5, Mikkel Elle Lepperød1,2,4, Svenn-Arne Dragly1,3, Philipp Häfliger1,5, Marianne Fyhn1,2 and Torkel Hafting1,2,4

, ,  
Special Issue on Open Source Tools in Systems Neuroscience

Published Oct. 23, 2018 2:50 PM - Last modified Nov. 4, 2025 10:06 AM