Related Experiment Video
Updated: Jul 13, 2025

Using an Automated 3D-tracking System to Record Individual and Shoals of Adult Zebrafish
Published on: December 5, 2013
pi_tailtrack: A compact, inexpensive and open-source behaviour-tracking system for head-restrained zebrafish
1Laboratoire MeLiS, Université Claude Bernard Lyon 1 - CNRS UMR5284 - Inserm U1314, Institut NeuroMyoGène, Faculté de Médecine et de Pharmacie, 8 Avenue Rockefeller, 69008 Lyon, France.
Abstract:
Quantifying animal behaviour during microscopy is crucial to associate optically recorded neural activity with behavioural outputs and states. Here, I describe an imaging and tracking system for head-restrained larval zebrafish compatible with functional microscopy. This system is based on the Raspberry Pi computer, Pi NoIR camera and open-source software for the real-time tail segmentation and skeletonization of the zebrafish tail at over 100 Hz. This allows for precise and long-term analyses of swimming behaviour, which can be related to functional signals recorded in individual neurons. This system offers a simple but performant solution for quantifying the behaviour of head-restrained larval zebrafish, which can be built for 340€.

