Questions tagged [hidden-markov-model]

Hidden Markov Models are used for modelling systems that are assumed to be Markov processes with hidden (i.e. unobserved) states.

A hidden Markov model is a three-tuple $\left\langle\vec{\pi},A,B\right\rangle$ with $\vec{\pi}$ a probability vector over the $n$ hidden states, $A$ an $n\times n$ transition matrix and $B$ an $n\times m$ emission matrix. $\pi_i$ describes the probability of the system being in hidden state $i$ at time step $0$, $a_{ij}$ describes the probability of the system being in hidden state $j$ at time $t+1$ given it was in hidden state $i$ at time $t$. $b_{ik}$ describes the probability of observing $k$ given the system is in hidden state $i$.

A Markov model thus describes a Markov process, but where the state of the system is "hidden" and only observations can be seen. Such process can be trained for several applications (speech recognition, part-of-speech tagging and computational biology). It can be trained using the popular Baum-Welch algorithm and the most probable sequence of hidden states can be calculated using the Viterbi algorithm.

The standard HMM can be viewed graphically as follows:

enter image description here

Where $Z_t$ is the hidden state and $X_t$ is the observation at time $t$. We can use the conditional independence structure expressed by this graphical model to derive the algorithms above.

Extensions exist such that continuous output is supported as well.

596 questions
23
votes
4 answers

Training a Hidden Markov Model, multiple training instances

I've implemented a discrete HMM according to this tutorial http://cs229.stanford.edu/section/cs229-hmm.pdf This tutorial and others always speak of training a HMM given an observation sequence. What happens when I have multiple training sequences?…
Ran
  • 1,626
12
votes
3 answers

Markov chains vs. HMM

Markov chains makes sense to me, I can use them to model probabilistic state changes in real life problems. Then comes the HMM. HMMs are said to be more suitable to model many problems than MCs. However, the problems people mention are somewhat…
Mario
  • 283
6
votes
1 answer

Forward algorithm vs Forward–backward algorithm

Both the forward algorithm and the forward-backward algorithm are expected to provide a probability for the hidden states. For a live estimate of the state, does it pay to add latency to the output and to use the forward-backward algorithm rather…
6
votes
2 answers

Probability and log probability in hidden Markov models

I have a set of Observation Symbol Sequences which I have to test against a set of Trained HMM classifiers. I seem to understand the advantages of using Log Probability over regular probabilities. In the testing phase of a HMM classifier, I don't…
garak
  • 2,083
6
votes
2 answers

Why are transitions and emissions in HMM assumed to be independent?

In the hidden Markov model we use two matrices. The first one, called the transition matrix, determines probabilities of transitions from one hidden state to another one (the next one). The second matrix, called the emission matrix, determines…
Roman
  • 584
5
votes
1 answer

Understanding Hidden Markov Model (HMM)

I was studying this article about Hidden Markov Model. The article introduced two diagrams at the outset. (1) Given what I had for dinner last night, the probability of what I will have tonight. (2) Given what I had for dinner that night, the…
user366312
  • 2,090
4
votes
1 answer

Hidden Markov model with reward

I am looking for a Hidden Markov model that incorporates rewards, i.e., in which the transition between states is dependent on the feedback from the environment (reward). For instance, it could be that there is a higher probability to stay in the…
Goek
  • 101
3
votes
1 answer

Training a hidden Markov model

When it comes to the training of a Hidden Markov Model using multiple training instances should I first take a single instance and train the model until the convergence and then move on to the next instance or should I use multiple instances…
Suranjith
  • 41
  • 1
  • 5
3
votes
1 answer

gaussian mixture HMM

What is the difference of gaussian HMM and gaussian mixture HMM (the emission is gaussian or gaussian mixture)? I want to know if it is the same thing. What is the point when estimating the parameters using Baum Welch algorithm.
user22062
  • 1,419
  • 3
  • 17
  • 22
3
votes
1 answer

Is there any specific use of Hidden Markov models in physics?

I have just discovered what is a HMM and I think it has pretty good predictive power and I thought whether they can be used in any specific branch of physics.
3
votes
0 answers

Applying HMM to time series data

I have times series data from accelerometer that was attached to a person that was doing different type of exercises. I have a feature matrix that is basically a table with 3 columns (3-axis acceleration). I also have a groundtruth verctor with…
fractile
  • 911
2
votes
1 answer

How to use Viterbi algorithm for multiple chain HMM?

I need to build a HMM with two chains: the structure is as the figure below. How can I use the Viterbi algorithm for this model?
user22062
  • 1,419
  • 3
  • 17
  • 22
2
votes
2 answers

How to handle new observations on HMM decoding?

I'm implementing the HMM algorithms described in Rabiner's tutorial. But there is several issues to considered when we apply HMM for real problems. One of this problems is how to consider new observations that hasn't emission probabilities. Anyone…
zeferino
  • 581
2
votes
1 answer

Coupled Hidden Markov Models

Does anyone know where can I find a pseudo code or Matlab Code for CHMMs please? I am using categorical observations. Thanks.
2
votes
2 answers

Application of a Hidden Markov Model

I recently began learning about HMMs and wanted to ask about a possible application that would hopefully help me grasp the concepts. One of the applications for a regular Markov Model is modelling the sequence of interactions for customers on a…
Tylerr
  • 1,532
1
2 3 4