Machine learning for the diagnosis of early stage diabetes using temporal glucose profiles