The Face of Pain: Machine Learning Video Analysis of Facial Grimace and Body Position Enables Study of Sound-Evoked Pain in Mice

By Bethany Brookshire | October 15, 2026 | Posted in

Researchers validate the approach in a CGRP-induced migraine model, and successfully quantify the behavioral response to loud sound.

Studying pain – including migraine pain – often requires working in animal models. But mice and rats can’t tell scientists how they are feeling. To overcome this communication gap, pain and migraine researchers often rely on facial grimace, tracking changes in a rodent’s face in response to painful stimuli. But measures of facial grimace often differ from lab to lab, and some are more detailed than others, highlighting the need for further refinement of the method.

Now, a new study led by Megan Wood, Vanderbilt School of Medicine, Nashville, US, and Elisabeth Glowatzki, The Johns Hopkins School of Medicine, Baltimore, US, uses machine learning video analysis of facial grimace in awake mice. The open-source method relies on a single camera and allows animals to move freely. In addition to facial grimace, the machine learning tracked changes in body position that animals typically make in response to painful stimuli.

The researchers first validated their machine learning approach by showing changes in facial grimace and body position in a model of migraine triggered by calcitonin gene-related peptide (CGRP). Then they observed similar changes in mice subjected to high-intensity sounds.

“It’s a great paper,” said Levi Sowers, a migraine and headache researcher at the University of Iowa, Iowa City, US, who was not involved in the research.

“With the field of automated pain assessment, any progress is good progress,” he continued. “We created an automated grimace setup back in 2021 and published that, and it failed to gain traction because it was difficult to use.” [See MSC related news story.]

Other labs have developed machine learning methods, such as PainFace, to automate measures. But “they are very specific,” Sowers said. “They often need to be retrained for what you do in your own lab.”

The study appeared in the September 2026 issue of eNeuro.

A streamlined method
Mice cannot talk about their pain. But they do show signs of it in their faces. A grimace in response to pain is “a very evolutionarily conserved response,” Sowers said. In mice, “their ears will be drawn back, they’ll have a cheek bulge, their nose will be real squinched.”

The original mouse grimace scale was developed in the lab of Jeffrey Mogil at McGill University, Montreal, Canada. At first, Sowers said, other labs were skeptical. But in 2015, “We decided to give it a shot,” he said. “And it turns out that it worked very, very well.”

But the grimace scale does have some limitations. “It’s non-continuous,” he said, in that mice are simply scored a 0, 1, or 2, and the facial expressions are scored by hand, which can be slow. The current study developed a new way to automate the process.

Co-senior author Megan Wood studies neuroimmune mechanisms inside the mouse ear, and is interested in how loud sounds evoke pain. “It is known that humans can experience pain to sound,” she said. Wood is especially interested in hyperacusis, a reduced tolerance to normal sound.

Hyperacusis could potentially be related to phonophobia, which is the fear of certain sounds that some people with migraine experience, Wood said. The word is “phonophobia,” but if there is fear, it’s probably the fear of the pain the sound evokes and not the sound itself, she explained. “I’m really interested in trying to understand: Is there truly a difference between loudness hyperacusis and pain hyperacusis?”

To really understand hyperacusis, the pain of sound needs to be quantified. First author Ben Seicol, an auditory neuroscientist working in Glowatzki’s lab at The Johns Hopkins School of Medicine, set out to automate the mouse facial grimace measure. Other approaches for assessing facial grimace rely on two or three cameras that face the mouse head on, from above, and from the side. Seicol developed a method using only the side camera view. The mouse is placed in a clear chamber, with air holes at one end. The air holes – and the fresh air coming through them – keep the animal naturally oriented in that direction without restraint.

Using videos of the mice, Seicol used previous measures of facial grimace to identify 13 markers on the mouse face that changed in response to pain, such as the angle between the eye, ear canal, and ear tip – indicating how flat a mouse’s ear is against its head. The markers also included measures like eye squint, bulging in the cheeks, and snout position. Seicol then used DeepLabCut software to train a neural network to automatically apply those 13 markers as dots in each video frame of the mouse’s face.

Other machine learning paradigms might have the neural network come up with which points are important on its own, Seicol said. While that method could identify new parts of the mouse’s face that might change, with “so-called unsupervised machine learning, you need these incredibly large data sets because you’re not really telling the computer how to work with it at all,” he said.

