Fusing Deep Learned and Hand-Crafted Features of Appearance, Shape, and Dynamics for Automatic Pain Estimation

Joy Egede, Michel F. Valstar, Brais Martínez

Abstract

Accurate pain assessment is critical in clinical settings, yet traditional methods like self-reporting are often unfeasible for non-communicative patients. This paper proposes a hybrid machine learning framework that estimates pain intensity from facial video by fusing deep-learned convolutional neural network (CNN) features with hand-crafted geometric and texture descriptors. By employing a multi-level Relevance Vector Regressor (RVR) fusion strategy and a personalized "rebasing" calibration, the approach achieves state-of-the-art performance on the UNBC-McMaster Shoulder Pain dataset, demonstrating robustness even in the face of data scarcity and significant class imbalance.

Introduction

Pain is frequently cited as the "fifth vital sign," yet its measurement remains a significant challenge in healthcare. While self-reporting is the gold standard, it is unavailable for infants, patients on ventilators, or those with cognitive impairments. Manual observation by clinical staff is a common alternative but is subjective and susceptible to observer fatigue.

Automatic pain estimation using computer vision offers a scalable solution, but it faces two primary technical hurdles. First, high-quality clinical video data is scarce due to ethical and privacy constraints. Second, datasets are typically characterized by extreme class imbalance; for instance, in the UNBC-McMaster Shoulder Pain Expression Archive, over 87% of frames represent "no pain." This imbalance makes it difficult for models to learn the nuances of high-intensity pain expressions.

Methodology

The proposed system captures three essential pillars of facial expression: appearance, shape, and dynamics.

Feature Extraction

  1. Deep Learned Features: A CNN pre-trained on Facial Action Units (AUs) extracts high-level appearance and shape information. To capture temporal dynamics, the network processes sequences of frames, calculating differences over a 5-frame window.
  2. Geometric Features: The system tracks 66 facial landmarks, calculating distances and angles to represent the "skeleton" of the expression, such as brow furrowing or mouth stretching.
  3. HOG Features: Histograms of Oriented Gradients (HOG) capture subtle skin texture changes, such as wrinkles and folds, that accompany pain.

Fusion and Calibration

The architecture utilizes a two-level Relevance Vector Regressor (RVR). Individual RVRs are first trained on each feature type. Their outputs are then fed into a second-level RVR that fuses them into a final pain score. This method is significantly more efficient than standard Support Vector Machines, using approximately 97% fewer vectors.

Overview of the proposed multi-level fusion framework for pain intensity estimation.

To account for individual variations in resting facial expressions, the authors introduced a "rebasing" technique. By identifying a patient's most frequent (modal) expression and treating it as the neutral baseline, the system calibrates itself to the individual, significantly improving prediction correlation.

Results and Discussion

The fusion model significantly outperformed previous state-of-the-art methods on the UNBC-McMaster dataset. It achieved a Root Mean Square Error (RMSE) of 0.99 on a 16-point scale (down from previous benchmarks of 1.13–1.18) and a Pearson Correlation Coefficient of 0.67.

Comparison of RMSE and Correlation metrics across different feature sets, demonstrating that the fusion of all features yields the best performance.

The results indicate that CNN-derived features and hand-crafted features are highly complementary. While CNNs excel at identifying raw pixel patterns, geometric models provide a stable structural framework that prevents the model from overfitting on small datasets. Furthermore, the inclusion of temporal dynamics allowed the model to recognize the onset and offset of pain rather than treating each frame as a static event.

Conclusion

This research demonstrates that fusing deep learning with traditional computer vision techniques provides a robust path forward for clinical applications where data is limited. While the current system is sensitive to head pose and limited to facial analysis, future work aims to incorporate multi-modal data—such as body posture and vocalizations—to create a more comprehensive and context-aware pain monitoring system.

Summary updated

BibTeX
@inproceedings{egede2017fusing,
  author = {Joy Egede and Michel F. Valstar and Brais Martínez},
  title = {{Fusing Deep Learned and Hand-Crafted Features of Appearance, Shape, and Dynamics for Automatic Pain Estimation}},
  booktitle = {FG},
  year = {2017},
  doi = {10.1109/fg.2017.87},
}
Figure