Abstract

This paper proposes a novel method for decoding any high-order hidden Markov model. First, the high-order hidden Markov model is transformed into an equivalent first-order hidden Markov model by Hadar’s transformation. Next, the optimal state sequence of the equivalent first-order hidden Markov model is recognized by the existing Viterbi algorithm of the first-order hidden Markov model. Finally, the optimal state sequence of the high-order hidden Markov model is inferred from the optimal state sequence of the equivalent first-order hidden Markov model. This method provides a unified algorithm framework for decoding hidden Markov models including the first-order hidden Markov model and any high-order hidden Markov model.

1. Introduction

Hidden Markov models are powerful tools for modeling and analyzing sequential data. For several decades, hidden Markov models have been used in many fields including handwriting recognition [13], speech recognition [4, 5], computational biology [6, 7], and longitudinal data analysis [8, 9]. Past and current developments on hidden Markov models are well documented in [10, 11]. A hidden Markov model comprises an underlying Markov chain and an observed process, where the observed process is a probabilistic function of the underlying Markov chain [12]. Given a hidden Markov model, an efficient procedure for finding the optimal state sequence is of great interest in the real-world applications. In the traditional first-order hidden Markov model, the Viterbi algorithm is utilized to recognize the optimal state sequence [13]. Like the Kalman filter, the Viterbi algorithm tracks the optimal state sequence with a recursive method.

In recent years, the theory and applications of high-order hidden Markov models have been substantially advanced, and high-order hidden Markov models are known to be more powerful than the first-order hidden Markov model. There are two basic approaches to study the algorithms of high-order hidden Markov models. The first one is called the extended approach, which is to extend directly the existing algorithms of the first-order hidden Markov model to high-order hidden Markov models [1416]. The second one is called the model reduction method, which is to transform a high-order hidden Markov model to an equivalent first-order hidden Markov model by some means and then to establish the algorithms of the high-order hidden Markov model by using standard techniques applicable to the first-order hidden Markov model [1720].

In this paper, we propose a novel method for decoding any high-order hidden Markov model. First, the high-order hidden Markov model is transformed into an equivalent first-order hidden Markov model by Hadar’s transformation. Next, the optimal state sequence of the equivalent first-order hidden Markov model is recognized by the existing Viterbi algorithm of the first-order hidden Markov model. Finally, the optimal state sequence of the high-order hidden Markov model is inferred from the optimal state sequence of the equivalent first-order hidden Markov model.

2. High-Order Hidden Markov Model and Hadar’s Transformation

Initially suppose two processes and are defined on some probability space , where is an integer index. takes values in a finite set , and takes values in a finite set . Without loss of generality, the elements of can be denoted by . A high-order hidden Markov model is defined as follows.

Definition 1 (see [18, 20]). A high-order hidden Markov model is a doubly stochastic process with an underlying state process that is not directly observable but can be observed only through another stochastic process that is called the observation process. The observation process is governed by the hidden state process and produces the observation sequence. The state process and observation process, respectively, satisfy the following conditions.(a)The hidden state process is a homogeneous Markov chain of order , that is, a stochastic process that satisfies (b)The observation process is governed by the hidden state process according to a set of probability distributions that satisfy

To model the high-order hidden Markov model, the following parameters are needed.(1)State transition probability distribution: (2)Symbol emission probability distribution: (3)Initial state probability distribution: where ,  , and . We call , , and . For convenience, we use the compact notation to indicate the complete parameters of the high-order hidden Markov model.

Definition 2 (see [18]). Let be the mapping of any base number to its decimal value; that is, if , then

Definition 3 (see [17]). Any two models and are defined as equivalent if for any arbitrary observation sequence . In other words, two models are only considered equivalent if they yield the same likelihood, regardless of the specific observation sequence.

Based on Definition 2, we set Since ,  and take values in the set , takes values in the set . Moreover, it is easy to see that the inverse transformation can be implemented as follows:

Remark 4. The function is a one to one correspondence between the set and the set .

Proposition 5 (see [18]). Let for any . If , then ; that is, a transition from to is impossible.

Lemma 6. Let ; then the process forms the first-order homogeneous Markov chain.