Instead, Seicol pursued “a supervised machine learning where we told the machine exactly what we wanted it to do and gave it the parameters.” Instead of a training set of thousands of images, the training set of the new study was only 816 video frames.

Validating the method, and then visualizing sound-evoked pain
To find out if the machine learning model could detect pain-related behaviors, mice received an injection of CGRP, a common animal model of migraine, or saline as a control.

“CGRP-induced migraine was very intentionally chosen as the pain model,” Wood said. “If you infuse CGRP into the cochlea, it actually increases sound sensitivity. So CGRP is known to directly have effects on the auditory system,” as well as induce migraine.

While saline-injected animals showed no changes, animals injected with CGRP narrowed their eyes, flattened their ears and moved their mouths into a grimace as the mice experienced migraine-like pain. Their bodies hunched, too, one of several changes in body position that the researchers also observed. Together, the data showed the mice were behaving like they were in pain, providing validation of the researchers’ machine learning method.

The investigators were also interested in seeing if grimace and body position changed with the level of pain, something that would correlate with the time it took for the CGRP to induce migraine. Indeed, the researchers were able to show that the facial grimace score peaked at around 30 minutes, when CGRP effects are at their strongest in this migraine model.

“By sampling with a much higher rate of data temporally, we were able to see different levels of pain behavior in the migraine [model],” Wood said.

But the main goal was to understand if sound would reliably invoke facial grimace and changes in body position. Wild-type mice were exposed to sounds up to 120 decibels. “One hundred twenty is like being right next to the speaker at a loud rock and roll concert,” Seicol said.

Many intensities of sound reliably induced facial grimace in the animals, as well as alterations in body position, compared to a quieter environment. The facial changes even surpassed the grimace scores the researchers had established in response to CGRP.

The scientists also tested knockout mice missing TMIE, which is a protein needed for mechanotransduction in hair cells in the cochlea. These mice cannot hear, and showed few behavioral changes in response to the loud sounds.

Is grimace pain?
The mice injected with CGRP or exposed to loud sound showed facial grimace, which is associated with pain states in both rodents and humans. But Sowers noted that “you can’t ask a mouse if it has a migraine. It cannot respond to you. Mouse models are only as good as what they recapitulate in the human condition.”

That doesn’t, however, mean that mice aren’t a valuable model to study pain or migraine. “That’s why we call them models,” Sowers added. “They can recapitulate certain aspects of a disease.” In the current study, he said, while CGRP certainly evoked pain-like behavior, it’s possible the sound evoked something else, such as fear.

Wood agreed. “We use CGRP-induced migraine in this model basically to prove that we were measuring a behavior that was associated with pain,” she says. “We can’t say that the mice 100% are experiencing pain to the sound level, and we don’t say that in the paper. However, they are showing a magnitude of difference in their behavior that is equivalent to the magnitude of difference that you see in a migraine.”

Wood and Seicol hope that the machine learning model will serve as an “inventory-style scoring method,” Wood said, referring to a suite of potential measures of pain in mice. The parameters could be tweaked and adapted to suit mouse models of other conditions, or to differentiate degrees of pain.

Wood also hopes that facial and body position parameters, like the ones they observed during the duration of the CGRP-induced pain, might be able to establish how effective analgesics are.

“Can we really get at how much of the animal’s behavior is being affected?” Wood wondered. “That is something that I really want the field to continue to be looking at.”

Bethany Brookshire is a freelance science journalist based in Washington, D.C.

Image: Left, a schematic of the inside of the acoustic booth used for facial grimace video recording. Right, a diagram of the custom-built enclosure from the view of the camera. The ovals on the left wall and top indicate scent holes. Image and caption adapted from Seicol et al. eNeuro. 2026 Sep 3;13(9):ENEURO.0064-26.2026. 

Reference
Machine learning guided video analysis identifies sound-evoked pain-related behaviors from facial grimace and body cues in mice.
Seicol et al.
eNeuro. 2026 Sep 3;13(9):ENEURO.0064-26.2026.

Sign Up For An MSC Newsletter

Sign up for:

Discussion

Leave a Comment

You must be logged in to post a comment.

Search

  • Content Types

  • Paper Categories

  • Paper Dates

Recent News

Recent Papers

Calendar

No event found!