Manuscript Offprint

arXiv:2609.08772

It's All in the Way You Say It: The Role of Information Representation in LLM-Based Glycemic-Event Prediction

Andrea Apicella, Pasquale Arpaia, Matteo Orefice, Andrea Pollastro, Roberto Prevete

Abstract

Large Language Models (LLMs) are increasingly being investigated for physiological time-series prediction, yet their effectiveness may depend not only on the model itself, but also on how physiological information is represented and presented at inference time. This study investigates prompt-based general-purpose LLMs for postprandial hyperglycemia and hypoglycemia prediction in individuals with type 1 diabetes. Using the OhioT1DM dataset, we evaluate multiple open-weight LLMs under zero-shot and few-shot inference across prediction horizons of 30, 60, and 90 minutes. The analysis varies both the textual representation of the available physiological information and the amount of information exposed to the model, ranging from glucose observations alone to derived descriptors and additional contextual variables related to insulin, meals, carbohydrates, and physical activity. Performance is compared with conventional patient-specific supervised models and with Gluco-LLM, a language-model-based architecture explicitly adapted to glucose time-series forecasting. Results show a marked task-dependent behavior. Conventional supervised models achieve the strongest performance for hyperglycemia prediction, whereas the best observed prompt-based LLM configurations improve performance for hypoglycemia across all investigated horizons. The effectiveness of prompt-based inference is also strongly influenced by how physiological information is represented, while providing additional contextual information does not lead to a systematic improvement. Overall, these findings highlight physiological information representation as a central design factor in prompt-based LLM approaches to glycemic-event prediction.

Keywords: LLM, T1DM, Diabete, Hypoglycemia, Hyperglycemia, Machine Learning, Large Language Models

1. Introduction

Type 1 diabetes (T1D) is a chronic autoimmune condition characterized by the destruction of pancreatic β\beta-cells, resulting in little or no endogenous insulin production [1]. Consequently, blood glucose regulation relies on exogenous insulin administration and continuous monitoring of glucose levels. Inadequate glucose control may lead to hyperglycemia, i.e., excessively high blood glucose levels, or hypoglycemia, i.e., abnormally low glucose levels, both of which can have clinically relevant consequences. Continuous Glucose Monitoring (CGM) systems provide frequent measurements of interstitial glucose and therefore represent a key source of information for anticipating such adverse glycemic events. Large Language Models (LLMs) have recently emerged as a promising alternative for addressing a wide range of medical prediction and decision-support tasks [2, 3, 4, 5]. Importantly, LLM-based and LLM-assisted approaches have attracted increasing attention for blood glucose forecasting in people with T1D, showing encouraging results in personalized prediction and in the integration of heterogeneous physiological information [6, 7]. This development is particularly relevant given the growing global burden of T1D [8] and the challenges that conventional Machine Learning (ML) approaches still face in capturing highly individual glucose dynamics and effectively exploiting heterogeneous physiological inputs [9, 10, 11, 12]. In this work, we specifically focus on postprandial glycemic-event prediction, where the objective is to anticipate hyperglycemic and hypoglycemic events following meal intake. The postprandial period represents a particularly challenging and clinically relevant setting, as glucose dynamics are strongly affected by the interplay between several factors, such as carbohydrate absorption, insulin administration, and individual physiological responses. Accurate prediction in this phase may therefore support earlier identification of potentially adverse glycemic excursions and enable more timely preventive interventions [13].

Furthermore, general purpose LLMs may offer a practical advantage in terms of accessibility. Unlike conventional supervised models, they can be applied to a new task without task-specific parameter training and can expose their predictive capabilities through a natural language interface. Thus, this interaction paradigm can mitigate the technical barrier for non-specialist users, who would not be required to configure, train, and execute a dedicated ML pipeline. In the context of postprandial glycemic-event prediction, however, accessibility also depends on how physiological information can be communicated to the model. If clinically relevant descriptors can be expressed in natural language without a substantial loss in predictive performance, LLM-based systems could support the development of more intuitive user tools. Moreover, LLM-

This work has been submitted to a journal for peer review.

based inference also offers practical properties that are not captured by predictive performance alone. A general purpose LLM can address the task without patient-specific parameter training, potentially reducing the computational and technical effort required to train and maintain a dedicated predictive model. Unlike conventional ML algorithms, however, general purpose LLMs are not explicitly designed to process numerical physiological time series such as Continuous Glucose Monitoring (CGM) signals. Consequently, before they can be employed for glucose prediction, physiological observations must first be transformed into a textual representation that can be interpreted through natural language processing.

