1 Introduction

Diabetes mellitus (DM) is a metabolic condition in which a person is unable to regulate the blood glucose (BG) levels in his/her body. The blood sugar in normal people ranges between 70 and 180 mg per deciliter (mg/dL). Since people with DM are unable to regulate their BG, they experience hyperglycemia (above 180 mg/dL) and hypoglycemia (below 70 mg/dL). Prolonged hyperglycemia can lead to several long-term health complications such as diabetic retinopathy, neuropathy, nephropathy, and many more. Hypoglycemia can lead to loss of consciousness, coma, and sometimes even death. There are three types of diabetes that people are affected by, namely (i) Type-1 diabetes (T1DM), where no insulin secretion takes place in the pancreas; (ii) Type-2 diabetes (which affects the majority of diabetics in the world), where the amount of insulin secreted by the pancreas is not sufficient to regulate the blood sugar levels because of insulin resistance; and (iii) gestational diabetes which is generally caused by insulin-blocking hormones produced during pregnancy. According to the Diabetes Atlas by the International Diabetes Federation (IDF), approximately 537 million adults are affected by diabetes. This number is predicted to increase to 643 million by 2030 and 784 million by 20451. Approximately \(10\%\) of all diabetes are Type-1 while roughly \(90\%\) are Type-22. Gestational diabetes is temporary and goes away after pregnancy in most cases. However, it increases the risk of becoming Type-2 later in life2.

Since Type-1 Diabetic patients cannot produce insulin naturally, they depend on external insulin infusion (typically in the form of multiple injections on a daily basis). Insulin doses are typically delivered in two ways: (i) Basal insulin, which is the insulin dose given to maintain steady-state glucose levels at all time, and (ii) Bolus insulin, which is the insulin dose given to compensate for glucose rise whenever the patient consumes a main meal. Basal insulin is typically a long-acting insulin that is given once a day, the dose of which mainly depends on the body mass index (BMI) of the patient. The bolus insulin, on the other hand, is typically a short-acting insulin, the amount of which is calculated depending on the carbohydrate content of the food intake. Computation of the bolus amount is expected to be done by the patient based on a long chart of food items. Most of these patients also keep track of their glucose levels a few times a day using a standard self-monitoring blood glucose (BG) meter. However, in such an approach, the patients are more prone to significant health complications due to BG excursions beyond safe limits, both due to incorrect doses and also due to the sparsity of glucose monitoring.

Over the last few decades, significant technological advancements have enabled glucose-measuring devices that are more continuous and less intrusive in nature. Similarly, more accurate and convenient to use insulin pumps are now available. Popular devices that are fairly widely used by T1DM patients to monitor the BG level and deliver insulin are continuous glucose monitoring (CGM) sensors and insulin pumps, respectively. However, although insulin pumps are more convenient to use and are helpful in ensuring lesser excursions of BG beyond the safe limits provided the patient is smart enough to keep changing the basal and bolus set points appropriately, they are not a true alternative for the natural pancreas. This is because through such a mechanism it is impossible for a human being to keep changing the doses and select right amount of insulin infusion at the right time.

To address this strong limitation, taking the help of fairly continuous measurement of BG through CGM followed by smart control algorithms, efforts are being made to automate this glucose regulatory process. The resulting system, which is known as the Artificial Pancreas (AP) system, is a closed-loop biomedical system, designed to serve as close to the natural pancreas system as possible with no/minimal manual intervention by the patient. The insulin to be delivered is calculated using sophisticated control algorithms. The philosophy of the AP system was first introduced in 19743. Since then, several research efforts have been made to design control algorithms that mimic the metabolic control action of the natural pancreas. Note that artificial pancreas is a safety-critical control system, failure of which can result in significant health complications.

Control algorithms are primarily of two types: (i) model-based and (ii) data-driven. Whenever possible, a model-based approach is preferred as it is based on the understanding of the underlying system dynamics. However, such an approach requires a mathematical model that describes the dynamics of the system as accurately as possible. The model mainly serves two purposes: (i) to compute the required control input by exploiting the model and (ii) to conduct in silico (computer simulation) trials in order to validate and gain confidence in the designed control system. Mathematical modeling plays a vital role in the development, testing, and validation of artificial pancreas systems as well. The two types of models that are extensively used for artificial pancreas are (i) minimal models: These models are relatively simple and only capture essential components of the glucose–insulin dynamics in the body. These models are also called as control-oriented minimal models as they are primarily utilized for control algorithm synthesis for blood glucose regulation. (ii) High-fidelity models: these models accurately mimic the internal dynamics of the body, including processes such as liver function, glucose production as well as glucagon production. The high-fidelity models are primarily used to verify and test AP algorithms as a precursor to clinical trials. Note that the FDA-approved high-fidelity T1DM model has sufficient fidelity to eliminate the requirement for animal testing of AP systems prior to the clinical trials in case one follows the same inclusion criteria4. The main purpose of this article is to review various minimal and high-fidelity models used for artificial pancreas development worldwide.

