bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.07.31.742042

LabGrymace: Automated Analysis of Mouse Grimace for Quantitative Assessment of Pain Dynamics

Abstract

Accurate assessment of pain in animal models is essential for understanding pain mechanisms, developing analgesics, and ensuring animal welfare. The Mouse Grimace Scale (MGS) provides a sensitive, non-invasive measure of spontaneous pain by quantifying pain-related facial expressions, but its utility is limited by labor-intensive manual scoring, observer variability, and reliance on static images that fail to capture the temporal dynamics of facial behavior. Existing automated approaches improve throughput but typically rely on highly standardized imaging conditions, selected viewing angles, and static facial appearance, while providing limited temporal resolution and little insight into the relative contributions of individual facial action units. Here, we introduce LabGrymace, an open-source, artificial intelligence-powered framework for automated, frame-by-frame analysis of pain-related facial dynamics in freely moving mice. Built on the LabGym behavioral analysis platform, LabGrymace uses deep-learning-based facial feature detection and tracking to quantify ear, eye, and nose movements continuously from video recordings. To generate a quantitative pain metric and facilitate reproducibility, we calibrated facial dynamics against graded chemogenetic activation of nociceptors and identified the kinematic features most strongly associated with pain intensity. These features were integrated into a weighted composite pain score that reflects the differential contributions of individual facial action units. LabGrymace accurately classified pain-related facial actions and generated continuous pain scores without manual frame selection or restrictive recording conditions. The resulting pain scale exhibited dose-dependent responses generalized across distinct pain modalities, including visceral pain induced by MgSO and somatic pain induced by capsaicin. By combining automated facial-feature analysis with quantitative temporal modeling, LabGrymace provides an objective, scalable, interpretable, and flexible tool for assessing spontaneous pain in laboratory mice.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Dong, W., Moehn, K. M., Ronan, E. A., Hu, Y., Emrick, J. J., Ye, B.. 2026-08-06. LabGrymace: Automated Analysis of Mouse Grimace for Quantitative Assessment of Pain Dynamics. https://doi.org/10.64898/2026.07.31.742042. https://biorxiv.science/record/biorxiv%3A10.64898%2F2026.07.31.742042/labgrymace-automated-analysis-of-mouse-grimace-for-quantitative-assessment-of-pain-dynamics

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite bioRxiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related preprints

The epilepsy-causing T314A mutation decouples KCNT1 from Na+, pH and voltage and renders it resistant to pore-blocking drugs

Gain-of-function mutations in the KCNT1 gene encoding a sodium-activated potassium channel (KNa1.1, KCNT1) cause a spectrum of epilepsy disorders. T314A is a channel pore mutation reported in a patient with developmental epileptic encephalopathy. Unusually, it does not increase current amplitude, but does abolish KCNT1 voltage dependence. Using whole-cell and inside-out patch clamp of HEK293T cells expressing wild-type (WT), homomeric T314A, or heteromeric T314A/WT KCNT1, together with in silico modelling and a humanised Drosophila seizure model, we examined how T314A alters channel function and pharmacology. T314A removed the dependence of KCNT1 on intracellular Na+, its voltage dependence, and its inhibition by intracellular acidification, and reduced the unitary conductance more than ten-fold. The mutation also reshaped drug sensitivity. The pore blocker antrafenine, predicted to be coordinated by the T314 side chain, no longer inhibited the channel at concentrations up to 10 M, while nelfinavir, also a pore blocker, retained activity but with much lower potency. In silico models of drug binding to the mutant pore validated this differential loss of affinity. Heteromeric T314A/WT channels displayed properties intermediate between WT and homomeric T314A. Consistent with the loss of block in vitro, the seizure phenotype of Drosophila expressing T314A KCNT1 was not improved by either antrafenine or nelfinavir, in contrast to flies carrying other KCNT1 patient-specific mutations. These results identify T314 as part of a selectivity-filter gate that integrates regulation of KCNT1 by Na+, pH and voltage and determines drug binding, and show that pore mutations can confer resistance to pore-directed blockers, underscoring the need to test candidate drugs against each mutation to optimize the treatment of KCNT1-disorders in affected individuals.

