-
Notifications
You must be signed in to change notification settings - Fork 342
Add Profile Turning guide (based on @Robby pdf from Discord) #2494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
xitation
wants to merge
8
commits into
openaps:master
Choose a base branch
from
xitation:xi_robby_tune
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
29f670b
Robby's profile tuning guide
ffd6110
Fixed line break
3145357
Clarify language and improve guidance in Profile Tuning
robertrub 1a5d6d7
Revise the final part of Profile Tuning documentation for accuracy
robertrub 37ea330
Revise Profile Tuning guide for clarity and accuracy
xitation 27ce174
Merge remote-tracking branch 'origin/master'
95667ca
Merge branch 'master' into xi_robby_tune
4459e9e
Added profile turning to main index page
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Tweaking AAPS Profile | ||
|
|
||
| **This is NOT a medical advice, please work with your care team for proper support and advice on your Diabetes management.** | ||
|
|
||
| This guide provides advice originally written up by @Robby from Discord on tips and tricks to help tune your **AAPS** Profile. | ||
|
|
||
| This guide is mainly trying to find/explain the logic of the OpenAPS algorithm results with a given profile, and provide information about which values to adjust when certain situations are observed. | ||
|
|
||
| ## Changing the profile settings, how to process | ||
| 1. Ensure you have read and understand the recommended settings and advice below, not following this advice will make the whole process more complex and less likely to get well tuned profile. | ||
| 2. Carefully observe and compare, **over several days**, what is happening with your Blood Glucose Levels (BG) and your Insulin on Board (IOB). | ||
| 3. Keep an eye out for patterns that happen around the same time (almost) everyday. | ||
| 4. It's important to do this over several days and never use the data you observe from a single day to make **profile** adjustment decisions. | ||
| 5. After you have observed a repeatable pattern of behaviours, e.g. at 1PM you see a spike in BG or a negative IOB value, only then start to make small changes to your profile. | ||
| 6. It's important to limit the changes you make to one thing at a time. E.g. increase your basil by .5 around 1PM. | ||
| 7. After every change it's important to monitor the impact this has on your BG and IOB for the next few days. | ||
| 8. Repeat this pattern of observe, decide, change. | ||
|
|
||
| **Don't Rush, go slow!** | ||
|
|
||
| ## Recommended settings and advice while tweaking | ||
| - Do all testing with closed loop enabled. | ||
| - Turn OFF all automations. | ||
| - Do not take manual user actions (manual bolus, temp targets etc) while testing, let the system use the profile settings only. | ||
| - On the secondary charts: on chart 1, use IOB, COB and SENS. On chart 2, use DEV and -BGI | ||
| - COB=0* | ||
| - *meaning that the meal is digested, and there are no more carbs in your body. AAPS might indicate COB=0 while you still have carbs on board. | ||
| - No physical activities. | ||
| - No stress. | ||
| - No illness. | ||
| - Turn OFF AutoSens and DynISF so that they will not try to adapt your profile. | ||
| - Before starting to tweak IC or ISF value, it is important to have set correct basal rates. | ||
| - When your basal rate in profile is correct, when you are on target with COB=0* and IOB=0, you will remain constantly on target whatever your ISF (ISF is only used when you are | ||
| higher than your target). | ||
| - You need to check the actual IOB but also, the IOB chart to see how was the IOB during the past few hours. | ||
|  | ||
| - This chart shows negative IOB during early morning hours. (IA=IOB GA=COB) | ||
|
|
||
|
|
||
| ## Profile definitions | ||
| A **strong** profile indicates some combination of the the following: | ||
| - ISF number is too small | ||
| - The basal number is too big | ||
| - IC number is too small | ||
|
|
||
| ## IOB Observations | ||
| If you observe the following patterns after a few days, consider the following changes | ||
|
|
||
| ### IOB positive | ||
| - Basal is not strong enough | ||
|
|
||
| ### IOB negative | ||
| - Basal too strong | ||
| - Previous meal: too much bolus | ||
| - May be the effects from past exercise/physical activity | ||
|
|
||
| ## BG Target Observations | ||
|
|
||
| ### Stuck High | ||
| - ISF is not strong enough (the calculated insulin is too weak) | ||
| - Basal might not be strong enough (SMBs do not have enough "basal stock" to use) | ||
| - A security (MaxIOB ?) might have kicked in and is limiting insulin injection. For the limitations, look in the OpenSMB tab | ||
|
|
||
| ### Stuck Low | ||
| - ISF too strong | ||
| - Basal too strong (if also negative IOB) | ||
|
|
||
| ### Rollercoaster | ||
| - ISF too strong | ||
|
|
||
| ## BG After Meals Observations | ||
|
|
||
| ### Fast rise and go high | ||
| - Food contains fast carbs | ||
| - Consider doing a pre-bolus | ||
| - Bolus (IC or injected %) not strong enough | ||
|
|
||
| ### Fast rise and then go low | ||
| - Consider doing a pre-bolus, profile might be too aggressive (over correction of the raise) | ||
| - Bolus too strong | ||
|
|
||
| ## How to calculate your IC | ||
| 1. First, you need the correct basal settings in your profile. | ||
| 2. Start on target, better without negative IOB. | ||
| 3. Record the total insulin given in the pump tab (or pump history) and call it **Start insulin** | ||
| C4. Very accurately measure a known portion of carbs, and record the start time and **Start IOB**. Then enter carbs and bolus information into **AAPS** using the wizard (with the current configured CI). Don't forget to eat the carbs ;) | ||
| 5. After some hours, when COB=0* and you're back on target, record end time, and note down the **End IOB**, check the total insulin given as before and call it **End insulin**. | ||
| ***NOTE:** The time frame is NOT important, as long as it is longer than your digestion* | ||
| 6. From the difference between **Start** and **End** insulin amount, subtract/add the difference end IOB - start IOB. Then subtract the basal insulin calculated from your profile settings. | ||
| 7. You'll have the total insulin used to “digest” your carbs. Calculate your IC. | ||
|
|
||
| ### Explanations for the IC calculations | ||
| - With a profile that has correct basal(s), during any time frame, you stay on target and have an IOB near 0. You get your profile basal only. | ||
| - You add carbs and bolus to this mix. Wait till your body digests all the carbs and be back on target. Your insulin usage will be the sum of your basal + the insulin needed for the carbs. You calculate the insulin used for your basal (by using your profile) and the surplus will be the insulin used to digest the carbs. | ||
| - If the time frame is too short, there will be carbs undigested, thus your "insulin needed for the carbs" will be wrong. | ||
| - If the time frame is too long, nothing bad will happen. You'll use all your carbs and you'll get more basal. At the end, you'll subtract the basal from the total insulin used, the extended time frame (with more basal use) will not affect the result. | ||
|
|
||
|
|
||
|
|
||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an admonition.