Hidden Markov Model Framework