NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reviewer #2 (Public Review): Anti-drift pose tracker (ADPT): A transformer-based network for robust animal pose estimation cross-species

Guoling Tang, Yaning Han, Quanying Liu, Pengfei WeiOpenalex Unknown 2024 · OpenAlex

Abstract

Deep learning-based methods for animal pose estimation have recently made substantial progress in improving the accuracy and efficiency of quantitative descriptions of animal behavior. However, these methods commonly suffer from tracking drifts, i.e., sudden jumps in the estimated position of a body point due to noise, thus reducing the reliability of behavioral study results. Here, we present a transformer-based animal pose estimation tool, called Anti-Drift Pose Tracker (ADPT), for eliminating tracking drifts in behavior analysis. To verify the anti-drift performance of ADPT, we conduct extensive experiments in multiple cross-species datasets, including long-term recorded mouse and monkey behavioral datasets collected by ourselves, as well as two public Drosophilas and macaques datasets. Our results show that ADPT greatly reduces the rate of tracking drifts, and significantly outperforms the existing deep-learning methods, such as DeepLabCut, SLEAP, and DeepPoseKit. Moreover, ADPT is compatible with multi-animal pose estimation, enabling animal identity recognition and social behavioral study. Specifically, ADPT provided an identification accuracy of 93.16% for 10 unmarked mice, and of 90.36% for free-social unmarked mice which can be further refined to 99.72%. Compared to other multi-stage network-based tools like multi-animal DeepLabCut, SIPEC and Social Behavior Atlas, the end-to-end structure of ADPT supports its lower computational costs and meets the needs of real-time analysis. Together, ADPT is a versatile anti-drift animal behavior analysis tool, which can greatly promote the accuracy, robustness, and reproducibility of animal behavioral studies.

Introduction

In neuroscience and ethology, quantifying animal behavior requires precise tracking of body parts, a process known as pose estimation. While deep learning tools like DeepLabCut and SLEAP have revolutionized the field, they frequently suffer from tracking drift. This occurs when noise, occlusions, or similar-looking objects cause the model to "jump" a keypoint to the wrong location—for example, mistaking a shadow for a mouse’s tail.

Current fixes usually involve manual human refinement, which is slow and labor-intensive, or signal filters, which can inadvertently erase subtle, high-frequency behaviors like tremors. The authors of ADPT argue that drift must be addressed at the architectural level by helping the model understand the "global" relationship between body parts.

Methods: A Hybrid Architecture

ADPT introduces a hybrid architecture that blends the local feature extraction of Convolutional Neural Networks (CNNs) with the global context provided by Transformers.

Figure 1: ADPT architecture and drift comparison. (A) Common tracking errors in existing tools like inexplicable keypoint drift. (B) ADPT's robust tracking in the same scenarios. (C-D) The hybrid CNN-Transformer network architecture designed to capture global spatial relationships.

Key components of the ADPT framework include:

  • CNN Backbone: The model uses the first two stacks of ResNet50 to extract shallow, local features such as textures and edges.
  • Transformer Module: Features are processed at multiple scales. The 1/16 scale features are fed into a Transformer with multi-head attention. This allows the model to learn long-range dependencies—essentially teaching it that a "tail" keypoint must be spatially related to the "root tail" and "body" keypoints, regardless of local noise.
  • End-to-End Output: The network simultaneously predicts confidence heatmaps, location refinements, and a Low-Resolution Semantic Segmentation (LRSS) map.
  • Identity Tracking: For multi-animal scenarios, ADPT uses Body Affinity Fields (BAF) and LRSS to maintain individual identities without needing a complex, multi-stage pipeline.

Experimental Validation

The authors validated ADPT across a diverse range of species and settings, including custom long-term recordings of mice and cynomolgus monkeys, as well as public benchmarks like the single-fly dataset, OpenMonkeyStudio (macaques), and the StanfordExtra dataset (dogs). To handle social data, a "Mix-up" strategy was used to synthesize multi-animal training data by overlaying single-animal frames onto various backgrounds.

Key Results and Performance

ADPT demonstrated superior performance across several metrics compared to established tools like DeepLabCut and SLEAP.

Figure 2: Quantitative performance comparison. (A-B) Coordinate tracking and frame examples showing drift in DeepLabCut and SLEAP compared to ADPT. (C-E) Statistical analysis showing significantly lower drift and miss rates for ADPT, alongside improved overall accuracy (RMSE).
  • Drift Reduction: Quantitative analysis showed significantly lower drift and "miss" rates across mouse and monkey datasets, especially for challenging parts like the tail tip.
  • Superior Accuracy: On the single-fly benchmark, ADPT achieved a mean Average Precision (mAP) of 92.83%, outperforming its competitors.
  • High-Speed Inference: ADPT reached a prediction speed of 90 ± 4 fps on 1288 x 964 video, nearly double the speed of DeepLabCut (44 ± 2 fps) in the authors' testing environment.
  • Robust Identity Tracking: The model achieved 93.16% identification accuracy for 10 unmarked mice and 99.72% for social mice after temporal refinement.

Discussion and Limitations

The core insight of ADPT is that global context is the antidote to drift. Traditional CNNs have a limited receptive field; they might see a dark spot and misidentify it as a paw. Transformers look at the whole frame and realize that spot cannot be a paw because the rest of the legs are already accounted for elsewhere. Furthermore, ADPT is data-efficient, achieving acceptable performance with as few as 350 annotated images.

However, the study notes some limitations. Pose estimation quality can still degrade during extreme physical contact between animals (e.g., huddling). Additionally, high-resolution videos can tax GPU memory due to the nature of positional encoding in Transformers. Future work may explore "conditional positional encoding" to optimize memory usage and further improve social tracking in dense clusters.

Summary updated

BibTeX
@inproceedings{tang2024reviewer,
  author = {Guoling Tang and Yaning Han and Quanying Liu and Pengfei Wei},
  title = {{Reviewer \#2 (Public Review): Anti-drift pose tracker (ADPT): A transformer-based network for robust animal pose estimation cross-species}},
  booktitle = {Openalex Unknown},
  year = {2024},
  doi = {10.7554/elife.95709.1.sa0},
}
Figure