INS and type 1 diabetes mellitus: In this application, let S be the set of all possible states of the environment (states of the T1DM patient) and A be the set of all possible actions (actions are the insulin levels prescribed to treat the T1DM patient).