Described and illustrated is a diabetes management system that includes an infusion pump, glucose sensor and controller with a method programmed into the controller. The infusion pump is configured to deliver insulin to a subject. The glucose sensor is configured to sense glucose levels in the subject and provide output signals representative of the glucose levels in the subject. The controller is programmed receives signals from at least one of the glucose sensor and the pump and configured to issue signals to the pump to deliver an amount of insulin determined by a feedback controller that utilizes a model predictive control of the subject based on desired glucose levels, insulin amount delivered and measured glucose levels of the subject. The controller is also configured to deliver at least the basal amount of insulin whenever the subject has initiated a manual bolus of insulin and a sensed or measured glucose level of is at least a first threshold within a first duration of time.揭示並闡釋一種包含一注入泵、葡萄糖感測器及控制器之糖尿病管理系統以及一種經程式化至該控制器中之方法。該注入泵經組態以輸送胰島素給一對象。該葡萄糖感測器經組態以感測該對象的葡萄糖位準並且提供表示該對象葡萄糖位準的輸出信號。該控制器經程式化以接收來自該葡萄糖感測器及該泵之至少一者的信號及經組態以發出信號至該泵以輸送一定量胰島素,由一反饋控制器利用該對象的模型預測控制基於所要的葡萄糖位準、輸送的胰島素量及該對象的所測量葡萄糖位準來判定該輸送的胰島素量。該控制器亦經組態以每當該對象已開始胰島素手動給藥並且在一第一時期內所感測或測量的葡萄糖位準為至少一第一臨限值時,輸送至少基準量之胰島素。