A method,
system, and computer-readable medium are provided for a
dual mode closed loop control (CLC)
system that integrates each of (i) an adaptive, personalized
model predictive control (MPC) control law that adjusts the control intensity of
insulin infusion according to recent past control actions, glucose measurements, and derivatives thereof, and (ii) an adaptive, personalized
model predictive control (MPC) control law that adjusts the control intensity of
insulin infusion according to the recent past control actions, glucose measurements, and derivatives thereof. In one embodiment, the
system includes (i) an
insulin injection system (e.g., an automated
meal dose initiation system (BPS) that commands additional
insulin injection upon detection of viable metabolic conditions (e.g., unnotified feeding), and (iii) a hyperglycemia relief system (HMS) to avoid prevalent hyperglycemia.