Abstract
Animal behavior is increasingly being recorded in systematic imaging studies that generate large data sets. To maximize the usefulness of these data there is a need for improved resources for analyzing and sharing behavior data that will encourage re-analysis and method development by computational scientists. However, unlike genomic or protein structural data, there are no widely used standards for behavior data. It is therefore desirable to make the data available in a relatively raw form so that different investigators can use their own representations and derive their own features. For computational ethology to approach the level of maturity of other areas of bioinformatics, we need to address at least three challenges: storing and accessing video files, defining flexible data formats to facilitate data sharing, and making software to read, write, browse, and analyze the data. We have developed an open resource to begin addressing these challenges using worm tracking as a model.
Introduction
In fields like genomics or proteomics, standardized data formats and central repositories (like GenBank) have accelerated discovery by allowing researchers to easily share and re-analyze data. Behavioral biology—specifically "computational ethology"—has lagged behind.
Most labs use custom, closed-source tracking software that outputs proprietary formats, making it nearly impossible to compare results across different studies. Furthermore, recording high-resolution video of animal behavior generates massive datasets that are difficult to store and share. Researchers often have to choose between low-resolution "centroid" tracking (which loses fine-grained posture) or high-resolution tracking that is computationally expensive and produces unmanageable file sizes.
Methods
The authors developed a three-part solution to standardize the pipeline from video to analysis:
- Worm tracker Commons Object Notation (WCON): A new, JSON-based interchange format. It is human-readable, machine-readable, and flexible enough to store everything from a single coordinate to a high-resolution "skeleton" of a moving worm.
- The OpenWorm Movement Database: Hosted on Zenodo, this repository provides durable storage and a web interface for searching experiments by genotype or specific behavioral features (e.g., "find fast, highly curved worms").
- Tierpsy Tracker: A multi-worm tracker written in Python. It uses a clever compression algorithm that performs background subtraction but preserves the raw pixels immediately surrounding the worms. This allows for lossless storage of the animal's texture while drastically reducing file sizes.
A standout technical feature is their Head/Tail Identification Algorithm. By analyzing pixel intensity profiles along the worm's body, Tierpsy can automatically correct orientation errors that frequently plague other trackers.
Key Insights and Ideas
- Postural Data is the "Signal": The authors demonstrate that high-resolution postural data (the "skeleton") is far more informative than simple motion data. When classifying wild strains, including postural features increased accuracy from ~58% to ~88%.
- Smart Compression over Lossy Codecs: Instead of using standard video compression (like H.264), which introduces artifacts that can confuse computer vision algorithms, Tierpsy saves only the "blobs" of interest in HDF5 containers. This keeps the data "raw" where it matters most.
- Interoperability is Key: By making WCON readers available in Python, MATLAB, Scala, and C, the authors are attempting to create a "lingua franca" for behavioral data, allowing different labs to use their preferred tools while still being able to share data.
Key Results
- Accuracy: In a manual audit of 1.9 million frames, Tierpsy made head/tail orientation mistakes in only 0.01% of frames, compared to 4.49% for the previous gold standard, WormTracker 2.0.
- Speed: Tierpsy analyzed a standard dataset in 1.5 minutes on a MacBook Pro, twice as fast as the MATLAB-based CeLeST tracker (3 minutes).
- Robustness: The system maintained high tracking agreement (99.2%) with existing hardware-based trackers while being entirely software-defined and open-source.
- Classification: The platform successfully distinguished between 12 wild strains of C. elegans with 87.8% accuracy using a multinomial logistic regression on the extracted features.
Limitations and Future Work
- Resolution Sensitivity: While many features are robust, the authors note that morphological features (width, area) and head/tail dynamics become noisy as video resolution drops.
- Manual Intervention: Although highly automated, the software still includes GUIs for manual review and "joining" of trajectory fragments, suggesting that perfect, fully-automated tracking in complex environments remains a challenge.
- Scaling Beyond Worms: While the platform is currently optimized for nematodes and larvae, the authors suggest this framework could serve as a template for other model organism communities (like zebrafish or mice) to standardize their behavioral data.
Summary updated