Machine Learning For Physiological Time Series: Representing And Controlling Blood Glucose For Diabetes Management