Dana Lewis, OSCON 2016 keynote

Build your own artificial pancreas system to regulate insulin delivery

Build your own artificial pancreas system to regulate insulin delivery
Image by : 

opensource.com

Get the newsletter

Join the 85,000 open source advocates who receive our giveaway alerts and article roundups.

For decades now, open source software (and lately, hardware!) has been transforming the ways that we live and work. It is, in the opinion of OpenAPS project founder Dana Lewis, high time that we start using open source to innovate to save lives and solve health problems.

In her Day 2 OSCON keynote, Dana set out reminding us that Type I diabetes, suffered by millions of people around the world, is incredibly complicated to manage; there are many things that can change your insulin levels from moment to moment, and managing that with monitors and pump devices is difficult, requiring measurement and adjustment many times a day. But this has one core weakness: it's a loop that can become "open" too easily. The patient must sleep at some point, and therefore cannot do the monitoring and calculations necessary to adjust dosages. Devices used for monitoring and dosing are often not interoperable.

The solution is an artificial pancreas, which acts to close that loop by monitoring and adjusting insulin levels, just as the normal pancreas does. But those devices are not yet available on the commercial market, and won't be for some years yet.

Enter the OpenAPS project (Open Artificial Pancreas System); find it here on GitHub. "OpenAPS is a simplified Artificial Pancreas System (APS) designed to automatically adjust an insulin pump's basal insulin delivery to keep blood glucose (BG) in a safe range overnight and between meals."

The goals of the project are to deploy a growing number of DIY artificial pancreases by focusing on these features:

  • Safely using currently-available and deployed devices
  • Limiting dosing ability in both hardware and software
  • Using the same dosage calculations that a person would
  • Responding, or not, to unexpected data
  • Tolerating communication failures
  • Falling back safely to standard device operations

The system is designed to "fail low," rather than the dangerous possibility of overdosing the user. The reference design is written in plain English, so that potential users do not need to be developers to deploy the solution. They need a small amount of DIY skills, the ability to load software to a Raspberry Pi or other tiny computer, and a thorough knowledge of diabetes' impact in their own lives.

The components needed are:

  1. A continuous gluclose monitor
  2. A Rapsberry Pi or other tiny computer
  3. Batteries for all of the devices
  4. CareLink USB Wireless Upload Device
  5. An insulin pump

One concern is how this is regulated. Right now, the open source QA process is robust, and users are monitoring their own system. Additionally, by law, "off-label" usage of medical devices is unregulated. "You can do this!," Dana says. Results so far have been encouraging: 59 users have implemented the system, for both adults and children, including a father who deployed OpenAPS for his one-year-old daughter.

Dana closed with this: "What else is possible if you use your open source knowledge and skills to partner with someone in your life? With open source, there are endless opportunities to improve the lives of those we love."

Topics

About the author

Ruth Holloway - Ruth Holloway has been a system administrator and software developer for a long, long time, getting her professional start on a VAX 11/780, way back when. She spent a lot of her career (so far) serving the technology needs of libraries, and has been a contributor since 2008 to the Koha open source library automation suite.Ruth is currently a Perl Developer at cPanel in Houston, and also serves as chief of staff for an obnoxious cat. In her copious free time, she occasionally reviews old romance... more about Ruth Holloway