Next Article in Journal
A Novel Method for Designing Motion Profiles Based on a Fuzzy Logic Algorithm Using the Hip Joint Angles of a Lower-Limb Exoskeleton Robot
Next Article in Special Issue
Applications of Medical Informatics and Data Analysis Methods
Previous Article in Journal
Safety Maintains Lean Sustainability and Increases Performance through Fault Control
Previous Article in Special Issue
Taylor Bird Swarm Algorithm Based on Deep Belief Network for Heart Disease Diagnosis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model

by
Martín Hernández-Ordoñez
1,*,
Marco Aurelio Nuño-Maganda
2,
Carlos Adrián Calles-Arriaga
2,
Abelardo Rodríguez-León
3,*,
Guillermo Efren Ovando-Chacon
1,*,
Rolando Salazar-Hernández
4,
Omar Montaño-Rivas
5 and
José Margarito Canseco-Cortinas
2
1
Department of Metal-Mechanics, México National Technological/I.T. Campus, Veracruz 91860, Mexico
2
Intelligent Systems Department, Polytechnic University of Victoria, Tamaulipas 87138, Mexico
3
Department of Systems and Computing, México National Technological/I.T. Campus, Veracruz 91860, Mexico
4
Facultad de Comercio, Administración y Ciencias Sociales, Universidad Autónoma de Tamaulipas, Tamaulipas 87000, Mexico
5
Academy of Information Technologies, Polytechnic University of San Luis Potosí, San Luis 78369, Mexico
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2020, 10(19), 6846; https://doi.org/10.3390/app10196846
Submission received: 29 July 2020 / Revised: 19 September 2020 / Accepted: 25 September 2020 / Published: 29 September 2020
(This article belongs to the Special Issue Medical Informatics and Data Analysis)

Abstract

:

Featured Application

Mobile application for iterative simulation of a diabetic model.

Abstract

This paper presents an educational mobile assistant application for type 1 diabetes patients. The proposed application is based on four mathematical models that describe the glucose-insulin-glucagon dynamics using a compartmental model, with additional equations to reproduce aerobic exercise, gastric glucose absorption by the gut, and subcutaneous insulin absorption. The medical assistant was implemented in Java and deployed and validated on several smartphones with Android OS. Multiple daily doses can be simulated to perform intensive insulin therapy. As a result, the proposed application shows the influence of exercise periods, food intakes, and insulin treatments on the glucose concentrations. Four parameter variations are studied, and their corresponding glucose concentration plots are obtained, which show agreement with simulators of the state of the art. The developed application is focused on type-1 diabetes, but this can be extended to consider type-2 diabetes by modifying the current mathematical models.

1. Introduction

In recent years, obesity and overweight have become a severe problem for human health. In 2014 more than 1.9 billion adults aged 18 and older were overweight globally, from which over 600 million were obese. The data indicated that 39% of these adults were overweight and 13% were obese [1]. Body mass index (BMI) provides the most useful population-level measure of overweight and obesity as it is the same for both sexes and all ages of adults. Patients with higher BMI are at greater risk for having diabetes. In 2014, more than 422 million people had diabetes in the world, with a global prevalence of 8.5% among adults over 18 years old. Diabetes is a leading cause of blindness, kidney failure, heart attacks, stroke and lower limb amputation. In 2012, an estimated 1.5 million deaths were directly caused by diabetes, and another 2.2 million deaths were attributable to high blood glucose [2]. Diabetes was promoted from 21st place in 1990 to the 14th in 2010 in the list of death causes worldwide [3], and recently, to the 6th place in 2016 [4].
In Mexico, about 72.5% of adults from 18 years and over, 36.3% of teenagers, and 33.2% of children were overweight or obese in 2016. Diabetes statistics are not too optimistic; Mexico is in sixth place in countries with more diabetes, just behind China, India, US, Brazil and Russia [5]. Recent statistics show that 9.17% of adults from 18 years (about 6.4 million people) have diabetes [6]. Type 2 diabetes has become the leading cause of death in Mexico. The disease claims nearly 80,000 lives each year, and forecasters say the health problem is expected to get worse in the decades to come [7].
On the other hand, smartphones have been accessible to more people due to the high worldwide market growth rate. In 2016, around 1.5 billion smartphones were sold worldwide [8]; by the end of 2016, more than 3.2 billion individuals worldwide used the Internet regularly, accounting for nearly 45% of the world’s population; about 2.5 billion people access the web via mobile phone [9], which represents novel opportunities for designing applications running on smartphones, accessible to large population groups. Specifically, healthcare and disease management have benefited with applications such as fitness tracking, drug dose calculators, information apps, tutorials, surveys, diaries, and other tools created to help empower users to put more emphasis on their health care. Some benefits of using smartphones with Internet connectivity consists of the possibility of sharing data with family, friends, classmates, colleges, collaborators but especially with professionals who can guide the user and give feedback regarding treatment to be followed.
This paper is structured as follows. In Section 2, a concise review of the state of the art is given. A description of the models used in the developed application is provided in Section 3. In Section 4, the results and discussion are described. Finally, in Section 5, the conclusion is presented where final recalls are established, and future work is outlined.

2. State of the Art

2.1. PC or Web Simulators for Glucose Concentration Levels

