Using the power of artificial intelligence

New open-source tool simplifies animal behavior analysis

11:30 AM

Author | Emily Kagey

cells in pink and teal
Artistic representation of LabGym's pattern images (left) feeding into an AI system to make a decision. Image credit: Yujia Hu and Bing Ye (pattern images), and Rajani Arora, LSI Multimedia Specialist

A team from the University of Michigan has developed a new software tool to help researchers across the life sciences more efficiently analyze animal behaviors. The open-source software, LabGym, capitalizes on artificial intelligence to identify, categorize and count defined behaviors across various animal model systems.

Scientists need to measure animal behaviors for a variety of reasons, from understanding all the ways a particular drug may affect an organism to mapping how circuits in the brain communicate to produce a particular behavior.

Researchers in the lab of U-M faculty member Bing Ye, Ph.D., for example, analyze movements and behaviors in Drosophila melanogaster — or fruit flies — as a model to study the development and functions of the nervous system. Because fruit flies and humans share many genes, these studies of fruit flies often offer insights into human health and disease.

“Behavior is a function of the brain. So analyzing animal behavior provides essential information about how the brain works and how it changes in response to disease,” said  Yujia Hu, Ph.D., a neuroscientist in Ye’s lab at the U-M Life Sciences Institute and lead author of a Feb. 24 Cell Reports Methods study describing the new software.  

But identifying and counting animal behaviors manually is time-consuming and highly subjective to the researcher who is analyzing the behavior. And while a few software programs exist to automatically quantify animal behaviors, they present challenges.

“Many of these behavior analysis programs are based on pre-set definitions of a behavior,” explainedYe, who is also a professor of cell and developmental biology at the Medical School. “If a Drosophila larva rolls 360 degrees, for example, some programs will count a roll. But why isn’t 270 degrees also a roll? Many programs don’t necessarily have the flexibility to count that, without the user knowing how to recode the program.”

Thinking more like a scientist

To overcome these challenges, Hu and his colleagues decided to design a new program that more closely replicates the human cognition process — that “thinks” more like a scientist would — and is more user-friendly for biologists who may not have expertise in coding. Using LabGym, researchers can input examples of the behavior they want to analyze and teach the software what it should count. The program then uses deep learning to improve its ability to recognize and quantify the behavior.

One new development in LabGym that helps it apply this more flexible cognition is the use of both video data and a so-called “pattern image” to improve the program’s reliability. Scientists use videos of animals to analyze their behavior, but videos involve time series data that can be challenging for AI programs to analyze.

To help the program identify behaviors more easily, Hu created a still image that shows the pattern of the animal’s movement by merging outlines of the animal’s position at different timepoints. The team found that combining the video data with the pattern images increased the program’s accuracy in recognizing behavior types.

LabGym is also designed to overlook irrelevant background information and consider both the animal’s overall movement and the changes in position over space and time, much as a human researcher would. The program can also track multiple animals simultaneously.

Species flexibility improves utility

Another key feature of LabGym is its species flexibility, Ye says. While it was designed using Drosophila, it is not restricted to any one species.

“That’s actually rare,” Ye said. “It’s written for biologists, so they can adapt it to the species and the behavior they want to study without needing any programming skills or high-powered computing.”

After hearing a presentation about the program’s early development, U-M pharmacologist Carrie Ferrario, Ph.D., offered to help Ye and his team test and refine the program in the rodent model system she works with.

Ferrario, an associate professor of pharmacology and adjunct associate professor of psychology, studies the neural mechanisms that contribute to addiction and obesity, using rats as a model system. To complete the necessary observation of drug-induced behaviors in the animals, she and her lab members have had to rely largely on hand-scoring, which is subjective and extremely time-consuming.

“I’ve been trying to solve this problem since graduate school, and the technology just wasn’t there, in terms of artificial intelligence, deep learning and computation,” Ferrario explained. “This program solved an existing problem for me, but it also has really broad utility. I see the potential for it to be useful in almost limitless conditions to analyze animal behavior.”

The team next plans to further refining the program to improve its performance under even more complex conditions, such as observing animals in nature.


More Articles About: Basic Science and Laboratory Research All Research Topics Education Hospitals & Centers Future Think
Health Lab word mark overlaying blue cells
Health Lab

Explore a variety of health care news & stories by visiting the Health Lab home page for more articles.

Media Contact Public Relations

Department of Communication at Michigan Medicine

[email protected]

734-764-2220

Stay Informed

Want top health & research news weekly? Sign up for Health Lab’s newsletters today!

Subscribe
Featured News & Stories vial of blood with blue background cell floating
Health Lab
Hitting the mark
University of Michigan Rogel Cancer Center researchers are unraveling its nuances, advancing enabling technologies, advocating for patients and figuring out how to ethically integrate this technology into clinical care.
brain blue yellow spots
Health Lab
Connecting the brain’s hot zone
A Michigan Medicine study takes a closer look at the neurobiology of psychedelic experiences.
dna yellow blue
Health Lab
Study reveals pivotal RNA modification in mouse embryos
A Michigan Medicine study reveals pivotal RNA modification in mouse embryos.
glowy balls images connected light green
Health Lab
Candida auris: The deadly fungus on the rise
The CDC warns of rising infections from Candida auris, a deadly fungus. Learn what you need to know about this emerging threat from U-M Medical School's Dr. Teresa O'Meara.
navy brain on off white background with artificial intelligence lines inside with yellow highlighted areas
Health Lab
People want to know if AI is used in their health care
A study published in JAMA Network Open finds most people want to be notified if AI is used in their health care.
patient family and child life team member smiling and then a photo next to that one with the same worker helping someone in a wheelchair in a patient office
Health Lab
A pediatric program helping adults through cardiovascular disease, surgery
A child life program that has helped kids and their families reduce stress and anxiety associated with hospitalization and illness is now finding success with adult patients undergoing complex heart procedures as well.