You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/faqs/glossary.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,8 @@ When Google Translate is selected:
76
76
77
77
**<spantranslate="no">dynos</span>** (dynos): used to reboot a Nightscout Site
78
78
79
+
**<spantranslate="no">dynamic carb absorption</span>** (dynamic carb absorption): Loop models the expected glucose change based on carbs entered, absorption time and your settings; and adjusts based on measured glucose
80
+
79
81
**<spantranslate="no">EmaLink</span>** (EmaLink): radio-frequency device Loop uses to control Eros pods (aka. Gen 3) and older Medtronic pumps
80
82
81
83
**<spantranslate="no">EGP</span>** (EGP): Endogenous Glucose Production: glucose produced by the body from its reserves (mainly glycogen in the liver)
@@ -114,7 +116,7 @@ When Google Translate is selected:
114
116
115
117
**<spantranslate="no">HUD</span>** (HUD): Heads-Up Display at top of Loop main screen, phone in portrait mode
116
118
117
-
**<spantranslate="no">ICE</span>** (ICE): Insulin Counteraction Effect - Loop models the expected glucose change based on carbs entered, absorption time and your settings; and adjusts based on measured glucose
119
+
**<spantranslate="no">ICE</span>** (ICE): Insulin Counteraction Effect - Refers to the difference between observed change in blood glucose and the change in blood glucose that Loop models based on the effects of insulin.
118
120
119
121
**<spantranslate="no">Identifiers</span>** (Identifiers): names of modules found on your Apple Developer Identifiers page that are required for GitHub build method
Note that the [Momemtum](#blood-glucose-momentum-effect) term does not just add to the other effects as implied in the simple formular above; it is blended with the other terms as described in more detail in the [Momemtum](#blood-glucose-momentum-effect) section below).
7
+
Note that the [Momemtum](#blood-glucose-momentum-effect) term does not just add to the other effects as implied in the simple formula above; it is blended with the other terms as described in more detail in the [Momemtum](#blood-glucose-momentum-effect) section below).
8
8
9
9
You can see the individual contributions of these effects by tapping on the predicted blood glucose chart on Loop's status screen. Loop updates this blood glucose prediction every five minutes when a new CGM value has been received and the pump's status has been updated.
10
10
@@ -48,21 +48,27 @@ The active insulin at any time is the product of original insulin delivered and
48
48
49
49

50
50
51
-
NOTE: ISF is also a function of time, which means if the user’s scheduled ISF changes during the insulin activity time, it will change the expected drop in blood glucose due to the insulin effect.
51
+
NOTE: ISF is also a function of time, as set in the ISF schedule in therapy settings or in accordance with any overrides. Loop uses the ISF that applied at the time of an insulin dose to predict the expected change in blood glucose due to the insulin effect, and sums the effect from all still-active doses.
52
52
53
-
### Expected Change in Blood Glucose
53
+
### Expected Change in Blood Glucose for Each Loop Interval
54
54
55
55
Lastly, taking the first derivative (i.e., the rate of change) of the cumulative drop in the blood glucose curve yields the expected change in blood glucose over the insulin activity duration. For each dose of insulin given, Loop calculates the expected discrete drop in blood glucose at each 5-minute period for the insulin activity duration, as shown below.
56
56
57
57

58
58
59
-
### Insulin Effect on Blood Glucose
59
+
The insulin effect for a given dose can be expressed mathematically:
where $\Delta BG_{I}$ is the expected change in blood glucose due to insulin with the units (mg/dL/5min), ISF is the insulin sensitivity factor (mg/dL/U) at the time of the relevant dose, and IA is the insulin activity (U/5min) at time *t*. Insulin activity can also be thought of as a velocity or rate of change in insulin in the blood as it acts on glucose. Insulin activity explicitly accounts for active insulin from temporary basals and boluses, and implicitly accounts for scheduled basal which is assumed to balance out with EGP.
64
+
65
+
### Insulin Effect on Blood Glucose Over Time
60
66
61
67
For this example, assuming a user’s blood glucose was 205 mg/dL at the time of insulin delivery, Loop would predict a drop in blood glucose due to the two units delivered at 12 pm as shown in the figure below.
62
68
63
69

64
70
65
-
### Scheduled Basal Rates
71
+
### Treatment of Scheduled Basal Rates
66
72
67
73
In traditional basal/bolus pump therapy, basal rates are set to accommodate the user's endogenous glucose production (EGP) that causes blood glucose to rise. If a user's basal settings were exactly right in traditional pump therapy, the user would have perfectly flat blood glucose all day, all other factors being equal.
68
74
@@ -82,19 +88,21 @@ Here is a real-world example where Loop is setting many temporary basal rates ov
82
88
83
89

84
90
85
-
### Total Insulin Effect (combining boluses and temporary basal rates)
91
+
### Total Active Insulin (combining boluses and temporary basal rates)
86
92
87
-
Loop will combine or stack the active insulin of all the discrete (individual) boluses and temporary basal rates over the past insulin activity duration (6 hours), to predict the active insulin for the next 6 hours. As demonstrated above, using the predicted active insulin Loop can predict the blood glucose drop over the next 6 hours.
93
+
Loop will combine or stack the active insulin of all the discrete (individual) boluses and temporary basal rates over the past insulin activity duration (6 hours), to predict the active insulin for the next 6 hours.
88
94
89
-
Lastly, the combined effect of bolus and basal insulin are visually represented for the user by Loop’s insulin charts:
95
+
The active insulin taking into account boluses and variations from scheduled basal basal rates are visually represented for the user by Loop’s insulin charts:
90
96
91
97

92
98
93
-
The insulin effect can be expressed mathematically:
99
+
### Total Insulin Effect (combining boluses and temporary basal rates)
100
+
101
+
The sum of all doses' effects on blood glucose are shown for the user in the 'Insulin' curve in the predicted glucose screen.
94
102
95
-
$$ \Delta BG_{I}[t] = ISF[t] \times IA[t] $$
103
+
The total insulin effect at time *t* is the sum of effects from each active dose or temporary basal rate:
96
104
97
-
where BG is the expected change in blood glucose with the units (mg/dL/5min), ISF is the insulin sensitivity factor (mg/dL/U) at time t, and IA is the insulin activity (U/5min) at time *t*. Insulin activity can also be thought of as a velocity or rate of change in insulin in the blood as it acts on glucose. Insulin activity explicitly accounts for active insulin from temporary basals and boluses, and implicitly accounts for scheduled basal which is assumed to balance out with EGP.
@@ -118,17 +126,17 @@ where MAR is the minimum absorption rate (g/hr), CA is the number of carbohydrat
118
126
119
127
The linear model above is modulated by an additional calculation that uses recently observed blood glucose data to estimate how fast carbohydrates have been absorbing. The expected change in blood glucose due to insulin effects alone is compared to the actual observed changes in blood glucose. This difference is termed the insulin counteraction effect (ICE):
where, ICE (mg/dL/5 min) is the insulin counteraction effect, OA is the observed activity (mg/dL/5min) or observed change in blood glucose at time *t*, and IA is the insulin activity (mg/dL/5min).
131
+
where, ICE (mg/dL/5 min) is the insulin counteraction effect, $\Delta BG_{O}$ is the observed change in blood glucose (mg/dL/5min) at time *t*, and $\Delta BG_{I}$ is the modelled change in blood glucose due to insulin alone (i.e. the insulin effect as described above mg/dL/5min).
124
132
125
133
Insulin counteraction effects are caused by more than just carbohydrates, and can include exercise, sensitivity changes, or incorrectly configured insulin delivery settings (e.g., basal rate, ISF, etc.). However, since the effect of carbohydrates is often dominant (after insulin), Loop can still make useful ongoing adjustments to its carbohydrate model by assuming that the increase in blood glucose is mainly carbohydrate absorption in the period following recorded meal entries.
126
134
127
-
The insulin counteraction effect is converted into an estimated carbohydrate absorption amount by using the current carbohydrate-to-insulin ratio and the insulin sensitivity factor at the time of the recorded meal entry.
135
+
The insulin counteraction effect is converted into an estimated carbohydrate absorption amount by using both the carbohydrate-to-insulin ratio and the insulin sensitivity factor that were current at the time of a recorded meal entry.
where AC is the number of carbohydrates absorbed (g/5min), ICE is the insulin counteraction effect, CIR is the carbohydrate-to-insulin ratio (g/U), and ISF is the insulin sensitivity factor (mg/dL/U) at time *t*.
139
+
where AC is the number of carbohydrates absorbed (g/5min), ICE is the insulin counteraction effect, CIR is the carbohydrate-to-insulin ratio (g/U) at the time of the relevant meal entry, and ISF is the insulin sensitivity factor (mg/dL/U) at the time of the relevant meal entry.
132
140
133
141
If multiple meal entries are active (i.e., still absorbing), the estimated absorption is split between each carbohydrate entry in proportion to each carbohydrate entry’s minimum absorption rate. For example, if 72g carbohydrates with an expected absorption time of 4 hours was consumed at 12 pm, and another 72g of carbohydrates with an expected absorption time of 2 hours was consumed at 3 pm, then the minimum absorption rate (see MAR equation above) would be 12 g/hr and 6 g/hr respectively, or 1 g/5min and 0.5 g/5min.
134
142
@@ -160,13 +168,13 @@ resulting in 1g of absorption being attributed to Meal 1 and 2g attributed to Me
160
168
161
169
### Minimum Carbohydrate Absorption Rate
162
170
163
-
If the estimated carbohydrate absorption of a meal entry is less than what would have been absorbed using the minimum absorption rate, then the minimum absorption rate is used instead. This is to ensure that meal entries expire in a reasonable amount of time.
171
+
If the dynamically-estimated carbohydrate absorption of a meal entry up to the current time *t* is less than what would have been absorbed using the minimum absorption rate, then the minimum absorption rate is used instead. This is to ensure that meal entries expire in a reasonable amount of time.
164
172
165
173
### Modeling Remaining Active Carbohydrates
166
174
167
175
After the estimated absorbed carbohydrates have been subtracted from each meal entry, the remaining carbohydrates (for each entry) are then forecasted to decay or absorb using the minimum absorption rate. Loop uses this forecast to estimate the effect (active carbohydrates, or carbohydrate activity) of the remaining carbohydrates. The carbohydrate effect can be expressed mathematically using the terms described above:
Lastly, the forecast or predicted blood glucose BG at time *t* is the current blood glucose BG plus the sum of all blood glucose effects BG over the time interval [t5, t]:
275
+
Lastly, the forecast or predicted blood glucose BG at time *t* is the current blood glucose BG plus the sum of all blood glucose effects $\Delta BG$ over the time interval $[t_{5}, t]$:
Copy file name to clipboardExpand all lines: docs/operation/features/ice.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Consider the possible effects that counteract insulin (in other words, make gluc
16
16
17
17
As we all know, this list can be long; but on "normal" days, food is the primary reason glucose levels go up. By "normal", we mean basal rates and settings are close to correct, illness is not an issue, and the site is good. We depend on the Loop dynamic carb absorption and other prediction effects to keep glucose in our desired range.
18
18
19
-
When you have carbs on board, Loop _always_ assigns _ICE_ to carbs, not just on a normal day.
19
+
When you have carbs on board, Loop _always_ assigns positive _ICE_ to carbs, not just on a normal day.
20
20
This is how _Loop_ looks at it.
21
21
Keep in mind that in situations where you have other positive _ICE_, like insulin resistance, and carbs on board, _Loop_ will attribute all the positive _ICE_ to carbs until all the entered carbs are considered absorbed.
22
22
At that point, _ICE_ will start driving _RC_ upward.
@@ -27,15 +27,15 @@ At that point, _ICE_ will start driving _RC_ upward.
27
27
28
28
The graph at the top of your "Carbohydrates" details page shows the effect *Loop* expects carbs to have on your glucose (gray bars) compared to the actual effect, or *ICE*. The units on the graph are mg/dL/5-min or mmol/L/5-min
29
29
30
-
- ⬜️: The gray bars represent the effects of carbohydrates on your blood glucose that *Loop* is currently modeling.
31
-
- 🟩: As a meal is tracked by *Loop*, you'll see green bars of observed carb absorption (including*ICE*).
30
+
- ⬜️: The gray bars represent the effects of carbohydrates on your blood glucose that *Loop* is currently modeling. This will be a combination of dynamically-estimated carb absorption (where meals are absorbing faster than Loop's conservative estimate based on your carb entries) and static absorption based on Loop's conservative, minimum-absorption-rate estimate.
31
+
- 🟩: The green bars represent the observed change in blood glucose compared to Loop's prediction based on insulin alone (or*ICE*).
32
32
33
33
!!! info "How *Loop* thinks about carbs"
34
34
[*ICE*](#insulin-counteraction-effects) is just one important component of how *Loop* thinks about carbs. The other parts are the user-entered data (amount of carbs, and absorption speed).
35
35
36
-
Sometimes *Loop* falls back to a default absorption model when *ICE* is less than the minimum absorption rate.
36
+
*Loop* falls back to a default absorption model when the total *ICE* for a meal up to the current time is less than the minimum absorption rate.
37
37
38
-
In the graphic below, early in the meal timeline, the green bars are below the grey bars. _Loop_ uses the minimum absorption instead of estimating absorption from glucose change. For example, if a pre-bolus was "perfect" leading to a constant glucose after a meal, the ideal grey bars will be used by _Loop_ throughout.
38
+
In the graphic below, early in the meal timeline, the green bars are below the grey bars. _Loop_ uses the minimum absorption instead of estimating absorption from observed glucose change. For example, if you overestimated the amount of carbs in a meal, the meal absorbs slower than you estimated, or exercise leads to less insulin needs than normal, the grey bars predicted at the start of a meal will be used by _Loop_ throughout.
39
39
40
40
{width="500"}
Copy file name to clipboardExpand all lines: includes/tooltip-list.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@
31
31
*[DIY]: Do it yourself, a common acronym for the open-source software community (and the maker community)
32
32
*[Dosing Strategy]: chosen method for increased insulin dosing: (1) High Temp Basal or (2) Automatic Bolus with scheduled basal
33
33
*[dynos]: used to reboot a Nightscout Site
34
+
*[dynamic carb absorption]: Loop models the expected glucose change based on carbs entered, absorption time and your settings; and adjusts based on measured glucose
34
35
*[EmaLink]: radio-frequency device Loop uses to control Eros pods (aka. Gen 3) and older Medtronic pumps
35
36
*[EGP]: Endogenous Glucose Production: glucose produced by the body from its reserves (mainly glycogen in the liver)
36
37
*[Event History]: record of pump events (bolus or temp basal) reported and used by Loop
@@ -50,7 +51,7 @@
50
51
*[Guardrails]: limits in the code for user selected settings, recommended and absolute limits are provided
51
52
*[Hamburger Menu]: three parallel lines that, when tapped, open a new menu
52
53
*[HUD]: Heads-Up Display at top of Loop main screen, phone in portrait mode
53
-
*[ICE]: Insulin Counteraction Effect - Loop models the expected glucose change based on carbs entered, absorption time and your settings; and adjusts based on measured glucose
54
+
*[ICE]: Insulin Counteraction Effect - Refers to the difference between observed change in blood glucose and the change in blood glucose that Loop models based on the effects of insulin.
54
55
*[Identifiers]: names of modules found on your Apple Developer Identifiers page that are required for GitHub build method
55
56
*[IOB]: Insulin on Board, affects automated insulin delivery: the current active insulin (above or below the basal rate) that Loop calculates and uses for glucose prediction
56
57
*[iOS]: operating system used by Apple Mobile devices (iPhone, iPod, iPad)
0 commit comments