nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
701 stars 1.72k forks source link

[Feature Request] Automation: If HR and/or steps (from xdrip) then... #685

Open yossibivas11 opened 3 years ago

yossibivas11 commented 3 years ago

Xdrip has a feature of counting and displaying HR and steps "density". That would be a good indication for starting an "activity" TT as an automation.

reijoahola-nightscout commented 3 years ago

xDrip+ can detect also walking and moving faster (driving ?). The feature is called "Motion detection" but it does not work in all phones.

yossibivas11 commented 3 years ago

I imagine an automation that can sense that I got on my bicycle and activate a TT. It could be high HR and fast movement or high step frequency.

swissalpine commented 3 years ago

I don't expect much from such automation: if the activity TT is only set when the movement takes place, it is too late to have an effect on the IOB. For a functioning therapy adjustment, this usually has to be set an hour or more before. And: not every heart rate increase, not every high step rate has to be countered with a TT. The quick sprint to the bus, climbing the stairs, etc. is usually too short to make a therapy adjustment necessary. However, if I observe heart rate or steps over a period of time first in order to set a TT, the adjustment comes much later (see the problem description above).

yossibivas11 commented 3 years ago

I disagree. If I forget to activate a high TT at the beginning of a ride, my BG drops from boli that I get during the ride, which could have been avoided with high TT. Sometimes I forget to activate a TT when I get on the bike or start a walk (many hills around me) so I want a failsafe to salvage the situation- a combination of high step frequency and high HR for a whole ~minute could be a nice way to do it.

Philoul commented 2 years ago

Currently xDrip+ doesn't send HR to AAPS, so it's probably necessary to include a modification in xDrip+ too or check if this informations is already shared by xDrip+ with other apps...

jumalakarhu commented 2 years ago

For kids this could be great! Combined with TT threshold for smb this could reduce total insulin given during high activity playing and risk for hypo. This would make T1 kids feel more free to do unplanned activities.

FlyingToto commented 2 years ago

about that topic: