Personalized glucose forecasting for people with type 1 diabetes using large language models

dc.affiliation.dptoDepartment of Signal Theory and Communications, Telematics and Computing Systems
dc.contributor.authorLara-Abelenda, Francisco J.
dc.contributor.authorChushig-Muzo, David
dc.contributor.authorPeiro-Corbacho, Pablo
dc.contributor.authorWägner, Ana M.
dc.contributor.authorGranja, Conceição
dc.contributor.authorSoguero Ruiz, Cristina
dc.contributor.funderEuropean Project WARIFA (Watching the risk factors: Artificial intelligence and the prevention of chronic conditions) under Grant Agreement 101017385
dc.date.accessioned2026-02-02T12:05:44Z
dc.date.issued2025-06-01
dc.descriptionType 1 Diabetes (T1D) is an autoimmune disease that requires exogenous insulin via Multiple Daily Injections (MDIs) or subcutaneous pumps to maintain targeted glucose levels. Despite the advances in Continuous Glucose Monitoring (CGM), controlling glucose levels remains challenging. Large Language Models (LLMs) have produced impressive results in text processing, but their performance with other data modalities remains unexplored. The aim of this study is three-fold. First, to evaluate the effectiveness of LLM-based models for glucose forecasting. Second, to compare the performance of different models for predicting glucose in T1D individuals treated with MDIs and pumps. Lastly, to create a personalized approach based on patient-specific training and adaptive model selection. CGM data from the T1DEXI study were used for forecasting glucose levels. Different predictive models were evaluated using the mean absolute error (MAE) and the root mean squared error and considering the Prediction Horizons (PHs) of 60, 90, and 120 min. For short-term PHs (60 and 90 min), the personalized approach achieved the best results, with an average MAE of 15.7 and 20.2 for MDIs, and a MAE of 15.2 and 17.2 for pumps. For long-term PH (120 min), TIDE obtained an MAE of 19.8 for MDIs, whereas Patch-TST obtained a MAE of 18.5. LLM-based models provided similar MAE values to state-of-the-art models but presented a reduced variability. The proposed personalized approach obtained the best results for short-term periods. Our work contributes to developing personalized glucose prediction models for enhancing glycemic control, reducing diabetes-related complications.
dc.description.abstractType 1 Diabetes (T1D) is an autoimmune disease that requires exogenous insulin via Multiple Daily Injections (MDIs) or subcutaneous pumps to maintain targeted glucose levels. Despite the advances in Continuous Glucose Monitoring (CGM), controlling glucose levels remains challenging. Large Language Models (LLMs) have produced impressive results in text processing, but their performance with other data modalities remains unexplored. The aim of this study is three-fold. First, to evaluate the effectiveness of LLM-based models for glucose forecasting. Second, to compare the performance of different models for predicting glucose in T1D individuals treated with MDIs and pumps. Lastly, to create a personalized approach based on patient-specific training and adaptive model selection. CGM data from the T1DEXI study were used for forecasting glucose levels. Different predictive models were evaluated using the mean absolute error (MAE) and the root mean squared error and considering the Prediction Horizons (PHs) of 60, 90, and 120 min. For short-term PHs (60 and 90 min), the personalized approach achieved the best results, with an average MAE of 15.7 and 20.2 for MDIs, and a MAE of 15.2 and 17.2 for pumps. For long-term PH (120 min), TIDE obtained an MAE of 19.8 for MDIs, whereas Patch-TST obtained a MAE of 18.5. LLM-based models provided similar MAE values to state-of-the-art models but presented a reduced variability. The proposed personalized approach obtained the best results for short-term periods. Our work contributes to developing personalized glucose prediction models for enhancing glycemic control, reducing diabetes-related complications.
dc.description.sponsorshipEste trabajo fue financiado por el Proyecto Europeo WARIFA (Watching the risk factors: Artificial intelligence and the prevention of chronic conditions) bajo el Grant Agreement 101017385; y por el proyecto nacional con identificador AAVis-BMR PID2019-107768RA-I00/AEI/10.13039/501100011033.
dc.identifier.citationLara-Abelenda, F. J., Chushig-Muzo, D., Peiro-Corbacho, P., Wägner, A. M., Granja, C., & Soguero-Ruiz, C. (2025). Personalized glucose forecasting for people with type 1 diabetes using large language models. Computer Methods and Programs in Biomedicine, 265, 108737.
dc.identifier.doi10.1016/j.cmpb.2025.108737
dc.identifier.publicationfirstpage108737
dc.identifier.publicationtitleComputer Methods and Programs in Biomedicine
dc.identifier.publicationvolume265
dc.identifier.urihttps://hdl.handle.net/10115/158437
dc.language.isoen
dc.publisherElsevier
dc.rightsAttribution-NonCommercial 4.0 Internationalen
dc.rights.accessRightsinfo:eu-repo/semantics/openAccess
dc.rights.urihttp://creativecommons.org/licenses/by-nc/4.0/
dc.subjectlarge language models
dc.subjectglucose forecasting
dc.subjecttransformers
dc.subjectGPT
dc.subjecttime series forecasting
dc.subjectcontinuous glucose monitor
dc.subjecttype 1 diabetes
dc.titlePersonalized glucose forecasting for people with type 1 diabetes using large language models
dc.typeArticle
dc.type.hasVersionhttp://purl.org/coar/version/c_970fb48d4fbd8a85

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Name:
Personalized glucose forecasting for people with type 1 diabetes.pdf
Size:
2.37 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Name:
license.txt
Size:
2.96 KB
Format:
Item-specific license agreed upon to submission
Description: