[00:00.000 --> 00:05.540] And without further ado, let me introduce Jay Legorio. So, Jay is a software engineer, [00:05.540 --> 00:08.940] independent security researcher, and he's been building computers and networks and writing [00:08.940 --> 00:13.720] code for pretty much his entire life. He got his Bachelor of Science in Computer Science [00:13.720 --> 00:19.500] from UMBC, Go Retrievers. In 2008, a Master's in Engineering from the Naval Postgraduate [00:19.500 --> 00:25.870] School. Yeah, that's awesome. In 2015. So, without further ado, Jay Legorio. [00:31.570 --> 00:36.890] All right. Hi, DEF CON. My name is Jay Legorio and I'm gonna talk about do-it-yourself [00:36.890 --> 00:41.630] artificial pancreases and how you can build one of your own. So, I'll talk a little bit about [00:41.630 --> 00:45.770] who I am, not as much because we've already gone over that. Uh, an introduction to diabetes, [00:45.770 --> 00:50.730] let's all get on the same page. Uh, hardware, software and safety and the solutions, uh, [00:50.730 --> 00:56.050] that we will engineer to achieve all of those. Uh, iterative improvements, uh, developed over [00:56.050 --> 01:01.730] several years. Uh, a live demo, uh, which is starting, uh, starting at least now. Uh, we'll [01:01.730 --> 01:06.230] see the results at the end. Uh, something I like to call exponential growth and, uh, and then I [01:06.230 --> 01:11.630] will take questions. Uh, so we talked a little about who I am. Uh, I also have some, uh, some [01:11.630 --> 01:16.930] various SANS certs, uh, and I'm a developer. I'm an IT consultant and I'm a private investigator [01:16.930 --> 01:21.930] licensed out of DC. And, uh, and as a developer, I've always solved my, uh, my problems with [01:21.930 --> 01:27.050] software. So, uh, when I first got this diagnosis, I was given a piece of paper and a table and they [01:27.050 --> 01:31.930] said, use this to track your information. And that sounded ridiculous. So, uh, I wrote a web [01:31.930 --> 01:36.530] app, uh, and it was great. And I thought, oh, look at that. I'm unique. It's the intersection of this [01:36.530 --> 01:41.570] thing, uh, and computer science. And it turns out, uh, you are unique just like everybody else, [01:41.570 --> 01:47.010] uh, because this is Scott Hanselman. He's a developer evangelist at Microsoft. And he says [01:47.010 --> 01:50.610] the first thing every techie does once they've been diagnosed is they try to solve the problem [01:50.610 --> 01:56.930] with software or hardware. So I'm no, I'm not unique. So let's talk about this disease. We'll [01:56.930 --> 02:01.790] all get on the same page. Uh, diabetes affects nearly 200 million people worldwide. And there [02:01.790 --> 02:07.710] are two types of them. The one which we'll talk about today is genetic. It's type 1 and it's a [02:07.710 --> 02:12.390] deficiency in the pancreas to properly produce insulin. So you have to get it somewhere else. And [02:12.390 --> 02:17.690] type 2 is also a deficiency, but it is in the rest of the body's ability to absorb that insulin. [02:17.690 --> 02:23.410] We're not talking about that today. Uh, despite having a similar name, uh, to type 1, it is [02:23.410 --> 02:29.110] actually very different. Um, so again, we're not talking about type 2 diabetes. Uh, and all of us [02:29.110 --> 02:33.170] with this disease have heard the meme, there will be a cure in five years. And certainly 10 years [02:33.170 --> 02:38.590] ago at a, at a hospital bedside, that is what the doctor told me, uh, nearly immediately. And five [02:38.590 --> 02:44.330] years later and five years after that, there is still no cure. So insulin is a hormone required [02:44.330 --> 02:49.090] to sustain human life and people with it must get it from somewhere else. And there are two types. [02:49.090 --> 02:54.050] There's long acting that takes your, uh, your blood sugar and it kind of keeps it in check over [02:54.050 --> 02:59.570] the course of 12 or 14, or sorry, 12 or 24 hours. And there's short acting, which is for things, [02:59.570 --> 03:03.730] uh, like meals so that you can counteract, uh, the effect of carbohydrates on your body. [03:04.710 --> 03:14.310] So you administer insulin with a complex formula, uh, taking into account, because this is all very, [03:14.310 --> 03:19.270] uh, pre-existing insulin levels and adrenaline and your insulin sensitivity. Like I said, [03:19.270 --> 03:24.990] it's all very easy. Uh, and you straddle this tenuous line, uh, between going too far high [03:24.990 --> 03:30.650] and too far low. So what's normal for most of you, you're going to maintain and ride pretty [03:30.650 --> 03:35.270] much right at a hundred, uh, the rest of your lives. And that's very good because too high, [03:35.270 --> 03:40.810] uh, if you're, if your levels are too high or remain very high for a long time, uh, you can [03:40.810 --> 03:47.390] have a, uh, a major impact on taking years off your life. Uh, in addition, it can cause strokes, [03:47.390 --> 03:53.030] seizures, organ failure, brain damage, and death over a sustained period. But, uh, you think, okay, [03:53.030 --> 04:00.170] well, we'll just go low. Well, low is even worse. Uh, after you, uh, uh, spend, let's say tens of [04:00.170 --> 04:05.030] minutes progressing through anxiety, tremors, sweating, uh, dizziness, confusion, and heart [04:05.030 --> 04:10.610] palpitations, right at about 35, you pass out. Uh, and that is when you will, you, uh, are much [04:10.610 --> 04:15.550] more likely to die. This is the very acute way as opposed to the long-term way that people die [04:15.550 --> 04:20.430] of this disease. Uh, and some people are hypo unaware, so they don't even feel those symptoms [04:20.430 --> 04:24.650] when they're crashing down. Uh, that makes the technology we're going to talk about today, [04:24.650 --> 04:30.010] uh, a real life requirement, uh, for those sorts of people. And it's a difficult balance to [04:30.010 --> 04:36.130] maintain consistently. We talked about this equation, uh, and it's for the most part accurate [04:36.650 --> 04:43.170] ish because certain things we can't measure. We can't measure, uh, sickness. I don't have [04:43.170 --> 04:48.650] four six today. Uh, you can't measure adrenaline. Uh, mine is surging because I'm up in front of [04:48.650 --> 04:54.850] all of you and I have no idea what that means. Uh, you also can't really measure exercise. Sure, [04:54.850 --> 04:59.070] it takes twice the amount of work to go two miles versus one, but there's no real way to [04:59.070 --> 05:04.710] quantify that, uh, as it impacts this disease. Uh, you also don't know when the carbohydrates [05:04.710 --> 05:09.850] that you're eating are going to hit your system. So if you dose a bunch of insulin and the carbs [05:09.850 --> 05:14.910] don't, don't take effect, your insulin levels are going to crash your blood sugar down before the [05:14.910 --> 05:19.590] food even catches up. Uh, it also goes the other way more often than not, but you can't predict [05:19.590 --> 05:25.650] that because even, uh, things that you do commonly and regularly and are very, uh, easily predictable, [05:25.650 --> 05:29.390] they can come right out of left field, uh, and hit you when you don't expect it. [05:29.450 --> 05:34.550] Your insulin sensitivity changes over time, over a period of weeks, and is sometimes different [05:34.550 --> 05:39.950] throughout the day. Uh, and finally, you have to maintain safety at night. You don't get to [05:39.950 --> 05:46.250] sleep through this. Uh, it's something that you pay attention to 24 seven. So this is living with [05:46.250 --> 05:52.650] it, but how do we measure how well we're doing? The A1C blood test is a, it, uh, measures a [05:52.650 --> 05:58.490] chemical that is, uh, related to your glucose with an impact of about three months. Uh, in [05:58.490 --> 06:02.810] aggregate, it's a good approximation of how, uh, well you've been maintaining control of your [06:02.810 --> 06:07.770] blood sugar. Uh, and you need to, and if you maintain control of that, of your blood sugar, [06:07.770 --> 06:14.790] you'll get a good A1C test. Normal people, uh, should be about five to six. If you're diabetic, [06:14.790 --> 06:20.670] it's probably higher than six. And after seven, it, uh, that's when it starts to indicate that [06:20.670 --> 06:25.570] you're not managing your care very well. Uh, your blood sugar should not fluctuate wildly [06:25.570 --> 06:31.170] during sleep. So as long as you go to bed in a good state, uh, you will probably add good time, [06:31.170 --> 06:38.690] so to speak, to your A1C. Now there does exist some technology to make it easier to maintain [06:38.690 --> 06:42.970] control of your, of your blood sugar, but it largely goes towards eating, easing burdens. [06:42.970 --> 06:48.170] None of this stuff makes decision-making, uh, uh, none of this stuff takes a decision-making role [06:48.170 --> 06:53.890] in management of the disease. So we replace injections, multiple injections, with insulin [06:53.890 --> 06:59.070] pumps. Uh, I mentioned there were two types of insulin. With an insulin pump, it very slowly [06:59.070 --> 07:04.370] microdoses, and not the Silicon Valley microdose, uh, it slowly microdoses insulin over the course [07:04.370 --> 07:11.010] of the day to take that long-acting effect, uh, and use short-acting insulin, uh, to, to achieve [07:11.010 --> 07:15.550] the same effect. And you're not, uh, you're not stabbing yourself all over the, uh, all over your [07:15.550 --> 07:20.630] body all through the day. You put it in one day and maybe about three days later, uh, you change [07:20.630 --> 07:27.990] it all up. Uh, we also have a continuous glucose monitor, and this takes the place, uh, or is [07:27.990 --> 07:32.210] augmented by, uh, finger sticks. And that's exactly the thing that all of you know what I say, [07:32.210 --> 07:36.170] what, what I mean when I say you prick your finger, put the blood in the meter, and, and all [07:36.170 --> 07:41.350] that kind of thing. Uh, the sensors, uh, they vary, uh, de, uh, depending on the model. Uh, they [07:41.350 --> 07:46.970] can stay in for seven days, 10 days, 14 days, it all depends. But generally, they all hold to this, [07:46.970 --> 07:52.430] this one thing where, uh, you get a reading every five minutes, um, which is good because then you [07:52.430 --> 07:58.270] can expose things like trends. It's not this point in time conte- uh, context-less, uh, [07:58.270 --> 08:04.570] finger stick that doesn't tell you as much as you really want to know. So, uh, let's talk about some [08:04.570 --> 08:09.890] tips. You don't get to have bedtime snacks because you don't know what it's going to do. Uh, you [08:09.890 --> 08:14.050] intentionally go to bed on the higher end of the scale because the insulin pump is unthinking, [08:14.050 --> 08:18.390] and it will slowly dose that insulin, and you don't want to wake up too low, and you don't [08:18.390 --> 08:24.810] want your, your continuous glucose monitor to set off an alarm. Uh, and, uh, every meal, even the [08:24.810 --> 08:29.090] ones that are usually predictable, can become an hours-long battle to get back to normal. And this [08:29.090 --> 08:35.010] is just how it works. This is true mainly for everybody. Uh, and a rule of thumb, if you wake [08:35.010 --> 08:38.770] up in a bad state, there really is no recovery during the day. You're always going to work to [08:38.770 --> 08:43.850] fight your numbers down, uh, or bring them up throughout the day. And finally, I want to leave [08:43.850 --> 08:48.810] the intro with a, with, uh, a graph of how hard this all is. This is from a study called the [08:48.810 --> 08:54.290] Effect of Diabetes on Outcomes of Hyperglycemia in a Mixed Medical Surgery Intensive Care Unit. [08:54.290 --> 09:02.210] It's from May of 2001, and if we define in range as between 80 to 180, uh, these folks in an ICU [09:02.210 --> 09:10.310] were only in range about 65% of the time. How hard is it when we're in an ICU and doctors can't [09:10.310 --> 09:15.870] even keep this thing in line? So that's what the rest of us live with. Uh, so now we'll talk about [09:15.870 --> 09:21.790] hardware. We need to develop a solution that takes data from the CGM, processes it with what it [09:21.790 --> 09:27.090] already knows about our bodies and its current state, predicts future effects, uh, based on the [09:27.090 --> 09:32.050] existing state, any proposed changes like dosing insulin or eating, uh, and how the medicine [09:32.050 --> 09:36.210] actually works, and finally delivers a command to an insulin pump that's something other than [09:36.210 --> 09:41.770] that regular background, uh, insulin. And this requires us to, to overcome several technical [09:41.770 --> 09:47.350] challenges. We need something small and low power. Uh, we need a visualization solution because this [09:47.350 --> 09:52.650] thing needs to be monitored. And, uh, we need to collect blood sugar readings from an FDA-certified [09:52.650 --> 09:58.490] CGM system. And finally, we need to query and control an FDA-certified insulin pump. And the [09:58.490 --> 10:05.050] reason FDA certification is important here, uh, is because the quality of the measurements that you [10:05.050 --> 10:10.670] get will directly impact the effect on your body. Uh, we're, many of us are developers, we understand [10:10.670 --> 10:15.230] garbage in, garbage out. You need something that is giving you good data and then you need an [10:15.230 --> 10:19.830] insulin pump that can, that can accurately take action. If you say dose one unit, you don't want [10:19.830 --> 10:27.670] it to be 0.9 or 1.1 or maybe it's 5 today. You need something that is absolutely reliable. So, [10:27.670 --> 10:31.770] nowadays, this is actually really easy. I think it's easier than it was 10 years ago. Uh, the [10:31.770 --> 10:35.650] Raspberry Pi and the Edison are ultra-portable. You can get them anywhere, although the, uh, the [10:35.650 --> 10:40.990] Edison is discontinued now. Uh, and it's great to run our code on. We can, we can get these anywhere. [10:41.230 --> 10:46.330] Uh, they each have built-in Bluetooth and Wi-Fi, so they're eminently net, uh, networkable. You can, [10:46.850 --> 10:51.150] you can tell it about all of your, your different Wi-Fi access points or you can tether it to your [10:51.150 --> 10:56.570] phone when you're out on the go. And finally, uh, some, because Bluetooth is built-in, you can [10:56.570 --> 11:01.370] collect CGM data directly from the transmitter that's attached to you, if it supports that. And [11:01.370 --> 11:06.010] the solution we're talking about today does. Uh, and if not, you can plug the receiver, uh, into [11:06.010 --> 11:10.790] the device, uh, and because they both support USB on the go. So, you can, you can download your [11:10.790 --> 11:16.650] data directly from that. So, we talked about collecting CGM directly, but the insulin pump [11:16.650 --> 11:21.910] we're going to talk about is, uh, it's a 900 megahertz, uh, radio. It's in the ISM band. Uh, [11:21.910 --> 11:26.370] and the open source hardware community stepped up for us and developed the Explorer board for [11:26.370 --> 11:31.750] the Edison and the Explorer hat for Raspberry Pi. Now, they're marketed as random 900 megahertz [11:31.750 --> 11:36.270] radios that anybody can do anything with. And that's true. You can, but this was made for this [11:36.270 --> 11:41.010] purpose, uh, and we really appreciate that. Now, I mentioned that the, uh, the protocol was [11:41.010 --> 11:45.810] proprietary. It was reverse engineered over a period of years, uh, by someone known, known as [11:45.810 --> 11:50.850] Ben West. Uh, none of this would be possible without his work. Uh, so it's, uh, uh, we really [11:50.850 --> 11:56.330] appreciate it. Now, older insulin pumps have wireless connectivity and the manufacturers [11:56.330 --> 12:01.090] allowed you to remotely control them. Uh, not from very far away, but you could still remotely [12:01.090 --> 12:06.270] control them. And when they found out about this, uh, the fact that you could remotely control [12:06.270 --> 12:12.130] them, thanks to a Black Hat 2013, uh, talk, they significantly limited how that functionality [12:12.130 --> 12:17.990] can be used. So in newer pumps, you can still query, uh, for the state of the system, but you [12:17.990 --> 12:23.010] can no longer remotely dose insulin. You have to find out of warranty pumps. You have to find [12:23.010 --> 12:27.550] them anywhere that you can, uh, and then we'll use our custom hardware and software to talk to [12:27.550 --> 12:34.050] them. So older devices, uh, are already hard to acquire. You have to scour eBay, Craigslist, [12:34.050 --> 12:41.250] Mercari, uh, this website called MedWow. Uh, and because no one can resist the chance to take [12:41.250 --> 12:45.950] advantage of an already disadvantaged community, there was price gouging. So you'd think these [12:45.950 --> 12:50.750] older out of warranty pumps would be cheap because they are, because they are older and well [12:50.750 --> 12:55.790] used. Uh, and the prices on these things that people wanted, uh, people who weren't even [12:55.790 --> 13:01.070] interested in participating in this or weren't diabetic skyrocketed. So that was, uh, that was [13:01.070 --> 13:06.830] really fun. So let's talk about software and safety because safety is a pretty critical factor [13:06.830 --> 13:13.730] here. Our visualization stack is going to be built on Linux, Node and Go, Mongo, Python and [13:13.730 --> 13:19.630] Bash, and it's called NightScout. It is purpose built, uh, to visualize the current state of a [13:19.630 --> 13:24.650] diabetic system, uh, as well as dump, as, as well as serve as a holding place for historical [13:24.650 --> 13:29.470] data so that you can bring, uh, you can bring reports to your doctor so that you're, you're not [13:29.470 --> 13:33.270] giving them kind of, uh, lack of context for how you've been, you've been taking care of [13:33.270 --> 13:37.850] yourself. Now everyone builds their own NightScout instance and it fits well on the free [13:37.850 --> 13:41.530] tiers. Uh, I have a guide out where you can install it on private infrastructure. If you [13:41.530 --> 13:45.850] choose to do that, I don't really like having stuff in the cloud. So this works, uh, on a [13:45.850 --> 13:50.570] server in my basement. And NightScout is great for a point in time representation, [13:50.570 --> 13:54.390] representation of how things are now. And again, you can generate reports to bring to your [13:54.390 --> 14:00.010] medical, uh, your medical appointments. So, the solution that does all of the heavy [14:00.010 --> 14:06.150] lifting is called the Open Artificial Pancreas System or OpenAPS. And it is built on, uh, [14:06.150 --> 14:10.910] much the same group of, of, uh, technologies, Node, Python, uh, and Bash. And it runs on [14:10.910 --> 14:15.910] Linux. Uh, so again, this fits well with our Raspberry Pis and our Intel Edisons. And it's [14:15.910 --> 14:21.050] designed to acquire CGM data, process it using an algorithm, uh, and deliver a dosage [14:21.050 --> 14:25.010] command to an insulin pump, which checks all the boxes, uh, for the things that we talked [14:25.010 --> 14:30.370] about what we needed at the beginning. Now, more than 1,440 people have sort of raised their [14:30.370 --> 14:35.410] hand and said, yes, I'm using this. But we know that there are more people than that, uh, who [14:35.410 --> 14:40.430] are using it. Um, because it, it is, uh, uh, it's not required to get permission or anything [14:40.430 --> 14:46.750] like that. Uh, so, uh, using those numbers, about 7, uh, 13.7 million person hours, uh, of [14:46.750 --> 14:52.590] algorithm use, uh, have been, uh, uh, have been achieved. And, and so far, for the people who [14:52.590 --> 14:58.810] are using CGM certified, uh, uh, I'm sorry, FDA certified CGMs and FDA certified pumps, no [14:58.810 --> 15:05.690] one has gone to the hospital. Um, so a person can only be expected to do that equation that we [15:05.690 --> 15:10.090] talked about really several times per day. Uh, and the fact that there are so many unknowns in [15:10.090 --> 15:15.370] this equation, it's a, it's a, it's a wonder anybody does it right at all. Uh, but OpenAPS [15:15.370 --> 15:20.330] can process that data every five minutes because that's when you get a glucose reading. And so [15:20.330 --> 15:25.190] that's about 300 times per day that you, the patient, are not having to deal with the stress of [15:25.190 --> 15:33.110] this stuff. And more importantly, it works when you're sleeping, which is awesome. So it, because [15:33.110 --> 15:38.730] it is more aware of, of many things that the human cannot be aware of, uh, it makes better [15:38.730 --> 15:44.790] decisions. So it knows, uh, the manufacturer provided, uh, equation that says, uh, when the [15:44.790 --> 15:49.830] insulin will take effect and when it will start to taper off. And it can use that information to [15:49.830 --> 15:54.190] make a better decision to say, okay, well, his, his blood sugar is rising a little high, but he [15:54.190 --> 15:58.850] already has this much on. And according to this equation, well, I'll add a little more or I won't, [15:58.850 --> 16:02.470] which is, uh, which is really good. And I mentioned that your insulin sensitivity varies over [16:02.470 --> 16:08.310] time. So Auto-Tune will tune the algorithm to carbs and insulin over weeks. Uh, and [16:08.310 --> 16:13.670] Auto-Sensitivity will tune the algorithm, uh, to you over, uh, several days. This is a very [16:13.670 --> 16:21.150] person-centric disease. So you need person-centric, uh, uh, applications here and it gives you [16:21.150 --> 16:27.370] advanced warning. So if, if it knows, because it, again, it knows how the insulin works, uh, to a [16:27.370 --> 16:31.350] mathematical level, uh, it can send you a notification to your phone and say, Hey, you need to [16:31.350 --> 16:36.210] eat carbs, uh, because otherwise in about 15 minutes or however you configure it, uh, you're [16:36.210 --> 16:41.810] going to have a low. Uh, so after this feature was implemented, uh, whenever, uh, uh, whenever it [16:41.810 --> 16:45.850] would tell me that I needed to eat carbs, you're going to experience a low, uh, I didn't get that [16:45.850 --> 16:50.950] low, which was great. That was really helpful. So let's talk, I already hinted at it, but let's [16:50.950 --> 16:55.850] talk about the first benefit you get with this system. Someone running on manual mode, uh, can [16:55.850 --> 17:00.430] normally be expected to wake up at least once or twice every night to alarms cause, uh, that [17:00.430 --> 17:05.970] require your action. Uh, again, you don't get to sleep through this, but OpenAPS takes control of [17:05.970 --> 17:10.910] this all night long. And sleep is one particular area of your life, uh, that improves [17:10.910 --> 17:16.530] dramatically almost immediately. So, uh, after diagnosis and before starting this, uh, I went [17:16.530 --> 17:20.770] from getting no more than six hours of uninterrupted sleep at a time, uh, to the first day I [17:20.770 --> 17:25.610] slept 10 hours. And when I woke up, I was exactly where I wanted to be. And it was, it was [17:25.610 --> 17:31.110] nothing short of incredible. I was a very tired person. So a sleeping patient isn't eating. [17:31.110 --> 17:35.550] It's also easier for the, uh, for the system to maintain them within the range that you've [17:35.550 --> 17:40.990] defined. Uh, and good time and range, especially at night, improves your A1C without any work on [17:40.990 --> 17:45.570] your part. Uh, you're not struggling between the decision of, I'm starving, but still have [17:45.570 --> 17:49.070] high blood sugar and need to wait to eat. You're generally not eating. So this is the only [17:49.070 --> 17:53.990] factor that, uh, uh, that really comes into it. Uh, and I, I don't want you to think that this [17:53.990 --> 17:58.790] is just my experience talking about how life changing the sleep is. Uh, this is generally the [17:58.790 --> 18:04.330] first thing we hear from people is that the sleep is amazing. This person changed their [18:04.330 --> 18:09.090] sensor and immediately went back to bed. Uh, and everything just worked. It just worked and it [18:09.090 --> 18:15.410] was great. So we have been building the airplane while we've been flying it and [18:15.410 --> 18:20.890] manufacturers don't really get that luxury. And safety is a critical factor in the way that [18:20.890 --> 18:24.830] changes and features are implemented because we don't want to send somebody to the hospital. [18:24.830 --> 18:28.330] So there are several checks and double checks before it makes an ins, uh, an insulin [18:28.330 --> 18:34.310] decision. Uh, there are fallback behaviors defined. So should, uh, I be away, uh, should the [18:34.310 --> 18:39.190] system be away from the insulin pump for hypothetically 30 minutes, uh, there's not much [18:39.190 --> 18:43.890] difference between what 30 minutes with this system would have, would have caused and what 30 [18:43.890 --> 18:48.730] minutes without it. And after that 30 minutes, the pump reverts to its, uh, its normal, just [18:48.730 --> 18:54.290] background insulin doing things manually. Uh, and features that have impact on the algorithm [18:54.290 --> 18:58.330] are scrutinized heavily by a core team of developers. And I don't want you to think that [18:58.330 --> 19:03.170] means, that means me saying, uh, oh, it's open source. So obviously there are all eyes on it. [19:03.170 --> 19:08.730] Uh, you know, like we used to say about open SSL. Uh, but there are, there are people who are, [19:08.730 --> 19:12.310] who are dedicated to that one part of the algorithm. There are no changes that are going to [19:12.310 --> 19:17.970] go into that without their say so. Uh, now commands are delivered, uh, oh, I explained this [19:17.970 --> 19:23.230] already. So when, uh, when the pump is out of range of the system, uh, it will default back to [19:23.230 --> 19:28.550] factory behavior, which is great. Uh, and during sleep, the manufacturing provides CGM, which [19:28.550 --> 19:34.970] will alarm, uh, it can be used as a fallback. So let's say, uh, Linux kills the, the open APS [19:34.970 --> 19:39.910] process for some reason, who knows why? Uh, and it stops working. Well, if I start to go too [19:39.910 --> 19:45.050] high or too low while I'm asleep, this thing is independent. It can still, you know, sound an [19:45.050 --> 19:51.150] alarm, uh, and cause me to wake up and then take care of all this stuff. So sleeping just one [19:51.150 --> 19:54.550] benefit to the, the patient. We also discovered something that kind of should have been a [19:54.550 --> 20:00.190] little intuitive at the beginning. So normal routines operate by making drastic changes, uh, [20:00.190 --> 20:05.450] and you can't undo them. You cannot undo, undose insulin and you can't take back the cheeseburger [20:05.450 --> 20:11.370] that you just ate. I guess you can, but that's, that's gross. Um, actually just didn't think of [20:11.370 --> 20:16.210] that until now. So, uh, so one indirect safety factor that was discovered through use of this, [20:16.210 --> 20:21.430] it really makes sense when you think it through. You make small changes every five minutes and [20:21.430 --> 20:26.190] then after just five more minutes, correct anything that may be out of place or that needs [20:26.190 --> 20:30.390] to be done. So if you have a sudden rapid rise, you add more insulin. And if you have a sudden [20:30.390 --> 20:35.970] drop, you suspend delivery. And this is key during meals. Don't take the entire insulin dose [20:35.970 --> 20:42.530] because there is a nonzero chance that you're going to wind up, uh, on the floor. So open APS [20:42.530 --> 20:47.770] actually mimics the pancreas is normal function by slowly dosing insulin as the body processes [20:47.770 --> 20:53.470] carbohydrates and it keeps the patient's blood sugar from extremes. So lesser amounts of insulin [20:53.470 --> 20:58.250] in the system, in the person's system at any given time reduces the likelihood that they [20:58.250 --> 21:05.050] experience a blood sugar drop at all. So let's talk about iterative improvements. Um, I've made [21:05.050 --> 21:08.730] several implementations over the last few years. I'm going to hold these up. Some of them are [21:08.730 --> 21:12.950] large. They're, they have this big shave kit bag and you had to put it in a backpack. Uh, some of [21:12.950 --> 21:18.890] them are still a little bulky, but much smaller. And some of them are very, very tiny. Uh, and [21:18.890 --> 21:23.330] the one that I use now fits in my pocket and it, it, it's no bigger than my wallet. Uh, it doesn't [21:23.330 --> 21:28.950] feel obtrusive. So each iteration and choice of component over the years reduced the size and [21:28.950 --> 21:32.890] improved portability and battery life. And again, we're building the plane while we fly it. You [21:32.890 --> 21:38.670] can make incremental improvements in these things as you go. So some contributions I've made to [21:38.670 --> 21:43.810] these projects. Uh, somebody implemented an interactive setup script, uh, before you really [21:43.810 --> 21:48.990] had to, uh, uh, do things in a certain order in the right way or the whole system just would [21:48.990 --> 21:53.490] fall over, uh, fall out from under itself. Um, somebody dreamed up this interactive script [21:53.490 --> 21:57.410] and it asks you some questions about the equipment you're using, uh, and you just tell it. [21:57.410 --> 22:00.830] And then later on you can use command line switches when you want to update your software. [22:01.250 --> 22:06.790] So I've, uh, I've tried to increase flexibility around connectivity, specifically, uh, with [22:06.790 --> 22:12.230] Bluetooth tethering to, uh, to phones so that when, uh, you have flaky signal, like you're in, [22:12.230 --> 22:16.130] uh, an underground tunnel, uh, like on a train or something, uh, the connection kind of [22:16.130 --> 22:20.850] flapping there doesn't impact the communication with the server. Uh, and I've also added some [22:20.850 --> 22:28.890] FDA, an, an FDA certified device. Um, this one here, it uses this receiver, um, to, uh, to dump [22:28.890 --> 22:33.830] the data into the system, but, uh, it broke and so I needed to get a replacement. But the [22:33.830 --> 22:39.630] replacement that they sent, that they sent me does not share, uh, its data in exactly the same [22:39.630 --> 22:44.630] format. So I kind of had to bump around to add compatibility with the newer devices, uh, and [22:44.630 --> 22:49.850] committed all that stuff up. So the systems work without a con, uh, connection to the [22:49.850 --> 22:54.470] internet when one isn't available. And when you get back to civilization, uh, connect, the [22:54.470 --> 22:59.190] connection returns and it dumps all its data into NightScout. So you can, and people [22:59.190 --> 23:04.190] absolutely do, take these remote places to go, uh, hiking and all that kind of stuff. You're [23:04.190 --> 23:09.190] all, you're all good to do it. And as long as it gets time on startup, because, uh, some of you [23:09.190 --> 23:13.810] may know, none of these things have a battery for the real time clock. Uh, so when it starts [23:13.810 --> 23:18.450] up, it starts up with a new date. So as long as it can get NTP time, uh, it doesn't need to be [23:18.450 --> 23:24.530] connected, uh, continuously. And even if it can't get NTP time, say when you accidentally turn [23:24.530 --> 23:28.770] it off, when you're on an airplane, you can SSH into your artificial pancreas and tell it what [23:28.770 --> 23:35.230] time it is, uh, on the command line. So here are some images of the, uh, of these a little more [23:35.230 --> 23:40.850] close up. Um, this is a 26 amp hour battery. Uh, this is the receiver that I told you about. Uh, [23:40.850 --> 23:45.110] this is, this is an antenna that you could get from the manufacturer so that it would [23:45.110 --> 23:49.430] communicate with us, with a web service that they run. And the web service would talk to this [23:49.430 --> 23:58.310] thing through, I swear to God, JNI and Java. Uh, uh, and it's, it's something that I still to [23:58.310 --> 24:03.490] this day don't know whether to, to, uh, uh, attribute to malice or incompetence. After one foot [24:03.490 --> 24:08.790] or two feet away, this thing doesn't work. These things made by randoms on the internet work [24:08.790 --> 24:16.210] like 10 feet away. I don't, I don't understand it. Uh, and this is a Raspberry Pi 2. And [24:16.210 --> 24:20.510] something that I, I actually enjoyed doing, uh, in addition to all the straps that are inside so [24:20.510 --> 24:28.210] that things don't bump around, uh, I, uh, on this side, I got these female, uh, female to male, uh, [24:28.210 --> 24:33.270] short USB cables to plug into the dual charging ports of the battery. And instead of digging that [24:33.270 --> 24:37.330] battery out at the end of every day and plugging stuff in, you just plug the, the bag into that. [24:37.330 --> 24:41.550] And I thought that was a nice touch. That was very convenient. Uh, so this is what, uh, what [24:41.550 --> 24:47.330] these systems look like. Uh, this one, um, this one here, that's this one, is, uh, is an [24:47.330 --> 24:53.950] Intel Edison with the board under it and it does USB on the go. So you, uh, connect this onto [24:53.950 --> 24:59.430] that and it's still kind of bulky. And also you do need a USB battery because you have to feed [24:59.430 --> 25:04.150] five volts to, uh, to the USB on the, on the go device. So even though it has a lithium polymer [25:04.150 --> 25:09.810] battery, uh, it's not enough if you want to connect to, uh, the receiver. But this one, which [25:09.810 --> 25:17.090] is, uh, which is in here, this is a, uh, a Raspberry Pi zero with the board on top and it's a [25:17.090 --> 25:22.450] lithium battery only because it's pulling, uh, the blood glucose meters, uh, um, measurements [25:22.450 --> 25:27.390] directly off the Bluetooth transmitter. Uh, and I added a, a kill switch and, and the nice thing [25:27.390 --> 25:32.370] about this is it has a screen. So even if you don't have night scout or access to any of that [25:32.370 --> 25:38.510] stuff, you're not guessing, uh, to see sort of what the, what the decision loop is doing. And [25:38.510 --> 25:42.490] the last thing which, uh, which I characterize is the difference between having your [25:42.490 --> 25:47.170] speedometer in your glove compartment or your blood sugar in your pocket. Uh, this is a Fitbit [25:47.170 --> 25:51.890] with a, with what's called the glance face and it shows you every, really everything that you [25:51.890 --> 25:56.870] need to know. It shows how much insulin is active, uh, what carbs are left to be digested, [25:56.870 --> 26:00.890] where your number is now, and a little graph to show where it has been, uh, and what the [26:00.890 --> 26:07.070] change, that's that zero MGDL, uh, was from the, uh, the prior reading. Now I've mentioned [26:07.070 --> 26:12.210] that all of this stuff is out of warranty, but after a breakthrough of literally years in [26:12.210 --> 26:18.190] development, uh, this is called the, the Omnipod. Uh, it is manufactured today. It is, uh, [26:18.190 --> 26:23.370] it's a tubeless insulin pump. So it sticks to your body. Uh, somebody figured out how to [26:23.370 --> 26:29.670] control it. It, uh, it works in the 425 megahertz band. And so what people are doing now [26:29.670 --> 26:36.110] is compiling this, uh, this middle screen here. Uh, it's an iPhone app called loop and it [26:36.110 --> 26:41.150] sends a Bluetooth via Bluetooth commands to this relay thing. It's called a Riley link, which [26:41.150 --> 26:46.250] then spits out the 425 megahertz commands to this thing. So it's everything that I've [26:46.250 --> 26:52.670] described with warrantied hardware, which is nuts. Uh, I cannot tell you, uh, the, the [26:52.670 --> 26:57.190] Herculean effort it took to figure this thing out. Um, there's proprietary crypto in there. [26:57.190 --> 27:02.970] There's a, it, it was nuts. Um, so those people I hope feel very proud. So, uh, I promised you a [27:02.970 --> 27:11.090] live demo and really the entire time has been the live demo. Um, so these are, uh, these are [27:11.090 --> 27:18.930] live logs from what's going on with OpenAPS right now. So this one, if you notice here, it's [27:18.930 --> 27:24.510] taking several, uh, several different ways to predict what my blood sugar may do based on [27:24.510 --> 27:31.950] various factors. Uh, let's see, this is towards the tail end of the log. Uh, up at the top, it [27:31.950 --> 27:36.910] has decided that it is going to change that background insulin, but it's not going to dose, [27:36.910 --> 27:42.170] uh, more, uh, any more insulin, uh, with what's called a bolus. That's when it, uh, you're giving [27:42.170 --> 27:47.050] yourself more than that background insulin. And on the right, this is a log from the [27:47.050 --> 27:52.870] Bluetooth, uh, receiver. It's, uh, the project is called XstripJS. Uh, and that is live [27:52.870 --> 27:57.910] communication, uh, every five minutes with the device whenever it wakes up. And, uh, oh, so [27:57.910 --> 28:02.610] this is the beginning of the loop. What it's doing right now is making, uh, prechecks to make [28:02.610 --> 28:07.990] sure it can communicate with, uh, with the device. It's seeing what has changed over the last, uh, [28:07.990 --> 28:12.890] the last time that the loop ran. And then it's checking to make sure the, the time is correct. [28:12.890 --> 28:18.110] And then it's going to refresh what it, uh, what it knows about the system. And that kinda, that [28:18.110 --> 28:22.430] kinda takes a minute. So, uh, I was really hoping that we were gonna catch a new number on the [28:22.430 --> 28:31.710] other side so you could see that log, uh, go crazy. But, uh, such is not that log. Uh, and the [28:31.710 --> 28:37.970] other thing I wanted to show you was NightScout. So, uh, where do we start? So up over, uh, where [28:37.970 --> 28:43.810] you see 109, that is my blood sugar right now. It's up five points. The amount of insulin on [28:43.810 --> 28:48.930] board is actually negative 0.4. Uh, and I'll explain the reason for that in a minute. The [28:48.930 --> 28:54.930] basal is set right at about 1.0 units per minute. And you can see that, uh, that drop down [28:54.930 --> 28:59.610] icicle graph. And I haven't really been eating today, so there are no carbs on board. Uh, it [28:59.610 --> 29:04.650] shows that the pump has 78 units in it. Uh, the battery is 1.26. Uh, the one thing I'll say [29:04.650 --> 29:08.430] about the battery is that normally you get about two weeks with the battery. You get about [29:08.430 --> 29:12.370] three days when you're running this thing. Uh, which is fine. It's a triple A battery. It [29:12.370 --> 29:17.230] doesn't matter. Um, this right here shows that I, I did a finger prick and this is the [29:17.230 --> 29:23.090] trend graph of what my blood sugar has been doing. And the, uh, uh, purple lines right [29:23.090 --> 29:28.430] there, those are the predictions about what it is going to do. Uh, and here you can see [29:28.430 --> 29:37.070] I've been, uh, on a Vegas diet, uh, kind of spikes. Um, but yeah, I think I got, oh, and, uh, [29:37.070 --> 29:47.240] let's see, you can look at more. Uh, oh, this is, uh, uh, bolus right here. So I ate 45 carbs [29:47.240 --> 29:51.400] and only took one unit. Uh, if any of you in the audience are familiar with that, that's [29:51.400 --> 29:57.640] going to sound like a real underdose. And it was because then over here, open APS kicked [29:57.640 --> 30:02.180] in and did the rest. So it spiked a little bit, um, but then it came back down pretty [30:02.180 --> 30:07.920] rapidly and landed, uh, without, without too much, uh, without too much trouble right where [30:07.920 --> 30:20.770] I wanted it to be. I think I just saw the log tick. Yeah. So that's it, uh, communicating [30:20.770 --> 30:25.550] with, uh, with open APS and with the, uh, with the night and with the night scout server [30:25.550 --> 30:34.970] there, um, to register a new blood, uh, blood measurement. All right. Live demo. My [30:34.970 --> 30:42.370] internet works. That was great. So let's talk results. Two graphs up at the top in 2016, uh, [30:42.370 --> 30:48.070] right. I want to say a three month period starting in April. You can see that, uh, for 69% [30:48.070 --> 30:53.090] of the time I was in range and about 39, uh, 30% of the time I was high and I didn't have any [30:53.090 --> 30:58.790] lows. And there's a reason for that. Uh, after a couple of very scary moments, uh, in [30:58.790 --> 31:04.190] consecutive order, uh, I stopped really taking care of myself in terms of how high my blood [31:04.190 --> 31:09.610] sugar got. And you can see that here where it says the average of the normal is one 50 and the [31:09.610 --> 31:17.450] average of the high is about 200. Uh, that's not great. So, uh, from last week and then three [31:17.450 --> 31:24.470] months prior is the lower graph and that's 89% of in range time, 3% of lows. But if you look at [31:24.470 --> 31:28.290] the average and the median, those lows aren't that serious when you have something that is, [31:28.290 --> 31:32.670] uh, micromanaging, uh, everything that it does every five minutes and a little bit of highs [31:32.670 --> 31:38.770] because you're diabetic, you're never going to solve that. And this is just another way to [31:38.770 --> 31:43.790] visualize the same thing per hour of the day. Uh, if you notice up at the top, it's largely [31:43.790 --> 31:52.710] between one 50 and 200 and down at the bottom, it's largely between 100 and one 50. Uh, and [31:52.710 --> 31:59.770] now let's look at a few raw results. Uh, there was no A1C estimate, uh, before 2016 because [31:59.770 --> 32:04.790] there was no way to do that. Uh, so, uh, a couple of things that are important. This was [32:04.790 --> 32:10.770] diagnosis. Uh, I mentioned that six is a good place for a diabetic person to be and that ain't [32:10.770 --> 32:16.470] six. Uh, so that was a hospital visit, uh, and a surprise. Uh, but I quickly got it under [32:16.470 --> 32:22.330] control, uh, because, uh, I am also a control freak. And, uh, and right about here was just [32:22.330 --> 32:27.330] before those periods of, uh, let's say noncompliance, uh, with keeping your, your [32:27.330 --> 32:33.310] numbers down. Uh, and that was, uh, that was due to something that happened at an IKEA and [32:33.310 --> 32:38.610] very helpfully, uh, I'm sarcastic, this was the most unhelpful employee I've ever met, uh, at, [32:38.610 --> 32:43.890] uh, at MGM, uh, at a DEF CON. Uh, not MGM, at a DEF CON. It was Mandalay at a black hat. [32:43.890 --> 32:50.070] Yep. Uh, yeah, simple instructions were very difficult for that person. Um, now here, this [32:50.070 --> 32:56.430] is, uh, if I started OpenAPS in April of 2016, uh, that's the difference between, uh, the one [32:56.430 --> 33:01.870] right before it, uh, that's a, that's, that's point six. And that was only at night and doing [33:01.870 --> 33:06.810] very little work on my part because OpenAPS was taking care of all of that. So, as soon as I [33:06.810 --> 33:11.890] got the nights under control, I got an immediate benefit, uh, for, on my A1C. And then [33:11.890 --> 33:17.470] continuing forward, uh, now it's down to about six three. And again, I don't do very much work [33:17.470 --> 33:23.030] anymore. So, that's my personal change. Let's talk industry change. Previously, these were [33:23.030 --> 33:29.330] monolithic systems. One device, one insulin pump, one sensor, none of it's interoperable. Uh, and [33:29.330 --> 33:34.730] this thing, uh, it's as expensive as a regular insulin pump, uh, but it doesn't do, uh, it [33:34.730 --> 33:39.970] doesn't do anything, uh, really other than freak out. Uh, in fact, 40% of people leave this [33:39.970 --> 33:44.670] system, which is supposed to have a very tiny bit of automation, uh, because they can't keep [33:44.670 --> 33:49.650] it, uh, they can't keep it working enough, um, to stay in that level of automation. And then it [33:49.650 --> 33:53.690] pumps them out to manual mode and then what's the, you know, what's, why do they even have it? [33:53.690 --> 33:58.470] Uh, it's not tunable and this is a very person specific disease and it doesn't handle meals for [33:58.470 --> 34:04.030] you, which is probably a good 90% of why I love OpenAPS because I'm probably not gonna [34:04.030 --> 34:11.530] overdose myself. Uh, so, now the FDA, what they are doing is, uh, is certifying devices [34:11.530 --> 34:16.890] separately and making sure that they are interoperable. So, you have discreet CGM pumps, [34:16.890 --> 34:22.550] uh, uh, CGM, uh, devices, pumps and algorithms, they get certified themselves and then [34:22.550 --> 34:28.050] manufacturers get to make business decisions about which things interoperate. So, uh, the ICGM [34:28.050 --> 34:34.070] is the first one, uh, there are alternate controller enabled, that's an insulin pump, which [34:34.070 --> 34:39.650] allows an outside entity, uh, to control the insulin pump. The, the smarts don't have to be [34:39.650 --> 34:43.950] integrated into the pump itself. Uh, and finally the eye controller, that's the algorithm, that [34:43.950 --> 34:50.390] is what OpenAPS is, uh, but there are no certified products yet, uh, we think eventually, uh, [34:50.390 --> 34:55.630] very soon there will be. Uh, and plug and play is important, FDA isn't going to get the [34:55.630 --> 35:00.650] business of dictating which products, uh, work with, uh, with which other products so long as [35:00.650 --> 35:04.610] the qualifications are met. And so none of this would be possible without the people behind [35:04.610 --> 35:09.750] the hashtag, we're not waiting. Uh, it was a lot of people that were really tired of 90's [35:09.750 --> 35:15.150] garbage tech not handling this, uh, when really that's the goal of technology is to make your [35:15.150 --> 35:19.550] life better. We've all been told that there will be a cure in five years, uh, these people [35:19.550 --> 35:24.790] were tired of being told that. Uh, one thing that I want to emphasize, this is a group of [35:24.790 --> 35:30.110] non-doctors, um, these folks who started this changed an entire field of medicine, uh, and [35:30.110 --> 35:35.650] they are not themselves doctors, and I think that's, uh, a huge, uh, a huge good thing. Yeah. [35:35.650 --> 35:45.780] Yeah, thank you. So let's talk about exponential growth. Everyone needs insulin, this is a [35:45.780 --> 35:50.800] biological fact. And lack of the hormone is not a question of lifestyles or choices, uh, or [35:50.800 --> 35:55.220] what this person could have done better. Uh, it is a lightning strike that could happen to any [35:55.220 --> 36:02.500] of you, uh, really at any moment. And people will die, it is like water and like air. So when [36:02.500 --> 36:07.300] predatory prices are levied, uh, are levied on this drug, it is the financial form of your [36:07.300 --> 36:13.060] money or your life, kid. Uh, it's not great. And it's not like, oh, people die of this. Uh, people [36:13.060 --> 36:21.240] are dying now and it's 2019. Uh, so just, uh, uh, in Ju- just in June in California, three [36:21.240 --> 36:26.780] people under the age of, uh, of 25 died because they did not have access to affordable insulin. [36:26.780 --> 36:33.420] This guy died like three days ago because he changed insulin to save for his wedding. Uh, the [36:33.420 --> 36:40.000] people that, that use the $25, uh, Walmart insulin as a, uh, something to point to, to say that [36:40.000 --> 36:45.880] insulin is, is cheap and available. That's what this guy switched to. I mean, I'm not going to [36:45.880 --> 36:50.780] use dog insulin because it's cheaper and it's insulin. Uh, that's basically what this guy had [36:50.780 --> 36:57.440] to do. And, uh, and yeah. So I have a graph here of several things that are indexed to overall [36:57.440 --> 37:01.500] inflation. That's that black line there. And we're doing great with some things. Uh, so like [37:01.500 --> 37:06.560] TVs, that's that bottom line. Like there's never been a good time, a better time, uh, to buy a TV. [37:06.560 --> 37:11.100] And then there are things, uh, that are below the line like cell phone service and new cars. Uh, food [37:11.100 --> 37:15.780] and beverage and housing is right about at the middle line there. Wages are a little higher, but [37:15.780 --> 37:20.880] then other essentials like, uh, like college tuition and childcare and medical care services, [37:20.880 --> 37:26.580] they're up way, way high. Uh, and what I don't show you is the completion of that gold bar [37:26.580 --> 37:36.160] because that gold bar is 100, uh, 1,175% increase for the same formulation of the same insulin by [37:36.160 --> 37:46.360] the same brand, uh, 20 years later. So that's some shit. Uh, I, uh, I kind of subscribe, uh, [37:46.360 --> 37:50.580] subscribe to this, uh, this Senator's feeling on this. Uh, Americans, Americans are getting [37:50.580 --> 37:55.240] price gouged because our government lets it happen. Uh, other governments don't do that to [37:55.240 --> 38:00.700] their citizens. Uh, this is not meant to be a, a political statement or anything like that. Uh, but [38:00.700 --> 38:06.400] it's pretty evident that the, uh, the medical, uh, paradigm in the United States is kind of [38:06.400 --> 38:13.180] busted. Uh, and this is one, uh, one symptom of that. So I want to take the time to acknowledge, [38:13.180 --> 38:19.040] uh, the many people that contribute to these projects. Uh, and I am, uh, I'm not getting, uh, [38:19.040 --> 38:23.980] the hundreds, the other hundreds of people that contribute to this. Um, so Ben West, like I said, [38:23.980 --> 38:30.820] he's one of the, uh, one of the key players here. Uh, Dana and Scott, they're, they're, um, kind [38:30.820 --> 38:36.220] of behind one of the ideas that, that, uh, that produced Night Scout. Scott Hanselman, uh, he's, [38:36.220 --> 38:40.960] uh, again, that's the developer evangelist at Microsoft. He's got a huge megaphone. Uh, Xstrip [38:40.960 --> 38:45.440] JS, those guys, uh, are the ones that enable you to get the, uh, the Bluetooth reading directly [38:45.440 --> 38:50.760] off the device. Uh, Glance, that's its website. It's, uh, it's really cool and it's very handy. [38:50.760 --> 38:54.940] Not at Defcon when you have all your radios off though, so that kind of sucks. Um, and then [38:54.940 --> 38:59.600] there's the Night Scout project. And I figured since I cited a formal, uh, medical paper, I would [38:59.600 --> 39:04.660] cite this one formally right here. Um, that is the, uh, uh, that graph at the first one that [39:04.660 --> 39:11.580] showed 65%, uh, of, uh, of good results and, uh, or I'm sorry, of time within range. And [39:11.580 --> 39:15.880] finally, I want to thank my doctor. Um, there are doctors that bounce their patients when they [39:15.880 --> 39:21.860] find that they're doing this. Uh, this one is amazing. Uh, he's supportive of it. He's had me [39:21.860 --> 39:28.100] show his students, uh, his medical students how it works and all about it. Uh, and I, man, he's [39:28.100 --> 39:33.960] getting up there. I fear the phone call that he's retiring, um, like weekly. Um, but yeah, he's [39:33.960 --> 39:40.280] amazing. Uh, he is, uh, uh, he's the chief of, uh, of endocrinology at a hospital and he is [39:40.280 --> 39:45.960] wonderful. So, uh, talked a little about who I am, uh, and intro to the disease so we're all on [39:45.960 --> 39:50.360] the same page. Uh, hardware and software and we talked about safety, uh, talked about [39:50.360 --> 39:54.500] iterative improvements, you know, over the course of the year, uh, uh, few years and people [39:54.500 --> 39:58.460] are welcome to come up and look at these, uh, at the end. Uh, talked about results, both [39:58.460 --> 40:03.680] personally and industrial, uh, and we talked about exponential growth. And so finally, I'd [40:03.680 --> 40:06.780] like to take any questions if I have time. Yes? [40:13.490 --> 40:17.850] So the question was, what is the difference between the insulin, uh, that I mentioned at [40:17.850 --> 40:23.470] Walmart and, uh, the one that he was using? And the, the difference really is, uh, how [40:23.470 --> 40:29.110] precise it works on your body chemistry. Uh, the Walmart insulin does not give you the kind [40:29.110 --> 40:34.370] of control that you can achieve with, uh, with other products. Uh, it also, uh, it takes [40:34.370 --> 40:39.030] time for your body to adapt to a different formulation of insulin. Uh, and so that is, [40:39.030 --> 40:43.250] that all of those things probably contributed to his death. Yes, sir? [40:43.250 --> 40:48.310] Um, would you say just a few more words about how much of the processing is happening locally [40:48.310 --> 40:53.590] and how much is happening on your server? So for the purposes of open APS, none of it [40:53.590 --> 40:57.210] happens on the internet or on the server. Uh, the server serves as kind of a dumping [40:57.210 --> 41:02.650] ground for data, uh, where, uh, where it houses all that stuff. Um, so everything that, that [41:02.650 --> 41:06.470] this needs to know, as long as you tell it what time it is when it starts up, is actually [41:06.470 --> 41:17.810] right here. Sorry, actually right here. So theoretically, if you had good dense data [41:17.810 --> 41:25.870] storage, you wouldn't need your server anymore. I don't see why that is not true. Yeah. Yeah. Yes? [41:25.870 --> 41:32.630] Um, one question, if you could have one other sensor or one other kind of input, um, that you [41:32.650 --> 41:37.590] believe would help you control the situation even better, what would that be and why? [41:37.890 --> 41:43.490] No one's ever asked me that. Uh, I would have something that was telling me the speed at [41:43.490 --> 41:48.990] which my metabolism was operating, uh, because right now, uh, over several days of testing, [41:48.990 --> 41:55.430] uh, with, with certain, um, pre, uh, measured amounts of carbohydrates, I know, uh, you [41:55.430 --> 42:01.130] know, from, from some evidence how my metabolism works, but that's pretty general and every [42:01.130 --> 42:05.410] food is different. Um, so yeah, I would have something that, that did that and kind of [42:05.410 --> 42:09.090] informed this so that it could then, it could then say, oh, he's digesting things really [42:09.090 --> 42:16.970] fast, just dump more insulin in. Yeah. Uh, right here? Oh wait, um, sorry, over there first. [42:16.970 --> 42:17.810] One, one. [42:18.050 --> 42:23.270] Um, have you ever had issues, uh, traveling or going through secure locations, having them [42:23.270 --> 42:28.390] believe, hey, this is a medical device, given that it's a Raspberry Pi and, and it's got like [42:28.570 --> 42:36.150] a, a battery tape to it with wires coming out of it. Yeah. Um, so, um, I'm going to, the short [42:36.150 --> 42:41.510] answer is no. And the long answer is Dana, uh, who I mentioned earlier makes it her mission. [42:41.510 --> 42:46.890] She does a lot of traveling and basically every time she gets on a plane, she like posts a [42:46.890 --> 42:51.710] picture of it after airport security and is like, no one even bat an eye. And, uh, even [42:51.710 --> 42:56.470] internationally that's been the case. Um, so I imagine if I had to go to secure locations, [42:56.470 --> 43:01.690] which I suppose probably means no random electronics, right? Uh, this probably wouldn't be [43:01.690 --> 43:08.030] allowed. Um, but, uh, uh, but yeah, in just in terms of like building security, uh, no, no [43:08.030 --> 43:12.410] one's ever, uh, oh, well occasionally someone will ask about it and I say, oh, it's an [43:12.410 --> 43:17.310] artificial pancreas and they go, all right. And just kind of hand it back to me. So thank you. [43:17.310 --> 43:24.250] Yep. Thank you. And then you, sir. Last question. All right. Um, I guess this might be [43:24.250 --> 43:31.070] related to the metabolic rate, but, um, how important is the amount of carbs that you put in [43:31.070 --> 43:35.410] whenever you eat them? For example, after exercise, you'll have a different glycemic [43:35.410 --> 43:42.050] response. Sure. So what I, what I didn't mention, and I'm actually doing this now, uh, you [43:42.050 --> 43:48.410] can, uh, you give this thing, um, a target to hit a normal target to hit, but you can override [43:48.410 --> 43:55.610] that temporarily. So what this is saying is until about five, uh, no, uh, all my clocks are [43:55.610 --> 44:00.070] off. Okay. At least until about five local time, this is going to set a temporary target of [44:00.070 --> 44:05.430] 120. And so what that does is it say, okay, I'm going to go easy on the insulin. So if I know [44:05.430 --> 44:10.270] I'm going to exercise, I'm going to want it to go easier on me. Uh, so I set one of these [44:10.270 --> 44:17.990] temporary targets, uh, and then it abides by that. So I think I had, yeah, nope. Okay. I'm [44:17.990 --> 44:21.110] sorry. Um, we can talk later. Uh, but yeah, thanks everybody.