TL;DR
For years, benchmarks have declared simple linear interpolation the winner over complex deep learning models for filling in missing continuous glucose monitoring (CGM) data. This paper shows that this consensus is largely an artifact of Stationarity Bias: linear interpolation dominates during flat, stable glucose stretches, while learned models excel during meals and low-glucose events. Simply changing the ratio of stable to transient gaps in a benchmark can completely reverse the leaderboard—even when every single model prediction stays fixed.
What Problem Does This Paper Address?
Continuous glucose monitors (CGMs) sample interstitial glucose every five minutes, powering both automated insulin delivery systems and large-scale machine learning models. However, real-world CGM traces are full of gaps caused by sensor warm-ups, battery failures, and lost connections.
Because downstream models and retrospective controller audits require complete time series, gaps must be imputed first. Surprisingly, prior benchmarks have consistently found that simple linear interpolation (drawing a straight line between the last known point before a gap and the first known point after it) beats expensive deep learning imputers. The authors ask why: is linear interpolation genuinely better, or are standard benchmarks dominated by quiet, flat stretches of glucose that mask what happens during physiologically critical—and nonlinear—events like meals and hypoglycemia?
Methods
The authors evaluate four non-learned baselines (Mean, Median, Last Observation Carried Forward [LOCF], and Linear Interpolation [Lerp]) against seven learned models spanning five architectures: Transformer and SAITS (attention), FreTS (frequency-domain), TimeMixer and SCINet (multi-scale), TEFN (evidence theory), and ModernTCN (convolutional).
While the baselines only see the CGM trace, the learned models also receive exogenous inputs (meal records, basal insulin, bolus insulin) and time-of-day encodings over 24-hour windows (288 five-minute steps). During training, masks are generated using a realistic stochastic missingness model derived from real clinical trials rather than uniform random masking.
Crucially, instead of pooling all gaps together, the authors introduce three stratified evaluation protocols (illustrated below):
- Protocol A (Stable euglycemia): Masks of 10, 30, or 60 minutes during flat, in-range glucose (70–140 mg/dL) with no recent meals or boluses.
- Protocol B (Postprandial excursions): Masks of 1 to 6 hours centered on meal-induced glucose peaks.
- Protocol C (Hypoglycemic Temporal Control Reset [TCR]): In-silico masks of 30, 60, or 120 minutes centered on low-glucose nadirs (< 70 mg/dL) during simulated pump adjustments.
Datasets
Models are trained and evaluated on three real-world type 1 diabetes cohorts—PEDAP, T1DEXI, and REPLACE-BG—using strict patient-disjoint 70/10/20% train/validation/test splits. For Protocol C, models are trained on UVA/Padova simulation data and evaluated on a separate UVA/Padova TCR simulation dataset. All datasets are standardized to a 5-minute grid.
Key Insights and Ideas
- Regime-dependent performance flips: No single method wins everywhere. Linear interpolation is unbeatable when glucose is flat and linear, but it physically cannot reconstruct an unobserved peak or valley—it just draws a straight chord across the gap.
- Shape-aware metrics matter: Pointwise error (like RMSE) understates how badly linear interpolation fails during excursions. Metrics that capture curve shape and clinical impact—such as Dynamic Time Warping per point (DTW/pt), net Area Under the Curve error ($|\Delta\text{net-AUC}|$), and nadir error ($|\Delta\text{nadir}|$)—reveal massive differences between straight-line chords and learned reconstructions.
- Stationarity Bias explains the old consensus: Because an aggregate benchmark score is just a weighted average of stationary and transient errors, varying the stationary gap share ($\omega_{\text{stat}}$) mathematically forces the ranking to flip at an interior crossover point ($\omega_{\text{stat}}^*$). Benchmarks heavy on short, quiet gaps will crown linear interpolation; benchmarks focused on excursions will crown learned models.
Key Results
- Stable Euglycemia (Protocol A): Lerp wins every dataset and metric, achieving RMSEs of 2.66, 2.44, and 3.16 mg/dL on REPLACE-BG, T1DEXI, and PEDAP. The best learned models carry 1.8 to 2.0× Lerp's RMSE.
- Postprandial Excursions (Protocol B): SAITS, SCINet, and Transformer beat Lerp across all cohorts and metrics. The strongest learned models cut net-AUC error by 16–52% (e.g., dropping from 159.13 to 76.11 mg/dL·h on PEDAP) and DTW/pt by 20–51%.
- Simulated Hypoglycemia (Protocol C): Transformer and SAITS beat every non-learned baseline at all gap lengths, and the margin widens with gap duration. Transformer keeps nadir error around 10 mg/dL (10.14–10.76 mg/dL) from 30 to 120 minutes, while Lerp's nadir error doubles from 16.56 to 33.99 mg/dL. At 120 minutes, Lerp completely misses severe hypoglycemia (reconstructing a nadir $\ge 70$ mg/dL when true nadir $< 54$ mg/dL) 30.6% of the time, compared to 9.1% for Transformer.
- Ranking Reversal: Varying $\omega_{\text{stat}}$ reverses MARD rankings between Lerp and SAITS/SCINet/Transformer at stationary shares of 22.6% to 84.2%, depending on the cohort and model.
Limitations and Future Work
Protocol C relies entirely on simulated data, so its hypoglycemia findings still need confirmation in clinical cohorts. The protocols also use fixed thresholds rather than automated episode detection, meaning the exact stationary-to-transient ratio ($\omega_{\text{stat}}$) of natural missingness in real-world pipelines remains an open question. Finally, all evaluations were limited to type 1 diabetes cohorts on 5-minute grids with masks up to 6 hours; longer outages, other populations, and higher-frequency sensors remain untested. Going forward, the authors recommend that CGM benchmarks report their gap mixture alongside regime-specific performance.
Summary updated