Sleep Position Classification using Transfer Learning for Bed-based Pressure Sensors

Olivier Papillon, Rafik Goubran, James R. Green, Julien Larivière-Chartier, Caitlin Higginson, Frank Knoefel, Rébecca Robillard

Introduction

Monitoring a patient's sleep position is a critical component of managing various clinical conditions, most notably obstructive sleep apnea, where supine (back-sleeping) positions can significantly exacerbate breathing obstructions. While traditional monitoring methods such as video surveillance or wearable sensors are effective, they often encounter resistance due to privacy concerns or patient discomfort.

Bed-based pressure-sensitive mats (PSMs) offer a non-intrusive, "invisible" alternative for continuous monitoring. However, these sensors face two primary challenges in clinical practice: low spatial resolution and data scarcity. Clinical-grade mats often utilize sparse sensor grids (e.g., 18x8) to maintain durability and cost-effectiveness, resulting in "blobby" data that is difficult to interpret. Furthermore, obtaining large, labeled datasets from clinical sleep labs is resource-intensive. This research explores the application of Vision Transformers (ViTs) and transfer learning to overcome these hurdles.

Methodology

Rather than relying on traditional hand-engineered features—such as calculating the center of pressure or geometric moments—this study treats pressure mat data as low-resolution images. The researchers employed two state-of-the-art Vision Transformer architectures:

  • ViTMAE: A model pre-trained on ImageNet using Masked Autoencoding, which learns robust visual representations by reconstructing missing portions of an image.
  • ViTPose: A model specifically optimized for human pose estimation tasks.

To adapt these models for pressure data, the researchers utilized bilinear interpolation to upscale the 18x8 grids into a square format. The input layers were modified to accept single-channel pressure data instead of standard three-channel RGB images. A key innovation in the methodology was the "double transfer" approach: the models were first pre-trained on high-resolution pressure data before being fine-tuned on the noisy, low-resolution clinical data.

Datasets

The study's evaluation relied on two distinct datasets representing different ends of the resolution spectrum:

  1. Clinical Dataset: Collected at the Royal Ottawa Hospital, this dataset includes 112 nights of recordings from patients with suspected sleep disorders. The data is characterized by a low resolution of 18x8 sensors and reflects real-world noise and variability.
  2. Pmat Dataset (External): A publicly available dataset featuring 13 participants with a significantly higher resolution of 32x64 sensors. This served as both a validation benchmark and an intermediate bridge for pre-training.

Key Results and Insights

The experimental results demonstrate a significant performance leap for Transformer-based models over traditional machine learning and previous deep learning benchmarks. On the 4-way classification task (Supine, Left, Right, Prone), the ViT-based approaches dominated the field.

Method Accuracy (Clinical) F1-Score (Clinical)
ViTMAE (Pre-trained on Pmat) 77.0% 0.731
ViTPose 64.9% 0.583
TCN (Previous State-of-the-Art) 39.8% 0.236
SVM (Traditional ML) 35.2% 0.167
Random Forest 32.2% 0.252

On the high-resolution Pmat dataset, the ViTMAE model achieved a near-perfect accuracy of 99.4%, outperforming specialized multitask CNNs.

The Power of Cross-Domain Transfer

A major insight from this work is the effectiveness of cross-domain generalization. Models pre-trained on standard natural images (ImageNet) can be successfully "re-wired" to interpret the pressure distributions of a human body. Furthermore, using high-resolution pressure data as a bridge for pre-training boosted the clinical accuracy from 64.3% to 77%, highlighting the value of intermediate domain-specific pre-training when target data is scarce.

Discussion and Future Work

While the 77% accuracy represents a substantial improvement, several challenges remain. The "Prone" (stomach-sleeping) position remains a minority class in clinical settings, leading to lower classification performance compared to supine or side positions. Additionally, the physical resolution of the 18x8 mat remains a bottleneck for distinguishing subtle postural shifts.

Moving forward, the researchers aim to integrate pose estimation with other vital sign data, such as heart rate and respiration, which are also captured by the pressure mats. Since respiratory signals vary significantly based on body orientation, accurate pose classification will allow for better calibration of vital sign algorithms, leading to more robust and comprehensive clinical monitoring.

Summary updated

BibTeX
@inproceedings{papillon2025sleep,
  author = {Olivier Papillon and Rafik Goubran and James R. Green and Julien Larivière-Chartier and Caitlin Higginson and Frank Knoefel and Rébecca Robillard},
  title = {{Sleep Position Classification using Transfer Learning for Bed-based Pressure Sensors}},
  booktitle = {I2MTC},
  year = {2025},
  doi = {10.1109/i2mtc62753.2025.11079206},
}
Figure