Introduction
The proliferation of wearable devices has generated vast amounts of actigraphy data—time-series records of movement counts. While this data holds significant potential for screening chronic conditions like sleep apnea and diabetes, two primary challenges hinder its clinical utility: the scarcity of labeled medical data and the presence of subject-specific noise. Most users do not have confirmed clinical diagnoses, and individual variations in daily routines or device usage patterns often obscure underlying health signals.
To address these issues, we introduce activity2vec, a novel unsupervised framework designed to learn robust representations from raw wearable sensor data. By leveraging temporal context and adversarial training, the model produces "embeddings" that are invariant to individual quirks while remaining highly predictive of health outcomes.
Methodology: The activity2vec Framework
The core of activity2vec is an unsupervised representation learning model that transforms activity time-series into d-dimensional feature vectors. Unlike traditional supervised methods, it does not require disease labels during its primary training phase. Instead, it employs a "three-player game" architecture:
- The Encoder (E): An embedding matrix that maps segmented time-series data into a latent space.
- The Predictors (F): These components enforce the capture of meaningful patterns through several specialized losses:
- Segment-Specific Loss: Reconstructs activity values within a segment.
- Ordinal Regression: Accounts for the numerical nature of activity counts, ensuring the model respects the magnitude of movement.
- Temporal Context & Smoothing: Predicts neighboring segments to ensure coherent transitions over time.
- The Discriminator (D): An adversarial component that attempts to identify the specific subject associated with a data segment. The Encoder is trained to "fool" this discriminator, which effectively filters out subject-specific noise and forces the learned representations to be subject-invariant.
Experimental Setup
The model was evaluated using two large-scale public datasets: the Study of Latinos (SOL), containing 1,887 subjects with clinical labels for four disorders, and the Multi-Ethnic Study of Atherosclerosis (MESA), which provided unlabeled activity data for an additional 2,237 subjects. This allowed for unsupervised training on over 4,000 subjects before fine-tuning or testing on the labeled subset.
Results and Discussion
Our analysis revealed several key insights into the nature of activity data and the effectiveness of adversarial learning.
The Importance of Temporal Granularity
Testing across various time scales (samples, hours, days, weeks) showed that day-level embeddings were the most effective. This suggests that human health signals in actigraphy are most clearly captured when aligned with 24-hour circadian rhythms.
Data Efficiency and Performance
A significant advantage of activity2vec is its performance in label-scarce environments. When using only 10-25% of available training labels, activity2vec significantly outperformed end-to-end supervised Convolutional Neural Networks (CNNs).
Even with a simple linear classifier, the unsupervised embeddings matched or exceeded the performance of complex supervised models. Furthermore, the adversarial training variant improved F1 scores by up to 3.1% across all tasks, confirming that stripping away individual "noise" enhances the model's focus on universal disease markers.
Computational Efficiency
The framework is highly scalable, offering a 10x speedup over unsupervised LSTMs and an 8x speedup over traditional feature extraction methods like HCTSA.
Conclusion and Future Directions
Activity2vec demonstrates that unsupervised, adversarial representation learning can effectively bridge the label gap in medical time-series analysis. Future work will explore the use of Change-Point Detection (CPD) to automatically identify natural behavioral segments (e.g., sleep vs. work) rather than relying on fixed 24-hour windows. Additionally, extending the framework to handle high-frequency continuous sensor data, such as raw accelerometry or ECG, remains a promising avenue for research.
Summary updated