Before concluding this section, the authors of this paper would like to mention other similar works published on artificial pancreas and mathematical models associated with it. In the “The Artificial Pancreas: Current Situation and Future Directions”5 book, research activities carried out by multidisciplinary teams worldwide are outlined with a focus on the engineering and medical aspects of the AP research. A review of mathematical models from various research groups is also presented in the book. A review of simulators utilized for AP development was compiled by Hovorka et al. in Ref.6, where the focus is on high-fidelity models. Other notable review papers include the article by Boris Kovatchev7, where a history of glucose monitoring devices, mathematical models, and control algorithms is presented. However, the article does not present mathematical insight into models and algorithms. Skyler et al.8 discuss the advances in physical devices as well as control algorithms in AP systems.

The rest of the paper is organized as follows. Section 2 focuses on the mathematical modeling of the internal dynamics of glucose and insulin in the context of control synthesis. Section 3 focuses on high-fidelity models used in Type-1 Diabetic patient simulators. These models are primarily used to evaluate control algorithms for AP systems. The more recent advancements in modeling for AP systems include models for exercise and dual-hormone pumps. These are discussed in Sect. 4. Appropriate conclusions are derived in Sect. 5.

2 Minimal Models for Control Synthesis

As mentioned in Sect. 1, model-based control algorithms rely on a “plant-model”, in which a set of differential equations, the solution of which mimics the time response of the actual system. There are two kinds of models, namely: (i) physiological models that mathematically interpret the process of glucose–insulin interaction by modeling meal ingestion, insulin administration, and glucose regulation; and (ii) data-driven models that do not require a physiological interaction of the behavior, but utilize time-tagged historical data instead to establish an input–output relationship.

2.1 Physiological Minimal Models

In recent years, minimal models to approximately capture the internal glucose–insulin dynamics of the patient have been proposed to have a macroscopic understanding of the system behavior and to facilitate closed-loop control synthesis algorithms. The minimal model can be split into three primary subsections to describe the underlying physiological process, as described below.

2.1.1 Gluco-regulatory Models

Gluco-regulatory models describe the interaction between glucose and insulin in the bloodstream. This phenomenon has been studied for decades, and several mathematical models have been proposed. A few of the most relevant ones are included here.

Bergman Minimal Model: The most well-known and widely used gluco-regulatory model proposed by Bergman et al.9 describes the disappearance of glucose from the blood and key physiological parameter such as insulin sensitivity. The three-compartmental model with appropriate variations describes the glucose-regulatory behavior of different patients with varying internal dynamics. The Bergman minimal model equations for Type-1 Diabetic patients are given in Eq. (1) where GX represent the glucose in the bloodstream and insulin within the remote insulin compartment, respectively. Insulin sensitivity and glucose effectiveness are defined by \(S_I = p_3/p_2\) and \(p_1 (min^{-1})\), respectively. The term \(R_a\) describes the rate of appearance of glucose in the bloodstream due to the effect of a meal. The terms \( G_b\) and \(I_b\) denote the steady-state basal levels of glucose and insulin in the blood, respectively. Note that this model is augmented for healthy patients with another state that describes insulin levels:

$$\begin{aligned} \begin{aligned} \dot{G}(t)&= -p_{1} G(t)-X(t)G(t) + p_{1}G_{b} + R_a (t)\\ \dot{X}(t)&= -p_{2} X(t)+p_{3}\left( I(t)-I_{b}\right) \end{aligned} \end{aligned}$$
(1)

Hovorka Gluco-regulatory Model: Hovorka et al. proposed a slightly higher fidelity model10 (as compared to the Bergman minimal model) by considering more complex interactions between glucose and insulin in the body. This model considers Endogenous Glucose Production (EGP) that is responsible for glucose production in the absence of a meal. The model equations are shown in Eq. (2), where the terms \(G_1\) and \(G_2\) represent the glucose levels in the accessible and non-accessible compartments, respectively. While the equations model the effect of insulin in glucose distribution, disposal, and production (\(x_1,x_2,x_3\), respectively), the Bergman minimal model only describes the interaction between glucose and insulin in the bloodstream. The equations describing the system dynamics are reproduced as follows:

