PyRAT: An Open-Source Python Library for Animal Behavior Analysis
- PMID: 35615283
- PMCID: PMC9125180
- DOI: 10.3389/fnins.2022.779106
PyRAT: An Open-Source Python Library for Animal Behavior Analysis
Abstract
Here we developed an open-source Python-based library called Python rodent Analysis and Tracking (PyRAT). Our library analyzes tracking data to classify distinct behaviors, estimate traveled distance, speed and area occupancy. To classify and cluster behaviors, we used two unsupervised algorithms: hierarchical agglomerative clustering and t-distributed stochastic neighbor embedding (t-SNE). Finally, we built algorithms that associate the detected behaviors with synchronized neural data and facilitate the visualization of this association in the pixel space. PyRAT is fully available on GitHub: https://github.com/pyratlib/pyrat.
Keywords: animal tracking; behavioral analysis; deep learning; electrophysiology; neuroscience method; unsupervised learning.
Copyright © 2022 De Almeida, Spinelli, Hypolito Lima, Gonzalez and Rodrigues.
Conflict of interest statement
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Figures




References
-
- Fujisawa S., Amarasingham A., Harrison M. T., Buzsáki G. (2015). Simultaneous electrophysiological recordings of ensembles of isolated neurons in rat medial prefrontal cortex and intermediate ca1 area of the hippocampus during a working memory task. Dataset 1, 1–6. 10.6080/K01V5BWK - DOI