PhysioSeq2Seq: A Hybrid Physiological Digital Twin and Sequence-to-Sequence LSTM for Long-Horizon Glucose Forecasting in Type 1 Diabetes
Phat Tran, Neville Mehta, Clara Mosquera-Lopez, Robert H. Dodier, Lizhong Chen, Peter G. Jacobs · 2026
Read PhysioSeq2Seq: A Hybrid Physiological Digital Twin and Sequence-to-Sequence LSTM for Long-Horizon Glucose Forecasting in Type 1 Diabetes by Phat Tran, Neville Mehta, Clara Mosquera-Lopez, Robert H. Dodier, Lizhong Chen, Peter G. Jacobs (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-16860.txt.
Introduction
Tran and colleagues propose PhysioSeq2Seq, a hybrid digital twin and Seq2Seq LSTM for long-horizon glucose forecasting in type 1 diabetes. Recursive LSTMs show negative bias at long horizons from compounding, while population ODE models fail across individuals. For each glucose segment, twin matching searches 300 digital twins for the best fit from 3 hours of monitoring history. The matched twin's 10 ODE variables feed both encoder and decoder. Simultaneous 48-step prediction removes compounding. At 240 minutes, mean absolute error is 39.28 mg/dL, beating recursive LSTM bias by 13.89 and ODE twin error by 28.62.
Catalog record
| CREATOR | Phat Tran, Neville Mehta, Clara Mosquera-Lopez, Robert H. Dodier, Lizhong Chen, Peter G. Jacobs |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 45321 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.16860
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
PhysioSeq2Seq: A Hybrid Physiological Digital Twin and Sequence-to-Sequence LSTM for Long-Horizon Glucose Forecasting in Type 1 Diabetes Phat Tran, Neville Mehta, Clara Mosquera-Lopez, Robert H. Dodier, Lizhong Chen, Peter G. Jacobs Abstract Accurate long-horizon glucose forecasting is critical for automated insulin delivery systems, which help people with type 1 diabetes (T1D) manage their glucose and avoid dangerous hypoglycemia. However, standard recursive long short-term memory (LSTM) networks suffer from systematic negative bias at longer horizons due to error compounding, while purely mechanistic ordinary differential equation (ODE) models fail to generalize across individuals when parameterized at the population level. We propose PhysioSeq2Seq, a hybrid architecture that combines patient-specific physiological modeling with a sequence-to-sequence (Seq2Seq) LSTM. For each glucose segment, twin matching searches a population of 300 parameterized digital twins to identify the best-fitting physiological match from a 3-hour continuous glucose monitoring (CGM) history. The 10 internal ODE state variables of the matched twin are injected as exogenous covariates into both the encoder and decoder of the Seq2Seq LSTM. This simultaneous 48-step prediction strategy eliminates recursive error compounding, while the ODE features provide a physics-grounded constraint that bounds long-horizon drift within physiologically plausible ranges. PhysioSeq2Seq was trained on CGM and insulin data from 348 participants in the Type 1 Diabetes Exercise Initiative (T1DEXI) dataset and evaluated on 74 held-out participants. At the 240-minute horizon, PhysioSeq2Seq achieves a MAE of 39.28 mg/dL and a ME of − - 10.62 mg/dL, reducing bias by 13.89 mg/dL over the recursive LSTM and MAE by 28.62 mg/dL over the ODE-based digital twin. These results show that eliminating architectural feedback and injecting patient-matched physiological states is an effective and clinically meaningful strategy for long-horizon glucose forecasting in T1D. 1 Introduction Type 1 diabetes (T1D) is a chronic autoimmune condition affecting approximately 9.5 million people worldwide ( 21 ) , in which autoimmune destruction of pancreatic \beta -cells results in absolute insulin deficiency, requiring patients to self-manage their glucose or use automated insulin delivery (AID) systems to manage blood glucose concentrations continuously ( 1 ) . The emergence of continuous glucose monitors (CGMs) and AID systems has transformed T1D management, but their safety and efficacy hinge critically on the ability to forecast blood glucose trajectories over clinically meaningful multi-hour horizons ( 6 ; 14 ) . Such prediction windows enable AID systems to preemptively modulate basal insulin delivery, issue hypoglycemia alarms, and assist patients in meal-time dosing decisions. Despite substantial progress in applying deep learning to glucose forecasting ( 9 ; 15 ; 18 ) , spanning recurrent, convolutional, and transformer-based architectures, two fundamental problems persist at long horizons. First, recursive autoregression compounds errors: a long short-term memory (LSTM) neural network that predicts \hat{g}_{t+1} and feeds it back as input to predict \hat{g}_{t+2} accumulates distributional shift over 48 5-minute steps (240 minutes), manifesting as a systematic negative bias (under-prediction) that increases monotonically across the forecasting horizon. Our experiments confirm that a recursive LSTM reaches a ME of - 24.51 mg/dL at 240 minutes. Second, observational incompleteness: CGM signals alone do not reveal the current physiological state of a patient. Plasma insulin concentrations that have time-varying kinetics and dynamics ( 2 ) , and time-varying carbohydrate absorption in the gut ( 8 ) are challenging for a neural network to model, yet they impact glucose dynamics for many hours in the future ( 16 ) . Mechanistic ordinary differential equation (ODE) models, such as the Hovorka system ( 10 ) , provide an effective way to model glucose dynamics using our understanding of how insulin and carbohydrates impact the dynamics. However, when parameterized with fixed or population-level parameters, these models are too rigid to capture time-varying (intra-patient) dynamics observed in real-world CGM data ( 7 ) , and typically require patient-specific parameter estimation to address inter-patient variability, leading to degraded long-horizon forecasts. This work does not propose a fundamentally new deep learning backbone to compete with recent high-capacity models such as transformers but instead isolates and systematically reduces two specific failure modes within standard recurrent architectures. To address the shortcomings of recursive autoregressive models and fixed-parameter ODE models, we propose PhysioSeq2Seq, a principled hybrid architecture whose core insight is that a patient-matched ODE digital twin need not produce the final prediction, but can instead supply internal physiological states as exogenous covariates to a neural sequence model. Our proposed framework introduces three key novelties. First, rather than relying on a single fixed-parameter ODE or requiring expensive patient-specific calibration, we propose twin matching: a real-time, segment-level search over a pre-computed population (300 parameterizations ( 10 ) fitted to 307,474 CGM segments from 497 people with T1D in the T1DEXI study ( 23 ) ), enabling patient-specific physiological adaptation without retraining. Second, unlike prior hybrid models that use ODE outputs as predictions or residual targets, we inject all 10 internal ODE state variables, including remote insulin action and gut absorption states invisible to a data-only model, as exogenous covariates into both the encoder and decoder of a Seq2Seq LSTM, grounding the neural model in physiologically feasible dynamics across the full 7-hour window. Third, by adopting a simultaneous multi-step decoding strategy that produces all 48 future timesteps in a single forward pass, we structurally eliminate recursive error accumulation, the dominant source of long-horizon bias in autoregressive approaches, without requiring any architectural change to the underlying LSTM. Evaluated on 74 held-out participants from the T1DEXI dataset, PhysioSeq2Seq achieves a MAE of 39.28 mg/dL and ME of - 10.62 mg/dL at the 240-minute horizon, reducing 240-minute bias by 11.99 mg/dL over the recursive LSTM and outperforming all baselines across every forecast horizon. While this work focuses on T1D glucose forecasting, the framework of matching a population of mechanistic ODE models and injecting their internal states into a Seq2Seq architecture explores a broader class of hybrid methods. We hypothesize that this pattern may extend to domains where a mechanistic ODE model exists but population-level parameters fail to capture individual variability. Future work will show how the method generalizes across multiple applications. 2 Related Work 2.1 Deep Learning for Glucose Forecasting Recurrent architectures, particularly LSTMs, have become the dominant data-driven approach to short-term glucose forecasting. 9 showed that recursive autoregressive approaches suffer from compounding prediction error and that encoder–decoder architectures substantially reduce this accumulation across the full prediction horizon. 17 found that LSTMs with meal and insulin features outperform SVR and expert baselines, though attention-based gains on synthetic data do not consistently transfer to free-living settings. 15 proposed convolutional recurrent neural networks that combine local feature extraction with temporal sequence modeling, achieving leading accuracy on both simulated and real patient data at 30- and 60-minute horizons. 25 provided a systematic benchmark of machine learning algorithms against classical autoregressive models for T1D glucose prediction, finding that model performance varies substantially across patients and horizons, with no single architecture consistently dominating, and that temporal convolutional networks show greater robustness to patient-level glucose variability than recurrent approaches. 18 trained and evaluated LSTM models on a large T1D dataset of 250 patients and showed that prediction accuracy degrades with patient glucose variability. More recently, transformer-based architectures have been applied to multi-horizon CGM prediction. 11 compared transformer variants for horizons up to 4 hours on T1D data, finding that patch-wise tokenization strategies outperform