In recent years, an effort to implement glucose levels simulators has been made. One standard option for implementing simulators are PCs or Laptops. PCs have as their main advantage the inherent high computational power for performing simulations. In addition, there has been a trend to replace PCs with much more compact devices, such as smartphones, but most simulators for glucose concentration are PC-based. Another implementation option consists of Web systems, allowing for a broad range of devices to access such simulation systems. Web-based simulators have an advantage: many platforms can access the simulator compared to a particular PC implementation. Web-based simulators have as main disadvantage the requirement of Internet connectivity, making the simulator difficult to access in places with connectivity problems.
In [10], the AIDA diabetes simulator is presented, and extensive evaluation about this simulator has been reported in [11]. Recently, new types of rapid-acting insulins have been added to the AIDA diabetes simulator [12]. AIDA’s mathematical model was created to simulate glucose tolerance; however, its use is not based on daily periods.
In [13], the REACTION project is presented. This project consists of a set of healthcare services oriented to diabetic patients and caregivers through a cloud-based application focusing on management and therapy services. The REACTION project is a management system created for the implementation of logistics related to medical personnel. The dosage management algorithm is based on basic rules, and it is not a pharmacological-dynamic behavioral study of insulin. In other words, it is a mathematical model with experimental parameters.
In [14], GLUCOSIM is proposed as a desktop application designed to do virtual experiments to show the effects of food intake changes and insulin therapy on glucose levels. A more detailed version of this system is reported in [15], where a Web-based solution was included. It is important to mention that GLUCOSIM is a tool designed to study, train and analyze the external effects that modify glucose concentration. It uses three mathematical models to consider all the mentioned effects; however, it does not describe periods of exercise or other modeled effects.
In [16], a system is proposed based on the combination of Compartmental Models (CMs) and artificial Neural Networks (NNs). Data from a Type 1 diabetes patient, which contains information about measured blood glucose levels, insulin intake, and food intake description, along with the corresponding time, were used as input to the model. The proposed strategy was not adequately validated. Furthermore, no performance criteria were mentioned to assess the results objectively.
The literature review indicates that early studies of compartmental modelling of glucose/insulin interactions were proposed since the 1980s in [17,18,19]. On the other hand, recently, different research groups have reported important works related with the implementations of compartmental models to develop glucose level simulators, for example, in [20,21] are presented a glucose forecasting algorithm based on a compartmental composite model of glucose-insulin dynamics. In [22] is developed a dynamic model for type 1 diabetic patient that focuses on blood glucose regulation. A first model for insulin adsorption in infusion sets using a minimal lumped two-compartment modelling approach is reported in [23]. A review of the key role of the UVA/Padova simulator is presented in [24], which has tested the use of new molecules for better glucose control.

2.2. Mobile Applications for Diabetes Management

The universe of mobile applications for diabetes care is enormous. A first step consists in determining the utility of apps. One standard classification includes exercise and fitness apps, med adherence, weight management, blood glucose trackers, support, healthcare professional apps, and educational simulators. There is extensive availability of applications related to any of the previously mentioned apps, but few efforts are related to educational simulators for smartphones.
One interesting branch of smartphone applications for health care is the simulators. In this paper, we are specifically interested in creating a smartphone-based simulator of glucose-insulin metabolism. In recent years, there have been advances in creating models that can replicate the behavior of parts (or entire) of human organisms and their corresponding implementation as a computer simulation. A smartphone-based simulation can be useful for patients with recently diagnosed diabetes to help them estimate the insulin doses and food intake, but also for patients at risk of developing diabetes or without diabetes, for contributing to raising awareness of the benefits of changing their food consumption and exercise habits. In [25], a review of several diabetes simulators is presented, but the applications reported in that paper is out of the scope of this work, since there is an interest in providing a realistic simulation of blood glucose levels.
There are several reviews of applications for diabetes management. In [26], a set of critical factors to be considered when designing diabetes management applications are explored. These factors come from patient demographics, technology costs, platform varieties, and ease of use. They also categorize the applications in the following classes: blood glucose logging, nutrition databases, carbohydrate tracking, tracking physical activity and weight, data-sharing and social support, and short messages and reminders. An important point to consider is that the FDA does not approve most applications. In [27], several commercial applications for diabetes management available on the Apple App Store and articles published in relevant databases are reviewed. The reviewed applications support self-management tasks such as physical exercise, insulin dosage or medication, blood glucose testing, and diet. Other support tasks considered include decision support, notification/alert, tagging of input data, and social media integration. Analysis indicates that application usage is associated with improved attitudes favorable to diabetes self-management. Limitations of the applications include lack of personalized feedback; usability issues, particularly the ease of data entry; and integration with patients and electronic health records. In much more detail, in [28], it is concluded that a critical feature strongly recommended by clinical guidelines—namely, personalized education is not assimilated in current diabetes applications. In [29] a critical assessment was reported of several smartphone apps for calculating insulin dose. The conclusion was that popular apps offering insulin dose calculations carry a risk of incorrect dose recommendations ranging from those that might lead to suboptimal disease control to those with potentially life-threatening consequences. In [30], an analysis of the benefits of smartphone apps for type 2 diabetes mellitus (T2DM) self-management was presented. It can be concluded that more research with valid study designs and longer follow-up is needed to evaluate the impact of health apps for diabetes care and self-management, specifically for T2DM. In [31], both Heuristic and keystroke level modeling (KLM) are used to measure efficiency for each analyzed mobile diabetes management application for patients with Type-1 Diabetes Mellitus.
With recent advances in connectivity technologies, there are some efforts to build tools based on cloud computing [32] or social network support [33,34]. One disadvantage of these tools is that they always require Internet connectivity at all times, which makes them useless in places with connectivity problems. Some applications are targeted to a particular segment of the population, such as pregnant women; one of these applications is reported in [35,36], where a tool to follow patients with gestational diabetes is described. In [37], an application for insulin dose calculation is reported. The authors establish that this application’s innovation consists of the incorporation of exercise and alcohol intake to the calculator in addition to carbohydrates intake. In [38], an application created explicitly for controlling an insulin pump taking as real-time input data from a continuous glucose monitor is reported. A closed-loop control system used to automatically manage insulin infusion to maintain the desire range´s glucose level is proposed. To summarize, there is a strong interest from the scientific community in developing applications around the problems associated with diabetes. This article adds to this trend with an emphasis on the exercise model.

3. Models

