An automatic system calculating bolus insulin doses on a daily basis is necessary to help both T1DM and T2DM patients undergoing an intensive insulin regimen. Here, INS is linked to type 1 diabetes mellitus.