WEBVTT

00:00.000 --> 00:03.160
And without further ado, let me introduce Jay Legorio.

00:03.160 --> 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.

00:11.820 --> 00:16.000
He got his Bachelor of Science in Computer Science from UMBC, Go Retrievers.

00:16.180 --> 00:20.400
In 2008, a Master's in Engineering from the Naval Postgraduate School.

00:20.400 --> 00:21.260
Yeah, that's awesome.

00:21.260 --> 00:22.560
In 2015.

00:22.560 --> 00:25.870
So, without further ado, Jay Legorio.

00:31.570 --> 00:32.650
All right.

00:32.650 --> 00:33.530
Hi, DEF CON.

00:33.530 --> 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.

00:40.330 --> 00:43.790
So, I'll talk a little bit about who I am, not as much because we've already gone over that.

00:43.790 --> 00:47.290
Uh, an introduction to diabetes, let's all get on the same page.

00:47.350 --> 00:53.230
Uh, hardware, software and safety and the solutions, uh, that we will engineer to achieve all of those.

00:53.310 --> 00:57.070
Uh, iterative improvements, uh, developed over several years.

00:57.110 --> 01:01.350
Uh, a live demo, uh, which is starting, uh, starting at least now.

01:01.350 --> 01:02.850
Uh, we'll see the results at the end.

01:02.850 --> 01:07.270
Uh, something I like to call exponential growth and, uh, and then I will take questions.

01:07.990 --> 01:09.910
Uh, so we talked a little about who I am.

01:09.910 --> 01:14.130
Uh, I also have some, uh, some various SANS certs, uh, and I'm a developer.

01:14.130 --> 01:18.050
I'm an IT consultant and I'm a private investigator licensed out of DC.

01:18.390 --> 01:22.550
And, uh, and as a developer, I've always solved my, uh, my problems with software.

01:22.550 --> 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.

01:28.950 --> 01:30.570
And that sounded ridiculous.

01:30.570 --> 01:33.390
So, uh, I wrote a web app, uh, and it was great.

01:33.390 --> 01:34.630
And I thought, oh, look at that.

01:34.630 --> 01:35.150
I'm unique.

01:35.150 --> 01:38.230
It's the intersection of this thing, uh, and computer science.

01:38.230 --> 01:43.830
And it turns out, uh, you are unique just like everybody else, uh, because this is Scott Hanselman.

01:43.830 --> 01:45.790
He's a developer evangelist at Microsoft.

01:46.150 --> 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.

01:51.670 --> 01:53.710
So I'm no, I'm not unique.

01:55.070 --> 01:56.810
So let's talk about this disease.

01:56.810 --> 01:58.290
We'll all get on the same page.

01:58.530 --> 02:01.610
Uh, diabetes affects nearly 200 million people worldwide.

02:01.610 --> 02:02.950
And there are two types of them.

02:03.070 --> 02:05.990
The one which we'll talk about today is genetic.

02:05.990 --> 02:10.270
It's type 1 and it's a deficiency in the pancreas to properly produce insulin.

02:10.270 --> 02:11.910
So you have to get it somewhere else.

02:11.910 --> 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.

02:17.690 --> 02:19.570
We're not talking about that today.

02:19.570 --> 02:24.890
Uh, despite having a similar name, uh, to type 1, it is actually very different.

02:24.890 --> 02:27.650
Um, so again, we're not talking about type 2 diabetes.

02:27.930 --> 02:31.890
Uh, and all of us with this disease have heard the meme, there will be a cure in five years.

02:31.890 --> 02:37.810
And certainly 10 years ago at a, at a hospital bedside, that is what the doctor told me, uh, nearly immediately.

02:37.850 --> 02:42.050
And five years later and five years after that, there is still no cure.

02:42.570 --> 02:47.970
So insulin is a hormone required to sustain human life and people with it must get it from somewhere else.

02:47.970 --> 02:49.090
And there are two types.

02:49.090 --> 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.

02:57.170 --> 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.

03:04.710 --> 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.

03:18.950 --> 03:20.550
Like I said, it's all very easy.

03:20.550 --> 03:26.050
Uh, and you straddle this tenuous line, uh, between going too far high and too far low.

03:26.050 --> 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.

03:32.970 --> 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.

03:45.190 --> 03:50.870
Uh, in addition, it can cause strokes, seizures, organ failure, brain damage, and death over a sustained period.

03:50.870 --> 03:54.250
But, uh, you think, okay, well, we'll just go low.

03:54.250 --> 03:55.490
Well, low is even worse.

03:55.490 --> 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.

04:08.030 --> 04:11.530
Uh, and that is when you will, you, uh, are much more likely to die.

04:11.530 --> 04:16.370
This is the very acute way as opposed to the long-term way that people die of this disease.

04:16.730 --> 04:21.990
Uh, and some people are hypo unaware, so they don't even feel those symptoms when they're crashing down.

