[Paper Review] Markerless tracking of user-defined features with deep learning
This paper introduces DeepLabCut, a deep learning-based method for markerless tracking of user-defined body parts in animal behavior videos using transfer learning with minimal labeled data. It achieves human-level accuracy (RMSE ≈ 0.5–1.0 px) with only ~200 training frames, enabling precise, automated pose estimation across diverse species and behaviors such as mouse reaching, Drosophila egg-laying, and odor trail tracking.
Quantifying behavior is crucial for many applications in neuroscience. Videography provides easy methods for the observation and recording of animal behavior in diverse settings, yet extracting particular aspects of a behavior for further analysis can be highly time consuming. In motor control studies, humans or other animals are often marked with reflective markers to assist with computer-based tracking, yet markers are intrusive (especially for smaller animals), and the number and location of the markers must be determined a priori. Here, we present a highly efficient method for markerless tracking based on transfer learning with deep neural networks that achieves excellent results with minimal training data. We demonstrate the versatility of this framework by tracking various body parts in a broad collection of experimental settings: mice odor trail-tracking, egg-laying behavior in drosophila, and mouse hand articulation in a skilled forelimb task. For example, during the skilled reaching behavior, individual joints can be automatically tracked (and a confidence score is reported). Remarkably, even when a small number of frames are labeled ($\approx 200$), the algorithm achieves excellent tracking performance on test frames that is comparable to human accuracy.
Motivation & Objective
- To develop a flexible, non-invasive method for tracking user-defined body parts in animal behavior videos without reflective markers.
- To overcome the limitations of marker-based systems, which are intrusive and require predefined features.
- To enable high-accuracy pose estimation using deep neural networks trained on small datasets via transfer learning.
- To provide a generalizable, open-source toolbox for automated behavior quantification in neuroscience.
- To achieve performance comparable to human annotation using only ~200 labeled frames.
Proposed method
- The method uses transfer learning with a pre-trained deep neural network (DeeperCut-based) fine-tuned on user-labeled images of specific body parts.
- A distinct readout layer per body part predicts the probability of a part's location at each pixel, generating a score-map for localization.
- Training adjusts both the feature extraction weights and the readout layer weights using a combination of L2 loss and a spatially constrained regression loss.
- The network is trained end-to-end on a small set of manually labeled frames, with data augmentation via image rescaling (50–150% range).
- Post-training, the model predicts body part locations as the peak of the score-map, refined using learned correspondences to ground truth.
- The framework supports multi-animal tracking by extracting local maxima in the score-map for each body part.
Experimental results
Research questions
- RQ1Can deep learning with transfer learning achieve high-accuracy markerless pose estimation using only a small number of labeled frames?
- RQ2Can the method generalize across diverse animal species and behaviors without requiring prior marker placement?
- RQ3How does the performance of the model compare to human annotation accuracy, especially with minimal training data?
- RQ4Can the framework automatically detect and track multiple body parts, including fine joints, in complex behaviors?
- RQ5What is the impact of hyperparameters such as the spatial radius epsilon and scale factor on model performance?
Key findings
- The model achieves human-level accuracy (RMSE ≈ 0.5–1.0 px) on test frames with only ~200 labeled training frames, comparable to human annotation.
- The method successfully tracks individual joints in mouse hand reaching tasks, with confidence scores reported for each prediction.
- Performance remains robust across diverse experimental settings, including mouse odor trail tracking, Drosophila egg-laying, and skilled forelimb tasks.
- Cross-validation showed that performance was not improved by varying epsilon widely, but performance dropped sharply for very small epsilon values.
- The framework enables accurate pose estimation even in multi-animal scenarios by detecting local maxima in score-maps.
- t-SNE visualization of cropped hand images revealed distinct, interpretable posture clusters corresponding to labeled body part configurations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.