1 00:00:00,000 --> 00:00:03,160 And without further ado, let me introduce Jay Legorio. 2 00:00:03,160 --> 00:00:11,260 So, Jay is a software engineer, independent security researcher, and he's been building computers and networks and writing code for pretty much his entire life. 3 00:00:11,820 --> 00:00:16,000 He got his Bachelor of Science in Computer Science from UMBC, Go Retrievers. 4 00:00:16,180 --> 00:00:20,400 In 2008, a Master's in Engineering from the Naval Postgraduate School. 5 00:00:20,400 --> 00:00:21,260 Yeah, that's awesome. 6 00:00:21,260 --> 00:00:22,560 In 2015. 7 00:00:22,560 --> 00:00:25,870 So, without further ado, Jay Legorio. 8 00:00:31,570 --> 00:00:32,650 All right. 9 00:00:32,650 --> 00:00:33,530 Hi, DEF CON. 10 00:00:33,530 --> 00:00:39,930 My name is Jay Legorio and I'm gonna talk about do-it-yourself artificial pancreases and how you can build one of your own. 11 00:00:40,330 --> 00:00:43,790 So, I'll talk a little bit about who I am, not as much because we've already gone over that. 12 00:00:43,790 --> 00:00:47,290 Uh, an introduction to diabetes, let's all get on the same page. 13 00:00:47,350 --> 00:00:53,230 Uh, hardware, software and safety and the solutions, uh, that we will engineer to achieve all of those. 14 00:00:53,310 --> 00:00:57,070 Uh, iterative improvements, uh, developed over several years. 15 00:00:57,110 --> 00:01:01,350 Uh, a live demo, uh, which is starting, uh, starting at least now. 16 00:01:01,350 --> 00:01:02,850 Uh, we'll see the results at the end. 17 00:01:02,850 --> 00:01:07,270 Uh, something I like to call exponential growth and, uh, and then I will take questions. 18 00:01:07,990 --> 00:01:09,910 Uh, so we talked a little about who I am. 19 00:01:09,910 --> 00:01:14,130 Uh, I also have some, uh, some various SANS certs, uh, and I'm a developer. 20 00:01:14,130 --> 00:01:18,050 I'm an IT consultant and I'm a private investigator licensed out of DC. 21 00:01:18,390 --> 00:01:22,550 And, uh, and as a developer, I've always solved my, uh, my problems with software. 22 00:01:22,550 --> 00:01:28,730 So, uh, when I first got this diagnosis, I was given a piece of paper and a table and they said, use this to track your information. 23 00:01:28,950 --> 00:01:30,570 And that sounded ridiculous. 24 00:01:30,570 --> 00:01:33,390 So, uh, I wrote a web app, uh, and it was great. 25 00:01:33,390 --> 00:01:34,630 And I thought, oh, look at that. 26 00:01:34,630 --> 00:01:35,150 I'm unique. 27 00:01:35,150 --> 00:01:38,230 It's the intersection of this thing, uh, and computer science. 28 00:01:38,230 --> 00:01:43,830 And it turns out, uh, you are unique just like everybody else, uh, because this is Scott Hanselman. 29 00:01:43,830 --> 00:01:45,790 He's a developer evangelist at Microsoft. 30 00:01:46,150 --> 00:01:51,670 And he says the first thing every techie does once they've been diagnosed is they try to solve the problem with software or hardware. 31 00:01:51,670 --> 00:01:53,710 So I'm no, I'm not unique. 32 00:01:55,070 --> 00:01:56,810 So let's talk about this disease. 33 00:01:56,810 --> 00:01:58,290 We'll all get on the same page. 34 00:01:58,530 --> 00:02:01,610 Uh, diabetes affects nearly 200 million people worldwide. 35 00:02:01,610 --> 00:02:02,950 And there are two types of them. 36 00:02:03,070 --> 00:02:05,990 The one which we'll talk about today is genetic. 37 00:02:05,990 --> 00:02:10,270 It's type 1 and it's a deficiency in the pancreas to properly produce insulin. 38 00:02:10,270 --> 00:02:11,910 So you have to get it somewhere else. 39 00:02:11,910 --> 00:02:17,690 And type 2 is also a deficiency, but it is in the rest of the body's ability to absorb that insulin. 40 00:02:17,690 --> 00:02:19,570 We're not talking about that today. 41 00:02:19,570 --> 00:02:24,890 Uh, despite having a similar name, uh, to type 1, it is actually very different. 42 00:02:24,890 --> 00:02:27,650 Um, so again, we're not talking about type 2 diabetes. 43 00:02:27,930 --> 00:02:31,890 Uh, and all of us with this disease have heard the meme, there will be a cure in five years. 44 00:02:31,890 --> 00:02:37,810 And certainly 10 years ago at a, at a hospital bedside, that is what the doctor told me, uh, nearly immediately. 45 00:02:37,850 --> 00:02:42,050 And five years later and five years after that, there is still no cure. 46 00:02:42,570 --> 00:02:47,970 So insulin is a hormone required to sustain human life and people with it must get it from somewhere else. 47 00:02:47,970 --> 00:02:49,090 And there are two types. 48 00:02:49,090 --> 00:02:57,170 There's long acting that takes your, uh, your blood sugar and it kind of keeps it in check over the course of 12 or 14, or sorry, 12 or 24 hours. 49 00:02:57,170 --> 00:03:03,730 And there's short acting, which is for things, uh, like meals so that you can counteract, uh, the effect of carbohydrates on your body. 50 00:03:04,710 --> 00:03:18,950 So you administer insulin with a complex formula, uh, taking into account, because this is all very, uh , pre-existing insulin levels and adrenaline and your insulin sensitivity. 51 00:03:18,950 --> 00:03:20,550 Like I said, it's all very easy. 52 00:03:20,550 --> 00:03:26,050 Uh, and you straddle this tenuous line, uh, between going too far high and too far low. 53 00:03:26,050 --> 00:03:32,970 So what's normal for most of you, you're going to maintain and ride pretty much right at a hundred, uh, the rest of your lives. 54 00:03:32,970 --> 00:03:45,190 And that's very good because too high, uh, if you're, if your levels are too high or remain very high for a long time, uh, you can have a, uh, a major impact on taking years off your life. 55 00:03:45,190 --> 00:03:50,870 Uh, in addition, it can cause strokes, seizures, organ failure, brain damage, and death over a sustained period. 56 00:03:50,870 --> 00:03:54,250 But, uh, you think, okay, well, we'll just go low. 57 00:03:54,250 --> 00:03:55,490 Well, low is even worse. 58 00:03:55,490 --> 00:04:08,030 Uh, after you, uh, uh, spend, let's say tens of minutes progressing through anxiety, tremors, sweating, uh, dizziness, confusion, and heart palpitations, right at about 35, you pass out. 59 00:04:08,030 --> 00:04:11,530 Uh, and that is when you will, you, uh, are much more likely to die. 60 00:04:11,530 --> 00:04:16,370 This is the very acute way as opposed to the long-term way that people die of this disease. 61 00:04:16,730 --> 00:04:21,990 Uh, and some people are hypo unaware, so they don't even feel those symptoms when they're crashing down. 62 00:04:21,990 --> 00:04:28,370 Uh, that makes the technology we're going to talk about today, uh, a real life requirement, uh, for those sorts of people. 63 00:04:28,530 --> 00:04:31,250 And it's a difficult balance to maintain consistently. 64 00:04:31,450 --> 00:04:40,530 We talked about this equation, uh, and it's for the most part accurate ish because certain things we can't measure. 65 00:04:40,530 --> 00:04:42,670 We can't measure, uh, sickness. 66 00:04:42,670 --> 00:04:44,650 I don't have four six today. 67 00:04:44,650 --> 00:04:46,450 Uh, you can't measure adrenaline. 68 00:04:46,450 --> 00:04:51,290 Uh, mine is surging because I'm up in front of all of you and I have no idea what that means. 69 00:04:51,290 --> 00:04:54,690 Uh, you also can't really measure exercise. 70 00:04:54,690 --> 00:05:02,310 Sure, it takes twice the amount of work to go two miles versus one, but there's no real way to quantify that, uh, as it impacts this disease. 71 00:05:02,310 --> 00:05:06,870 Uh, you also don't know when the carbohydrates that you're eating are going to hit your system. 72 00:05:06,870 --> 00:05:16,170 So if you dose a bunch of insulin and the carbs don't, don't take effect, your insulin levels are going to crash your blood sugar down before the food even catches up. 73 00:05:16,170 --> 00:05:29,390 Uh, it also goes the other way more often than not, but you can't predict that because even, uh, things that you do commonly and regularly and are very, uh, easily predictable, they can come right out of left field, uh, and hit you when you don't expect it. 74 00:05:29,450 --> 00:05:36,050 Your insulin sensitivity changes over time, over a period of weeks, and is sometimes different throughout the day. 75 00:05:36,050 --> 00:05:38,870 Uh, and finally, you have to maintain safety at night. 76 00:05:38,870 --> 00:05:41,270 You don't get to sleep through this. 77 00:05:41,270 --> 00:05:44,230 Uh, it's something that you pay attention to 24 seven. 78 00:05:44,550 --> 00:05:49,090 So this is living with it, but how do we measure how well we're doing? 79 00:05:49,450 --> 00:05:57,510 The A1C blood test is a, it, uh, measures a chemical that is, uh, related to your glucose with an impact of about three months. 80 00:05:57,730 --> 00:06:03,670 Uh, in aggregate, it's a good approximation of how, uh, well you've been maintaining control of your blood sugar. 81 00:06:03,670 --> 00:06:10,590 Uh, and you need to, and if you maintain control of that, of your blood sugar, you'll get a good A1C test. 82 00:06:10,810 --> 00:06:13,730 Normal people, uh, should be about five to six. 83 00:06:13,730 --> 00:06:16,890 If you're diabetic, it's probably higher than six. 84 00:06:16,890 --> 00:06:22,690 And after seven, it, uh, that's when it starts to indicate that you're not managing your care very well. 85 00:06:23,430 --> 00:06:26,370 Uh, your blood sugar should not fluctuate wildly during sleep. 86 00:06:26,370 --> 00:06:33,030 So as long as you go to bed in a good state, uh, you will probably add good time, so to speak, to your A1C. 87 00:06:34,130 --> 00:06:42,970 Now there does exist some technology to make it easier to maintain control of your, of your blood sugar, but it largely goes towards eating, easing burdens. 88 00:06:42,970 --> 00:06:50,430 None of this stuff makes decision-making, uh, uh, none of this stuff takes a decision-making role in management of the disease. 89 00:06:50,570 --> 00:06:54,690 So we replace injections, multiple injections, with insulin pumps. 90 00:06:54,690 --> 00:06:56,630 Uh, I mentioned there were two types of insulin. 91 00:06:56,630 --> 00:07:11,770 With an insulin pump, it very slowly microdoses, and not the Silicon Valley microdose, uh, it slowly microdoses insulin over the course of the day to take that long-acting effect, uh, and use short-acting insulin, uh, to, to achieve the same effect. 92 00:07:11,770 --> 00:07:16,910 And you're not, uh, you're not stabbing yourself all over the, uh, all over your body all through the day. 93 00:07:16,910 --> 00:07:21,550 You put it in one day and maybe about three days later, uh, you change it all up. 94 00:07:22,470 --> 00:07:29,810 Uh, we also have a continuous glucose monitor, and this takes the place, uh, or is augmented by, uh, finger sticks. 95 00:07:29,810 --> 00:07:36,890 And that's exactly the thing that all of you know what I say, what, what I mean when I say you prick your finger, put the blood in the meter, and, and all that kind of thing. 96 00:07:36,890 --> 00:07:40,810 Uh, the sensors, uh, they vary, uh, de, uh, depending on the model. 97 00:07:40,810 --> 00:07:45,010 Uh, they can stay in for seven days, 10 days, 14 days, it all depends. 98 00:07:45,010 --> 00:07:54,510 But generally, they all hold to this, this one thing where, uh, you get a reading every five minutes, um, which is good because then you can expose things like trends. 99 00:07:54,510 --> 00:08:01,430 It's not this point in time conte- uh, context-less, uh, finger stick that doesn't tell you as much as you really want to know. 100 00:08:02,390 --> 00:08:05,250 So, uh, let's talk about some tips. 101 00:08:05,290 --> 00:08:08,730 You don't get to have bedtime snacks because you don't know what it's going to do. 102 00:08:09,130 --> 00:08:21,690 Uh, you intentionally go to bed on the higher end of the scale because the insulin pump is unthinking, and it will slowly dose that insulin, and you don't want to wake up too low, and you don't want your, your continuous glucose monitor to set off an alarm. 103 00:08:22,090 --> 00:08:28,790 Uh, and, uh, every meal, even the ones that are usually predictable, can become an hours-long battle to get back to normal. 104 00:08:28,790 --> 00:08:30,350 And this is just how it works. 105 00:08:30,350 --> 00:08:33,010 This is true mainly for everybody. 106 00:08:33,430 --> 00:08:37,630 Uh, and a rule of thumb, if you wake up in a bad state, there really is no recovery during the day. 107 00:08:37,630 --> 00:08:42,030 You're always going to work to fight your numbers down, uh, or bring them up throughout the day. 108 00:08:42,230 --> 00:08:47,490 And finally, I want to leave the intro with a, with, uh, a graph of how hard this all is. 109 00:08:47,490 --> 00:08:54,290 This is from a study called the Effect of Diabetes on Outcomes of Hyperglycemia in a Mixed Medical Surgery Intensive Care Unit. 110 00:08:54,290 --> 00:09:05,790 It's from May of 2001, and if we define in range as between 80 to 180, uh, these folks in an ICU were only in range about 65% of the time. 111 00:09:06,010 --> 00:09:11,830 How hard is it when we're in an ICU and doctors can't even keep this thing in line? 112 00:09:11,830 --> 00:09:13,890 So that's what the rest of us live with. 113 00:09:14,650 --> 00:09:16,610 Uh, so now we'll talk about hardware. 114 00:09:16,610 --> 00:09:31,210 We need to develop a solution that takes data from the CGM, processes it with what it already knows about our bodies and its current state, predicts future effects, uh, based on the existing state, any proposed changes like dosing insulin or eating, uh, 115 00:09:31,210 --> 00:09:38,590 and how the medicine actually works, and finally delivers a command to an insulin pump that's something other than that regular background, uh, insulin. 116 00:09:38,710 --> 00:09:42,370 And this requires us to, to overcome several technical challenges. 117 00:09:42,470 --> 00:09:44,710 We need something small and low power. 118 00:09:44,770 --> 00:09:48,570 Uh, we need a visualization solution because this thing needs to be monitored. 119 00:09:49,270 --> 00:09:53,770 And, uh, we need to collect blood sugar readings from an FDA-certified CGM system. 120 00:09:53,770 --> 00:09:57,990 And finally, we need to query and control an FDA-certified insulin pump. 121 00:09:57,990 --> 00:10:07,650 And the reason FDA certification is important here, uh, is because the quality of the measurements that you get will directly impact the effect on your body. 122 00:10:07,650 --> 00:10:12,350 Uh, we're, many of us are developers, we understand garbage in, garbage out. 123 00:10:12,350 --> 00:10:17,910 You need something that is giving you good data and then you need an insulin pump that can, that can accurately take action. 124 00:10:17,910 --> 00:10:23,530 If you say dose one unit, you don't want it to be 0.9 or 1.1 or maybe it's 5 today. 125 00:10:23,530 --> 00:10:26,230 You need something that is absolutely reliable. 126 00:10:27,150 --> 00:10:29,530 So, nowadays, this is actually really easy. 127 00:10:29,530 --> 00:10:31,510 I think it's easier than it was 10 years ago. 128 00:10:31,510 --> 00:10:33,890 Uh, the Raspberry Pi and the Edison are ultra-portable. 129 00:10:33,890 --> 00:10:37,470 You can get them anywhere, although the, uh, the Edison is discontinued now. 130 00:10:37,470 --> 00:10:39,210 Uh, and it's great to run our code on. 131 00:10:39,210 --> 00:10:40,990 We can, we can get these anywhere. 132 00:10:41,230 --> 00:10:45,590 Uh, they each have built-in Bluetooth and Wi-Fi, so they're eminently net, uh, networkable. 133 00:10:45,590 --> 00:10:52,410 You can, you can tell it about all of your, your different Wi-Fi access points or you can tether it to your phone when you're out on the go. 134 00:10:52,670 --> 00:11:01,270 And finally, uh, some, because Bluetooth is built-in, you can collect CGM data directly from the transmitter that's attached to you, if it supports that. 135 00:11:01,270 --> 00:11:03,390 And the solution we're talking about today does. 136 00:11:03,390 --> 00:11:09,210 Uh, and if not, you can plug the receiver, uh, into the device, uh, and because they both support USB on the go. 137 00:11:09,210 --> 00:11:12,430 So, you can, you can download your data directly from that. 138 00:11:12,810 --> 00:11:20,170 So, we talked about collecting CGM directly, but the insulin pump we're going to talk about is, uh, it's a 900 megahertz, uh, radio. 139 00:11:20,170 --> 00:11:21,370 It's in the ISM band. 140 00:11:21,370 --> 00:11:29,430 Uh, and the open source hardware community stepped up for us and developed the Explorer board for the Edison and the Explorer hat for Raspberry Pi. 141 00:11:29,430 --> 00:11:33,430 Now, they're marketed as random 900 megahertz radios that anybody can do anything with. 142 00:11:33,430 --> 00:11:34,230 And that's true. 143 00:11:34,230 --> 00:11:38,750 You can, but this was made for this purpose, uh, and we really appreciate that. 144 00:11:38,750 --> 00:11:41,830 Now, I mentioned that the, uh, the protocol was proprietary. 145 00:11:41,830 --> 00:11:46,430 It was reverse engineered over a period of years, uh, by someone known, known as Ben West. 146 00:11:46,430 --> 00:11:49,290 Uh, none of this would be possible without his work. 147 00:11:49,290 --> 00:11:51,870 Uh, so it's, uh, uh, we really appreciate it. 148 00:11:52,290 --> 00:11:58,490 Now, older insulin pumps have wireless connectivity and the manufacturers allowed you to remotely control them. 149 00:11:58,490 --> 00:12:01,910 Uh, not from very far away, but you could still remotely control them. 150 00:12:02,130 --> 00:12:13,010 And when they found out about this, uh, the fact that you could remotely control them, thanks to a Black Hat 2013, uh, talk, they significantly limited how that functionality can be used. 151 00:12:13,010 --> 00:12:20,130 So in newer pumps, you can still query, uh, for the state of the system, but you can no longer remotely dose insulin. 152 00:12:20,130 --> 00:12:22,470 You have to find out of warranty pumps. 153 00:12:22,470 --> 00:12:28,210 You have to find them anywhere that you can, uh, and then we'll use our custom hardware and software to talk to them. 154 00:12:28,490 --> 00:12:32,010 So older devices, uh, are already hard to acquire. 155 00:12:32,010 --> 00:12:37,050 You have to scour eBay, Craigslist, Mercari, uh, this website called MedWow. 156 00:12:37,050 --> 00:12:45,110 Uh, and because no one can resist the chance to take advantage of an already disadvantaged community, there was price gouging. 157 00:12:45,110 --> 00:12:51,450 So you'd think these older out of warranty pumps would be cheap because they are, because they are older and well used. 158 00:12:51,450 --> 00:12:59,870 Uh, and the prices on these things that people wanted, uh, people who weren't even interested in participating in this or weren't diabetic skyrocketed. 159 00:12:59,870 --> 00:13:02,010 So that was, uh, that was really fun. 160 00:13:02,790 --> 00:13:07,610 So let's talk about software and safety because safety is a pretty critical factor here. 161 00:13:08,070 --> 00:13:15,750 Our visualization stack is going to be built on Linux, Node and Go, Mongo, Python and Bash, and it's called NightScout. 162 00:13:15,750 --> 00:13:30,470 It is purpose built, uh, to visualize the current state of a diabetic system, uh, as well as dump, as, as well as serve as a holding place for historical data so that you can bring, uh, you can bring reports to your doctor so that you're, you're not giving them kind of, 163 00:13:30,470 --> 00:13:33,970 uh, lack of context for how you've been, you've been taking care of yourself. 164 00:13:33,970 --> 00:13:38,490 Now everyone builds their own NightScout instance and it fits well on the free tiers. 165 00:13:38,490 --> 00:13:41,430 Uh, I have a guide out where you can install it on private infrastructure. 166 00:13:41,430 --> 00:13:44,390 If you choose to do that, I don't really like having stuff in the cloud. 167 00:13:44,390 --> 00:13:46,790 So this works, uh, on a server in my basement. 168 00:13:46,810 --> 00:13:52,070 And NightScout is great for a point in time representation, representation of how things are now. 169 00:13:52,070 --> 00:13:56,730 And again, you can generate reports to bring to your medical, uh, your medical appointments. 170 00:13:57,390 --> 00:14:04,270 So, the solution that does all of the heavy lifting is called the Open Artificial Pancreas System or OpenAPS. 171 00:14:04,290 --> 00:14:10,250 And it is built on, uh, much the same group of, of, uh, technologies, Node, Python, uh, and Bash. 172 00:14:10,250 --> 00:14:11,510 And it runs on Linux. 173 00:14:11,510 --> 00:14:15,270 Uh, so again, this fits well with our Raspberry Pis and our Intel Edisons. 174 00:14:15,270 --> 00:14:26,590 And it's designed to acquire CGM data, process it using an algorithm, uh, and deliver a dosage command to an insulin pump, which checks all the boxes, uh, for the things that we talked about what we needed at the beginning. 175 00:14:26,830 --> 00:14:32,350 Now, more than 1,440 people have sort of raised their hand and said, yes, I'm using this. 176 00:14:32,350 --> 00:14:36,270 But we know that there are more people than that, uh, who are using it. 177 00:14:36,270 --> 00:14:41,310 Um, because it, it is, uh, uh, it's not required to get permission or anything like that. 178 00:14:41,310 --> 00:14:50,530 Uh, so, uh, using those numbers, about 7, uh, 13.7 million person hours, uh, of algorithm use, uh, have been, uh, uh, have been achieved. 179 00:14:50,530 --> 00:15:00,110 And, and so far, for the people who are using CGM certified, uh, uh, I'm sorry, FDA certified CGMs and FDA certified pumps, no one has gone to the hospital. 180 00:15:01,990 --> 00:15:07,910 Um, so a person can only be expected to do that equation that we talked about really several times per day. 181 00:15:07,910 --> 00:15:14,170 Uh, and the fact that there are so many unknowns in this equation, it's a, it's a, it's a wonder anybody does it right at all. 182 00:15:14,310 --> 00:15:20,090 Uh, but OpenAPS can process that data every five minutes because that's when you get a glucose reading. 183 00:15:20,090 --> 00:15:25,790 And so that's about 300 times per day that you, the patient, are not having to deal with the stress of this stuff. 184 00:15:25,790 --> 00:15:30,110 And more importantly, it works when you're sleeping, which is awesome. 185 00:15:31,750 --> 00:15:39,150 So it, because it is more aware of, of many things that the human cannot be aware of, uh, it makes better decisions. 186 00:15:39,190 --> 00:15:47,950 So it knows, uh, the manufacturer provided, uh, equation that says, uh, when the insulin will take effect and when it will start to taper off. 187 00:15:47,950 --> 00:15:55,410 And it can use that information to make a better decision to say, okay, well, his, his blood sugar is rising a little high, but he already has this much on. 188 00:15:55,410 --> 00:16:00,070 And according to this equation, well, I'll add a little more or I won't, which is, uh, which is really good. 189 00:16:00,070 --> 00:16:02,830 And I mentioned that your insulin sensitivity varies over time. 190 00:16:02,830 --> 00:16:07,410 So Auto-Tune will tune the algorithm to carbs and insulin over weeks. 191 00:16:07,530 --> 00:16:13,090 Uh, and Auto-Sensitivity will tune the algorithm, uh, to you over, uh, several days. 192 00:16:13,090 --> 00:16:15,510 This is a very person-centric disease. 193 00:16:15,510 --> 00:16:21,930 So you need person-centric, uh, uh, applications here and it gives you advanced warning. 194 00:16:22,090 --> 00:16:35,670 So if, if it knows, because it, again, it knows how the insulin works, uh, to a mathematical level, uh, it can send you a notification to your phone and say, Hey, you need to eat carbs, uh, because otherwise in about 15 minutes or however you configure it, 195 00:16:35,670 --> 00:16:36,990 uh, you're going to have a low. 196 00:16:36,990 --> 00:16:47,010 Uh, so after this feature was implemented, uh, whenever, uh, uh, whenever it would tell me that I needed to eat carbs, you're going to experience a low, uh, I didn't get that low, which was great. 197 00:16:47,010 --> 00:16:48,170 That was really helpful. 198 00:16:48,450 --> 00:16:53,310 So let's talk, I already hinted at it, but let's talk about the first benefit you get with this system. 199 00:16:53,650 --> 00:17:01,630 Someone running on manual mode, uh, can normally be expected to wake up at least once or twice every night to alarms cause, uh, that require your action. 200 00:17:01,670 --> 00:17:07,190 Uh, again, you don't get to sleep through this, but OpenAPS takes control of this all night long. 201 00:17:07,190 --> 00:17:12,870 And sleep is one particular area of your life, uh, that improves dramatically almost immediately. 202 00:17:12,870 --> 00:17:21,670 So, uh, after diagnosis and before starting this, uh, I went from getting no more than six hours of uninterrupted sleep at a time, uh, to the first day I slept 10 hours. 203 00:17:21,670 --> 00:17:23,930 And when I woke up, I was exactly where I wanted to be. 204 00:17:23,930 --> 00:17:26,890 And it was, it was nothing short of incredible. 205 00:17:27,470 --> 00:17:29,010 I was a very tired person. 206 00:17:29,070 --> 00:17:31,110 So a sleeping patient isn't eating. 207 00:17:31,110 --> 00:17:36,290 It's also easier for the, uh, for the system to maintain them within the range that you've defined. 208 00:17:36,290 --> 00:17:41,810 Uh, and good time and range, especially at night, improves your A1C without any work on your part. 209 00:17:41,810 --> 00:17:47,250 Uh, you're not struggling between the decision of, I'm starving, but still have high blood sugar and need to wait to eat. 210 00:17:47,250 --> 00:17:48,450 You're generally not eating. 211 00:17:48,450 --> 00:17:52,050 So this is the only factor that, uh, uh, that really comes into it. 212 00:17:52,050 --> 00:17:57,330 Uh, and I, I don't want you to think that this is just my experience talking about how life changing the sleep is. 213 00:17:57,330 --> 00:18:02,010 Uh, this is generally the first thing we hear from people is that the sleep is amazing. 214 00:18:02,990 --> 00:18:06,850 This person changed their sensor and immediately went back to bed. 215 00:18:06,850 --> 00:18:08,430 Uh, and everything just worked. 216 00:18:08,430 --> 00:18:09,850 It just worked and it was great. 217 00:18:11,530 --> 00:18:17,990 So we have been building the airplane while we've been flying it and manufacturers don't really get that luxury. 218 00:18:18,570 --> 00:18:24,830 And safety is a critical factor in the way that changes and features are implemented because we don't want to send somebody to the hospital. 219 00:18:24,830 --> 00:18:29,090 So there are several checks and double checks before it makes an ins, uh, an insulin decision. 220 00:18:29,090 --> 00:18:31,250 Uh, there are fallback behaviors defined. 221 00:18:31,250 --> 00:18:44,910 So should, uh, I be away, uh, should the system be away from the insulin pump for hypothetically 30 minutes, uh, there's not much difference between what 30 minutes with this system would have, would have caused and what 30 minutes without it. 222 00:18:44,910 --> 00:18:51,290 And after that 30 minutes, the pump reverts to its, uh, its normal, just background insulin doing things manually. 223 00:18:52,130 --> 00:18:56,830 Uh, and features that have impact on the algorithm are scrutinized heavily by a core team of developers. 224 00:18:56,830 --> 00:19:01,230 And I don't want you to think that means, that means me saying, uh, oh, it's open source. 225 00:19:01,230 --> 00:19:03,170 So obviously there are all eyes on it. 226 00:19:03,170 --> 00:19:05,850 Uh, you know, like we used to say about open SSL. 227 00:19:05,870 --> 00:19:11,050 Uh, but there are, there are people who are, who are dedicated to that one part of the algorithm. 228 00:19:11,050 --> 00:19:13,970 There are no changes that are going to go into that without their say so. 229 00:19:15,210 --> 00:19:18,350 Uh, now commands are delivered, uh, oh, I explained this already. 230 00:19:18,350 --> 00:19:24,930 So when, uh, when the pump is out of range of the system, uh, it will default back to factory behavior, which is great. 231 00:19:24,930 --> 00:19:31,410 Uh, and during sleep, the manufacturing provides CGM, which will alarm, uh, it can be used as a fallback. 232 00:19:31,410 --> 00:19:37,050 So let's say, uh, Linux kills the, the open APS process for some reason, who knows why? 233 00:19:37,050 --> 00:19:38,810 Uh, and it stops working. 234 00:19:38,810 --> 00:19:43,470 Well, if I start to go too high or too low while I'm asleep, this thing is independent. 235 00:19:43,470 --> 00:19:48,570 It can still, you know, sound an alarm, uh, and cause me to wake up and then take care of all this stuff. 236 00:19:49,190 --> 00:19:52,550 So sleeping just one benefit to the, the patient. 237 00:19:52,550 --> 00:19:56,310 We also discovered something that kind of should have been a little intuitive at the beginning. 238 00:19:56,650 --> 00:20:01,370 So normal routines operate by making drastic changes, uh, and you can't undo them. 239 00:20:01,370 --> 00:20:06,490 You cannot undo, undose insulin and you can't take back the cheeseburger that you just ate. 240 00:20:06,690 --> 00:20:09,090 I guess you can, but that's, that's gross. 241 00:20:09,090 --> 00:20:11,930 Um, actually just didn't think of that until now. 242 00:20:11,930 --> 00:20:18,250 So, uh, so one indirect safety factor that was discovered through use of this, it really makes sense when you think it through. 243 00:20:18,250 --> 00:20:27,070 You make small changes every five minutes and then after just five more minutes, correct anything that may be out of place or that needs to be done. 244 00:20:27,070 --> 00:20:29,690 So if you have a sudden rapid rise, you add more insulin. 245 00:20:29,690 --> 00:20:32,290 And if you have a sudden drop, you suspend delivery. 246 00:20:32,610 --> 00:20:34,150 And this is key during meals. 247 00:20:34,150 --> 00:20:40,250 Don't take the entire insulin dose because there is a nonzero chance that you're going to wind up, uh, on the floor. 248 00:20:41,410 --> 00:20:51,430 So open APS actually mimics the pancreas is normal function by slowly dosing insulin as the body processes carbohydrates and it keeps the patient's blood sugar from extremes. 249 00:20:52,050 --> 00:21:00,490 So lesser amounts of insulin in the system, in the person's system at any given time reduces the likelihood that they experience a blood sugar drop at all. 250 00:21:01,730 --> 00:21:04,130 So let's talk about iterative improvements. 251 00:21:04,310 --> 00:21:07,150 Um, I've made several implementations over the last few years. 252 00:21:07,150 --> 00:21:08,210 I'm going to hold these up. 253 00:21:08,210 --> 00:21:09,330 Some of them are large. 254 00:21:09,330 --> 00:21:12,430 They're, they have this big shave kit bag and you had to put it in a backpack. 255 00:21:12,490 --> 00:21:15,450 Uh, some of them are still a little bulky, but much smaller. 256 00:21:15,450 --> 00:21:17,510 And some of them are very, very tiny. 257 00:21:18,310 --> 00:21:22,770 Uh, and the one that I use now fits in my pocket and it, it, it's no bigger than my wallet. 258 00:21:22,770 --> 00:21:24,290 Uh, it doesn't feel obtrusive. 259 00:21:24,950 --> 00:21:30,610 So each iteration and choice of component over the years reduced the size and improved portability and battery life. 260 00:21:30,610 --> 00:21:32,790 And again, we're building the plane while we fly it. 261 00:21:32,790 --> 00:21:36,450 You can make incremental improvements in these things as you go. 262 00:21:37,070 --> 00:21:39,710 So some contributions I've made to these projects. 263 00:21:39,750 --> 00:21:51,150 Uh, somebody implemented an interactive setup script, uh, before you really had to, uh, uh, do things in a certain order in the right way or the whole system just would fall over, uh, fall out from under itself. 264 00:21:51,150 --> 00:21:57,410 Um, somebody dreamed up this interactive script and it asks you some questions about the equipment you're using, uh, and you just tell it. 265 00:21:57,410 --> 00:22:00,830 And then later on you can use command line switches when you want to update your software. 266 00:22:01,250 --> 00:22:15,190 So I've, uh, I've tried to increase flexibility around connectivity, specifically, uh, with Bluetooth tethering to, uh, to phones so that when, uh, you have flaky signal, like you're in, uh, an underground tunnel, uh, like on a train or something, uh, 267 00:22:15,190 --> 00:22:19,390 the connection kind of flapping there doesn't impact the communication with the server. 268 00:22:19,410 --> 00:22:23,390 Uh, and I've also added some FDA, an, an FDA certified device. 269 00:22:23,390 --> 00:22:33,470 Um, this one here, it uses this receiver, um, to, uh, to dump the data into the system, but, uh, it broke and so I needed to get a replacement. 270 00:22:33,470 --> 00:22:40,190 But the replacement that they sent, that they sent me does not share, uh, its data in exactly the same format. 271 00:22:40,190 --> 00:22:46,070 So I kind of had to bump around to add compatibility with the newer devices, uh, and committed all that stuff up. 272 00:22:46,630 --> 00:22:51,530 So the systems work without a con, uh, connection to the internet when one isn't available. 273 00:22:51,530 --> 00:22:57,730 And when you get back to civilization, uh, connect, the connection returns and it dumps all its data into NightScout. 274 00:22:57,730 --> 00:23:04,070 So you can, and people absolutely do, take these remote places to go, uh, hiking and all that kind of stuff. 275 00:23:04,070 --> 00:23:05,390 You're all, you're all good to do it. 276 00:23:05,390 --> 00:23:12,830 And as long as it gets time on startup, because, uh, some of you may know, none of these things have a battery for the real time clock. 277 00:23:13,030 --> 00:23:15,430 Uh, so when it starts up, it starts up with a new date. 278 00:23:15,430 --> 00:23:20,530 So as long as it can get NTP time, uh, it doesn't need to be connected, uh, continuously. 279 00:23:20,590 --> 00:23:30,550 And even if it can't get NTP time, say when you accidentally turn it off, when you're on an airplane, you can SSH into your artificial pancreas and tell it what time it is, uh, on the command line. 280 00:23:31,410 --> 00:23:36,050 So here are some images of the, uh, of these a little more close up. 281 00:23:36,050 --> 00:23:38,370 Um, this is a 26 amp hour battery. 282 00:23:38,370 --> 00:23:40,610 Uh, this is the receiver that I told you about. 283 00:23:40,610 --> 00:23:47,570 Uh, this is, this is an antenna that you could get from the manufacturer so that it would communicate with us, with a web service that they run. 284 00:23:47,650 --> 00:23:53,310 And the web service would talk to this thing through, I swear to God, JNI and Java. 285 00:23:54,510 --> 00:24:02,250 Uh, uh, and it's, it's something that I still to this day don't know whether to, to, uh, uh, attribute to malice or incompetence. 286 00:24:02,250 --> 00:24:06,030 After one foot or two feet away, this thing doesn't work. 287 00:24:06,030 --> 00:24:09,990 These things made by randoms on the internet work like 10 feet away. 288 00:24:10,090 --> 00:24:12,250 I don't, I don't understand it. 289 00:24:13,010 --> 00:24:15,090 Uh, and this is a Raspberry Pi 2. 290 00:24:15,870 --> 00:24:32,330 And something that I, I actually enjoyed doing, uh, in addition to all the straps that are inside so that things don't bump around, uh, I, uh, on this side, I got these female, uh, female to male, uh, short USB cables to plug into the dual charging ports of the battery. 291 00:24:32,330 --> 00:24:37,330 And instead of digging that battery out at the end of every day and plugging stuff in, you just plug the, the bag into that. 292 00:24:37,330 --> 00:24:38,370 And I thought that was a nice touch. 293 00:24:38,370 --> 00:24:39,390 That was very convenient. 294 00:24:39,850 --> 00:24:42,590 Uh, so this is what, uh, what these systems look like. 295 00:24:42,590 --> 00:24:51,290 Uh, this one, um, this one here, that's this one, is, uh, is an Intel Edison with the board under it and it does USB on the go. 296 00:24:51,290 --> 00:24:55,870 So you, uh, connect this onto that and it's still kind of bulky. 297 00:24:55,870 --> 00:25:02,450 And also you do need a USB battery because you have to feed five volts to, uh, to the USB on the, on the go device. 298 00:25:02,450 --> 00:25:08,450 So even though it has a lithium polymer battery, uh, it's not enough if you want to connect to, uh, the receiver. 299 00:25:08,690 --> 00:25:24,490 But this one, which is, uh, which is in here, this is a, uh, a Raspberry Pi zero with the board on top and it's a lithium battery only because it's pulling, uh, the blood glucose meters, uh, um, measurements directly off the Bluetooth transmitter. 300 00:25:24,490 --> 00:25:29,250 Uh, and I added a, a kill switch and, and the nice thing about this is it has a screen. 301 00:25:29,250 --> 00:25:37,630 So even if you don't have night scout or access to any of that stuff, you're not guessing, uh, to see sort of what the, what the decision loop is doing. 302 00:25:38,070 --> 00:25:46,110 And the last thing which, uh, which I characterize is the difference between having your speedometer in your glove compartment or your blood sugar in your pocket. 303 00:25:46,110 --> 00:25:52,490 Uh, this is a Fitbit with a, with what's called the glance face and it shows you every, really everything that you need to know. 304 00:25:52,490 --> 00:26:05,890 It shows how much insulin is active, uh, what carbs are left to be digested, where your number is now, and a little graph to show where it has been, uh, and what the change, that's that zero MGDL, uh, was from the, uh, the prior reading. 305 00:26:05,990 --> 00:26:15,430 Now I've mentioned that all of this stuff is out of warranty, but after a breakthrough of literally years in development, uh, this is called the, the Omnipod. 306 00:26:15,430 --> 00:26:17,070 Uh, it is manufactured today. 307 00:26:17,070 --> 00:26:20,210 It is, uh, it's a tubeless insulin pump. 308 00:26:20,210 --> 00:26:21,550 So it sticks to your body. 309 00:26:21,550 --> 00:26:24,310 Uh, somebody figured out how to control it. 310 00:26:24,310 --> 00:26:27,810 It, uh, it works in the 425 megahertz band. 311 00:26:27,810 --> 00:26:33,470 And so what people are doing now is compiling this, uh, this middle screen here. 312 00:26:33,470 --> 00:26:39,670 Uh, it's an iPhone app called loop and it sends a Bluetooth via Bluetooth commands to this relay thing. 313 00:26:39,670 --> 00:26:45,090 It's called a Riley link, which then spits out the 425 megahertz commands to this thing. 314 00:26:45,090 --> 00:26:49,790 So it's everything that I've described with warrantied hardware, which is nuts. 315 00:26:49,790 --> 00:26:55,210 Uh, I cannot tell you, uh, the, the Herculean effort it took to figure this thing out. 316 00:26:55,210 --> 00:26:57,190 Um, there's proprietary crypto in there. 317 00:26:57,190 --> 00:26:58,770 There's a, it, it was nuts. 318 00:26:58,770 --> 00:27:01,210 Um, so those people I hope feel very proud. 319 00:27:01,210 --> 00:27:06,750 So, uh, I promised you a live demo and really the entire time has been the live demo. 320 00:27:07,150 --> 00:27:17,070 Um, so these are, uh, these are live logs from what's going on with OpenAPS right now. 321 00:27:17,070 --> 00:27:25,770 So this one, if you notice here, it's taking several, uh, several different ways to predict what my blood sugar may do based on various factors. 322 00:27:25,950 --> 00:27:29,650 Uh, let's see, this is towards the tail end of the log. 323 00:27:30,070 --> 00:27:40,810 Uh, up at the top, it has decided that it is going to change that background insulin, but it's not going to dose, uh, more, uh, any more insulin, uh, with what's called a bolus. 324 00:27:40,810 --> 00:27:44,230 That's when it, uh, you're giving yourself more than that background insulin. 325 00:27:44,750 --> 00:27:48,670 And on the right, this is a log from the Bluetooth, uh, receiver. 326 00:27:48,670 --> 00:27:51,230 It's, uh, the project is called XstripJS. 327 00:27:51,230 --> 00:27:56,310 Uh, and that is live communication, uh, every five minutes with the device whenever it wakes up. 328 00:27:56,550 --> 00:27:59,270 And, uh, oh, so this is the beginning of the loop. 329 00:27:59,270 --> 00:28:04,870 What it's doing right now is making, uh, prechecks to make sure it can communicate with, uh, with the device. 330 00:28:04,870 --> 00:28:09,590 It's seeing what has changed over the last, uh, the last time that the loop ran. 331 00:28:09,590 --> 00:28:12,890 And then it's checking to make sure the, the time is correct. 332 00:28:12,890 --> 00:28:17,070 And then it's going to refresh what it, uh, what it knows about the system. 333 00:28:17,070 --> 00:28:19,010 And that kinda, that kinda takes a minute. 334 00:28:19,010 --> 00:28:25,270 So, uh, I was really hoping that we were gonna catch a new number on the other side so you could see that log, uh, go crazy. 335 00:28:25,270 --> 00:28:28,030 But, uh, such is not that log. 336 00:28:30,370 --> 00:28:33,770 Uh, and the other thing I wanted to show you was NightScout. 337 00:28:34,370 --> 00:28:36,470 So, uh, where do we start? 338 00:28:36,470 --> 00:28:39,990 So up over, uh, where you see 109, that is my blood sugar right now. 339 00:28:39,990 --> 00:28:41,490 It's up five points. 340 00:28:41,750 --> 00:28:45,970 The amount of insulin on board is actually negative 0.4. 341 00:28:45,970 --> 00:28:48,570 Uh, and I'll explain the reason for that in a minute. 342 00:28:48,570 --> 00:28:52,650 The basal is set right at about 1.0 units per minute. 343 00:28:52,650 --> 00:28:55,750 And you can see that, uh, that drop down icicle graph. 344 00:28:55,790 --> 00:28:58,770 And I haven't really been eating today, so there are no carbs on board. 345 00:28:58,770 --> 00:29:01,810 Uh, it shows that the pump has 78 units in it. 346 00:29:01,810 --> 00:29:03,790 Uh, the battery is 1.26. 347 00:29:03,790 --> 00:29:08,070 Uh, the one thing I'll say about the battery is that normally you get about two weeks with the battery. 348 00:29:08,070 --> 00:29:10,110 You get about three days when you're running this thing. 349 00:29:10,430 --> 00:29:11,430 Uh, which is fine. 350 00:29:11,430 --> 00:29:12,290 It's a triple A battery. 351 00:29:12,290 --> 00:29:13,090 It doesn't matter. 352 00:29:13,090 --> 00:29:19,950 Um, this right here shows that I, I did a finger prick and this is the trend graph of what my blood sugar has been doing. 353 00:29:20,330 --> 00:29:26,310 And the, uh, uh, purple lines right there, those are the predictions about what it is going to do. 354 00:29:26,890 --> 00:29:32,490 Uh, and here you can see I've been, uh, on a Vegas diet, uh, kind of spikes. 355 00:29:32,590 --> 00:29:42,840 Um, but yeah, I think I got, oh, and, uh, let's see, you can look at more. 356 00:29:42,880 --> 00:29:45,780 Uh, oh, this is, uh, uh, bolus right here. 357 00:29:45,780 --> 00:29:48,540 So I ate 45 carbs and only took one unit. 358 00:29:48,540 --> 00:29:53,340 Uh, if any of you in the audience are familiar with that, that's going to sound like a real underdose. 359 00:29:53,340 --> 00:29:58,840 And it was because then over here, open APS kicked in and did the rest. 360 00:29:58,840 --> 00:30:09,120 So it spiked a little bit, um, but then it came back down pretty rapidly and landed, uh, without, without too much, uh, without too much trouble right where I wanted it to be. 361 00:30:15,890 --> 00:30:17,650 I think I just saw the log tick. 362 00:30:17,650 --> 00:30:18,330 Yeah. 363 00:30:18,950 --> 00:30:29,970 So that's it, uh, communicating with, uh, with open APS and with the, uh, with the night and with the night scout server there, um, to register a new blood, uh, blood measurement. 364 00:30:32,870 --> 00:30:33,510 All right. 365 00:30:33,510 --> 00:30:34,410 Live demo. 366 00:30:34,790 --> 00:30:35,550 My internet works. 367 00:30:35,550 --> 00:30:36,030 That was great. 368 00:30:36,030 --> 00:30:37,410 So let's talk results. 369 00:30:38,330 --> 00:30:42,630 Two graphs up at the top in 2016, uh, right. 370 00:30:42,630 --> 00:30:44,830 I want to say a three month period starting in April. 371 00:30:45,010 --> 00:30:53,490 You can see that, uh, for 69% of the time I was in range and about 39, uh, 30% of the time I was high and I didn't have any lows. 372 00:30:53,490 --> 00:30:54,930 And there's a reason for that. 373 00:30:54,930 --> 00:31:05,010 Uh, after a couple of very scary moments, uh, in consecutive order, uh, I stopped really taking care of myself in terms of how high my blood sugar got. 374 00:31:05,010 --> 00:31:12,110 And you can see that here where it says the average of the normal is one 50 and the average of the high is about 200. 375 00:31:12,210 --> 00:31:13,490 Uh, that's not great. 376 00:31:14,070 --> 00:31:24,010 So, uh, from last week and then three months prior is the lower graph and that's 89% of in range time, 3% of lows. 377 00:31:24,010 --> 00:31:34,930 But if you look at the average and the median, those lows aren't that serious when you have something that is, uh, micromanaging, uh, everything that it does every five minutes and a little bit of highs because you're diabetic, you're never going to solve that. 378 00:31:37,010 --> 00:31:41,330 And this is just another way to visualize the same thing per hour of the day. 379 00:31:41,330 --> 00:31:49,090 Uh, if you notice up at the top, it's largely between one 50 and 200 and down at the bottom, it's largely between 100 and one 50. 380 00:31:51,970 --> 00:31:55,530 Uh, and now let's look at a few raw results. 381 00:31:55,530 --> 00:32:01,990 Uh, there was no A1C estimate, uh, before 2016 because there was no way to do that. 382 00:32:01,990 --> 00:32:04,550 Uh, so, uh, a couple of things that are important. 383 00:32:04,550 --> 00:32:05,750 This was diagnosis. 384 00:32:05,830 --> 00:32:11,510 Uh, I mentioned that six is a good place for a diabetic person to be and that ain't six. 385 00:32:11,590 --> 00:32:14,610 Uh, so that was a hospital visit, uh, and a surprise. 386 00:32:14,890 --> 00:32:19,490 Uh, but I quickly got it under control, uh, because, uh, I am also a control freak. 387 00:32:19,830 --> 00:32:28,510 And, uh, and right about here was just before those periods of, uh, let's say noncompliance, uh, with keeping your, your numbers down. 388 00:32:28,710 --> 00:32:40,430 Uh, and that was, uh, that was due to something that happened at an IKEA and very helpfully, uh, I'm sarcastic, this was the most unhelpful employee I've ever met, uh, at, uh, at MGM, uh, at a DEF CON. 389 00:32:40,430 --> 00:32:42,010 Uh, not MGM, at a DEF CON. 390 00:32:42,010 --> 00:32:43,890 It was Mandalay at a black hat. 391 00:32:43,890 --> 00:32:44,450 Yep. 392 00:32:45,250 --> 00:32:48,250 Uh, yeah, simple instructions were very difficult for that person. 393 00:32:48,250 --> 00:33:00,070 Um, now here, this is, uh, if I started OpenAPS in April of 2016, uh, that's the difference between, uh, the one right before it, uh, that's a, that's, that's point six. 394 00:33:00,070 --> 00:33:06,030 And that was only at night and doing very little work on my part because OpenAPS was taking care of all of that. 395 00:33:06,030 --> 00:33:11,310 So, as soon as I got the nights under control, I got an immediate benefit, uh, for, on my A1C. 396 00:33:11,310 --> 00:33:15,410 And then continuing forward, uh, now it's down to about six three. 397 00:33:15,410 --> 00:33:18,230 And again, I don't do very much work anymore. 398 00:33:18,790 --> 00:33:20,570 So, that's my personal change. 399 00:33:20,570 --> 00:33:22,030 Let's talk industry change. 400 00:33:22,130 --> 00:33:24,490 Previously, these were monolithic systems. 401 00:33:24,490 --> 00:33:28,930 One device, one insulin pump, one sensor, none of it's interoperable. 402 00:33:29,010 --> 00:33:37,630 Uh, and this thing, uh, it's as expensive as a regular insulin pump, uh, but it doesn't do, uh, it doesn't do anything, uh, really other than freak out. 403 00:33:37,630 --> 00:33:49,030 Uh, in fact, 40% of people leave this system, which is supposed to have a very tiny bit of automation, uh, because they can't keep it, uh, they can't keep it working enough, um, to stay in that level of automation. 404 00:33:49,030 --> 00:33:53,690 And then it pumps them out to manual mode and then what's the, you know, what's, why do they even have it? 405 00:33:53,690 --> 00:34:05,330 Uh, it's not tunable and this is a very person specific disease and it doesn't handle meals for you, which is probably a good 90% of why I love OpenAPS because I'm probably not gonna overdose myself. 406 00:34:06,470 --> 00:34:14,690 Uh, so, now the FDA, what they are doing is, uh, is certifying devices separately and making sure that they are interoperable. 407 00:34:14,690 --> 00:34:26,190 So, you have discreet CGM pumps, uh, uh, CGM, uh, devices, pumps and algorithms, they get certified themselves and then manufacturers get to make business decisions about which things interoperate. 408 00:34:26,190 --> 00:34:38,010 So, uh, the ICGM is the first one, uh, there are alternate controller enabled, that's an insulin pump, which allows an outside entity, uh, to control the insulin pump. 409 00:34:38,010 --> 00:34:41,290 The, the smarts don't have to be integrated into the pump itself. 410 00:34:41,290 --> 00:34:51,910 Uh, and finally the eye controller, that's the algorithm, that is what OpenAPS is, uh, but there are no certified products yet, uh, we think eventually, uh, very soon there will be. 411 00:34:52,670 --> 00:35:02,130 Uh, and plug and play is important, FDA isn't going to get the business of dictating which products, uh, work with, uh, with which other products so long as the qualifications are met. 412 00:35:02,130 --> 00:35:06,150 And so none of this would be possible without the people behind the hashtag, we're not waiting. 413 00:35:06,150 --> 00:35:16,010 Uh, it was a lot of people that were really tired of 90's garbage tech not handling this, uh, when really that's the goal of technology is to make your life better. 414 00:35:16,350 --> 00:35:21,370 We've all been told that there will be a cure in five years, uh, these people were tired of being told that. 415 00:35:21,990 --> 00:35:35,130 Uh, one thing that I want to emphasize, this is a group of non-doctors, um, these folks who started this changed an entire field of medicine, uh, and they are not themselves doctors, and I think that's, uh, a huge, uh, a huge good thing. 416 00:35:35,130 --> 00:35:35,650 Yeah. 417 00:35:35,650 --> 00:35:36,970 Yeah, thank you. 418 00:35:40,820 --> 00:35:43,480 So let's talk about exponential growth. 419 00:35:43,800 --> 00:35:46,720 Everyone needs insulin, this is a biological fact. 420 00:35:46,720 --> 00:35:52,680 And lack of the hormone is not a question of lifestyles or choices, uh, or what this person could have done better. 421 00:35:52,680 --> 00:35:57,440 Uh, it is a lightning strike that could happen to any of you, uh, really at any moment. 422 00:35:57,640 --> 00:36:01,460 And people will die, it is like water and like air. 423 00:36:01,460 --> 00:36:08,900 So when predatory prices are levied, uh, are levied on this drug, it is the financial form of your money or your life, kid. 424 00:36:08,980 --> 00:36:10,000 Uh, it's not great. 425 00:36:10,200 --> 00:36:12,540 And it's not like, oh, people die of this. 426 00:36:12,540 --> 00:36:15,220 Uh, people are dying now and it's 2019. 427 00:36:15,400 --> 00:36:26,780 Uh, so just, uh, uh, in Ju- just in June in California, three people under the age of, uh, of 25 died because they did not have access to affordable insulin. 428 00:36:26,780 --> 00:36:32,340 This guy died like three days ago because he changed insulin to save for his wedding. 429 00:36:32,460 --> 00:36:41,940 Uh, the people that, that use the $25, uh, Walmart insulin as a, uh, something to point to, to say that insulin is, is cheap and available. 430 00:36:42,180 --> 00:36:44,240 That's what this guy switched to. 431 00:36:44,360 --> 00:36:49,060 I mean, I'm not going to use dog insulin because it's cheaper and it's insulin. 432 00:36:49,060 --> 00:36:51,160 Uh, that's basically what this guy had to do. 433 00:36:51,380 --> 00:36:53,060 And, uh, and yeah. 434 00:36:53,320 --> 00:36:57,920 So I have a graph here of several things that are indexed to overall inflation. 435 00:36:57,920 --> 00:36:59,100 That's that black line there. 436 00:36:59,100 --> 00:37:00,840 And we're doing great with some things. 437 00:37:00,840 --> 00:37:03,340 Uh, so like TVs, that's that bottom line. 438 00:37:03,340 --> 00:37:06,560 Like there's never been a good time, a better time, uh, to buy a TV. 439 00:37:06,560 --> 00:37:10,400 And then there are things, uh, that are below the line like cell phone service and new cars. 440 00:37:10,400 --> 00:37:14,320 Uh, food and beverage and housing is right about at the middle line there. 441 00:37:14,320 --> 00:37:23,220 Wages are a little higher, but then other essentials like, uh, like college tuition and childcare and medical care services, they're up way, way high. 442 00:37:23,240 --> 00:37:39,460 Uh, and what I don't show you is the completion of that gold bar because that gold bar is 100, uh, 1,175% increase for the same formulation of the same insulin by the same brand, uh, 20 years later. 443 00:37:40,100 --> 00:37:42,120 So that's some shit. 444 00:37:43,220 --> 00:37:48,920 Uh, I, uh, I kind of subscribe, uh, subscribe to this, uh, this Senator's feeling on this. 445 00:37:48,920 --> 00:37:53,440 Uh, Americans, Americans are getting price gouged because our government lets it happen. 446 00:37:53,440 --> 00:37:56,340 Uh, other governments don't do that to their citizens. 447 00:37:56,480 --> 00:38:00,000 Uh, this is not meant to be a, a political statement or anything like that. 448 00:38:00,000 --> 00:38:06,960 Uh, but it's pretty evident that the, uh, the medical, uh, paradigm in the United States is kind of busted. 449 00:38:06,960 --> 00:38:10,580 Uh, and this is one, uh, one symptom of that. 450 00:38:10,800 --> 00:38:15,360 So I want to take the time to acknowledge, uh , the many people that contribute to these projects. 451 00:38:15,500 --> 00:38:22,380 Uh, and I am, uh, I'm not getting, uh, the hundreds, the other hundreds of people that contribute to this. 452 00:38:22,380 --> 00:38:27,740 Um, so Ben West, like I said, he's one of the, uh, one of the key players here. 453 00:38:27,740 --> 00:38:34,540 Uh, Dana and Scott, they're, they're, um, kind of behind one of the ideas that, that, uh, that produced Night Scout. 454 00:38:34,540 --> 00:38:38,880 Scott Hanselman, uh, he's, uh, again, that's the developer evangelist at Microsoft. 455 00:38:38,880 --> 00:38:40,160 He's got a huge megaphone. 456 00:38:40,160 --> 00:38:46,180 Uh, Xstrip JS, those guys, uh, are the ones that enable you to get the, uh, the Bluetooth reading directly off the device. 457 00:38:46,200 --> 00:38:48,100 Uh, Glance, that's its website. 458 00:38:48,100 --> 00:38:50,760 It's, uh, it's really cool and it's very handy. 459 00:38:50,760 --> 00:38:54,340 Not at Defcon when you have all your radios off though, so that kind of sucks. 460 00:38:54,400 --> 00:38:56,360 Um, and then there's the Night Scout project. 461 00:38:56,360 --> 00:39:01,680 And I figured since I cited a formal, uh, medical paper, I would cite this one formally right here. 462 00:39:01,680 --> 00:39:10,880 Um, that is the, uh, uh, that graph at the first one that showed 65%, uh, of, uh, of good results and, uh, or I'm sorry, of time within range. 463 00:39:11,180 --> 00:39:13,060 And finally, I want to thank my doctor. 464 00:39:13,060 --> 00:39:17,580 Um, there are doctors that bounce their patients when they find that they're doing this. 465 00:39:17,700 --> 00:39:20,080 Uh, this one is amazing. 466 00:39:20,080 --> 00:39:21,440 Uh, he's supportive of it. 467 00:39:21,440 --> 00:39:25,460 He's had me show his students, uh, his medical students how it works and all about it. 468 00:39:25,500 --> 00:39:28,880 Uh, and I, man, he's getting up there. 469 00:39:28,880 --> 00:39:32,720 I fear the phone call that he's retiring, um, like weekly. 470 00:39:32,780 --> 00:39:34,500 Um, but yeah, he's amazing. 471 00:39:34,500 --> 00:39:40,960 Uh, he is, uh, uh, he's the chief of, uh, of endocrinology at a hospital and he is wonderful. 472 00:39:41,580 --> 00:39:46,980 So, uh, talked a little about who I am, uh, and intro to the disease so we're all on the same page. 473 00:39:46,980 --> 00:39:57,160 Uh, hardware and software and we talked about safety, uh, talked about iterative improvements, you know, over the course of the year, uh, uh, few years and people are welcome to come up and look at these, uh, at the end. 474 00:39:57,160 --> 00:40:02,520 Uh, talked about results, both personally and industrial, uh, and we talked about exponential growth. 475 00:40:02,600 --> 00:40:05,780 And so finally, I'd like to take any questions if I have time. 476 00:40:05,980 --> 00:40:06,780 Yes? 477 00:40:13,490 --> 00:40:20,670 So the question was, what is the difference between the insulin, uh, that I mentioned at Walmart and, uh, the one that he was using? 478 00:40:20,670 --> 00:40:26,450 And the, the difference really is, uh, how precise it works on your body chemistry. 479 00:40:26,450 --> 00:40:32,230 Uh, the Walmart insulin does not give you the kind of control that you can achieve with, uh, with other products. 480 00:40:32,230 --> 00:40:37,850 Uh, it also, uh, it takes time for your body to adapt to a different formulation of insulin. 481 00:40:37,870 --> 00:40:41,970 Uh, and so that is, that all of those things probably contributed to his death. 482 00:40:42,450 --> 00:40:43,250 Yes, sir? 483 00:40:43,250 --> 00:40:50,250 Um, would you say just a few more words about how much of the processing is happening locally and how much is happening on your server? 484 00:40:50,250 --> 00:40:55,450 So for the purposes of open APS, none of it happens on the internet or on the server. 485 00:40:55,450 --> 00:41:01,010 Uh, the server serves as kind of a dumping ground for data, uh, where, uh, where it houses all that stuff. 486 00:41:01,010 --> 00:41:07,710 Um, so everything that, that this needs to know, as long as you tell it what time it is when it starts up, is actually right here. 487 00:41:07,710 --> 00:41:09,430 Sorry, actually right here. 488 00:41:14,250 --> 00:41:19,830 So theoretically, if you had good dense data storage, you wouldn't need your server anymore. 489 00:41:19,890 --> 00:41:22,390 I don't see why that is not true. 490 00:41:23,010 --> 00:41:23,750 Yeah. 491 00:41:24,010 --> 00:41:24,690 Yeah. 492 00:41:25,170 --> 00:41:25,870 Yes? 493 00:41:25,870 --> 00:41:37,590 Um, one question, if you could have one other sensor or one other kind of input, um, that you believe would help you control the situation even better, what would that be and why? 494 00:41:37,890 --> 00:41:39,470 No one's ever asked me that. 495 00:41:39,470 --> 00:41:56,050 Uh, I would have something that was telling me the speed at which my metabolism was operating, uh, because right now, uh, over several days of testing, uh, with, with certain, um, pre, uh, measured amounts of carbohydrates, I know, uh, you know, from, 496 00:41:56,050 --> 00:42:02,610 from some evidence how my metabolism works, but that's pretty general and every food is different. 497 00:42:02,770 --> 00:42:10,790 Um, so yeah, I would have something that, that did that and kind of informed this so that it could then, it could then say, oh, he's digesting things really fast, just dump more insulin in. 498 00:42:10,790 --> 00:42:11,590 Yeah. 499 00:42:12,650 --> 00:42:14,630 Uh, right here? 500 00:42:14,810 --> 00:42:16,970 Oh wait, um, sorry, over there first. 501 00:42:16,970 --> 00:42:17,810 One, one. 502 00:42:18,050 --> 00:42:31,510 Um, have you ever had issues, uh, traveling or going through secure locations, having them believe, hey, this is a medical device, given that it's a Raspberry Pi and, and it's got like a, a battery tape to it with wires coming out of it. 503 00:42:31,510 --> 00:42:31,730 Yeah. 504 00:42:32,730 --> 00:42:36,990 Um, so, um, I'm going to, the short answer is no. 505 00:42:36,990 --> 00:42:41,510 And the long answer is Dana, uh, who I mentioned earlier makes it her mission. 506 00:42:41,510 --> 00:42:50,210 She does a lot of traveling and basically every time she gets on a plane, she like posts a picture of it after airport security and is like, no one even bat an eye. 507 00:42:50,210 --> 00:42:52,890 And, uh, even internationally that's been the case. 508 00:42:52,890 --> 00:43:00,270 Um, so I imagine if I had to go to secure locations, which I suppose probably means no random electronics, right? 509 00:43:00,350 --> 00:43:02,330 Uh, this probably wouldn't be allowed. 510 00:43:02,330 --> 00:43:14,630 Um, but, uh, uh, but yeah, in just in terms of like building security, uh, no, no one's ever, uh, oh, well occasionally someone will ask about it and I say, oh, it's an artificial pancreas and they go, all right. 511 00:43:14,630 --> 00:43:16,110 And just kind of hand it back to me. 512 00:43:16,390 --> 00:43:17,310 So thank you. 513 00:43:17,310 --> 00:43:17,610 Yep. 514 00:43:17,610 --> 00:43:18,190 Thank you. 515 00:43:18,190 --> 00:43:19,730 And then you, sir. 516 00:43:21,090 --> 00:43:21,950 Last question. 517 00:43:21,950 --> 00:43:22,610 All right. 518 00:43:23,190 --> 00:43:31,850 Um, I guess this might be related to the metabolic rate, but, um, how important is the amount of carbs that you put in whenever you eat them? 519 00:43:31,850 --> 00:43:36,350 For example, after exercise, you'll have a different glycemic response. 520 00:43:36,350 --> 00:43:36,510 Sure. 521 00:43:36,550 --> 00:43:49,630 So what I, what I didn't mention, and I'm actually doing this now, uh, you can, uh, you give this thing, um, a target to hit a normal target to hit, but you can override that temporarily. 522 00:43:49,630 --> 00:43:55,870 So what this is saying is until about five, uh, no, uh, all my clocks are off. 523 00:43:55,870 --> 00:43:56,170 Okay. 524 00:43:56,170 --> 00:44:00,770 At least until about five local time, this is going to set a temporary target of 120. 525 00:44:00,770 --> 00:44:04,910 And so what that does is it say, okay, I'm going to go easy on the insulin. 526 00:44:04,910 --> 00:44:08,850 So if I know I'm going to exercise, I'm going to want it to go easier on me. 527 00:44:08,850 --> 00:44:13,570 Uh, so I set one of these temporary targets, uh, and then it abides by that. 528 00:44:14,290 --> 00:44:17,450 So I think I had, yeah, nope. 529 00:44:17,450 --> 00:44:17,710 Okay. 530 00:44:17,710 --> 00:44:18,550 I'm sorry. 531 00:44:18,550 --> 00:44:19,590 Um, we can talk later. 532 00:44:19,590 --> 00:44:21,110 Uh, but yeah, thanks everybody.