04:21.990 --> 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.

04:28.530 --> 04:31.250
And it's a difficult balance to maintain consistently.

04:31.450 --> 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.

04:40.530 --> 04:42.670
We can't measure, uh, sickness.

04:42.670 --> 04:44.650
I don't have four six today.

04:44.650 --> 04:46.450
Uh, you can't measure adrenaline.

04:46.450 --> 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.

04:51.290 --> 04:54.690
Uh, you also can't really measure exercise.

04:54.690 --> 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.

05:02.310 --> 05:06.870
Uh, you also don't know when the carbohydrates that you're eating are going to hit your system.

05:06.870 --> 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.

05:16.170 --> 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.

05:29.450 --> 05:36.050
Your insulin sensitivity changes over time, over a period of weeks, and is sometimes different throughout the day.

05:36.050 --> 05:38.870
Uh, and finally, you have to maintain safety at night.

05:38.870 --> 05:41.270
You don't get to sleep through this.

05:41.270 --> 05:44.230
Uh, it's something that you pay attention to 24 seven.

05:44.550 --> 05:49.090
So this is living with it, but how do we measure how well we're doing?

05:49.450 --> 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.

05:57.730 --> 06:03.670
Uh, in aggregate, it's a good approximation of how, uh, well you've been maintaining control of your blood sugar.

06:03.670 --> 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.

06:10.810 --> 06:13.730
Normal people, uh, should be about five to six.

06:13.730 --> 06:16.890
If you're diabetic, it's probably higher than six.

06:16.890 --> 06:22.690
And after seven, it, uh, that's when it starts to indicate that you're not managing your care very well.

06:23.430 --> 06:26.370
Uh, your blood sugar should not fluctuate wildly during sleep.

06:26.370 --> 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.

06:34.130 --> 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.

06:42.970 --> 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.

06:50.570 --> 06:54.690
So we replace injections, multiple injections, with insulin pumps.

06:54.690 --> 06:56.630
Uh, I mentioned there were two types of insulin.

06:56.630 --> 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.

07:11.770 --> 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.

07:16.910 --> 07:21.550
You put it in one day and maybe about three days later, uh, you change it all up.

07:22.470 --> 07:29.810
Uh, we also have a continuous glucose monitor, and this takes the place, uh, or is augmented by, uh, finger sticks.

07:29.810 --> 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.

07:36.890 --> 07:40.810
Uh, the sensors, uh, they vary, uh, de, uh, depending on the model.

07:40.810 --> 07:45.010
Uh, they can stay in for seven days, 10 days, 14 days, it all depends.

07:45.010 --> 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.

07:54.510 --> 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.

08:02.390 --> 08:05.250
So, uh, let's talk about some tips.

08:05.290 --> 08:08.730
You don't get to have bedtime snacks because you don't know what it's going to do.

08:09.130 --> 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.

08:22.090 --> 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.

08:28.790 --> 08:30.350
And this is just how it works.

08:30.350 --> 08:33.010
This is true mainly for everybody.

08:33.430 --> 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.

08:37.630 --> 08:42.030
You're always going to work to fight your numbers down, uh, or bring them up throughout the day.

08:42.230 --> 08:47.490
And finally, I want to leave the intro with a, with, uh, a graph of how hard this all is.

08:47.490 --> 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.

08:54.290 --> 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.

09:06.010 --> 09:11.830
How hard is it when we're in an ICU and doctors can't even keep this thing in line?

09:11.830 --> 09:13.890
So that's what the rest of us live with.

09:14.650 --> 09:16.610
Uh, so now we'll talk about hardware.

09:16.610 --> 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,

09:31.210 --> 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.

09:38.710 --> 09:42.370
And this requires us to, to overcome several technical challenges.

09:42.470 --> 09:44.710
We need something small and low power.

09:44.770 --> 09:48.570
Uh, we need a visualization solution because this thing needs to be monitored.

09:49.270 --> 09:53.770
And, uh, we need to collect blood sugar readings from an FDA-certified CGM system.

09:53.770 --> 09:57.990
And finally, we need to query and control an FDA-certified insulin pump.

09:57.990 --> 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.

10:07.650 --> 10:12.350
Uh, we're, many of us are developers, we understand garbage in, garbage out.

10:12.350 --> 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.

10:17.910 --> 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.

10:23.530 --> 10:26.230
You need something that is absolutely reliable.

10:27.150 --> 10:29.530
So, nowadays, this is actually really easy.

10:29.530 --> 10:31.510
I think it's easier than it was 10 years ago.

10:31.510 --> 10:33.890
Uh, the Raspberry Pi and the Edison are ultra-portable.

10:33.890 --> 10:37.470
You can get them anywhere, although the, uh, the Edison is discontinued now.

10:37.470 --> 10:39.210
Uh, and it's great to run our code on.

10:39.210 --> 10:40.990
We can, we can get these anywhere.