$$\begin{aligned} \begin{aligned} \dot{G}_{1}(t)&=-\left[ \frac{F_{01}}{V_{G} G_{p}(t)}+x_{1}(t)\right] G_{1}(t)+k_{12} G_{2}(t)\\&\quad -F_{R}+E G P+U_{G}(t)\\ \dot{G}_{2}(t)&=x_{1}(t) G_{1}(t)-\left[ k_{12}+x_{2}(t)\right] G_{2}(t)\\ \dot{x}_{1}(t)&=-k_{b_{1}} x_{1}(t)+k_{a_{1}} I_{p}(t)\\ \dot{x}_{2}(t)&=-k_{b_{2}} x_{2}(t)+k_{a_{2}} I_{p}(t)\\ \dot{x}_{3}(t)&=-k_{b_{3}} x_{3}(t)+k_{a_{3}} I_{p}(t)\\ \end{aligned} \end{aligned}$$
(2)

Cobelli Gluco-regulatory Model: The model developed by Cobelli et al.11 also has a higher fidelity compared to the Bergman minimal model. This gluco-regulatory model is included in the FDA-approved high-fidelity T1DM simulator due to its ability to describe details such as EGP, insulin-independent glucose utilization (\(U_{id}\)) and insulin-dependent glucose utilization (\(U_{ii})\). The states are indicated by \(G_p\) and \(G_t\), which correspond to glucose in the plasma and glucose in the tissue, respectively. Together they are used to calculate the glucose levels in the blood, G. The glucose concentration in the plasma is \(G(t) =\frac{G_{p}}{V_{G}}\), where \(V_{G}\) is the volume distribution. Although the model has a higher fidelity, note that the parameters need to be identified through extensive ‘tracer studies’, which are difficult to carry out in general. Further, \(R_a\) is the rate of glucose appearance as seen in the Bergman minimal model (Eq. (1)):

$$\begin{aligned} \begin{aligned} \dot{G}_{p}(t)&=E G P(t)+R a(t)-U_{\textrm{ii}}(t)\\&\quad -E(t)-k_{1} G_{p}(t)+k_{2} G_{t}(t) \\ \dot{G}_{t}(t)&=-U_{\textrm{id}}(t)+k_{1} G_{p}(t)-k_{2} G_{t}(t) \\\\ \end{aligned} \end{aligned}$$
(3)

2.2 Meal Models

In addition to the gluco-regulatory model, meal models that describe the carbohydrate ingestion process from the meal and its transport from the stomach to the intestines have also been developed, which are briefly reviewed in this section.

Dalla Man Meal Model: One of the most important models that describe the meal ingestion process was developed by Dalla Man et al.11. The model equations are shown in Eq. (4), where \(Q_{sto_{1}} \text { and } Q_{sto_{2}}\) represent the solid and liquid phase of the carbohydrate content in the stomach, respectively. The terms \(Q_{gut}\) and \(k_{abs}(min^{-1})\) indicate the carbohydrate content in the intestine and its rate of absorption, respectively:

$$\begin{aligned} \begin{aligned} \dot{Q}_{sto_{1}}(t)&=- k_{21} Q_{s t o _{1}}(t)+D \delta (t)\\ \dot{Q}_{sto_{2}}(t)&= - k_{e m p t y}\left( Q_{s t o}\right) Q_{s t o _{2}}(t) + k_{21} Q_{s t o _{1}}(t) \\ \dot{Q}_{gut}(t)&= -k_{a b s} Q_{g u t}(t) + k_{e m p t y}\left( Q_{s t o}\right) Q_{s t o _{2}}(t)\\\\ \end{aligned} \end{aligned}$$
(4)

The gastric emptying rate \(k_{empty} (min^{-1})\) depends on the total amount of food in the stomach (\(Q_{sto} = Q_{sto_{1}}+Q_{sto_{2}}\)) and is a time-varying parameter. The representation of the glucose transfer rate from the stomach to the intestines brings a vital advantage to the Dalla Man model. The system of equations describing this phenomenon is given as follows:

$$\begin{aligned}{} & {} k_{empty}\left( Q_{sto}\right) = k_{\min }+\frac{k_{\max }-k_{\min }}{2}\nonumber \\{} & {} \quad \times \left\{ \tanh \left[ \alpha \left( q_{s t o}-b D\right) \right] -\tanh \left[ \beta \left( q_{s t o}-c D\right) \right] +2\right\} \end{aligned}$$
(5)

Hovorka Meal Model: Hovorka et al.6 proposed a much simpler model for glucose absorption in which the gastrointestinal system is a compartmental model with two identical compartments and transfer rates. The term D(t) indicates the carbohydrate ingested in grams. The term Bio represents the effectiveness of the ingested carbohydrate absorption, i.e., the consumed carbohydrates proportion that will go into the circulatory system. The maximum absorption time for the carbohydrates is indicated by \(t_{max}\) that regulates the transfer speed between the two compartments:

