Trajectorytools#

While idtracker.ai’s job ends when the trajectory files are validated. There is an extra tool (not part of but compatible with idtracker.ai) called trajectorytools.

It is a Python package to perform basic trajectory analysis and it is available at fjhheras/trajectorytools.

You can find some analysis routines from [1] implemented with trajectorytools in the Jupyter Notebook trajectories.ipynb in polavieja_lab/idtrackerai_notebooks. Here we present some of the analysis we get using a 10 juvenile fish video:

Plot of the trajectories of zebrafish tracked with idtracker.ai Neighbors density plot of zebrafish tracked with idtracker.ai

Smoothed trajectories (left) and density of neighbors around a focal fish (right)

../_images/velocity_and_acceleration.png

Velocities and accelerations#

../_images/polar_plots.png

Polar distributions of positions, turnings and accelerations#

../_images/distances_vs_random.png

Inter-individual distance histograms compared with shuffled trajectories#

References