10:41.230 --> 10:45.590
Uh, they each have built-in Bluetooth and Wi-Fi, so they're eminently net, uh, networkable.

10:45.590 --> 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.

10:52.670 --> 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.

11:01.270 --> 11:03.390
And the solution we're talking about today does.

11:03.390 --> 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.

11:09.210 --> 11:12.430
So, you can, you can download your data directly from that.

11:12.810 --> 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.

11:20.170 --> 11:21.370
It's in the ISM band.

11:21.370 --> 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.

11:29.430 --> 11:33.430
Now, they're marketed as random 900 megahertz radios that anybody can do anything with.

11:33.430 --> 11:34.230
And that's true.

11:34.230 --> 11:38.750
You can, but this was made for this purpose, uh, and we really appreciate that.

11:38.750 --> 11:41.830
Now, I mentioned that the, uh, the protocol was proprietary.

11:41.830 --> 11:46.430
It was reverse engineered over a period of years, uh, by someone known, known as Ben West.

11:46.430 --> 11:49.290
Uh, none of this would be possible without his work.

11:49.290 --> 11:51.870
Uh, so it's, uh, uh, we really appreciate it.

11:52.290 --> 11:58.490
Now, older insulin pumps have wireless connectivity and the manufacturers allowed you to remotely control them.

11:58.490 --> 12:01.910
Uh, not from very far away, but you could still remotely control them.

12:02.130 --> 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.

12:13.010 --> 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.

12:20.130 --> 12:22.470
You have to find out of warranty pumps.

12:22.470 --> 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.

12:28.490 --> 12:32.010
So older devices, uh, are already hard to acquire.

12:32.010 --> 12:37.050
You have to scour eBay, Craigslist, Mercari, uh, this website called MedWow.

12:37.050 --> 12:45.110
Uh, and because no one can resist the chance to take advantage of an already disadvantaged community, there was price gouging.

12:45.110 --> 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.

12:51.450 --> 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.

12:59.870 --> 13:02.010
So that was, uh, that was really fun.

13:02.790 --> 13:07.610
So let's talk about software and safety because safety is a pretty critical factor here.

13:08.070 --> 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.

13:15.750 --> 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,

13:30.470 --> 13:33.970
uh, lack of context for how you've been, you've been taking care of yourself.

13:33.970 --> 13:38.490
Now everyone builds their own NightScout instance and it fits well on the free tiers.

13:38.490 --> 13:41.430
Uh, I have a guide out where you can install it on private infrastructure.

13:41.430 --> 13:44.390
If you choose to do that, I don't really like having stuff in the cloud.

13:44.390 --> 13:46.790
So this works, uh, on a server in my basement.

13:46.810 --> 13:52.070
And NightScout is great for a point in time representation, representation of how things are now.

13:52.070 --> 13:56.730
And again, you can generate reports to bring to your medical, uh, your medical appointments.

13:57.390 --> 14:04.270
So, the solution that does all of the heavy lifting is called the Open Artificial Pancreas System or OpenAPS.

14:04.290 --> 14:10.250
And it is built on, uh, much the same group of, of, uh, technologies, Node, Python, uh, and Bash.

14:10.250 --> 14:11.510
And it runs on Linux.

14:11.510 --> 14:15.270
Uh, so again, this fits well with our Raspberry Pis and our Intel Edisons.

14:15.270 --> 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.

14:26.830 --> 14:32.350
Now, more than 1,440 people have sort of raised their hand and said, yes, I'm using this.

14:32.350 --> 14:36.270
But we know that there are more people than that, uh, who are using it.

14:36.270 --> 14:41.310
Um, because it, it is, uh, uh, it's not required to get permission or anything like that.

14:41.310 --> 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.

14:50.530 --> 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.

15:01.990 --> 15:07.910
Um, so a person can only be expected to do that equation that we talked about really several times per day.

15:07.910 --> 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.

15:14.310 --> 15:20.090
Uh, but OpenAPS can process that data every five minutes because that's when you get a glucose reading.

15:20.090 --> 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.

15:25.790 --> 15:30.110
And more importantly, it works when you're sleeping, which is awesome.

15:31.750 --> 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.

15:39.190 --> 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.

15:47.950 --> 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.

15:55.410 --> 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.

16:00.070 --> 16:02.830
And I mentioned that your insulin sensitivity varies over time.

16:02.830 --> 16:07.410
So Auto-Tune will tune the algorithm to carbs and insulin over weeks.

16:07.530 --> 16:13.090
Uh, and Auto-Sensitivity will tune the algorithm, uh, to you over, uh, several days.

16:13.090 --> 16:15.510
This is a very person-centric disease.

16:15.510 --> 16:21.930
So you need person-centric, uh, uh, applications here and it gives you advanced warning.

16:22.090 --> 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,

16:35.670 --> 16:36.990
uh, you're going to have a low.

16:36.990 --> 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.

