I was diagnosed with type 1 diabetes when I was 14. This means my pancreas no longer naturally produces insulin; and without insulin, my blood glucose levels will go dangerously high. The biggest impact was on my sleep. I used to love lying in on weekends. After I was diagnosed in 2002, I had to set my alarm for 7am to take my insulin and eat something, then continue testing my blood sugar and inject myself several times a day.
This process became a little easier when I got an insulin pump, and later a continuous glucose monitor (CGM). The pump continuously infuses insulin into my body, and the CGM sensor can report my blood sugar every five minutes. At night, I relied on the CGM’s built-in alarm to wake me if my glucose passed the threshold that required immediate action; but though I tried several CGMs, the alarms were never loud enough, and they couldn’t be turned up or changed. I talked to manufacturers, but nothing improved. Once I went to college and lived alone, this became a bigger problem; I was increasingly afraid of going to sleep at night.
The alarms on my phone woke me, though, and it occurred to me that if I could send the data from my device to my phone, I could solve the problem myself. I came across someone on Twitter who had managed to reverse-engineer the software on his young son’s CGM, so he could monitor his son’s blood sugar remotely. He shared his code with me, which was a big breakthrough. With help from my then boyfriend and now husband, Scott, who is a computer networking engineer, I was able to send CGM data to my phone via a laptop. (My own background is in communications and public relations.) We created an alarm that would rouse me if my blood glucose levels were too low or too high.
From there, it was a small step to build a webpage so I could add a “snooze button” to press after taking action. This allowed me to create a remote monitoring system so that if I still slept through an alarm, Scott would be alerted and call me or drive over. Scott and I also created an algorithm that forecasted when my blood sugar was likely to become low or too high, sending alerts to my phone or smartwatch.
I was happier and no longer feared going to sleep, but this was still an “open loop” system: it was up to me to take any needed action. A few months later, working with others in the open-source diabetes community, we realised that by adding a small computer and a radio stick to the pump and CGM, we could create a system that not only processed the data, but also sent commands directly to the pump. That’s how we created what is in effect an artificial pancreas, or a “closed loop” system.
The first day I woke up after closing the loop, I was blown away by how much better I felt. I decided I was never going to leave home (Scott and I live in Seattle) without it. The equipment can fit in a bag or a pocket. We designed it for safety: if something breaks or I lose it, I can go back to using my insulin pump manually.
Endocrinologists have been interested in our developments, and for me, having a computer make adjustments while I sleep is far safer than trying groggily to make decisions overnight. The system also makes small adjustments every five minutes, rather than large adjustments infrequently, as humans do.
Having created something that changed and improved my own life, and having benefited from others’ open-source work, I wanted to share our work so other people could use it. This is why we created OpenAPS – the Open Artificial Pancreas System project: to make the code, design and documentation available to others for free, so they can build a “pancreas” of their own.
More than 725 people worldwide have now built various types of DIY closed-loop systems, and the growing community has continued to improve the code and the systems. Many of us have no medical or engineering training and we work on improvements in the evening or at the weekend, for free. Commercial devices similar to ours are now being trialled and gradually coming on to the market: we’re happy to be helping companies to speed up development. The most important thing is that people don’t have to wait. The fact that others now have the freedom to make that choice is something I’m very proud of.
• As told to Chris Broughton
Do you have an experience to share? Email experience@theguardian.com