I want to use *Viterbi* algorithm, to decode an HMM sequence, but very few observations are missing  in some of the steps or outliers. The hidden states in these steps are assumed to be the same as their previous states (or their adjacent states).

Can anyone tell me how can I set the emission probability in these steps. If I were to use *Baum-Welch* algorithm, what should I do.?

Thanks