There are three things to an "artificial pancreas": glucose sensor,insulin pump, and the control logic. The difference between an artificial pancreas and the "manual" operation is just that the control logic is automated.
You even can't "fuck up" very easily, unless you add other diabetic stupidities on top of a malfunctioning control logic. Two failure conditions: a) Too little (or no) insulin delivered. b) Too much insulin.
The second one is the more dramatic/short term. The insulin pump has a limited supply of insulin. The speed of injection is limited. There are probably additional safeguards in the pump's software around knowing you are not an elephant breaking into a candy shop. And you feel the pump acting. You can pull it out if it behaves strangely.
Too little insulin delivered may be trickier, but you still have to check the glucose levels occasionally, probably multiple times a day.
Patients already use "algorithms" for insulin delivery. But they are comparatively shitty and designed for example to deliver insulin as a bolus after a meal. Continuous administration of insulin over a pump already has a lot of benefits. A continuous monitoring already has benefits.
You wake up from hypoglycemia, long before there is more trouble. And the sensor doesn't post glucose levels for example if it gets detached.
Hypoglycemia also may not lead to "waking". After all, a diabetic coma may result from low blood glucose, depending on how quickly it crashes.
Source: my girlfriend is Type 1.
Hypoglycemia in healthy adults mainly results from not eating and develops rather slowly. It's hard to recognize at first, but it will get a lot more obvious before it gets serious.
Hypoglycemia in diabetic patients is more often caused by too much insulin delivered at mealtime and this happens more quickly. Patients can become unconscious before they notice the problem, but usually they recover even without treatment. The goal of diabetes treatment is to avoid this hypoglycemia, also because the body reacts with increased glycogenesis leading to an overshoot of blood sugar.
There are sometimes suicide attempts with insulin. This rarely succeeds, it can result in brain damage, but mostly the patients wake up sometime later.
At night an insulin pump would not need to deliver that much insulin. There are also very long-acting types of insulin, which may be preferable to the short-term insulin in the pump to achieve the "baseline" during the fasting period. Or not. That's a strategy question, I guess. I had type 2 for a short time, and I used long-term and short-term insulin at meal times, with the finger-pricking type of measurement.
I don't think insulin pumps would carry enough insulin or are able to deliver enough.
My point is that there is a relatively large margin of error for any algorithm or software before serious harm occurs, and that the continuous monitoring and delivery is already superior in achieving good glucose curves, regardless if the control loop is manual or automatic.
I've read that continuous sensors help patients to have fewer incidents of hypoglycemia.
> You wake up from hypoglycemia, long before there is more trouble
And this is one of the main styles of diabetic death - not waking up (diabetic comatose).
> And the sensor doesn't post glucose levels for example if it gets detached.
I was more referring to the circumstance when you're lying on your sensor in a funny way, and it begins reporting incorrect levels.
The diabetic coma thing is the opposite spectrum when the blood sugar is extremely high but the cell metabolism has to run on ketogenic fuel because it gets no glucose. Which leads to ketoacidosis, which can ultimately lead to a coma.
It has just taken time.
So, Theranos can exist, and if the money that had gone to Holmes and then this indeed would be a solved problem. But it didn't. Note that there are pumps with a closed loop option on the market today, but they are neither convenient nor simple to use. It is work in progress. I fully expect a simple to use closed loop system to be available in quantity somewhere in the next year or two based on recent market research. The time is indeed ripe. The basic tech is there and the pumps have achieved a level of miniaturization and reliability that it is feasible, there are still problems to overcome but those are all within the realm of the possible, do not require unobtanium and enough parties are working on it (competition is fierce) that at least one of them will solve it within that time frame.
It's surprisingly tricky to measure chemical concentrations continuously without replacing the "sensor". Blood and other liquids attack and clog everything.
Without continuous glucose monitoring, you can't do artificial pancreasing.
As far as I know, we haven't figured out what that mechanism is. But I'm not diabetic and I'm much less prone to being hypoglycemic than I once was, so my reading on the subject is fairly casual compared to when I did things like wrote a research paper on Functional Hypoglycemia in part for my own edification.