CPC A61B 5/14532 (2013.01) [A61B 5/14865 (2013.01); A61B 5/4839 (2013.01); A61B 5/6849 (2013.01); A61B 5/7275 (2013.01); A61K 38/28 (2013.01); A61M 5/14244 (2013.01); A61M 5/1723 (2013.01); C12Y 301/01003 (2013.01); G16H 20/17 (2018.01); G16Z 99/00 (2019.02); A61B 5/1495 (2013.01); A61M 2005/14208 (2013.01); A61M 5/158 (2013.01); A61M 2005/1581 (2013.01); A61M 5/1582 (2013.01); A61M 2205/3523 (2013.01); A61M 2205/3561 (2013.01); A61M 2205/3569 (2013.01); G16H 20/10 (2018.01)] | 20 Claims |
1. A processor-implemented method comprising:
obtaining a current glucose value for a user of an insulin delivery device;
generating a desired glucose trajectory that approaches a desired steady state setpoint from the current glucose value over a prediction horizon;
generating an insulin delivery pattern corresponding to an amount of insulin to be delivered to the user over a control horizon;
generating a predicted glucose trajectory over the control horizon, the predicted glucose trajectory being generated based on the current glucose value and the insulin delivery pattern;
comparing the desired glucose trajectory against the predicted glucose trajectory;
responsive to a difference between the desired glucose trajectory and the predicted glucose trajectory being no larger than a predetermined threshold, selecting the predicted glucose trajectory, wherein the difference is determined based on a cost function;
determining the insulin delivery pattern used to generate the predicted glucose trajectory; and
causing insulin delivery by the insulin delivery device in accordance with the determined insulin delivery pattern.
|