AUTHOR=De Almeida Tulio Fernandes , Spinelli Bruno Guedes , Hypolito Lima Ramón , Gonzalez Maria Carolina , Rodrigues Abner Cardoso TITLE=PyRAT: An Open-Source Python Library for Animal Behavior Analysis JOURNAL=Frontiers in Neuroscience VOLUME=Volume 16 - 2022 YEAR=2022 URL=https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2022.779106 DOI=10.3389/fnins.2022.779106 ISSN=1662-453X ABSTRACT=Animal tracking softwares return a large amount of data and the available analytical tools are limited. Open access deep learning and computer vision emerged as prominent techniques to enhance speed and precision in visual data analysis. The aim of this study is to present a Python library toolbox (PyRAT - Python in Rodent Analysis and Tracking) capable to perform complex analysis of animal behavior. We used DeepLabCut to track 12 animals during exploration of an open field and an object exploration session. PyRAT is able to integrate electrophysiological signals with kinematic metrics, such as velocity, acceleration, presence in areas and object exploration. In addition, we developed an unsupervised algorithm to automatically extract and cluster distinct animal behavior. PyRAT's functions are available in an open access repository: https://github.com/pyratlib/pyrat.