A Markov model for inferring event types on diabetes patients data