16:47.010 --> 16:48.170
That was really helpful.

16:48.450 --> 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.

16:53.650 --> 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.

17:01.670 --> 17:07.190
Uh, again, you don't get to sleep through this, but OpenAPS takes control of this all night long.

17:07.190 --> 17:12.870
And sleep is one particular area of your life, uh, that improves dramatically almost immediately.

17:12.870 --> 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.

17:21.670 --> 17:23.930
And when I woke up, I was exactly where I wanted to be.

17:23.930 --> 17:26.890
And it was, it was nothing short of incredible.

17:27.470 --> 17:29.010
I was a very tired person.

17:29.070 --> 17:31.110
So a sleeping patient isn't eating.

17:31.110 --> 17:36.290
It's also easier for the, uh, for the system to maintain them within the range that you've defined.

17:36.290 --> 17:41.810
Uh, and good time and range, especially at night, improves your A1C without any work on your part.

17:41.810 --> 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.

17:47.250 --> 17:48.450
You're generally not eating.

17:48.450 --> 17:52.050
So this is the only factor that, uh, uh, that really comes into it.

17:52.050 --> 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.

17:57.330 --> 18:02.010
Uh, this is generally the first thing we hear from people is that the sleep is amazing.

18:02.990 --> 18:06.850
This person changed their sensor and immediately went back to bed.

18:06.850 --> 18:08.430
Uh, and everything just worked.

18:08.430 --> 18:09.850
It just worked and it was great.

18:11.530 --> 18:17.990
So we have been building the airplane while we've been flying it and manufacturers don't really get that luxury.

18:18.570 --> 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.

18:24.830 --> 18:29.090
So there are several checks and double checks before it makes an ins, uh, an insulin decision.

18:29.090 --> 18:31.250
Uh, there are fallback behaviors defined.

18:31.250 --> 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.

18:44.910 --> 18:51.290
And after that 30 minutes, the pump reverts to its, uh, its normal, just background insulin doing things manually.

18:52.130 --> 18:56.830
Uh, and features that have impact on the algorithm are scrutinized heavily by a core team of developers.

18:56.830 --> 19:01.230
And I don't want you to think that means, that means me saying, uh, oh, it's open source.

19:01.230 --> 19:03.170
So obviously there are all eyes on it.

19:03.170 --> 19:05.850
Uh, you know, like we used to say about open SSL.

19:05.870 --> 19:11.050
Uh, but there are, there are people who are, who are dedicated to that one part of the algorithm.

19:11.050 --> 19:13.970
There are no changes that are going to go into that without their say so.

19:15.210 --> 19:18.350
Uh, now commands are delivered, uh, oh, I explained this already.

19:18.350 --> 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.

19:24.930 --> 19:31.410
Uh, and during sleep, the manufacturing provides CGM, which will alarm, uh, it can be used as a fallback.

19:31.410 --> 19:37.050
So let's say, uh, Linux kills the, the open APS process for some reason, who knows why?

19:37.050 --> 19:38.810
Uh, and it stops working.

19:38.810 --> 19:43.470
Well, if I start to go too high or too low while I'm asleep, this thing is independent.

19:43.470 --> 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.

19:49.190 --> 19:52.550
So sleeping just one benefit to the, the patient.

19:52.550 --> 19:56.310
We also discovered something that kind of should have been a little intuitive at the beginning.

19:56.650 --> 20:01.370
So normal routines operate by making drastic changes, uh, and you can't undo them.

20:01.370 --> 20:06.490
You cannot undo, undose insulin and you can't take back the cheeseburger that you just ate.

20:06.690 --> 20:09.090
I guess you can, but that's, that's gross.

20:09.090 --> 20:11.930
Um, actually just didn't think of that until now.

20:11.930 --> 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.

20:18.250 --> 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.

20:27.070 --> 20:29.690
So if you have a sudden rapid rise, you add more insulin.

20:29.690 --> 20:32.290
And if you have a sudden drop, you suspend delivery.

20:32.610 --> 20:34.150
And this is key during meals.

20:34.150 --> 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.

20:41.410 --> 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.

20:52.050 --> 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.

21:01.730 --> 21:04.130
So let's talk about iterative improvements.

21:04.310 --> 21:07.150
Um, I've made several implementations over the last few years.

21:07.150 --> 21:08.210
I'm going to hold these up.

21:08.210 --> 21:09.330
Some of them are large.

21:09.330 --> 21:12.430
They're, they have this big shave kit bag and you had to put it in a backpack.

21:12.490 --> 21:15.450
Uh, some of them are still a little bulky, but much smaller.

21:15.450 --> 21:17.510
And some of them are very, very tiny.

21:18.310 --> 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.

21:22.770 --> 21:24.290
Uh, it doesn't feel obtrusive.

21:24.950 --> 21:30.610
So each iteration and choice of component over the years reduced the size and improved portability and battery life.

21:30.610 --> 21:32.790
And again, we're building the plane while we fly it.

