Volume 2014, Issue 1 231704
Research Article
Open Access

A Novel Method for Decoding Any High-Order Hidden Markov Model

Fei Ye

Corresponding Author

Fei Ye

Computational Experiment Center for Social Science, Nanjing University, Nanjing 210093, China nju.edu.cn

School of Mathematics and Computer Science, Tongling University, Tongling, Anhui 244061, China tlc.edu.cn

Search for more papers by this author
Yifei Wang

Yifei Wang

Department of Mathematics, Shanghai University, Shanghai 200444, China shu.edu.cn

Search for more papers by this author
First published: 23 November 2014
Citations: 2
Academic Editor: Weiming Xiang

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 {ot} are defined on some probability space , where t is an integer index. takes values in a finite set , and ot takes values in a finite set . Without loss of generality, the elements of can be denoted by {0,1, …, N − 1}. 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 n, that is, a stochastic process that satisfies

    ()

  • (b)

    The observation process {ot} 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 r = max⁡{n, m},  , 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 N number to its decimal value; that is, if , then
()

Definition 3 (see [17].)Any two models λ1 and λ2 are defined as equivalent if

()
for any arbitrary observation sequence O. 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 , qt takes values in the set S = {0,1, …, Nr − 1}. Moreover, it is easy to see that the inverse transformation can be implemented as follows:
()

Remark 4. The function f is a one to one correspondence between the set and the set S = {0,1, …, Nr − 1}.

Proposition 5 (see [18].)Let aij = P(qt+1 = jqt = i) for any i, jS. If ⌊i/N⌋≠j − ⌊j/Nr−1Nr−1, then aij = 0; that is, a transition from qt = i to qt+1 = j is impossible.

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

Proof. Without loss of generality, we may assume that qt = i and qt+1 = j, where i, jS.

First, we consider the case that ⌊i/N⌋≠j − ⌊j/Nr−1Nr−1. By Proposition 5, it is easy to see that

()

Next, we consider the case that ⌊i/N⌋ = j − ⌊j/Nr−1Nr−1. Since qt = i and qt+1 = j, 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 {qt} forms the first-order homogeneous Markov chain.

Lemma 7. The two processes {qt} and {ot} form the first-order hidden Markov model.

Proof. Without loss of generality, we may assume that and qt = i, where and iS. Since qt = i, 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 {qt} and {ot} form the first-order hidden Markov model.

Remark 8. Hadar and Messer [18] had also mentioned the fact that the two processes {qt} and {ot} 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 {qt, ot}, the following parameters are needed.
  • (1)

    State transition probability distribution:

    ()

  • (2)

    Symbol emission probability distribution:

    ()

  • (3)

    Initial state probability distribution:

    ()

where i, jS and . We call A = {aij}, , and π = {πi}. For convenience, we use the compact notation λ = (π, A, B) to indicate the complete parameters of the first-order hidden Markov model.

Proposition 9 (see [18].)Let i = f([i1, …, ir]) and j = f([i0, …, ir−1]) for any ; then

()

Lemma 10. Let O = o1oT be any arbitrary observation sequence; then

()
That is, the high-order hidden Markov model is equivalent to the first-order hidden Markov model {qt, ot}.

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 {qt, ot}, but they did not discuss and prove it in detail.

3. Methodology

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

()

Proof. Without loss of generality, let , where . According to Proposition 9, we have

()
where jt = f([it, …, it−(r−1)]) for 1 ≤ tT.

On the other hand, it is easy to see that

()

Hence, by Lemma 10, we have

()

Theorem 13. Let O = o1oT 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   (1 ≤ tT); then the state sequence satisfies
()
That is, the state sequence is some optimal state sequence of the first hidden Markov model {qt, ot}.

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 {qt, ot}. Similarly, we can draw the following conclusion.

Theorem 14. Let O = o1oT 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 {qt, ot}. For 1 ≤ tT, 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 {qt, ot}.

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

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

()
where j1, j2, …, jTS.

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 m = n = 1.

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).

      The full text of this article hosted at iucr.org is unavailable due to technical difficulties.