Hidden Markov chain