21:32.790 --> 21:36.450
You can make incremental improvements in these things as you go.

21:37.070 --> 21:39.710
So some contributions I've made to these projects.

21:39.750 --> 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.

21:51.150 --> 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.

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: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,

22:15.190 --> 22:19.390
the connection kind of flapping there doesn't impact the communication with the server.

22:19.410 --> 22:23.390
Uh, and I've also added some FDA, an, an FDA certified device.

22:23.390 --> 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.

22:33.470 --> 22:40.190
But the replacement that they sent, that they sent me does not share, uh, its data in exactly the same format.

22:40.190 --> 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.

22:46.630 --> 22:51.530
So the systems work without a con, uh, connection to the internet when one isn't available.

22:51.530 --> 22:57.730
And when you get back to civilization, uh, connect, the connection returns and it dumps all its data into NightScout.

22:57.730 --> 23:04.070
So you can, and people absolutely do, take these remote places to go, uh, hiking and all that kind of stuff.

23:04.070 --> 23:05.390
You're all, you're all good to do it.

23:05.390 --> 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.

23:13.030 --> 23:15.430
Uh, so when it starts up, it starts up with a new date.

23:15.430 --> 23:20.530
So as long as it can get NTP time, uh, it doesn't need to be connected, uh, continuously.

23:20.590 --> 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.

23:31.410 --> 23:36.050
So here are some images of the, uh, of these a little more close up.

23:36.050 --> 23:38.370
Um, this is a 26 amp hour battery.

23:38.370 --> 23:40.610
Uh, this is the receiver that I told you about.

23:40.610 --> 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.

23:47.650 --> 23:53.310
And the web service would talk to this thing through, I swear to God, JNI and Java.

23:54.510 --> 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.

24:02.250 --> 24:06.030
After one foot or two feet away, this thing doesn't work.

24:06.030 --> 24:09.990
These things made by randoms on the internet work like 10 feet away.

24:10.090 --> 24:12.250
I don't, I don't understand it.

24:13.010 --> 24:15.090
Uh, and this is a Raspberry Pi 2.

24:15.870 --> 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.

24:32.330 --> 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.

24:37.330 --> 24:38.370
And I thought that was a nice touch.

24:38.370 --> 24:39.390
That was very convenient.

24:39.850 --> 24:42.590
Uh, so this is what, uh, what these systems look like.

24:42.590 --> 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.

24:51.290 --> 24:55.870
So you, uh, connect this onto that and it's still kind of bulky.

24:55.870 --> 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.

25:02.450 --> 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.

25:08.690 --> 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.

25:24.490 --> 25:29.250
Uh, and I added a, a kill switch and, and the nice thing about this is it has a screen.

25:29.250 --> 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.

25:38.070 --> 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.

25:46.110 --> 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.

25:52.490 --> 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.

26:05.990 --> 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.

26:15.430 --> 26:17.070
Uh, it is manufactured today.

26:17.070 --> 26:20.210
It is, uh, it's a tubeless insulin pump.

26:20.210 --> 26:21.550
So it sticks to your body.

26:21.550 --> 26:24.310
Uh, somebody figured out how to control it.

26:24.310 --> 26:27.810
It, uh, it works in the 425 megahertz band.

26:27.810 --> 26:33.470
And so what people are doing now is compiling this, uh, this middle screen here.

26:33.470 --> 26:39.670
Uh, it's an iPhone app called loop and it sends a Bluetooth via Bluetooth commands to this relay thing.

26:39.670 --> 26:45.090
It's called a Riley link, which then spits out the 425 megahertz commands to this thing.

26:45.090 --> 26:49.790
So it's everything that I've described with warrantied hardware, which is nuts.

26:49.790 --> 26:55.210
Uh, I cannot tell you, uh, the, the Herculean effort it took to figure this thing out.

26:55.210 --> 26:57.190
Um, there's proprietary crypto in there.

26:57.190 --> 26:58.770
There's a, it, it was nuts.

26:58.770 --> 27:01.210
Um, so those people I hope feel very proud.

27:01.210 --> 27:06.750
So, uh, I promised you a live demo and really the entire time has been the live demo.

27:07.150 --> 27:17.070
Um, so these are, uh, these are live logs from what's going on with OpenAPS right now.

27:17.070 --> 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.

27:25.950 --> 27:29.650
Uh, let's see, this is towards the tail end of the log.

27:30.070 --> 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.

27:40.810 --> 27:44.230
That's when it, uh, you're giving yourself more than that background insulin.

27:44.750 --> 27:48.670
And on the right, this is a log from the Bluetooth, uh, receiver.

27:48.670 --> 27:51.230
It's, uh, the project is called XstripJS.

27:51.230 --> 27:56.310
Uh, and that is live communication, uh, every five minutes with the device whenever it wakes up.

27:56.550 --> 27:59.270
And, uh, oh, so this is the beginning of the loop.

