A computer-implemented method for preventing or mitigating hypoglycemia in a patient, comprising: receiving continuous metabolic measurements associated with the subject from a metabolic measurement device; continuously assessing a risk of hypoglycemia based on the received metabolic measurements; evaluating the risk of hypoglycemia based on the assessed risk of hypoglycemia, the evaluation indicating that there is no risk of hypoglycemia if the assessed risk of hypoglycemia is zero, a low risk of hypoglycemia if the assessed risk of hypoglycemia is greater than zero and a further value indicative of at least one received metabolic measurement is greater than or equal to a threshold value, and a high risk of hypoglycemia if the further value is less than the threshold value; and characterized in that the method further comprises: outputting: a) a first visual indication indicating that no further action is to be taken by the computer-implemented method if there is no evaluated risk of hypoglycemia; b) a second visual indication and an insulin rate command including an attenuation factor to smoothly attenuate delivery of insulin if the evaluated risk of hypoglycemia is low, the attenuation factor φ brakes (R(t)) given by: φ brakes R t = 1 / 1 + k ⋅ R t, where R(t) is the assessed risk of hypoglycemia and k is a parameter that is adjustable to match the patient's physiology; and c) a third visual indication indicating that patient intervention is needed, optionally with an insulin rate command including an attenuation factor to attenuate delivery of insulin, if the evaluated risk of hypoglycemia is high. receiving continuous metabolic measurements associated with the subject from a metabolic measurement device; continuously assessing a risk of hypoglycemia based on the received metabolic measurements; evaluating the risk of hypoglycemia based on the assessed risk of hypoglycemia, the evaluation indicating that there is no risk of hypoglycemia if the assessed risk of hypoglycemia is zero, a low risk of hypoglycemia if the assessed risk of hypoglycemia is greater than zero and a further value indicative of at least one received metabolic measurement is greater than or equal to a threshold value, and a high risk of hypoglycemia if the further value is less than the threshold value; and characterized in that the method further comprises: outputting: a) a first visual indication indicating that no further action is to be taken by the computer-implemented method if there is no evaluated risk of hypoglycemia; b) a second visual indication and an insulin rate command including an attenuation factor to smoothly attenuate delivery of insulin if the evaluated risk of hypoglycemia is low, the attenuation factor φ brakes (R(t)) given by: φ brakes R t = 1 / 1 + k ⋅ R t, where R(t) is the assessed risk of hypoglycemia and k is a parameter that is adjustable to match the patient's physiology; and c) a third visual indication indicating that patient intervention is needed, optionally with an insulin rate command including an attenuation factor to attenuate delivery of insulin, if the evaluated risk of hypoglycemia is high. a) a first visual indication indicating that no further action is to be taken by the computer-implemented method if there is no evaluated risk of hypoglycemia; b) a second visual indication and an insulin rate command including an attenuation factor to smoothly attenuate delivery of insulin if the evaluated risk of hypoglycemia is low, the attenuation factor φ brakes (R(t)) given by: φ brakes R t = 1 / 1 + k ⋅ R t, where R(t) is the assessed risk of hypoglycemia and k is a parameter that is adjustable to match the patient's physiology; and c) a third visual indication indicating that patient intervention is needed, optionally with an insulin rate command including an attenuation factor to attenuate delivery of insulin, if the evaluated risk of hypoglycemia is high.