Here's how AI has simplified animal behaviour analysis

Here's how AI has simplified animal behaviour analysis
Image source: Google

Michigan, US: A group from the University of Michigan has created new software to aid researchers in the biological sciences in conducting more effective animal behavior analyses.

LabGym, an open-source programme, uses artificial intelligence to recognise, classify, and count predefined activities in a variety of animal model systems.

For a variety of reasons, including understanding all the possible effects of a given medicine on an organism and mapping how the brain's circuits interact to produce a certain behaviour, scientists must measure animal behaviours.

Researchers in the lab of U-M faculty member Bing Ye, for example, analyze movements and behaviours 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 behaviour provides essential information about how the brain works and how it changes in response to disease," said Yujia Hu, a neuroscientist in Ye's lab at the U-M Life Sciences Institute and lead author of a February 24 Cell Reports Methods study describing the new software.

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

"Many of these behaviour analysis programs are based on pre-set definitions of a behaviour," said Ye, 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."

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 behaviour 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 behaviour.

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 behaviour, but videos involve time series data that can be challenging for AI programs to analyze.

To help the program identify behaviours 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 time points. The team found that combining the video data with the pattern images increased the program's accuracy in recognizing behaviour 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.

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

"That's actually rare," he said. "It's written for biologists, so they can adapt it to the species and the behaviour 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 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 behaviours 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 said. "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 behaviour."

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