Activity Monitor - blaqone/autoISF GitHub Wiki

Activity Monitor

This method offers a more gradual approach to adjusting sensitivity when compared to the exercise mode. It proves effective in scenarios such as vacuum cleaning, a brief walk to the cinema, or a short bicycle ride for shopping. The foundational data is sourced from the phone's acceleration sensor and its built-in step counter. A recent addition to the OpenAPS SMB menu introduces a toggle for activating the activity monitor, which, by default, remains inactive. To review the counted steps, navigate to the SMB tab located at the end of the profile section. The steps are assessed across various time segments within the last hour, resulting in five distinct classifications:

CLASIFICATION DESCRIPTION MAX Default Example MIN
activity step count fairly above neutral 0.55 0.70 0.82 1.00
partial activity step count somewhat above neutral 0.775 0.85 0.94 1.00
neutral neutral step count, loop tuned accordingly 1.00 1.00 1.00 1.00
partial inactivity step count somewhat below neutral 1.15 1.10 1.06 1.00
inactivity step count fairly below neutral 1.30 1.20 1.12 1.00

The rightmost columns display sensitivity change factors corresponding to various scale factors. These scale factors can be adjusted in the preferences to tailor the impact according to your specific requirements. At the beginning of the SMB-tab debug section, the activity monitor provides a summary of the current status and assessment of activity levels. In addition to sensitivity adjustments, the basal rate is also modified.

An unexpected yet favorable outcome of the 1-hour time window holding step counts is the gradual reduction of impact after the cessation of activity, diminishing from 30% to 15%, and eventually reaching 0%. This gradual phasing out also applies at the conclusion of the exercise mode, as the activity monitor seamlessly takes control once the exercise TT concludes.

The activity monitor functionality may be either disabled or limited under the following circumstances:

  1. No inactivity detection during the first hour of (re-)starting AAPS.
  2. Deactivated in settings.
  3. A Temporary Target (TT) is active.
  4. The phone was not carried during the last 15 minutes.

The last exception raises a question about how to manage the activity monitor during sleeping hours. With the phone at rest, the challenge is to prevent entering inactivity mode when sleep is briefly interrupted for activities such as checking the phone or going to the bathroom.

Two options are suggested:

  • Option 1: Simply leave the phone next to the bed and refrain from touching it. Trust the loop or check the status on a smartwatch.

  • Option 2: Enable and define a personal window for sleeping hours to deactivate inactivity detection. It ensures that during sleep interruptions, like checking the phone or a bathroom visit, the device won't enter inactivity mode.

It's important to note that choosing Option 2 means starting the day in inactivity mode once you're up for good. However, this state can be advantageous in combating resistance during the dawn phenomenon.