oref0
oref0 copied to clipboard
Warn on high autosens ratio
Per @rsilvers129's suggestion, having an autosens ratio above 1.15 may be a good indication of the need to change a pump site. To facilitate evaluation of whether this is reliably true, it might be good to add the autosens ratio to the pump pill in NS, and have it trigger a color change like a low reservoir or low pump battery does. Maybe red for >= 1.15 or so (resistant), and yellow for < 0.9 or so (sensitive)?
I have a plugin that logs my autosens value every 15 minutes. Here is my sensor going bad over 2.5 days, which was approximately 130 units of FIAsp. Tim thinks that his sites go bad based on the number of units passing into the area, not based on hours. I find that very interesting. I am going to work to correlate it to hours and units and see if that holds true for me also.
I would'nt do yellow for sensitive and red for resistant as every other part of the user interface uses yellow as a progression toward red. If there is a way to use another color, like bright blue for sensitive, then that would be best. If there is no way to do that, then I would use yellow for 1.1 or 1.5 and red for 1.2. Bonus would be if these were Heroku variables defaulting to something. Bonus bonus if it would send a Pushover on the warning (which I am already doing with custom code).
Another good feature would be to have another setting in preferences called autosens_bolus_correction [true|false]. If true, and autosens were at 1.2, and you did a manual bolus for 10 units, the rig would add in another 2 units as an SMB.
One thing I noticed - I have never gone above 1.20, and yet I have this setting: "autosens_max": 1.75,
Does that mean there is a bug in the code?
Here is the tail of my log showing the progression. I am actually going to wear this another day just to see if it goes back down to 1. Maybe it is not a bad site. I want to prove that it is before removing it.
BTW, the insulin seemed to still be good after 5.5 days. It was only the site, as changing the insulin with the same site did not make autosens go low. And changing the site with the same insulin did make autosens go back to 1.
2017-06-30 10:30, 1 2017-06-30 10:45, 1 2017-06-30 11:00, 1 2017-06-30 11:15, 1 2017-06-30 11:30, 1 2017-06-30 11:45, 1.01 2017-06-30 12:00, 1.01 2017-06-30 12:15, 1.01 2017-06-30 12:30, 1.01 2017-06-30 12:45, 1.01 2017-06-30 13:00, 1.01 2017-06-30 13:15, 1.03 2017-06-30 13:30, 1.03 2017-06-30 13:45, 1.03 2017-06-30 14:00, 1.03 2017-06-30 14:15, 1.03 2017-06-30 14:30, 1.03 2017-06-30 14:45, 1.03 2017-06-30 15:00, 1.03 2017-06-30 15:15, 1.03 2017-06-30 15:30, 1.03 2017-06-30 15:45, 1.03 2017-06-30 16:00, 1.03 2017-06-30 16:15, 1.03 2017-06-30 16:30, 1.03 2017-06-30 16:45, 1.02 2017-06-30 17:00, 1.02 2017-06-30 17:15, 1.02 2017-06-30 17:30, 1.02 2017-06-30 17:45, 1.02 2017-06-30 18:00, 1.02 2017-06-30 18:15, 1.01 2017-06-30 18:30, 1.01 2017-06-30 18:45, 1.01 2017-06-30 19:00, 1.01 2017-06-30 19:15, 1.01 2017-06-30 19:30, 1.01 2017-06-30 19:45, 1 2017-06-30 20:00, 1 2017-06-30 20:15, 1 2017-06-30 20:30, 1.01 2017-06-30 20:45, 1.01 2017-06-30 21:00, 1.01 2017-06-30 21:15, 1.01 2017-06-30 21:30, 1.01 2017-06-30 21:45, 1.01 2017-06-30 22:00, 1.01 2017-06-30 22:15, 1.04 2017-06-30 22:30, 1.04 2017-06-30 22:45, 1.04 2017-06-30 23:00, 1.05 2017-06-30 23:15, 1.05 2017-06-30 23:30, 1.05 2017-06-30 23:45, 1.05 2017-07-01 00:00, 1.05 2017-07-01 00:15, 1.09 2017-07-01 00:30, 1.09 2017-07-01 00:45, 1.09 2017-07-01 01:00, 1.09 2017-07-01 01:15, 1.09 2017-07-01 01:30, 1.09 2017-07-01 01:45, 1.11 2017-07-01 02:00, 1.11 2017-07-01 02:15, 1.11 2017-07-01 02:30, 1.11 2017-07-01 02:45, 1.11 2017-07-01 03:00, 1.11 2017-07-01 03:15, 1.1 2017-07-01 03:30, 1.1 2017-07-01 03:45, 1.1 2017-07-01 04:00, 1.1 2017-07-01 04:15, 1.1 2017-07-01 04:30, 1.1 2017-07-01 04:45, 1.1 2017-07-01 05:00, 1.1 2017-07-01 05:15, 1.1 2017-07-01 05:30, 1.1 2017-07-01 05:45, 1.1 2017-07-01 06:00, 1.1 2017-07-01 06:15, 1.1 2017-07-01 06:30, 1.1 2017-07-01 06:45, 1.1 2017-07-01 07:00, 1.1 2017-07-01 07:15, 1.1 2017-07-01 07:30, 1.1 2017-07-01 07:45, 1.1 2017-07-01 08:00, 1.09 2017-07-01 08:15, 1.09 2017-07-01 08:30, 1.09 2017-07-01 08:45, 1.09 2017-07-01 09:00, 1.15 2017-07-01 09:15, 1.15 2017-07-01 09:30, 1.18 2017-07-01 09:45, 1.18 2017-07-01 10:00, 1.2 2017-07-01 10:15, 1.2 2017-07-01 10:30, 1.2 2017-07-01 10:45, 1.2 2017-07-01 11:00, 1.2 2017-07-01 11:15, 1.2
So I have not removed the infusion site yet, and my sensitivity went back down. 73 hours on it so far (3 days). And it is not even clear if I did replace it, it my sensitivity would have gone down faster than it did by just doing nothing.
2017-07-01 09:30, 1.18 2017-07-01 09:45, 1.18 2017-07-01 10:00, 1.2 2017-07-01 10:15, 1.2 2017-07-01 10:30, 1.2 2017-07-01 10:45, 1.2 2017-07-01 11:00, 1.2 2017-07-01 11:15, 1.2 2017-07-01 11:30, 1.18 2017-07-01 11:45, 1.18 2017-07-01 12:00, 1.16 2017-07-01 12:15, 1.16 2017-07-01 12:30, 1.16 2017-07-01 12:45, 1.16 2017-07-01 13:00, 1.16 2017-07-01 13:15, 1.16 2017-07-01 13:30, 1.09 2017-07-01 13:45, 1.09 2017-07-01 14:00, 1.09 2017-07-01 14:15, 1.09 2017-07-01 14:30, 1.09 2017-07-01 14:45, 1.09 2017-07-01 15:00, 1.07 2017-07-01 15:15, 1.07 2017-07-01 15:30, 1.07 2017-07-01 15:45, 1.07 2017-07-01 16:00, 1.07 2017-07-01 16:15, 1.07 2017-07-01 16:30, 1.07 2017-07-01 16:45, 1.06 2017-07-01 17:00, 1.06 2017-07-01 17:15, 1.06 2017-07-01 17:30, 1.06 2017-07-01 17:45, 1.06 2017-07-01 18:00, 1.06 2017-07-01 18:15, 1.06 2017-07-01 18:30, 1.06 2017-07-01 18:45, 1.06 2017-07-01 19:00, 1.06 2017-07-01 19:15, 1.06 2017-07-01 19:30, 1.06 2017-07-01 19:45, 1.06 2017-07-01 20:00, 1.06 2017-07-01 20:15, 1.06 2017-07-01 20:30, 1.05 2017-07-01 20:45, 1.05 2017-07-01 21:00, 1.05 2017-07-01 21:15, 1.05 2017-07-01 21:30, 1.05 2017-07-01 21:45, 1.05 2017-07-01 22:00, 1.05 2017-07-01 22:15, 1.05 2017-07-01 22:30, 1.05 2017-07-01 22:45, 1.05 2017-07-01 23:00, 1.04 2017-07-01 23:15, 1.04