NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards automated pain detection in children using facial and electrodermal activity

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

TL;DR

This paper explores fusing facial expressions and electrodermal activity (EDA) to automatically detect pain in children after surgery. By adapting models trained on different data collection times, they achieve a significant accuracy improvement, demonstrating the potential of multimodal sensing for objective pain assessment in a challenging pediatric population.

What Problem Does This Paper Address?

Accurately assessing pain in children is notoriously difficult. Self-reporting, the current gold standard, is subjective and can be influenced by a child's cognitive and linguistic abilities, as well as social biases. This subjectivity can lead to under- or over-treatment, with serious consequences like prolonged suffering or opioid addiction. Objective, automated pain detection methods are therefore crucial for effective pain management in clinical settings. Previous research has shown promise using facial action units (AUs) and electrodermal activity (EDA) signals independently, but fusing these modalities and addressing the challenges of domain adaptation in pediatric data remains an active area of research.

Methods

The researchers employed a multimodal approach, combining facial expression analysis and electrodermal activity (EDA) measurements.

  • Facial Feature Extraction: Videos of children's faces were processed using iMotions software to extract log probabilities of 20 facial action units (AUs) and 3 head pose indicators. To create a manageable feature set, 11 statistics (mean, max, min, standard deviation, various percentiles, etc.) were computed for each AU across all frames, resulting in 23 features per AU.
  • EDA Feature Extraction: EDA signals were preprocessed (smoothed, down-sampled, normalized) and then analyzed using timescale decomposition (TSD). The mean, standard deviation, and entropy of each TSD component were calculated, yielding a feature vector of length 90.
  • Machine Learning Models:
    • Support Vector Machine (SVM): Linear SVMs were used to classify pain based on either facial or EDA features. Principal component analysis (PCA) was employed to reduce dimensionality, with the number of components selected via cross-validation.
  • Linear Discriminant Analysis (LDA): LDA was used as a fusion classifier. Initially, it took the output "pain scores" from the individual SVMs as input. Later, it was used to combine features directly or to fuse SVM outputs after domain adaptation.
  • Domain Adaptation: A key challenge was adapting models trained on data collected at different times (e.g., in-hospital vs. outpatient visits). The paper explores techniques to bridge this "domain gap," aiming to improve performance on data from a target domain (V2) using models trained on source domains (V1/V3).

Datasets

The study utilized data collected from 42 pediatric participants (aged 13 [10,15], 79% Hispanic) who underwent laparoscopic appendectomy. Data was collected across three visits:

  • V1: Within 24 hours post-surgery (in-hospital).
  • V2: One day after V1 (in-hospital).
  • V3: Follow-up visit up to 42 days post-surgery (outpatient lab).

Pain levels were self-reported on a 0-10 Numerical Rating Scale. For classification, ratings of 0-3 were labeled as "no pain," and 4-10 as "pain." The dataset comprised 22 pain samples from V1, 8 pain and 8 no-pain samples from V2, and 22 no-pain samples from V3. The paper focuses on V2 (in-hospital) for classification, treating it as a target domain for domain adaptation.

Key Insights and Ideas

  • EDA is a Stronger Indicator than Facial Features Alone (Initially): In initial experiments, EDA features alone provided better pain detection accuracy on the target V2 dataset compared to facial features. This highlights the robustness of EDA signals in capturing physiological stress responses related to pain.
  • Domain Adaptation is Crucial for Pediatric Data: The significant performance drop when applying models trained on one visit (e.g., V1/V3) to another (V2) underscores the challenge of environmental and temporal variations in pediatric data collection. Addressing this "domain gap" is essential for practical deployment.
  • Fusion Outperforms Individual Modalities (with Adaptation): While simple fusion of SVM outputs was initially poor, a fusion approach that incorporated domain adaptation achieved the highest accuracy, demonstrating the synergistic benefit of combining facial and EDA information when handled appropriately.
  • Target Domain Training is Beneficial (but Data-Limited): Training classifiers directly on the target V2 data improved performance significantly compared to using V1/V3 data, but this was limited by the small number of V2 samples. This points to the need for effective domain adaptation techniques to leverage larger, more readily available datasets.

Key Results

  • Baseline Performance: On the V2 dataset, individual modalities achieved accuracies of 0.56 (EDA) and 0.5 (Video) when models were trained on V1/V3.
  • Simple Fusion: A basic fusion of SVM outputs (without domain adaptation) resulted in a poor accuracy of 0.56 on V2.
  • Domain Adaptation with Target Training: Training SVMs on V2 data directly yielded an accuracy of 0.69 for video features.
  • Best Performance: The most effective approach was a fusion of SVM output scores for video and EDA, combined with domain adaptation, achieving a comparative best accuracy of 0.84 on the V2 dataset. Direct concatenation of video and EDA features (feature-level fusion) performed poorly at 0.56.

Limitations and Future Work

  • Limited Data: The study acknowledges the limited number of samples in the target domain (V2), which introduced significant variance in performance.
  • Environmental Differences: The authors hypothesize that environmental differences between in-hospital (V1/V2) and outpatient (V3) settings contributed to the sub-optimal performance of video features.
  • Future Work: The authors suggest that future work should focus on tailoring the two modalities (facial and EDA) to be more sensitive to their respective benefits and limitations. This could involve exploring more sophisticated domain adaptation techniques and potentially other feature fusion strategies to further improve pain detection accuracy.

Summary updated

BibTeX
@inproceedings{xu2018towards,
  author = {Xiaojing Xu and Busra Susam and Hooman Nezamfar and Kenneth Craig and Damaris Diaz and Jeannie Huang and Matthew S. Goodwin and Murat Akçakaya and Virginia R. de Sa},
  title = {{Towards automated pain detection in children using facial and electrodermal activity}},
  booktitle = {AIH @ IJCAI},
  year = {2018},
  url = {https://openreview.net/forum?id=rJWu5VG_Wr},
}
Figure