A method for computing a recommended insulin infusion rate, in which - a target glucose level is set which shall be reached within a patient and - a controller computes the recommended infusion rate based on the target glucose level and a measured glucose level of a patient for administering insulin to the patient, wherein the controller uses a controller gain for computing the recommended infusion rate, characterized in that - an insulin sensitivity of the patient is determined by means of a mathematical model taking into account the measured glucose level and an actual infusion rate of insulin administered to the patient and - based on the insulin sensitivity the controller gain of the controller is determined, wherein the controller gain is set by associating the insulin sensitivity to a predefined insulin sensitivity class (C, C1-C4), wherein each insulin sensitivity class (C, C1-C4) is associated with a predefined controller gain such that by associating the insulin sensitivity to an insulin sensitivity class (C, C1-C4) the controller gain is determined to be the controller gain of the associated insulin sensitivity class (C, C1-C4), wherein multiple insulin sensitivity classes (C, C1-C4) are determined prior to administering insulin to a patient, wherein each insulin sensitivity class (C, C1-C4) is defined by associated ranges of a stability parameter and a robustness parameter determined based on the insulin sensitivity, wherein the stability parameter H(S I, K) is defined as ∫ 0 t ε τ S I K dτ = H S I K wherein ε ( t,S I,K) = G ( t, S I, K) - G ref with G ( t, S I, K) representing a simulated blood glucose level and wherein the robustness parameter R(S I) indicating the robustness for an insulin sensitivity value (S I) is defined as R S I = ∫ 0 t ∈ τ S I K − ∈ τ S I c K dτ wherein S Ic is an insulin sensitivity value for which gains K have been optimized using constant patient specific parameters. - a target glucose level is set which shall be reached within a patient and - a controller computes the recommended infusion rate based on the target glucose level and a measured glucose level of a patient for administering insulin to the patient, wherein the controller uses a controller gain for computing the recommended infusion rate, - an insulin sensitivity of the patient is determined by means of a mathematical model taking into account the measured glucose level and an actual infusion rate of insulin administered to the patient and - based on the insulin sensitivity the controller gain of the controller is determined, wherein the controller gain is set by associating the insulin sensitivity to a predefined insulin sensitivity class (C, C1-C4), wherein each insulin sensitivity class (C, C1-C4) is associated with a predefined controller gain such that by associating the insulin sensitivity to an insulin sensitivity class (C, C1-C4) the controller gain is determined to be the controller gain of the associated insulin sensitivity class (C, C1-C4), wherein multiple insulin sensitivity classes (C, C1-C4) are determined prior to administering insulin to a patient, wherein each insulin sensitivity class (C, C1-C4) is defined by associated ranges of a stability parameter and a robustness parameter determined based on the insulin sensitivity, wherein the stability parameter H(S I, K) is defined as ∫ 0 t ε τ S I K dτ = H S I K wherein ε ( t,S I,K) = G ( t, S I, K) - G ref with G ( t, S I, K) representing a simulated blood glucose level and wherein the robustness parameter R(S I) indicating the robustness for an insulin sensitivity value (S I) is defined as R S I = ∫ 0 t ∈ τ S I K − ∈ τ S I c K dτ wherein S Ic is an insulin sensitivity value for which gains K have been optimized using constant patient specific parameters.