27:59.270 --> 28:04.870
What it's doing right now is making, uh, prechecks to make sure it can communicate with, uh, with the device.

28:04.870 --> 28:09.590
It's seeing what has changed over the last, uh, the last time that the loop ran.

28:09.590 --> 28:12.890
And then it's checking to make sure the, the time is correct.

28:12.890 --> 28:17.070
And then it's going to refresh what it, uh, what it knows about the system.

28:17.070 --> 28:19.010
And that kinda, that kinda takes a minute.

28:19.010 --> 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.

28:25.270 --> 28:28.030
But, uh, such is not that log.

28:30.370 --> 28:33.770
Uh, and the other thing I wanted to show you was NightScout.

28:34.370 --> 28:36.470
So, uh, where do we start?

28:36.470 --> 28:39.990
So up over, uh, where you see 109, that is my blood sugar right now.

28:39.990 --> 28:41.490
It's up five points.

28:41.750 --> 28:45.970
The amount of insulin on board is actually negative 0.4.

28:45.970 --> 28:48.570
Uh, and I'll explain the reason for that in a minute.

28:48.570 --> 28:52.650
The basal is set right at about 1.0 units per minute.

28:52.650 --> 28:55.750
And you can see that, uh, that drop down icicle graph.

28:55.790 --> 28:58.770
And I haven't really been eating today, so there are no carbs on board.

28:58.770 --> 29:01.810
Uh, it shows that the pump has 78 units in it.

29:01.810 --> 29:03.790
Uh, the battery is 1.26.

29:03.790 --> 29:08.070
Uh, the one thing I'll say about the battery is that normally you get about two weeks with the battery.

29:08.070 --> 29:10.110
You get about three days when you're running this thing.

29:10.430 --> 29:11.430
Uh, which is fine.

29:11.430 --> 29:12.290
It's a triple A battery.

29:12.290 --> 29:13.090
It doesn't matter.

29:13.090 --> 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.

29:20.330 --> 29:26.310
And the, uh, uh, purple lines right there, those are the predictions about what it is going to do.

29:26.890 --> 29:32.490
Uh, and here you can see I've been, uh, on a Vegas diet, uh, kind of spikes.

29:32.590 --> 29:42.840
Um, but yeah, I think I got, oh, and, uh, let's see, you can look at more.

29:42.880 --> 29:45.780
Uh, oh, this is, uh, uh, bolus right here.

29:45.780 --> 29:48.540
So I ate 45 carbs and only took one unit.

29:48.540 --> 29:53.340
Uh, if any of you in the audience are familiar with that, that's going to sound like a real underdose.

29:53.340 --> 29:58.840
And it was because then over here, open APS kicked in and did the rest.

29:58.840 --> 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.

30:15.890 --> 30:17.650
I think I just saw the log tick.

30:17.650 --> 30:18.330
Yeah.

30:18.950 --> 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.

30:32.870 --> 30:33.510
All right.

30:33.510 --> 30:34.410
Live demo.

30:34.790 --> 30:35.550
My internet works.

30:35.550 --> 30:36.030
That was great.

30:36.030 --> 30:37.410
So let's talk results.

30:38.330 --> 30:42.630
Two graphs up at the top in 2016, uh, right.

30:42.630 --> 30:44.830
I want to say a three month period starting in April.

30:45.010 --> 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.

30:53.490 --> 30:54.930
And there's a reason for that.

30:54.930 --> 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.

31:05.010 --> 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.

31:12.210 --> 31:13.490
Uh, that's not great.

31:14.070 --> 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.

31:24.010 --> 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.

31:37.010 --> 31:41.330
And this is just another way to visualize the same thing per hour of the day.

31:41.330 --> 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.

31:51.970 --> 31:55.530
Uh, and now let's look at a few raw results.

31:55.530 --> 32:01.990
Uh, there was no A1C estimate, uh, before 2016 because there was no way to do that.

32:01.990 --> 32:04.550
Uh, so, uh, a couple of things that are important.

32:04.550 --> 32:05.750
This was diagnosis.

32:05.830 --> 32:11.510
Uh, I mentioned that six is a good place for a diabetic person to be and that ain't six.

32:11.590 --> 32:14.610
Uh, so that was a hospital visit, uh, and a surprise.

32:14.890 --> 32:19.490
Uh, but I quickly got it under control, uh, because, uh, I am also a control freak.

32:19.830 --> 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.

32:28.710 --> 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.

32:40.430 --> 32:42.010
Uh, not MGM, at a DEF CON.

32:42.010 --> 32:43.890
It was Mandalay at a black hat.

32:43.890 --> 32:44.450
Yep.

32:45.250 --> 32:48.250
Uh, yeah, simple instructions were very difficult for that person.

32:48.250 --> 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.

33:00.070 --> 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.

33:06.030 --> 33:11.310
So, as soon as I got the nights under control, I got an immediate benefit, uh, for, on my A1C.

