Hidden Markov Model New
Hidden Markov Model New
• Hidden Markov models (HMMs) are a type of statistical modelling that has
been used for several years.
• They have been applied in different fields such as medicine, computer science,
and data science.
• The Hidden Markov model (HMM) is the foundation of many modern-day data
science algorithms.
• It has been used in data science to make efficient use of observations for
successful predictions or decision-making processes.
This example illustrates the concept of a Markov model: the future state of a
system is determined by its current state and past history. In the case of the
bag of marbles, the current state is determined by the number of each color of marble
in the bag. The past history is represented by the contents of the bag, which determine
the probabilities of selecting each color of marble.
Markov models have many applications in the real world, including predicting the
weather, stock market prices, and the spread of disease.
states, πi is the probability that the Markov chain will start in a certain state i.
Some states j may have πj = 0, meaning that they cannot be initial states
where each aij represents the probability of moving from state i to state j.
The diagram below represents a Markov chain where there are three states
representing the weather of the day (cloudy, rainy, and sunny). And, there are
transition probabilities representing the weather of the next day given the weather of
the current day.
There are three different states such as cloudy, rain, and sunny. The following
represent the transition probabilities based on the above diagram:
The hidden Markov model in the above diagram represents the process of predicting
whether someone will be found to be walking, shopping, or cleaning on a particular
day depending upon whether the day is rainy or sunny.
The following represents five components of the hidden Markov model in the above
diagram:
Let’s notice some of the following in the above picture:
• There are two hidden states such as rainy and sunny. These states are hidden
because what is observed as the process output is whether the person is shopping,
walking, or cleaning.
• The sequence of observations is shop, walk, and clean.
• An initial probability distribution is represented by start probability
• Transition probability represents the transition of one state (rainy or sunny) to
another state given the current state
• Emission probability represents the probability of observing the output, shop,
clean and walk given the states, rainy or sunny.
The Hidden Markov model is a special type of Bayesian network that has hidden
variables which are discrete random variables. The first-order hidden Markov model
allows hidden variables to have only one state and the second-order hidden Markov
models allow hidden states to be having two or more two hidden states.
The hidden Markov model represents two different states of variables: Hidden state
and observable state. A hidden state is one that cannot be directly observed or seen.
An observable state is one that can be observed or seen. One hidden state can be
associated with many observable states and one observable state may have more than
hidden states. The hidden Markov model uses the concept of probability to identify
whether there will be an emission from the hidden state to another hidden state or
from hidden states to observable states.
Real-world examples of Hidden Markov Models (HMM)
Here are a few real-world examples where the hidden Markov models are used:
• Retail scenario: Now if you go to the grocery store once per week, it is
relatively easy for a computer program to predict exactly when your shopping trip
will take more time. The hidden Markov model calculates which day of visiting
takes longer compared with other days and then uses that information in order to
determine why some visits are taking long while others do not seem too
problematic for shoppers like yourself. Another example from e-commerce where
hidden Markov models are used is the recommendation engine. The hidden
Markov models try to predict the next item that you would like to buy.
• Travel scenario: By using hidden Markov models, airlines can predict how
long it will take a person to finish checking out from an airport. This allows them
to know when they should start boarding passengers!
• Medical Scenario: The hidden Markov models are used in various medical
applications, where it tries to find out the hidden states of a human body system
or organ. For example, cancer detection can be done by analysing certain
sequences and determining how dangerous they might pose for the patient.
Another example where hidden Markov models get used is for evaluating
biological data such as RNA-Seq, ChIP-Seq, etc., that help researchers understand
gene regulation. Using the hidden Markov model, doctors can predict the life
expectancy of people based on their age, weight, height, and body type.
• Marketing scenario: As marketers utilize a hidden Markov model, they can
understand at what stage of their marketing funnel users are dropping off and how
to improve user conversion rates.