Hyper and hypo glycaemia detection based on bag of words