Automated pain detection in facial videos of children using human-assisted transfer learning

Xiaojing Xu, Kenneth Craig, Damaris Diaz, Matthew S. Goodwin, Murat Akçakaya, Busra Susam, Jeannie Huang, Virginia R. de SaAIH @ IJCAI 2018

TL;DR

This paper tackles the challenge of accurately detecting pain in children from facial videos, a task difficult even for humans. They introduce a novel transfer learning approach that maps automatically detected facial action units (AUs) to a human-coded subspace, significantly improving pain detection robustness across different environmental conditions.

What Problem Does This Paper Address?

Accurately assessing pain in children is crucial but challenging. While facial expressions offer rich cues, automatically detecting these subtle signals is hampered by variations in recording environments and the inherent differences between automated and human-driven facial action unit (AU) coding. Previous attempts to use automated AU detection for pain classification showed a significant drop in performance when applied to data from different environments (e.g., hospital vs. outpatient settings). This environmental variability, along with potential differences in how automated systems and human coders interpret facial movements, creates a gap for robust, real-world pain detection systems.

Methods

The core of this paper lies in a human-assisted transfer learning approach. They first use an automated system (iMotions with Emotient's FACET technology) to detect 20 AUs and 3 head pose indicators from facial videos. To address the environmental domain shift, they train a regression network to map these automated AU features to a subspace of manually coded AU features. This mapping aims to capture the more robust, environmentally invariant aspects of pain expression as identified by human coders. After this mapping, a new classifier is trained on these transformed features for pain/no-pain detection. They explored mapping to different representations of manual features, including all 64 AUs, the 8 "pain-related" AUs, and principal components (PCs) of these pain-related AUs.

Datasets

The study utilized data collected from 143 pediatric participants undergoing laparoscopic appendectomy. Data was collected over three visits (V1, V2, V3) in two distinct environmental conditions: hospital (V1, V2) and outpatient lab (V3). This created two primary data domains: D1 (hospital data) and D2 (outpatient data). A subset of the data was manually coded by a trained FACS AU coder, while the rest was only automatically coded. This allowed for both within-domain and cross-domain evaluation.

Key Insights and Ideas

  • Environmental factors are a major confounder for automated pain detection: The performance of automated AU-based pain classifiers degrades significantly when tested on data from different environments than they were trained on. This suggests that automated systems might be picking up on environmental cues (like patient posture) rather than purely pain-related facial expressions.
  • Manual AU coding is more robust to environmental changes: Human coders, even when coding AUs, are less susceptible to environmental variations, leading to more consistent pain classification performance across domains.
  • Transfer learning can bridge the gap: By mapping automated features to a subspace of manual features, the system can learn to ignore environmental noise and focus on pain-relevant signals, mimicking the robustness of human coders.
  • Focusing on "pain-related" AUs is beneficial: Restricting the manual feature space to AUs consistently associated with pain (identified by human FACS experts) further improved classification performance, especially when combined with transfer learning.
  • Principal Components (PCs) of manual features are effective targets for mapping: Using a reduced set of principal components derived from manual pain-related AUs as the target for the transfer learning mapping yielded the best results.

Key Results

  • The transfer learning model improved the Area Under the ROC Curve (AUC) on independent data (new participants) from an AUC of 0.69 to 0.72 for the clinically relevant D1 domain.
  • Without transfer learning, automated features showed a significant performance drop when classifying pain across domains (e.g., AUC of 0.61 for D1 when trained on D2).
  • Manual AU-based classification showed less domain variability, with AUCs for D1 being higher and less affected by the training domain compared to automated features.
  • The transfer learning model's output pain score increased with true self-reported pain levels, indicating its ability to reflect pain intensity.

Limitations and Future Work

The paper acknowledges that manual coding is time-consuming and not suitable for real-time applications, which is precisely why their transfer learning approach is valuable. They also note that the correlation between automated and manual AUs is not perfect, suggesting room for improvement in automated AU detection itself. Future work could explore more sophisticated mapping techniques or investigate other modalities of pain expression in conjunction with facial analysis. The study also focused on a specific surgical context, and further validation across different pain types and age groups would be beneficial.

Summary updated

BibTeX
@inproceedings{xu2018automated,
  author = {Xiaojing Xu and Kenneth Craig and Damaris Diaz and Matthew S. Goodwin and Murat Akçakaya and Busra Susam and Jeannie Huang and Virginia R. de Sa},
  title = {{Automated pain detection in facial videos of children using human-assisted transfer learning}},
  booktitle = {AIH @ IJCAI},
  year = {2018},
  url = {https://openreview.net/forum?id=BJWGNmf_ZS},
}
Figure