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

Unobtrusive Pain Monitoring in Older Adults With Dementia Using Pairwise and Contrastive Training

Siavash Rezaei, Abhishek Moturu, Shun Zhao, Kenneth M. Prkachin, Thomas Hadjistavropoulos, Babak Taati

Abstract: Although pain is frequent in old age, older adults are often undertreated for pain. This is especially the case for long-term care residents with moderate to severe dementia who cannot report their pain because of cognitive impairments that accompany dementia. Nursing staff acknowledge the challenges of effectively recognizing and managing pain in long-term care facilities due to lack of human resources and, sometimes, expertise to use validated pain assessment approaches on a regular basis. Vision-based ambient monitoring will allow for frequent automated assessments so care staff could be automatically notified when signs of pain are displayed. However, existing computer vision techniques for pain detection are not validated on faces of older adults or people with dementia, and this population is not represented in existing facial expression datasets of pain. We present the first fully automated vision-based technique validated on a dementia cohort. Our contributions are threefold. First, we develop a deep learning-based computer vision system for detecting painful facial expressions on a video dataset that is collected unobtrusively from older adult participants with and without dementia. Second, we introduce a pairwise comparative inference method that calibrates to each person and is sensitive to changes in facial expression while using training data more efficiently than sequence models. Third, we introduce a fast contrastive training method that improves cross-dataset performance. Our pain estimation model outperforms baselines by a wide margin, especially when evaluated on faces of people with dementia.

Introduction

Pain management in long-term care (LTC) facilities is a critical challenge, particularly for residents with moderate to severe dementia. Cognitive impairments often prevent these individuals from verbally reporting distress, leading to significant undertreatment. While observational tools like the Prkachin and Solomon Pain Index (PSPI) are validated for clinical use, they are labor-intensive and require specialized training. Automated computer vision (CV) systems offer a potential solution for continuous, unobtrusive monitoring. However, existing CV models often fail in this context because they are trained on younger populations and do not account for individual baseline facial expressions.

Methodology

To address these challenges, we developed a deep learning architecture that mimics clinical assessment by focusing on facial changes rather than static frames.

Pairwise Comparative Inference

We employ a Siamese-style architecture that utilizes a reference frame (captured at rest, PSPI=0) and a target frame. By computing the difference between feature maps of these two inputs, the model effectively "zeros out" individual facial idiosyncrasies, allowing for more accurate estimation of pain intensity changes.

Multi-task Learning and Contrastive Training

The model is trained to simultaneously predict PSPI scores and Facial Action Units (AUs). This multi-task approach forces the network to learn clinically relevant facial movements. Furthermore, we adapted contrastive learning for regression. By generating "out-of-distribution" (OOD) samples through aggressive distortions, the model learns to push these samples away from the learned feature space, significantly improving generalization across different datasets.

Facial regions and Action Units (AUs) used for multi-task learning and saliency mapping.

Datasets and Data Characteristics

Our research utilizes two primary datasets: the standard UNBC-McMaster Shoulder Pain Archive and the University of Regina (UofR) Pain in Severe Dementia Dataset. The UofR dataset is particularly challenging, featuring 102 older adults recorded in less-controlled, real-world environments. A significant hurdle in this domain is data imbalance; as shown in the distributions below, "no-pain" frames (PSPI=0) vastly outnumber instances of high pain intensity.

Distribution of PSPI scores across the Dementia, Older Adult Control, and UNBC-McMaster datasets.

Results

The proposed model significantly outperformed state-of-the-art baselines, including OpenFace and AFAR. On the UofR dementia cohort, the model achieved a Pearson Correlation Coefficient (PCC) of 0.48 at the frame level, which rose to 0.82 when predictions were aggregated over a 20-second rolling window. Saliency mapping via Grad-CAM confirmed that the contrastive-trained model correctly prioritizes the mouth and eye regions, which are clinically recognized as the most expressive areas for pain.

Discussion and Future Work

While this work represents a major advancement, a performance gap remains between the automated system (PCC 0.48) and human raters (PCC 0.91). Future efforts will focus on addressing data imbalance through unsupervised pre-training and ensuring algorithmic fairness across diverse demographics. Ultimately, we aim to deploy these models on edge devices to provide privacy-preserving, real-time monitoring within LTC facilities.

Summary updated

BibTeX
@article{rezaei2020unobtrusive,
  author = {Siavash Rezaei and Abhishek Moturu and Shun Zhao and Kenneth M. Prkachin and Thomas Hadjistavropoulos and 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