bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.02.16.706098

Automatic pain face analysis in mice: Applied to a varied dataset with non-standardized conditions

Abstract

Biomedical research relies on scientifically validated tools to assess pain, suffering, and distress in laboratory animals to ensure their well-being. In mice, the most frequently used laboratory animals, the Mouse Grimace Scale (MGS) provides a reliable tool for the assessment of facial expression changes caused by impaired well-being. However, no automated tool can yet reliably assess all features of the MGS across different mouse strains under varying experimental or housing conditions in real-time, as the variability present in recorded image datasets poses substantial challenges for computer vision models. Despite this technical difficulty, variability across subsets in terms of mouse strain, treatments, laboratory, and image acquisition setup is essential for paving the way toward MGS assessment under non-standardized conditions in the home cage rather than standardized cage-side recording setups. Against this background, a large and diverse dataset containing five subsets is introduced and a deep learning model was trained to predict the average MGS scores ranging between 0 and 2. It achieved a root mean squared error (RMSE) of 0.26 when trained on all subsets of the dataset, outperforming the average human rater in terms of error magnitude. The correlation between human raters and automated MGS scores was very high (Pearsons r=0.85). In the cross-dataset evaluation, one subset was excluded from training and used for testing the model. This approach yielded higher errors compared to models trained and tested on the same subsets. A model restricted to the feature of orbital tightening showed lower performance than one trained on all facial features of the MGS. Overall, the most reliable model for predicting average MGS scores for a novel dataset is the one trained on the combined subsets. Performance may be further enhanced by fine-tuning the model using human-generated MGS scores for a portion of the novel subset.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Andresen, N., Wöllhaf, M., Wilzopolski, J., Lang, A., Wolter, A., Howe-Wittek, L., Bekemeier, C., Pawlak, L.-I., Beyer, S., Cynis, H., Hietel, E., Rieckmann, V., Rieckmann, M., Thöne-Reineke, C., Lewejohann, L., Hellwich, O., Hohlbaum, K.. 2026-02-18. Automatic pain face analysis in mice: Applied to a varied dataset with non-standardized conditions. https://doi.org/10.64898/2026.02.16.706098

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Deconstructing Boldness: Latent behavioural structure across novelty, predation, and exploration in an endangered species translocation program

Risk-related behaviours including neophobia, exploration, and predator avoidance are often assumed to covary along a general boldness axis. Although some translocation studies have linked one or more of these behaviours with fitness, it is possible that the underlying behavioural structure varies under different selective environments. Conservation breeding programs provide a unique opportunity to evaluate the structure of behavioural correlations in a non-domestic species under artificial conditions. We tested whether risk-related behaviours represent a unified boldness syndrome in a captive population of the endangered Attwaters prairie chicken (APC; Tympanuchus cupido attwateri). We quantified the repeatable behaviours of 257 juveniles and compared 11 models of behavioural covariation structure using multivariate mixed models and confirmatory factor analysis. There was no support for a single risk-taking axis; instead, we found three dimensions representing responses to novelty and environmental stimuli (Engagement), predator avoidance (Threat Response), and maze exploration (Maze Progression). Our results indicate that these risk-related behaviours are not organized along a single axis in captive APCs, challenging assumptions that risk-taking represents a universal behavioural syndrome. To anticipate post-release success accurately, conservation managers should understand the exact behavioural architecture of the captive population rather than assume that the classical bold-shy structure occurs in all contexts.

animal behavior and cognition↗

Social costs of group life: Larger groups have less affiliative behavior and more social conflict

The costs and benefits of sociality depend in part upon the size of groups. Therefore, individual behavior should vary across groups of different sizes, reflecting group size-dependent costs and benefits. Here, we test this prediction using a long-term dataset on wild female baboons (Papio cynocephalus x P. anubis). We find that individuals who live in larger groups suffer social costs: compared to animals in smaller groups, they experience more agonistic interactions, fewer grooming interactions, and sparser social networks. These social costs arise, in part, from a pattern in which relationships within dyads become more agonistic as group size increases (i.e., a given dyad exhibits fewer grooming interactions relative to agonistic interactions when it is living in a larger group). While individuals in large groups generally maintain the same number of strong bonds as individuals in small groups, they tend to develop weak bonds with a greater number of social partners that results in, on average, weaker bonds overall. Our results demonstrate that, despite potential benefits to large groups in terms of predation risk and intergroup competition, the social lives of individuals in larger groups involve less affiliation and more conflict in this wild primate population.

animal behavior and cognition↗

Shared brain transcriptome signatures of social evolution and plasticity in shell-dwelling cichlid fishes

Inter-individual variability in phenotypic traits is widespread in nature both across and within species, with similar patterns of variation often occurring between and within species. Given that these two types of variation are generated by evolutionary and plasticity processes respectively, it raises the question to what extent the causal mechanisms underlying such variability at these two different levels are shared or not. To address this question, we studied the variation in brain transcriptomes in Tanganyikan cichlids that exhibit both intra- and interspecific variation in social behavior. We compared two facultatively social cichlid species, each containing naturally occurring solitary and social-living individuals, with a closely related obligatory solitary resembling the ancestral state. Differential gene expression and Gene Set Enrichment Analyses were performed in the telencephalon and diencephalon transcriptomes to investigate the molecular basis of both behavioral plasticity and the evolution of sociality. Behavioral plasticity involved few differentially expressed genes but extensive changes in biological pathways, supporting a highly polygenic architecture of social behavior. Across both species, social-living individuals consistently upregulated pathways involved in translation, protein homeostasis, and energy metabolism, whereas solitary individuals showed enrichment of neuronal morphogenesis, cell adhesion, and structural plasticity. Remarkably, these same functional programs were associated with the independent evolution of sociality, revealing a strong overlap between evolutionary and plastic transcriptional responses. This convergence was largely restricted to the telencephalon, while the diencephalon showed limited and inconsistent functional signatures. Together, our results support the repeated recruitment of gene regulatory programs during the evolution of sociality and demonstrate that behavioral plasticity and evolutionary transitions share common neurogenomic responses, consistent with a conserved genetic toolkit for social behavior.

animal behavior and cognition↗