Original Paper
Abstract
Background: Personalized blood glucose (BG) prediction for diabetes patients is an important goal that is pursued by many researchers worldwide. Despite many proposals, only a few projects are dedicated to the development of complete recommender system infrastructures that incorporate BG prediction algorithms for diabetes patients. The development and implementation of such a system aided by mobile technology is of particular interest to patients with gestational diabetes mellitus (GDM), especially considering the significant importance of quickly achieving adequate BG control for these patients in a short period (ie, during pregnancy) and a typically higher acceptance rate for mobile health (mHealth) solutions for short- to midterm usage.
Objective: This study was conducted with the objective of developing infrastructure comprising data processing algorithms, BG prediction models, and an appropriate mobile app for patients’ electronic record management to guide BG prediction-based personalized recommendations for patients with GDM.
Methods: A mobile app for electronic diary management was developed along with data exchange and continuous BG signal processing software. Both components were coupled to obtain the necessary data for use in the personalized BG prediction system. Necessary data on meals, BG measurements, and other events were collected via the implemented mobile app and continuous glucose monitoring (CGM) system processing software. These data were used to tune and evaluate the BG prediction model, which included an algorithm for dynamic coefficients tuning. In the clinical study, 62 participants (GDM: n=49; control: n=13) took part in a 1-week monitoring trial during which they used the mobile app to track their meals and self-measurements of BG and CGM system for continuous BG monitoring. The data on 909 food intakes and corresponding postprandial BG curves as well as the set of patients’ characteristics (eg, glycated hemoglobin, body mass index [BMI], age, and lifestyle parameters) were selected as inputs for the BG prediction models.
Results: The prediction results by the models for BG levels 1 hour after food intake were root mean square error=0.87 mmol/L, mean absolute error=0.69 mmol/L, and mean absolute percentage error=12.8%, which correspond to an adequate prediction accuracy for BG control decisions.
Conclusions: The mobile app for the collection and processing of relevant data, appropriate software for CGM system signals processing, and BG prediction models were developed for a recommender system. The developed system may help improve BG control in patients with GDM; this will be the subject of evaluation in a subsequent study.
doi:10.2196/mhealth.9236
Keywords
Introduction
Gestational diabetes mellitus (GDM) is one of most common endocrine disorders during gestation, affecting up to 17.8% of pregnancies [
]. It is associated with short-term obstetric and perinatal complications such as preeclampsia, increased cesarean delivery rates, macrosomia, and birth injury [ ], as well as long-term future metabolic health implications for the mother and the offspring (ie, increased risk of obesity and type 2 diabetes) [ ]. Thus, maintaining normal blood glucose (BG) levels during pregnancy is critical for preventing adverse pregnancy outcomes and to stop the cycle that perpetuates the transmission of metabolic disease to the offspring [ ].The timeframe for effective interventions to prevent complications from GDM is usually limited to the third trimester of pregnancy and the physiology of pregnancy is rapidly changing (eg, increasing insulin resistance); therefore, women with GDM require frequent visits to health care providers to ensure good glycemic control (usually every 2-4 weeks on diet and every 1-2 weeks when treated with insulin). These frequent antenatal visits are both a considerable burden to the patients and, considering the increasing incidence of GDM, may also place significant stress on health care systems and their often-limited resources.
The technology used to remotely deliver health care—specifically, via an electronic means of communication (eg, mobile health [mHealth])—offers an appealing solution to this problem. Currently, an increasing number of articles are reporting on mobile apps for patients with different types of diabetes. Several involve mobile phone-based randomized controlled trials (RCTs) that show promising results for the self-management of diabetes [
- ].To the best of our knowledge, no completed RCTs that assessed the effectiveness of mobile apps in GDM patients have been published, although there are several ongoing trials [
]. Approximately 70% to 85% of GDM patients can control GDM with lifestyle modification alone [ ]; consequently, an effective tool for making appropriate food choices to prevent high BG levels as postprandial glucose (PPG) responses would be of particular importance for women with GDM.The current methods for predicting PPG responses to food, albeit important in the context, are limited and imprecise. Basing predictions on meal carbohydrate content is the most common method [
], but it is not sufficiently precise in predicting PPG response [ ].Other methods of estimating PPG responses are glycemic index and glycemic load [
]. However, because both methods are based on the assessment of PPG response to the consumption of certain kinds of food, it is difficult to apply them in clinical practice when there are different food combinations and proportions [ ]. Furthermore, reliable databases describing the glycemic index of different foods are absent in many countries. Moreover, several studies have found high variability in individuals’ glycemic responses to meals with identical nutritional composition [ , ], but the reasons for this variability are not yet sufficiently clear. PPG responses may depend on individual lifestyle [ ], genetics [ ], glucose transporter activity levels [ ], and gut microbiota [ ].Zeevi et al [
] developed a machine learning algorithm that integrates multidimensional data on blood parameters, anthropometrics, physical activity, self-reported lifestyle behaviors, and gut microbiota composition to predict personalized PPG responses in healthy individuals. However, adoption of their algorithm in clinical practice may be limited by its complexity and the high cost of microbiota analyses. Further, it has not been validated on pregnant women and its usability for prediction of PPG responses during pregnancy is not known.To the best of our knowledge, little work has been conducted on the development of PPG response prediction models for GDM patients, as the primary task for researchers remains prediction of BG levels for patients with type 1 diabetes. Further, although numerous BG prediction algorithms have been proposed, only a few projects are dedicated to the development of complete recommender system infrastructures that incorporate BG prediction algorithms for diabetes patients [
]. The development and implementation of such a system might be particularly important for patients with GDM, especially considering the high importance of BG control for these patients during pregnancy and a typically higher acceptance rate for mHealth solutions for short- to midterm usage.Therefore, the goal of this study was to develop an infrastructure that incorporates data processing algorithms, BG prediction models, and an appropriate mobile app for patients’ electronic record management to guide BG prediction-based personalized recommendations for GDM patients.
Methods
Analysis
Following analysis of the literature on the available apps for diabetes management [
], main design functions for diabetes apps [ , ], app evaluations [ ], and user reviews of the top diabetes apps available in the Google Play and Apple Store markets, we defined the most important points to consider within our project. For a mobile monitoring system, we derived the following core features: (1) systematic collection and persistence of patient data locally on the user device and centrally on a server, (2) data export into commonly used formats for assessment by patient and doctor, and (3) personalized recommendations based on evaluation of PPG response. Further, for the system to be sufficient for long-term monitoring, the following requirements must be satisfied: the system must be based on a commonly used architecture (in terms of devices, software, etc), the system must be sufficiently simple to use by patients without prior computer literacy, and the process of data collection and exchange should be as simple as possible.The conceptual scheme of the GDM recommender system is shown in
. The core of the recommender system comprises dynamically changing BG predicting models, which are used for personalized recommendations. The architecture utilizes the data collected from different sources for all patients to constantly improve its BG predictions. The patient state is a vector in multidimensional space and contains data on preceding events (eg, meals and insulin injections) and information on BG levels collected within the continuous glucose monitoring (CGM) system signal. The patient state is combined with data prototyping patients (with the data relevant to BG regulation, such as glycated hemoglobin A1c [HbA1c] and oral glucose tolerance test [OGTT] parameters) and the data for all patients in a centralized database that is used to train the BG prediction models. The models are dynamically retrained as new data are uploaded making their predictions more sustainable when they are used by new patients for whom only a limited amount of data has so far been recorded.Design
In the first step of the system design, we formulated a list of parameters for the BG predicting algorithm (
). Because it was not feasible to track these records in a traditional paper diary and there were no solutions matching our requirements, such as apps for recording meals in a simple and hassle-free (mobile) manner and corresponding software to acquire the records of these electronic diaries alongside CGM system signals, we developed our own app to obtain the necessary records for the BG prediction algorithm.From a technical viewpoint, the developed GDM advisory system contained the following elements: (1) a mobile app for data collection and presentation on the side of the patient, (2) a CGM system for continuous BG monitoring, and (3) a centralized server with appropriate software for data aggregation, processing, and training of BG prediction models.
Groups and subgroups of parameters necessary for the BG prediction algorithm.
Biomedical signals (implemented by devices)
- Continuous glucose monitoring system signal features describing postprandial glucose response
Electronic diaries records (implemented by mobile app)
- Blood glucose measurements, meals, insulin injections, physical activity, sleep duration
Individual patient characteristics
- Biometric characteristics, medical history and survey data, biochemical parameters
Development
Mobile and Desktop Diary App
The mobile app was developed using the Java programming language and it supports devices running Android OS 2.3 and higher. The desktop app was also developed using the Java programming language. It supports devices running Java 7.0 and higher. The app includes a food database created based on reference books of the Russian Academy of Medical Sciences and the US Department of Agriculture (USDA) Food Composition Databases (Release 28) [
]. Complex dishes included into the database were supplemented by recipes from reference books of the Russian Academy of Medical Sciences [ ].The development process comprised several iterations and app usability was evaluated with the help of 36 GDM patients. The patients were asked to provide feedback on app usability, evaluate its core features, indicate limitations they encountered, and possible ways to improve the app. Seven major corrections were made before the study, including improving the ergonomic aspects of the app, increasing the size of the built-in food database, and enhancement of app functionality, including respective functions for modifying previously recorded data, combining existing food items in the built-in food database into new recipes, and marking particular food items as favorites. All the preceding corrections were made before commencing the study.
Data Processing Software
The centralized software component was based on programs that operate in an automatic sequence, evoked by a script. The complete data processing algorithm, which transforms the raw data of the electronic reports from the patients and the CGM system signals of the iPro device, comprises the following five steps.
Step 1
The initial signal data was recorded by the CGM system (Medtronic iPro was used in this study) and uploaded to the CareLink server used by the Medtronic iPro system, where the signals for patients were stored. For the purpose of this study, the data of the participants were retrieved from the Medtronic server in the form of CSV files by our software and processed by an automatic script.
Step 2
Electronic diaries, exported from the mobile app and collected on the centralized server, were processed in such a manner that every meal was stored together with the parameters characterizing previous events (eg, any meal 3 hours before the current meal and any physical exercise or sleep).
Step 3
Records from the electronic diaries were matched with appropriate CGM system signals for each patient: for every food intake in a diary, 3 hours of BG signals before and after the meal were collected. The information on the BG curve was stored together with food records collected in step 2.
shows an ensemble of resulting BG curves 3 hours before and after meals, collected over the span of a week.Step 4
Based on the postprandial BG curve, a set of parameters characterizing PPG response were calculated:
- AUC60: area under the glycemic curve 1 hour after the start of the meal ([mmol/L]/hour);
- AUC120: area under the glycemic curve 2 hours after the start of the meal ([mmol/L]/hour);
- BG60: blood glucose level 1 hour after the start of the meal (mmol/L); and
- Peak BG: peak value on a postprandial BG curve (mmol/L).
Step 5
The resulting data were supplemented by the data used to prototype the patients (medical history data, survey data, biochemical parameters). The data from different patients were combined in an integral data frame, which was the prepared input data for the BG prediction models.
Recruitment and Enrollment
This study was part of the ongoing clinical trial “Genetic and Epigenetic Mechanisms of Developing Gestational Diabetes Mellitus and its Effects on the Fetus” (GEM GDM; trial registration number: АААА-А16-116012210374-0), which started in July 2015. Participation in this study using the CGM system was optional for the participants of the GEM GDM trial. Pregnant women were invited to take part in this study if they were using our mobile app or our desktop app and provided accurate information concerning their food intake and BG measurements. Those who had pregestational diabetes and other diseases affecting carbohydrate metabolism were excluded. None of the participants were treated with insulin prior to or during this study. The study was approved by the ethical committee of the National Almazov Medical Research Centre, Saint-Petersburg, Russia (protocol no 119), and the participants gave their consent in writing.
In total, 66 of 158 women agreed to participate. Four women were excluded from the analysis because they provided inaccurate information on food intake during the week they wore the CGM system (see “Control of the Accuracy of Self-Reports”). As a result, 62 participants (48 pregnant women with GDM and 14 women with normal glucose tolerance) were included in the study.
The diagnosis of GDM was based on the Russian National Consensus [
] and the recommendations of the International Association of Diabetes and Pregnancy Study Groups (IADPSG) [ ] based on the results of 2 hour OGTT performed during the 24th to 28th week of gestation. Pregnant women without diabetes were included as controls.Measures
Glucose was measured for 7 days using the iPro2 CGM with Enlite sensors (Medtronic, Minneapolis, MN, USA) and independently calibrated with the Accu-Check Performa Nano blood glucose meter (Roche Diabetes Care, Indianapolis, IN, USA) for a minimum of four measurements per day.
During that week, participants were instructed to record all daily activities, including meals with exact components and weights, using our mobile app or our desktop app.
Prior to the study, the women were questioned about their clinical characteristics and completed a special questionnaire under supervision. The questionnaire consisted of the following sections: frequency of consumption of basic products in a week, physical activity, and smoking before and during pregnancy. The sections of the form were defined in a semiquantitative manner, reflecting different frequency levels of consuming certain products and performing physical activity (low, medium, and high). The description of these semiquantitative variables is presented in
. This questionnaire was previously reported [ ].Control of the Accuracy of Self-Reports
To avoid biases resulting from inaccurate self-reports about daily activities, especially meals, we took several precautions. The women were provided with kitchen scales to measure the weight of each kind of food consumed at home (in grams) and were asked to check the weight of meal components consumed in restaurants and other public catering places. The reports resulting from the collection of data on food intake were analyzed by endocrinologists and discussed with the participants in detail. If the BG curves collected via the iPro2 CGM showed that two or more food intakes per week were not documented in the app or that two or more BG measurements checked in the glucometer memory differed from the BG levels reported by a participant, the data were excluded from the analysis (four women).
Statistical Analysis
Data were statistically processed with SPSS 22.0 [
], MATLAB 2016r [ ], R 3.4.0 [ ], and Python 2.7.14 [ ]. The data are presented as the mean and standard deviation. Differences in the quantitative characteristics of the groups were assessed with Student t test. The chi-square criterion was used to compare the distribution of qualitative characteristics. The differences were considered significant at P<.05.Blood Glucose Prediction Model
After the data processing phase, the data were used to create the BG prediction model. We developed linear regression models with the use of lasso regularization for feature selection and coefficient tuning [
] to avoid overfitting. Linear regression was chosen because of its good interpretability, simplicity, rapid tuning, and adequate accuracy in comparison with other methods performing the task.Participants were separated into training and test sets in the proportion of 80%:20% and 20-fold cross-validation was used for parameter tuning.
The optimization task for lasso regularization was ║y–Xω║2+λ║ω║→minω, λ≥0, where y is a vector of output values, ω is a vector of weights, X=[x1,...,xn] is a set of input values for all objects in the dataset, and λ is the tunable regularization coefficient (double vertical bars stand for a norm of a vector/matrix).
As a dependent indicator, the features of PPG response (AUC60, AUC120, BG60, and peak BG) were determined for appropriate models. The following parameters were imputed in the dataset as potential predictors of the features of PPG response:
- Anthropometric parameters (eg, age, weight, body mass index [BMI], gestational age, and systolic and diastolic blood pressure),
- Medical history data (impaired glucose tolerance; polycystic ovary syndrome; family history of diabetes; number of pregnancies, abortions, deliveries, and miscarriages; arterial hypertension; the use of combined oral contraceptive pills before pregnancy; and GDM in history), biochemical parameters (fasting, 1-hour and 2-hour BG levels at OGTT, fasting insulin, HbA1c, total cholesterol level, very low density and high density lipoproteins, and triglycerides at the time of OGTT).
- Survey data: 11 parameters associated with the consumption of certain product groups (fruits, pastries, skimmed dairy products, legumes, meat, sausage products, dried fruits, fish, whole grain bread, sauces, and vegetables), three parameters related to beverages (alcohol, sweet drinks, and coffee), and three parameters characterizing physical activity (walking, climbing the stairs, and performing sports). For each listed parameter, the intensity was estimated on an ordinal scale of three levels: low, medium, and high. Smoking was marked as “yes” or “no.” Smoking, alcohol intake, and physical activity parameters were assessed separately before and during pregnancy. Because none of the participants reported the highest category of activity for frequency of sports activities (>3 days/week), frequency of climbing the stairs (>16 flights/day), and legume consumption (>2 portions/week) at the time of glucose self-monitoring, we recorded the remaining two categories into binary variants (“yes”: medium category; “no”: the lowest category of activity) for statistical analyses. Walking duration and coffee consumption were coded as variables with three levels: (0 for low, 1 for medium, and 2 for high).
- Current and preceding meal: 33 parameters including type of food intake (1=breakfast, 2=lunch, 3=dinner, 4=snack); macronutrient and micronutrient content (water [g], energetic value [kcal], fats [g], carbohydrates [g], dietary fibers [g], sugars [g], calcium [mg], iron [mg], phosphorus [mg], zinc [mg], copper [mg], vitamin С [mg], riboflavin [mg], niacin [mg], thiamin [mg], vitamin B6 [mg], folate [mcg], folic acid [mcg], retinol [mcg], retinol equivalent [mcg], alpha-carotene [mcg], beta-carotene [mcg], vitamin E [mg], vitamin D [mg]); the presence of a preceding meal within 3 hours before the index meal (yes/no); and the amount and percentage of carbohydrates in the preceding meal.
The coefficients were tuned via a coordinate descent optimization algorithm (using the glmnet package for R) [
]. The λ coefficient for each model was chosen in such a manner as to obtain the smallest number of nonzero coefficients, at which the mean squared error, estimated during cross-validation, was in the range of one standard deviation from the best model fit. This allowed us to obtain a simple, yet sufficiently accurate model.Results
Mobile App
The mobile app for data collection and exchange was developed for the Android OS. A desktop app with the same functionality was also developed for users not in possession of an Android device (both are referred to simply as “app”).
The app contains 18 different screens, including the main menu, user input forms, record management and information, user settings, data export form, and help. Some of these screens are presented in the animation included in
.The SQLite database in the app consisted of 13 tables (tables for records on BG, insulin, physical activity, sleep, ketones, meals, and meal items; tables with built-in and user food databases and user data) containing the data for different types of user records as well as the built-in food database. The built-in food database, collected from open sources (including the Scientific Research Institute of Nutrition of the Russian Academy of Medical Sciences and the USDA food databases), made it possible to track 27 food parameters (macronutrients and micronutrients) without patient input, because involving the patients could lead to mistakes and additional burden from the patients’ perspective.
The app allowed the users to export data in Excel spreadsheets and store them on their devices as well as to send them remotely to physicians (
).The Data Processing Algorithm
Using the preceding methods, an algorithm transformed the data for the amount and kind of consumed food, the start time of food intake, physical activity, duration of sleep, and current BG level (received from the CGM system) into a BG prediction parameter used to establish a recommender system. An example of the results of data matching between the CGM system signal and the electronic diary is shown in
and more examples are shown in .Participants’ Characteristics
The main characteristics of the participants are presented in
. The women with GDM had higher BMI and higher levels of HbA1c and plasma glucose (PG) during OGTT than the controls.Characteristic | GDM (n=48) | Control (n=14) | P (two-sided test) |
Age (years), mean (SDa) | 32.1 (4.0) | 29.8 (2.9) | .06 |
Prepregnancy BMIb (kg/m2), mean (SD) | 26.4 (6.4) | 21.1 (3.4) | .006 |
HbA1cc (%), mean (SD) | 5.13 (0.40) | 4.84 (0.40) | .03 |
Gestational age (weeks), mean (SD) | 31.4 (3.0) | 31.4 (2.8) | >.99 |
BPd systolic (mm Hg), mean (SD) | 118.9 (10.6) | 117.5 (13.9) | .70 |
BP diastolic (mm Hg), mean (SD) | 75.1 (7.9) | 74.8 (14.9) | .90 |
Arterial hypertension, n (%) | 20 (42) | 5 (36) | .77 |
OGTTe fasting PGf (mmol/L), mean (SD) | 5.0 (0.7) | 4.2 (0.5) | <.001 |
OGTT 1-h PG (mmol/L), mean (SD) | 9.6 (2.3) | 6.3 (1.6) | <.001 |
OGTT 2-h PG (mmol/L), mean (SD) | 8.4 (2.4) | 5.5 (1.4) | <.001 |
Fasting serum insulin (pmol/L), mean (SD) | 96.4 (52.8) | 93.9 (81.9) | .91 |
aSD: standard deviation.
bBMI: body mass index.
cHbA1c: glycated hemoglobin A1c.
dBP: blood pressure.
eOGTT: oral glucose tolerance test.
fPG: plasma glucose.
Characteristic | GDM, mean (SDa) | Control, mean (SD) | P (two-sided test) |
Fasting BGb (mmol/L) | 5.1 (0.7) | 5.0 (0.6) | <.001 |
BG60c (mmol/L) | 6.2 (1.0) | 5.9 (0.9) | <.001 |
AUC60d (mmol/L*hour) | 5.77 (0.80) | 5.62 (0.74) | .02 |
AUC120e (mmol/L*hour) | 5.86 (0.78) | 5.68 (0.70) | <.001 |
BG Rise 1h after meal (mmol/L) | 1.5 (1.0) | 1.6 (1.0) | .66 |
Postprandial peak BG (mmol/L) | 6.6 (1.0) | 6.5 (1.0) | .02 |
Time to peak BG (minutes) | 75.0 (43.7) | 73.6 (46.0) | .68 |
Carbohydrates per meal (g) | 31.8 (22.2) | 51.5 (31.5) | <.001 |
Proteins per meal (g) | 22.5 (15.1) | 22.9 (15.7) | .72 |
Fats per meal (g) | 19.6 (15.1) | 25.2 (17.0) | <.001 |
Energy per meal (kcal) | 398 (209) | 530 (279) | <.001 |
aSD: standard deviation.
bBP: blood pressure.
cBG60: blood glucose level 60 minutes after the meal.
dAUC60: area under the postprandial blood glucose curve 60 minutes after the meal
eAUC120: area under the postprandial blood glucose curve 120 minutes after the meal.
Characteristics of Meals and Glycemic Responses
The average characteristics of meals and glycemic responses are presented in
. Patients with GDM consumed significantly lower amounts of carbohydrates and fats in their meals; therefore, the energy content of their meals was considerably lower than that of the control group. Fasting and postprandial BG levels were significantly higher in patients with GDM than in those in the control group, whereas the actual rise in BG level after meals did not vary significantly in these groups owing to lower average carbohydrate consumption in the GDM group. The area under the curve (AUC) for BG level 1 and 2 hours after the beginning of the meal was also larger for patients in the GDM group, even considering the lower average carbohydrate consumption in this group.Blood Glucose Prediction Models
The significant model coefficients are presented in
. The BG level 2 hours after OGTT was a heightening factor for all the variables describing glycemic response, corresponding to worse BG regulation in participants with GDM. Some of the parameters describing lifestyle during pregnancy were significant in predicting PPG response: reported physical activity was a lowering factor for all the variables describing glycemic response, where they were found to be significant, as well as reported high consumption of legumes, although high consumption of coffee appeared to be a heightening factor.Despite their simplicity, the developed linear regression models proved to be highly efficient in their prediction of the PPG response feature. Model performance was estimated using standardized metrics. The correlation between real and predicted values (R), root mean square error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE) were estimated for each of the proposed models (
). The resulting table shows only marginally worse results for the test set, which may be due to overfitting. When comparing the MAPE of the presented models, it might be considered that the models predicting AUC on a postprandial curve perform better.Parameter | AUC60a | AUC120b | BG60c | Peak BGd |
Intercept | 1.6246 | 2.5650 | 2.1860 | 3.4590 |
1. BG level before meal (mmol/L) | 0.6877 | 0.6033 | 0.4116 | 0.5959 |
2. Breakfast (yes/no) | 0.2927 | 0.2337 | 0.2746 | 0.2832 |
3. Carbohydrates (g) | 0.0030 | 0.0034 | 0.0072 | 0.0093 |
4. Starch (g) | — | 0.0017 | — | 0.0024 |
5. Carbohydrates (%) | 0.1951 | 0.0289 | 0.0902 | — |
6. Proteins (%) | — | — | — | –0.4503 |
7. Preceding meal (yes/no) | — | –0.0539 | –0.1570 | –0.0730 |
8. Carbohydrates in preceding meal (g) | — | — | — | –0.0029 |
9. OGTTe fasting BG (mmol/L) | — | — | 0.2974 | — |
10. OGTT 2h BG (mmol/L) | 0.0484 | 0.0397 | 0.0356 | 0.1036 |
11. Fasting serum insulin (pmol/L)f | — | — | — | 0,0021 |
12. Sports (≥2 days/week, yes/no)g | –0.1416 | — | — | — |
13. Climbing stairs (≥4 flights/day, yes/no)g | –0.0497 | –0.1938 | –0.1860 | –0.0364 |
14. Walking (≤30, 31-60, ≥61 min/day for 0, 1, 2)g | — | –0.1062 | –0.0864 | –0.3349 |
15. Legumes >1/week ( (yes/no)g | — | — | — | –0.2184 |
16. Coffee (0-1, 2-3, >3 cups/day for 0, 1, 2)g | 0.0025 | 0.1173 | 0.0738 | 0.0311 |
aAUC60: area under the postprandial blood glucose curve 60 minutes after the meal.
bAUC120: area under the postprandial blood glucose curve 120 minutes after the meal.
cBG60: blood glucose level 60 minutes after the meal.
dBP: blood pressure. Peak BG: peak BG level on a 3-hour postprandial BG curve.
eOGTT: oral glucose tolerance test.
fMeasured at the day of OGTT.
gDuring pregnancy.
Characteristic and set | R | Root mean square error | Mean absolute error | Mean absolute percentage error | |
AUC60a | |||||
Test | .79 | 0.62 | 0.52 | 9.3% | |
Training | .78 | 0.51 | 0.40 | 6.8% | |
AUC120b | |||||
Test | .75 | 0.61 | 0.48 | 9.1% | |
Training | .75 | 0.51 | 0.39 | 6.6% | |
BG60c | |||||
Test | .69 | 0.81 | 0.66 | 12.0% | |
Training | .66 | 0.75 | 0.56 | 8.9% | |
Peak BGd | |||||
Test | .48 | 1.00 | 0.77 | 12.2% | |
Training | .74 | 0.68 | 0.53 | 8.0% |
aAUC60: area under the postprandial blood glucose curve 60 minutes after the meal.
bAUC120: area under the postprandial blood glucose curve 120 minutes after the meal.
cBG60: blood glucose level 60 minutes after the meal.
dBP: blood pressure. Peak BG: peak BG level on a 3-hour postprandial BG curve.
Discussion
Principal Results
Our infrastructure, including the mobile app for patients’ electronic record management and data processing algorithms for matching of the CGM system signal and electronic diary, enabled the collection and analysis of data on 909 food intakes and corresponding postprandial BG curves from 62 pregnant women. Combining these data with patients’ characteristics (eg, HbA1c, BMI, age, and lifestyle parameters) facilitated the development of models that accurately predict PPG response for real-life meals and can be implemented in our app for personalized prediction of PPG response and subsequent decision-making support.
To the best of our knowledge, no previous study has developed a tool for personalized prediction of PPG response in pregnant women. As the physiology of pregnancy differs significantly from that of the nonpregnant state, models created on nonpregnant participants have no potential to be applied to the management of pregnant women.
A unique feature of our app is the ability to integrate food choices based on our PPG response models in a decision-making algorithm. This will enable the app to give personalized advice concerning each upcoming meal in order to achieve desired BG levels. To adapt the personalized model to her specific requirements, a woman simply needs to fill in a short questionnaire when the app is first started (the questionnaire covers parameters 9-16 listed in
). In order to receive on-site personalized nutrition advice, participants have to enter the desired food components with exact weights before meals. The app will calculate the predicted PPG response and, in case the recommended levels are exceeded, will suggest how to reduce the carbohydrate content of the desired meal by reducing the amount of carbohydrate-rich products or by suggesting variants of products for replacement.The significant potential of our app lies in the ability to capture data, provide decision support, and share data with health care providers, thus promoting communication. Although the efficacy in terms of use of our app is yet to be tested in an RCT, we believe that it already has potential for supplementing traditional care, especially between visits to the clinic, when patients can be provided with on-site personalized recommendations and education. Our app may also be helpful for the collection of large datasets for future statistical analyses.
For short-term use (eg, pregnancy), mHealth solutions might be more widely accepted and there will potentially be less app attrition compared to patients with chronic diseases.
To test and train PPG response prediction models, we used data of women with normal glucose tolerance in line with the data from GDM patients. We consider this approach appropriate because the postprandial BG levels of women with normal glucose tolerance and GDM diagnosed under the new IADPSG criteria often overlap, as shown in
. Because women with normal glucose tolerance are not required to adhere to a diet, they consume much more carbohydrates. Consequently, they often have BG levels similar to GDM patients, thus enabling us to assess the impact on PPG response of products with a more variable carbohydrate content.Our approach of making patients select foodstuff from a prebuilt database is a good way to standardize and ease the procedure of food tracking as well as to increase data reliability. On the other hand, this created an additional problem for patients who had to search for their desired food items.
We provided patients with the possibility to create their own food items by combining existing items, but only a few people found this feature useful. There are two main reasons why we refrained from allowing users to add food items to the app database on their own. Firstly, there is virtually no way to find a comprehensive list of all the nutritional characteristics we would like to track (previous 25 features) for potential food items. Secondly, there is a concern with the quality of data available on publicly available Internet sources. Allowing users to add new items into the database might lead to mistakes and incomplete data, which might in turn cause bias in the statistical analyses.
The most important predictors of PPG response that remained significant for all models were BG level before meal, quantity of carbohydrates in the meal, type of food (breakfast was a heightening factor), 2-hour BG level at OGTT, frequency of coffee consumption as a heightening factor, and the level of physical activity expressed as climbing stairs during pregnancy, which lowered PPG response. All these parameters are expected with regard to physiology and are in line with the results of previous studies addressing factors determining glucose metabolism [
- ].Comparison With Prior Work
compares the prediction quality of the developed predicting models to that of BG predicting models of different types presented in the literature. All models exhibit adequate accuracy that allows them to be used for patient assistance. The predictive power of the developed models and those presented in recent scientific papers is of equal quality in terms of R, RMSE, MAE, and MAPE. Considering that the developed model is simple, interpretable, and requires little time to tune its parameters, in which it fulfills the requirement for dynamical coefficient updates, the model must be stated as adequate for the pursued goal.
Limitations
Our study has several limitations. Because the data on food intake were self-reported by participants through the app, there is the potential for biases due to inaccurate reports. For example, women who are overweight or gain excessive weight during pregnancy often underestimate their actual consumption of foods that are considered harmful. This is a typical drawback of any epidemiological study assessing nutrition. However, we used hints found in the data to reduce this kind of bias, as described previously (see Control of the Accuracy of Self-Reports section).
In addition, the PPG response prediction models are based on data from a relatively small sample size. However, the resulting PPG response prediction models have predictive power of equal quality to those presented in recent scientific papers [
, - ]. Overall, we believe that the developed PPG response prediction models are sufficiently accurate to form the basis for a subsequent self-management intervention.There are several concerns limiting the current use of the developed app with the built-in decision-making algorithm. Our app is so far only available for Android devices and PCs; unfortunately, this prevents iPhone users from accessing the app using their mobile phone (they can access it only using their desktop computer). We plan to increase the number of potential users by implementing an app for iPhone users as well. We are also considering implementing a responsive Web app to allow usage of a wide range of platforms and form factors.
This study did not include insulin treatment. Thus, the current models are not designed to predict PPG response after insulin injections. This will need to be evaluated in the future.
Value and author(s) | Mathematical model | R | Root mean square error (mmol/L*hour; mmol/L) | Mean absolute percentage error (%) | |
AUC120a | |||||
Pustozerov et alb | Linear regression | .71 | 0.62 | 6.8 | |
Zeevi et al [ | ]Boosted decision trees | .70 | — | — | |
BG60c | |||||
Pustozerov et alb | Linear regression | .69 | 0.82 | 12.0 | |
Plis et al [ | ]Support vector regression | — | 1.97 | — | |
Wang et al [ | ]Autoregression, support vector machines, and neural network | — | 0.53-1.29 | 5.1-16.6 | |
Perez-Gandia et al [ | ]Neural network | — | 1.38-1.60 | — | |
Perez-Gandia et al [ | ]Autoregression | — | 1.67-2.17 | — | |
Stahl [ | ]Lehmann and Deutsch, Dalla Man | — | 1.24-1.73 | — |
aAUC60: area under the postprandial blood glucose curve 60 minutes after the meal.
bOur model.
cBG60: blood glucose level 60 minutes after the meal.
Our app currently lacks the ability to wirelessly upload BG readings. We also plan to overcome this inconvenience in the future.
The algorithm used for data processing is currently only semiautomatic and requires the intervention of the researcher in the final data processing steps. In the future, all the system software should conceivably be rewritten in a high-level programming language.
The developed PPG response prediction models are based and validated on the data of women in the third trimester of pregnancy. Therefore, it should not be used in the first and second trimesters. However, GDM is usually diagnosed in the third trimester and, according to the recommendations of some diabetes associations, can be diagnosed only in the third trimester [
]. Because Russian guidelines suggest diagnosing GDM at any time during pregnancy [ ], we are planning an additional study to validate the PPG response prediction models for the first and second trimesters.To improve BG control, as well as maternal and fetal outcomes, the efficacy of this app for the management of women with GDM needs confirmation in an RCT and we plan to perform such an RCT.
Conclusions
This infrastructure comprising the data processing algorithms, the BG prediction models, and the mobile app for patients’ electronic record management can be useful for guiding BG prediction-based personalized recommendations for GDM patients. The accuracy of the prediction models was validated on training sets of patients with 20-fold cross-validation for parameters tuning. The efficacy of the implementation in terms of providing health care to women with GDM to reduce BG levels and pregnancy complications will be evaluated in a future RCT.
Acknowledgments
This study was funded by the Russian Science Foundation (project no: 15-14-30012). We would like to thank Editage for English language editing.
Conflicts of Interest
None declared.
References
- HAPO Study Cooperative Research Group, Metzger BE, Lowe LP, Dyer AR, Trimble ER, Chaovarindr U, et al. Hyperglycemia and adverse pregnancy outcomes. N Engl J Med 2008 May 08;358(19):1991-2002. [CrossRef] [Medline]
- Silverman BL, Rizzo TA, Cho NH, Metzger BE. Long-term effects of the intrauterine environment. The Northwestern University Diabetes in Pregnancy Center. Diabetes Care 1998 Aug;21 Suppl 2:B142-B149. [Medline]
- El Hajj N, Schneider E, Lehnen H, Haaf T. Epigenetics and life-long consequences of an adverse nutritional and diabetic intrauterine environment. Reproduction 2014 Dec;148(6):R111-R120 [FREE Full text] [CrossRef] [Medline]
- Bonoto BC, de Araújo VE, Godói IP, de Lemos LL, Godman B, Bennie M, et al. Efficacy of mobile apps to support the care of patients with diabetes mellitus: a systematic review and meta-analysis of randomized controlled trials. JMIR Mhealth Uhealth 2017 Mar 01;5(3):e4 [FREE Full text] [CrossRef] [Medline]
- Liang X, Wang Q, Yang X, Cao J, Chen J, Mo X, et al. Effect of mobile phone intervention for diabetes on glycaemic control: a meta-analysis. Diabet Med 2011 Apr;28(4):455-463. [CrossRef] [Medline]
- Holtz B, Lauckner C. Diabetes management via mobile phones: a systematic review. Telemed J E Health 2012 Apr;18(3):175-184. [CrossRef] [Medline]
- Borgen I, Garnweidner-Holme LM, Jacobsen AF, Bjerkan K, Fayyad S, Joranger P, et al. Smartphone application for women with gestational diabetes mellitus: a study protocol for a multicentre randomised controlled trial. BMJ Open 2017 Mar 27;7(3):e013117 [FREE Full text] [CrossRef] [Medline]
- American Diabetes Association. Standards of medical care in diabetes-2016 abridged for primary care providers. Clin Diabetes 2016 Jan;34(1):3-21 [FREE Full text] [CrossRef] [Medline]
- American Diabetes Association. (4) Foundations of care: education, nutrition, physical activity, smoking cessation, psychosocial care, and immunization. Diabetes Care 2015 Jan;38 Suppl:S20-S30. [CrossRef] [Medline]
- Zeevi D, Korem T, Zmora N, Israeli D, Rothschild D, Weinberger A, et al. Personalized nutrition by prediction of glycemic responses. Cell 2015 Nov 19;163(5):1079-1094 [FREE Full text] [CrossRef] [Medline]
- Jenkins DJ, Wolever TM, Taylor RH, Barker H, Fielden H, Baldwin JM, et al. Glycemic index of foods: a physiological basis for carbohydrate exchange. Am J Clin Nutr 1981 Mar;34(3):362-366. [Medline]
- Dodd H, Williams S, Brown R, Venn B. Calculating meal glycemic index by using measured and published food values compared with directly measured meal glycemic index. Am J Clin Nutr 2011 Oct;94(4):992-996 [FREE Full text] [CrossRef] [Medline]
- Vrolix R, Mensink RP. Variability of the glycemic response to single food products in healthy subjects. Contemp Clin Trials 2010 Jan;31(1):5-11. [CrossRef] [Medline]
- Dunstan DW, Kingwell BA, Larsen R, Healy GN, Cerin E, Hamilton MT, et al. Breaking up prolonged sitting reduces postprandial glucose and insulin responses. Diabetes Care 2012 May;35(5):976-983 [FREE Full text] [CrossRef] [Medline]
- Carpenter D, Dhar S, Mitchell LM, Fu B, Tyson J, Shwan NA, et al. Obesity, starch digestion and amylase: association between copy number variants at human salivary (AMY1) and pancreatic (AMY2) amylase genes. Hum Mol Genet 2015 Jun 15;24(12):3472-3480 [FREE Full text] [CrossRef] [Medline]
- Gibbs EM, Stock JL, McCoid SC, Stukenbrok HA, Pessin JE, Stevenson RW, et al. Glycemic improvement in diabetic db/db mice by overexpression of the human insulin-regulatable glucose transporter (GLUT4). J Clin Invest 1995 Apr;95(4):1512-1518 [FREE Full text] [CrossRef] [Medline]
- Oviedo S, Vehí J, Calm R, Armengol J. A review of personalized blood glucose prediction strategies for T1DM patients. Int J Numer Method Biomed Eng 2017 Jun;33(6):e1. [CrossRef] [Medline]
- Chomutare T, Fernandez-Luque L, Arsand E, Hartvigsen G. Features of mobile diabetes applications: review of the literature and analysis of current applications compared against evidence-based guidelines. J Med Internet Res 2011;13(3):e65 [FREE Full text] [CrossRef] [Medline]
- Årsand E, Frøisland DH, Skrøvseth SO, Chomutare T, Tatara N, Hartvigsen G, et al. Mobile health applications to assist patients with diabetes: lessons learned and design implications. J Diabetes Sci Technol 2012 Sep;6(5):1197-1206 [FREE Full text] [Medline]
- Goyal S, Cafazzo JA. Mobile phone health apps for diabetes management: current evidence and future developments. QJM 2013 Dec;106(12):1067-1069 [FREE Full text] [CrossRef] [Medline]
- Caburnay CA, Graff K, Harris JK, McQueen A, Smith M, Fairchild M, et al. Evaluating diabetes mobile applications for health literate designs and functionality, 2014. Prev Chronic Dis 2015;12:E61 [FREE Full text] [CrossRef] [Medline]
- United States Department of Agriculture, Agricultural Research Service. USDA Food Composition Databases URL: https://ndb.nal.usda.gov/ndb/ [accessed 2017-12-08] [WebCite Cache]
- Russian Academy of Medical Sciences. [Institute of Nutrition]. URL: http://www.ion.ru/ [accessed 2017-12-08] [WebCite Cache]
- Dedov II, Krasnopol'skiy VI, Sukhikh GT. Russian National Consensus Statement on gestational diabetes: diagnostics, treatment and postnatal care. DM 2012 Dec 15;15(4):4. [CrossRef]
- International Association of Diabetes and Pregnancy Study Groups Consensus Panel, Metzger BE, Gabbe SG, Persson B, Buchanan TA, Catalano PA, et al. International Association of Diabetes and Pregnancy study groups recommendations on the diagnosis and classification of hyperglycemia in pregnancy. Diabetes Care 2010 Mar;33(3):676-682 [FREE Full text] [CrossRef] [Medline]
- Durán A, Martín P, Runkle I, Pérez N, Abad R, Fernández M, et al. Benefits of self-monitoring blood glucose in the management of new-onset Type 2 diabetes mellitus: the St Carlos Study, a prospective randomized clinic-based interventional study with parallel groups. J Diabetes 2010 Sep;2(3):203-211. [CrossRef] [Medline]
- IBM. SPSS Statistics, Version 22 URL: https://www.ibm.com/products/spss-statistics [accessed 2017-11-10] [WebCite Cache]
- MathWorks. MATLAB and Statistics Toolbox Release 2016a URL: https://www.mathworks.com/products/statistics.html [accessed 2017-11-10] [WebCite Cache]
- R Core Team. 2017 Nov 10. R: A language and environment for statistical computing, Release 3A URL: https://www.R-project.org/ [WebCite Cache]
- Python. Python Language Reference, Version 2 URL: https://www.python.org/ [accessed 2017-11-10] [WebCite Cache]
- Tibshirani R. Regression shrinkage selection via the lasso. J R Stat Soc B 1996;58(1):267-288. [CrossRef]
- Friedman J, Hastie T, Tibshirani R. Regularization paths for generalized linear models via coordinate descent. J Stat Softw 2010;33(1):1-22 [FREE Full text] [Medline]
- Whitehead N, White H. Systematic review of randomised controlled trials of the effects of caffeine or caffeinated drinks on blood glucose concentrations and insulin sensitivity in people with diabetes mellitus. J Hum Nutr Diet 2013 Apr;26(2):111-125. [CrossRef] [Medline]
- Yamada Y, Hosoya S, Nishimura S, Tanaka T, Kajimoto Y, Nishimura A, et al. Effect of bread containing resistant starch on postprandial blood glucose levels in humans. Biosci Biotechnol Biochem 2005 Mar;69(3):559-566 [FREE Full text] [Medline]
- Schmidt MI, 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(6):579-585. [Medline]
- Plis K, Bunescu RC, Marling CR, Shubrook J. A machine learning approach to predicting blood glucose levels for diabetes management. In: Workshops at the Twenty-Eighth AAAI Conference on Artificial Intelligence. 2014 Jun 18 Presented at: AAAI Workshop: Modern Artificial Intelligence for Health Analytics; Jul 27-31, 2014; Québec City, QC p. 35-39 URL: https://www.aaai.org/ocs/index.php/WS/AAAIW14/paper/view/8737
- Wang Y, Wu X, Mo X. A novel adaptive-weighted-average framework for blood glucose prediction. Diabetes Technol Ther 2013 Oct;15(10):792-801 [FREE Full text] [CrossRef] [Medline]
- Pérez-Gandía C, Facchinetti A, Sparacino G, Cobelli C, Gómez EJ, Rigla M, et al. Artificial neural network algorithm for online glucose prediction from continuous glucose monitoring. Diabetes Technol Ther 2010 Jan;12(1):81-88. [CrossRef] [Medline]
- Stahl F. Diabetes Mellitus Glucose Prediction by Linear and Bayesian Ensemble Modeling [PhD Thesis]. Lund, Sweden: Department of Automatic Control, Lund Institute of Technology, Lund University; 2012:127.
Abbreviations
AUC: area under the curve |
AUC60: area under the postprandial blood glucose curve 60 minutes after the meal |
AUC120: area under the postprandial blood glucose curve 120 minutes after the meal |
BG: blood glucose |
BG60: postprandial blood glucose 60 minutes after the meal |
BMI: body mass index |
CGM: continuous glucose monitoring |
GDM: gestational diabetes mellitus |
HbA1c: glycated hemoglobin A1c |
MAE: mean absolute error |
MAPE: mean absolute percentage error |
mHealth: mobile health |
OGTT: oral glucose tolerance test |
Peak BG: peak blood glucose value on a 3-hour postprandial blood glucose |
PG: plasma glucose |
PPG: postprandial glucose |
RCT: randomized controlled trial |
RMSE: root mean square error |
Edited by G Eysenbach; submitted 10.11.17; peer-reviewed by S Engeli, S Li, J Krebs; comments to author 06.12.17; revised version received 08.12.17; accepted 08.12.17; published 09.01.18
Copyright©Evgenii Pustozerov, Polina Popova, Aleksandra Tkachuk, Yana Bolotko, Zafar Yuldashev, Elena Grineva. Originally published in JMIR Mhealth and Uhealth (http://mhealth.jmir.org), 09.01.2018.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR mhealth and uhealth, is properly cited. The complete bibliographic information, a link to the original publication on http://mhealth.jmir.org/, as well as this copyright and license information must be included.