bioRxivAnimal Behavior & CognitionPreprint
TracktorLive: an integrated real-time object tracking and response system
Pranav MinasandraiD, Vivek H. SridhariD, Dominique G. RocheiD, Isaac Planas‐SitjàiD
Abstract
Real-time tracking and automated response systems are essential for standardising experiments, reducing observer bias, and improving reproducibility in studies of movement and behaviour. However, existing solutions face significant challenges: AI-based tracking systems require expensive hardware and impose computational delays, creating challenges for closed-loop experiments; existing real-time tracking tools lack standardised implementations for response delivery; and steep learning curves limit accessibility for users without programming or computer vision expertise. Here, we introduce TracktorLive, an open-source Python package designed to overcome these challenges through concurrency and a modular, cassette-based architecture. TracktorLive leverages traditional computer vision techniques to perform image-based object detection without the need for expensive hardware or deep learning. By parallelizing object tracking and response delivery into separate, concurrent server and client processes, the software minimizes frame processing time, enabling rapid, real-time analysis and response delivery. User-friendly cassettes--portable code snippets that can be copy-pasted into scripts--enable users with minimal programming experience to implement complex workflows for use in experiments and practical applications. We demonstrate TracktorLives utility through several applications, including microcontroller-based stimulus delivery for location-dependent manipulations; conditional video recording that activates only during events of interest; kinematic-based response triggering using real-time velocity computations; and multi-cassette experimental designs combining multiple functionalities. Detailed tutorials are provided to familiarize users with TracktorLives operation and functionality, and a growing library of cassettes supports diverse applications for processing both real-time and pre-recorded video. We validated the software by comparing its response timing to human experimenters in a stimulus delivery task involving two fish species, where TracktorLive demonstrated consistently higher accuracy and lower variability, particularly for fast-moving subjects. Beyond experimental biology, TracktorLives unique architecture and versatility could support many different applications in fields ranging from neuroscience to wildlife management. As an open-source software combining accessibility, modularity, and computational efficiency, TracktorLive can help democratize real-time tracking and automated response systems across disciplines.
- assay: imaging
- research focus: software / tool
- research focus: benchmarking
- approach: experimental assay
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Tracktor: image-based automated tracking of animal movement and behaviour
V. H. Sridhar, D. G. Roche, S. Gingins·bioRxiv·Sep 9, 2018
- RpiBeh: a multi-purpose open-source solution for real-time tracking and behavior-driven closed-loop interventions in rodent neuroethology
Yiqi Sun, Jie Zhang, … Jianguang Ni·Scientific ReportsPeer-reviewed·Aug 11, 2025
- TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields
T. Walter, I. D. Couzin·bioRxiv·Oct 14, 2020
- Track-Control, an automatic video-based real-time closed-loop behavioral control toolbox
G.-W. Zhang, L. Shen, … L. I. Zhang·bioRxiv·Dec 11, 2019
- EyeLoop: An open-source, high-speed eye-tracker designed for dynamic experiments
Simon Arvin, Rune Nguyen Rasmussen, Keisuke Yonehara·bioRxiv·Jul 3, 2020
- MARGO (Massively Automated Real-time GUI for Object-tracking), a platform for high-throughput ethology
Zach Werkhoven, Christian Rohrsen, … Benjamin L. de Bivort·PLoS ONEPeer-reviewed·Nov 25, 2019