Wavelet Analysis Based Hidden Markov Model