TL;DR
Wearable and digital health time-series data often suffer from distribution shifts caused by individual variations in body size, walking pace, and fitness. This paper introduces Symbol-Temporal Consistency (STC), a self-supervised learning framework that aligns raw temporal signals with order-agnostic "bag-of-symbol" frequency representations. By forcing temporal encoders to match warping-invariant symbolic representations during pre-training, the model achieves significantly better generalization across unseen human subjects.
What Problem Does This Paper Address?
In digital health and activity recognition, deep learning models trained on sensor readings frequently degrade when deployed on new users. Even when performing the exact same activity (e.g., walking), a tall runner and a short runner produce sensor waveforms with distinct amplitudes, local phase shifts, and temporal warping.
While self-supervised contrastive learning (SSL) can learn powerful representations from unlabeled sensor streams, most existing methods rely solely on time-domain or frequency-domain augmentations. They struggle to bridge the gap caused by human-to-human behavioral shifts. The authors tackle this challenge: how can a self-supervised model learn representations that remain invariant to signal warping and individual behavioral quirks without losing critical temporal structure?
Methods
The authors propose Symbol-Temporal Consistency (STC), which bridges classical symbolic data-mining representations and deep contrastive learning.
Raw Time Series (x^T) ───► Discretization / Symbol Counting ───► Bag-of-Symbols (x^S)
│ │
Augmentation (Noise) Augmentation (Edit)
▼ ▼
Time Encoder (E_T) & Proj (P_T) Symbol Encoder (E_S) & Proj (P_S)
│ │
Temporal Embedding (z^T) ◄─── Symbol-Temporal Consistency ───► Symbolic Embedding (z^S)
(L_TS)
- Bag-of-Symbol Representation ($x^S$):
- Real-valued time series are discretized into symbols using cutlines placed across the amplitude range (spanning $\pm 3\sigma$ with equal-width bins, plus two boundary bins).
- Rather than preserving sequence order, the model computes an aggregated frequency histogram of these symbols and normalizes it using z-score normalization. This representation is inherently resistant to time-warping, noise, and phase offsets.
- Domain-Specific Augmentations:
- Raw temporal signals ($x^T$) are augmented via random noise injection ($\tilde{x}^T$).
- Symbolic histograms ($x^S$) are augmented via symbolic modifications such as insertion and deletion ($\tilde{x}^S$).
- Dual Encoders and Unified Projection:
- Temporal representations pass through a time encoder $E_T$ and projector $P_T$.
- Symbolic representations pass through a symbolic encoder $E_S$ and projector $P_S$.
- Three-Part Joint Contrastive Loss:
- $L_T$: Time-domain contrastive loss ensuring temporal robustness against noise.
- $L_S$: Symbolic-domain contrastive loss ensuring robustness against symbolic perturbation.
- $L_{TS}$: Cross-domain consistency loss that penalizes discrepancies between the temporal embeddings ($z^T$) and symbolic embeddings ($z^S$).
- Inference / Downstream Evaluation:
- During testing, the symbolic branch is discarded entirely. Only the time-domain embedding $z^T$ is extracted and fed into a linear classifier.
Datasets
- PAMAP2 (Physical Activity Monitoring Dataset): Contains multimodal sensor recordings across 9 subjects performing diverse physical activities.
- Benchmark Protocol: The authors selected the 5 subjects (1, 2, 5, 6, and 8) who each had at least 90 seconds of recorded data across three core activities: standing, walking, and running.
- Evaluation Setup: A pairwise cross-subject evaluation was conducted (training self-supervised embeddings on subject $i$ and evaluating linear classification on target subject $j$), yielding 20 distinct transfer pairs.
Key Insights and Ideas
- Distillation of Invariance: Symbolic histograms completely discard sequence order, trading timing detail for strong warping- and shift-invariance. By contrasting temporal embeddings with symbolic embeddings during training, the temporal encoder absorbs this invariance while retaining fine-grained temporal patterns.
- Throw Away the Symbolic Branch at Test Time: An ablation study showed that evaluating with temporal representations alone ($z^T$) achieved higher accuracy (0.901) than concatenating temporal and symbolic vectors ($z^T + z^S$, 0.863). The symbolic embeddings serve purely as regularizing "training wheels" during self-supervised pre-training.
- Mitigating Inter-Subject Discrepancies: The approach showed especially notable gains when transferring to subjects with distinct behavioral profiles (such as demographic or gender offsets), validating that histogram-based constraints help normalize differences across user styles.
Key Results
The authors compared STC against Time-Frequency Consistency (TFC)—a recent state-of-the-art time/frequency SSL baseline—as well as supervised models trained from scratch (MLP and Logistic Regression):
| Method | Mean Accuracy Across 20 Subject Pairs |
|---|---|
| STC (Proposed) | 0.901 |
| TFC (Time-Frequency SSL) | 0.888 |
| Multilayer Perceptron (Scratch) | 0.644 |
| Logistic Regression (Scratch) | 0.381 |
- Pairwise Superiority: STC outperformed or closely matched TFC on the majority of subject-transfer pairings, exhibiting particularly large performance jumps when evaluating on target Subject 2 (e.g., Subject 6 $\rightarrow$ Subject 2 yielded 0.915 with STC vs. 0.878 with TFC).
Limitations and Future Work
- Limited Evaluation Scope: Experiments were confined to a single dataset (PAMAP2), evaluating only 5 subjects across 3 simple activity classes (standing, walking, running).
- Heuristic Discretization: The symbolic discretization step relies on static, uniform Gaussian-interval cutlines rather than learnable or adaptive quantization techniques (e.g., SAX or VQ-VAEs).
- Downstream Tasks: The paper tests only linear classification via cross-subject transfer. It does not explore other common time-series benchmarks such as forecasting, anomaly detection, or complex multivariate clinical biosignals (e.g., EEG/ECG).
Summary updated