An Approach for Artificial Pancreas to Control the Type-1 Diabetes Mellitus