33:11.310 --> 33:15.410
And then continuing forward, uh, now it's down to about six three.

33:15.410 --> 33:18.230
And again, I don't do very much work anymore.

33:18.790 --> 33:20.570
So, that's my personal change.

33:20.570 --> 33:22.030
Let's talk industry change.

33:22.130 --> 33:24.490
Previously, these were monolithic systems.

33:24.490 --> 33:28.930
One device, one insulin pump, one sensor, none of it's interoperable.

33:29.010 --> 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.

33:37.630 --> 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.

33:49.030 --> 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?

33:53.690 --> 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.

34:06.470 --> 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.

34:14.690 --> 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.

34:26.190 --> 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.

34:38.010 --> 34:41.290
The, the smarts don't have to be integrated into the pump itself.

34:41.290 --> 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.

34:52.670 --> 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.

35:02.130 --> 35:06.150
And so none of this would be possible without the people behind the hashtag, we're not waiting.

35:06.150 --> 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.

35:16.350 --> 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.

35:21.990 --> 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.

35:35.130 --> 35:35.650
Yeah.

35:35.650 --> 35:36.970
Yeah, thank you.

35:40.820 --> 35:43.480
So let's talk about exponential growth.

35:43.800 --> 35:46.720
Everyone needs insulin, this is a biological fact.

35:46.720 --> 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.

35:52.680 --> 35:57.440
Uh, it is a lightning strike that could happen to any of you, uh, really at any moment.

35:57.640 --> 36:01.460
And people will die, it is like water and like air.

36:01.460 --> 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.

36:08.980 --> 36:10.000
Uh, it's not great.

36:10.200 --> 36:12.540
And it's not like, oh, people die of this.

36:12.540 --> 36:15.220
Uh, people are dying now and it's 2019.

36:15.400 --> 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.

36:26.780 --> 36:32.340
This guy died like three days ago because he changed insulin to save for his wedding.

36:32.460 --> 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.

36:42.180 --> 36:44.240
That's what this guy switched to.

36:44.360 --> 36:49.060
I mean, I'm not going to use dog insulin because it's cheaper and it's insulin.

36:49.060 --> 36:51.160
Uh, that's basically what this guy had to do.

36:51.380 --> 36:53.060
And, uh, and yeah.

36:53.320 --> 36:57.920
So I have a graph here of several things that are indexed to overall inflation.

36:57.920 --> 36:59.100
That's that black line there.

36:59.100 --> 37:00.840
And we're doing great with some things.

37:00.840 --> 37:03.340
Uh, so like TVs, that's that bottom line.

37:03.340 --> 37:06.560
Like there's never been a good time, a better time, uh, to buy a TV.

37:06.560 --> 37:10.400
And then there are things, uh, that are below the line like cell phone service and new cars.

37:10.400 --> 37:14.320
Uh, food and beverage and housing is right about at the middle line there.

37:14.320 --> 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.

37:23.240 --> 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.

37:40.100 --> 37:42.120
So that's some shit.

37:43.220 --> 37:48.920
Uh, I, uh, I kind of subscribe, uh, subscribe to this, uh, this Senator's feeling on this.

37:48.920 --> 37:53.440
Uh, Americans, Americans are getting price gouged because our government lets it happen.

37:53.440 --> 37:56.340
Uh, other governments don't do that to their citizens.

37:56.480 --> 38:00.000
Uh, this is not meant to be a, a political statement or anything like that.

38:00.000 --> 38:06.960
Uh, but it's pretty evident that the, uh, the medical, uh, paradigm in the United States is kind of busted.

38:06.960 --> 38:10.580
Uh, and this is one, uh, one symptom of that.

38:10.800 --> 38:15.360
So I want to take the time to acknowledge, uh , the many people that contribute to these projects.

38:15.500 --> 38:22.380
Uh, and I am, uh, I'm not getting, uh, the hundreds, the other hundreds of people that contribute to this.

38:22.380 --> 38:27.740
Um, so Ben West, like I said, he's one of the, uh, one of the key players here.

38:27.740 --> 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.

38:34.540 --> 38:38.880
Scott Hanselman, uh, he's, uh, again, that's the developer evangelist at Microsoft.

38:38.880 --> 38:40.160
He's got a huge megaphone.

38:40.160 --> 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.

38:46.200 --> 38:48.100
Uh, Glance, that's its website.

38:48.100 --> 38:50.760
It's, uh, it's really cool and it's very handy.

38:50.760 --> 38:54.340
Not at Defcon when you have all your radios off though, so that kind of sucks.

38:54.400 --> 38:56.360
Um, and then there's the Night Scout project.

38:56.360 --> 39:01.680
And I figured since I cited a formal, uh, medical paper, I would cite this one formally right here.

39:01.680 --> 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.

39:11.180 --> 39:13.060
And finally, I want to thank my doctor.

