INS and Hyperglycemia: The first version of our algorithm was developed as part of a PhD dissertation [27] and focused on anticipating and detecting meals as well as dosing insulin based on the asymmetric risk of hypo- vs. hyperglycemia, using a risk measure similar that that developed by Kovatchev et al. [28].