The traditional therapy (open loop control method) of treating patients with type-1 diabetic mellitus (T1DM) is based on measuring the BGL of patient several times daily using blood glucose meter and if the BGL is at high values, then according to the values of the measurements the right dose of exogenous insulin is calculated and then it is infused subcutaneously into patient to lower the BGL4. Here, INS is linked to type 1 diabetes mellitus.