Figure 1. Closed-loop system. A continuous glucose monitor (black device on abdomen) transmits information about interstitial glucose levels to a smartphone (in the hand), hosting a control algorithm. An insulin pump (in the pocket) delivers a rapid-acting insulin analogue subcutaneously. Insulin delivery is modulated in real-time by the control algorithm. Communication between system components is wireless.