Baum–Welch Algorithm for Estimating a Hidden Markov Model