Proof. Without loss of generality, we may assume that and , where .
First, we consider the case that . By Proposition 5, it is easy to see that
Next, we consider the case that . Since and , it follows from (10) that where . Moreover, we have
Through the above analysis, we derive that
Analogously, it is easy to see that
Therefore, the process forms the first-order homogeneous Markov chain.

Lemma 7. The two processes and form the first-order hidden Markov model.

Proof. Without loss of generality, we may assume that and , where and . Since , it follows from (10) that where . Moreover, we have
Analogously, it is easy to see that
Combining these with Lemma 6, we prove that the two processes and form the first-order hidden Markov model.

Remark 8. Hadar and Messer [18] had also mentioned the fact that the two processes and form the first-order hidden Markov model, but they did not discuss and prove it in detail.

To model the first-order hidden Markov model , the following parameters are needed.(1)State transition probability distribution: (2)Symbol emission probability distribution: (3)Initial state probability distribution: where and . We call , , and . For convenience, we use the compact notation to indicate the complete parameters of the first-order hidden Markov model.

Proposition 9 (see [18]). Let and for any ; then

Lemma 10. Let be any arbitrary observation sequence; then That is, the high-order hidden Markov model is equivalent to the first-order hidden Markov model .

Proof. For any , let
By Proposition 9, we have

Remark 11. Hadar and Messer [18] had also mentioned the fact that the high-order hidden Markov model is equivalent to the first-order hidden Markov model , but they did not discuss and prove it in detail.

3. Methodology

Theorem 12. Let be any given observation sequence, and assume that ; then

Proof. Without loss of generality, let , where . According to Proposition 9, we have where for .
On the other hand, it is easy to see that
Hence, by Lemma 10, we have

Theorem 13. Let be any given observation sequence, and assume that the state sequence satisfies that is, the state sequence is some optimal state sequence of the high-order hidden Markov model . Let   ; then the state sequence satisfies That is, the state sequence is some optimal state sequence of the first hidden Markov model .

Proof. By Theorem 12, it is easy to see that Meanwhile, we have the equation Hence, we drive that

According to Theorem 13, we can know that some optimal state sequence of the high-order hidden Markov model is mapped to some optimal state sequence of the first-order hidden Markov model . Similarly, we can draw the following conclusion.

Theorem 14. Let be any given observation sequence, and assume that the state sequence satisfies that is, the state sequence is some optimal state sequence of the first-order hidden Markov model . For , let then the state sequence satisfies That is, the state sequence is some optimal state sequence of the high-order hidden Markov model .

Remark 15. Combining Theorem 13 with Theorem 14, it is known that there exists a one to one correspondence between the optimal state sequence of the high-order hidden Markov model and the optimal state sequence of the first-order hidden Markov model .

To decode any high-order hidden Markov model , we transform it into an equivalent first-order hidden Markov model by Hadar’s transformation. Then, do as follows.

Step 1. Determine some optimal state sequence of the first-order hidden Markov model by using the Viterbi algorithm. Without loss of generality, let where .

Step 2. For , using the transformations we have

Step 3. For , , using the transformation we have

Combining Step 2 with Step 3, we obtain the state sequence

According to Theorem 14, the above state sequence is some optimal state sequence of the high-order hidden Markov model .

4. Conclusions

In this paper, a novel method for decoding any high-order hidden Markov model is given. Based on this method, the optimal state sequence of any high-order hidden Markov model can be inferred by the existing Viterbi algorithm of the first-order hidden Markov model. This method has universal character for decoding hidden Markov models and provides a unified algorithm framework for decoding hidden Markov models including the first-order hidden Markov model and any high-order hidden Markov model. For instance, the Viterbi algorithm of the first-order hidden Markov model can be easily derived as a special case of our conclusion when .

This method we analyzed is practical and valuable in its own right. Future research could use this method for applications in handwriting, speech recognition, speaker recognition, emotion recognition, and so forth.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This work is supported by the Major Program of the National Natural Science Foundation of China (no. 71390521), the Postdoctoral Science Foundation of China (no. 2014M551565), and the Scientific Research Foundation of Tongling University (no. 2012tlxyrc04).