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

Unobtrusive Pain Monitoring in Older Adults with Dementia using Pairwise and Contrastive Training

Babak Taati · OpenReview

TL;DR

This paper introduces a novel, fully automated vision-based system for detecting pain in older adults with dementia, a population often unable to verbally report their discomfort. By employing a unique pairwise training approach and a fast contrastive training method, the system achieves significant improvements in pain estimation accuracy, particularly for individuals with dementia, outperforming existing methods.

What Problem Does This Paper Address?

Pain is a pervasive issue in older adults, yet it's frequently underdiagnosed and undertreated, especially in individuals with moderate to severe dementia who struggle to communicate their pain. Long-term care (LTC) facilities face challenges in consistently monitoring pain due to staff shortages and the complexity of validated pain assessment tools. Existing computer vision techniques for pain detection, while promising, are often not validated on older adults or individuals with dementia, and these populations are underrepresented in relevant datasets. This gap highlights the need for an unobtrusive, automated system that can reliably detect pain in this vulnerable group, enabling timely intervention and improving quality of life.

Methods

The researchers developed a deep learning-based computer vision system with three key innovations:

  • Fully Automated Pain Detection: The system aims to automatically estimate pain levels from facial expressions captured in videos of older adults, including those with dementia. This is a significant step beyond existing methods that may require manual input or are not validated on this specific demographic.
  • Pairwise Pain Detection: Instead of processing frames independently or as long sequences, the model takes pairs of images (a reference frame and a target frame) from the same individual. This approach leverages the insight that human annotators adapt to a person's baseline expression. By estimating the difference in pain between frames, the model becomes more sensitive to subtle changes and more efficient with limited training data.
  • Contrastive Training: To further enhance performance, especially across different datasets, the researchers introduced a fast contrastive training method. This technique, adapted from classification to regression, helps the model distinguish between "in-distribution" (expected) and "out-of-distribution" (unexpected) samples. This is achieved by adding a loss term that constrains the direction of feature vectors, leading to improved generalization and robustness.

Datasets

The study utilized two datasets:

  • University of Regina (UofR) Pain in Severe Dementia dataset: This dataset contains video data from 102 older adults (with and without dementia), recorded with multiple cameras. A significant portion (95 participants) was manually annotated with PSPI (Prkachin and Solomon Pain Index) and PACSLAC-II (Pain Assessment Checklist for Seniors with Limited Ability to Communicate-II) scores. This dataset is notable for its focus on older adults with dementia in a less controlled environment.
  • UNBC-McMaster Shoulder Pain Expression Archive Database: This publicly available dataset features videos of 25 participants with shoulder pain during movements, annotated with FACS (Facial Action Coding System) codes, from which PSPI scores can be derived. This dataset is considered more controlled and well-lit compared to the UofR dataset.

Key Insights and Ideas

  • Individualized Pain Assessment is Crucial: The pairwise approach, where reference and target frames come from the same person, significantly outperforms models trained on random pairings. This underscores the importance of calibrating pain detection to an individual's baseline expression.
  • Contrastive Training Boosts Generalization: The contrastive training method not only improves within-dataset performance but also enhances cross-dataset generalization, suggesting it helps the model learn more robust and transferable features.
  • Dementia Presents Unique Challenges: The performance gap between the dementia cohort and healthy controls within the UofR dataset highlights the increased difficulty of detecting pain expressions in individuals with dementia, likely due to altered or less pronounced facial cues.
  • Multi-task Learning Prevents Overfitting: Training the model to predict multiple outputs (PSPI, FACS, PACSLAC-II) simultaneously, rather than just PSPI, led to better cross-dataset performance and reduced overfitting, suggesting it acts as a form of regularization.
  • Mouth Region is Key for Pain: Saliency maps generated by the contrastive-trained model show increased attention to the mouth area when detecting high pain, aligning with expert knowledge about pain-related facial movements.

Key Results

  • The proposed model significantly outperforms baseline methods, achieving a Pearson correlation of 0.48 for per-frame predictions on the dementia cohort of the UofR dataset, and 0.69 on the UNBC-McMaster dataset.
  • When using a 20-second rolling window for aggregation, the model achieved an Average Precision of 0.82 for the dementia group, a substantial improvement.
  • The contrastive training method consistently improved performance across datasets and tasks. For instance, it boosted the Average Precision for the dementia group from 0.79 to 0.82 in per-frame predictions.
  • The model demonstrated better performance on the UNBC-McMaster dataset compared to the UofR dataset, likely due to the more controlled recording environment of the former.

Limitations and Future Work

  • Ethnicity/Race Bias: The study acknowledges the lack of ethnicity/race breakdown in the datasets, preventing an evaluation of potential biases related to skin tone. Future work should address this.
  • Gender Bias: While the model showed a slight performance difference between male and female faces, the gap was small. However, the authors suggest collecting more data from male participants to further reduce this potential bias.
  • Unobtrusive vs. Controlled Environments: The performance gap between the UofR (less controlled) and UNBC-McMaster (controlled) datasets highlights the challenge of real-world, unobtrusive monitoring.
  • Leveraging Unsupervised Learning: The authors believe that automatic pain detection is a prime candidate for unsupervised training methods due to the imbalanced nature of datasets and the difficulty in acquiring large, labeled clinical data. This is a key direction for future research.
  • Real-time Deployment: While the current model shows promise, the computational requirements of some baseline models (like VGG16+LSTM) make them infeasible for real-time analysis. Future work will likely focus on optimizing the proposed model for efficient, real-time deployment in LTC settings.

Summary updated

BibTeX
@article{taati2020unobtrusive,
  author = {Babak Taati},
  title = {{Unobtrusive Pain Monitoring in Older Adults with Dementia using Pairwise and Contrastive Training}},
  journal = {IEEE Journal of Biomedical and Health Informatics},
  year = {2020},
  doi = {10.1109/jbhi.2020.3045743},
}
Figure