Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Markerless tracking of user-defined features with deep learning

Transfer learning lets deep networks track user-defined body parts without markers

  • Problem Motor control studies attach reflective markers to animals, which are intrusive and fix the trackable features in advance. Deep pose networks need tens of thousands of labeled images, which many labs cannot collect.
  • Method DeepLabCut reuses DeeperCut's ImageNet-pretrained ResNet feature detectors. It replaces the output layers with one score-map per body part and trains all weights on a few hundred labeled frames.
  • Results With 80% of frames for training, snout and tail base test error reached human variability. At a 10% training fraction, average pixel error stayed below 5 pixels.

Why markers and hand-built models fall short

Motor control studies usually attach reflective markers to the animal, because markers allow tracking of body parts with high accuracy. Markers can be expensive and distracting to animals, and they have to be placed before recording, which fixes the features that can be tracked. Skeleton and active contour models avoid markers, but they need sophisticated body models that are hard to build and fit to data.

Deep networks give the best results on human pose benchmarks, so they look like the obvious alternative. Those benchmarks rely on large labeled sets, such as about 25,000 images in the MPII Human Pose data set, which is out of reach for many neuroscience labs. The authors argue that transfer learning closes that gap, and that about 200 labeled images can be enough.

Reusing a pre-trained feature detector

The key idea is to keep only DeeperCut's feature detectors, which pair a ResNet backbone with a readout layer for each body part. The backbone is pre-trained on ImageNet, so the detectors start from general image features rather than from random weights. The authors expected this to work because those features already encode much of what a new body-part detector needs, so a few hundred labels can adapt them.

The softmax layer after the conv5 bank is replaced by deconvolutional layers that output a scalar field per body part, and this output also connects to the conv3 bank for finer features. Each body part gets its own score-map, which gives the probability that the part is at a particular pixel. During training, the target is 1 for every location within a distance variable of 17 pixels from the ground truth, with a scale factor of 0.8, unless otherwise noted.

Training minimizes a cross-entropy loss between predicted and target score-maps with stochastic gradient descent, using batch size 1 and rescaling augmentation from 50% to 150%.

From labeled frames to predicted positions

The user first extracts distinct frames, cropping each to a region of interest as small as possible while still containing the behavior. The user then labels the chosen body parts by hand, and training updates both the readout layers and the network weights. Once trained, the network predicts score-maps on unseen frames, and the peak of each map gives the body-part location.

The peak's amplitude is read as a confidence value, so each predicted coordinate can carry a score. With several mice in one frame, predictions come from the local maxima of the score-map. Accuracy is the Euclidean distance between label sets, averaged as RMSE per body part, and RMSE is not the training loss.

Trail-tracking accuracy against a human labeler

The authors extracted 1 080 frames from two cameras and seven mice, then labeled the snout, both ears and the tail base. One annotator labeled the same frames twice, more than a month apart, and the RMSE between the two label sets defines human variability.

With 80% of frames for training and 20% for testing, the snout and tail base test RMSE reached human variability. At a 10% training fraction the average pixel error stayed below 5 pixels, close to the snout size in the low-resolution camera. So the authors conclude that about 100 frames already generalize well.

Does a deeper backbone help?

The default backbone is ResNet-50, and the authors also trained ResNet-101 and ResNet-101 with intermediate supervision. Training and test errors both fell a little, so depth helped only modestly in this comparison.

The authors note that the deeper networks do not overfit, but they do not offer a radical improvement. Because the gain stays small, the main results keep the ResNet-50 backbone.

Sharing the backbone across body parts

The authors trained specialized networks on snout labels alone or tail labels alone, using three 50% splits, and compared them with the full network. Each network is scored on the body part it was trained for, so the comparison isolates the effect of the other labels. The full network outperforms the specialized networks nearly twofold.

The authors read this as evidence that the shared ResNet lets localization of one body part gain from labels on other parts. It also means that updating weights throughout the network beats relying on fixed feature representations.

Novel mice and multi-animal frames

The network tracked a novel mouse that was absent from training, and the trajectory looked continuous, which the authors read as accurate training. Although it was trained only on single mice, it found body parts for each of several mice in one frame. Occluding mice caused failures, so the model is not error-free in social scenes.

The authors suggest that training with multi-mouse images or with pairwise terms between body parts would improve this. The paper contains no such variant.

Flies and mouse digits

The fly data set has 589 frames from six animals and 12 points, with 95% of frames used for training. Flies not in the training set were tracked across orientations and against cluttered egg backgrounds.

For the mouse hand, the network predicts 13 points per frame, including the wrist. A single digit is about 15 pixels wide, so this error is a fraction of the digit width. The methods count 159 labeled frames across five mice, which differs from the 141 used for training.

Confidence and iterative labeling

The score-map peak's amplitude falls when a digit tip is occluded by the joystick. For flies, the authors drew points only when probability exceeded 10%, which hides occluded legs. Low probability isn't always an error, since occlusion also produces it.

The authors propose using these scores to choose frames for extra labels, sampling near high or low probability. Fine-tuning on those frames in an active learning loop is offered as a way to fix edge cases.

Limitations

Frames were picked at random, so sparse or noisy behaviors such as motion blur could be under-sampled. Large errors on test frames that differ from the training set can dominate the average. Predictions are made frame by frame without temporal filtering, and the authors left Kalman filtering out.

Occlusion between animals is only partly handled, and the authors suggest pairwise terms as a future addition. Speed figures apply only to 682 × 540 Drosophila frames at about 30 frames per second on a 1080-Ti GPU.

Paper info

Authors
Alexander Mathis, Pranav Mamidanna, Taiga Abe, Kevin M. Cury, Venkatesh N. Murthy, Mackenzie W. Mathis, Matthias Bethge
Venue
arXiv · Preprint
First published
2018-4-9
Added
2026-11-11
Updated
2018-4-9
Version
v1
arXiv
1804.03142
Category
cs.CV · q-bio.NC · q-bio.QM · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Alexander Mathis, Pranav Mamidanna, Taiga Abe, Kevin M. Cury, Venkatesh N. Murthy, Mackenzie W. Mathis, Matthias Bethge (2018). Markerless tracking of user-defined features with deep learning. arXiv:1804.03142v1. https://arxiv.org/abs/1804.03142v1

BibTeX
@misc{mathis2018markerless,
  title = {{Markerless tracking of user-defined features with deep learning}},
  author = {Alexander Mathis and Pranav Mamidanna and Taiga Abe and Kevin M. Cury and Venkatesh N. Murthy and Mackenzie W. Mathis and Matthias Bethge},
  year = {2018},
  eprint = {1804.03142},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.03142v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up