Question: hmm - Format of the observation sequence required for the ViterbiCalculator
gravatar for binalip91
4.4 years ago by
binalip910 wrote:

In my final year project i'm using HMM to predict children depression status as I found that there are patterns which can be identified by their activities.

I have 3 hidden states, Depressed, Non-Depressed,  Clinical Range

For observation sequence I have child daily activities.

So I need to find hidden state for a given observation sequence. For that I'm using Viterbi Algorythm.

So example of my observation sequence is which is input for the viterbi algorythm is:


Then the output that I get is that most likely series of events was {depressed,depressed,depressed,clinical,clinical,. . . . . . . . . . . }

Not Sure If I'M Getting The Right Output From Viterbi Algorithm

Is my observation sequence correct. Having like 50 observations in the observations sequence and 3 hidden state??

myposts • 1.2k views
ADD COMMENTlink modified 4.4 years ago • written 4.4 years ago by binalip910

How did you derive your transmission and emission probabilities? Did you train the HMM on a training set?

ADD REPLYlink modified 5 months ago by RamRS27k • written 4.4 years ago by Cytosine450

Yes, I trained the HMM and get transition and emission probabilities.

ADD REPLYlink written 4.4 years ago by binalip910

If you have the transition and emission probability matrices available, then you can test the HMM on a smaller set and precompute the optimal path by hand.

That should show you if the hidden states you calculated are the same ones as proposed by the HMM on the smaller set.

Whether or not your predicted sequence of hidden states is correct depends also on the size of your training set. And sometimes also upon the choice of initial parameters. But I cannot answer you if your results are correct for your particular dataset. Remember that the Viterbi path is probabilistically the most likely sequence of hidden states, according to your observations, but it is not necessarily also the true one.

ADD REPLYlink written 4.4 years ago by Cytosine450
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 962 users visited in the last hour