Hidden Markov Processes with Silent States
Hidden Markov processes with silent states are often used with rigid topology of hidden states dynamics, i.e. the transition matrix is sparse, to enable transitions between emitting states that are impossible under the chosen topology. Thanks to the structured transition matrix, hidden Markov models with silent states are frequently easier to estimate than their dense analogs.
Define the initial likelihoods of the system being in one of six possible unobservable states as well as the matrix of the conditional transition probabilities between these states.
Visualize topology of transitions between hidden states.
Out[2]= | |
Define frequencies of the system emitting a categorical signal for every unobservable state. Emissions are labeled 1 through 6. No emissions are made when the system finds itself in either state 3 or state 4; that is, these states are silent.
Define hidden Markov process that describes observable emissions.
Simulate a sequence of emissions.
Out[5]= | |
Find the most probable sequence of the system's underlying unobservable states.
Out[6]= | |
Note that the decoded sequence of states is longer than the sequence of emissions, due to presence of silent states. Visualize the sequence of decoded hidden states.
Find the hidden Markov process without hidden states that assigns the same probabilities for all emission sequences.
Out[8]= | |
Build short sequences of emissions and confirm that both processes assign them equal likelihoods.
Out[12]= | |
Generate an ensemble of longer emission sequences and use it to estimate parameters of the hidden Markov process with silent states.
Out[14]= | |
Compare log-likelihoods of emissions.
Out[15]= | |
Out[16]= | |