:class: warning
Please work with your care team for support and advice on your diabetes management.</br>
Use this guide only once you have [set up your **Profile** correctly](https://androidaps.readthedocs.io/en/latest/SettingUpAaps/YourAapsProfile.md), following all **AAPS** objectives.
This guide explains the logic of the OpenAPS algorithm results with a given Profile, and provides information about which values to adjust when certain situations are observed. The suggestions about basal testing below may diverge from what your care team advises
Using closed loop may make basal testing easier and may significantly reduce the hypo risk if your Profile basal is too strong.
- Ensure you have read and understand AAPS’ recommended settings and advice below. Not following this advice will make the whole process problematic and less likely to get a well tuned Profile
- Carefully observe and compare, over several days, what is happening with your BG and IOB.
- Keep an eye out for patterns that happen around the same time (almost) everyday.
- It's important to do this over several days. Poor results tend to be yielded from using data observed on a single day to make Profile’s adjustment decisions.
- After you have observed a repeatable pattern of behavior, 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.
- It's important to limit the changes you make to one thing at a time. E.g. increase your basal by 10% around 1PM.
- After every change, it's important to monitor the impact on your BG and IOB for the next few days.
- Repeat this pattern, observe, decide, tweak again if needed
Don't rush, go slow!
- Do all testing with closed loop enabled.
- Turn OFF all automations
- Turn OFF DynISF, AutoISF, AutoSens so that they will not try to adapt your profile.
- Do not make manual user actions (manual bolus, temp targets etc…) while testing: let the system use the Profile settings only.
- For the additional graphs: on graph 1, use Insulin On Board, Carbs On Board (and Sensitivity change). On graph 2, use Deviations and Blood Glucose Impact. When asking for advice, always include those on your screenshots.
- COB=0*
- No physical activities.
- No stress.
- No illness.
- No extreme weather like high or low temperatures.
- If your basal rate 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 the IOB was during the past few hours.
(profiletuning-cob-zero)=
*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.
Profile definitions
A too strong Profile indicates some combination of the following:
Note: you can also use Loopalyzer IOB graph in Nightscout reports to view IOB on several days.
If you observe the following patterns after a few days, consider the following changes
- Profile basal might not be strong enough (this could also be because of things like unannounced food, illness, bad site absorption, etc.)
- Default basal too strong
- May be the effect from past exercise/physical activity
- Previous meal: too much bolus (which resulted in a very long zero temp basal)
- ISF ‘s number is high and not strong enough (calculated insulin is too weak)
- Profile 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. Verify in the SMB tab.
- Technical issue: site absorption, infusion set, ...
- ISF too strong and the number needs to be raised higher
- Profile basal too strong (if also negative IOB)
- ISF too strong? See your AAPS Profile
- Food contains fast carbs
- Consider doing a pre-bolus
- Bolus (IC or injected %) not strong enough
- Consider doing a pre-bolus, profile might be too aggressive (over correction of the raise)
- Bolus too strong
- First, you need the correct default basal settings in your Profile.
- Start on target, better without negative IOB.
- 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 ;)
- 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
- 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.
- If BG is in target, you'll have the total insulin used to “digest” your carbs. Calculate your I:C.
- With a Profile that has the correct default basal rate, during any time frame, you should 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 BG 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.
Originally written up by @Robby (Discord) on tips and tricks to help tune your AAPS Profile, reviewed and edited by the community (thank you!).





