Mechanical signal analysis using Hidden Markov Model