Hidden markov models for recognition using artificial neural networks