A machine for processing continuous glucose monitoring data and issuing an alert if hypoglycemia is imminent has three modules: (a) a pre-processing module that receives and modulates continuous glucose monitoring data by reducing noise and adjusting for missed data points and shifts due to calibration; (b) a core algorithm module that receives data from the pre-processing module and calculates a rate of change to make a hypoglycemia prediction, and determine if hypoglycemia is imminent; and (c) an alarm mode module that receives data from the core algorithm and issues an audio or visual alert or warning message or a negative feedback signal to an insulin delivery device if hypoglycemia is imminent.