A Game-Changing AI Tool for Tracking Animal Movements

Vladimir Hodac/Shutterstock.com

Scientists are already using it to study octopuses, electric fish, surgical robots, and racehorses.

In a video, a rodent reaches out and grabs a morsel of food, while small, colored dots highlight the positions of its knuckles. In another clip, a racehorse gallops along a track; again, small, colored dots track the position of its body parts. In a third video, two human dancers circle around each other as those same dots unfailingly follow the sometimes fluid, sometimes jerky movements of their limbs.

These videos are showcases for DeepLabCut, a tool that can automatically track and label the body parts of moving animals. Developed this year by Mackenzie Mathis and Alexander Mathis, a pair of married neuroscientists, DeepLabCut is remarkable in its simplicity. It has allowed researchers to download any video from the internet and digitally label specific body parts in a few dozen frames. The tool then learns how to pick out those same features in the rest of the video, or others like it. And it works across species, from laboratory stalwarts like flies and mice to … more unusual animals.

Here’s one striking example. This video, shot in Costa Rica, shows a lichen katydid, an insect whose white protrusions perfectly camouflage its body against the white lichen on which it walks. DeepLabCut sees through the insect’s ruse, successfully labeling its feet, joints, and antennae. “I think this method is going to revolutionize behavioral science, including neuroscience and psychology,” says Venkatesh Murthy from Harvard University, who works with the Mathises.

A lot of research in those fields hinges on understanding what humans and other animals are doing by parsing actions that have been recorded on film. James Bonaiuto from the French National Center for Scientific Research, for instance, studies how the limb movements of tool-wielding people relate to the patterns of neural activity in their brains. “Many studies involve an army of graduate students painstakingly coding videos of behavior frame by frame,” he says. By automating that laborious work, DeepLabCut makes such studies much faster and more accurate.

“I’ve used commercial and academic video-tracking software, and even written my own. DeepLabCut surpasses all of them by a large margin,” adds Andres Bendesky at Columbia University, who is using the algorithm to study the fighting behavior of betta fish. “There’s been a need for software like it for a long time, and I expect it to be the standard in the field for a while.”

Ilana Nisky from Ben Gurion University of the Negev is using DeepLabCut to analyze how surgeons wield their needles, to better program robots that can assist in surgeries. “It works impressively well,” she says. “It can help us track the tip and the tail of the needle very well, even though the side that is facing the camera changes throughout the trial.”

DeepLabCut was born of necessity. Alexander was trying to understand the neuroscience of smell by watching mice as they track trails of scent. To do that, he needed a simple way of marking the very tip of their snouts on a video. “But the classic methods neuroscientists use all failed,” he says. Researchers often dab paint or glue reflective dots on body parts of interest, but you couldn’t do either on a body part as small and sensitive as a mouse’s nose. “After years of frustration trying commercial software, and other people’s solutions, nothing worked,” Alexander says. “We took a step back from doing experiments for a year to try and solve this problem.”

At its core, DeepLabCut is a modified version of DeeperCut, a neural network created by other researchers to detect and label human poses in videos. Such networks are very good at what they do, but you must first train them by showing them thousands of hand-labeled frames. And if you want them to label a different species, moving in a different way, you need to repeat this training step all over again.

The Mathises got around this cumbersome requirement by first pretraining their network on ImageNet, a massive online database of images. This step effectively teaches the network how to look at the world, and gives it a basic visual system. It can tell how to distinguish a strawberry from an airplane, or a cat from a dog.

After that, it’s much easier to teach the network to recognize something far more specific, like a rat’s paw, a betta fish’s fins, or a katydid’s legs. Instead of thousands of hand-labeled frames, you can get away with a few hundred, or even a few dozen. “We’re asking it, ‘You can see the world. Now, we want you to find these body parts, and we’ll give you a few frames [to start].’ And it can do it,” Mackenzie says.

This combination of versatility and reliability is unique. In past research, Avner Wallach of Columbia University relied on complicated algorithms that were specifically designed to track the positions of individual rodent whiskers. These trackers did nothing else, and they still produced enough errors that a couple of students had to regularly check the results. “Having a versatile, one-size-fits-all algorithm can definitely save a lot of work for many labs around the world,” says Wallach, who is now using DeepLabCut to track the movements of the Peters’ elephantnose fish, an African fish that senses the world by producing its own electric fields.

DeepLabCut is freely available, and researchers around the world have already been making good use of it—in ways that the Mathises couldn’t have foreseen. “We were contacted by a company that wants to predict if a particular horse will be a good racehorse,” Alexander adds.

“I get blind emails from people who are using it on videos of primates moving freely in the lab, people tracking zebras on safaris, people looking at complicated animals like octopuses and electric eels, people looking at surgical robots,” says Mackenzie. “Sports people are very interested in tracking pitching performance among baseball players. You could take your iPhone, film your kid playing, and go home and analyze their performance together.”

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.