TL;DR
TimeCap is a new open-source, deterministic pipeline designed to generate natural-language captions for wearable health time-series data. By replacing unpredictable LLM-based annotation with a rule-based, four-tier extraction system, the authors have released MHCap—the largest open paired signal-text dataset to date—enabling significant performance gains in health-outcome prediction for time-series language models.
What Problem Does This Paper Address?
We are currently in an era where consumer wearables generate massive amounts of health data, yet our ability to interpret these signals at scale remains limited. Time-Series Language Models (TSLMs) offer a promising path forward, but they are stuck behind three major "gaps":
- The Data Gap: Most large-scale datasets pairing sensor signals with descriptive text are proprietary and closed to the research community.
- The Methods Gap: Current annotation pipelines often use Large Language Models (LLMs) to write captions. While scalable, LLM outputs are non-deterministic; you can’t regenerate the exact same dataset twice, making it impossible to audit or extend reliably.
- The Extensibility Gap: Existing tools are usually hard-coded for specific sensors (e.g., just heart rate or just sleep), making it difficult to adapt them to new devices or data schemas.
TimeCap aims to bridge these gaps by providing a reproducible, "glass-box" alternative for generating high-quality training data for health AI.
Methods
The core of TimeCap is a deterministic, four-tier extraction pipeline that operates directly on standardized sensor signals without an LLM in the loop. As shown in the pipeline overview below, raw data is first mapped into a unified recording format before passing through the extractors:
The four tiers include:
- Statistical Extractor: Computes summary stats (mean, max, min, std) for continuous channels.
- Structural Extractor: Uses signal processing (like
scipy.signal.find_peaks) to identify trends, spikes, and anomalies. - Semantic Extractor: Converts binary event channels (e.g., "is the user running?") into time-bounded text descriptions.
- Cross-Channel Extractor: This is the "synthesis" layer. It links high-level events (like a run) with quantitative evidence from other sensors (like heart rate and active energy) to create a holistic narrative of behavior.
Crucially, the system uses a channel-schema abstraction. To support a new dataset, a researcher only needs to write new channel definitions rather than redesigning the entire pipeline.
Datasets
The authors introduced two primary datasets generated via TimeCap:
- MHCap: Created from the MyHeart Counts (OpenMHC) dataset. It contains over 7 million captions across 19 Apple HealthKit channels, covering nearly 909,000 person-days. This is currently the largest open caption layer for multimodal wearable data.
- WESADCap: A smaller dataset generated from the WESAD lab-physiology study to demonstrate that the pipeline generalizes beyond consumer wearables to high-frequency clinical signals like ECG and EMG.
The following table highlights how MHCap compares to existing corpora, emphasizing its unique combination of being open, deterministic, and extensible:
Key Insights and Ideas
- Determinism is a Feature, Not a Bug: While LLMs produce more "natural" sounding prose, TimeCap’s template-based approach ensures that every caption can be traced back to a specific rule and threshold. This makes the training data auditable and prevents "hallucinations" in health contexts.
- Captions as a Training Signal: The paper demonstrates that training a model on captions plus labels is superior to training on labels alone. The captions act as a bridge, helping the model learn the underlying "language" of the sensors.
- Zero-Shot Generalization: One of the most striking findings was that models trained on TimeCap captions showed improved performance on clinical conditions they were never explicitly trained to predict (like Diabetes or Atrial Fibrillation). This suggests the captions help the model learn general physiological representations.
Key Results
The authors evaluated their approach by training OpenTSLM-Cap and comparing it to a label-only baseline across 32 per-user binary evaluation tasks.
- Superior Performance: The caption-augmented model outperformed the baseline on 29 out of 32 tasks.
- Clinical Gains: At the 3B parameter scale, the model saw significant macro-F1 gains on held-out clinical conditions, including Cardiovascular Disease (+3.4) and Diabetes (+6.1).
- Ablation Success: In "caption-family" tests, the authors found that no single tier (statistical, structural, etc.) was responsible for all the gains; rather, the full mix of all four tiers provided the best results.
Limitations and Future Work
Despite its success, the authors note several areas for improvement:
- Demographic Bias: The underlying OpenMHC cohort is skewed toward white, male participants in the US, meaning the models may not generalize well to underrepresented populations.
- Linguistic Diversity: Because the captions rely on fixed templates (with ~20 variants each), they lack the lexical richness of human or LLM-generated text.
- Population vs. Individual: The current results are better suited for population-level patterns rather than individual clinical diagnosis.
- Future Directions: The team suggests adding "data-availability gates" to prevent captioning missing data as events and exploring constrained LLM post-processing to improve readability without sacrificing signal grounding.
Summary updated