TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields

Tristan Walter, Iain D. Couzin

eLife · 2021 · 293 citations · 64 references

DOIFull text

Open access

Concepts

TL;DR

Automated visual tracking is becoming indispensable for behavioral studies, providing quantitative insights into sensing and decision‑making across ecological contexts, yet current solutions struggle with deployment for long or high‑resolution video streams. This work introduces TRex, a fast, easy‑to‑use system that tracks many individuals simultaneously using background subtraction. TRex achieves real‑time (60 Hz) tracking for up to ~256 animals, estimating 2D visual fields, outlines, and head/rear positions of bilateral animals in both open and closed‑loop settings. It delivers highly accurate deep‑learning‑based identification of up to ~100 unmarked individuals, operating 2.5–46.7× faster, using 2–10× less memory than comparable software, with performance improving for larger groups or longer videos, and offers interactive data exploration via a platform‑independent GUI.

Abstract

Automated visual tracking of animals is rapidly becoming an indispensable tool for the study of behavior. It offers a quantitative methodology by which organisms’ sensing and decision-making can be studied in a wide range of ecological contexts. Despite this, existing solutions tend to be challenging to deploy in practice, especially when considering long and/or high-resolution video-streams. Here, we present TRex, a fast and easy-to-use solution for tracking a large number of individuals simultaneously using background-subtraction with real-time (60 Hz) tracking performance for up to approximately 256 individuals and estimates 2D visual-fields, outlines, and head/rear of bilateral animals, both in open and closed-loop contexts. Additionally, TRex offers highly accurate, deep-learning-based visual identification of up to approximately 100 unmarked individuals, where it is between 2.5 and 46.7 times faster, and requires 2–10 times less memory, than comparable software (with relative performance increasing for more organisms/longer videos) and provides interactive data-exploration within an intuitive, platform-independent graphical user-interface.

References

64