TL;DR
Time2Lang bridges the gap between Time-Series Foundation Models (TFMs) and Large Language Models (LLMs) by directly mapping temporal features into the LLM's embedding space. This bypasses the need for clunky text-based prompting, enabling highly efficient, scalable, and accurate mental health predictions from long-duration wearable sensor data.
What Problem Does This Paper Address?
Wearables and smartphones collect massive amounts of longitudinal behavioral data (like step counts or conversation durations) that are highly predictive of mental health. Naturally, researchers want to leverage the reasoning power of LLMs to analyze this data.
However, there is a massive "modality gap" between numbers and text. The standard approach is to convert raw sensor data into text strings (e.g., "Input: [12, 15, 0, 45...]"). For long-duration sequences—like minute-by-minute step counts over a whole day—this approach is a disaster. It eats up massive amounts of tokens, causes LLM performance to degrade as sequences get longer, and requires heavy domain expertise to engineer the right prompts. The authors needed a way to feed time-series data into an LLM natively, without forcing it through a text bottleneck.
Methods
The researchers introduce Time2Lang, a framework based on model reprogramming. Instead of fine-tuning massive models, they take a frozen TFM (Chronos) and a frozen LLM (LLaMA 3.2) and train a lightweight "translator" between them.
- Feature Extraction: The TFM extracts temporal features from the raw time-series data.
- The Translator (Input Encoder & Projection): A trainable, lightweight 1D ResNet-style CNN processes the TFM features and projects them directly into the LLM's input embedding space, completely bypassing the LLM's text tokenization step. A residual connection is used to ensure no temporal information is lost during translation.
- Self-Supervised Pre-training: Surprisingly, Time2Lang is trained exclusively on synthetic data generated via Gaussian Processes. The pretext task is simply predicting the periodicity (seasonality) of these synthetic waves.
- Downstream Inference: Once pre-trained, the framework extracts embeddings from real-world health data, which are then fed into simple classifiers (like Logistic Regression or Random Forests) for mental health predictions.
Datasets
- Pre-training: 200,000 synthetic time-series samples generated with varying periodicities and noise profiles.
- Major Depressive Disorder (MDD) Dataset: A clinical dataset of 256 participants covering 17,251 person-days. It uses minute-level step count data (1,440 data points per day) to predict daily depression levels (based on PHQ-9 scores).
- StudentLife Dataset (Public): A dataset of 46 college students over a 10-week term. It uses hourly conversation duration (inferred from ambient audio) to classify high vs. low "flourishing" (psychological well-being).
Key Insights and Ideas
- Synthetic Pre-training Generalizes: You don't necessarily need massive amounts of real-world health data to teach an LLM how to read time-series embeddings. Pre-training the adapter on purely synthetic data to recognize basic periodic patterns transferred beautifully to noisy, real-world behavioral data.
- Decoupling Sequence Length from Compute: Because the TFM outputs fixed-size embeddings regardless of the input length, the LLM doesn't get bogged down by massive context windows. This solves the scaling problem of text-based prompting.
- Embeddings Retain Temporal Physics: The researchers proved that the LLM's final embeddings still "understand" time. They found a moderate-to-high correlation between the Time2Lang embeddings and the Auto-Correlation Factor (ACF) of the original raw sensor data.
Key Results
- Superior Performance: Time2Lang consistently outperformed text-based prompting and baseline TFMs. For daily depression prediction, it achieved an AUROC of 0.57 and AUPRC of 0.73. For flourishing classification, it hit an AUROC of 0.71 and AUPRC of 0.74 (a wider architecture variant pushed this AUROC to 0.80).
- Massive Efficiency Gains: As input sequence lengths grew from 256 to 4,096 data points, standard LLaMA prompting latency skyrocketed from ~314ms to ~1016ms per sample. Time2Lang's latency remained virtually flat, hovering around ~50ms regardless of input length.
- Throughput: Time2Lang processed ~32 predictions per second on long sequences (4096 length), compared to standard prompting which choked at ~1 prediction per second.
Limitations and Future Work
- Uni-modal Constraints: Currently, Time2Lang only processes a single modality at a time (e.g., just step counts, or just audio duration), limited by the underlying Chronos TFM. Real-world health assessment usually requires fusing multiple sensor types.
- Missing Data: The framework currently relies on basic imputation (downsampling and zero-filling) for missing real-world data.
- Future Directions: The authors plan to extend the framework to handle multi-modal sensing data (combining heart rate, sleep, and text). They also suggest exploring masked autoencoder architectures during training to make the model inherently resilient to the missing data so common in wearable datasets.
Summary updated