Short-Term Continuous Glucose Forecasting with Large-Language-Model-Derived Nutrient Estimates from Real-World Chinese Dietary Records.
Leyao Ma, Jie Hao, Lin Yang, Xiaowei Xu, Jiao Li
Institute of Medical Information, Chinese Academy of Medical Sciences & Peking Union Medical College, Beijing, China.
Key points
From the paper's conclusion- Conclusion: These findings show that LLM-based nutrient estimation provides a practical and physiologically interpretable way to convert free-text dietary records into structured meal-related inputs for glucose forecasting.
Abstract
Background: Accurate short-term glucose forecasting is important for diabetes self-management, yet dietary information remains difficult to quantify and integrate into forecasting models in free-living settings, especially for complex Chinese meals. Methods: We investigated whether large language models (LLMs) can convert free-text Chinese dietary records into structured nutritional features for short-term continuous glucose forecasting. Five Chinese-capable LLMs were evaluated as nutrient estimators, and the resulting nutritional features were integrated with continuous glucose monitoring histories in a seasonal-patch transformer for glucose forecasting. Performance was assessed in 2 real-world cohorts (ShanghaiT1DM and ShanghaiT2DM) for both full-period and postprandial glucose forecasting. Results: LLM-derived nutrient estimates significantly outperformed semantic embeddings as dietary representations for glucose forecasting (P < 0.001). In the primary comparison setting, the best-performing LLM-based model achieved a postprandial 3-h root mean square error (RMSE) of 34.668 mg/dl, reducing the error by 1.967 mg/dl compared to non-LLM settings. In the full-period setting, the optimal LLM-based model achieved an RMSE of 27.035 mg/dl, reducing the error by 0.42 mg/dl relative to non-LLM settings. Across both forecasting tasks, direct nutrient estimation by DeepSeek-v3.1 achieved the best average RMSE. Forecasting gains were positively associated with nutrient-estimation quality, particularly for carbohydrate, dietary fiber, and fat. Architecture ablations further showed that patch-based encoding was the most influential component, with additional contributions from temporal decomposition and side branch design. Conclusion: These findings show that LLM-based nutrient estimation provides a practical and physiologically interpretable way to convert free-text dietary records into structured meal-related inputs for glucose forecasting.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From meal text to carbohydrate to postprandial glucose rise: QLoRA fine-tuning of the Qwen3-4B language model and gradient-boosting prediction in type 2 diabetesmedRxiv · 2026
- Forecasting glucose from CGM and sparse meal logs with a residual-gated multimodal transformermedRxiv · 2026
- GlucoAgent: Personalized Glucose Forecasting from Multimodal Personal ContextarXiv · 2026
- Image-Based Dietary Assessment Using Multimodal Large Language Models: Performance, Limitations, and Clinical Applicability in Diabetes.medRxiv : the preprint server for health sciences · 2026
- Evaluating AI‐Generated Meal Plans for Simulated Diabetes Profiles: A Guideline‐Based Comparison of Three Language ModelsJournal of Evaluation in Clinical Practice · 2025
- GlyRAG: Context-Aware Retrieval-Augmented Framework for Blood Glucose Forecasting.IEEE journal of biomedical and health informatics · 2026