ezTrack: An open-source video analysis pipeline for the investigation of animal behavior

Tracking animal behavior by video is one of the most common tasks in the life sciences. Although commercial software exists for executing this task, they often present enormous cost to the researcher and can entail purchasing hardware that is expensive and lacks adaptability. Additionally, the underlying code is often proprietary. Alternatively, available open-source options frequently require model training and can be challenging for those inexperienced with programming. Here we present an open-source and platform independent set of behavior analysis pipelines using interactive Python that researchers with no prior programming experience can use. Two modules are described. One module can be used for the positional analysis of an individual animal, amenable to a wide range of behavioral tasks. A second module is described for the analysis of freezing behavior. For both modules, a range of interactive plots and visualizations are available to confirm that chosen parameters produce the anticipated results. Moreover, batch processing tools for the fast analysis of multiple videos is provided, and frame-by-frame output makes alignment with biological recording data simple. Lastly, options for cropping video frames to mitigate the influence of fiberoptic/electrophysiology cables, analyzing specified portions of time, and defining regions of interest, are readily implemented.

[1]  D. Cai,et al.  Behavioral Neuroscience , 2022 .

[2]  David Pfau,et al.  Simultaneous Denoising, Deconvolution, and Demixing of Calcium Imaging Data , 2016, Neuron.

[3]  M. Fanselow Associative vs topographical accounts of the immediate shock-freezing deficit in rats: Implications for the response selection rules governing species-specific defensive reactions ☆ , 1986 .

[4]  John D. Hunter,et al.  Matplotlib: A 2D Graphics Environment , 2007, Computing in Science & Engineering.

[5]  Kevin M. Cury,et al.  DeepLabCut: markerless pose estimation of user-defined body parts with deep learning , 2018, Nature Neuroscience.

[6]  Brian E. Granger,et al.  IPython: A System for Interactive Scientific Computing , 2007, Computing in Science & Engineering.

[7]  Alcino J. Silva,et al.  A shared neural ensemble links distinct contextual memories encoded close in time , 2016, Nature.

[8]  Peyman Golshani,et al.  Breakdown of spatial coding and neural synchronization in epilepsy , 2018, bioRxiv.

[9]  Alex Kacelnik Evolution and Learning, R.C. Bolies, M.D. Beecher (Eds.). Lawrence Erlbaum, Hillsdale, New Jersey (1988), x , 1990 .

[10]  J. O’Keefe Place units in the hippocampus of the freely moving rat , 1976, Experimental Neurology.

[11]  M. Fanselow,et al.  Conditional and unconditional components of post-shock freezing , 1980, The Pavlovian journal of biological science.

[12]  Eric Jones,et al.  SciPy: Open Source Scientific Tools for Python , 2001 .

[13]  Fan Wang,et al.  MIN1PIPE: A Miniscope 1-Photon-Based Calcium Imaging Signal Extraction Pipeline. , 2018, Cell reports.

[14]  Travis E. Oliphant,et al.  Guide to NumPy , 2015 .