This transformation is not merely an implementation detail. The effectiveness of prompt-based processing depends on two complementary factors. The first concerns how physiological observations are represented before being presented to the LLM. For example, the original CGM sequence may be provided directly, summarized through clinically meaningful descriptors, or verbalized as natural language statements. The second concerns which physiological and clinical information is made available to the model. Besides the glucose measurements themselves, additional descriptors or contextual variables related to insulin administration, carbohydrate intake, and physical activity may also be incorporated. These two dimensions jointly determine the evidence available to the LLM and can substantially influence its prediction capabilities.

Although several recent studies have explored the use of LLMs for glucose prediction in T1DM and Type 2 Diabetes Mellitus (T2DM), existing approaches generally follow one of two directions. The first adapts pretrained LLM to time series forecasting through task-specific optimization [14, 15, 16, 6]. The second directly queries LLMs through proper prompts [17, 18] and evaluates their predictions against conventional supervised learning approaches. While both directions have demonstrated encouraging results, they provide only limited understanding of a more fundamental question: how should physiological information be represented before being presented to a language model, and how much physiological information is actually required to support reliable clinical prediction?

This work addresses these issues from a different perspective. Rather than proposing a new prediction architecture or further adapting an existing LLM, this work provides an empirical evaluation of how physiological information and its different representations can affect prompt-based processing. To this aim, we exploit the multimodal nature of the OhioT1DM dataset [19], which provides CGM measurements together with insulin therapy data, meal and carbohydrate information, self-reported behavioral and contextual events, and wearable-derived physiological signals. In the present study, a selected subset of these modalities is used to define alternative information settings, ranging from CGM-derived information to configurations augmented with additional clinical and behavioral variables.

To provide a comprehensive assessment, prompt-based inference is evaluated together with two complementary prediction paradigms. The first consists of conventional supervised

ML models trained specifically for postprandial glycemic-event prediction. The second is represented by Gluco-LLM [14], a language model explicitly adapted to physiological T1DM time series forecasting through task-specific architectural modifications. Comparing these three paradigms allows us to assess the potential of prompt-based processing and whether task-specific adaptation remains necessary for accurate glucose prediction.

The experimental evaluation is organized around three complementary research questions:

  • RQ1. Can current general purpose LLMs provide predictive performance comparable to conventional supervised learning models for postprandial glycemic-event prediction?

  • RQ2. How do the representation of physiological information and the type of available physiological information in LLMs influence the capabilities of current general purpose LLMs?

  • RQ3. Can a non-adapted general purpose LLM achieve predictive performance comparable to an LLM explicitly adapted for physiological time series forecasting, such as Gluco-LLM?

To address RQ1, we evaluate general purpose LLMs with respect to conventional supervised learning, treating these approaches as alternative prediction paradigms rather than simply performance baselines. To address RQ2, we analyze three alternative representation strategies, namely Raw, Structured, and Narrative. They represent three different and complementary ways to build the LLM input (prompt) from raw physiological data. Raw preserves the original physiological data via textual serialization, while Structured and Narrative represent derived physiological descriptors in terms of key-value pairs and natural language, respectively. The latter two representations are provided in two different modalities corresponding to different sets of physiological information, namely CGMderivedCGM_{derived} and CGMcontextCGM_{context}: the former contains descriptors derived from the historical CGM signal, whereas the latter additionally incorporates selected contextual variables related to insulin administration, carbohydrate intake, and physical activity (see Sec. 3 for further details). Finally, to address RQ3 we investigate whether prompt-based processing with general purpose LLMs can approach the predictive capability of a language model specifically adapted to physiological time series forecasting, thereby quantifying the benefits provided by task-specific architectural adaptation.

Our results show that the relative effectiveness of the considered approaches depends on the prediction task. Conventional supervised models achieve the strongest performance for postprandial hyperglycemia prediction, whereas general purpose LLMs are particularly competitive for hypoglycemia prediction. We further observe that LLM performance is sensitive to how physiological information is represented, with no representation proving uniformly optimal across models, tasks, and prompting conditions. When performance is summarized by selecting the best observed result across LLM families, Structured inputs are most frequently associated with the strongest configurations. However, within matched model configurations, Raw inputs become more competitive under few-shot inference, where a small number of labeled examples are provided in the prompt as in-context demonstrations without updating the model parameters [20], while Narrative representations remain preferable in selected settings. Finally, Gluco-LLM generally outperforms prompt-based general purpose LLMs in the regression experiments, although general purpose prompt-based inference remains competitive in selected conditions.

References (19)