Summary
Wearable biosensors and smartphone applications can measure physiological variables over multiple days in free-living conditions. We measure food and drink ingestion, glucose dynamics, physical activity, heart rate (HR), and heart rate variability (HRV) in 25 healthy participants over 14 days. We develop a Bayesian inference framework to learn personal parameters that quantify circadian rhythms and physiological responses to external stressors. Modeling the effects of ingestion events on glucose levels reveals that slower glucose decay kinetics elicit larger postprandial glucose spikes, and we uncover a circadian baseline rhythm for glucose with high amplitudes in some individuals. Physical activity and circadian rhythms explain as much as 40%–65% of the HR variance, whereas the variance explained for HRV is more heterogeneous across individuals. A more complex model incorporating activity, HR, and HRV explains up to 15% of additional glucose variability, highlighting the relevance of integrating multiple biosensors to better predict glucose dynamics.
Keywords: wearables, biosensors, continuous glucose monitor (CGM), circadian rhythms, Bayesian inference, Kalman filter
Graphical abstract
Highlights
-
•
Simultaneous monitoring of food intake, glucose levels, and physical and heart activity
-
•
Glucose dynamics modeled with meal responses plus a 24-h rhythmic baseline
-
•
Model parameters learned on a personalized level with exact Bayesian inference
-
•
Addition of physical and heart activity helps better explain glucose variability
Motivation
Wearable biosensors measure physiological variables with high temporal resolution over multiple days and are increasingly employed in clinical settings, such as continuous glucose monitoring in diabetes care. Such datasets bring new opportunities and challenges, and patients, clinicians, and researchers are today faced with a common challenge: how to best summarize and capture relevant information from multimodal wearable time series? Here, we aim to provide insights into individual glucose dynamics and their relationships with food and drink ingestion, time of day, and coupling with other physiological states such as physical and heart activity. To this end, we generate and analyze multiple wearable-device data through the lens of a parsimonious mathematical model with interpretable components and parameters. A key innovation of our method is that the models are learned on a personalized level for each participant within a Bayesian framework, which enables the characterization of interindividual heterogeneity in features such as the glucose response time following meals or underlying circadian baseline rhythm. This framework may prove useful in populations at risk for cardiometabolic diseases.
Phillips et al. simultaneously measure consumed food and drinks, continuous glucose levels, and physical and heart activity and use dynamical modeling to integrate these data streams. The method uses Bayesian inference to learn personalized parameters related to the dynamical responses to external stressors and 24-h rhythms of the wearable signals.
Introduction
Wearable biosensors and smartphone applications are increasingly used to measure multiple physiological variables, including glucose levels, food consumption, and physical and heart activity. In contrast to traditional lab measurements taken at a single time point, the high-resolution wearable time series data record dynamic changes of physiological variables in response to external perturbations and as a function of the time of day. While these wearable data have the potential to provide a dynamic view of health states,1 a major challenge in both clinical and research settings is how to extract physiologically relevant information from wearable time series data, and, in particular, when multiple data modalities are combined.
Glucose regulation is a prime example of a dynamic and complex physiological system, as the body is confronted with irregular inputs (i.e., food intake, especially of carbohydrates) and controlled glucose uptake by organs (e.g., muscles, liver). As such, glycemic regulation employs a range of homeostatic mechanisms, including the glucose-insulin negative feedback loop, whereby insulin secretion by the pancreas is tightly regulated to avoid both low (hypoglycemic) and high (hyperglycemic) levels of glucose.2,3 Understanding glucose regulation is important for human health, as long-term chronic hyperglycemia in diabetes can lead to micro- and macrovascular complications,4 and glucose levels show a non-linear association with vascular diseases even in populations without diabetes.5,6,7
As glucose homeostasis is inherently dynamic and glucose levels fluctuate throughout the day, continuous glucose monitors (CGMs) have gained popularity due to their high temporal resolution. CGMs measure glucose in interstitial fluid continuously for up to 10–14 days with satisfactory clinical accuracy compared with reference capillary blood glucose values.8,9 Standardized CGM-derived metrics such as the coefficient of variation (CV) and the time in range (the fraction of time spent within the desired range of 3.9–10.0 mmol/L, or 70–180 mg/dL) have been adopted in clinical practice to assess glycemic control in diabetes with insulin treatment.10,11,12,13 At a more fine-grained level, CGMs have been combined with smartphone records of ingestion events to predict postprandial (postmeal) glycemic responses (PPGRs), where the PPGR is often defined as the area under the glucose curve for the 2 h following a recorded ingestion event.14,15,16
Nonetheless, neither the standardized CGM metrics nor the PPGR approach provides a complete picture of the entire glucose time series and its fluctuations over the 24-h clock. Physiological processes in humans, including glucose metabolism, follow circadian rhythms,17,18,19,20 and responses to oral glucose tests are more pronounced in the evening than in the morning.21 A pre-breakfast rise in glucose levels, termed the “dawn phenomenon,” has been observed since the early 1980s and is often linked with a concomitant early morning rise of cortisol,22,23 but the amplitude and phase of circadian rhythms in baseline glucose levels have thus far not been well described at an individual level. Identifying the relative contribution of the circadian rhythms to the glucose time series would be particularly helpful for the interpretation of 24-h CGM reports, which are often discussed with patients to identify patterns of low and high glucose values and to guide treatment.24
In addition to glucose, other physiological responses are accessible with biosensors, such as heart rate (HR; beats per minute) and heart rate variability (HRV), where HRV is typically quantified with metrics such as the root-mean-square of successive differences (RMSSD) between heart beats.25 Epidemiological data have linked low HRV with high glucose levels,26,27 and a reduction in HRV has been shown to predict the development of autonomic neuropathy before symptom onset among diabetic patients.28 The simultaneous measurement of HR and HRV can provide insights into the autonomic nervous system activity,29 as HR receives inputs from both the sympathetic nervous system (SNS; the “flight or fight'' response) and parasympathetic nervous system (PNS; the “rest and digest” response), while the HRV-derived RMSSD metric is dominated by the PNS via vagal nerve activity.30 Both HR and HRV are modulated by physical activity, which can now also be conveniently measured with a triaxial accelerometer. Furthermore, it is known that glucose levels are affected during exercise, which motivates attempts to connect physical activity from wearable device signals to continuous glucose data.31,32,33
Regarding the analysis of wearable data streams, a diverse range of glucose models have been proposed over the last decades,34,35,36 ranging from minimal models37 to more detailed simulators with dozens of parameters38 and neural networks.39,40 Recent efforts have also attempted to utilize additional multimodal wearable signals to either improve glucose forecasting or provide more accessible proxies for glucose without using CGMs.33,41,42,43 Many of these methods are specialized toward short-range forecasting, which is certainly useful in applications like the artificial pancreas.44 In a different context, researchers and clinicians need new wearable data analysis tools to perform statistical comparisons between individuals and quantify changes in glucose regulation across multiple time points and different disease states, but such approaches to extract personalized summary metrics from the global recordings remain comparatively unexplored.
In this study, we acquired multiple wearable biosensor data to monitor food and drink ingestion, glucose excursions, physical activity, HR, and HRV in individuals in free-living conditions. Our aim was to quantify how external perturbations (such as ingestion events and physical activity) and baseline circadian rhythms determine temporal glucose levels on a personalized level. To this end, we develop data-driven computational models to analyze data streams from multiple wearables with distinct model components that capture the interactions between physiological variables, 24-h rhythms, and random fluctuations. Individual-specific parameters are learned in a Bayesian framework providing parameter uncertainties and enabling statistical comparisons between participants. We subdivide the problem of analyzing the multiple signals by creating three successive mathematical models that include different subsets of variables. Our three-tiered modeling reveals the high degree of personalization across a wide range of metrics, even within a healthy population, from glucose decay kinetics, circadian rhythms in baseline glucose levels, and the dependence between HR and HRV. Future studies will be able to re-use the framework to describe personalized longitudinal changes over time in response to interventions and to cardiometabolic diseases.
Results
Measuring multivariable physiological time series in free-living conditions
To quantify the personalized dynamics of individuals in free-living conditions, we measured ingestion events, glucose levels, physical activity, HR, and HRV for 25 participants over a 2-week period. Participants (16 males, 9 females) were young (mean age 33.0 ± SD 11.0), had a normal weight (mean BMI 22.7 ± 2.8 kg/m2; one person with overweight and one person with obesity), and had a normal blood pressure (systolic 117.6 ± 11.4 mm Hg, diastolic 75.3 ± 7.9 mm Hg) (participant characteristics shown in Figure S1). Participant ID 14 was previously diagnosed with diabetes, but currently treated only with lifestyle measures (and not pharmacological treatment), and hypertension, treated with perindopril. Participants were asked to record all food and drink consumption and add a manual free text annotation of the content with the smartphone application myCircadianClock.45 Each ingestion event was automatically time stamped by the app. The adherence (defined as at least two meals separated by at least 5 h in a given day46) was above 83% for all participants (Table S1).
We measured glucose levels continuously using the Abbott FreeStyle Libre Pro CGM, which records interstitial glucose levels every 15 min over a 2-week period. As the device is blinded, participants were unable to access their glucose data during the study period, thus avoiding feedback on their eating behavior. Five participants wore two sensors (on different arms), with the aim of validating that parameters estimated from the model were consistent between the two sensors (noted ID A and B in the figures). Physical activity, HR, and HRV were measured for each participant over the 2-week study period using the CamNtech Actiheart version 5 device, and the physical and heart activity data were also blinded to participants during the study.
Multiple wearable time series data reveal complex dynamical responses as a function of external inputs and time of day
Before developing a detailed mathematical model, we performed initial data exploration to identify the key features that we wanted to capture in the model (overview of all data streams shown in Figures S2–S6). First, we superposed the recorded days of glucose data based on time of day and found marked individual-specific mean 24-h patterns, with the highest mean glucose levels occurring at different times of the day depending on the individual (Figure 1A; all participants shown in Figure S7). These unique 24-h trends could be caused by either food or drink ingestion (i.e., external perturbations) and/or an underlying circadian baseline trend in glucose. This motivated the inclusion of both ingestion events and circadian rhythms in the model of glucose dynamics as separate components.
Further exploratory analysis of the multiple wearable signals showed rich interactions between subsets of the five measured variables (i.e., ingestion events, glucose, activity, HR, and HRV). As expected, glucose levels often rose following ingestion events, and for some of the individuals, recorded meals seemed to lead to large, predictable peaks in glucose (Figure 1B, IDs 14 and 23), while others showed a more complex relationship, with small postprandial glucose spikes that were barely larger than the glucose fluctuations between meals (Figure 1B, ID 06). Based on these observations, and compared with CGM analysis methods that focus exclusively on PPGRs for 2–3 h,14,15,16 our goal is now to dynamically model the entire glucose time series over 2 weeks, including the fluctuating glucose levels occurring overnight or during longer intervals between ingestion events.
Visual inspection of the physical and heart activity data showed that spikes in physical activity typically coincided with an increased HR and HRV (as measured with RMSSD−1) (Figures 1C and 1D). By creating a joint dynamical model of the three signals (physical activity, HR, and HRV), we aimed to uncover the interindividual heterogeneity in the coupling between the multiple signals as well as the underlying circadian rhythms.
Finally, we observed spikes in glucose levels following physical activity for some individuals (Figures 1B–1D, ID 23), which could be caused by the release of glucose under the influence of adrenaline/epinephrine or glucagon. However, to establish more firmly whether physical and heart activity signals can explain glucose variation, we develop below a dynamical model to mathematically assess the extent to which the total glucose signal across the 2-week study period is predictable by the combined meal, physical, HR, and HRV data.
Slow glucose dynamics is associated with large postprandial glucose spikes
The overall data modeling strategy is shown in Figures 2A–2C, where we first focus on ingestion events, glucose, and circadian rhythms (model 1, Figure 2A), then the relationships between the physical and the heart activity signals (model 2, Figure 2B), before finally adding interactions from the physical activity and heart signals to the glucose levels (model 3, Figure 2C). Based on the visual exploration (Figure 1) and physiological knowledge, we first built a minimal dynamical model of glucose levels (model 1) that included the following four features: (1) the ability to produce a continuous postprandial glucose response following an ingestion event, (2) negative feedback (representing the regulating action of insulin, depicted as a feedback loop in Figure 2A), (3) a random component that captures the glucose fluctuations between ingestion events and overnight, and (4) a circadian baseline rhythm (discussed in the next section).
These features were modeled with a system of stochastic differential equations (SDEs) (see STAR Methods), where ingestion events act to perturb glucose to higher levels. We refer to the increase in glucose levels relative to the baseline level caused by meals as the “meal height” (Figure 2D). As meals can cause different glucose responses according to their content, we allow each meal with a unique text entry to have a separate meal height parameter and report the mean across all meals for each participant. After ingestion causes a glucose increase, glucose levels return to their steady-state values (reflecting homeostasis). The decay kinetics and precise shape of the response will depend on the parameters of the model (Figure 2D), which are learned for each participant. Specifically, this individual-specific response to a meal perturbation can be summarized with three parameters: a half-life reflecting the time taken for glucose to return to baseline levels, the mean increase in glucose levels caused by meal consumption (referred to as the mean meal height), and a damping coefficient specifying whether the response profile is akin to an overdamped (a rapid glucose increase followed by a monotonous slower decay, i.e., non-dipping) or an underdamped (leading to a slower initial increase followed by decay and overshoot, i.e., dipping) response. To account for noisy fluctuations in the data, the glucose dynamics is also subjected to random perturbations in the corresponding SDE, meaning that the glucose time series data can show noisy deviations from the idealized meal response.
For each participant, the entire glucose time series is probabilistically matched (using exact likelihood calculations) to the model using a Gaussian state space model (a.k.a. a Kalman filter), and we infer each of the model parameters using Markov chain Monte Carlo (MCMC) sampling within a Bayesian framework that yields uncertainty estimates for each parameter (STAR Methods and supplemental information).
We first verified model performance by assessing the correlation coefficient between the fitted meal response function and the data (Figure S8). The correlation coefficient generally ranged from 0.5 to 0.8 but was particularly low for participant ID 04. Visual inspection of this participant’s raw data showed large glucose spikes following physical activity (Figure S9) and hence were not explained in this initial model, which we address below with more complex modeling. While all model parameters are shown in Figure S8, we here focus on three summary metrics of the glucose dynamics.
Response half-lives ranged from 1 to 2.2 h (Figure 3A), thus showing a dynamic range of 220%. The mean meal response heights ranged from 0.5 to 1.5 mmol/L above baseline (Figure 3B), and a more detailed examination revealed that glucose responses for a given individual vary according to the specific item consumed (Figure S9). The posterior parameter distributions for each participant (Figures 3A and 3B) quantify the uncertainty associated with the parameter estimates for each participant; in some cases the distributions were overlapping between two individuals, while in other cases the distributions were clearly separated (e.g., half-life comparing IDs 20 and 23, Figure 3A).47 Comparing parameter values across participants, we found a positive relationship between response half-lives and mean meal heights, with slower glucose response half-lives associated with larger postprandial glucose spikes (R = 0.44, p = 0.02, Figure 3C). This suggested that postprandial glucose control (i.e., the height of glucose spikes following meals) depends on glucose clearance time, which might be determined physiologically by insulin sensitivity or β cell function (discussion).
The damping coefficients describing the shapes of glucose responses were clustered around 0 across all participants (Figure S8), where values of 0 represent “critical” damping at the border between overdamped (non-dipping profiles, damping coefficient >0) and underdamped (profiles with a dip, damping coefficient <0). Interestingly, glucose responses were proposed to be critically damped in an early glucose model,48 which would be consistent with our finding that the inferred values are scattered around 0. However, we clearly find individual-specific response profiles, with participant ID 14 showing a distinct underdamped glucose response compared with the critically damped response in ID 23 (Figures 3D–3F). The inferred meal response and circadian time functions (orange) are smoother than the glucose data (blue, Figures 3E and 3F), but the full model that also adds random fluctuations produces glucose traces that closely resemble the glucose data (Figure S9).
The measured glucose CV, a metric of glycemic control used in clinical settings,10,11 showed significant associations with both the response half-lives (linear regression p = 0.03) and the average meal heights (p = 0.01, linear regression model R2 using both variables = 0.63). While the damping coefficient was not significantly associated with glucose CV, the individual shapes of glucose responses might play a role in other aspects of glucose dynamics such as overshooting and hunger.49 Our results highlight that glucose response half-lives play a role in glycemic control and may be a relevant metric for both fundamental research and clinical purposes.
Circadian rhythms in baseline glucose levels are individual-specific
In addition to the input from ingestion events, the model also allows for an underlying circadian rhythm in glucose levels described with three parameters: a baseline level that specifies the glucose at the trough of the oscillation, an amplitude parameter denoting the difference between the trough and the peak of the oscillation, and the peak time of the oscillation. These circadian parameters are inferred for each individual jointly with the meal response parameters when fitting model 1 to the glucose data using MCMC (STAR Methods).
The amplitudes of underlying circadian glucose rhythms were participant specific (Figure 4A), being virtually null for some individuals, while exceeding 1 mmol/L for others (Figure 4C, IDs 03 and 07). Notably, the parameter uncertainty was small enough that there was no overlap in the estimates for IDs 03 and 07 (Figure 4A). To identify subjects whose profiles do not support a circadian baseline trend, we fitted an alternative model that lacked a circadian baseline and compared the two models using the Bayesian information criterion (BIC). For IDs 10, 13, 08, 25, 03, and 04 (which have the weakest amplitude according to Figure 4A), the BIC indicated evidence for the model lacking the circadian baseline, while the BIC favored the model with an additional circadian component for all remaining participants (Figure S10). The combination of the amplitude posterior estimates and heterogeneous model preference according to BIC thus suggests that circadian baseline glucose oscillations are individual-specific physiological characteristics.
The peak times of the glucose circadian oscillations similarly varied between participants (Figure 4B, with the same participant order as in Figure 4A), with peak times of the circadian baselines typically falling around the mid-afternoon, but with significant shifts in some individuals. For example, participant ID 20 had a peak time at 10:00, while it occurred much later for participant ID 17, falling at 20:00 (Figure 4D). The peak time distributions showed tight confidence intervals for participants with large amplitudes and wide intervals for participants with weaker amplitudes (Figure 4B). This relationship is probably caused by a lower signal-to-noise ratio for participants with a low circadian amplitude.
Overall, the underlying circadian glucose rhythm can explain >15% of glycemic variability in addition to the meal model for participants with large amplitudes (Figure 4E). While we have not tested whether it would be possible to modify either the peak time or the amplitude of this rhythm, these personalized parameters should prove to be useful in applications such as personalized meal timing (discussion).
HR is well predicted by physical activity and time of day, but the predictability of HRV varies between individuals
We next focused on the physical activity, HR, and HRV data, where we aimed to model the dependencies between the variables and quantify the ability of subsets of the three signals to explain the variance of others, in addition to the contribution of circadian oscillations. For this, we created a new model (model 2, Figure 2B) that incorporated the influence of physical activity on HR and HRV, and we used MCMC to sample from model parameters and quantify differences between individuals (all parameters shown in Figure S11).
For HR, the combination of a circadian trendline and physical activity as two inputs was consistently predictive, explaining 40%–65% of HR variance across all participants (Figure 5A). Figures 5C and 5D show an example of the predicted HR (orange) for two different participants using the underlying circadian trend (black) and integrating the physical activity (green). While the circadian contribution to the explained HR variance differs for these two participants (Figure 5A), the correlation between the predicted and the observed HR was ∼0.8 for both participants, demonstrating that time of day and activity state are necessary for optimal personalized modeling of HR, which is consistent with previous studies.50
The predictability of HRV was, in contrast, much more heterogeneous between participants, with total variance explained between 20% and 80% (Figure 5B). This notable difference is illustrated with two participants, showing a favorable prediction for participant ID 25 (R = 0.89, Figure 5F) compared with ID 14 (R = 0.44, Figure 5E). In addition to inputs from physical activity and the circadian trend, we evaluated whether the correlations between HR and HRV could be exploited by using HR to predict HRV (which is technically more difficult to measure than HR). The dependence between HR and HRV showed marked interindividual differences, where for ID 25 the HR signal explained 40% of the variance compared with using only activity and circadian trend, but for ID 14 the addition of HR made no difference in HRV prediction (Figures 5E, 5F, and S11). Given that HR and HRV receive different inputs from the SNS and PNS,25 the strength of this dependence may be a function of the autonomic nervous system. Of note, ID 14 was previously diagnosed with diabetes (currently treated only with lifestyle measures and not pharmacological treatment), and autonomic dysfunction is a known complication of diabetes.51
Integrating physical and heart activity signals helps explain glycemic dynamics
As a final modeling step, we integrated the physical and heart activity signals with the glucose-ingestion model to quantify how much of the glucose dynamics can be accounted for with physical activity, HR, and HRV (model 3, Figure 2C). To simplify the model inference, the parameters describing the physical and heart activity model in isolation (model 2, Figure 2B) were locked to their posterior mean values, and we added three new parameters describing the input of physical activity, HR, and HRV on glucose levels, respectively (model 3, Figure 2C). These influences were left unconstrained and could have positive, negative, or zero effect on glucose levels.
Model fitting revealed that the effect of physical activity accelerometer counts on glucose (parameter C5,1) was generally negative, the effect of HR (parameter C5,2) was generally positive, and the effect of HRV (parameter C5,3) was typically neutral across all participants (Figures 6A–6C). Given that we observed increased glucose levels during some periods of exercise during data visualization (Figure 1B), the negative influence of physical activity accelerometer counts on glucose as revealed by the model parameter C5,1 (Figure 6A) was not expected. To test the robustness of this prediction, we therefore re-fitted the data using three simpler models, where there was only one input at a time from the physical and heart activity signals (Figure S12). The influence of physical activity on glucose remained negative, even when it was the sole input from model 2 into glucose levels, further suggesting that the overall dominating effect of physical activity is to deplete glucose levels among the participants of our study. Meanwhile, as HR acts to increase glucose levels (C5,2), increased HR during intense exercise can still lead to a net increase in predicted glucose levels.
We next quantified the importance of heart and physical activity for glucose predictions by comparing the variance explained with meals and circadian rhythms compared with all components, including physical activity, HR, and HRV (Figure 6D). Overall, the amount of additional explained variance by the physical and heart activity signals was modest for most participants but contributed up to 15% in some individuals (Figure 6D).
Among the participants whose glucose dynamics benefit most from the physical and heart activity signals, the mode of action also differed. For participant ID 04, where the prediction of glucose was the lowest with model 1 (Figure 4E), the inclusion of physical and heart activity signals allowed for partial prediction of exercise-induced glucose spikes that were otherwise absent from the glucose model that contained meals only (Figure 6E). For participant ID 08, there were no notable isolated glucose spikes that could be predicted by the physical and heart activity data (Figure 6F). Instead, the linear combination of the physical and heart activity variables (weighted according to the inferred coefficients C5,1–C5,3) appeared to track the glucose levels (Figure 6F), and the cross-correlation profile showed a maximum correlation between the two signals without time delay (Figure 6G). This suggests that for this mode of action, the physical and heart activity signals contribute diffusely to capture glucose baseline trends spread over the time series.
Discussion
This study makes two contributions to the quantitative analysis of glucose dynamics in terms of study design and computational analysis. First, we used several wearable biosensors to measure multiple, interconnected data streams simultaneously. Inferring dynamical models would not be possible without such high-resolution time series. On a practical level, the main advantages of health measurements with wearable biosensors are their efficiency, non-invasiveness, and relative simplicity: in our study it took a team of two researchers 2 days to complete questionnaires and set up devices to record data for all 25 participants simultaneously. Second, we developed a data analysis method that combines stochastic dynamical modeling with Bayesian inference to learn personal parameters along with their associated uncertainty, and this parameter uncertainty was necessary to compare participants. The main insight of such personalized modeling is the possibility to robustly quantify individualized response patterns across a range of parameters and metrics, from the glucose half-lives and circadian oscillations, the coupling between HR and HRV, to the benefit of adding additional signals to predicting glucose.
The output of this modeling has wide implications for understanding both the biological underpinnings of cardiometabolic dysfunction as well as consequences for the use of wearables in a clinical setting. We first started by combining the food and drink events with the glucose time series, where we found that slow glucose dynamics are associated with large postprandial glucose spikes. Mechanistically, slow glucose disposal could relate to the quantity of ingested carbohydrates, the rate of gut absorption,52 its metabolism,53 the suppression of endogenous glucose production,54 insulin resistance, or β cell function.2
We also detected highly personalized circadian rhythms in the baseline glucose levels by quantifying amplitude and peak-time parameters in each individual along with uncertainty estimates (Figures 4A and 4B). While diurnal rhythms in β cell function and insulin sensitivity have previously been shown within healthy populations,55,56,57 it was unexpected to find significant differences in the amplitudes and phases of circadian oscillations in baseline glucose levels between healthy individuals. The extent to which these 24-h rhythms are determined by central or peripheral clocks or whether they are largely entrained by meal timing58 cannot be deduced without further information. Future studies will determine whether this circadian glucose baseline trend is predictive of responses to specific meal times, e.g., in time-restricted eating, an intervention that restricts eating to a specific window within the 24-h clock.59
Our results also have practical implications for clinicians as the physical and heart activity data explained up to 15% of glucose variability in our study, although this was highly variable between participants. From a clinical perspective, the incorporation of these additional physical and heart activity signals for some individuals might help both patients and clinicians understand glucose dynamics that seem otherwise disconnected from meal consumption (e.g., Figure 6E). As outlined in the motivation paragraph, clinicians and diabetic patients can link glucose excursion with ingestion events and intensive physical activity but find it challenging to do so for the remaining glucose dynamics observed throughout the day.
There are multiple possible approaches to modeling multimodal data such as we collected, and the particular structure of the glucose model has often been dictated by the data available and by the stated goal.34,35,36 Models based on differential equations range from simple, minimal models37 to mechanistically detailed descriptions that include more variables, more spatial compartments, and dozens of additional parameters.38 Inspired by these more complex models, there are many possible extensions that could be added to our glucose model, such as glucose absorption rates of mixed meals due to food content in carbohydrates, but also fat, fiber, and protein contents, which are known to slow down nutrient absorption,14 although the addition of meal-specific response shapes would effectively double the number of meal-related parameters. In addition to differential equation models, time series methods such as wavelets can also be applied to multimodal continuous wearable signals to detect, for example, changes in period and amplitude over time, to identify transient events, to assess associations between signals, and to perform signal denoising.60,61,62 Explicit models and time series analysis methods are ultimately complementary tools that come with their own sets of advantages and limitations.
An area that has seen a broad spectrum of time series models concerns short-term glucose forecasting, typically for applications in closed-loop insulin delivery systems.33,44 Gaussian state-space models that are conceptually similar to ours but with more variables have been deployed in artificial pancreas devices.63,64 Machine learning methods, including support vector machines (SVMs) and neural networks, have also been used for short-range forecasting,39,40 where the advantage of such methods is that more complex non-linear dependencies and long-range memory can be captured. As our focus was on explaining the total time series rather than short-term forecasting, we here traded some of this flexibility for explainability by assuming a relatively simple dynamical model with interpretable components and parameters. In the future, we envisage several applications, such as larger-scale epidemiological studies (e.g., do inferred parameters track with health state?) and clinical trials to see whether parameters change in response to an intervention. Particularly for clinical trials, point estimation of parameters is not adequate, and uncertainty estimates are required to perform statistical tests for a given individual, which we achieve here through MCMC. In health care, there is increasing interest in digital twins65,66 to integrate multiple clinical data streams, devise personalized treatments, and perform risk modeling. As our approach contains interpretable parameters, it lends itself readily to simulating hypothetical situations (e.g., by altering circadian amplitude or glucose response time). Overall, our method transforms a multivariable wearable data input into a series of metrics that describe the dependencies between physiological variables, including the relaxation timescales after external perturbations and circadian properties, and this approach provides a platform for probing physiological changes across circadian perturbations, aging, and cardiometabolic disorders.
Limitations of the study
Our study population was young and in good health overall, and we lack additional, more detailed health information or standard clinical metrics such as glycated hemoglobin (HbA1c). Since we opted here for a small-scale study with a focus on the methodology and models to combine multiple wearable sensors, we have sought to identify differences between individuals without attempting to associate them with either good or bad health outcomes. Future studies that use larger and more diverse cohorts could use the proposed method to relate the inferred personal glycemic parameters to lifestyle, environmental, or genetic factors, and it would also be useful to explore whether candidates that would benefit from inclusion of physical and heart activity to glucose modeling can be predicted in advance.
With respect to the modeling, a potential limitation of our approach is the use of a linear differential equation model, which may not be able to capture more complex phenomena such as eventual decreases in hepatic glucose production during prolonged exercise.67 A recent study based on deep learning found that the addition of wristband activity data improved the root-mean-square error of 60-min glucose forecasting by 2.25 mg/dL (0.1 mmol/L) from a baseline of 35.3 mg/dL (2.0 mmol/L), and hence, more substantial improvements in glucose predictions may prove to be a difficult challenge even with more flexible models.68
STAR★Methods
Key resources table
REAGENT or RESOURCE | SOURCE | IDENTIFIER |
---|---|---|
Deposited data | ||
Food app, CGM and ActiHeart data | This paper |
https://github.com/naef-lab/MultiSensor https://doi.org/10.5281/zenodo.8028677 |
Software and algorithms | ||
Python version 3.7.4 | Python Software Foundation | https://www.python.org |
The MultiSensor Study code | This paper |
https://github.com/naef-lab/MultiSensor https://doi.org/10.5281/zenodo.8028677 |
Resource availability
Lead contact
Further information and requests for resources should be directed to and will be fulfilled when possible by the lead contact, Felix Naef (felix.naef@epfl.ch).
Materials availability
This study did not generate new physical materials.
Experimental model and study participant details
The Multi-Sensor Study (MSS) was approved by the local ethics committee (CER-VD, BASEC no. 2019-02245) and each participant signed a written informed consent. Recruitment was performed via posters at the École Polytechnique Fédérale de Lausanne (EPFL), Lausanne University Hospital (CHUV) and the University of Lausanne (UNIL) and via presentations given in the EPFL School of Life Sciences.
We included adults aged ≥ 18 years, with a smartphone compatible with the myCircadianClock app (iOS or Android systems45) and able to take pictures of food/drinks, and who self-identified as disciplined enough and motivated to record all data for two weeks. The exclusion criteria were major illness/fever, surgery over the previous month, eating disorder, major mental illness, unable to give informed consent, taking medicines including paracetamol, aspirin or vitamin C supplements, enrolled in another interventional clinical trial (medication, medical device), shift work or travel to a different time zone before and during the study. 25 participants (16 males, 9 females) were recruited, and participant characteristics are shown in Figure S1.
Method details
Devices and experimental design
At baseline, we collected data on demographics, medical history, physical activity (short form of International Physical Activity Questionnaire, IPAQ-SF),69 chronotype (The Munich ChronoType Questionnaire),70 sleeping habits (Pittsburgh Sleep Quality Index)71 and eating timing (with a custom questionnaire on eating habits during work and free days).
For each participant, we collected data for two weeks using the following devices: 1) Timestamps of food/drinks and text annotations collected with the smartphone application (app) myCircadianClock45; 2) Continuous glucose monitoring (CGM) using the Abbott FreeStyle Libre Pro device; 3) Physical activity, heart rate (HR) and heart rate variability (HRV using RMSSD–1) using the CamNtech ActiHeart device version 5. Participants were instructed to take pictures of all consumed food and drink with the research-dedicated myCircadianClock smartphone. Recorded entries included a timestamped picture and a free-text annotation, and entries with the same annotation were considered as the same meal type. Participants could annotate photographs either immediately or in the following hours. Optionally, participants could type text-only entries without any picture, e.g., if the smartphone ran out of battery, or if it was not socially acceptable to take pictures in the current context. Participants were also asked to optionally log physical exercise using the app. While the CamNtech Actiheart device is waterproof, participants were permitted to briefly remove the device during showers and baths. Specific information on individual device technical failure, handling of missing data and data quality is included in the Supplementary Information (Methods S1).
Pre-processing CGM data
We used nonparametric regression with Gaussian processes (GPs) to remove the long-term trends observed in the data. After mean-centring the data, we fitted a GP with a squared exponential kernel and a length scale l=48 hours using GPflow.72
Data analysis
See the Supplementary Information (Methods S1) for detailed computational methods which are summarised here. We use a linear Gaussian state space model (otherwise known as a Kalman filter73) to analyse the time series generated by the wearable devices, which was implemented using the ‘LinearGaussianStateSpaceModel’ distribution within TensorFlow Probability.74 We will first describe the general data analysis framework before providing details on each of the three models used (Models 1-3). For each model we define a dynamic model that describes the time evolution of the underlying physiological variables and a measurement model that incorporates measurement noise. For the dynamic model, we use a system of stochastic differential equations (SDEs).
(Equation 1) |
where is a matrix describing the interactions between the variables , and is a brownian noise term with covariance matrix . The specific forms of and are unique for each model and will be described below. To keep the model exact while benefiting from the generic framework of Gaussian state space models (a.k.a. as Kalman filters), we then convert this system of continuous-time SDEs into a model where time is discrete (see Methods S1 for details).
(Equation 2) |
where is the state-transition model and is the covariance of the process noise. The measurement model describes the observation process and assumes that variables are observed with normally distributed measurement noise
(Equation 3) |
where is the observation matrix and and represents the mean and covariance of the observation noise, respectively. The goal is to use the wearable time series data to estimate parameters (denoted by ) for each participant. Within a Bayesian inference framework, the parameters of the model can be estimated from the data as follows
(Equation 4) |
where is the prior distribution of parameters and is the likelihood of observing the temporal data given the set of parameters . Considering the time series sequence of data, the likelihood term for a given set of parameters can be expressed as
(Equation 5) |
and the sequence of distributions are calculated within a Kalman filtering framework. Once the likelihood and priors are specified for each model, we used the Hamiltonian Monte Carlo sampler provided within TensorFlow Probability to sample model parameters from the posterior distribution (described below in quantification and statistical analysis). The priors for all models are specified in Methods S1.
Model 1: Glucose model
We model glucose dynamics (Figure 2A) with a two-dimensional system of SDEs, where the second variable represents the glucose levels and the first variable represents an unobserved latent variable that allows negative feedback within the system. In matrix form, the model is expressed as follows
(Equation 6) |
and where the coefficients are constrained to be positive. The covariance of the brownian noise term is given by . The ‘damping coefficient’ is determined by whether the eigenvalues of the matrix are real or complex. For the 2x2 matrix , this damping coefficient can be determined by .
The smartphone application provides a list of the recorded ingestion event times for a total of meals. We incorporate meal events (recorded at time ) as producing a response function by perturbing the first variable to higher values (see Methods S1 for precise functional form), and then the total meal function is the sum over all individual meal responses
(Equation 7) |
We define the glucose half-life parameter as the model-predicted time to return to 0.5 mol/L after a standardised increase of 1mmol/L. We also add an underlying circadian trend in glucose levels using a sinusoidal function
(Equation 8) |
where is the baseline level, is the amplitude, is the frequency (fixed at ), and is the peak time of the maximum. The observation model for the glucose model is then as follows
(Equation 9) |
We compared Model 1 with an alternative version without circadian oscillations using the Bayesian Information Criterion (BIC) , where is the number of parameters and is the number of data points. We calculated the difference in BIC score using Model 1 both with and without a circadian components and used a cut-off of to indicate that the strength of evidence favoured a particular model.75
Model 2: Physical and heart activity model
We model physical and heart activity dynamics (Figure 2B) with a three-dimensional system of SDEs, where the first variable represents physical activity, the second variable represents heart rate and the third variable represents heart rate variability, where we use the inverse of the root mean square of successive differences between normal heartbeats (RMSSD-1). We normalise all three variables by their respective standard deviations before inferring parameters. In matrix form, the model is expressed as follows
(Equation 10) |
and where the coefficients are constrained to be positive and the covariance of the brownian noise term is given by . In the model, the correlation in the fluctuations between HR and HRV is quantified with the correlation parameter . The observation model is then given by
(Equation 11) |
where , and are circadian oscillatory functions (Methods S1).
Model 3: Combined model
The final model (Figure 2C) connects the physical and heart activity signals with CGM dynamics by stitching the previous glucose (Model 1) and physical and heart activity models (Model 2) together. Both models are otherwise left unchanged, but there is an introduction of three new parameters and that describe the effect of physical activity, HR and HRV on glucose levels, respectively. These three parameters are left unconstrained and can take either positive or negative values. To simplify the model inference problem, the parameters from Model 2 describing the physical and heart activity model in isolation were locked to their posterior mean values.
(Equation 12) |
The observation model is then given by
(Equation 13) |
Quantification and statistical analysis
The wearable data for each participant is analysed separately and the inferred parameters are presented along with the uncertainty for each individual as obtained through Markov Chain Monte Carlo (MCMC) sampling. The parameter posterior distribution was sampled using Hamiltonian Markov Chain Monte Carlo (HMC), which uses the gradients of the posterior to improve the efficiency of the sampling. To initialise the sampler, we found the maximum a posteriori probability (MAP) parameter estimate using the BFGS optimiser 'bfgs_minimize' within TensorFlow Probability. We then used the 'HamiltonianMonteCarlo' function with TensorFlow Probability with 5 leapfrog steps, and we scaled the step size of each variable to approximately match the standard deviation of the posterior distribution. To achieve this, we sampled posterior parameters using two steps. Firstly, we sampled 10,000 parameters (with a burn-in of 10,000 samples) using the 'SimpleStepSizeAdaptation' kernel to select the global step size, which adapts the global step size to achieve a target acceptance probability of 0.75.76 We then scaled the step size of each variable according to the standard deviation of this initial posterior distribution. Next, we resampled model parameters from the posterior distribution using 4 different chains with 10,000 samples each (with a burn-in of 10,000 samples), again using 'SimpleStepSizeAdaptation' kernel to globally rescale the step size. The 'SimpleStepSizeAdaptation' kernel was only applied to first 80% of the burn-in samples. From the MCMC samples, the percentiles of the posterior parameter distributions are shown graphically for each participant with boxplots. We then estimate the explained variance using , using the model predictions from the MCMC parameter samples.
Acknowledgments
The authors wish to thank all participants in the study and the team of Professor Satchidananda Panda (Salk Institute) for the use of the myCircadianClock smartphone application. This project was supported by grant 2018-427 of the Strategic Focal Area “Personalized Health and Related Technologies (PHRT)” of the ETH Domain to N.E.P. T.-H.C.’s research is supported by the Leenaards Foundation, the Vontobel Foundation, the Nutrition 2000plus Foundation, the SwissLife Jubiläumsstiftung Foundation, the Swiss Society of Endocrinology and Diabetes, and the Swiss Multiple Sclerosis Society. The work in the Naef lab and purchase of the wearable devices was supported by the EPFL.
Author contributions
Conceptualization, N.E.P., T.-H.C., and F.N.; methodology, N.E.P., T.-H.C., and F.N.; data collection, N.E.P. and T.-H.C.; computation and data analysis, N.E.P.; data visualization, N.E.P., T.-H.C., and F.N.; writing – original draft preparation, N.E.P.; writing – review & editing, N.E.P., T.-H.C., and F.N.; project administration, N.E.P., T.-H.C., and F.N.; supervision, T.-H.C. and F.N.; funding acquisition, N.E.P., T.-H.C., and F.N. All authors have read and agreed to the published version of the manuscript.
Declaration of interests
The authors declare no competing interests.
Inclusion and diversity
We support inclusive, diverse, and equitable conduct of research.
Published: July 31, 2023
Footnotes
Supplemental information can be found online at https://doi.org/10.1016/j.crmeth.2023.100545.
Contributor Information
Tinh-Hai Collet, Email: tinh-hai.collet@hcuge.ch.
Felix Naef, Email: felix.naef@epfl.ch.
Supplemental information
Data and code availability
De-identified participant data has been deposited at https://github.com/naef-lab/MultiSensor and at https://doi.org/10.5281/zenodo.8028677.
All original code has been deposited at https://github.com/naef-lab/MultiSensor and at https://doi.org/10.5281/zenodo.8028677.
Any additional information required to implement the method of this study is available from the lead contact upon request.
References
- 1.Trachana K., Bargaje R., Glusman G., Price N.D., Huang S., Hood L.E. Taking systems medicine to heart. Circ. Res. 2018;122:1276–1289. doi: 10.1161/CIRCRESAHA.117.310999. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Kahn S.E., Cooper M.E., Del Prato S. Pathophysiology and treatment of type 2 diabetes: Perspectives on the past, present, and future. Lancet. 2014;383:1068–1083. doi: 10.1016/S0140-6736(13)62154-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Tirone T.A., Brunicardi F.C. Overview of glucose regulation. World J. Surg. 2001;25:461–467. doi: 10.1007/s002680020338. [DOI] [PubMed] [Google Scholar]
- 4.Forbes J.M., Fotheringham A.K. Vascular complications in diabetes: old messages, new thoughts. Diabetologia. 2017;60:2129–2138. doi: 10.1007/s00125-017-4360-x. [DOI] [PubMed] [Google Scholar]
- 5.Coutinho M., Gerstein H.C., Wang Y., Yusuf S. The relationship between glucose and incident cardiovascular events. Diabetes Care. 1999;22:233–240. doi: 10.2337/diacare.22.2.233. [DOI] [PubMed] [Google Scholar]
- 6.Emerging Risk Factors Collaboration. Sarwar N., Gao P., Seshasai S.R.K., Gobin R., Kaptoge S., Di Angelantonio E., Ingelsson E., Lawlor D.A., Selvin E., et al. Diabetes mellitus, fasting blood glucose concentration, and risk of vascular disease: A collaborative meta-analysis of 102 prospective studies. Lancet. 2010;375:2215–2222. doi: 10.1016/S0140-6736(10)60484-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Selvin E., Steffes M.W., Zhu H., Matsushita K., Wagenknecht L., Pankow J., Coresh J., Brancati F.L. Glycated Hemoglobin, Diabetes, and Cardiovascular Risk in Nondiabetic Adults. N. Engl. J. Med. 2010;362:800–811. doi: 10.1056/nejmoa0908359. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Agarwal S., Mathew J., Davis G.M., Shephardson A., Levine A., Louard R., Urrutia A., Perez-Guzman C., Umpierrez G.E., Peng L., Pasquel F.J. Continuous Glucose Monitoring in the Intensive Care Unit During the COVID-19 Pandemic. Diabetes Care. 2021;44:847–849. doi: 10.2337/dc20-2219. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Hansen E.A., Klee P., Dirlewanger M., Bouthors T., Elowe-Gruau E., Stoppa-Vaucher S., Phan-Hug F., Antoniou M.C., Pasquier J., Dwyer A.A., et al. Accuracy, satisfaction and usability of a flash glucose monitoring system among children and adolescents with type 1 diabetes attending a summer camp. Pediatr. Diabetes. 2018;19:1276–1284. doi: 10.1111/pedi.12723. [DOI] [PubMed] [Google Scholar]
- 10.Battelino T., Danne T., Bergenstal R.M., Amiel S.A., Beck R., Biester T., Bosi E., Buckingham B.A., Cefalu W.T., Close K.L., et al. Clinical targets for continuous glucose monitoring data interpretation: Recommendations from the international consensus on time in range. Diabetes Care. 2019;42:1593–1603. doi: 10.2337/dci19-0028. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Ceriello A., Monnier L., Owens D. Glycaemic variability in diabetes: clinical and therapeutic implications. Lancet Diabetes Endocrinol. 2019;7:221–230. doi: 10.1016/S2213-8587(18)30136-0. [DOI] [PubMed] [Google Scholar]
- 12.Danne T., Nimri R., Battelino T., Bergenstal R.M., Close K.L., DeVries J.H., Garg S., Heinemann L., Hirsch I., Amiel S.A., et al. International consensus on use of continuous glucose monitoring. Diabetes Care. 2017;40:1631–1640. doi: 10.2337/dc17-1600. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Monnier L., Colette C., Wojtusciszyn A., Dejager S., Renard E., Molinari N., Owens D.R. Toward defining the threshold between low and high glucose variability in diabetes. Diabetes Care. 2017;40:832–838. doi: 10.2337/dc16-1769. [DOI] [PubMed] [Google Scholar]
- 14.Berry S.E., Valdes A.M., Drew D.A., Asnicar F., Mazidi M., Wolf J., Capdevila J., Hadjigeorgiou G., Davies R., Al Khatib H., et al. Human postprandial responses to food and potential for precision nutrition. Nat. Med. 2020;26:964–973. doi: 10.1038/s41591-020-0934-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Korem T., Zeevi D., Zmora N., Weissbrod O., Bar N., Lotan-Pompan M., Avnit-Sagi T., Kosower N., Malka G., Rein M., et al. Bread Affects Clinical Parameters and Induces Gut Microbiome-Associated Personal Glycemic Responses. Cell Metabol. 2017;25:1243–1253.e5. doi: 10.1016/j.cmet.2017.05.002. [DOI] [PubMed] [Google Scholar]
- 16.Zeevi D., Korem T., Zmora N., Israeli D., Rothschild D., Weinberger A., Ben-Yacov O., Lador D., Avnit-Sagi T., Lotan-Pompan M., et al. Personalized Nutrition by Prediction of Glycemic Responses. Cell. 2015;163:1079–1094. doi: 10.1016/j.cell.2015.11.001. [DOI] [PubMed] [Google Scholar]
- 17.Flanagan A., Bechtold D.A., Pot G.K., Johnston J.D. Chrono-nutrition: From molecular and neuronal mechanisms to human epidemiology and timed feeding patterns. J. Neurochem. 2021;157:53–72. doi: 10.1111/jnc.15246. [DOI] [PubMed] [Google Scholar]
- 18.Levi F., Schibler U. Circadian Rhythms: Mechanisms and Therapeutic Implications. Annu. Rev. Pharmacol. Toxicol. 2007;47:593–628. doi: 10.1146/annurev.pharmtox.47.120505.105208. [DOI] [PubMed] [Google Scholar]
- 19.Qian J., Scheer F.A.J.L. Circadian System and Glucose Metabolism: Implications for Physiology and Disease. Trends Endocrinol. Metabol. 2016;27:282–293. doi: 10.1016/j.tem.2016.03.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Van Cauter E., Polonsky K.S., Scheen A.J. Roles of circadian rhythmicity and sleep in human glucose regulation. Endocr. Rev. 1997;18:716–738. doi: 10.1210/er.18.5.716. [DOI] [PubMed] [Google Scholar]
- 21.Aparicio N.J., Puchulu F.E., Gagliardino J.J., Ruiz M., Llorens J.M., Ruiz J., Lamas A., De Miguel R. Circadian variation of the blood glucose, plasma insulin and human growth hormone levels in response to an oral glucose load in normal subjects. Diabetes. 1974;23:132–137. doi: 10.2337/diab.23.2.132. [DOI] [PubMed] [Google Scholar]
- 22.Porcellati F., Lucidi P., Bolli G.B., Fanelli C.G. Thirty Years of Research on the Dawn Phenomenon: Lessons to Optimize Blood Glucose Control in Diabetes. Diabetes Care. 2013;36:3860–3862. doi: 10.2337/dc13-2088. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Schmidt M.I., Hadji-Georgopoulos A., Rendell M., Margolis S., Kowarski A. The dawn phenomenon, an early morning glucose rise: Implications for diabetic intraday blood glucose variation. Diabetes Care. 1981;4:579–585. doi: 10.2337/diacare.4.6.579. [DOI] [PubMed] [Google Scholar]
- 24.Johnson M.L., Martens T.W., Criego A.B., Carlson A.L., Simonson G.D., Bergenstal R.M. Utilizing the Ambulatory Glucose Profile to Standardize and Implement Continuous Glucose Monitoring in Clinical Practice. Diabetes Technol. Therapeut. 2019;21:S217–S225. doi: 10.1089/dia.2019.0034. [DOI] [PubMed] [Google Scholar]
- 25.Shaffer F., Ginsberg J.P. An Overview of Heart Rate Variability Metrics and Norms. Front. Public Health. 2017;5:258–317. doi: 10.3389/fpubh.2017.00258. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Singh J.P., Larson M.G., O’Donnell C.J., Wilson P.F., Tsuji H., Lloyd-Jones D.M., Levy D. Association of hyperglycemia with reduced heart rate variability (The Framingham Heart Study) Am. J. Cardiol. 2000;86:309–312. doi: 10.1016/S0002-9149(00)00920-6. [DOI] [PubMed] [Google Scholar]
- 27.Wu J.S., Yang Y.C., Lin T.S., Huang Y.H., Chen J.J., Lu F.H., Wu C.H., Chang C.J. Epidemiological evidence of altered cardiac autonomic function in subjects with impaired glucose tolerance but not isolated impaired fasting glucose. J. Clin. Endocrinol. Metab. 2007;92:3885–3889. doi: 10.1210/jc.2006-2175. [DOI] [PubMed] [Google Scholar]
- 28.Ewing D.J., Campbell I.W., Clarke B.F. Mortality in diabetic autonomic neuropathy. Lancet. 1976;1:601–603. doi: 10.1016/S0140-6736(76)90413-X. [DOI] [PubMed] [Google Scholar]
- 29.Wehrwein E.A., Orer H.S., Barman S.M. Overview of the Anatomy, Physiology, and Pharmacology of the Autonomic Nervous System. Compr. Physiol. 2016;6:1239–1278. doi: 10.1002/CPHY.C150037. [DOI] [PubMed] [Google Scholar]
- 30.Shaffer F., McCraty R., Zerr C.L. A healthy heart is not a metronome: an integrative review of the heart’s anatomy and heart rate variability. Front. Psychol. 2014;5:1040–1119. doi: 10.3389/fpsyg.2014.01040. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Riddell M.C., Gallen I.W., Smart C.E., Taplin C.E., Adolfsson P., Lumb A.N., Kowalski A., Rabasa-Lhoret R., McCrimmon R.J., Hume C., et al. Exercise management in type 1 diabetes: a consensus statement. Lancet Diabetes Endocrinol. 2017;5:377–390. doi: 10.1016/S2213-8587(17)30014-1. [DOI] [PubMed] [Google Scholar]
- 32.Yardley J.E., Colberg S.R. Update on Management of Type 1 Diabetes and Type 2 Diabetes in Athletes. Curr. Sports Med. Rep. 2017;16:38–44. doi: 10.1249/jsr.0000000000000327. [DOI] [PubMed] [Google Scholar]
- 33.Woldaregay A.Z., Årsand E., Walderhaug S., Albers D., Mamykina L., Botsis T., Hartvigsen G. Data-driven modeling and prediction of blood glucose dynamics: Machine learning applications in type 1 diabetes. Artif. Intell. Med. 2019;98:109–134. doi: 10.1016/j.artmed.2019.07.007. [DOI] [PubMed] [Google Scholar]
- 34.Cobelli C., Man C.D., Sparacino G., Magni L., De Nicolao G., Kovatchev B.P. Diabetes: Models, Signals, and Control. IEEE Rev. Biomed. Eng. 2009;2:54–96. doi: 10.1109/RBME.2009.2036073. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.McGrath T., Murphy K.G., Jones N.S. Quantitative approaches to energy and glucose homeostasis: Machine learning and modelling for precision understanding and prediction. J. R. Soc. Interface. 2018;15:20170736–20170833. doi: 10.1098/rsif.2017.0736. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Pattaranit R., Van Den Berg H.A. Mathematical models of energy homeostasis. J. R. Soc. Interface. 2008;5:1119–1135. doi: 10.1098/rsif.2008.0216. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Dalla Man C., Caumo A., Cobelli C. The oral glucose minimal model: Estimation of insulin sensitivity from a meal test. IEEE Trans. Biomed. Eng. 2002;49:419–429. doi: 10.1109/10.995680. [DOI] [PubMed] [Google Scholar]
- 38.Dalla Man C., Rizza R.A., Cobelli C. Meal simulation model of the glucose-insulin system. IEEE Trans. Biomed. Eng. 2007;54:1740–1749. doi: 10.1109/TBME.2007.893506. [DOI] [PubMed] [Google Scholar]
- 39.Deng Y., Lu L., Aponte L., Angelidi A.M., Novak V., Karniadakis G.E., Mantzoros C.S. Deep transfer learning and data augmentation improve glucose levels prediction in type 2 diabetes patients. NPJ Digit. Med. 2021;4:109. doi: 10.1038/s41746-021-00480-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Li K., Daniels J., Liu C., Herrero P., Georgiou P. Convolutional Recurrent Neural Networks for Glucose Prediction. IEEE J. Biomed. Health Inform. 2020;24:603–613. doi: 10.1109/JBHI.2019.2908488. [DOI] [PubMed] [Google Scholar]
- 41.Bent B., Cho P.J., Henriquez M., Wittmann A., Thacker C., Feinglos M., Crowley M.J., Dunn J.P. Engineering digital biomarkers of interstitial glucose from noninvasive smartwatches. NPJ Digit. Med. 2021;4 doi: 10.1038/s41746-021-00465-w. 89–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Rashtian H., Torbaghan S.S., Rahili S., Snyder M., Aghaeepour N. Heart Rate and CGM Feature Representation Diabetes Detection from Heart Rate: Learning Joint Features of Heart Rate and Continuous Glucose Monitors Yields Better Representations. IEEE Access. 2021;9:83234–83240. doi: 10.1109/ACCESS.2021.3085544. [DOI] [Google Scholar]
- 43.Sobel S.I., Chomentowski P.J., Vyas N., Andre D., Toledo F.G.S. Accuracy of a Novel Noninvasive Multisensor Technology to Estimate Glucose in Diabetic Subjects During Dynamic Conditions. J. Diabetes Sci. Technol. 2014;8:54–63. doi: 10.1177/1932296813516182. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Boughton C.K., Hovorka R. New closed-loop insulin systems. Diabetologia. 2021;64:1007–1015. doi: 10.1007/s00125-021-05391-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Gill S., Panda S. A Smartphone App Reveals Erratic Diurnal Eating Patterns in Humans that Can Be Modulated for Health Benefits. Cell Metabol. 2015;22:789–798. doi: 10.1016/j.cmet.2015.09.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Chow L.S., Manoogian E.N.C., Alvear A., Fleischer J.G., Thor H., Dietsche K., Wang Q., Hodges J.S., Esch N., Malaeb S., et al. Time-Restricted Eating Effects on Body Composition and Metabolic Measures in Humans who are Overweight: A Feasibility Study. Obesity. 2020;28:860–869. doi: 10.1002/oby.22756. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Kruschke J.K. Bayesian estimation supersedes the t test. J. Exp. Psychol. Gen. 2013;142:573–603. doi: 10.1037/a0029146. [DOI] [PubMed] [Google Scholar]
- 48.Bolie V.W. Coefficients of normal blood glucose regulation. J. Appl. Physiol. 1961;16:783–788. doi: 10.1152/jappl.1961.16.5.783. [DOI] [PubMed] [Google Scholar]
- 49.Wyatt P., Berry S.E., Finlayson G., O’Driscoll R., Hadjigeorgiou G., Drew D.A., Khatib H.A., Nguyen L.H., Linenberg I., Chan A.T., et al. Postprandial glycaemic dips predict appetite and energy intake in healthy individuals. Nat. Metab. 2021;3:523–529. doi: 10.1038/s42255-021-00383-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Bowman C., Huang Y., Walch O.J., Fang Y., Frank E., Tyler J., Mayer C., Stockbridge C., Goldstein C., Sen S., Forger D.B. A method for characterizing daily physiology from widely used wearables. Cell Rep. Methods. 2021;1 doi: 10.1016/j.crmeth.2021.100058. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Schroeder E.B., Chambless L.E., Liao D., Prineas R.J., Evans G.W., Rosamond W.D., Heiss G., Atherosclerosis Risk in Communities ARIC study Diabetes, Glucose, Insulin, and Heart Rate Variability. Diabetes Care. 2005;28:668–674. doi: 10.2337/diacare.28.3.668. [DOI] [PubMed] [Google Scholar]
- 52.Tambascia M.A., Malerbi D.A.C., Eliaschewitz F.G. Influence of gastric emptying on the control of postprandial glycemia: physiology and therapeutic implications. Einstein (São Paulo, Brazil) 2014;12:251–253. doi: 10.1590/S1679-45082014RB2862. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Moore M.C., Coate K.C., Winnick J.J., An Z., Cherrington A.D. Regulation of hepatic glucose uptake and storage in vivo. Adv. Nutr. 2012;3:286–294. doi: 10.3945/an.112.002089. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Bansal P., Wang Q. Insulin as a physiological modulator of glucagon secretion. Am. J. Physiol. Endocrinol. Metab. 2008;295:E751–E761. doi: 10.1152/ajpendo.90295.2008. [DOI] [PubMed] [Google Scholar]
- 55.Petrenko V., Gandasi N.R., Sage D., Tengholm A., Barg S., Dibner C. In pancreatic islets from type 2 diabetes patients, the dampened circadian oscillators lead to reduced insulin and glucagon exocytosis. Proc. Natl. Acad. Sci. USA. 2020;117:2484–2495. doi: 10.1073/pnas.1916539117. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Saad A., Dalla Man C., Nandy D.K., Levine J.A., Bharucha A.E., Rizza R.A., Basu R., Carter R.E., Cobelli C., Kudva Y.C., Basu A. Diurnal pattern to insulin secretion and insulin action in healthy individuals. Diabetes. 2012;61:2691–2700. doi: 10.2337/db11-1478. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Sinturel F., Makhlouf A.M., Meyer P., Tran C., Pataky Z., Golay A., Rey G., Howald C., Dermitzakis E.T., Pichard C., et al. Cellular circadian period length inversely correlates with HbA1c levels in individuals with type 2 diabetes. Diabetologia. 2019;62:1453–1462. doi: 10.1007/s00125-019-4907-0. [DOI] [PubMed] [Google Scholar]
- 58.Isherwood C.M., van der Veen D.R., Hassanin H., Skene D.J., Johnston J.D. Human glucose rhythms and subjective hunger anticipate meal timing. Curr. Biol. 2023;33:1321–1326.e3. doi: 10.1016/j.cub.2023.02.005. [DOI] [PubMed] [Google Scholar]
- 59.Chaix A., Manoogian E.N.C., Melkani G.C., Panda S. Time-Restricted Eating to Prevent and Manage Chronic Metabolic Diseases. Annu. Rev. Nutr. 2019;39:291–315. doi: 10.1146/annurev-nutr-082018-124320. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Grant A.D., Upton T.J., Terry J.R., Smarr B.L., Zavala E. Analysis of wearable time series data in endocrine and metabolic research. Curr. Opin. Endocr. Metab. Res. 2022;25 doi: 10.1016/j.coemr.2022.100380. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Leise T.L. Wavelet analysis of circadian and ultradian behavioral rhythms. J. Circadian Rhythms. 2013;11:5. doi: 10.1186/1740-3391-11-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Farabi S.S., Carley D.W., Quinn L. Glucose Variations and Activity Are Strongly Coupled in Sleep and Wake in Young Adults With Type 1 Diabetes. Biol. Res. Nurs. 2017;19:249–257. doi: 10.1177/1099800416685177. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Soru P., De Nicolao G., Toffanin C., Dalla Man C., Cobelli C., Magni L. MPC based Artificial Pancreas: Strategies for individualization and meal compensation. Annu. Rev. Control. 2012;36:118–128. doi: 10.1016/j.arcontrol.2012.03.009. [DOI] [Google Scholar]
- 64.Toffanin C., Messori M., Di Palma F., De Nicolao G., Cobelli C., Magni L. Artificial pancreas: Model predictive control design from clinical experience. J. Diabetes Sci. Technol. 2013;7:1470–1483. doi: 10.1177/193229681300700607. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Coorey G., Figtree G.A., Fletcher D.F., Redfern J. The health digital twin: advancing precision cardiovascular medicine. Nat. Rev. Cardiol. 2021;18:803–804. doi: 10.1038/s41569-021-00630-4. [DOI] [PubMed] [Google Scholar]
- 66.Kamel Boulos M.N., Zhang P. Digital twins: From personalised medicine to precision public health. J. Personalized Med. 2021;11 doi: 10.3390/jpm11080745. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Roy A., Parker R.S. Dynamic modeling of exercise effects on plasma glucose and insulin levels. J. Diabetes Sci. Technol. 2007;1:338–347. doi: 10.1177/193229680700100305. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Zhu T., Uduku C., Li K., Herrero P., Oliver N., Georgiou P. Enhancing self-management in type 1 diabetes with wearables and deep learning. NPJ Digit. Med. 2022;5 doi: 10.1038/s41746-022-00626-5. 78–11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Craig C.L., Marshall A.L., Sjöström M., Bauman A.E., Booth M.L., Ainsworth B.E., Pratt M., Ekelund U., Yngve A., Sallis J.F., Oja P. International physical activity questionnaire: 12-Country reliability and validity. Med. Sci. Sports Exerc. 2003;35:1381–1395. doi: 10.1249/01.MSS.0000078924.61453.FB. [DOI] [PubMed] [Google Scholar]
- 70.Roenneberg T., Wirz-Justice A., Merrow M. Life between clocks: Daily temporal patterns of human chronotypes. J. Biol. Rhythm. 2003;18:80–90. doi: 10.1177/0748730402239679. [DOI] [PubMed] [Google Scholar]
- 71.Buysse D.J., Reynolds C.F., Monk T.H., Berman S.R., Kupfer D.J. The Pittsburgh sleep quality index: A new instrument for psychiatric practice and research. Psychiatr. Res. 1989;28:193–213. doi: 10.1016/0165-1781(89)90047-4. [DOI] [PubMed] [Google Scholar]
- 72.De A.G., Matthews G., Nickson T., Fujii K., Boukouvalas A., León-Villagrá P., Ghahramani Z., Hensman J. GPflow: A Gaussian Process Library using TensorFlow Mark van der Wilk. J. Mach. Learn. Res. 2017;18:1–6. doi: 10.48550/arXiv.1610.08733. [DOI] [Google Scholar]
- 73.Särkkä S., Solin A. Cambridge University Press; 2019. Applied Stochastic Differential Equations. [DOI] [Google Scholar]
- 74.Abadi M., Agarwal A., Paul Barham E.B., Chen Z., Craig C., Greg S., Corrado A.D., Dean J., Matthieu Devin S.G. 2015. TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. [DOI] [Google Scholar]
- 75.Kass R.E., Raftery A.E. Bayes Factors. J. Am. Stat. Assoc. 1995;90:773–795. doi: 10.1080/01621459.1995.10476572. [DOI] [Google Scholar]
- 76.Andrieu C., Thoms J. A tutorial on adaptive MCMC. Stat. Comput. 2008;18:343–373. doi: 10.1007/s11222-008-9110-y. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
De-identified participant data has been deposited at https://github.com/naef-lab/MultiSensor and at https://doi.org/10.5281/zenodo.8028677.
All original code has been deposited at https://github.com/naef-lab/MultiSensor and at https://doi.org/10.5281/zenodo.8028677.
Any additional information required to implement the method of this study is available from the lead contact upon request.