A closed-loop system or "artificial pancreas" is one in which the device autonomously calculates and delivers insulin doses through an insulin pump based on input from a continuous glucose monitor and an internal algorithm.