idtrackerai

Trajectories analysis

We are constantly developing new tools to analyze the trajectories that idtracker.ai outputs. In addition, we also provide Jupyter Lab Notebooks with examples of analysis routines for groups of animals.

The trajectorytools python module

You can install the trajectorytools module from the following GitHub repository: https://github.com/fjhheras/trajectorytools

Jupyter Lab Notebooks

You can find some analysis routines from [1] implemented with the trajectorytools module in the Jupyter Lab Notebook trajcetoroies.ipynb in the following GitLab repository: https://gitlab.com/polavieja_lab/bns2018.

Figures generated from the Jupyter Lab Notebook for a video of 10 juvenile fish

Smoothed trajectories

_images/trajectories.png

Velocities and accelerations

_images/velocity_and_acceleration.png

Density of neighbours around a focal fish

_images/density_of_neighbours.png

Polar distributions of positions, turnings and accelerations

_images/polar_plots.png

Inter-individual distance histograms compared with shuffled trajectories

_images/distances_vs_random.png
[1]Hinz, R. C., & de Polavieja, G. G. (2017). Ontogeny of collective behavior reveals a simple attraction rule. Proceedings of the National Academy of Sciences