Skip to main content
QUICK REVIEW

[Paper Review] ToxTrac: a fast and robust software for tracking organisms

Alvaro Rodriquez, Hanqing Zhang|arXiv (Cornell University)|Jun 8, 2017
Species Distribution and Climate ChangeEnvironmental Science5 references27 citations
TL;DR

ToxTrac is an open-source, fast, and robust software for automated video tracking of multiple organisms (insects, fish, rodents) in laboratory settings. It enables real-time, high-speed tracking (>25 fps on HD video) with built-in camera calibration, distortion correction, and robust handling of occlusions, while exporting detailed behavioral statistics and heat maps in multiple formats.

ABSTRACT

1. Behavioral analysis based on video recording is becoming increasingly popular within research fields such as; ecology, medicine, ecotoxicology, and toxicology. However, the programs available to analyze the data, which are; free of cost, user-friendly, versatile, robust, fast and provide reliable statistics for different organisms (invertebrates, vertebrates and mammals) are significantly limited. 2. We present an automated open-source executable software (ToxTrac) for image-based tracking that can simultaneously handle several organisms monitored in a laboratory environment. We compare the performance of ToxTrac with current accessible programs on the web. 3. The main advantages of ToxTrac are: i) no specific knowledge of the geometry of the tracked bodies is needed; ii) processing speed, ToxTrac can operate at a rate >25 frames per second in HD videos using modern desktop computers; iii) simultaneous tracking of multiple organisms in multiple arenas; iv) integrated distortion correction and camera calibration; v) robust against false positives; vi) preservation of individual identification if crossing occurs; vii) useful statistics and heat maps in real scale are exported in: image, text and excel formats. 4. ToxTrac can be used for high speed tracking of insects, fish, rodents or other species, and provides useful locomotor information. We suggest using ToxTrac for future studies of animal behavior independent of research area. Download ToxTrac here: https://toxtrac.sourceforge.io

Motivation & Objective

  • Address the lack of free, user-friendly, and robust software for tracking diverse organisms in behavioral studies.
  • Develop a solution that supports simultaneous tracking of multiple animals across multiple arenas without requiring prior knowledge of body geometry.
  • Ensure high processing speed and reliability in real-world conditions, including occlusions and lighting variations.
  • Integrate camera calibration and distortion correction directly into the tracking pipeline to improve accuracy.
  • Provide comprehensive, real-time behavioral statistics and visualizations (e.g., heat maps) in standard formats (image, text, Excel).

Proposed method

  • Utilizes computer vision algorithms for real-time object detection and tracking in video sequences.
  • Employs a background subtraction technique combined with blob tracking to identify and follow individual organisms.
  • Incorporates automatic camera calibration and lens distortion correction using a calibration grid or known reference points.
  • Applies a robust tracking framework that maintains individual identity even during temporary occlusions or crossings.
  • Uses a dynamic thresholding and morphological filtering approach to reduce false positives and improve tracking stability.
  • Exports processed data in multiple formats, including image overlays, text logs, and Excel files with spatial and temporal statistics.

Experimental results

Research questions

  • RQ1Can a single software tool efficiently and accurately track multiple organisms across diverse species (invertebrates, vertebrates, mammals) in real time?
  • RQ2How does ToxTrac perform in terms of speed and accuracy compared to existing open-source tracking tools under standard laboratory conditions?
  • RQ3To what extent can ToxTrac maintain individual identity during occlusions or close-proximity interactions?
  • RQ4How effective is the integrated camera calibration and distortion correction in improving tracking accuracy without requiring manual setup?
  • RQ5Can ToxTrac generate reliable, user-friendly behavioral statistics and visualizations (e.g., heat maps) directly from raw video data?

Key findings

  • ToxTrac achieves real-time tracking at over 25 frames per second on HD video using standard desktop hardware.
  • The software successfully tracks multiple organisms simultaneously across multiple experimental arenas without requiring prior knowledge of body shape or geometry.
  • ToxTrac demonstrates robust performance in handling false positives and maintaining individual identity during crossings or occlusions.
  • Integrated camera calibration and distortion correction significantly improve tracking accuracy without user intervention.
  • The system reliably exports behavioral data, including locomotion metrics and heat maps, in image, text, and Excel formats for downstream analysis.
  • ToxTrac outperforms existing open-source tools in speed, robustness, and versatility across diverse species and experimental setups.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.