Diabetes awareness month and Android APS

14/11/2022

Introduction

It’s diabetes awareness month and so I wanted to talk to you about something I am very passionate about, Android artificial pancreas system (AAPS). It’s not the cure I wanted but as far as I am concerned, it’s the closest to normal I have felt in the 25 years I have been a diabetic.

Why I LOVE Android APS

I decided to try Android APS just prior to the birth of my daughter. At the time I was using multiple daily injections (MDI) on a low-carb diet (less than 45g per day excluding protein and fat) and trying to pick up some muscle. I found it rather challenging to eat the number of carbs the trainer suggested without compromising control. I was also anticipating the late nights having a baby entails and I wanted to be prepared. David Burren’s blog provided a blueprint of what could be expected if I committed to investing the time required to perform all necessary testing and fine-tuning.

Benefits of Android APS

  • Meal management
    • Meals can be managed through a number of mechanisms including;
      • Un-announced meals (UAM) – AAPS boluses insulin without intervention or carb entry.
      • Announcing carbs – Add the carbs into the system and the calculator estimates the amount of insulin required based on your COB, IOB, ISF, current blood glucose, blood glucose deltas, and insulin sensitivity.
      • Extended carbs – typically used to mimic the absorption of protein (gluconeogenesis) or delayed gastric emptying caused by high-fat meals.
  • Exercise management
    • Insulin scaling adjusts basal insulin based on current insulin sensitivity
    • Automations allow you to schedule profile changes and temporary blood sugar targets for the duration of activity or condition.
  • Hardware / pumps / wearables
    • Functional on many old and new low-cost Android phones
    • Directly or indirectly (via Nightscout) display various blood glucose-related data on compatible watches. If you are using an Android watch (WearOS) you can control AAPS via the watch. Garmin watches can display blood glucose data during an activity.
    • Control a wide variety of pumps
    • Utilise the blood glucose data from a wide variety of CGMs (continuous glucose monitors)
  • Software
    • Automations allow you to automate system actions based on conditions (eg. blood glucose increasing, blood glucose decreasing, leaving for work, pump disconnect) or schedules.
    • SMS Commands to control AAPS remotely
    • Super micro boluses / boli (SMBs) allow AAPS to provide insulin efficiently and effectively.
    • The system will suspend insulin delivery when blood sugar is predicted to go below a certain threshold.
    • Highly customizable to your unique needs, with certain advanced builds allowing you to control more system variables (Boost, AIMI, Eating Now).
    • Cutting-edge development
      • Dynamic insulin sensitivity factor (ISF that changes based on blood glucose)
      • Improved prediction models
      • Improved insulin modeling (9-hour DIA)
  • Quality of Life
    • Reduced diabetic burden and stress.
    • Glucose is constantly monitored, with the ability for someone to follow you remotely, including community members. This can assist with fine-tuning settings.
    • Ability to eat more foods without compromising control
    • Improved glucose control reduces the possibility of long-term complications.
  • Safety
    • Objectives provide a level of safety as users need to understand basic principles of how to use the APS prior to closing the loop.
  • Cost
    • AAPS is open-source and free to use.
  • Monitoring / Reporting

Dis-benefits of Android APS

  • DIY Software build
    • As with all DIY systems, you are required to build the application prior to using it.
  • Cost of hardware
    • Phone
    • CGM
    • Pump and supplies
  • Connectivity fatigue
    • The burden of being connected to technology 24/7
  • Reliance
    • It is easy to become reliant on AAPS managing blood sugars.
  • Usability
    • Due to its complexity, you are required to invest a large amount of time in order to gain the understanding and skills required to configure and utilise it correctly.

Statistics and examples:

Nightscout statistics – 3 Months

Nightscout blood glucose distribution report
Nightscout blood glucose weekly distribution report

Control stats for different systems

Date Started TestControl Mechanisme-A1CAverage Blood GlucoseTime In Range (TIR) 3.9 – 10Standard DeviationAverage carbs consumedGVIPGSCGP – PGR
20/11/2019MDI6.1%7 mmol/l87%2.2 mmol/l1.220.331.7
20/11/2020MDI5.6%6.3 mmol/l94%1.7 mmol/l< 601.178.671.3
20/11/2021Loop5.7%6.5 mmol/l94%1.7 mmol/l<100 (carb counting)1.258.291.3
04/02/2022Android APS5.7%6.5 mmol/l96%1.5 mmol/l>200, little to no carb counting1.245.701.2
Analysis stats provided by Nightscout reporter.
Comprehensive glucose pentagon from Nightscout reporter report.

Un-announced meal (UAM) example

Low-carb meal with UAM running (Low-carb bread with cheese, ham, and mayo.)

Extract from Android APS data for a low carb meal

As can be seen above the system manages low-carb meals quite well with no carb inputs from the user. The system constantly monitors for rapid changes in blood sugars and administers insulin when required to quickly brings sugars into range.

Nightscout screenshot of low carb meal being absorbed while AAPS manages sugars.

Exercise stats / examples

YearAverage Time in Range (3.9-7.8 mmol/l)Average blood glucose (mmol/l)Average Standard Deviation (mmol/l)Total HoursTotal KM
202280.1 %6.60.43 131885
202171.9 %6.7 0.4149920
202069.7 %6.9 0.767658
Annual improvements are made through tweaking system variables and my approach to exercise.
Weight Training
DateIOB @ startMoving timeExercise TypeAverage HR (bpm)Standard Deviation (mmol/l)CGM BG StartCGM BG EndCGM BG Average (mmol/l)TIR (3.9-10)
2022-10-070.1436.93WeightTraining101.10.3657.76.87.27100.0%
EBike Ride
Android APS data exported during an E-Bike Ride 2022-11-06.
DateIOB @ startMoving timeExercise TypeDistance (km)Average HR (bpm)Standard Deviation (mmol\l)CGM BG StartCGM BG EndCGM BG Average (mmol\)TIR (3.9-10)
2022-11-06-0.849115.92eBikeRide271431.0955.95.87.16100%
Running
Android APS data exported during a run 2022-10-03.
DateIOB @ startMoving timeExercise TypeDistance (km)Average HR (bpm)Standard Deviation (mmol\l)CGM BG StartCGM BG EndCGM BG Average (mmol\)TIR (3.9-10)
2022-10-03-0.53478Run12 1681.1055.55.16.75100%

Leave a comment