|
| 1 | +# Understanding the Desmos Graphs |
| 2 | + |
| 3 | +!!!note "What You'll Find In This Section" |
| 4 | + - [Where to find the Desmos Graphs](#desmos-graphs) |
| 5 | + - [Where to find the information needed for the Desmos Graphs](#setting-up-the-desmos-graphs) |
| 6 | + - [How to read the Desmos Graphs](#reading-the-desmos-graphs) |
| 7 | + - [Making Adjustments in the Desmos Graphs](#settings-adjustments) |
| 8 | + |
| 9 | +## Desmos Graphs |
| 10 | + |
| 11 | +There are 2 Dynamic ISF algorithms that behave differently. For this reason, there are 2 separate Desmos Graphs for these algorithms. |
| 12 | + |
| 13 | +!!!important |
| 14 | + - The settings needed with Logarithmic will be different from the settings needed with Sigmoid |
| 15 | + - If switching from one to another, it's important to recheck your settings with the Desmos graphs to ensure Trio is performing as you expect |
| 16 | + |
| 17 | +### Logarithmic Desmos Graphs |
| 18 | + |
| 19 | +[Click here to view a graph depicting the logarithmic formula in mg/dL](https://www.desmos.com/calculator/0frb0mvjzr) |
| 20 | + |
| 21 | +[Click here to view a graph depicting the logarithmic formula in mmol/L](https://www.desmos.com/calculator/2iu4cgtqln) |
| 22 | + |
| 23 | +### Sigmoid Desmos Graphs |
| 24 | + |
| 25 | +[Click here to view a graph depicting the sigmoid formula in mg/dL](https://www.desmos.com/calculator/zhc6k580qm) |
| 26 | + |
| 27 | +[Click here to view a graph depicting the sigmoid formula in mmol/L](https://www.desmos.com/calculator/ihjjxwipbt) |
| 28 | + |
| 29 | +- - - |
| 30 | + |
| 31 | +## Setting Up The Desmos Graphs |
| 32 | + |
| 33 | +Below is the information requested by the Desmos Graphs for the Logarithmic and Sigmoid Formulas. They each use many of the same settings and data points, but there are some differences. Please use the information under the formula your are using. |
| 34 | + |
| 35 | +There are multiple variables that you'll need to gather for the Desmos Graphs. The variable number can be found in the upper left of the variable. Each of these variables are numbered in the sections below based on the variable number found in Desmos. |
| 36 | + |
| 37 | +{width="600"} |
| 38 | +{align="center"} |
| 39 | + |
| 40 | +<div class="grid cards" markdown> |
| 41 | + |
| 42 | +- [**Logarithmic Formula Variables**](#logarithmic-formula-variables) |
| 43 | + |
| 44 | + --- |
| 45 | + |
| 46 | + [7 $A_{adjustmentFactor}$](#aadjustmentfactor) |
| 47 | + [10 $T_{TDD2hr}$](#tdd-data) |
| 48 | + [11 $T_{TDD10day}$](#tdd-data) |
| 49 | + [12 $W_{weightedAverageOfTDD}$](#wweightedaverageoftdd) |
| 50 | + [15 $I_{insulinPeakTime}$](#iinsulinpeaktime) |
| 51 | + [17 $P_{profileISF}$](#pprofileisf) |
| 52 | + [18 $M_{autosensMax}$](#mautosensmax) |
| 53 | + [19 $M_{autosensMin}$](#mautosensmin) |
| 54 | + |
| 55 | + |
| 56 | +- [**Sigmoid Formula Variables**](#sigmoid-formula-variables) |
| 57 | + |
| 58 | + --- |
| 59 | + |
| 60 | + [2 $P_{profileISF}$](#pprofileisf_1) |
| 61 | + [4 $A_{adjustmentFactor}$](#aadjustmentfactor_1) |
| 62 | + [6 $T_{targetBG}$](#ttargetbg) |
| 63 | + [8 $M_{autosensMax}](#mautosensmax_1) |
| 64 | + [9 $M_{autosensMin}](#mautosensmin_1) |
| 65 | + [15 $T_{TDD2hr}](#tdd-data_1) |
| 66 | + [16 $T_{TDD10day}$](#tdd-data_1) |
| 67 | + [17 $W_{weightedAverageOfTDD}$](#wweightedaverageoftdd_1) |
| 68 | + |
| 69 | +</div> |
| 70 | + |
| 71 | +## Logarithmic Formula Variables |
| 72 | + |
| 73 | +### _A~adjustmentFactor~_ |
| 74 | +The logarithmic Adjustment Factor can be found in your Trio settings. In the Trio app, follow these selections: |
| 75 | + |
| 76 | +Settings ➔ Algorithm ➔ Dynamic Settings |
| 77 | +{align=center} |
| 78 | + |
| 79 | +<br> |
| 80 | +<div class="grid" markdown> |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | +1. Logarithmic must be selected for Dynamic ISF under Dynamic Settings in order for Adjustment Factor to be visible |
| 86 | +2. Here you'll find the value needed for $A_{adjustmentFactor}$ in the Desmos Graph |
| 87 | + |
| 88 | +</div> |
| 89 | + |
| 90 | +### TDD Data |
| 91 | +The TDD data cannot be found in your Trio app, but is still located on your phone. You just have to know where to look. On your phone, open the Files app: |
| 92 | + |
| 93 | +Files ➔ On My Phone ➔ Trio ➔ monitor ➔ trio_custom_oref_variables.json |
| 94 | +{align=center} |
| 95 | + |
| 96 | +<br> |
| 97 | +<div class="grid" markdown> |
| 98 | + |
| 99 | +1. $T_{TDD2hr}$ (Desmos) = `past2hoursAverage` (Files) |
| 100 | +2. $T_{TDD10day}$ (Desmos) = `currentTDD` (Files) |
| 101 | +3. $T_{TDDweightedAverage}$ (Desmos) = `weightedAverage` (Files) |
| 102 | + - verify that you've entered the right information by matching this number in the json file to the number calculated in Desmos |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +</div> |
| 107 | + |
| 108 | +!!!info |
| 109 | + Notice there are **2** similar entries: |
| 110 | + |
| 111 | + - $T_{TDDweightedAverage}$ |
| 112 | + - $W_{weightedAverageOfTDD}$ |
| 113 | + |
| 114 | + Compare the **T~TDDweightedAverage~** value in Desmos to the `weightedAverage` value in trio_custom_oref_variables.json |
| 115 | + |
| 116 | +### _W~weightedAverageOfTDD~_ |
| 117 | +The Weighted Average of TDD can be found in your Trio settings. In the Trio app, follow these selections: |
| 118 | + |
| 119 | +Settings ➔ Algorithm ➔ Dynamic Settings |
| 120 | +{align=center} |
| 121 | + |
| 122 | +<br> |
| 123 | +<div class="grid" markdown> |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | +1. Here you'll find the value needed for $W_{TDDweightedAverage}$ in the Desmos Graph |
| 129 | + |
| 130 | +</div> |
| 131 | + |
| 132 | +### _I~insulinPeakTime~_ |
| 133 | + |
| 134 | +Insulin Peak Time is hard coded in Trio based on the insulin selected in your Pump Settings. Below are the peak times used. Enter the peak time that corresponds to the insulin you selected under Pump Settings. |
| 135 | + |
| 136 | +| Insulin | Peak Time | |
| 137 | +|:---:|:---:| |
| 138 | +| Humalog | 75 | |
| 139 | +| Novolog | 75 | |
| 140 | +| Apidra | 75 | |
| 141 | +| Fiasp | 55 | |
| 142 | +| \*Lyumjev | 55 | |
| 143 | + |
| 144 | +!!!info inline "*Lyumjev" |
| 145 | + Lyumjev users often set a custom peak time of **45 min**. |
| 146 | + |
| 147 | +!!!info "If you use a Custom Peak Time" |
| 148 | + If you use a Custom Peak Time, you'll need to use the time found in your Trio settings. In the Trio app, follow these selections: |
| 149 | + |
| 150 | + Settings ➔ Algorithm ➔ Additionals ➔ Insulin Peak Time |
| 151 | + {align=center} |
| 152 | + |
| 153 | +### _P~profileISF~_ |
| 154 | +You can only enter a single ISF value for $P_{profileISF}$. |
| 155 | + |
| 156 | +- **If you have multiple, highly variable ISFs**: It is advised to enter your highest and lowest ISF into the graph for analysis to ensure both extremes work with the Dynamic Settings you've entered. |
| 157 | +- **If you have multiple ISFs but they do not change drastically**: Average them together for a single ISF entry. |
| 158 | + |
| 159 | +<br> |
| 160 | +<div class="grid" markdown> |
| 161 | + |
| 162 | +**Locate your ISF settings here**: <br><br> |
| 163 | +Settings ➔ Therapy ➔ Insulin Sensitivities |
| 164 | +{align=center} |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | +</div> |
| 169 | + |
| 170 | +### _M~autosensMax~_ |
| 171 | +The Autosens Max can be found in your Trio settings. In the Trio app, follow these selections: |
| 172 | + |
| 173 | +Settings ➔ Algorithm ➔ Autosens Settings |
| 174 | +{align=center} |
| 175 | + |
| 176 | +<br> |
| 177 | +<div class="grid" markdown> |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | +1. Here you'll find the value needed for $M_{autosensMax}$ in the Desmos Graph |
| 183 | + |
| 184 | +</div> |
| 185 | + |
| 186 | +### _M~autosensMin~_ |
| 187 | +The Autosens Min can be found in your Trio settings. In the Trio app, follow these selections: |
| 188 | + |
| 189 | +Settings ➔ Algorithm ➔ Autosens Settings |
| 190 | +{align=center} |
| 191 | + |
| 192 | +<br> |
| 193 | +<div class="grid" markdown> |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | + |
| 198 | +1. Here you'll find the value needed for $M_{autosensMin}$ in the Desmos Graph |
| 199 | + |
| 200 | +</div> |
| 201 | + |
| 202 | +## Sigmoid Formula Variables |
| 203 | + |
| 204 | +### _P~profileISF~_ |
| 205 | +You can only enter a single ISF value for $P_{profileISF}$. |
| 206 | + |
| 207 | +- **If you have multiple, highly variable ISFs**: It is advised to enter your highest and lowest ISF into the graph for analysis to ensure both extremes work with the Dynamic Settings you've entered. |
| 208 | +- **If you have multiple ISFs but they do not change drastically**: Average them together for a single ISF entry. |
| 209 | + |
| 210 | +<br> |
| 211 | +<div class="grid" markdown> |
| 212 | + |
| 213 | +**Locate your ISF settings here**: <br><br> |
| 214 | +Settings ➔ Therapy ➔ Insulin Sensitivities |
| 215 | +{align=center} |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | +</div> |
| 220 | + |
| 221 | +### _A~adjustmentFactor~_ |
| 222 | +The Sigmoid Adjustment Factor can be found in your Trio settings. In the Trio app, follow these selections: |
| 223 | + |
| 224 | +Settings ➔ Algorithm ➔ Dynamic Settings |
| 225 | +{align=center} |
| 226 | + |
| 227 | +<br> |
| 228 | +<div class="grid" markdown> |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | +1. Sigmoid must be selected for Dynamic ISF under Dynamic Settings in order for Sigmoid Adjustment Factor to be visible |
| 234 | +2. Here you'll find the value needed for $A_{adjustmentFactor}$ in the Desmos Graph |
| 235 | + |
| 236 | +</div> |
| 237 | +### _T~targetBG~_ |
| 238 | +You can only enter a single glucose target value for $T_{targetBG}$. |
| 239 | + |
| 240 | +- **If you have multiple, highly variable glucose targets**: It is advised to enter your highest and lowest target into the graph for analysis to ensure both extremes work with the Dynamic Settings you've entered. |
| 241 | +- **If you have multiple targets but they do not change drastically**: Average them together for a single $T_{targetBG}$ entry. |
| 242 | + |
| 243 | +**Locate your Glucose Target settings here**: |
| 244 | + |
| 245 | +Settings ➔ Therapy ➔ Glucose Targets |
| 246 | +{align=center} |
| 247 | + |
| 248 | +<br> |
| 249 | +<div class="grid" markdown> |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | +1. Here you'll find the value needed for $T_{targetBG}$ in the Desmos Graph |
| 255 | + |
| 256 | +</div> |
| 257 | +### _M~autosensMax~_ |
| 258 | +The Autosens Max can be found in your Trio settings. In the Trio app, follow these selections: |
| 259 | + |
| 260 | +Settings ➔ Algorithm ➔ Autosens Settings |
| 261 | +{align=center} |
| 262 | + |
| 263 | +<br> |
| 264 | +<div class="grid" markdown> |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | +1. Here you'll find the value needed for $M_{autosensMax}$ in the Desmos Graph |
| 270 | + |
| 271 | +</div> |
| 272 | + |
| 273 | +### _M~autosensMin~_ |
| 274 | +The Autosens Min can be found in your Trio settings. In the Trio app, follow these selections: |
| 275 | + |
| 276 | +Settings ➔ Algorithm ➔ Autosens Settings |
| 277 | +{align=center} |
| 278 | + |
| 279 | +<br> |
| 280 | +<div class="grid" markdown> |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
| 285 | +1. Here you'll find the value needed for $M_{autosensMin}$ in the Desmos Graph |
| 286 | + |
| 287 | +</div> |
| 288 | + |
| 289 | +### TDD Data |
| 290 | +The TDD data cannot be found in your Trio app, but is still located on your phone. You just have to know where to look. On your phone, open the Files app: |
| 291 | + |
| 292 | +Files ➔ On My Phone ➔ Trio ➔ monitor ➔ trio_custom_oref_variables.json |
| 293 | +{align=center} |
| 294 | + |
| 295 | +<br> |
| 296 | +<div class="grid" markdown> |
| 297 | + |
| 298 | +1. $T_{TDD2hr}$ (Desmos) = `past2hoursAverage` (Files) |
| 299 | +2. $T_{TDD10day}$ (Desmos) = `currentTDD` (Files) |
| 300 | +3. $T_{TDDweightedAverage}$ (Desmos) = `weightedAverage` (Files) |
| 301 | + - verify that you've entered the right information by matching this number in the json file to the number calculated in Desmos |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | +</div> |
| 306 | + |
| 307 | +!!!info |
| 308 | + Notice there are **2** similar entries: |
| 309 | + |
| 310 | + - $T_{TDDweightedAverage}$ |
| 311 | + - $W_{weightedAverageOfTDD}$ |
| 312 | + |
| 313 | + Compare the **T~TDDweightedAverage~** value in Desmos to the `weightedAverage` value in trio_custom_oref_variables.json |
| 314 | + |
| 315 | +### _W~weightedAverageOfTDD~_ |
| 316 | +The Weighted Average of TDD can be found in your Trio settings. In the Trio app, follow these selections: |
| 317 | + |
| 318 | +Settings ➔ Algorithm ➔ Dynamic Settings |
| 319 | +{align=center} |
| 320 | + |
| 321 | +<br> |
| 322 | +<div class="grid" markdown> |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | +1. Here you'll find the value needed for $W_{TDDweightedAverage}$ in the Desmos Graph |
| 328 | + |
| 329 | +</div> |
| 330 | + |
| 331 | +- - - |
| 332 | + |
| 333 | +## Reading The Desmos Graphs |
| 334 | + |
| 335 | +<div class="grid" markdown> |
| 336 | + |
| 337 | +=== "Logarithmic Desmos Graph" |
| 338 | +  |
| 339 | + |
| 340 | +=== "Sigmoid Desmos Graph" |
| 341 | +  |
| 342 | + |
| 343 | +</div> |
| 344 | + |
| 345 | +### **1** Variables |
| 346 | + |
| 347 | +This is where you enter the variables listed above ([Logarithmic Variables](#logarithmic-formula-variables) or [Sigmoid Variables](#sigmoid-formula-variables)). It also contains explanations of each of the variables and the maths used to calculate the graph on the right. |
| 348 | + |
| 349 | +### **2** Sensitivity Calculation |
| 350 | + |
| 351 | +This line shows a series of coordinates calculated by the algorithm. Each coordinate on this line represents what ISF is used at each glucose reading. It is shown as an (X,Y) coordinate. |
| 352 | + |
| 353 | +X = Glucose Reading<br> |
| 354 | +Y = Calculated ISF |
| 355 | + |
| 356 | +This means, at a Glucose Reading of X, an ISF of Y is used. |
| 357 | + |
| 358 | +??? question "Bill chose a random point on his Sensitivity Calculation Line. It's showing the coordinates of (95, 55). What ISF is used and which glucose reading?" |
| 359 | + |
| 360 | + ??? success "Answer" |
| 361 | + At a glucose reading of 95 mg/dL, an ISF of 55 mg/dL/U is used. |
| 362 | + |
| 363 | +### **3** Profile ISF |
| 364 | +This line represents your profile ISF. |
| 365 | + |
| 366 | +<div class="grid" markdown> |
| 367 | + |
| 368 | +=== "Logarithmic Formula" |
| 369 | + If using the Logarithmic Formula, you initially want to align your profile ISF with a glucose of 150 mg/dL (8.3 mmol/L). Typically, the setting that is adjusted to accomplish this is the Adjustment Factor. |
| 370 | + |
| 371 | +=== "Sigmoid Formula" |
| 372 | + If using the Sigmoid Formula, your profile ISF is always anchored at your target glucose. For this reason, you may find that your profile ISF is too strong (number is too low) when using Sigmoid. |
| 373 | + |
| 374 | +</div> |
| 375 | + |
| 376 | +??? question "Bill's profile ISF is 40 mg/dL/U and he is using the Logarithmic Formula. He wants to adjust his Adjustment Factor so that his profile ISF is used at a glucose of 150 mg/dL. What coordinate will he need to match the sensitivity calculation line so that it intersects at that point?" |
| 377 | + |
| 378 | + ??? success "Answer" |
| 379 | + A coordinate of (150, 40) |
| 380 | + |
| 381 | +### **4** Autosens Min Limit |
| 382 | +The upper line of the orange area is set by your Autosens Min limit. Trio can only use sections of the Sensitivity Calculation Line that are below this limit on the graph, within the orange shaded area. |
| 383 | + |
| 384 | +### **5** Autosens Max Limit |
| 385 | +The lower line of the orange area is set by your Autosens Mix limit. Trio can only use sections of the Sensitivity Calculation Line that are above this limit on the graph, within the orange shaded area. |
| 386 | + |
| 387 | +- - - |
| 388 | + |
| 389 | +## Settings Adjustments |
| 390 | + |
| 391 | +For detailed walk through on how adjusting each of these settings or data points will influence the calculations in Dynamic ISF, read the section on [Using Dynamic ISF](dynamic-isf.md). |
| 392 | + |
| 393 | +- - - |
0 commit comments