This work presents a method for automatic insulin bolus shaping based on residual insulin or insulin-on-board (IOB) estimation as an extra feature for commercial insulin pumps. Among other potential applications, this methodology allows the pump to automatically generate the socalled super-bolus for the compensation of high glycemic index meals, which has been recently related to the best theoretical basal-bolus combination for the reduction of glucose excursions under open-loop treatment.