A promptable foundation model enables automated multi-task dataset construction and real-time pose estimation in mice
Preprint
Abstract
Behavioural experiments often hinge on moments when animals crowd together. In these situations, existing pose-estimation methods usually fail because detected crops include neighbouring animals, and their body parts are easily confused between individuals. We solved it with DeepLabSAM, a pipeline that segments and tracks every animal from a single text prompt using the SAM 3 foundation model, followed by a mask-gated pretrained pose estimation network from DeepLabCut. Across recordings of multiple interacting mice, the proposed method substantially reduces misassigned keypoints under heavy occlusion. Furthermore, we used DeepLabSAM to automatically construct the Multi-Task Mouse Behaviour (MTMB) dataset, comprising 14,300 frames spanning nine behavioural assays, with each instance annotated for bounding box, mask, identity, and pose. SuperAnimal pretrained pose models transferred unpredictably across this dataset. Conversely, MouseLite, our RF-DETR pose-estimation model trained on the MTMB dataset, matched their in-distribution accuracy, generalized better to unseen assays, and achieved real-time (faster-than-acquisition) inference. Combined, DeepLabSAM, MTMB dataset, and MouseLite provide a scalable framework for robust, cross-assay behavioural pose estimation of freely interacting mice.Keywords
Funding Information
- Centre National de la Recherche Scientifique
- Centre National de la Recherche Scientifique (MITI 80 PRIME NEUROJAC)
This publication has 25 references indexed in Scilit:
- From eye to AI: Studying rodent social behavior in the era of machine learningNeuroscience & Biobehavioral Reviews, 2026
- MouseSIS: A Frames-and-Events Dataset for Space-Time Instance Segmentation of Mice2025
- SuperAnimal pretrained pose estimation models for behavioral analysisNature Communications, 2024
- Segment anything in medical imagesNature Communications, 2024
- SLEAP: A deep learning system for multi-animal pose trackingNature Methods, 2022
- End-to-End Object Detection with Transformers2020
- Deep learning-based behavioral analysis reaches human accuracy and is capable of outperforming commercial solutionsNeuropsychopharmacology, 2020
- Big behavior: challenges and opportunities in a new era of deep behavior profilingNeuropsychopharmacology, 2020
- idtracker.ai: tracking all individuals in small or large collectives of unmarked animalsNature Methods, 2019
- idTracker: tracking individuals in a group by automatic identification of unmarked animalsNature Methods, 2014