neuroscience↗

Transplantation of a synaptogenic astrocyte subpopulation for reconnecting respiratory neural circuitry following spinal cord injury

We examined transplantation of a synaptogenic astrocyte subpopulation (Type C astrocyte) as an approach to reconnect damaged respiratory circuitry after chronic spinal cord injury (SCI). Transplantation of astrocyte lineage cells is a relatively unexplored - yet potentially powerful - strategy for SCI repair. Importantly, there is growing appreciation for astrocyte heterogeneity; however, in the context of transplantation, astrocytes have to date been approached as a homogeneous population. Therapeutic potential of astrocyte subtypes likely varies depending on disease mechanism, suggesting that subpopulation-specific astrocyte transplantation could potentially be used to selectively address specific pathophysiological targets. A majority of SCI cases occurs in cervical spinal cord, resulting in highly debilitating and persistent diaphragmatic respiratory dysfunction. To enhance synaptic connectivity of diaphragm motor circuitry after SCI, we performed intraspinal transplantation of Type C astrocytes targeted to the location of the phrenic motor neurons (PhMNs) that innervate diaphragm in a rat model of C2 lateral hemisection. Transplanted Type C astrocytes survived in injured spinal cord for long periods and maintained their astrocyte lineage. Type C astrocytes increased excitatory synaptic input onto PhMNs compared to transplantation of other astrocyte subtypes. Furthermore, using retrograde trans-synaptic pseudorabies virus tracing, we found that Type C astrocytes significantly increased synaptic input to PhMNs from the highly important population of pre-phrenic interneurons, demonstrating enhanced respiratory circuit reconnection. Our study is the first to therapeutically utilize the specialized function of a defined astrocyte subpopulation via a transplantation strategy, an innovative approach for SCI repair that can potentially extend to other diseases.

neuroscience↗

The Dyrk2 kinase is required for axonal regeneration after spinal cord injury in lampreys and zebrafish

Failure of axonal regeneration after spinal cord injury (SCI) underlies functional deficits in mammals, whereas regenerating vertebrates such as lampreys and zebrafish spontaneously restore descending axonal connections. Identifying conserved intrinsic regulators of this regenerative competence is essential for developing pro-repair strategies. We previously showed that activation of GABAB receptors with baclofen enhances axon regeneration in lamprey descending neurons. Transcriptomic profiling of baclofen-treated brainstems revealed dyrk2, encoding the Dual-specificity tyrosine phosphorylation-regulated kinase 2 (Dyrk2), as one of the most significantly upregulated genes. Here, we demonstrate that Dyrk2 is a conserved and neuron-intrinsic driver of spontaneous axonal regeneration after complete SCI in fishes. Quantitative PCR confirmed baclofen-induced upregulation of dyrk2 in the injured lamprey brainstem. Immunofluorescence revealed Dyrk2 protein expression in identifiable descending neurons in both control and injured lampreys. Pharmacological inhibition of Dyrk2 with LDN-192960 after complete SCI significantly reduced axonal regeneration of individually identifiable giant and cholecystokinergic descending neurons at 10 weeks post-lesion, without impairing gross locomotor performance. Targeted knockdown using a translation-blocking morpholino applied at the lesion site decreased Dyrk2 protein levels in lamprey descending neurons and recapitulated the regenerative deficit, demonstrating a cell-autonomous requirement. To test evolutionary conservation, we performed complete SCI in larval zebrafish. Dyrk2 inhibition markedly reduced axonal bridge formation, whereas selective Dyrk1A/1B inhibitors had no effect, supporting pathway specificity. CRISPR/Cas9-mediated disruption of dyrk2 generated high-efficiency crispants that exhibited impaired axonal bridging without overt developmental abnormalities. Together, pharmacological and genetic evidence across two phylogenetically distant vertebrates establishes Dyrk2 as a conserved regulator of spontaneous axonal regeneration.

neuroscience↗