A case study of glucose levels during sleep using fast function on scalar regression inference

Renat Sergazinov, Andrew Leroux, Erjia Cui, Ciprian M. Crainiceanu, R. Nisha Aurora, Naresh M. Punjabi, Irina GaynanovaarXiv 2022 · DOI

Abstract

Continuous glucose monitors (CGMs) are increasingly used to measure blood glucose levels and provide information about the treatment and management of diabetes. Our motivating study contains CGM data during sleep for 174 study participants with type II diabetes mellitus measured at a 5-minute frequency for an average of 10 nights. We aim to quantify the effects of diabetes medications and sleep apnea severity on glucose levels. Statistically, this is an inference question about the association between scalar covariates and functional responses. However, many characteristics of the data make analyses difficult, including (1) non-stationary within-day patterns; (2) substantial between-day heterogeneity, non-Gaussianity, and outliers; 3) large dimensionality due to the number of study participants, sleep periods, and time points. We evaluate and compare two methods: fast univariate inference (FUI) and functional additive mixed models (FAMM). We introduce a new approach for calculating p-values for testing a global null effect of covariates using FUI, and provide practical guidelines for speeding up FAMM computations, making it feasible for our data. While FUI and FAMM are philosophically different, they lead to similar point estimators in our study. In contrast to FAMM, FUI is fast, accounts for within-day correlations, and enables the construction of joint confidence intervals. Our analyses reveal that: (1) biguanide medication and sleep apnea severity significantly affect glucose trajectories during sleep, and (2) the estimated effects are time-invariant.

Introduction

Continuous Glucose Monitors (CGMs) have transformed diabetes care by providing high-frequency data on blood sugar levels. Despite this wealth of information, clinical practice often remains anchored to HbA1c, a single metric representing a three-month average. While useful, HbA1c fails to capture the dynamic fluctuations of glucose, particularly during sleep. This study, conducted by researchers from Texas A&M and Johns Hopkins, addresses the statistical challenges of analyzing CGM time-series data to understand how factors like sleep apnea and medication influence nocturnal glucose trajectories.

Data Complexity and Heterogeneity

The study utilized data from the HYPNOS trial, involving 174 adults with Type II diabetes and Obstructive Sleep Apnea (OSA). With glucose recorded every five minutes over an average of ten nights per participant, the resulting dataset is massive and complex.

Analyzing this data presents three primary hurdles:

  1. High Dimensionality: The combination of 174 participants and 1,812 individual sleep periods creates a large-scale computational problem.
  2. Non-Stationarity: Glucose levels do not follow a simple, linear trend throughout the night.
  3. Heterogeneity: There is significant variation both between different individuals and between different nights for the same individual.
Glucose trajectories for three representative subjects across multiple nights, illustrating the high degree of heterogeneity and non-stationarity in CGM data.

As shown in the figure above, the raw trajectories demonstrate that glucose patterns are highly individualistic and variable, making standard aggregate metrics insufficient for capturing the full clinical picture.

Methodology: FUI vs. FAMM

The researchers compared two statistical frameworks for function-on-scalar regression:

  • Functional Additive Mixed Models (FAMM): Often considered the "gold standard," FAMM uses joint modeling and splines to smooth data. However, it is computationally intensive and frequently fails on large datasets.
  • Fast Univariate Inference (FUI): This more agile approach fits separate models at each time point and then uses a non-parametric bootstrap to reconstruct a smooth curve.

A key innovation of this paper is the development of a method to derive p-values from FUI’s joint confidence bands. This allows for a single measure of statistical significance for an entire seven-hour trajectory, rather than isolated time points.

Key Results and Clinical Insights

The study found that FUI is not only more robust but also exponentially faster than traditional methods. While a standard FAMM approach could take over 12 hours to run, FUI completed the analysis in under two seconds.

Clinically, the analysis revealed:

  • Medication Impact: Biguanide (Metformin) significantly affects glucose trajectories during sleep.
  • Sleep Apnea Severity: Patients with moderate-to-severe OSA exhibited significantly higher glucose levels throughout the night compared to those with mild OSA.
  • Time-Invariance: Interestingly, the effects of these factors were relatively constant across the seven-hour sleep window; the "shape" of the impact did not fluctuate significantly from hour to hour.

Conclusion

By demonstrating the efficacy of Fast Univariate Inference, this study provides a roadmap for extracting meaningful insights from high-frequency medical sensor data. While subject-specific "precision medicine" remains a future goal due to high individual noise, FUI offers a powerful tool for population-level inference, accounting for complex correlations that simpler models ignore.

Summary updated

BibTeX
@misc{sergazinov2022case,
  author = {Renat Sergazinov and Andrew Leroux and Erjia Cui and Ciprian M. Crainiceanu and R. Nisha Aurora and Naresh M. Punjabi and Irina Gaynanova},
  title = {{A case study of glucose levels during sleep using fast function on scalar regression inference}},
  year = {2022},
  eprint = {2205.08439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.08439},
}
Figure