39:13.060 --> 39:17.580
Um, there are doctors that bounce their patients when they find that they're doing this.

39:17.700 --> 39:20.080
Uh, this one is amazing.

39:20.080 --> 39:21.440
Uh, he's supportive of it.

39:21.440 --> 39:25.460
He's had me show his students, uh, his medical students how it works and all about it.

39:25.500 --> 39:28.880
Uh, and I, man, he's getting up there.

39:28.880 --> 39:32.720
I fear the phone call that he's retiring, um, like weekly.

39:32.780 --> 39:34.500
Um, but yeah, he's amazing.

39:34.500 --> 39:40.960
Uh, he is, uh, uh, he's the chief of, uh, of endocrinology at a hospital and he is wonderful.

39:41.580 --> 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.

39:46.980 --> 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.

39:57.160 --> 40:02.520
Uh, talked about results, both personally and industrial, uh, and we talked about exponential growth.

40:02.600 --> 40:05.780
And so finally, I'd like to take any questions if I have time.

40:05.980 --> 40:06.780
Yes?

40:13.490 --> 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?

40:20.670 --> 40:26.450
And the, the difference really is, uh, how precise it works on your body chemistry.

40:26.450 --> 40:32.230
Uh, the Walmart insulin does not give you the kind of control that you can achieve with, uh, with other products.

40:32.230 --> 40:37.850
Uh, it also, uh, it takes time for your body to adapt to a different formulation of insulin.

40:37.870 --> 40:41.970
Uh, and so that is, that all of those things probably contributed to his death.

40:42.450 --> 40:43.250
Yes, sir?

40:43.250 --> 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?

40:50.250 --> 40:55.450
So for the purposes of open APS, none of it happens on the internet or on the server.

40:55.450 --> 41:01.010
Uh, the server serves as kind of a dumping ground for data, uh, where, uh, where it houses all that stuff.

41:01.010 --> 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.

41:07.710 --> 41:09.430
Sorry, actually right here.

41:14.250 --> 41:19.830
So theoretically, if you had good dense data storage, you wouldn't need your server anymore.

41:19.890 --> 41:22.390
I don't see why that is not true.

41:23.010 --> 41:23.750
Yeah.

41:24.010 --> 41:24.690
Yeah.

41:25.170 --> 41:25.870
Yes?

41:25.870 --> 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?

41:37.890 --> 41:39.470
No one's ever asked me that.

41:39.470 --> 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,

41:56.050 --> 42:02.610
from some evidence how my metabolism works, but that's pretty general and every food is different.

42:02.770 --> 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.

42:10.790 --> 42:11.590
Yeah.

42:12.650 --> 42:14.630
Uh, right here?

42:14.810 --> 42:16.970
Oh wait, um, sorry, over there first.

42:16.970 --> 42:17.810
One, one.

42:18.050 --> 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.

42:31.510 --> 42:31.730
Yeah.

42:32.730 --> 42:36.990
Um, so, um, I'm going to, the short answer is no.

42:36.990 --> 42:41.510
And the long answer is Dana, uh, who I mentioned earlier makes it her mission.

42:41.510 --> 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.

42:50.210 --> 42:52.890
And, uh, even internationally that's been the case.

42:52.890 --> 43:00.270
Um, so I imagine if I had to go to secure locations, which I suppose probably means no random electronics, right?

43:00.350 --> 43:02.330
Uh, this probably wouldn't be allowed.

43:02.330 --> 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.

43:14.630 --> 43:16.110
And just kind of hand it back to me.

43:16.390 --> 43:17.310
So thank you.

43:17.310 --> 43:17.610
Yep.

43:17.610 --> 43:18.190
Thank you.

43:18.190 --> 43:19.730
And then you, sir.

43:21.090 --> 43:21.950
Last question.

43:21.950 --> 43:22.610
All right.

43:23.190 --> 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?

43:31.850 --> 43:36.350
For example, after exercise, you'll have a different glycemic response.

43:36.350 --> 43:36.510
Sure.

43:36.550 --> 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.

43:49.630 --> 43:55.870
So what this is saying is until about five, uh, no, uh, all my clocks are off.

43:55.870 --> 43:56.170
Okay.

43:56.170 --> 44:00.770
At least until about five local time, this is going to set a temporary target of 120.

44:00.770 --> 44:04.910
And so what that does is it say, okay, I'm going to go easy on the insulin.

44:04.910 --> 44:08.850
So if I know I'm going to exercise, I'm going to want it to go easier on me.

44:08.850 --> 44:13.570
Uh, so I set one of these temporary targets, uh, and then it abides by that.

44:14.290 --> 44:17.450
So I think I had, yeah, nope.

44:17.450 --> 44:17.710
Okay.

44:17.710 --> 44:18.550
I'm sorry.

44:18.550 --> 44:19.590
Um, we can talk later.

44:19.590 --> 44:21.110
Uh, but yeah, thanks everybody.