The idea of creating an artificial model for a glucose-insulin system for several purposes has been widely explored. In [39], a minimal glucose-insulin system is proposed; the model starts with the Bergman model [17] and presents modifications to improve, considering the glucose level´s description in the subcutaneous layer and a meal disturbance term. The developed application uses four mathematical models related to them, following the different dynamics that they describe:
  • Glucose-Insulin Model: Sorensen in [40] proposed it. This model comprises 19 nonlinear differential equations, which include significant metabolic effects related to glucose regulation. The model was obtained through a compartmental technique, where the pancreas compartment is omitted to consider a type 1 diabetic patient. Recently, this glucose-insulin model was extended to consider exercise periods [41].
  • Subcutaneous Insulin model: Berger and Rodbard [42] obtained it. This model describes the subcutaneous insulin uptake pattern after an insulin injection. The model considers interactions between components after subcutaneous injections such as insulin absorption and elimination in plasma insulin, active insulin, glucose utilization, plasma glucose, and glucose input. The model is based on a set of differential equations. Variations in plasma insulin concentration (I) can be estimated by Equation (1).
    d I d t = I a b s V i k e · I
    where Iabs represents the rate of insulin absorption, Vi is the volume of insulin distribution, and ke is the first-order rate constant of insulin elimination. The absorption of insulin can be calculated as follows:
    I a b s = s t 2 T 50 s D t ( T 50 s + t s ) 2
    where s is a parameter associated with the insulin absorption pattern, t represents the time of the injection, T50 is when the dose (D) is absorbed in an amount of 50%.
  • To estimate steady-state conditions, insulin profile (Iss) using the superposition principle is computed assuming three days as follows:
    I s s ( t ) = I ( t ) + I ( t + 24 ) + I ( t + 48 )
    I a , s s ( t ) = I a ( t ) + I a ( t + 24 ) + I a ( t + 48 )
    where Ia is the build-up and the deactivation of the insulin pump.
  • Meal Intake model: this model was proposed in 1992 by Lehmann and Deutsch [43]. It describes the gastric glucose absorption into the bloodstream by a meal intake represented by its carbohydrates content. According to this model, glucose utilization Gout (G) at plasma insulin concentration is:
    G o u t ( G ) = V m a x G k m + G
    G represents the glucose concentration, Vmax maximal glucose utilization for reference insulin concentration, and Km is glucose concentration for the half-maximal response. Vmax depends on insulin; mathematically, this is
    V m a x ( I s s ) = G o u t ( I s s ) ( K m + G x ) G x
    where Iss is plasma insulin concentration equivalent to steady-state insulin, and Gx is the reference glucose value. Glucose utilization for any combination of plasma glucose and insulin levels is given by
    G o u t ( G , I s s ) = G ( c · I s s + d ) ( K m + G x ) G x ( K m + G )
    where c is insulin sensitivity, and d represents insulin-independent glucose utilization. The insulin absorption dynamics for regular, NPH, lente, ultralente formulations were characterized in [42] just by changing some specific parameters in the general model. Recently, in [44], the Lispro insulin formulation was also characterized by the model in [42].
  • The exercise model was considered from [41]. The liver’s glycogen reservoir (GLY) can be calculated as shown in Equation (8).
    d G L Y ( t ) d t = ( P V O 2 m a x ( t ) , G L Υ ( t ) ) + Ψ ( G a b s ( t ) + G L Υ ( t ) )
    ( P V O 2 m a x , G L Υ ) = { ζ ( P V O 2 m a x )   if 0 < G L Υ G L Υ m a x 0   if G L Υ 0
    Ψ ( G a b s , G L Υ ) = { G a b s if G L Υ < G L Υ m a x 0   if G L Υ > G L Υ m a x
    ζ ( P V O 2 m a x ) = 0.006 ( P V O 2 m a x ) 2 + 1.226 P V O 2 m a x 10.1958   mg / min
    where φ is the net glycogenolysis rate, Ψ represents the absorptive period, ζ is the glucose uptake due to exercise intensity, and PVO2max is the percentage of the maximum oxygen consumption rate.
In Figure 1, the block diagram of the diabetic patient utilized in this work is shown. There are four subsystems, each one corresponds to a previously described model, and their interactions are shown as solid arrows. The dotted lines delimit the mathematical models proposed in the literature, which describe different but comparable physiological phenomena because they have the same scale.

4. Results and Discussion

4.1. Mobile Application for Educational Similar

4.1.1. Hardware and Software Tools

The proposed education simulator was developed based on the models described in the last section. The models were implemented in Java using Android Studio IDE with Android Studio SDK and Java SE Development Kit; besides, Android MPChart Library is used for showing results of the glucose level simulation in a plot [45].
The proposed application was validated on devices with several versions of Android. Table 1, shows the list of devices and its specifications used for testing the proposed application.

4.1.2. System Architecture

In Figure 2, the architecture of the proposed application is shown. The architecture takes as an input the following data:
  • Meal parameters: these parameters are related to carbohydrate intake (in grams) and the day´s carbohydrate intake schedule.
  • Insulin dose parameters: these parameters are related to the type (fast or slow actions) and the dose of insulin (in units).
  • Exercise parameters: these parameters are related to the quantity and intensity of exercise.
  • Simulation configuration: these parameters are related to the simulation’s duration and the type of plot to be generated.
  • The architecture contains the following blocks:
  • Simulation variables container: this block stores data required to be accessed and shared by all model blocks. It contains three profiles: meal dosing, insulin dosing, and exercise quantification.
  • Meal model block: this block takes as input the meal profile and generates as output the glucose obtained according to the carbohydrate intake grams.
  • Insulin model block: this block takes as input the insulin dosing profile and generates as output the quantity and duration of insulin in the blood flow.
  • Exercise model block: this block takes as input the exercise dosing profile and generates as output the blood redistribution volume according to the quantity of exercise.
  • Simulation loop block: this block updates each model block with required data from others and controls the simulation’s start and end.
  • Plot generation module: this block generates data from the simulation to be used for generating a plot.
  • Plot visualization module: this block takes as input the vector generated by the plot generation module and displays the plot.
Finally, the architecture generates as the output the plot with the information according to the user’s input.

4.1.3. User Interface

In Figure 3a, a welcome screen of the proposed application is shown. The proposed application’s main objective is the generation of a plot of the blood glucose concentration based on the parameters defined in the previous section. For user commodity and better distribution application’s controls, a tabbed document interface (TDI) was conceived as the main container for hosting all the needed user controls required to set the simulation parameters and show the results. Specifically, for the Android SDK environment, a tab host container was utilized. This control enables the integration of plenty of components in a single form. The proposed application contains four tabs: the first three tabs allow the user to define the parameters of meal, insulin, and exercise models, and the last one is designed to generate simulation data and show the blood glucose concentration in a plot.
In Figure 3b, the tab for the meal model parameters is shown. This tab contains interface controls where users can define each meal’s time and its estimated carbohydrate contents (in grams). The estimated carbohydrate contents also can be automatically calculated based on a default estimation of calories for a day, or user can input the total calories, and the application estimates the carbohydrate content in grams based on the given calories.
In Figure 3c, the tab for the insulin model is shown. This tab contains interface controls that define the type of insulin and the unit to be dosed in each meal, for both the rapid and prolonged effect.
In Figure 4a, the tab for the exercise model is shown. This tab contains interface controls where the user defines the intensity, duration, start time, and exercise routine.
In Figure 4b, the tab for simulation is shown. In this tab, the user defines the time of the simulation in weeks and days. It is also possible to set all variables to their default values, start simulation, shown insulin, carbohydrate, or glucose concentration plots.
In Table 2, the application’s default values are listed, but the user can syntonize this to get a better understanding of the model behavior.

4.2. Reported Experiments

In Table 3, the parameters utilized for validating the meal and insulin models are shown. The abbreviations in the column names are experiment number (Exp), carbohydrate grams in breakfast
(B-CHO), carbohydrate grams in lunch (L-CHO), carbohydrate grams in dinner (D-CHO), insulin units at breakfast (B-u), insulin units at lunch (L-u), insulin units at dinner (D-u). In the first experiment, the default values for carbohydrate and insulin units are used. In the second experiment, carbohydrate grams are reduced to half, but the insulin units are left at their default values. In the third experiment, default values for carbohydrate grams are used, but the insulin dose is doubled, and in the last experiment, carbohydrate grams are reduced to half, and the insulin dose is doubled.
Figure 5 shows a glucose concentration plot for a 5-day simulation for each experiment reported in Table 3. In Figure 5a, the maximum glucose peak is close to 195 mg/dL every day of the reported simulation. In contrast, in Figure 5b, the maximum glucose peak surpasses 175 mg/dL due to the reduction of carbohydrate intake. In Figure 5c, the same carbohydrate intake is used, but both prolonged and rapid insulin doses are doubled. It can be shown that glucose levels are lower when compared with the plot of experiment 1, and in Figure 5d, also the carbohydrate intake is reduced to half to validate both meal and insulin models. In both experiments (3 and 4), it can be shown for its corresponding plots that even a risk of hyperglycemia is present due to the high insulin dose.
In Figure 6, a validation of the exercise models through the corresponding simulation plots are shown. In order to obtain the reported plots, the used exercise intensities are light, moderate, and heavy, and the exercise durations are 10, 30, and 90 min. The default values for grams of carbohydrate intake and insulin doses are used. In Figure 6a, the simulation using 10 min of light exercise is shown. The value of the glucose peaks after exercise (at 9:00 AM) is close to 185 mg/dL, but using 30 min of light exercise, this is under 180 mg/dL (Figure 6b), and when using 90 min of light exercise, the glucose peaks is close to 175 mg/dL (Figure 6c). Similar behavior is shown when using the same duration but with moderate exercise (Figure 6d–f). The value of the glucose peaks after exercise (at 9:00 AM) is close to 175 mg/dL, and it is low when compared with the same peak obtained when using light exercise (180 mg/dL). Finally, this behavior remains when using heavy exercise (Figure 6g–i). For comparing exercise intensities, it can be shown from plots that the glucose peaks after 10 min exercise are: close to 185 mg/dL for light exercise, over 175 mg/dL for moderate exercise, and below 170 mg/dL for heavy exercise. Similar results are obtained for 30 and 90 min of exercise duration. In general, there are many applications, however, long-term prediction of glucose still remains a challenge [20]. In this work, an app has been developed capable of predicting the behavior of glucose levels for several days (see Figure 5) or during a day with different exercise regimes (see Figure 6).
Until now, the complete software of the presented application has not been compared with other applications since our priority is to focus on the diet and physical activity of the Mexican population with diabetes. There are many applications, but with European or United States standards. However, each submodel has been compared and validated separately by its respective authors. It is important to point out that the current version of the application presented in this work is an extension of a previous compartmental model that takes into account exercise periods. This model was developed by the main author, who validated and compared its results with experimental data [41]. So far, we have performed a prototype test on 26 young adults and execution times comparison for different devices.

4.3. Qualitative Study

For validating the AEDMA, we perform a prototype test using a questionnaire to evaluate the main points of the proposed system. We applied a questionnaire to 26 young adults (age 15–25). This application is focused mainly on this user group, which is highly familiar with tablet or smartphone devices, and they are regular users of mobile apps. We restrict the participants of the prototype test to have an android device because we designed AEDMA specifically for this mobile OS. In Table 4, relevant information about the distribution of the testing subjects is shown.
After testing the ADEMA by at least 1 h in the participant’s device, they were asked to answer a questionnaire that contains 10 questions related to the key aspects of the AEDMA. Each question has 5 options, rated from NO, Rather NO, Do not know, Rather YES, and YES. The questions and the percentage of responses for each option are summarized in Table 5. From the obtained responses, we can summarize the following remarks:
  • From questions 1, 3, 4, and 5, a preliminary conclusion about important points to be improved to the AEDMA can be guessed. These points are related to improving the user interface, the clarity, and legibility of presented glucose level graphs, and the ease of use of the app. Question 8 gives a general panorama showing that the mobile app in its current state can be improved. From question 9, the variability of glucose levels is adequate from the user’s perspective.
  • In general, from questions 2 and 7, we can conclude that the AEDMA is useful and to give an appropriate impression to the test user, to reuse the application if a next version is released. Question 10 allows highlighting the importance of giving users an important role to involve them in the design of these types of apps.

4.4. Execution Time Comparison

We obtain a measurement of the time required to conclude the simulation using several parameters for each application’s deployment device. Table 6 shows the obtained measurements for each device. We compute each measurement using only one thread environment because a multithread environment was not conceived in the original application. We choose the following simulation times: 4 days, one week, two weeks, and three weeks. A Polaroid tablet device obtained the biggest execution time, while a Galaxy Tab 10.1 device obtained the shortest one. The rows in Table 6 start from the slower to the higher simulation time. The mobile devices used for the application’s deployment were not recent models, because even when some of them were featured as high-end devices when released, they are old devices and, with recent advances in mobile technology, many of them can be featured as low or middle-end devices when compared with the existing technology available at the time of writing this paper.

5. Conclusions

In this paper, an application for diabetes education is proposed. The proposed application was designed to provide a software tool to help support therapy in patients with diabetes, seeking to improve the quality of life. The simulation is fixed, but an interactive simulation functionality can be added to provide a richer user experience. The software is based on four mathematical models originally designed as a desktop computer program. An exercise option in the interface helps patients to schedule their routines and to estimate in advance its impact on blood glucose. This app could also be developed for Apples’ iOS products. Besides, this app could potentially be implemented as a smartwatch app. The most important conclusions are:
  • The App includes glucose regulation associated with metabolism and the application of an insulin injection.
  • The App is capable of taking into account the effects of food intake and physical activity.
  • The developed application can simulate the behavior of glucose levels for long periods.
  • The App is capable of considering three types of physical activity: light, moderate and heavy.
  • The developed application is focused on type-1 diabetes, but this can be extended to consider type-2 diabetes.
  • As a future improvement, the application should be modified to split the simulation processing into smaller operations running on multiple threads. This could be beneficial in devices with more than one core.

Author Contributions

Conceptualization, M.H.-O., M.A.N.-M.; Formal Analysis, C.A.C.-A., A.R.-L.; Investigation, M.A.N.-M., G.E.O.-C., J.M.C.-C.; Methodology, M.H.-O., C.A.C.-A., G.E.O.-C., R.S.-H., O.M.-R.; Project Administration, M.H.-O., R.S.-H.; Software, M.H.-O., G.E.O.-C., J.M.C.-C., O.M.-R.; Supervision, M.H.-O., M.A.N.-M., A.R.-L., O.M.-R.; Validation, A.R.-L., R.S.-H., J.M.C.-C.; Visualization, A.R.-L., J.M.C.-C., O.M.-R.; Writing Original Draft, M.H.-O., M.A.N.-M., C.A.C.-A., G.E.O.-C.; Writing Review and Editing, M.A.N.-M., C.A.C.-A., R.S.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

The present project was partially funded by the National Council of Science and Technology of México (CONACYT) through a scholarship (no. 337087) granted to José Margarito Canseco-Cortinas. The authors are grateful for the support provided by TNM-ITV, CONACYT and PRODEP.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Health Organization. Obesity and Overweight Fact Sheet; WHO: Geneva, Switzerland, 2016. [Google Scholar]
  2. World Health Organization. Diabetes Fact Sheet; WHO: Geneva, Switzerland, 2016. [Google Scholar]
  3. Institute for Health Metrics and Evaluation. The Global Burden of Disease: Generating Evidence, Guiding Policy; IHME: Washington, DC, USA, 2013. [Google Scholar]
  4. World Health Organization. The Top 10 Causes of Death; WHO: Geneva, Switzerland, 2017. [Google Scholar]
  5. International Diabetes Federation. IDF Diabetes Atlas, 7th ed.; International Diabetes Federation: Brussels, Belgium, 2015. [Google Scholar]
  6. Levy, T.S.; Nasu, L.C.; Dommarco, J.R.; Ávila, M.H. Informe Final de Resultados, Encuesta Nacional de Salud y Nutrición de Medio Camino 2016; Instituto Nacional de Salud Pública INSP: Mexico City, Mexico, 2016. [Google Scholar]
  7. Institute for Health Metrics and Evaluation (IHME). Country Profile Mexico. Mexico, 2017. Available online: http://www.healthdata.org/ (accessed on 7 October 2018).
  8. Statista Inc. Global Smartphone Sales to End Users 2007–2016. Available online: https://www.statista.com/statistics/263437/global-smartphone-sales-to-end-users-since-2007/ (accessed on 12 October 2018).
  9. eMarketer. Worldwide Internet and Mobile Users: eMarketer’s Updated Estimates and Forecast for 2015–2020. 2016. Available online: https://www.emarketer.com/Report/Worldwide-Internet-Mobile-Users-eMarketersUpdated-Estimates-Forecast-20152020/2001897#moreReport (accessed on 25 September 2018).
  10. Lehmann, E. Preliminary experience with the Internet release of AIDA—An interactive educational diabetes simulator. Comput. Methods Programs Biomed. 1998, 56, 109–132. [Google Scholar] [CrossRef] [Green Version]
  11. Hernandez-Ordonez, M.; Montano, O.; Campos-Delgado, D.U.; Palacios, E. Development of an Educational Simulator and Graphical User Interface for Diabetic Patients. In Proceedings of the 2007 4th International Conference on Electrical and Electronics Engineering, Mexico City, Mexico, 5–7 September 2007; pp. 82–85. [Google Scholar] [CrossRef]
  12. Lehmann, E.D.; Tarín, C.; Bondia, J.; Teufel, E.; Deutsch, T. Development of AIDA v4.3b Diabetes Simulator: Technical Upgrade to Support Incorporation of Lispro, Aspart, and Glargine Insulin Analogues. J. Electr. Comput. Eng. 2011, 2011, 427196. [Google Scholar] [CrossRef] [Green Version]
  13. Thestrup, J.; Gergely, T.; Beck, P. Exploring new care models in diabetes management and therapy with a wireless mobile eHealth platform. In Wireless Mobile Communication and Healthcare: Second International ICST Conference, MobiHealth 2011, Kos Island, Greece, 5–7 October 2011; Revised Selected Papers; Nikita, K.S., Lin, J.C., Fotiadis, D.I., Arredondo Waldmeyer, M.T., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 203–210. [Google Scholar]
  14. Erzen, F.C.; Birol, G.; Cinar, A. Glucosim: A simulator for education on the dynamics of diabetes mellitus. In Proceedings of the 23rd Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Istambul, Turkey, 25–28 October 2001; Volume 4, pp. 3163–3166. [Google Scholar] [CrossRef] [Green Version]
  15. Agar, B.U.; Eren, M.; Cinar, A. Glucosim: Educational software for virtual experiments with patients with type 1 diabetes. In Proceedings of the 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference, Shanghai, China, 17–18 January 2006; pp. 845–848. [Google Scholar] [CrossRef]
  16. Mougiakakou, S.G.; Prountzou, K.; Nikita, K.S. A Real Time Simulation Model of Glucose-Insulin Metabolism for Type 1 Diabetes Patients. In Proceedings of the 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference, Shanghai, China, 17–18 January 2005; pp. 298–301. [Google Scholar] [CrossRef]
  17. Bergman, R.N.; Phillips, L.S.; Cobelli, C. Physiologic evaluation of factors controlling glucose tolerance in man: Measurement of insulin sensitivity and beta-cell glucose sensitivity from the response to intravenous glucose. J. Clin. Investig. 1981, 68, 1456–1467. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  18. Cobelli, C.; Caumo, A.; Omenetto, M.; Sacca, L. Minimal model SG overestimation and SI underestimation: Improved accuracy by a Bayesian two-compartment model. Am. J. Physiol. 1999, 277, E481–E488. [Google Scholar]
  19. Hovorka, R.; Shojaee-Moradie, F.; Carroll, P.V.; Chassin, L.J.; Gowrie, I.J.; Jackson, N.C.; Tudor, R.S.; Umpleby, A.M.; Jones, R.H. Partitioning glucose distribution/trans-port, disposal, and endogenous production during IVGTT. Am. J. Physiol. 2002, 282, E992–E1007. [Google Scholar]
  20. Liu, C.; Vehí, J.; Avari, P.; Reddy, M.; Oliver, N.; Georgiou, P.; Herrero, P. Long-Term Glucose Forecasting Using a Physiological Model and Deconvolution of the Continuous Glucose Monitoring Signal. Sensors 2019, 19, 4338. [Google Scholar] [CrossRef] [Green Version]
  21. Liu, C.; Avari, P.; Leal, Y.; Wos, M.; Sivasithamparam, K.; Georgiou, P.; Reddy, M.; Fernández-Real, J.M.; Martin, C.; Fernández-Balsells, M.; et al. A Modular Safety System for an Insulin Dose Recommender: A Feasibility Study. J. Diabetes Sci. Technol. 2019, 14, 87–96. [Google Scholar] [CrossRef]
  22. Sangeetha, S.; Sreepradha, C.; Sobana, S.; Bidisha, P.; Panda, R.C. Modeling and Control of the Glucose-Insulin-Glucagon System in Type I Diabetis Mellitus. ChemBioEng Rev. 2020, 3, 89–100. [Google Scholar] [CrossRef]
  23. Knopp, J.L.; Hardy, A.R.; Vergeer, S.; Chase, J.G. Modelling insulin adsorption in intravenous infusion sets in the intensive care unit. IFAC J. Syst. Control 2019, 8, 100042. [Google Scholar] [CrossRef]
  24. Visentin, R.; Schiavon, M.; Basu, R.; Basu, A.; Man, C.D.; Cobelli, C. Physiological models for artificial pancreas development. In The Artificial Pancreas: Current Situation and Future Directions, 1st ed.; Sánchez-Peña, R.S., Cherñavvsky, D.R., Eds.; Academic Press: Cambridge, MA, USA, 2019; Volume 1, pp. 123–152. [Google Scholar]
  25. Maas, A.H.; van der Molen, P.; van de Vijver, R.; Chen, W.; van Pul, C.; Cottaar, E.J.; van Riel, N.A.; Hilbers, P.A.; Haak, H.R. Concept Development of the Eindhoven Diabetes Education Simulator Project. Games Health J. 2016, 5, 120–127. [Google Scholar] [CrossRef]
  26. Ristau, R.A.; Yang, J.; White, J.R. Evaluation and Evolution of Diabetes Mobile Applications: Key Factors for Health Care Professionals Seeking to Guide Patients. Diabetes Spectr. 2013, 26, 211–215. Available online: http://spectrum.diabetesjournals.org/content/26/4/211.full.pdf (accessed on 17 September 2018). [CrossRef] [Green Version]
  27. El-Gayar, O.; Timsina, P.; Nawar, N.; Eid, W. Mobile Applications for Diabetes Self-Management: Status and Potential. J. Diabetes Sci. Technol. 2013, 7, 247–262. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. 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, e65. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  29. Huckvale, K.; Adomaviciute, S.; Prieto, J.T.; Leow, M.K.S.; Car, J. Smartphone apps for calculating insulin dose: A systematic assessment. BMC Med. 2015, 13, 106. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  30. Cui, M.; Wu, X.; Mao, J.; Wang, X.; Nie, M. T2DM Self-Management via Smartphone Applications: A Systematic Review and Meta-Analysis. PLoS ONE 2016, 11, e0166718. [Google Scholar] [CrossRef] [PubMed]
  31. Garcia, E.; Martin, C.; Garcia, A.; Harrison, R.; Flood, D. Systematic Analysis of Mobile Diabetes Management Applications on Different Platforms. In Proceedings of the 7th Conference on Workgroup Human-Computer Interaction and Usability Engineering of the Austrian Computer Society: Information Quality in e-Health, Graz, Austria, 25–26 November 2011; Springer: Berlin/Heidelberg, Germany, 2011. USAB’11. pp. 379–396. [Google Scholar]
  32. Baskaran, V.; Prescod, F.; Dong, L. A Smartphone-Based Cloud Computing Tool for Managing Type 1 Diabetes in Ontarians. Can. J. Diabetes 2015, 39, 200–203. [Google Scholar] [CrossRef]
  33. Chomutare, T.; Tatara, N.; Arsand, E.; Hartvigsen, G. Designing a diabetes mobile application with social network support. In Studies in Health Technology and Informatics; IOS Press: Clifton, NJ, USA, 2013. [Google Scholar]
  34. Nguyen, H.D.; Jiang, X.; Poo, D.C.C. Designing a Social Mobile Platform for Diabetes Self-management: A Theory-Driven Perspective. In Social Computing and Social Media: 7th International Conference, SCSM 2015, Held as Part of HCI International 2015, Los Angeles, CA, USA, 2–7 August 2015, Proceedings; Meiselwitz, G., Ed.; Springer International Publishing: Cham, Switzerland, 2015; pp. 67–77. [Google Scholar]
  35. Garnweidner-Holme, L.M.; Borgen, I.; Garitano, I.; Noll, J.; Lukasse, M. Designing and Developing a Mobile Smartphone Application for Women with Gestational Diabetes Mellitus Followed-Up at Diabetes Outpatient Clinics in Norway. Healthcare 2015, 3, 310–323. [Google Scholar] [CrossRef] [Green Version]
  36. Borgen, I.; Garnweidner-Holme, L.M.; Jacobsen, A.F.; Bjerkan, K.; Fayyad, S.; Joranger, P.; Lilleengen, A.M.; Mosdøl, A.; Noll, J.; Småstuen, M.C.; et al. Smartphone application for women with gestational diabetes mellitus: A study protocol for a multicentre randomised controlled trial. BMJ Open 2017, 7, e013117. Available online: http://bmjopen.bmj.com/content/7/3/e013117.full.pdf (accessed on 12 December 2018). [CrossRef]
  37. Lloyd, B.; Groat, D.; Cook, C.; Kaufman, D.; Grando, A. IDECIDE: A mobile application for insulin dosing using an evidence based equation to account for patient preferences. In Studies in Health Technology and Informatics; IOS Press: Clifton, NJ, USA, 2015; Volume 216, pp. 93–97. [Google Scholar] [CrossRef]
  38. Keith-Hynes, P.; Mize, B.; Robert, A.; Place, J. The Diabetes Assistant: A Smartphone-Based System for Real-Time Control of Blood Glucose. Electronics 2014, 3, 609–623. [Google Scholar] [CrossRef] [Green Version]
  39. González, A.A.; Voos, H.; Darouach, M. Glucose-Insulin System Based on Minimal Model: A Realistic Approach. In Proceedings of the 2015 17th UKSIM-AMSS International Conference on Modelling and Simulation, Cambridge, UK, 25–27 March 2015; IEEE Computer Society: Washington, DC, USA, 2015. UKSIM ’15. pp. 55–60. [Google Scholar] [CrossRef]
  40. Sorensen, J.T. A Physiologic Model of Glucose Metabolism in Man and Its Use to Design and Assess Improved Insulin Therapies for Diabetes. Ph.D. Thesis, Massachusetts Institute of Technology. Dept. of Chemical Engineering, Berkeley, CA, USA, 1985. [Google Scholar]
  41. Hernández-Ordoñez, M.; Campos-Delgado, D. An extension to the compartmental model of type 1 diabetic patients to reproduce exercise periods with glycogen depletion and replenishment. J. Biomech. 2008, 41, 744–752. [Google Scholar] [CrossRef]
  42. Berger, M.; Rodbard, D. Computer simulation of plasma insulin and glucose dynamics after subcutaneous insulin injection. Diabetes Care 1989, 12, 725–736. [Google Scholar] [CrossRef] [PubMed]
  43. Lehmann, E.; Deutsch, T. A physiological model of glucose-insulin interaction in type 1 diabetes mellitus. J. Biomed. Eng. 1992, 14, 235–242. [Google Scholar] [CrossRef]
  44. Wilinska, M.E.; Chassin, L.J.; Schaller, H.C.; Schaupp, L.; Pieber, T.R.; Hovorka, R. Insulin kinetics in type-1 diabetes: Continuous and bolus delivery of rapid acting insulin. IEEE Trans. Biomed. Eng. 2005, 52, 3–12. [Google Scholar] [CrossRef] [PubMed]
  45. Jahoda, P. MPAndroidChart. 2016. Available online: https://github.com/PhilJay/MPAndroidChart (accessed on 15 November 2018).
Figure 1. The diabetic patient model utilized for the implementation of simulations reported in this work.
Figure 1. The diabetic patient model utilized for the implementation of simulations reported in this work.
Applsci 10 06846 g001
Figure 2. The system architecture.
Figure 2. The system architecture.
Applsci 10 06846 g002
Figure 3. Screens of the proposed AEDMA app. (a) Main screen of the proposed applications. (b) Components of the meal model input Table. (c) Components of the insulin model tab.
Figure 3. Screens of the proposed AEDMA app. (a) Main screen of the proposed applications. (b) Components of the meal model input Table. (c) Components of the insulin model tab.
Applsci 10 06846 g003
Figure 4. The last two configuration screens. (a) Components of the exercise model Table. (b) Components of the simulations tab.
Figure 4. The last two configuration screens. (a) Components of the exercise model Table. (b) Components of the simulations tab.
Applsci 10 06846 g004
Figure 5. Comparison of blood glucose plots generated by AEDMA application for several values of carbohydrate grams and insulin units. (a) Experiment 1. (b) Experiment 2. (c) Experiment 3. (d) Experiment 4.
Figure 5. Comparison of blood glucose plots generated by AEDMA application for several values of carbohydrate grams and insulin units. (a) Experiment 1. (b) Experiment 2. (c) Experiment 3. (d) Experiment 4.
Applsci 10 06846 g005
Figure 6. Comparison of blood glucose plots generated by AEDMA application for several exercise intensities using experiment 1 settings. (a) Light exercise—10 min. (b) Light exercise—30 min. (c) Light exercise—90 min. (d) Moderate exercise—10 min. (e) Moderate exercise—30 min. (f) Moderate exercise—90 min. (g) Heavy exercise—10 min. (h) Heavy exercise—30 min. (i) Heavy exercise—90 min.
Figure 6. Comparison of blood glucose plots generated by AEDMA application for several exercise intensities using experiment 1 settings. (a) Light exercise—10 min. (b) Light exercise—30 min. (c) Light exercise—90 min. (d) Moderate exercise—10 min. (e) Moderate exercise—30 min. (f) Moderate exercise—90 min. (g) Heavy exercise—10 min. (h) Heavy exercise—30 min. (i) Heavy exercise—90 min.
Applsci 10 06846 g006
Table 1. Devices utilized for testing the proposed application.
Table 1. Devices utilized for testing the proposed application.
DeviceProcessorRAMAndroid Version
Galaxy S2Dual-core 1.2 GHz Cortex-A91 GB4.1
Galaxy S4Dual-core 1.7 GHz Krait 3001.5 GB5.0.1
Polaroid TabDual-core 1.0 GHz Broadcom 216631 GB4.2.2
Galaxy Tab 10.1Quad-core 2.3 GHz Krait 4003 GB5.1.1
LG G3 StylusQuad-core 1.3 GHz Cortex-A71 GB5.0.2
Table 2. Default parameter values for the proposed application.
Table 2. Default parameter values for the proposed application.
Meal Model
Breakfast time7:00 AM
Lunch time1:00 PM
Dinner time7:00 PM
Breakfast CHO (g)97.91
Lunch CHO (g)138.97
Dinner CHO (g)59.32
Insulin Model
Rapid effect insulin typeLispro
Prolonged effect insulin TypeNPH
Rapid effect insulin units at breakfast2
Rapid effect insulin units at lunch2
Rapid effect insulin units at dinner2
Prolonged effect insulin units at breakfast3
Prolonged effect insulin units at dinner3
Exercise Model
IntensityLight
Duration10 min
Start time9:00 AM
RoutineMonday checked
Table 3. Selected parameters set of four experiments.
Table 3. Selected parameters set of four experiments.
ExpMeal Insulin Dossification
Carbohydrate Grams IntakeRapid EffectProlongated Effect
B-CHOL-CHOD-CHOTypeB-uL-uD-uTypeB-uD-u
197.91138.9759.32Lispro222NPH33
249.8569.4829.66Lispro222NPH33
397.91138.9759.32Lispro444NPH66
449.8569.4829.66Lispro444NPH66
Table 4. Relevant data of testing subjects.
Table 4. Relevant data of testing subjects.
GenderAgePrevious Knowledge of Mobiles Apps for Diabetes Treatment
MaleFemale15–1920–25YesNo
76.9%23.1%38.5%61.5%15.4%84.6%
Table 5. Results of the questionnaire for the test group.
Table 5. Results of the questionnaire for the test group.
Question1 (No)%2 (Rather No)%3 (Do Not Know)%4 (Rather Yes)%5 (Yes)%
(1) Are the user interface controls adequate to the type of data required by the app?15.4%15.4%15.4%38.5%15.4%
(2) Is the application useful?23.1%0%0%0%76.9%
(3) Are the generated graphs easy to understand?7.7%0%23.1%46.2%23.1%
(4) Do the application’s user interface controls allow to manage the application in an ease way?0%7.7%7.7%46.2%38.5%
(5) How difficult has been the use of the app?15.4%38.5%30.8%15.4%0%
(6) Does the application motivate to study more in depth the phenomena?0%0%15.4%46.2%38.5%
(7) Will you reuse the app?0%7.7%7.7%15.4%69.2%
(8) Do you consider that current app can be improved?7.7%0%0%23.1%69.2%
(9) Do you consider appropriate the functionality of the application for learning the glucose levels variability?0%0%7.7%38.5%53.8%
(10) Do you consider the mobile application are sufficient to assess whether in the future you would like to participate in similar experiences with mobile apps?0%0%23.1%38.5%38.5%
Table 6. Time to complete computation of glucose concentration plots (in seconds) using several simulation time durations.
Table 6. Time to complete computation of glucose concentration plots (in seconds) using several simulation time durations.
DeviceSimulation Time Duration
4 Days1 Week2 Weeks3 Weeks
Polaroid Tab12.3013.5316.2421.11
Galaxy S29.5310.9713.1618.16
Galaxy S46.537.649.1712.84
LG G3 Stylus5.536.597.9011.30
Galaxy Tab 10.15.536.708.0411.73

Share and Cite

MDPI and ACS Style

Hernández-Ordoñez, M.; Nuño-Maganda, M.A.; Calles-Arriaga, C.A.; Rodríguez-León, A.; Ovando-Chacon, G.E.; Salazar-Hernández, R.; Montaño-Rivas, O.; Canseco-Cortinas, J.M. Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model. Appl. Sci. 2020, 10, 6846. https://doi.org/10.3390/app10196846

AMA Style

Hernández-Ordoñez M, Nuño-Maganda MA, Calles-Arriaga CA, Rodríguez-León A, Ovando-Chacon GE, Salazar-Hernández R, Montaño-Rivas O, Canseco-Cortinas JM. Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model. Applied Sciences. 2020; 10(19):6846. https://doi.org/10.3390/app10196846

Chicago/Turabian Style

Hernández-Ordoñez, Martín, Marco Aurelio Nuño-Maganda, Carlos Adrián Calles-Arriaga, Abelardo Rodríguez-León, Guillermo Efren Ovando-Chacon, Rolando Salazar-Hernández, Omar Montaño-Rivas, and José Margarito Canseco-Cortinas. 2020. "Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model" Applied Sciences 10, no. 19: 6846. https://doi.org/10.3390/app10196846

APA Style

Hernández-Ordoñez, M., Nuño-Maganda, M. A., Calles-Arriaga, C. A., Rodríguez-León, A., Ovando-Chacon, G. E., Salazar-Hernández, R., Montaño-Rivas, O., & Canseco-Cortinas, J. M. (2020). Medical Assistant Mobile Application for Diabetes Control by Simulating a Compartmental Model. Applied Sciences, 10(19), 6846. https://doi.org/10.3390/app10196846

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop