Abstract
Elevated postprandial glucose levels present a global epidemic and a major challenge in type-2 diabetes (T2D) management. A key barrier to developing effective dietary interventions for T2D management is the wide inter-individual variation in glycemic and behavioral responses, which limits the impact of one-size-fits-all recommendations. To enable personalized dietary prompts for glycemic control, it is critical to first predict an individual’s susceptibility to elevated postprandial (PPG) levels—or state of momentary vulnerability to PPG excursions. We examined the feasibility of personalized models to predict PPG excursions,and their associated vulnerability states, in the daily lives of 67 Chinese adults with T2D (Mage = 61.39; median = 63.00; 35 women; 2,463 glucose observations). We developed machine learning models trained on past individual observations to predict the next-in-time PPG excursion, using continuous glucose monitoring (CGM) data or CGM data combined with manually-logged meals and glucose-lowering agent intake. On average, personalized models predicted PPG excursions (F1-score: M = 75.88%; median = 78.26%), with substantial variation in predictability across individuals. Notably, no two individuals shared the same dietary and temporal predictors of PPG excursions. This study is the first to predict individual vulnerability states to glucose responses among adults with T2D in China. Findings can help personalize just-in-time adaptive interventions by tailoring dietary prompts based on individuals’ unique vulnerability states to PPG excursions. This approach can inform the development of digital dietary interventions in mHealth apps and clinical decision support tools, thereby helping optimize glycemic control and patient-centered T2D lifestyle management..
Supplementary Information
The online version contains supplementary material available at 10.1038/s41598-025-08003-4.
Keywords: Type-2 diabetes management, Machine learning, Dietary interventions, Personalized nutrition, Just-in-time-adaptive interventions (JITAIs), Nutrition
Subject terms: Health care, Nutrition
Introduction
Type-2 diabetes (T2D) accounts for more than 90% of the 537 million diabetes cases worldwide1 and this number is projected to reach at least 1.3 billion by 20502,3. Given its growing global burden, effective management strategies are urgently needed. Nutrition plays a central role in T2D management4 with dietary recommendations—such as adopting low-calorie5,6, low-carbohydrate7, and low glycemic index diets8—often recommended to control blood glucose levels9,10.
Postprandial glucose (PPG) excursions, often characterized as post-meal spikes in blood glucose levels, present one key target for dietary interventions in T2D management11. PPG excursions contribute to elevated glycated hemoglobin (HbA1c)—a long-term marker of blood glucose12—and are independently associated with an increased risk of cardiovascular complications13,14, neuropathy15, and kidney damage15. PPG levels exhibit both inter- and intra-individual variability across relatively short time frames, related to meal composition (fat, carbohydrates, protein, fiber), meal timing, as well as lifestyle factors, such as stress, sleep, and physical activity16–18, among other factors. PPG excursions can be measured using continuous glucose monitors (CGMs), which insert a small needle under the skin (usually on the abdomen or upper arm) and track glucose levels in the interstitial fluid—typically every 5 to 15 minutes19. Together, the near-real-time monitoring provided by CGMs and high temporal variability, make PPG excursions a modifiable and actionable target for dietary interventions in real-world, non-clinical settings20.
However, a key challenge for dietary interventions that aim to predict and prevent PPG excursions is the substantial inter-individual variability in both glycemic and behavioral responses. Individuals with T2D show different post-meal glucose patterns to the same foods and vary in adherence to dietary recommendations. General guidelines often recommend reducing carbohydrate intake or increasing fiber, but these strategies may not be equally effective for all individuals9,10,21. CGM-based studies have shown that two individuals can exhibit different glycemic responses to the same carb-standardized meals22,23, suggesting that generic recommendations (e.g., lower carb intake) may not have uniform effects across individuals. This inter-individual variability has been linked, in part, to differences in gut microbiota and genetic factors23–25. Beyond biological differences, variability in the effectiveness of dietary recommendations is further compounded by a combination of psychological, behavioral, and socio-economic factors that can influence individuals’ adherence to recommendations and overall T2D self-management26–30. Together, these individual differences underscore limitations of one-size-fits-all dietary approaches and call for more targeted dietary interventions.
A growing body of work points to a shift toward personalized nutrition—that is, personalizing dietary recommendations and nutrition plans to an individual’s unique characteristics, such as their biology, lifestyle, health status, environment, and preferences31,32 ,with increasing evidence that personalized dietary interventions can improve cardiometabolic health outcomes, relative to standardized dietary recommendations33,34. Advances in digital health technologies35 including just-in-time adaptive interventions (JITAIs), offer new opportunities to deliver such personalized interventions as individuals go about their daily lives36. JITAIs can integrate continuous data from smartphones and wearables (e.g., CGMs) to dynamically adapt and deliver context-sensitive dietary prompts. JITAIs have shown promise for behavior change in smoking cessation37,38 and physical activity39 but their application for T2D dietary management is still emerging40,41. A critical first step in developing JITAIs for glycemic control is to examine whether PPG excursions can be predicted at the individual level and identify which factors (e.g., food choices and meal timing) are most predictive of an individual’s state of vulnerability36—period of heightened susceptibility to a PPG excursion . Identifying this specific time window is key to trigger the timely delivery of dietary prompts, thereby increasing their relevance and behavior change potential 36.
To address these questions, we use a public, observational dataset of 67 adults with T2D from Shanghai, China42 who wore CGMs and completed self-reported logs over the course of approximately 13 days (SD = 1.90 days, 2,463 total PPG excursions). Building on prior work in digital biomarker development16,43,44 we examine: (RQ1) Can personalized ML models predict PPG excursions at the individual level? (RQ2) How does PPG prediction performance vary across individuals? We compare two models across two data collection approaches, one using passively collected, individual-level CGM observations (low-burden) and another combining CGM observations with manually logged meal and glucose-lowering agents intake (high-burden). This model comparison allows us to examine the trade-off between prediction performance and user burden with self-logging meals, a common feature in many T2D self-management apps45–47; thereby identifying when self-logging improves PPG predictions and when passive CGM data alone may suffice. Third, we examine (RQ3) which dietary and temporal factors best predict individual vulnerability states to PPG excursions at the individual level.
Results
Sample characteristics
Our final sample included 67 adults with T2D, with a mean age of approximately 61 years (SD = 13.39, median = 63.00), who contributed a total of 2,463 postprandial glucose (PPG) excursions over an average of approximately 13 days (SD = 1.90, median = 14.00). Participants reported consuming an average of 3.23 meals per day (SD = 0.56), totaling roughly 912.72 g of food daily (SD = 272.06 g), including staples (222.00 g), animal products (144.88 g), vegetables (155.93 g), fruits (31.00 g), legumes and nuts (8.81 g), dairy (82.32 g), and sweets (1.54 g). Consistent with T2D diagnostic criteria, participants had a mean HbA1c of 67.83 mmol/mol (SD = 26.04) and a mean fasting glucose of 157.05 mg/dl (SD = 59.09). On average, individuals had 36.76 usable PPG excursions (SD = 9.93), with 41.11% of those labeled as excursions—i.e., glucose values exceeding that individual’s typical postprandial baseline. Nearly all participants (94.03%) reported having occurrence of hypoglycemia. See Supplementary Table S1 for ‘Sample demographics and clinical characteristics’ and Fig. S1 for the Study Participant Flowchart.
Personalized models predict individual PPG excursions
We first examined whether personalized ML models can predict PPG excursions at the individual level. Overall, the best personalized models–created by combining the highest performing methods from the low-burden and high-burden approaches–predicted PPG excursions with a mean F1-score of 75.88% (median = 78.26%, SD = 17.28%). The low-burden approach, trained on the first ~ 6 days of individual-level CGM observations, achieved a mean F1-score of 73.44% (median = 76.92%, SD = 18.66%). The high-burden approach, trained on the first ~ 6 days of combined CGM observations and manual meal and medication tracking, resulted in a mean F1-score of 73.73% (median = 76.92%, SD = 17.31%). For more details on model performance, including precision, recall, and other metrics, see Supplementary Table S2. Inspecting the best performing F1-scores at the individual level revealed wide variability in model performance, with individual F1-scores ranging from 20 to 100% (Fig. 1B).
Fig. 1.
Model performance. (A) Performance metrics for the best personalized models (combining high-burden and low-burden models) to predict individual PPG excursions. (B) Inter-individual variability in model performance. Dots present the within-person median F-1 score across low-burden and high-burden models for each individual; horizontal lines show the within-person range across both low-burden and high-burden model performance for each individual; the vertical dashed line presents sample median F1-score. For three individuals, the F1-score could not be calculated for one of the two models due to undefined precision values (i.e., no positive predictions). Visualization for Fig. 1B is adapted from Refs.48,49.
Individual differences in low-vs. high-burden model performance across individuals
Our second research question examined how PPG prediction performance varies across low-burden and high-burden models. On average, we found no differences in low-burden and high-burden model performance (Fig. 1A). However, when examining individual differences, we found that the low-burden model outperformed the high-burden model for 34.33% of the sample (n = 23), while the high-burden model outperformed the low-burden model for 31.34% (n = 21) of the sample. No differences in performance were observed for the remaining 34.33% (n = 23) of participants. See Fig. 2 for individual slopes across both low- and high-burden models. Wilcoxon signed-rank tests revealed that the low-burden model significantly improved the median F1-score by 7.01%, from 66.67% (high-burden model) to 73.68% (low-burden model) (Z = 4.76, p < 0.001, n = 23; Fig. 2A) for the first sub-sample. In contrast, for the second sub-sample, the high-burden model significantly increased the median F1-score by 6.79%, from 73.21% (low-burden model) to 80.00% (high-burden model) (Z = 4.48, p < 0.001, n = 21; Fig. 2B).
Fig. 2.
Individual differences in low-burden vs. high-burden model performance. Figures present the within-person F1-scores across both low-burden and high-burden models for (A) Individuals for whom the low-burden models outperformed; (B) Individuals for whom the high-burden models outperformed. (C) Individuals for whom both low-burden and high-burden models performed similarly. Statistics are based on the paired Wilcoxon signed-rank test. Individual slopes are shown by gray lines, and the median is represented by the bold black line.
Vulnerability states to PPG excursions vary widely across individuals
We next investigated which dietary and temporal factors best predict individual vulnerability states to PPG excursions—defined as periods of heightened susceptibility of elevated post-meal blood glucose levels at the individual level; and how these predictors of PPG vulnerability differ across individuals. To identify the top vulnerability predictors, Following Ref.16, we calculated the percent contribution of each feature towards the total feature importance within each participant’s best-performing model for predicting PPG excursions. See Supplementary Table S3 for all features across high- and low-burden models. As shown in Fig. 3 and Fig. S3, no two participants shared the same PPG vulnerability state, in both direction and strength. See additional feature importance plots (Fig. S2) for individuals in whom the high-burden and low-burden models performed similarly, as well as SHAP values (Fig. S3), which further illustrate these variability patterns across models. For those for whom the high-burden model performed best (n = 21), the top five PPG vulnerability predictors were total grams intake, vegetable intake, staples, animal foods and hour of the day. However, none of these predictors were universally shared across participants (Fig. 3). For example, total grams intake had importance scores ranging from 0 to 100% (M = 23.04%) and was shared by 15 of 21 participants. Similarly, vegetable intake had an average importance of 17.05%, ranging from 0 to 90.72%, and was shared by 10 of 21 of participants. For participants for whom the low-burden performed best, the top five PPG vulnerability features included hour of the day, time in study, day of the week, day of the months, and previous PPG excursion. While the time of day was a key predictor of PPG vulnerability , the exact time when PPG excursions occurred varied widely across participants. Overall, these findings show wide inter-individual variability , highlighting that no single factor predicted vulnerability to PPG across individuals.
Fig. 3.
Vulnerability states predicting PPG excursions among a random subsample of participants for whom (A) the high-burden model or the (B) low-burden model performed best. The importance of each feature category (e.g., meals, temporal context) is expressed as a percentage of the total feature importance for each individual16.
Discussion
Individuals with T2D vary widely in their glycemic responses, dietary patterns, habits, and social environments, making it difficult to apply generic dietary recommendations for T2D management22,23. These inter-individual differences underscore the need for more effective personalized dietary interventions for T2D management24,50,51,52. In this study, we examined whether personalized ML models can predict PPG excursions at the individual level, a key outcome in T2D management11. We also examined individual differences in the predictability of PPG excursions and momentary vulnerability to these excursions, among a sample of adults with T2D in Shanghai, China; a highly relevant context as China has one of the highest T2D prevalence rates globally53. We found that personalized ML models can predict future PPG excursions (F1-score: M = 75.88%; median = 78.26%), trained on approximately six days of past individual-level CGM, dietary and temporal data. Predictive performance varied substantially across individuals, with F1-scores ranging from 20 to 100%, suggesting that the PPG excursions of some individuals were more predictable than those of others. For some individuals, predictions based solely on passively collected CGM data were sufficient. For others, predictive performance of PPG excursions improved with additional manual self-logging of meals. Notably, the contribution of meal and temporal factors in predicting PPG excursions varied widely across individuals, underscoring that there is no single, shared state of vulnerability predicting future PPG excursions.
These findings extend prior work in two key ways. First, we replicate earlier studies demonstrating that PPG responses can be feasibly predicted in real-world settings—both among healthy adults23,54 and adults with T1D43,44—using models trained on past dietary and temporal factors. Building on these findings, we show that states of vulnerability, or momentary susceptibility to PPG excursions—quantified as the relative importance of dietary or temporal factors in predicting PPG excursions—varied substantially from one participant to another. For instance, carbohydrate-rich staples (e.g., noodles, rice) were predictive of PPG excursions for 71.43% of participants (n = 15), with their importance ranging widely from 0 to 77.68%. Notably, these inter-individual differences were not associated with baseline variations in the amount of carbohydrates consumed per meal or hypoglycemic agent intake in our data.
Several factors may help explain the inter-individual differences in vulnerability to PPG excursions observed in our data. First, on a biological level, variation in PPG is associated with variation in individuals’ ability to digest and metabolize carbohydrates23,54–57. Differences in microbial composition can influence how carbohydrates are broken down and absorbed, through effects on short-chain fatty acid production, inflammation, and enzyme activity50. Additionally, individual variation in insulin sensitivity, exocrine pancreatic enzyme function, and glucose transporter expression may affect how efficiently glucose is cleared from the bloodstream58, with intestinal transit time further modulating glucose absorption59 and more rapid gastric emptying related to PPG excursions60. Gastric emptying alone is estimated to explain up to 30–40% of the variance in PPG response to carbohydrate-containing meals61. Further, genetic factors—such as variation in AMY1—may affect starch digestion, with those who metabolize starchy foods more rapidly potentially more likely to experience PPG excursions57. Together, these interconnected mechanisms may, in part, help explain why individuals with T2D experiencevariable PPG excursions, even when consuming similar meals.
In addition, contextual factors—such as macronutrient balance, food order, and meal timing—may also, in part, explain differences in vulnerability to PPG excursions23,54,55. For instance, even if the total carbohydrate intake is constant, meals with a higher carbohydrate ratio—more carbs relative to fat, protein, and fiber—may be more likely to produce PPG excursions. Conversely, meals with a lower carbohydrate ratio—by balancing carbohydrates with fat, protein, and fiber—may dampen PPG excursions, as these nutrients slow gastric emptying and delay the rate at which glucose enters the bloodstream50. Food order may also play a role, with evidence that eating carbohydrates after vegetable and/or protein-rich foods may dampen PPG excursions62,63. Another factor is overall meal timing, as eating late in the evening may enhance PPG excursions to the evening meal and subsequent breakfast64. Individuals with higher body mass index, associated with insulin resistance, may also be more vulnerable to PPG excursions, at baseline, even when consuming identical meals56. Overall, the inter-individual variation in PPG excursions likely reflects a complex interplay between biological predispositions and modifiable dietary behaviors—offering actionable targets for glycemic control.
Building on these insights, the state of vulnerability framework for predicting PPG excursions can be translated into digital health tools that support both patients and healthcare providers in managing T2D more effectively65,66. Patient-facing mobile health apps and dashboards (e.g., Oviva app67, mySugr68, and DarioHealth69 ) may integrate ML models that continuously track individual-level CGM data, meal logs, and daily routines to identify personalized patterns of PPG vulnerability and trigger dietary and lifestyle prompts to prevent future PPG excursions. By detecting when, and under what conditions, an individual is most likely to experience a PPG excursion—such as after eating certain food combinations or at specific times of day—these apps can deliver real-time, tailored dietary recommendations and behavioral nudges. For example, if a user’s data shows that consuming high-carbohydrate staples (e.g., white rice) in the evening consistently triggers PPG excursions, the app might send a pre-meal alert recommending lower-glycemic alternatives e.g., (cauliflower rice). Prompts could also trigger brief psychological distancing strategies, such as mindfulness exercises, to reduce cravings and create distance from high–glycemic-index cues, shown to motivate behavior change in prior work70 , or recommend a walk after the meal71,72 . Similarly, if mornings are a high-risk time for PPG excursions, prompts to choose balanced breakfast meals rich in fiber and protein can be provided adaptively. This approach—characteristic of JITAIs36—ensures that support is both context-aware and timely, increasing the potential of relevant behavior change.
From a healthcare provider’s perspective, personalized insights into PPG excursions can be integrated into clinical decision support systems to help enable patient-centered care and planning . Dashboards like Roche’s Diabetes Care Platform73 and Glooko’s Population tracker platform74 may integrate PPG vulnerability patterns, derived from past CGM observations and dietary logs75 to help providers visualize trends over time and make more informed context-based recommendations. Additionally, general practitioners (GPs), endocrinologists, and dietitians, could use visualizations of a patient’s PPG vulnerability patterns during consultations to move beyond generic dietary advice, and towards personalized meal planning and treatment based on continuous physiological and behavioral data. For instance, providers could identify specific meal components or times when a patient is most at risk and develop targeted dietary recommendations to target PPG excursions. One relevant example of embedding continuous measurements into general practice is the ongoing effort to digitize the SGED score—a measurement tool to help GPs in Switzerland monitor and improve the quality of T2D care, developed by the Swiss Society for Endocrinology and Diabetes76. The SGED score currently includes multiple cross-sectional indicators, such as HbA1c, blood pressure, and self-reported lifestyle measures, and is used to assess patient outcomes at both individual and population levels. Integrating continuous metrics of vulnerability to PPG excursions into the SGED score could enhance its clinical utility by capturing temporal risk patterns in patients’ daily lives. For example, signal that a patient typically experiences PPG exursions after lunch rich in refined carbohydrates—could prompt GPs to remotely adjust dietary guidance or medication timing accordingly. This kind of digital integration could also support value-based care models—which reward providers for outcomes rather than services—by incorporating short-term, dynamic indicators of glucose control that better reflect real-world patient experiences and enable timely, personalized interventions77. Overall, the proposed PPG vulnerability framework may help clinicians leverage granular CGM and dietary data to identify patient-specific risk patterns and adapt care plans proactively; with potential to enable more precise and proactive T2D management.
The results of this study should be interpreted in light of its strengths and limitations. A key strength is that the current observational study was conducted in a real-world setting, enhancing the ecological validity and relevance of our findings beyond the clinic or the lab. To our knowledge, this is the first study to predict individual vulnerability to PPG excursions in a Chinese adult population with T2D diabetes. However, the sample primarily comprised Chinese adults living in Shanghai who were predominantly using glucose-lowering agents, which may limit the generalizability of these results to other populations with T2D. Notably, baseline glucose profiles and PPG responses can vary by ethnicity. For example, individuals of Asian descent with T2D may have relatively higher PPG levels compared to those with Caucasian descent78 potentially due to differences in insulin secretion and sensitivity79. This variability highlights the need for caution when generalizing these findings across different populations. To improve generalizability and clinical utility, further research is needed involving more diverse demographic groups, including different ethnicities, geographic regions, treatment regimens, and larger study samples80. Further, incorporating additional wearables to monitor sleep, physical activity, heart rate variability, and stress, can potentially improve the predictability of PPG excursions81. For example, research integrating smartwatch data to track additional lifestyle measurements (e.g., sleep and stress) has shown that it is possible to improve the F1-score for glucose excursion predictions to 84–86% among healthy individuals16. Nevertheless, our current findings suggest that CGM and temporal data alone already provides a promising level of predictability in T2D contexts for some individuals.
One important next step is to embed the PPG vulnerability framework into Micro-Randomized Controlled Trials (mRTs)82, which can offer a rigorous way to evaluate the causal effects of dynamic and personalized dietary prompts for glycemic control optimized on past PPG excursions, relative to more generic standard dietary recommendations. In mRT trials, decision points—such as mealtimes—can be repeatedly randomized to either deliver or withhold tailored or personalized prompts (e.g., a food swap suggestion or a motivational nudge based on prior PPG excursions). This intervention design enables researchers to identify which dietary recommendations may work best, for whom, and under what circumstances at the individual level83. Crucially, this step also requires distinguishing between within-person and between-person variability in PPG excursions. Some predictors of PPG vulnerability may reflect relatively stable, between-person characteristics, such as microbiome composition, insulin sensitivity, or genetic variation. Others may reflect dynamic, within-person states that fluctuate over time—such as momentary stress, previous night sleep, physical activity in the past hour, or prior snack intake. Disentangling these sources of variation is essential for adaptive JITAI design, as it enables ML models to adjust not only between individuals but also within the same individual across changing temporal contexts84. Future longitudinal mRT studies can map these evolving factors and inform the timing, content, and intensity of personalized dietary interventions targeting PPG excursions among individuals with T2D.
In conclusion, we found that personalized ML models can feasibly predict individual PPG excursions among a sample of Chinese adults with T2D who are undertaking glucose-lowering agents; with individual predictors to PPG excursions varying widely across individuals. No two participants shared the same state of vulnerability to PPG excursions. Future research can integrate these individual-level PPG vulnerability patterns in JITAIs, mHealth apps, and clinical decision support tools to personalize context-aware dietary interventions, with potential to optimize more effective, patient-centered diabetes care .
Methods
Data
We used the ShanghaiT2DM Dataset42 a publicly available, observational dataset of adults with T2D, recruited in Shanghai, China. The dataset, made available by Zhao and colleagues85 was developed to support ML research aimed at improving glycemic control. Participants were enrolled through the Diabetes Data Registry and Individualized Lifestyle Intervention at Shanghai East Hospital (September 2019 to March 2021) and Shanghai Fourth People’s Hospital (June 2021 to November 2021). Our study made use of the complete ShanghaiT2DM dataset, version 2, released on January 4, 202385. Given that the current investigation presents a secondary analysis of an existing dataset, no additional recruitment was conducted beyond the original data collection period (September 2019 to November 2021). The current investigation was conducted using publicly available, anonymized data,85, and thus ethics approval is not applicable. The original data collection and methods were approved by the Ethics Committees of Shanghai East Hospital and Shanghai Fourth People’s Hospital, affiliated with Tongji University, in accordance with the Declaration of Helsinki. Informed consent was obtained from all participants. The original study ethics approval number is not provided in the public documentation for secondary analyses.
Participants
Eligible participants included 109 patients diagnosed with T2D86 aged 18 or older, who had available CGM recordings for at least 3 days. Patients were excluded if they reported alcohol or drug abuse, were unable to comply with the study, or were deemed unsuitable by the original investigators who completed the data collection. Our analysis included 67 participants with T2D, with a total 2’463 PPG observations. Forty-two participants were excluded from our analyses (from these: n = 1 for having no available PPG observations; n = 36 for having insufficient PPG observations to split the data in a train-test split; ≤20 observations in total; and n = 5 due to insufficient variability to run the predictive models, with all observations belonging to the same class; see Supplementary Fig. S1 ‘Study flowchart and exclusion criteria’).
Study procedure
Participants were instructed to wear a CGM device, FreeStyle Libre (Abbott Diabetes Care87), and to self-report their meal and glucose-lowering agent intake over the course of 14 days. Participants also provided laboratory blood measurements, beyond the scope of the current investigation, six months prior to the observational data collection.
Measures
Data for model building included four types of features: CGM recordings, self-reported meal content, glucose-lowering agents intake, and temporal measures created through time stamps. See Supplementary Table S3 ‘Features categorization’ for the full feature list and categorization.
Meal content features
The meal logs provided by participants were categorized into food groups commonly consumed in China88 including: (1) staples (e.g., rice, noodles), (2) vegetables, (3) fruits, (4) animal foods (e.g., chicken, eggs), (5) dairy products, (6) legumes, nuts, and seeds, and (7) sweets. These food groups were coded as both binary variables and as food group grams per meal, in addition to the total grams of food intake. Consistent with prior work16 all meal content and glucose-lowering agent intake variables were calculated for the current period and lagged for the previous 8-hour intake and the previous 24-hour intake.
Glucose-lowering agent intake features
Participants recorded their daily glucose-lowering agent intake including the exact timing. Medication logs were converted into time-varying variables to account for the different effects and doses of diabetes insulin medications on blood sugar levels over time. Basal and intermediate-acting insulins have a gradual effect over 2 to 24 h89,90; bolus insulin acts quickly within 15 min to 4 hours91; and non-insulin hypoglycemic agents start working immediately and last for about 6 hours92.
Temporal features
Temporal features were created from the time stamps in the meal survey logs. Variables were created for mealtime, day of the month, months of the year, hour of the day and day of the study duration. To account for possible fasting periods, binary mealtime indications in the last 8 h and 24 h, day of the week, were also included.
PPG excursions
Based on previous work16, we calculated PPG excursions, relative to an individuals’ PPG baseline, as our main outcome. A binary variable for 2-hour PPG was determined after each meal, indicating whether it was higher or lower than the previous mean PPG observation, thus providing each participant with a personal rolling baseline. The 2-hour PPG value was calculated using the 2-hour incremental area under the curve following a meal93. This allowed us to compute PPG excursion approximately 2 h after each meal relative to each participant’s previous value16.
Model development
Data preparation
We developed two personalized ML models for each participant, a low-burden and a high-burden model. The low-burden model included the following features: previous (lagged) PPG excursion and temporal features (such as mealtime, time of day). The high-burden-model included the same features, in addition to dietary intake (food groups and total intake per meal, in the last 8 and 24 h) and self-reported diabetes medicine-intake (glucose-lowering agents including non-insulin hypoglycemic agents and bolus, basal, and intermediate insulin intake, dose, and effect time). See Supplementary Table S3 ‘Features categorization’ for full features and their categorization. Missing values were imputed using single imputation, and missingness dummy variable columns were introduced in the model.
Model training and cross-validation
For each individual, we employed a 70/30 within-person training-test split due to the time series nature of the data. The first 70% of the observations served as the training set, while the remaining 30% was used as the test set. To determine the final model, we performed time series rolling origin cross-validation (CV) with four folds on the training set. Rolling origin cross-validation involves sequentially expanding the training data window while keeping the test data fixed. This approach is specific to time-series data and ensures that the model does not use future information to predict past events49,94.
To enable a train-test split (requiring at least 14 observations for training and 6 for testing) and further subdivision of the training set into a 4-fold rolling origin cross-validation scheme, we required a minimum of 20 PPG observations per individual. Participants with fewer than 20 observations were excluded from the analysis to ensure sufficient data for both model training and validation. This threshold was selected to balance the trade-off between maximizing data inclusion and maintaining the integrity of the time-series modeling approach, in line with prior studies80,95,96. As the current study is a secondary analysis of a publicly available dataset, no a-priori power calculation was conducted. We used all available data provided by the original authors. Although power calculation in machine learning or emerging person-specific approaches are often not considered97 the sample size used in the prior analyses is comparable to prior studies developing similar predictive personalized, predictive models to allow for robust estimates (see example Refs98,99).
Hyper-parameter tuning
Hyperparameters for XGBoost were determined using a 4-fold CV grid search method (nrounds = seq(from = 50, to = 150, by = 50); eta = c(0, 0.0001, 0.001, 0.01, 0.015); max_depth = c(1, 2, 3); gamma = c(−0.5, 0, 0.5); colsample_bytree = c(0.5, 1, 2); min_child_weight = c(1, 2); subsample = 1), which systematically explores various combinations to find the optimal settings based on predefined criteria.
Model evaluation
To predict PPG excursions, we employed personalized Extreme Gradient Boosting (XGBoost)100 a composite learning algorithm used in similar, prior work101. To evaluate model performance (RQ1), we used F1-score, which balances precision and recall in classifying PPG excursions102. To compare the performance of low-burden and high-burden models (RQ2), we compared the model performance F-scores using Wilcoxon signed-rank tests, to account for non-normality.
Feature importance
To determine feature importance for each individual model, we utilized gain-based global feature importance and SHAP (SHapley Additive exPlanations) values derived from XGBoost103.
PPG vulnerability
To assess each individual’s vulnerability to PPG excursions (RQ3), we computed gain-based global feature importance to quantify the contribution of each feature to the model’s predictions. For each individual, we calculated the mean absolute importance value for each feature across all data points, representing its average impact on the model’s output. To express these contributions as relative percentages, we normalized each feature’s mean absolute importance value by dividing it by the sum of all features’ mean absolute importance values for that individual. This normalization yielded percentage contributions, enabling us to rank features based on their relative impact on the model’s predictions for each participant. The resulting pattern of relative feature importances constitutes the individual’s PPG vulnerability profile, highlighting which factors most significantly influence their glycemic responses. All analyses were conducted using R version 4.4.1.
Electronic supplementary material
Below is the link to the electronic supplementary material.
Author contributions
V.B. and M.J. conceived the idea, conducted the formal analyses. and wrote the first version of the manuscript. T.K. and M.J. provided feedback on the manuscript and revised it. T.K. and M.J. provided methodological guidance. M.J. provided supervision.
Funding
Open access funding provided by Swiss Federal Institute of Technology Zurich. V.B., T.K., and M.J. are affiliated with the Centre for Digital Health Interventions, a joint initiative of the Institute for Implementation Science in Health Care, University of Zurich, the Department of Management, Technology, and Economics at ETH Zurich, and the Institute of Technology Management and School of Medicine at the University of St.Gallen, Centre for Digital Health Interventions is funded in part by Mavie Next, an Austrian health care provider, CSS, a Swiss health insurer, and MTIP, a growth equity firm. TK was also a co-founder of Pathmate Technologies, a university spin-off company that creates and delivers digital clinical pathways. However, Mavie Next, CSS, MTIP or Pathmate Technologies were involved in this protocol. The authors declare no competing interests.
Data availability
The original dataset analyzed during the current study is available in the Figshare repository by Zhao et al. 2023: https://figshare.com/collections/Diabetes_Datasets_ShanghaiT1DM_and_ShanghaiT2DM/6310860/2.
Code availability
The code and data to reproduce the data pre-processing and analyses for the given study are available at the following repository: https://github.com/VictoriaKat/Scientific-Reports-T2D-Glucose-Excursions.
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Ahmad, E., Lim, S., Lamptey, R., Webb, D. R. & Davies, M. J. Type 2 diabetes. Lancet400, 1803–1820 (2022). [DOI] [PubMed] [Google Scholar]
- 2.GBD 2021 Diabetes Collaborators. Global, regional, and National burden of diabetes from 1990 to 2021, with projections of prevalence to 2050: a systematic analysis for the global burden of disease study 2021. Lancet402, 203–234 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Chew, N. W. S. et al. The global burden of metabolic disease: data from 2000 to 2019. Cell. Metab.35, 414–428e3 (2023). [DOI] [PubMed] [Google Scholar]
- 4.Borse, S. P., Chhipa, A. S., Sharma, V., Singh, D. P. & Nivsarkar, M. Management of type 2 diabetes: current strategies, unfocussed aspects, challenges, and alternatives. Med. Princ Pract.30, 109–121 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Umphonsathien, M. et al. Effects of intermittent very-low calorie diet on glycemic control and cardiovascular risk factors in obese patients with type 2 diabetes mellitus: A randomized controlled trial. J. Diabetes Invest.13, 156–166 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Sellahewa, L., Khan, C., Lakkunarajah, S. & Idris, I. A. Systematic Review of Evidence on the Use of Very Low Calorie Diets in People with Diabetes. (2017). [DOI] [PubMed]
- 7.Bolla, A. M., Caretto, A., Laurenzi, A., Scavini, M. & Piemonti, L. Low-Carb and Ketogenic Diets in Type 1 and Type 2 Diabetes. Nutrients 11, (2019). [DOI] [PMC free article] [PubMed]
- 8.Low-glycemic index. Diets as an intervention for diabetes: a systematic review and meta-analysis. Am. J. Clin. Nutr.110, 891–902 (2019). [DOI] [PubMed] [Google Scholar]
- 9.Al-Adwi, M. E. et al. Effects of different diets on glycemic control among patients with type 2 diabetes: A literature review. Nutr. Health. 10.1177/02601060221112805 (2023). [DOI] [PubMed] [Google Scholar]
- 10.Systematic review and. meta-analysis of different dietary approaches to the management of type 2 diabetes. Am. J. Clin. Nutr.97, 505–516 (2013). [DOI] [PubMed] [Google Scholar]
- 11.Ruijgrok, C. et al. Reducing postprandial glucose in dietary intervention studies and the magnitude of the effect on diabetes-related risk factors: a systematic review and meta-analysis. Eur. J. Nutr.60, 259–273 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Diabetes & Diagnosis & Tests. https://diabetes.org/about-diabetes/diagnosis
- 13.Antonio, C. Postprandial glucose regulation and diabetic complications. Arch. Intern. Med.164, 2090–2095 (2004). [DOI] [PubMed] [Google Scholar]
- 14.Hershon, K. S., Hirsch, B. R. & Odugbesan, O. Importance of postprandial glucose in relation to A1C and cardiovascular disease. Clin. Diabetes. 37, 250–259 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Post-prandial hyperglycemia. Is an important predictor of the incidence of diabetic microangiopathy in Japanese type 2 diabetic patients. Biochem. Biophys. Res. Commun.336, 339–345 (2005). [DOI] [PubMed] [Google Scholar]
- 16.Bent, B. et al. Engineering digital biomarkers of interstitial glucose from noninvasive smartwatches. NPJ Digit. Med.4, 89 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Cox, D. J. et al. Behavioral strategies to lower postprandial glucose in those with type 2 diabetes May also lower risk of coronary heart disease. Diabetes Ther.10, 277–281 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Yao, J. et al. Diet, physical activity, and sleep in relation to postprandial glucose responses under free-living conditions: an intensive longitudinal observational study. Int. J. Behav. Nutr. Phys. Act.21, 142 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Leahy, J. J. L. et al. Optimizing postprandial glucose management in adults with Insulin-Requiring diabetes: report and recommendations. J. Endocr. Soc.3, 1942–1957 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Association of the. Glucose patterns after a single nonstandardized meal with the habitual diet composition and features of the daily glucose profile in individuals without diabetes. Am. J. Clin. Nutr.121, 246–255 (2025). [DOI] [PubMed] [Google Scholar]
- 21.de Carvalho, G. B. et al. Effect of different dietary patterns on glycemic control in individuals with type 2 diabetes mellitus: A systematic review. Crit. Rev. Food Sci. Nutr.60, 1999–2010 (2020). [DOI] [PubMed] [Google Scholar]
- 22.Hirsch, S., Barrera, G., Leiva, L., de la Maza, M. P. & Bunout, D. Variability of glycemic and insulin response to a standard meal, within and between healthy subjects. Nutr. Hosp.28, 541–544 (2013). [DOI] [PubMed] [Google Scholar]
- 23.Zeevi, D. et al. Personalized nutrition by prediction of glycemic responses. Cell163, 1079–1094 (2015). [DOI] [PubMed] [Google Scholar]
- 24.Pasmans, K., Meex, R. C. R., van Loon, L. J. C. & Blaak, E. E. Nutritional strategies to attenuate postprandial glycemic response. Obes Rev23, e13486 (2022). [DOI] [PMC free article] [PubMed]
- 25.Gibney, E. R. Personalised nutrition – phenotypic and genetic variation in response to dietary intervention. Proceedings of the Nutrition Society 79, 236–245 (2020). [DOI] [PubMed]
- 26.Brown, S. A. et al. Biobehavioral determinants of glycemic control in type 2 diabetes: A systematic review and meta-analysis. Patient Educ. Couns.99, 1558–1567 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Nelson, K. M., McFarland, L. & Reiber, G. Factors influencing disease Self-Management among veterans with diabetes and poor glycemic control. J. Gen. Intern. Med.22, 442–447 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Walker, R. J., Smalls, B. L., Hernandez-Tejada, M. A., Campbell, J. A. & Egede, L. E. Effect of diabetes self-efficacy on glycemic control, medication adherence, self-care behaviors, and quality of life in a predominantly low-income, minority population. Ethn. Dis.24, 349 (2014). [PMC free article] [PubMed] [Google Scholar]
- 29.Hessler, D. et al. Reductions in regimen distress are associated with improved management and glycemic control over time. Diabetes Care. 37, 617–624 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Berkowitz, S. A. et al. Food insecurity, food ‘deserts,’ and glycemic control in patients with diabetes: A longitudinal analysis. Diabetes Care. 41, 1188–1195 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Rein, M. et al. Effects of personalized diets by prediction of glycemic responses on glycemic control and metabolic health in newly diagnosed T2DM: a randomized dietary intervention pilot trial. BMC Med.20, 1–13 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Bush, C. L. et al. Toward the definition of personalized nutrition: A proposal by the American nutrition association. J. Am. Coll. Nutr.39, 5–15 (2020). [DOI] [PubMed] [Google Scholar]
- 33.Bermingham, K. M. et al. Effects of a personalized nutrition program on cardiometabolic health: a randomized controlled trial. Nat. Med.30, 1888–1897 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Arias-Marroquín, A. T. et al. Personalized versus Non-personalized nutritional recommendations/interventions for type 2 diabetes mellitus remission: A narrative review. Diabetes Ther.15, 749–761 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Huynh, P., Fleisch, E., Brändle, M., Kowatsch, T. & Jovanova, M. Digital health technologies for metabolic disorders in older adults: A scoping review protocol. BioRxiv10.1101/2024.02.26.24303372 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Nahum-Shani, I. et al. Just-in-Time adaptive interventions (JITAIs) in mobile health: key components and design principles for ongoing health behavior support. Ann. Behav. Med.52, 446–462 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.A Just-In-Time. Adaptive intervention (JITAI) for smoking cessation: feasibility and acceptability findings. Addict. Behav.136, 107467 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Vinci, C. et al. Proximal effects of a Just-in-Time adaptive intervention for smoking cessation with wearable sensors: microrandomized trial. JMIR Mhealth Uhealth. 13, e55379 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Hardeman, W., Houghton, J., Lane, K., Jones, A. & Naughton, F. A systematic review of just-in-time adaptive interventions (JITAIs) to promote physical activity. Int. J. Behav. Nutr. Phys. Act.16, 31 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Daryabeygi-Khotbehsara, R. et al. Just-In-Time adaptive intervention to sit less and move more in people with type 2 diabetes: protocol for a microrandomized trial. JMIR Res. Protoc.12, e41502 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Zhao, L. et al. A micro-randomized pilot study to examine the impact of just-in-time nudging on after-dinner snacking in adults with type 2 diabetes: A study protocol. Diabetes Obes. Metab.25, 2439–2446 (2023). [DOI] [PubMed] [Google Scholar]
- 42.Zhao, Q. et al. Chinese diabetes datasets for data-driven machine learning. Sci. Data. 10, 35 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Annuzzi, G. et al. Impact of nutritional factors in blood glucose prediction in type 1 diabetes through machine learning. IEEE Access.11, 17104–17115 (2023). [Google Scholar]
- 44.Xiong, X., Xue, Y., Cai, Y., He, J. & Su, H. Prediction of personalised postprandial glycaemic response in type 1 diabetes mellitus. Front. Endocrinol.15, 1423303 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Darby, A., Strum, M. W., Holmes, E. & Gatwood, J. A. Review of nutritional tracking mobile applications for diabetes patient use. Diabetes Technol. Ther.18, 200–212 (2016). [DOI] [PubMed] [Google Scholar]
- 46.Corsica, J. A. et al. Mobile apps for diabetes self-management: an updated review of app features and effectiveness. J. Behav. Med.48, 137–148 (2025). [DOI] [PubMed] [Google Scholar]
- 47.Krukowski, R. A., Harvey, J., Borden, J., Stansbury, M. L. & West, D. S. Expert opinions on reducing dietary self-monitoring burden and maintaining efficacy in weight loss programs: A Delphi study. Obes. Sci. Pract.8, 401–410 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Beck, E. D. & Jackson, J. J. Personalized prediction of behaviors and experiences: an idiographic Person–Situation test. Psychol. Sci.33, 1767–1782 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Jovanova, M. A person-specific Approach To Predict Health Behaviors: a Proof of Concept (University of Pennsylvania, 2023).
- 50.Guizar-Heredia, R. et al. A new approach to personalized nutrition: postprandial glycemic response and its relationship to gut microbiota. Arch. Med. Res.54, 176–188 (2023). [DOI] [PubMed] [Google Scholar]
- 51.Heber, D., Li, Z. & Ordovas, J. Precision Nutrition: the Science and Promise of Personalized Nutrition and Health (Elsevier, 2023).
- 52.Ceriello, A. Postprandial hyperglycemia and diabetes complications: is it time to treat? Diabetes54, 1–7 (2005). [DOI] [PubMed] [Google Scholar]
- 53.Liu, J. et al. Projected rapid growth in diabetes disease burden and economic burden in china: a spatio-temporal study from 2020 to 2030. Lancet Reg. Health West. Pac.33, 100700 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Model of personalized postprandial. Glycemic response to food developed for an Israeli cohort predicts responses in Midwestern American individuals. Am. J. Clin. Nutr.110, 63–75 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Berry, S. E. et al. Human postprandial responses to food and potential for precision nutrition. Nature Medicine26, 964–973 (2020). [DOI] [PMC free article] [PubMed]
- 56.Søndertoft, N. B. et al. The intestinal Microbiome is a co-determinant of the postprandial plasma glucose response. PLOS ONE. 15, e0238648 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.The physiologic. And phenotypic significance of variation in human amylase gene copy number. Am. J. Clin. Nutr.108, 737–748 (2018). [DOI] [PubMed] [Google Scholar]
- 58.Dods, R. F. Understanding Diabetes: A Biochemical Perspective (Wiley, 2013).
- 59.Rayner, C. K., Samsom, M., Jones, K. L. & Horowitz, M. Relationships of upper Gastrointestinal motor and sensory function with glycemic control. Diabetes Care. 24, 371–381 (2001). [DOI] [PubMed] [Google Scholar]
- 60.Marathe, C. S. et al. Hypoglycaemia and gastric emptying. Diabetes Obes. Metabolism. 21, 491–498 (2019). [DOI] [PubMed] [Google Scholar]
- 61.Horowitz, M., Edelbroek, M. A., Wishart, J. M. & Straathof, J. W. Relationship between oral glucose tolerance and gastric emptying in normal healthy subjects. Diabetologia36, 857–862 (1993). [DOI] [PubMed] [Google Scholar]
- 62.Shukla, A. P., Iliescu, R. G., Thomas, C. E. & Aronne, L. J. Food order has a significant impact on postprandial glucose and insulin levels. Diabetes Care. 38, e98–e99 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Ferguson, B. K. & Wilson, P. B. Ordered eating and its effects on various postprandial health markers: A systematic review. J. Am. Nutr. Assoc.42, 746–757 (2023). [DOI] [PubMed] [Google Scholar]
- 64.Acute effect of. Late evening meal on diurnal variation of blood glucose and energy metabolism. Obes. Res. Clin. Pract.5, e220–e228 (2011). [DOI] [PubMed] [Google Scholar]
- 65.Stevens, S. et al. The effectiveness of digital health technologies for patients with diabetes mellitus: A systematic review. Front. Clin. Diabetes Healthc.3, 936752 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Doyle-Delgado, K. & Chamberlain, J. J. Use of diabetes-Related applications and digital health tools by people with diabetes and their health care providers. Clin. Diabetes. 38, 449–461 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Lehmann, M., Jones, L. & Schirmann, F. App engagement as a predictor of weight loss in Blended-Care interventions: retrospective observational study using Large-Scale Real-World data. J. Med. Internet. Res.26, e45469 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Debong, F., Mayer, H. & Kober, J. Real-World assessments of mysugr mobile health app. Diabetes Technol. Ther.21, S235–S240 (2019). [DOI] [PubMed] [Google Scholar]
- 69.Sherazi, A. B. et al. Functions of mHealth diabetes apps that enable the provision of pharmaceutical care: criteria development and evaluation of popular apps. Int J. Environ. Res. Public. Health20, 64 (2022). [DOI] [PMC free article] [PubMed]
- 70.Jovanova, M. et al. Psychological distance intervention reminders reduce alcohol consumption frequency in daily life. Sci. Rep.13, 1–14 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Engeroff, T., Groneberg, D. A. & Wilke, J. After dinner rest a while, after supper walk a mile?? A systematic review with Meta-analysis on the acute postprandial glycemic response to exercise before and after meal ingestion in healthy subjects and patients with impaired glucose tolerance. Sports Med.53, 849–869 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Kaur, B., Koh, M., Ponnalagu, S. & Henry, C. J. Postprandial blood glucose response: does the glycaemic index (GI) value matter even in the low GI range? Nutr. Diabetes. 10, 1–8 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 73.Roshan, S. et al. The PROVIDE study: primary care assessment of the ROche IPDM tools for validation and implementation in diabetes management and evaluation. MedRxiv2023.12.23.2330028310.1101/2023.12.23.23300283 (2023).
- 74.Crossen, S. S., Romero, C. C., Lewis, C. & Glaser, N. S. Remote glucose monitoring is feasible for patients and providers using a commercially available population health platform. Front. Endocrinol.14, 1063290 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 75.Giger, O. F. et al. Digital health technologies and innovation patterns in diabetes ecosystems. Digit. HEALTH. 10.1177/20552076241311740 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 76.Gastaldi, G. et al. Swiss recommendations of the society for endocrinology and diabetes (SGED/SSED) for the treatment of type 2 diabetes mellitus (2023). Swiss Med. Wkly.153, 40060 (2023). [DOI] [PubMed] [Google Scholar]
- 77.Giger, O. F., Fleisch, E., Jovanova, M. & Kowatsch, T. Barriers and facilitators of implementing value-based care: the case of SwissDiabeter. Digit. Health. 11, 20552076251336322 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 78.Wolffenbuttel, B. H. R. et al. Ethnic differences in glycemic markers in patients with type 2 diabetes. Diabetes Care. 36, 2931–2936 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 79.Kodama, K. et al. Ethnic differences in the relationship between insulin sensitivity and insulin response: A systematic review and meta-analysis. Diabetes Care. 36, 1789–1796 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 80.Rajput, D., Wang, W. J. & Chen, C. C. Evaluation of a decided sample size in machine learning applications. BMC Bioinform.24, 1–17 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 81.Brügger, V., Kowatsch, T. & Jovanova, M. Wearables and smartphones for modifiable risk factors in metabolic health: a scoping review protocol. BioRxiv10.1101/2024.04.15.24305819 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 82.Walton, A., Nahum-Shani, I., Crosby, L., Klasnja, P. & Murphy, S. Optimizing digital integrated care via Micro-Randomized trials. Clin. Pharmacol. Ther.104, 53–58 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 83.Fuchs, M., Wirth, B., Bilz, S., Brändle, M., Kowatsch, T. & Jovanova, M. Exploring message receptivity and protocol adherence in a clinical study: a micro-randomized trial protocol. Proc. CHI Conf. Hum. Factors Comput. Syst. 2025, Yokohama, Japan (2025).
- 84.Relationship between. intra-individual variability in nutrition-related lifestyle behaviors and blood glucose outcomes under free-living conditions in adults without type 2 diabetes. Diabetes Res. Clin. Pract.196, 110231 (2023). [DOI] [PubMed] [Google Scholar]
- 85.Rao, W. & Diabetes Datasets ShanghaiT1DM and ShanghaiT2DM. (2023). 10.6084/m9.figshare.c.6310860
- 86.Gabir, M. M. et al. The 1997 American diabetes association and 1999 world health organization criteria for hyperglycemia in the diagnosis and prediction of diabetes. Diabetes Care. 23, 1108–1112 (2000). [DOI] [PubMed] [Google Scholar]
- 87.Nguyen, A. & White, J. R. FreeStyle libre 3. Clin. Diabetes. 41, 127–128 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 88.Zheng, Y. et al. A community-based cross-sectional study of dietary composition and associated factors among tuberculosis patients in China. Sci. Rep.14, 2676 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 89.Jacober, S. J. et al. Basal insulin peglispro: overview of a novel long-acting insulin with reduced peripheral effect resulting in a hepato-preferential action. Diabetes Obes. Metab.18 (Suppl 2), 3–16 (2016). [DOI] [PubMed] [Google Scholar]
- 90.NHS. About intermediate-acting insulin. (2023). https://www.nhs.uk/medicines/insulin/intermediate-acting-insulin/about-intermediate-acting-insulin/
- 91.Howard, J. Y. & Watts, S. A. Bolus insulin prescribing recommendations for patients with type 2 diabetes mellitus. Fed. Pract.34, S26–S31 (2017). [PMC free article] [PubMed] [Google Scholar]
- 92.Arungarinathan, G., McKay, G. A. & Fisher, M. Drugs for diabetes: part 4 acarbose. Br. J. Cardiol.18 (2), 78–81 (2011). [Google Scholar]
- 93.Brouns, F. et al. Glycaemic index methodology. Nutr. Res. Rev.18, 145–171 (2005). [DOI] [PubMed] [Google Scholar]
- 94.Li, Q., Bedi, T., Lehmann, C. U., Xiao, G. & Xie, Y. Evaluating short-term forecasting of COVID-19 cases among different epidemiological models under a Bayesian framework. Gigascience 10, (2021). [DOI] [PMC free article] [PubMed]
- 95.Vabalas, A., Gowen, E., Poliakoff, E. & Casson, A. J. Machine learning algorithm validation with a limited sample size. PLOS ONE. 14, e0224365 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 96.The effect of. Machine learning regression algorithms and sample size on individualized behavioral prediction with functional connectivity features. NeuroImage178, 622–637 (2018). [DOI] [PubMed] [Google Scholar]
- 97.Dhiman, P. et al. Sample size requirements are not being considered in studies developing prediction models for binary outcomes: a systematic review. BMC Med. Res. Methodol.23, 1–11 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 98.Soyster, P. D., Ashlock, L. & Fisher, A. J. Pooled and person-specific machine learning models for predicting future alcohol consumption, craving, and wanting to drink: A demonstration of parallel utility. Psychol. Addict. Behav.36, 296–306 (2022). [DOI] [PubMed] [Google Scholar]
- 99.Jacobson, N. C. & Chung, Y. J. Passive sensing of prediction of Moment-To-Moment depressed mood among undergraduates with clinical levels of depression sample using smartphones. Sensors (Basel)20, 3572 (2020). [DOI] [PMC free article] [PubMed]
- 100.Chen, T. & Guestrin, C. XGBoost. in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data MiningACM, New York, NY, USA, (2016). 10.1145/2939672.2939785
- 101.Zignoli, A., Skroce, K., Lipman, D. J. & Zisser, H. C. Personalized nutrition and machine-learning: exploring the scope of continuous glucose monitoring in healthy individuals in uncontrolled settings. Biomed. Signal. Process. Control. 90, 105809 (2024). [Google Scholar]
- 102.Agah, A. Medical Applications of Artificial Intelligence (CRC, 2013).
- 103.Prendin, F. et al. The importance of interpreting machine learning models for blood glucose prediction in diabetes: an analysis using SHAP. Sci. Rep.13, 16865 (2023). [DOI] [PMC free article] [PubMed] [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
The original dataset analyzed during the current study is available in the Figshare repository by Zhao et al. 2023: https://figshare.com/collections/Diabetes_Datasets_ShanghaiT1DM_and_ShanghaiT2DM/6310860/2.
The code and data to reproduce the data pre-processing and analyses for the given study are available at the following repository: https://github.com/VictoriaKat/Scientific-Reports-T2D-Glucose-Excursions.



