The learning problem estimates HMM parameters
λ=(A,B,π) from observations alone with no state labels; Baum-Welch is exactly EM applied to HMMs. The E-step uses the current parameters
λ(old) and the forward-backward algorithm to compute posteriors: the state posterior
γt(i)=P(qt=i∣O,λ)=∑jαt(j)βt(j)αt(i)βt(i) (probability of being in state
i at time
t) and the transition posterior
ξt(i,j)=P(O∣λ)αt(i)aijbj(ot+1)βt+1(j) (moving
i→j from
t to
t+1); the M-step reestimates parameters as expected counts