A look at the -not yet userfriendly- RADD dashboard in development, that shows a brief output of the algorithm.
If you squeeze your eyes hard enough, you can see some unconventional features such as:
- The pink dotted line labeled "min allowed", which allows bgc to roam at and above low value, but expects it to be at target in about an hour later.
The shape of this line changes primarily based on the target range.
- The cyan dotted line labeled "max allowed ie", that limits insulin infusion but allows dynamic time based thresholded overrides (see logs below).
The shape of this line changes primarily based on the targeting mode.
- Dashed BGC prediction line(s) in red and a pessimistic prediction with a darker red. These lines change primarily based on predicted glucose, simulated insulin and previous performance of the algorithm.
- Cryptic info about receptors, glucose, insulin effect. These lines change based on the infusion, BGC data, simulation parameters and many others.
Note: Every output of the algorithm is changing with each build sequence, nothing is ever fixed - including any "min"s or "max"s.
Here are filtered entries from RADD service log, resulting from the simulation, prediction and decision components. Time to decision: About 10 seconds.
2022-01-30 03:30:52,458 - build request received 2022-01-30 03:30:52,466 - bgc model.. 2022-01-30 03:30:53,237 - bgc: 102 bgd: 0.395 bg2d: 0.078 2022-01-30 03:30:53,237 - q_bgc: 0.275 q_bgd: 0.570 q_bg2d: 0.680 2022-01-30 03:30:53,238 - infusion model.. 2022-01-30 03:30:56,832 - circulation model.. 2022-01-30 03:30:57,749 - ie@glucose delta: 50.29 2022-01-30 03:30:57,751 - glucose model.. 2022-01-30 03:30:58,922 - insulin proposal.. 2022-01-30 03:30:59,464 - eval current state, success - pred min: 100 max: 103 cut: 22m - underflow 356.18 - 2022-01-30 03:30:59,921 - eval bolus: 75 interval: 3, fail - pred min: 47 max: 103 cut: 133m - overflow -6843.26 - pbgc 82 < pbgcs at 23m - 2022-01-30 03:31:00,040 - eval bolus: 38 interval: 3, fail - pred min: 67 max: 103 cut: 105m - overflow -2530.75 - pbgc 81 < pbgcs at 35m - 2022-01-30 03:31:00,153 - eval bolus: 19 interval: 3, fail - pred min: 77 max: 103 cut: 78m - overflow -473.86 - pbgc 82 < pbgcs at 52m - 2022-01-30 03:31:00,267 - eval bolus: 10 interval: 3, success - pred min: 86 max: 103 cut: 54m - overflow 307.67 override - 2022-01-30 03:31:00,381 - eval bolus: 14 interval: 3, fail - pred min: 81 max: 103 cut: 66m - overflow 8.32 override - pbgc 81 < pbgcs at 62m - 2022-01-30 03:31:00,499 - eval bolus: 12 interval: 3, success - pred min: 83 max: 103 cut: 60m - overflow 176.07 override - 2022-01-30 03:31:00,616 - eval bolus: 13 interval: 3, success - pred min: 82 max: 103 cut: 63m - overflow 96.49 override - 2022-01-30 03:31:00,963 - eval bolus: 14 interval: 6, fail - pred min: 81 max: 103 cut: 66m - overflow 12.47 override - pbgc 81 < pbgcs at 62m - 2022-01-30 03:31:01,660 - eval bolus: 14 interval: 12, fail - pred min: 81 max: 103 cut: 66m - overflow 23.29 override - pbgc 81 < pbgcs at 62m - 2022-01-30 03:31:02,007 - raw bolus suggestion: 13 2022-01-30 03:31:02,007 - indicative bolus suggestion: 13 2022-01-30 03:31:02,007 - final bolus suggestion with duration limit to 480s at 3s intervals: 13 2022-01-30 03:31:02,200 - ############# 2022-01-30 03:31:02,200 - Proposal: 2022-01-30 03:31:02,200 - Cancel Bolus: False 2022-01-30 03:31:02,200 - Cancel Temp: False 2022-01-30 03:31:02,200 - Set Temp: False 2022-01-30 03:31:02,200 - Bolus: True Amount: 13 Interval: 3 2022-01-30 03:31:02,200 - ############# 2022-01-30 03:31:02,200 - build finished.Here are the entries from the Loop component, communicating with Oyster. Takes a little less than 3 seconds to execute the decision and receive confirmation (bolus only).
2022-01-30 03:31:02,399 - Loop action started 2022-01-30 03:31:02,399 - proposal ref: 1643509861 2022-01-30 03:31:02,399 - Reaching out to Oyster 2022-01-30 03:31:02,399 - Requesting {'type': 'last_status'} 2022-01-30 03:31:02,400 - Request sent 2022-01-30 03:31:02,400 - waiting for response 2022-01-30 03:31:02,585 - response received 2022-01-30 03:31:02,585 - request executed. 2022-01-30 03:31:02,585 - All good and well 2022-01-30 03:31:02,585 - Proposal: Bolus Amount: 13 Interval: 3 2022-01-30 03:31:02,585 - Corrected amount: 13 2022-01-30 03:31:02,585 - Requesting {'type': 'bolus', 'parameters': {'ticks': 13, 'interval': 3}} 2022-01-30 03:31:02,585 - Request sent 2022-01-30 03:31:02,585 - waiting for response 2022-01-30 03:31:05,285 - response received 2022-01-30 03:31:05,285 - request executed. 2022-01-30 03:31:05,285 - Loop action ended, ref: 1643509861