Inputs

Note

All inputs are defined by a series of (start time, magnitude and duration) triplets. Durations are not defined on the user side. For instance, the basal insulin rate is kept constant, for the bolus insulin a very short duration is automatically assigned.

During definition the inputs have a fixed unit of measure and they will be converted to the unit of the selected model automatically.

Meal and snack

Meals and snack can be defined by the user or by generating random intakes based on probability distributions… Describe the carb <-> energy stuffs / the way the random generation occurs

Meal:

40 minutes of peak absorption is assumed for the meals.

Snack:

20 minutes of peak absorption is assumed for the snacks.

  • Used in: T1DM Extended Hovorka

  • Unit of measure: gramms

  • Definition: Series of start times and magnitudes.

Insulin

Basal insulin:

By default, basal rates are used that are defined in the demographic info field of the patient JSON file. Basal rates are kept constants until new rate is not defined.

Bolus insulin:

By default, bolus values are calculated based on the carbohydrate-to-insulin ratio that are defined in the demographic info field of the patient JSON file.

Therapies:

  • Multiple Daily Injections: Based on basal rate of the patient and carbohydrate-to-insulin ratio.

  • Sensor Augmented Pump Therapy: Issues rescue carbs if necessary. Basal rates and meal time boluses are based on demographics information.

  • Hybrid closed-loop: A minimal implementation of a hybrid closed-loop algorithm using a vanilla model predictive controller.

SGL2i

Activity

Note

Currently only the T1DM Extended Hovorka model supports this feature. The input to the extended Hovorka model is heart rate, thus first the exerted power is translated to heart rate based on the demographics information of the patient.

Running:

Running activity is defined by the start time, duration, running speed [MPH] and incline [%]. Running speed and incline is translated to power based on the demographics information of the patient.

Cycling:

Cycling activity is defined by the start time, duration and average exerted power [watts].