Vous êtes sur la page 1sur 41

Hidden Markov Models

BY:
Rajeev Kumar

CONTENTS
Introduction
Markov Model
Hidden Markov model (HMM)
Three central issues of HMM
Model evaluation
Most probable path decoding
Model training
Application Areas of HMM
References

Hidden Markov Models

Hidden Markow Models:

A hidden Markov model (HMM) is a statistical


model,in which the system being modeled is
assumed to be a Markov process (Memoryless
process: its future and past are independent )
with hidden states.

Hidden Markov Models

Hidden Markow Models:

Has a set of states each of which has limited


number of transitions and emissions,
Each transition between states has an
assisgned probability,
Each model strarts from start state and ends
in end state,

Hidden Markov Models

Hidden Markov Models

Markow Models :

Talk about weather,


Assume there are three types of weather:

Sunny,

Rainy,

Foggy.

Markov Models

Weather prediction is about the what would be the weather


tomorrow,
Based on the observations on the past.

Markov Models

Weather at day n is qn { sunny , rainy , foggy }

qn depends on the known weathers of the past


days (qn-1, qn-2,)

Markov Models

We want to find that:

means given the past weathers what is the


probability of any possible weather of today.

Markov Models

Markow Models:
For example:
if

we knew the weather for last three days was:

the

probability that tomorrow would be

P(q4 =

| q3 =

, q2 =

, q1 =

is:
)

Markov Models

Markow Models and Assumption (cont.):

Therefore, make a simplifying assumption Markov


assumption:
For

the

sequence:

weather of tomorrow only depends on today


(first order Markov model)

Markov Models

Markow Models and Assumption (cont.):


Examples:
HMM:

Markov Models

Markow Models and Assumption (cont.):


Examples:
If

the weather yesterday was rainy and today is foggy


what is the probability that tomorrow it will be sunny?

Markov Models
Markow

Models and Assumption (cont.):

Examples:
If

the weather yesterday was rainy and today is foggy


what is the probability that tomorrow it will be sunny?

Markov assumption

Hidden Markov Models


Hidden

Markov Models (HMMs):

What is HMM:
Suppose

that you are locked in a room for several days,


you try to predict the weather outside,
The only piece of evidence you have is whether the
person who comes into the room bringing your daily
meal is carrying an umbrella or not.

Hidden Markov Models


Hidden

Markov Models (HMMs):

What is HMM (cont.):


assume

probabilities as seen in the table:

Hidden Markov Models


Hidden

Markov Models (HMMs):

What is HMM (cont.):


Finding

is

the probability of a certain weather

qn { sunny , rainy , foggy }

based on the observations xi:

Hidden Markov Models


Hidden

Markov Models (HMMs):

What is HMM (cont.):


Using

For

Bayes rule:

n days:

Hidden Markov Models


Hidden

Markov Models (HMMs):

Examples:
Suppose

the day you were locked in it was sunny. The


next day, the caretaker carried an umbrella into the
room.
You would like to know, what the weather was like on
this second day.

Discrete Markov Processes


(Markov Chains)

2
0

2
1

Hiddden Markov Models

2
2

Hidden Markov Models

2
3

Hidden Markov Models

2
4

Hidden Markov Model Examples

2
5

Hidden Markov Models

2
6

Hidden Markov Models

Hidden Markov Models


Specification of an HMM

- number of states
Q = {q1; q2; : : : ;qT} - set of states

- the number of symbols (observables)


O = {o1; o2; : : : ;oT} - set of symbols

A-

aij = P(qt+1 = j|qt = i)

the state transition probability matrix


observation probability distribution

bj(k) = P(ot = k|qt = j)

ikM

- the initial state distribution

2
7

Three Fundamental Problems for


HMMs

2
8

2
9

HMM Evaluation Problem

3
0

HMM Evaluation Problem

3
1

HMM Evaluation Problem

3
2

HMM Evaluation Problem

3
3

HMM Evaluation Problem

3
4

HMM Decoding Problem

3
5

HMM Decoding Problem

3
6

HMM Decoding Problem

3
7

HMM Learning Problem

3
8

HMM Learning Problem

3
9

HMM Learning Problem

4
0

HMM Learning Problem

Application Areas of HMM


On-line handwriting recognition
Speech recognition
Gesture recognition
Language modeling
Motion video analysis and tracking
Stock price prediction
and many more.

Vous aimerez peut-être aussi