Article view

Traja: A Python toolbox for animal trajectory analysis

By Justin Shenk, Wolf Byttner, Saranraj Nambusubramaniyan, Alexander Zoeller

Article information

Publication
Published 18 July 2021
Institutions at publication
Radboud University Nijmegen; Rapid Health, London, England, United Kingdom; VisioLab, Berlin, Germany; Independent researcher
26 Citations OpenAlex, 3 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

There are generally four categories of trajectory data: mobility of people, mobility of transportation vehicles, mobility of animals, and mobility of natural phenomena (Zheng, 2015). Animal tracking is important for fields as diverse as ethology, optimal foraging theory, and neuroscience. Mouse behavior, for example, is a widely studied in biomedical and brain research in models of neurological disease such as stroke. 1 Several tools exist which allow analyzing mouse locomotion. Tools such as Ethovision (Spink et al., 2001) and DeepLabCut (Mathis et al., 2018) allow converting video data to pose coordinates, which can further be analyzed by other open source tools.DLCAnalyzer 2 provides a collection of R scripts for analyzing positional data, in particular visualizing, classifying and plotting movement.B-SOiD (Hsu & Yttri, 2020) allows unsupervised clustering of behaviors, extracted from the pose coordinate outputs of DeepLabCut. SimBA (sgoldenlab et al., 2021) provides several classifiers and tools for behavioral analysis in video streams in a Windowsbased graphical user interface (GUI) application. These tools are primarily useful for video data, which is not available for the majority of animal studies. For example, video monitoring of home cage mouse data is impractical today due to housing space constraints. Researchers using Python working with non-visual animal tracking data sources are not able to fully leverage these tools. Thus, a tool that supports modeling in the language of state-of-the-art predictive models (Amirian et al., 2019;Chandra et al., 2019;Liang et al., 2019), and which provides animal researchers with a high-level API for multivariate time series feature extraction, modeling and visualization is needed. Traja is a Python package for statistical analysis and computational modelling of trajectories. Traja extends the familiar pandas (McKinney, 2010;team, 2020) methods by providing a pandas accessor to the df.traja namespace upon import. The API for Traja was designed to provide an object-oriented and user-friendly interface to common methods in analysis and visualization of animal trajectories. Traja also interfaces well with relevant spatial analysis packages in R (e.g., trajr (McLean & Volponi, 2018) and adehabitat (Calenge, 2006)), Shapely (Gillies & others, 2007-), and MovingPandas (Graser, 2019) allowing rapid prototyping and comparison of relevant methods in Python.A comprehensive source of documentation is provided on the home page (http://traja.readthedocs.io).

Citations per year

Citations per year
YearCitations
2021 0
2022 2
2023 7
2024 5
2025 12
2026 0

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 26 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
Germany1
The Netherlands1
United Kingdom1