Beyond Prompting: Time2Lang - Bridging Time-Series Foundation Models and Large Language Models for Health Sensing

Arvind Pillai, Dimitris Spathis, Subigya Nepal, Amanda C. Collins, Daniel M. Mackin, Michael V. Heinz, Tess Z. Griffin, Nicholas C. Jacobson, Andrew CampbellarXiv 2025 · DOI

TL;DR

This paper introduces Time2Lang, a novel framework that directly maps time-series foundation model (TFM) outputs to large language model (LLM) representations, bypassing the need for error-prone text conversion. This approach significantly improves efficiency and preserves crucial time-series characteristics, paving the way for more robust and scalable AI-driven health monitoring.

What Problem Does This Paper Address?

The paper tackles the challenge of integrating behavioral sensing data with LLMs for health applications. While LLMs show great promise, traditional methods of converting sensor data into text prompts for LLMs are problematic. This process is inefficient, prone to errors, requires significant domain expertise, and struggles with long time-series data. Existing time-series foundation models (TFMs) can learn representations from temporal data, but effectively bridging these TFMs with LLMs without losing information has been a significant hurdle.

Methods

Time2Lang proposes a framework that directly maps TFM outputs to LLM representations. Instead of converting sensor data into text prompts, Time2Lang uses a TFM (specifically Chronos) to extract temporal features. These features are then fed into an input encoder (a ResNet-style CNN) and subsequently into a frozen LLM (LLaMA 3.2). A projection network maps the LLM's output to a final representation. The entire system is trained using a self-supervised learning (SSL) framework with a pretext task of predicting periodicity from synthetic time-series data. This approach aims to learn a meaningful mapping that preserves essential time-series characteristics and enables positive knowledge transfer between the TFM and LLM.

Datasets

The authors utilized two real-world longitudinal datasets for evaluation:

  • Major Depressive Disorder (MDD) Dataset: This dataset consists of daily step count data from 256 participants over 17,251 days, used for predicting depression.
  • StudentLife Dataset: This dataset comprises conversation duration data from 46 participants over 10 weeks, used for classifying flourishing levels.

Synthetic data was generated for the self-supervised pre-training phase, mimicking intricate sensing patterns with periodicity.

Key Insights and Ideas

  • Direct TFM-to-LLM Mapping is Key: Bypassing text conversion is crucial for efficiency and accuracy when integrating time-series data with LLMs, especially for long sequences.
  • Periodicity as a Powerful Pretext Task: Training on periodicity prediction for synthetic time-series data effectively teaches the model to capture fundamental temporal patterns.
  • Preserving Time-Series Characteristics: The embeddings generated by Time2Lang retain essential time-series properties like auto-correlation, which are often lost in text-based prompting.
  • Scalability and Constant Inference Time: Time2Lang's architecture allows for near-constant inference times regardless of input length, a significant advantage over LLM prompting which scales linearly with input length.
  • Positive Knowledge Transfer: The framework demonstrates effective knowledge transfer from the TFM to the LLM, leading to improved performance compared to simply concatenating embeddings.

Key Results

  • Depression Prediction: Time2Lang achieved an AUROC of 0.57 and AUPRC of 0.73, outperforming baselines including LLAMA-ICL and Chronos + LLAMA.
  • Flourishing Classification: Time2Lang achieved an AUROC of 0.71 and AUPRC of 0.74, significantly outperforming prompting-based baselines and Chronos + LLAMA.
  • Efficiency: Time2Lang consistently demonstrated lower inference times and higher throughput compared to LLAMA prompting, especially with increasing input sizes. Its inference time remained stable, unlike LLAMA prompting which increased proportionally with input length.
  • Architecture Impact: Wider models with larger embedding sizes for the input encoder and projection layers yielded the best performance, particularly for flourishing prediction.

Limitations and Future Work

  • Uni-modal Data: The current Time2Lang framework processes only uni-modal time-series data. Future work aims to extend it to multi-modal data (e.g., integrating images, audio, text) for richer insights.
  • Generalizability: While effective for mental health, the authors plan to evaluate Time2Lang on more diverse datasets and sensing modalities to assess its generalizability.
  • Model Selection: The choice of Chronos and LLaMA was motivated by their fixed-length embeddings and language modeling origins. Future work will explore alternative TFMs and LLMs to find optimal combinations for different tasks.
  • Reasoning Capabilities: The current framework's reasoning capabilities are limited. Future research will focus on enhancing these capabilities for more complex tasks.
  • Missing Data Handling: While the current approach handles missing data, future work will explore more robust methods like masked autoencoder architectures to better handle missing segments and modalities.

Summary updated

Abstract

Large language models (LLMs) show promise for health applications when combined with behavioral sensing data. Traditional approaches convert sensor data into text prompts, but this process is prone to errors, computationally expensive, and requires domain expertise. These challenges are particularly acute when processing extended time series data. While time series foundation models (TFMs) have recently emerged as powerful tools for learning representations from temporal data, bridging TFMs and LLMs remains challenging. Here, we present Time2Lang, a framework that directly maps TFM outputs to LLM representations without intermediate text conversion. Our approach first trains on synthetic data using periodicity prediction as a pretext task, followed by evaluation on mental health classification tasks. We validate Time2Lang on two longitudinal wearable and mobile sensing datasets: daily depression prediction using step count data (17,251 days from 256 participants) and flourishing classification based on conversation duration (46 participants over 10 weeks). Time2Lang maintains near constant inference times regardless of input length, unlike traditional prompting methods. The generated embeddings preserve essential time-series characteristics such as auto-correlation. Our results demonstrate that TFMs and LLMs can be effectively integrated while minimizing information loss and enabling performance transfer across these distinct modeling paradigms. To our knowledge, we are the first to integrate a TFM and an LLM for health, thus establishing a foundation for future research combining general-purpose large models for complex healthcare tasks.
BibTeX
@misc{pillai2025beyond,
  author = {Arvind Pillai and Dimitris Spathis and Subigya Nepal and Amanda C. Collins and Daniel M. Mackin and Michael V. Heinz and Tess Z. Griffin and Nicholas C. Jacobson and Andrew Campbell},
  title = {{Beyond Prompting: Time2Lang - Bridging Time-Series Foundation Models and Large Language Models for Health Sensing}},
  year = {2025},
  eprint = {2502.07608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07608},
}
Figure