ML Unit 5
ML Unit 5
https://www.slideshare.net/shivangisaxena566/hidden-markov-model-ppt
Components of an HMM:
• States (S): S={s1,s2,...,sN}
• Observations (O): O={o1,o2,...,oT}
• Transition Probabilities (A):
aij=P(sj ∣ si)
• Emission Probabilities (B):
bj(ot)=P(ot ∣ sj)
• Initial Probabilities (π):
πi=P(si at t=1)
• Tracking with HMMs:
• Tracking is the task of estimating the most probable sequence of hidden
states over time, given a sequence of observations.
• Common Tracking Methods:
• 1. Filtering (Online Inference)
– Goal: Estimate the current state at time ttt, given all observations up to ttt:
– P(st∣o1,o2,...,ot)
– Algorithm: Forward Algorithm
• 2. Smoothing (Offline Inference)
– Goal: Estimate past states using all available observations:
– P(st∣o1,...,oT)(t<T)
– Algorithm: Forward-Backward Algorithm
• 3. Most Likely State Sequence
– Goal: Determine the single best sequence of hidden states:
– arg maxSP(S∣O)
– Algorithm: Viterbi Algorithm
• 4. Learning the Model (if unknown)
– Goal: Learn the parameters A,B,π from data.
– Algorithm: Baum-Welch (a special case of Expectation-Maximization)
• Use Cases in Tracking:
• Speech recognition: Track phoneme states
over time
• Activity recognition: Track hidden
physical/behavioral states
• Object tracking in vision: Track motion
patterns or positions
• Robot localization: Estimate robot’s position
from noisy sensor data