Abstract
To study brain function, preclinical research relies heavily on animal monitoring and the subsequent analyses of behavior. Commercial platforms have enabled semi high-throughput behavioral analyses by providing accurate tracking of animals, yet they often struggle with the analysis of ethologically relevant behaviors and lack the flexibility to adapt to variable testing environments. In the last couple of years, substantial advances in deep learning and machine vision have given researchers the ability to take behavioral analysis entirely into their own hands. Here, we directly compare the performance of commercially available platforms (Ethovision XT14, Noldus; TSE Multi Conditioning System, TSE Systems) to cross-verified human annotation. To this end, we provide a set of videos - carefully annotated by several human raters - of three widely used behavioral tests (open field, elevated plus maze, forced swim test). Using these data, we show that by combining deep learning-based motion tracking (DeepLabCut) with simple post-analysis, we can track animals in a range of classic behavioral tests at similar or even greater accuracy than commercial behavioral solutions. In addition, we integrate the tracking data from DeepLabCut with post analysis supervised machine learning approaches. This combination allows us to score ethologically relevant behaviors with similar accuracy to humans, the current gold standard, thus outperforming commercial solutions. Moreover, the resulting machine learning approach eliminates variation both within and between human annotators. In summary, our approach helps to improve the quality and accuracy of behavioral data, outperforming commercial systems at a fraction of the cost.
Introduction
In behavioral neuroscience, quantifying how animals interact with their environment is essential for understanding the underlying neural mechanisms of function and disease. For decades, researchers have faced a choice between two primary methodologies: expensive commercial "black box" systems or labor-intensive manual human annotation. While commercial systems offer automation, they are often rigid, requiring proprietary modules for specific behaviors and struggling with environmental variability. Conversely, human scoring is highly accurate but suffers from inter-rater variability and fatigue.
This study investigates whether modern deep learning can bridge this gap, providing a flexible, low-cost, and high-precision alternative. By comparing established commercial platforms like Ethovision XT14 and the TSE Multi Conditioning System against a human-verified ground truth, the authors demonstrate that open-source tools can match or exceed the performance of industry standards.
Methodology
The researchers evaluated three distinct approaches across three standard behavioral assays: the Open Field Test (OFT), the Elevated Plus Maze (EPM), and the Forced Swim Test (FST). The core of the automated pipeline relied on DeepLabCut (DLC), an open-source pose-estimation tool.
As shown in the figure above, the DLC model was trained to track 13 specific body parts on the mouse (a), including the nose, head center, ears, and tail. Additionally, the system was trained to recognize the geometry of the testing arenas (b, c, d), making the tracking robust to minor camera shifts or setup changes.
For complex behaviors like "rearing," the team implemented a supervised machine learning approach. They trained an Artificial Neural Network (ANN) with two hidden layers using "skeletal" sequences derived from the DLC coordinates. For behaviors like "floating" in the FST, geometric post-analysis was used to calculate the rate of change in the area of a polygon formed by the mouse's body parts.
Key Results and Insights
The "Beam Break" Illusion
A significant finding was that infrared beam-based systems (like TSE) often overestimate distance traveled. Because these systems calculate the animal's center point based on broken beams, stationary behaviors like grooming or minor body wobbles can be misinterpreted as movement, inflating activity metrics.
Precision in Complex Behaviors
The deep learning pipeline excelled in detecting ethologically relevant behaviors that commercial systems often miss:
- Rearing Detection: The supervised ML approach achieved a frame-by-frame accuracy of 86% ± 3%, significantly outperforming commercial solutions, particularly in detecting "supported rears" where the animal leans against a wall.
- Human Correlation: For floating behavior in the FST, the ML classifier reached a correlation of r ≈ 0.96 with human raters, effectively matching the "gold standard" of manual annotation.
Flexibility and Consistency
Unlike commercial systems with rigid definitions, the DLC-based approach allows researchers to define behaviors mathematically to suit their specific experimental needs. Furthermore, once a model is trained on high-quality human data, it eliminates the inconsistency inherent in manual scoring, ensuring that data remains comparable across different researchers and over long periods.
Conclusion
The integration of DeepLabCut with supervised machine learning provides a powerful, transparent, and cost-effective alternative to commercial behavioral tracking systems. While the initial setup requires labor-intensive "ground truth" labeling, the long-term benefits include higher accuracy, greater flexibility, and the elimination of human bias. As these tools continue to evolve, they pave the way for more sophisticated, perhaps even unsupervised, behavioral identification in preclinical research.
Summary updated