Automating annotation: Machine learning tools help neuroscientists who study rodent social behavior by cutting down the time needed for annotation.
Add us as a Preferred Source on Google

Machine learning tool decodes social behaviors in mice

The new annotation algorithm, HiDRA, can track and label animals’ movements and is reproducible across labs.

By Claudia López Lloreda
3 December 2026 | 0 min watch

A 30-minute video of two interacting mice can log multiple behaviors, from grooming to fighting, and researchers may spend hours annotating every single movement. Even then, two observers may label actions in the same video differently. A new machine learning tool offers a more reproducible way to decode these animals’ interactions. 

Due to its self-supervised nature, the tool could further researchers’ understanding of social behavior by providing biologically interpretable features, says study investigator Sam Golden, associate professor of neurobiology and biophysics at the University of Washington. “[These models] allow the experimenter to understand the biology that’s driving those predictions and those classifications.”

Study investigator Ann Kennedy, associate professor of neuroscience at the Scripps Research Institute, and her colleagues released the High-Dimensional Rodent Annotator (HiDRA) in October in a preprint on bioRxiv. It is based on the winning model from a social behavior classification algorithm competition, which had more than 30,000 submissions from 1,781 participants. HiDRA can track 33 behaviors in videos from different labs based on a mouse’s body positioning. 

For years, automated behavior classification tools promised to usher in a new era of neuroscience, but they could decode only simplified tasks, and many failed to generalize beyond individual labs, says Timothy Dunn, assistant professor of biomedical engineering at Duke University, who was not involved in the new work. Labs with different video and experimental setups collected and annotated data in their own ways, which “resulted in these methods really not living up to what they promised,” he adds. 

The new algorithm, however, can classify the behaviors in videos across labs with varying experimental setups. “That’s important for reproducibility,” Dunn says. “You can compare different genotypes and different conditions across labs in ways that you couldn’t do before.” 

P

articipants in the competition developed their algorithms using a dataset called Days of Our Mice (DooM)—which contains more than 600 videos from 15 different labs, totaling 180 hours of mice going about their lives and interacting with one another during experiments—along with manual annotations for 33 behaviors and pose-tracking data. 

HiDRA, which emerged after some tweaking, identified behaviors in videos it was not trained on and could be fine-tuned to detect other behaviors not in the dataset. The algorithm did so by extracting features that characterize how animals move based on the the velocity and distance between body parts, such as the nose, hips and tail, and using these features to apply labels of actions.

Transferable tool: Contrary to prior tools, the HiDRA algorithm could be used to detect mouse behaviors in videos with different features from more than a dozen labs.

“HiDRA is so good at recognizing snippets, little bits of movement, that even if you don’t have a lot of information in between, just having a few key points and a few frames is enough for you to piece together the general picture of what the behavior looks like,” Kennedy says. The model also learned to detect a previously unclassified behavior quickly with just a few examples, says study investigator Talmo Pereira, assistant professor at the Salk Institute for Biological Studies. And it reproduced results from previous studies, picking up on behavioral traits in autism mouse models, such as increased aggression. 

Previously, researchers thought they needed high-end recording equipment to capture behavior, says Mathias Schmidt, group leader at the Max Planck Institute of Psychiatry, who was not involved in the study but contributed data to the DooM dataset. This study challenges that idea, revealing that factors such as frame rate and resolution do not predict how well HiDRA detects a behavior. 

Instead, because the videos in the dataset had been recorded in a wide range of locations and with different experimental setups, the model learned representations of each movement that were generalizable across labs, Kennedy says. Capturing these movements doesn’t require expensive equipment, thus reducing the hurdles for researchers who want to implement these approaches, she adds. “I think this is great news. It makes these methods a lot easier to democratize and share.”

Because of the dataset’s diversity, HiDRA can capture a wide range of social behaviors that existing annotation methods miss, Schmidt says. Therefore, this tool will enable researchers to start interrogating behaviors beyond those their labs focus on, he adds. 

But HiDRA still has room to grow: It excels at characterizing whole-body behaviors but fails to capture more subtle movements, such as grasping, according to the study. And it remains to be seen how well it translates to more complex behaviors and diverse environments, Dunn says. 

Labs working with HiDRA can provide their own datasets and performance metrics to help fine-tune the algorithm and provide more validation, Dunn adds. “That pressure testing can happen in a crowdsourced fashion across the community.” Kennedy is testing the algorithm on rats and mouse pups, and Pereira might try it on gerbils, Kennedy says. “The hope is that it’s going to work on small, furry quadrupeds.”

Sign up for the weekly Spectrum newsletter.

Stay current with the latest advancements in autism research.