merged with viterbi per smoothing and linear interpolation