A non-transitory computer readable medium embodied with programming code executable by a processor, and the processor when executing the programming code is operable to perform functions, including functions to: retrieve a prior insulin-carbohydrate ratio (IC old); monitor a number of blood glucose measurements below a hypoglycemia threshold; determine a hypoglycemia insulin-to-carbohydrate ratio correction factor based on the monitored number of blood glucose measurements below the hypoglycemia threshold; monitor a number of blood glucose measurements that exceed a hyperglycemia threshold; determine a hyperglycemia insulin-to-carbohydrate ratio correction factor based on the monitored number of blood glucose measurements that exceed a hypoglycemic threshold; monitor a number of times in which an artificial pancreas application was in a suspend insulin delivery status; determine a suspend insulin-to-carbohydrate ratio correction factor based on the number of times in which the artificial pancreas application was in the suspend insulin delivery status; monitor a number of insulin doses delivered in which an amount of insulin in the delivered dose exceeded a basal insulin dosage setting at the time the insulin dose was delivered; determine an over-basal insulin-to-carbohydrate ratio correction factor based on the monitored number of insulin doses delivered in which the amount of insulin in the delivered dose exceeded a basal insulin dosage setting; calculate a new insulin-to-carbohydrate ratio (IC new; IC new1; IC new2) based on the prior insulin-to-carbohydrate ratio (IC old), the determined hypoglycemia insulin-to-carbohydrate ratio correction factor, the determined hyperglycemia insulin-to-carbohydrate ratio correction factor, the determined suspend insulin-to-carbohydrate ratio correction factor, and the determined over-basal insulin-to-carbohydrate ratio correction factor; and actuate delivery of a next insulin dose based on a calculated insulin dosage using the calculated new insulin-to-carbohydrate ratio (IC new; IC new1; IC new2). retrieve a prior insulin-carbohydrate ratio (IC old); monitor a number of blood glucose measurements below a hypoglycemia threshold; determine a hypoglycemia insulin-to-carbohydrate ratio correction factor based on the monitored number of blood glucose measurements below the hypoglycemia threshold; monitor a number of blood glucose measurements that exceed a hyperglycemia threshold; determine a hyperglycemia insulin-to-carbohydrate ratio correction factor based on the monitored number of blood glucose measurements that exceed a hypoglycemic threshold; monitor a number of times in which an artificial pancreas application was in a suspend insulin delivery status; determine a suspend insulin-to-carbohydrate ratio correction factor based on the number of times in which the artificial pancreas application was in the suspend insulin delivery status; monitor a number of insulin doses delivered in which an amount of insulin in the delivered dose exceeded a basal insulin dosage setting at the time the insulin dose was delivered; determine an over-basal insulin-to-carbohydrate ratio correction factor based on the monitored number of insulin doses delivered in which the amount of insulin in the delivered dose exceeded a basal insulin dosage setting; calculate a new insulin-to-carbohydrate ratio (IC new; IC new1; IC new2) based on the prior insulin-to-carbohydrate ratio (IC old), the determined hypoglycemia insulin-to-carbohydrate ratio correction factor, the determined hyperglycemia insulin-to-carbohydrate ratio correction factor, the determined suspend insulin-to-carbohydrate ratio correction factor, and the determined over-basal insulin-to-carbohydrate ratio correction factor; and actuate delivery of a next insulin dose based on a calculated insulin dosage using the calculated new insulin-to-carbohydrate ratio (IC new; IC new1; IC new2).