4

I am trying to find some (preferably MATLAB) code for the Viterbi algorithm in a 2nd order HMM. I know how to apply it for a first order model, and understand the concept for 2nd order. However I am having trouble implementing it for a 2nd order model. Can anyone give me any good references? I have searched Google and, surprisingly, could not find anything that's reasonably clear.

Also, is there a MATLAB library that already implements this? I know there is one for a first order HMM. Thanks

4

2 回答 2

2

我知道这是旧的,但我有这个问题,不得不自己找出答案。

您只需要将转换概率表示为P((State_t-2, State_t-1) => (State_t-1, State_t))

您可以保持排放概率State_t(您需要大量数据才能使二阶排放概率合理)。

那应该给你合理的结果。

于 2014-11-26T22:42:48.013 回答
0

见这篇论文 https://journals.sagepub.com/doi/pdf/10.1177/1550147718772541

您需要通过考虑 prev 和 prev-to-prev-state 来修改 viterbi 路径查找

于 2021-12-22T05:29:07.557 回答