nightscout / AndroidAPS

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

Absolute Insuline negative #1609

Closed antoinekh closed 2 years ago

antoinekh commented 2 years ago

Hello,

I encountered a bug where my absolute insule was negative. What should not be possible. IOB was -2.5 it seems. Profile has 0.9u/h 1649704714546

Context: This happened the night/morning after a day of drinking, and drinking too much. First hypo in the night that I didn't feel, AAPS managed then hypo when I woke up and I had never seen an IOB that low.

Logs attached. All log parameters were not checked

AndroidAPS._2022-04-1006-09-05.2.log AndroidAPS._2022-04-1006-09-05.3.log AndroidAPS._2022-04-1006-09-05.4.log AndroidAPS._2022-04-1006-09-05.5.log

I can't get a history browser capture. It takes too long to load, I tried for 30 minutes without success

sophicshift commented 2 years ago

Edit: sorry, I misread it 😅

IOB is zero when you have in your body the amount of insulin prescribed by your profile basal. When AAPS turns off the basal this lack of insulin is seen as negative IOB, because in principle it should make your BG go up. See: Capture d’écran de 2022-04-12 02-40-55 https://androidaps.readthedocs.io/en/latest/Getting-Started/FAQ.html?highlight=IOB#impact https://androidaps.readthedocs.io/en/latest/Getting-Started/Screenshots.html?highlight=IOB#section-d-iob-cob-br-and-as

antoinekh commented 2 years ago

@kamlox IOB is zero when you have in your body the amount of insulin prescribed by your profile basal. When AAPS turns off the basal this lack of insulin is seen as negative IOB, because in principle it should make your BG go up. See: Capture d’écran de 2022-04-12 02-40-55 https://androidaps.readthedocs.io/en/latest/Getting-Started/FAQ.html?highlight=IOB#impact https://androidaps.readthedocs.io/en/latest/Getting-Started/Screenshots.html?highlight=IOB#section-d-iob-cob-br-and-as

Hello Lucas,

The issue is not about IOB being negative. I understand that I totally normal. But about absolute insuline being negative.

Absolute insuline is the total of insuline and I can’t be negative.

antoinekh commented 2 years ago

Same problem today, but no alcohol. There is no way my IOB is that low. I've had this behavior for a week since I upgrade in the last dev.

1649753130625

1649753108823 AndroidAPS.log

MilosKozak commented 2 years ago

do yopu have screenshot of treatment - bolus & basal tab from the same time? some time before and after

antoinekh commented 2 years ago

do yopu have screenshot of treatment - bolus & basal tab from the same time? some time before and after

Do you need more infos?

1649755205196 1649755205207

MilosKozak commented 2 years ago

note. this seems to be the problem image

mick711 commented 2 years ago

If i remember #robertrub have open an issue with the 4800mins

Ede1975 commented 2 years ago

Its not stopping Zero temp and continues counting negative Insulin, same as in #1597. Even without the 4800 minutes it would go wrong

antoinekh commented 2 years ago

Its not stopping Zero temp and continues counting negative Insulin, same as in #1597. Even without the 4800 minutes it would go wrong

and like you I use the dash

MilosKozak commented 2 years ago

fixed by https://github.com/nightscout/AndroidAPS/commit/b756a870887015f8af609e5915f2c03f47ee8518

robertrub commented 2 years ago

@MilosKozak Sorry but it is NOT solved. It still happens in dev-j. See issue #1706

AndroidAPS 3.0.0.2-dev-j Build: 16d39421b7-2022.05.07-14:30