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
{{ message }}
Repository navigation
Commit caa0589
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/EN/DailyLifeWithAaps/AapsScreens.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,7 @@ Enable either one or both of the following options in [OpenAPS SMB settings](#Pr
147
147
148
148
If **AAPS** detects resistance or sensitivity, the target will change from what is set from profile, and the displayed target changes color to indicate the adjustment.
149
149
150
+
(aaps-screens-iob-cob-basal-sens)=
150
151
#### IOB, COB, basal and sensitivity
151
152
152
153

Copy file name to clipboardExpand all lines: docs/EN/SettingUpAaps/ConfigBuilder.md
+40-19Lines changed: 40 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,39 +126,60 @@ More information to understand the Insulin Profile as shown in **AAPS** [here](#
126
126
* This effect profile is recommended if an unbacked insulin or a mixture of different insulins is used.
127
127
128
128
(Config-Builder-insulin-dia)=
129
-
### Duration of insulin action (DIA)
129
+
### Duration of insulin action (DIA) and peak
130
130
131
-
#### Description
131
+
```{warning}
132
+
In looping, decreasing DIA or peak will always increase administered insulin. DIA works differently in AAPS than in commercial AID systems and careless changes to these settings can change insulin dosing in a way which is much larger or smaller than expected.
133
+
```
132
134
133
-
The length of time that insulin takes to decay to zero.
135
+
AAPS models the timeline of insulin action with a mathematical formula, configured using **DIA** and the closely related **peak** settings. DIA is the theoretical duration until IOB reaches zero and peak is the timepoint when the effect of insulin is strongest. This yields an IOB curve and an activity curve, which is simply the **rate** of IOB decay.
134
136
135
-
The duration of insulin action is set to a single value per insulin type in **AAPS**, because your pump will continually infuse the same type of insulin.
137
+
Consider that when AAPS is looping, it's normal to have periods of [zero-temping](#Open-APS-features-super-micro-bolus-smb). This missing basal insulin is fully subtracted from the IOB, explaining why IOB will in practice reach zero many hours earlier than the configured DIA. You can inspect [bolus IOB and basal IOB](#aaps-screens-iob-cob-basal-sens) separately from the main screen.
To configure DIA and peak, tap **Manage** in the main screen, and then tap **Insulin**. AAPS displays the active insulin configuration like this:
138
140
139
-
This, together with the insulin type's peak time, results in the [insulin profile](#AapsScreens-insulin-profile), as shown in the image above. The important thing to note is that the decay has a **long tail**. If you have been used to manual pumping, you have probably been used to assuming that insulin decays over a much shorter period i.e. about 3.5 hours. However, when you are looping, the long tail matters as the calculations are far more precise and these small amounts add up when they are subjected to the recursive calculations in the **AAPS** algorithm. Therefore, **AAPS** uses a minimum of 5h as **DIA**.
Additional reading on the topic of duration of insulin action, and why it matters :
142
-
*[Understanding the New IOB Curves Based on Exponential Activity Curves](https://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/understanding-insulin-on-board-calculations.html#understanding-the-new-iob-curves-based-on-exponential-activity-curves) on OpenAPS documentation.
143
-
*[Why we are regularly wrong in the duration of insulin action (DIA) times we use, and why it matters…](https://www.diabettech.com/insulin/why-we-are-regularly-wrong-in-the-duration-of-insulin-action-dia-times-we-use-and-why-it-matters/) on Diabettech.
144
-
*[Exponential Insulin Curves + Fiasp](https://web.archive.org/web/20220630154425/http://seemycgm.com/2017/10/21/exponential-insulin-curves-fiasp/) on See My CGM (archive).
145
-
*[Revised Humalog model in a closed loop](https://bionicwookiee.com/2022/04/13/revised-humalog-model-in-a-closed-loop/) and other articles on Bionic Wookie, recommending a DIA of 9h for Lyumjev, Fiasp, NovoRapid, Humalog.
143
+
In this example, peak setting is 75 minutes, DIA is 8 hours and [insulin concentration](#Insulin-Concentration) is the standard 100 IU/mL.
144
+
145
+
Due to the influence of zero-temping explained above and the formula used for IOB decay in AAPS, most users set a clearly higher DIA than in commercial systems. In general, many people find that a **DIA** of 9h works well for them. After you have more experience with AAPS and have a well-tuned profile, you can try to find personalized DIA and peak settings with the information below.
146
146
147
-
#### Impact
148
147
149
-
Too short **DIA** can lead to low BGs. And vice versa.
148
+
````{admonition} Details on the impact of DIA and peak configuration
149
+
:class: dropdown
150
150
151
-
If **DIA** is too short, **AAPS** will calculate too early that your previous bolus is all consumed, and if your **BG** is still high, it will over-deliver in insulin. (Actually, it does not wait that long, but predicts what would happen, and keeps adding insulin). This essentially creates ‘insulin stacking’ that **AAPS** is unaware of. This is especially noticeable at night, if you see negative IOB with no other explanation than the queue of the last bolus.
151
+
Since the basal rate has an indirect influence to IOB decay in AAPS, it follows that too high basal rates can mask too high DIA, and vice versa. It makes sense to first carefully tune basal rates before adjusting DIA and peak. Additionally, consider that the DIA and peak settings interact in sense that the effect of DIA depends on peak, and vice versa.
152
152
153
-
Example of a too-short **DIA** is a **high BG** followed by **AAPS** over-correcting and giving a **low BG**.
153
+
These charts show the exact impact of DIA and peak to the IOB curves, across hard limits.
154
154
155
-
#### How to set it
155
+
Adjusting DIA:
156
156
157
-
The **figure below** shows an example of a DIA setting.
Finally, a comparison adjusting DIA and peak in parallel. The logic here is that both values are adjusted in same relative amounts, so that `49/35 ~ 7/5`. Or similarly, `120/93 ~ 9/7`. The intervals will be consistent regardless of the baseline DIA or peak, as long as the relative change is same for both.
160
168
161
-
The **DIA** setting is often set too short by new users. A **DIA** of 6 or 7 is probably a good place to start. A growing number of people find that a **DIA** of 8 to 9 hours works well for them. See the additional reading mentioned above.
169
+
```{image} ../images/iob_remaining_uniform.png
170
+
:width: 400px
171
+
```
172
+
173
+
Note that when DIA and peak are adjusted in this fashion, every point in the curve will shift by the same relative amount.
174
+
175
+
````
176
+
177
+
#### Further reading on DIA and peak configuration
178
+
179
+
*[Technical details and historical background from the AAPS predecessor, OpenAPS](https://openaps.readthedocs.io/en/latest/docs/While%20You%20Wait%20For%20Gear/understanding-insulin-on-board-calculations.html#understanding-the-new-iob-curves-based-on-exponential-activity-curves).
180
+
*[Why we are regularly wrong in the duration of insulin action (DIA) times we use, and why it matters…](https://www.diabettech.com/insulin/why-we-are-regularly-wrong-in-the-duration-of-insulin-action-dia-times-we-use-and-why-it-matters/) on Diabettech.
181
+
*[Exponential Insulin Curves + Fiasp](https://web.archive.org/web/20220630154425/http://seemycgm.com/2017/10/21/exponential-insulin-curves-fiasp/) on See My CGM (archive).
182
+
*[Revised Humalog model in a closed loop](https://bionicwookiee.com/2022/04/13/revised-humalog-model-in-a-closed-loop/) and other articles on Bionic Wookie, recommending a DIA of 9h for Lyumjev, Fiasp, NovoRapid, Humalog.
```{admonition} Don't change the peak unless you know what you are doing
282
-
:class: danger
283
-
For advanced users or medical studies it is possible to define a customized insulin activity profile. Please don't change the peak unless you are an expert — usually the preset values work well for each branded insulin.
284
-
```
285
-
286
281
Pick the preset that matches your insulin, for example **Fiasp**:
If a paired client (_e.g._ another phone) has changed the insulin configuration, a dialog appears. Press **OK** to load their changes, or **Cancel** to keep editing (your next save will overwrite theirs).
0 commit comments