$$\begin{aligned} \begin{aligned} \dot{G}_{1}(t)&=-\frac{G_{1}(t)}{t_{\max }}+B i o \cdot D(t) \\ \dot{G}_{2}(t)&=\frac{G_{1}(t)}{t_{\max }}-\frac{G_{2}(t)}{t_{\max }} \\ G_{e x}&=\frac{G_{2}}{t_{\max }} \end{aligned} \end{aligned}$$
(6)

However, note that this model does not consider the variable gastric emptying rate, as shown in the Dalla Man model (Eq. (5)).

2.3 Subcutaneous Insulin Kinetics Models

T1DM patients regulate glucose by insulin injections or insulin pumps that deliver insulin subcutaneously. This mechanism of insulin transport from the subcutaneous layer to the bloodstream has been modeled by several studies. The prominent ones include the following12,13.

Dalla Man Insulin Model: The equations of this model are given in Eq. (7). The three states \(I_{sc_1}, I_{sc_2}\) and \(I_p\) represent non-monomeric insulin, monomeric insulin (in the subcutaneous tissue layer) and plasma insulin, respectively. The rate of absorption of non-monomeric insulin from the subcutaneous layer to plasma and the rate of diffusion into the second compartment is indicated by \(k_{a_{1}} (min^{-1})\) and \(k_d (min^{-1})\), respectively. The insulin is finally absorbed into the plasma at a rate of \(k_{a_{2}}(min^{-1})\). There is a significant time delay between insulin infusion and its appearance in the subcutaneous layer. This delay is modeled as a pure time delay (\(u(t-\tau )\)):

$$\begin{aligned} \begin{aligned} \dot{I}_{sc_{1}}(t)&=-\left( k_{a_{1}}+k_{d}\right) I_{sc_{1}}+u(t-\tau )\\ \dot{I}_{sc_{2}}(t)&= -k_{a_{2}} I_{sc_{2}}+k_{d} I_{sc _{1}}\\ \dot{I}_{p}(t)&= -k_{e} I_{p}(t)+k_{a_{1}} I_{sc_{1}}+k_{a_{2}} I_{sc_{2}}\\\\ \end{aligned} \end{aligned}$$
(7)

The aforementioned equations represent a basic three-compartment linear model in which the insulin absorption and disappearance rates are assumed to be unaffected by other factors.

Subcutaneous Insulin Model for Computer Simulation: This model was developed by Wong et al.13 to describe plasma insulin kinetics after the subcutaneous administration of an insulin bolus and a continuous infusion of insulin lispro. The associated equations corresponding to this model are given in Eq. (8). The model accounts for two different pathways of insulin absorption. The first with two compartments and a rate constant \(k_{a_{1}}\) (per min) and the second with a single compartment with rate constant \(k_{a_{2}}\) (per min) along with the proportion parameter k (%) of insulin channeled through these pathways. A saturable local degradation at the injection site is considered for both paths. The parameters \(V_{max} \) (mU/min) and \(K_m \) (mU) represent the saturation level and the insulin mass at which insulin degradation equals half of its maximum value, respectively:

$$\begin{aligned} \begin{aligned} \dot{I}_{sc_{1a}}&= -k_{{a_{1}}\,{sc_{1a}}}-\frac{V_{\max }}{K_{m}+ I_{sc_{1a}}} I_{sc_{1a}} + ku(t) \\ \dot{I}_{sc_{1b}}&=-k_{a_{1}} I_{sc_{1b}}+k_{a_{1}} I_{sc_{1a}} \\ \dot{I}_{sc_{2}}&=-k_{a_{2}} I_{s c_{2}}-\frac{V_{\max }}{K_{m}+I_{sc_{2}}} I_{sc_{2}}+(1-k) u(t)\\ \dot{I}_{p}&= -k_{e} I_{p^{+}} k_{a_{1}} I_{sc_{1b}}+k_{a_{2}} I_{sc_{2}}\\ \end{aligned} \end{aligned}$$
(8)

The minimal models described in the above sections form an integral part of the control algorithm development for blood glucose regulation. The authors have presented a system of equations which is presented in Ref.14 where the modified Bergman Minimal Model, the Dalla Man meal model, the Dalla Man insulin kinetics system were augmented to construct a minimal model. (Eqs. (1), (4), and (7)). For the benefit of the reader, a summary of the advantages and limitations of each subsystem is highlighted in the following table.

Model variant

Advantages

Limitations

Gluco-regulatory Model

  Bergman Model

Quantifies insulin sensitivity and glucose effectiveness, parameters easily identifiable

Does not account for endogenous glucose production (EGP), Interaction of glucose and insulin simplified

  Hovorka Gluco-regulatory Model

Higher fidelity, describes the effect of insulin on glucose production, disposal, and distribution

Number of states and parameters are higher than the other two models

  Cobelli Gluco-regulatory Model

