Deep Learning-based Animal Behavior Analysis: Insights from Mouse Chronic Pain Models

Yu-Hsi Chen, Wei-Hsin Chen, Chien-Yao Wang, Hong-Yuan Mark Liao, James C. Liao, Chien-Chang ChenarXiv 2025 · DOI

Introduction

Objectively assessing chronic pain in animal models is a cornerstone of preclinical research, yet it remains a significant challenge. Traditional methods often rely on reflex testing or subjective manual observation, both of which fail to capture the complex, emotional, and persistent nature of chronic pain. This paper introduces an end-to-end deep learning framework designed to identify pain-related behaviors in mice by mapping their movements into a "Universal Action Space" (UAS) derived from human behavior.

Methods and Technical Innovation

The core of this approach is the Universal Action Space (UAS). The researchers hypothesized that the vast complexity of human movement, as captured in datasets like Kinetics-600, serves as a superset for animal behavior. By pre-training on human actions, the model develops a rich feature vocabulary capable of describing subtle mouse movements without requiring human-defined labels.

Conceptualization of the Universal Action Space (UAS) derived from human action datasets.

The architecture employs a Video Swin Transformer (VST) for spatio-temporal feature extraction and ViS4mer, which utilizes Structured State Space (S4) layers. Unlike standard Transformers, which struggle with long sequences due to quadratic complexity, S4 layers grow linearly, allowing the system to analyze long-term behavioral shifts. To focus the model on the subject, temporal median filtering and foreground masking were used to suppress static cage backgrounds.

Datasets and Experimental Setup

The study utilized a comprehensive Mouse Pain Behavior Dataset consisting of 632 five-minute videos. These recordings captured mice in three conditions: healthy controls, neuropathic pain (SNI surgery), and inflammatory pain (formalin injection), tracked from acute stages up to 21 days post-injury.

Experimental setup for recording mouse behavior from side and bottom views.

Key Results and Insights

The proposed system significantly outperformed both existing tools and human experts. In a complex 15-class classification task (identifying pain type and duration), the model achieved 48.41% accuracy, compared to just 21.33% for human experts. This disparity highlights that behavioral cues for chronic pain are often too subtle for human perception.

Furthermore, the model demonstrated robust zero-shot drug validation. When tested on mice treated with Gabapentin, the system correctly identified a behavioral shift toward the "healthy" category without prior training on medicated subjects. This alignment with traditional mechanical sensitivity tests validates the model's potential for objective drug efficacy screening.

Conclusion

By bypassing human observer bias and leveraging a human-derived action space, this framework provides a more objective and sensitive tool for pain research. While chronic pain signatures remain more elusive than acute ones as they progress, the success of the UAS approach opens new avenues for automated, high-throughput behavioral phenotyping in preclinical drug development.

Summary updated

BibTeX
@misc{chen2025deep,
  author = {Yu-Hsi Chen and Wei-Hsin Chen and Chien-Yao Wang and Hong-Yuan Mark Liao and James C. Liao and Chien-Chang Chen},
  title = {{Deep Learning-based Animal Behavior Analysis: Insights from Mouse Chronic Pain Models}},
  year = {2025},
  eprint = {2508.05138},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05138},
}
Figure