GraphAU-Pain: Graph-based Action Unit Representation for Pain Intensity Estimation

Zhiyu Wang, Yang Liu, Hatice GunesarXiv 2025 · DOI

Introduction

Automated pain detection is a critical tool for clinical environments, particularly for patients unable to communicate verbally, such as infants or individuals with cognitive impairments. While deep learning models like Convolutional Neural Networks (CNNs) have shown promise, they often function as "black boxes," lacking the interpretability required for medical applications. Furthermore, pain datasets are frequently small and highly imbalanced, making it difficult to train robust models.

GraphAU-Pain addresses these challenges by introducing a graph-based deep learning framework. By explicitly modeling Facial Action Units (AUs) and their structural interrelationships, the framework provides a more transparent and accurate method for estimating pain intensity.

Methods: Graph-Based Representation

The core of the GraphAU-Pain architecture is the fusion of global facial features with local AU-based graph representations.

The GraphAU-Pain architecture overview.

The process begins with a ResNet-50 backbone that extracts global features from facial expression images. These features are then processed by an AU representation module, which constructs a graph where nodes represent individual AUs and edges represent their co-occurrence or similarity. A Graph Neural Network (GNN) layer facilitates message passing between these nodes, capturing how different facial muscles interact during a pain response. Finally, the graph-derived features are fused with global features for classification.

To handle data scarcity, the authors employed a cross-dataset transfer learning strategy. The AU module was pretrained on the larger DISFA dataset. To align the target UNBC dataset with the DISFA annotation scheme, the authors used pseudo-labeling to create UNBC+, a hybrid dataset with expanded AU labels.

Datasets and Training

The model was primarily evaluated on the UNBC-McMaster Shoulder Pain Expression Archive Database, which contains approximately 48,000 frames. This dataset is notably imbalanced, with 82% of frames labeled as "No Pain." To mitigate this, the authors utilized a weighted cross-entropy loss to emphasize the rarer "Mild" and "Obvious" pain classes.

Key Results

GraphAU-Pain demonstrated significant improvements over existing state-of-the-art (SOTA) models. In a 3-category classification task (No Pain, Mild, Obvious), the model achieved an accuracy of 87.61% and an average F1-score of 66.21%.

Confusion matrices for 3-category (left) and 4-category (right) pain classification.

A key insight from the study is the clinical relevance of categorization. The authors found that a 3-category scale is more effective than the traditional 4-category scale (which includes "Weak Pain"). The 4-category scale often leads to confusion because "Weak Pain" can be difficult to distinguish from non-pain-related facial movements. When compared directly to the previous SOTA (GLA-CNN) on the 4-category scale, GraphAU-Pain achieved 82.40% accuracy, vastly outperforming GLA-CNN's 56.45%.

Ablation studies confirmed that the GNN layer is vital; removing it caused the mean F1-score to drop from 66.2% to 40.3%, highlighting the importance of explicit graph-based modeling of facial muscle movements.

Discussion and Future Work

While GraphAU-Pain offers a leap forward in interpretability and performance, it relies on the PSPI score, which is an external observation of pain rather than a subjective internal experience. Additionally, the use of pseudo-labeling in the UNBC+ dataset introduces some noise. Future research could explore incorporating AU intensity (the strength of muscle movement) rather than just binary occurrence to further refine pain severity estimation.

Summary updated

BibTeX
@misc{wang2025graphau,
  author = {Zhiyu Wang and Yang Liu and Hatice Gunes},
  title = {{GraphAU-Pain: Graph-based Action Unit Representation for Pain Intensity Estimation}},
  year = {2025},
  eprint = {2505.19802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.19802},
}
Figure