Higher fidelity, model includes: EGP, insulin-dependent and insulin-independent glucose utilization

Identification of model parameters for individual patients requires tracer studies

Meal Model

  Dalla Man Meal Model

Captures nonlinear effect of gastric emptying

Assumes rate of absorption of carbohydrate in the intestine is constant

  Hovorka Meal Model

Simpler two-compartment model

Assumes a constant gastric emptying rate

Subcutaneous Insulin Kinetics Model

  Dalla Man Insulin Model

Accounts for the delay involved in insulin administered subcutaneously

Model only validated for 10.9 Units to 19.4 Units of fast acting insulin (Lispro)

  Jason et al. Insulin Model

Insulin injected appears proportionally via two pathways

Assumes a constant gastric emptying rate

Even though physiological models are appealing, the major drawback of such models is the data requirements for parameter identification. To identify the model parameters, glucose and insulin data samples obtained from standard “tolerance tests” are used in parameter identification techniques. An alternative modeling method to avoid this problem is the “data-driven approach” that relies only on time-tagged historical glucose data (for a small finite window of time), which is relatively much easier to access using CGM sensors.

2.4 Data-Driven Insulin Customization

Since physiological model-driven control techniques rely on the identification of several customized parameters, there are often challenges associated with the observability of states and identification of physiological parameters. A possible alternative is to use lower order data-driven models. These techniques do not rely on an accurate mathematical model of the system for control synthesis. Instead, they rely on data to approximate the input–output relation to form second (or) third-order linear models that customize insulin doses according to past glucose data. A few popular data-driven modeling techniques are Auto-regressive Moving Average (ARMAX) and Nonlinear ARMAX (NARMAX) and their variants15. These models can be utilized with MPC by replacing the physiological minimal model, as they do not require extensive parameter identification. Detail discussions on these models are omitted here for brevity.

3 High-Fidelity T1DM Models

The internal dynamics of the glucose–insulin interaction in the body are quite complex. Although minimal models approximate this behavior, they do not account for multiple processes, such as liver function and glucagon secretion. Therefore, the minimal models cannot be utilized for simulating Type-1 patients’ behavior. High-fidelity models bridge this gap and capture the complexities of the internal dynamics of the body with a high degree of accuracy. These high-fidelity models can therefore be utilized for in silico testing and validating control algorithms. The subsystems of the high-fidelity model and two widely used simulators are discussed in this section.

3.1 Subsystems in High-Fidelity Models

In addition to the minimal model subsystems detailed in Sect. 2, the major subsystems/processes modeled include the conversion of carbohydrates into blood glucose, the kinetics of insulin from the subcutaneous layer to the bloodstream, and glucose production in the liver. This subsection will focus on aspects that are not accounted for in the control-oriented minimal model.

3.1.1 The Liver: Endogenous Glucose Production

Endogenous Glucose Production (EGP) is responsible for the rise of glucose in the bloodstream in the absence of food. In addition to the insulin-producing beta cells, the natural pancreas also has alpha cells, that produce a hormone called glucagon. Glucagon is responsible for increasing glucose concentration through endogenous glucose production.

