# PainSeeker: a head pose-invariant deep learning method for assessing rat's pain by facial expressions

**Authors:** Liu Liu, Guang Li, Dingfan Deng, Zhaoyang Li, Cheng Lu, Yuan Zong, Jinhua Yu

PMC · DOI: 10.3389/fvets.2025.1619794 · Frontiers in Veterinary Science · 2025-10-10

## TL;DR

PainSeeker is a deep learning model that accurately assesses pain in rats through facial expressions, regardless of head pose.

## Contribution

PainSeeker introduces a head-pose-invariant deep learning model for rat pain assessment using facial expressions.

## Key findings

- PainSeeker outperformed other methods with an F-score of 0.7731 and 74.17% accuracy.
- Facial expression analysis proved effective for rat pain assessment across varying head poses.
- The RatsPain dataset was created and made publicly available for future research.

## Abstract

Automated assessment of pain in laboratory rats is important for both animal welfare and biomedical research. Facial expression analysis has emerged as a promising non-invasive approach for this purpose.

An openly available dataset, RatsPain, was constructed, comprising images of facial expressions taken from six rats undergoing orthodontic treatment. Each image was carefully selected from pre- and post-treatment videos and annotated by eight expert pain raters using the Rat Grimace Scale (RGS). To achieve automated pain recognition, a head-pose-invariant deep learning model, PainSeeker, was developed. This model was designed to identify local facial regions strongly related to pain and to effectively learn consistently discriminative features across varying head poses.

Extensive experiments were conducted to evaluate PainSeeker using the RatsPain dataset. After assessing the pain conditions of each rat through facial expression analysis, all tested methods achieved good performance in terms of F-score and accuracy, significantly outperforming random guessing and providing empirical evidence for the use of facial expressions in rat pain assessment. Moreover, PainSeeker outperformed all comparison methods, with an overall F-score of 0.7731 and an accuracy rate of 74.17%, respectively.

The results demonstrate that the proposed PainSeeker model exhibits superior performance and effectiveness in automated pain assessment in rats compared with traditional machine learning and deep learning methods. This provides support for the application of facial expression analysis as a reliable tool for pain evaluation. The RatsPain dataset is freely available at https://github.com/xhzongyuan/RatsPain.

## Linked entities

- **Species:** Rattus norvegicus (taxon 10116)

## Full-text entities

- **Diseases:** pain (MESH:D010146)
- **Species:** Rattus norvegicus (brown rat, species) [taxon 10116]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12551228/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12551228/full.md

## References

42 references — full list in the complete paper: https://tomesphere.com/paper/PMC12551228/full.md

---
Source: https://tomesphere.com/paper/PMC12551228