I am not that familiar with HMM, but I want to implement in Matlab. I want to use this toolbox HMM Toolbox. I am not sure if I have understood the way I have to implement it. If have many training sequences of states for different classes. So this is the way I would do it:
- I calculate for every sequence the transition and emission matrix by
[TRANS,EMIS] = hmmestimate(seq,states)
which represents a HMM - I save these matrix with the information which class belongs
- I do this for every training sequence
- If I get an observation sequence for classification I use the hmmviterbi(seq,TRANS,EMIS) function for calculating the "likelyness" with every HMM I have saved.
- The most "likelyness" one (highest percent) was the HMM I looked for --> I know the class
Is this the way I can implement HMM?
I hope you can give me some hints
Btw. I know that my English is not that good, but I hope it is understandable.