Representation Learning for Wearable-Based Applications in the Case of Missing Data

Janosch Jungo, Yutong Xiang, Shkurta Gashi, Christian HolzarXiv 2024 · DOI

Abstract

Wearable devices are increasingly utilized for continuous health and activity monitoring, yet the resulting datasets often suffer from significant gaps due to hardware limitations and user behavior. This paper investigates the application of Self-Supervised Learning (SSL) using Transformer architectures to address this "missing data" problem. By training models to reconstruct masked segments of physiological and behavioral signals, we demonstrate that while simple interpolation is effective for slow-changing data, Transformers are essential for recovering complex, dynamic signals like heart rate and acceleration. Our findings suggest that deep learning-based imputation significantly improves performance in downstream tasks such as Human Activity Recognition (HAR) and stress detection.

Introduction

Wearable sensors, such as those found in smartwatches and fitness trackers, provide a wealth of longitudinal health data. However, in real-world scenarios, this data is frequently interrupted by battery charging, sensor displacement, or software glitches, creating a "Swiss cheese" effect of missing values. Traditionally, researchers have relied on simple statistical methods like mean imputation or linear interpolation to fill these gaps.

These traditional methods often fail to account for the diverse nature of wearable data, which ranges from nearly static signals (e.g., barometric pressure) to highly volatile ones (e.g., accelerometer data). This study addresses whether deep learning models, specifically Transformers, can reconstruct missing sensor data more accurately than traditional methods and how these imputation strategies impact the performance of downstream AI tasks.

Methodology

The researchers employed a Self-Supervised Learning (SSL) approach centered on a masking and reconstruction task. The core of the system is a Transformer encoder architecture, chosen for its self-attention mechanism, which allows the model to leverage distant temporal context to predict missing segments within a time series.

The end-to-end pipeline for data processing, masking, imputation, and downstream classification.

As illustrated in the pipeline above, raw data undergoes initial processing before entering a "Masker" module that hides segments of the signal. The "Imputer" (the Transformer model) then attempts to reconstruct these raw values. Finally, the reconstructed data is fed into a classifier to perform tasks like Human Activity Recognition or stress detection. The Transformer was compared against seven traditional baselines, including mean, median, linear interpolation, and spline interpolation.

Datasets

To ensure generalizability, the study utilized three distinct benchmarks:

  • Novartis2020: A real-world dataset comprising 545 days of data from 28 participants, providing the "messy" data necessary for training robust reconstruction models.
  • WESAD: A controlled laboratory dataset focused on stress and affect (15 subjects), utilizing both chest and wrist-worn sensors.
  • UCI-HAR: A standard benchmark for Human Activity Recognition (30 subjects) involving six distinct physical activities.

Key Insights and Results

The Complexity Threshold

A primary finding of this research is the existence of a "complexity threshold" for signal reconstruction. For "static" or slow-moving signals, such as skin temperature, simple linear interpolation performs as well as or better than complex deep learning models. However, for "dynamic" signals like heart rate, respiration, or movement, the Transformer provides a significant advantage, outperforming baselines by 0.05–0.43 in Mean Absolute Error (MAE).

Impact on Downstream Tasks

The ultimate test of an imputation strategy is its impact on the accuracy of final applications. The study found that using Transformer-imputed data led to classification accuracy levels much closer to the "upper bound" (results from a complete, perfect dataset) than traditional methods.

Comparison of classification accuracy across different imputation strategies for UCI HAR and WESAD datasets.

As shown in the figure above, the Transformer strategy consistently maintains higher accuracy in both activity recognition (UCI HAR) and stress detection (WESAD) compared to linear or mean imputation. Notably, as the "missing rate" of data increases, the Transformer's ability to maintain underlying signal patterns (representation learning) becomes increasingly superior to lightweight statistical methods.

Discussion and Future Work

While Transformers offer superior accuracy for dynamic signals, they come with higher computational costs. The authors advocate for a "hybrid" approach in future wearable systems: utilizing lightweight statistical methods for slow-changing signals and deep learning for high-frequency data to balance battery efficiency with data integrity.

Future research will focus on improving cross-device generalization, as sensor placement and sampling rates vary significantly across different hardware brands. Additionally, exploring "on-edge" deployment will be crucial for real-time applications where data must be processed directly on the wearable device without excessive power consumption.

Summary updated

BibTeX
@misc{jungo2024representation,
  author = {Janosch Jungo and Yutong Xiang and Shkurta Gashi and Christian Holz},
  title = {{Representation Learning for Wearable-Based Applications in the Case of Missing Data}},
  year = {2024},
  eprint = {2401.05437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.05437},
}
Figure