The rate of glucose production (or) EGP in the liver is modeled as Eq. (9)16 and depends on the glucose concentration in the plasma (\(G_p(t)\)), delayed insulin action in the liver (\(X^{L}(t)\)), and delayed glucagon action in the liver (\(X^{H}(t)\)). The term \(\xi \) represents the change in glucose production in the liver due to the presence of glucagon. The delayed insulin action is dependent on the amount of insulin in the liver (\(I'(t)\)), and the glucagon action depends on the plasma glucagon concentration (H(t)). Glucagon action is modeled such that there is no glucagon secretion in the liver if its concentration is above the basal value \((H_b)\). Note that kp1 (mg/kg/min) is the endogenous glucose production rate at zero glucose and insulin, whereas, kp2, kH, ki are rate constants (min−1) that describe the delays between the compartments in the liver subsystem:

$$\begin{aligned} \begin{aligned} \dot{X}^{L}(t)&= -k_{i}[X^{L}-I'(t)] \\ \dot{I}' (t)&= -k_{i}[I'(t)-I(t)] \\ \dot{X}^{H}(t)&= -k_{H}X^{H}(t) + k_{H}\max [H(t)-H_{b},0] \end{aligned} \end{aligned}$$
(9)

Finally, the endogenous glucose production can be modeled as \(EGP(t) = k_{p1}(t) - k_{p2}G_{p}(t) - k_{p3}(t)X^{L}(t) + \xi X^{H}(t)\).

3.1.2 Glucagon Secretion Model

It is mentioned in the previous subsection that glucose production in the liver is a function of insulin and glucagon hormones (\(X^L(t)\) and \(X^H(t)\), respectively). Further, the delayed glucagon action was shown to be a function of glucagon concentration in the plasma (H(t)). Therefore, the secretion of glucagon hormone from the pancreas, which subsequently appears in plasma (as H(t)), is simulated in the glucagon secretion model. The equations that mimic the secretion of the glucagon hormone in the body are shown in Eq. (10)16. The secretion of glucagon is modeled as a single-compartment linear model where n is the rate of clearance of glucagon from the plasma and \(SR_{H}\) is the secretion of glucagon in the alpha cells of the pancreas. Glucagon administered externally (in the case of dual-hormone pumps) also contributes to glucagon update. The effect of external glucagon administration is indicated by \(Ra_{H}(t)\):

$$\begin{aligned} \begin{aligned} \dot{H}(t)&= -nH(t) + SR_{H}(t) + Ra_{H}(t)\\ \end{aligned} \end{aligned}$$
(10)

The rate of secretion of glucagon cells \((SR_{H}(t))\) is given as a sum of dynamic and static secretion. The dynamic secretion \(SR^{d}_{H}(t)\) is a function of the rate of change of glucose levels (\(\delta \times \max ( -\frac{dG(t)}{dt},0 )\)), which implies that dynamic glucagon secretion occurs only when the glucose concentration in the bloodstream is decreasing:

$$\begin{aligned} \begin{aligned} SR_{H}(t)&= SR^{d}_{H}(t) + SR^{s}_{H}(t) \\ SR^{d}_{H}(t)&= \delta \times \max \biggl ( -\frac{dG(t)}{dt},0 \biggl ) \end{aligned} \end{aligned}$$
(11)

The static rate of secretion \((\dot{SR}^{s}_{H}(t))\) depends on the difference between the current glucagon secretion and basal glucagon concentration in the body. In the event that glucose concentration in the blood is lower than the basal level (i.e., \([G(t) - G_b]<0\)), the rate of secretion also depends on the insulin level in the blood (I(t)) as shown in Eq. (12):

$$\begin{aligned}{} & {} \dot{SR}^{s}_{H}(t) \nonumber \\{} & {} \quad = {\left\{ \begin{array}{ll} -\rho [SR^{s}_{H}(t) - SR^{b}_{H}], \ \ \text {if }G(t)\ge G_b\\ -\rho \biggr [SR^{s}_{H}(t) - \max \biggl (\frac{\sigma [G_{th}-G(t)}{I(t)+1} + SR^{b}_{H},0\biggl )\biggr ], &{}\text {otherwise} \end{array}\right. } \end{aligned}$$
(12)

3.1.3 Insulin Delivery Models

In AP systems, insulin is administered through the subcutaneous layer using an insulin pump. The kinetic model of insulin from the subcutaneous layer to the bloodstream is included in the T1DM simulator and discussed in detail, along with other subcutaneous insulin kinetic models in Sect. 2. In addition, insulin can be delivered via intradermal injection and also be inhaled. Although these models are clinically validated, they are not discussed in this review article as they are typically not used in AP systems.

3.2 Advantages and Drawbacks of High-Fidelity Models

In addition to capturing the complex dynamics, the high-fidelity models account for the day-to-day variation parametric of the T1DM patient (intra-patient variability) and inter-patient variability of virtual patient populations as well. Besides giving a better insight to the underlying phenomenon, high-fidelity models are essential in control algorithm development for AP systems as they capture the natural physiological phenomena that mimic the internal dynamics of a diabetic patients, and hence can be used for the purpose of validation.

Although a comprehensive model such as the T1DM simulator accurately mimics the internal dynamics, they come with certain drawbacks as well. The parameter identifiability is one of the key drawbacks of a high-fidelity model. Conducting tracer studies become necessary to identify the parameters of all the models in the simulator. Due to many states and associated model parameters, the complexity of high-fidelity models prohibits them from being used for control algorithm development. Another critical behavior that alters blood glucose levels and the internal dynamics of the glucose–insulin system is the effect of exercise/physical activity. Note that many ‘high-fidelity models’ do not incorporate the effect of exercise into the simulation yet (this is a topic of ongoing research).

3.3 Currently Available High-Fidelity Models

Several research groups have developed high-fidelity models for simulating virtual T1DM populations. This section discusses the most widely used simulators for verifying the performance of AP algorithms and their features.

3.3.1 T1DM Simulator

A well-known Diabetic patient simulator is the T1DM Simulator16 that is jointly developed by the University of Virginia and the University of Padova. The T1DM simulator also called the UVA/Padova Simulator, is approved by the Food and Drug Administration (FDA) as a substitute for preclinical testing of insulin treatments17.

The various subsystems of the simulator primarily utilize the models developed by Dalla Man et al., including (i) The Gluco-regulatory model11 (ii) the Meal ingestion model11 (iii) The Subcutaneous Insulin Kinetics model12. Moreover, the effect of Endogenous Glucose Production and the effects of glucagon (see Sects. 3.1.1 and 3.1.2) are incorporated into the T1DM simulator. In addition to these physiological phenomena, the simulator includes models for Sensor noise and insulin pumps.

The validity of the T1DM simulator was established by comparing the simulations with the results of T1DM patients in clinical studies. The simulator also incorporates phenomenon that mimics real-world conditions such as (i) The dawn phenomenon: rise in glucose levels in T1DM subjects during the early morning hours (between 3:00 AM and 7:00 AM. (ii) The intra-variability of insulin sensitivity (\(S_I\)). Further, insulin sensitivity is a crucial parameter in T1DM patients that determines the effectiveness of a given quantity of insulin in lowering blood sugar levels. Insulin sensitivity does not remain constant and may vary from meal to meal. The variation of this parameter is also modeled in the T1DM simulator. The simulator has a virtual population of over 300 subjects (constituting adults, adolescents, and children) that can help to evaluate the robustness of control algorithms for a wide range of physiological characteristics. In addition, the simulator incorporates models to simulate Continuous glucose Monitors (CGM). CGM sensors have a significant delay in measurement and are prone to measurement noise. The details of the mathematical models, model parameters, and physiological interpretation of the models in the T1DM simulator are documented in Ref.16. A visual representation of the various subsections and the corresponding models within the simulator is shown in Fig. 1.

Figure 1:
figure 1

T1DM simulator functional block diagram (Ref:16).

3.3.2 Hovorka’s High-Fidelity Model

Hovorka et al. have also proposed a high-fidelity model consisting of a virtual population of 18 T1DM subjects18, which served as a simulator that was utilized for evaluating closed-loop algorithms. The various physiological phenomenon modeled in the simulator include Meal absorption, insulin action, glucose kinetics, insulin absorption, and Insulin kinetics. The equations for Hovorka’s model are included in Ref.19. In addition to the internal dynamics, the simulator incorporates models to simulate glucose measurements using a CGM and insulin delivery via an insulin pump. Further, the model parameters were validated in a clinical study with 12 T1DM patients6. In order to account for intra-subject variability, sinusoidal oscillations of model parameters are added to the simulator. The Hovorka group used this simulator to develop an AP system for children and adolescents affected by T1DM and was supported by the Juvenile Diabetic Research Foundation (JDRF)20.

4 Current and Future Trends

There are sufficient clinical studies that have shown significant improvement in the overall health and lifestyle of the patients using the AP systems. However, several aspects are still the subject of research, such as automatic meal detection and exercise compensation. More recently, dual-hormone pumps have been extensively studied. These futuristic aspects of AP research are discussed briefly in this section.

4.1 Dual-Hormone Models

Most AP approaches follow a uni-hormonal approach in which glucose levels are regulated using only insulin. However, it is to be noted that insulin can only decrease blood glucose levels. Therefore, it is considered to be a “one-sided control action”. More recently, bi-hormonal/dual-hormone AP systems and insulin pumps have been developed where insulin and glucagon are used to provide a “two-sided control action” for effectively regulating glucose levels21. Although the dual-hormone AP systems offer better control during exercise and prevent hypoglycemia22, there are certain disadvantages of using glucagon. In practice, it is challenging to use native glucagon as it is unstable23. The current research is focused on stabilizing glucagon and using it for AP Systems. Although the T1DM simulator contains a subsystem describing the effect of glucagon on endogenous glucose production, it has to be administered externally (via subcutaneous injections). A model capturing the external administration of glucagon is given below.

Subcutaneous Glucagon Kinetics: The kinetics of subcutaneous glucagon from administration to final appearance in the bloodstream was presented by Farhy et al.24. A two-compartmental model, as shown in Eq. (13), was proposed. The external insulin infused (\(H_{inf}(t)\)) subcutaneously appears in the first compartment (\(H_{sc1}\)) and diffuses into the second subcutaneous layer \(H_{sc_{2}}\) with a rate \(k_{h_{1}} (min^{-1})\). The glucagon finally appears in the bloodstream (\(Ra_{H}(t)\)) from the second compartment at a rate \(k_{h_{2}}(min^{-1})\) as is indicated in Eq. (10):

$$\begin{aligned} \begin{aligned} \dot{H}_{sc_{1}}&= -(k_{h_{1}} + k_{h_{2}})H_{sc_{1}}(t) + H_{inf}(t)\\ \dot{H}_{sc_{2}}&= k_{h_{1}}H_{sc_{1}}(t) + k_{h_{3}})H_{sc_{2}}(t)\\ \end{aligned} \end{aligned}$$
(13)

Finally, the externally infused glucagon appears in the glucagon secretion model as \(Ra_{H}(t) = k_{h_{3}}H_{sc_{2}}(t)\).

4.2 Models for Exercise

In addition to the glucose variation due to uncertainty in announced and unannounced meals, the patient’s internal-glucose dynamics also vary significantly during physical activity. It is well known that an increase in physical activity directly relates to faster-than-normal glucose decay in the bloodstream25. Therefore, an exercise model is necessary to compensate for the exercise-induced blood glucose degradation.

4.2.1 High-Fidelity Exercise Model

The critical component missing from the T1DM simulator is the effect of exercise. Exercise plays a vital role in the rate of glucose decay as well as insulin effectiveness. Insulin overdose during and after a strenuous activity/exercise can lead to hypoglycemia. The exercise effect on glucose was captured successfully at the Oregon Health and Science University, and a high-fidelity model was proposed with a statistical virtual patient population (VPP)26. The proposed mathematical patient models included (i) A Dual-Hormone VPP, which includes insulin and glucagon input, and (ii) A Single-Hormone VPP, which only takes insulin input. The models presented were validated via clinical testing, in which 20 patients were given known meals and participated in aerobic exercises for 45 min (two hours post-food intake). Although physical exercise is recommended by the American Diabetic Association (27), most Type-1 Diabetic patients (around \(63\%\)) do not exercise regularly as it may lead to hypoglycemia28. Although the effect of exercise on human physiology has been well studied, very few mathematical models exist that accurately represent the effect of exercise on glucose and insulin dynamics of the human body (particularly in T1DM patients)

4.2.2 Control Oriented Exercise Model

The high-fidelity exercise model discussed above is primarily utilized for simulating the exercise effect in T1DM patients but cannot be used for control algorithm synthesis due to a large number of parameters and states. Therefore, just as in the case of the minimal model, a control-oriented model for capturing exercise is required. According to Dalla Man et al.29, exercise changes the rate of disappearance of glucose in two ways: (i) insulin-independent rate of disappearance (which is given by the \(p_1\) parameter in the gluco-regulatory model in Eq. 1 and (ii) insulin-dependent rate of disappearance given by \(S_I\), that is also the insulin sensitivity parameter. In the same study, six models were evaluated. In addition, it was found that exercise had an immediate effect on the insulin-independent rate of disappearance and a delayed effect on the insulin-dependent rate of disappearance of glucose. The effect of exercise can be modeled as a variation of the parameters of the gluco-regulatory model as given in Eq. (14):

$$\begin{aligned} \begin{array} {l}{p_{1_{ex}} = p_1(1+p_5 E(t))}\\ {S_{I_{ex}} = S_I(1+p_6E_a(t))} \end{array} \end{aligned}$$
(14)

Here, E(t) is the intensity of the exercise level that varies from 0 to 1 and \(E_a(t)\) is the delayed signal of exercise that is given by \(\dot{E}_a(t) = -p_4 E_a(t) + p_4 E(t)\). The terms \(p_5\) and \(p_6\) indicate the insulin-independent and insulin-dependent effects of exercise on the glucose disappearance rate, respectively. The intensity (or) level of exercise is either obtained from oxygen consumption (as detailed by Ref.29) or using the elevation in heart rate (HR) as proposed by Ref.30.

5 Conclusion

There has been significant progress in developing mathematical models for Diabetic research over the past few decades. The impact of this work has led to (i) a better understanding of the internal dynamics of Type-1 diabetics as well as (ii) the development and testing of several Artificial Pancreas systems which improve the health and lifestyles of patients significantly.

Although there are a large number of mathematical models proposed by different groups, this review summarizes the key facets of some of the most widely used models. Two types of models, namely (i) control-oriented minimal models and (ii) high-fidelity models, are discussed with necessary details. The major section of the paper discussed the different subsystems in the minimal model which is primarily utilized for control algorithm development. The various subsystems of the blood glucose regulation process have been modeled extensively by different research groups. The advantages and limitations of each variant were summarized in this paper. In addition to the minimal model, the need for high-fidelity models and the features that these models offer is presented in this article. The novel features of two widely used high-fidelity models (i) the FDA-approved T1DM simulator and (ii) the Hovorka simulator were presented along with their drawbacks.

Although these high-fidelity models and minimal models are widely used in diabetes research and AP development, they do not account for the effects of exercise and physical activity. Research is being carried out to include those. Another field of research of current interest is the application of dual-hormone pumps. Glucagon and Insulin are both used in these systems for better glucose control. Models that describe the effect of glucagon secretion and the subcutaneous kinetics of glucagon administration are briefly discussed. These models are currently being utilized in the development of dual-hormone pumps and AP systems.