Fast Schemes for Computing Similarities between Gaussian HMMs and Their Applications in Texture Image Classification

Ling Chen, Hong ManEURASIP 2005

Abstract

An appropriate definition and efficient computation of similarity (or distance) measures between two stochastic models are of theoretical and practical interest. In this work, a similarity measure, that is, a modified "generalized probability product kernel," of Gaussian hidden Markov models is introduced. Two efficient schemes for computing this similarity measure are presented. The first scheme adopts a forward procedure analogous to the approach commonly used in probability evaluation of observation sequences on HMMs. The second scheme is based on the specially defined similarity transition matrix of two Gaussian hidden Markov models. Two scaling procedures are also proposed to solve the out-of-precision problem in the implementation. The effectiveness of the proposed methods has been evaluated on simulated observations with predefined model parameters, and on natural texture images. Promising experimental results have been observed.

Introduction

Hidden Markov Models (HMMs) are fundamental tools in signal processing and pattern recognition. However, establishing a robust and efficient similarity measure between two HMMs remains a challenge. Traditional measures like Kullback-Leibler (KL) divergence often lack symmetry and closed-form solutions for HMMs, necessitating computationally expensive simulations. This paper addresses these challenges by introducing a symmetric similarity measure based on a modified Generalized Probability Product Kernel (GPPK) and developing two fast algorithms for its computation.

Methodology

The core contribution is a similarity measure interpreted as the statistical average of similarities across all possible "costate" sequences—pairs of states from both models being compared. This approach bypasses the need for explicit observation sequences during comparison, which is a major bottleneck in standard HMM distance metrics.

Efficient Computation Schemes

The authors propose two schemes to compute this measure efficiently:

  1. Forward Procedure: An inductive approach similar to the standard HMM forward algorithm. This reduces computational complexity to $O(T(NN')^2)$, making it linear with respect to the sequence length $T$.
  2. Similarity Transition Matrix Scheme: This method treats the transition similarities as a time-invariant matrix. By using a "doubling" approach (akin to binary exponentiation), it achieves a complexity of $O((NN')^3 \log_2 T)$. This is particularly efficient for real-time applications where the sequence length $T$ is much larger than the number of states.

To handle numerical underflow that naturally occurs as $T$ grows, specialized scaling procedures are introduced to keep computations within the precision limits of standard hardware.

Experimental Evaluation

The effectiveness of the proposed similarity measure and computation schemes was evaluated using both simulated data and natural texture images.

Simulated HMMs and Exponential Divergence

Using manually defined parameters for Gaussian HMMs, the authors verified that the similarity measure aligns with intuitive notions of model distance. A key observation is that as the sequence length $T$ increases, the similarity between different models drops exponentially. This "stretches" the distance between dissimilar models, facilitating higher classification accuracy by making model boundaries more distinct.

Gaussian HMMs used for experiments and the resulting similarity measures showing exponential divergence as T increases.

Texture Image Classification

The method was applied to the Brodatz texture database, using 13 categories of natural textures (e.g., bark, brick, grass). Each $512 \times 512$ image was divided into sixteen $128 \times 128$ sub-images for training and testing. The system achieved a peak recognition rate of 95.1% at $T=4$. Interestingly, while performance improves significantly from $T=0$ to $T=4$, it stabilizes or slightly declines for very large $T$, suggesting that extremely long-range dependencies in simple HMMs might introduce noise or reflect model estimation inaccuracies.

Conclusion

The proposed fast schemes successfully reduce the computational burden of HMM comparison from an exponential problem to a linear or logarithmic one. These methods show great promise for real-time applications in image retrieval, biological sequence analysis, and other domains requiring efficient stochastic model comparison. Future work may involve extending these schemes to more complex observation distributions, such as Gaussian Mixture Models (GMMs).

Summary updated

Abstract

An appropriate definition and efficient computation of similarity (or distance) measures between two stochastic models are of theoretical and practical interest. In this work, a similarity measure, that is, a modified "generalized probability product kernel," of Gaussian hidden Markov models is introduced. Two efficient schemes for computing this similarity measure are presented. The first scheme adopts a forward procedure analogous to the approach commonly used in probability evaluation of observation sequences on HMMs. The second scheme is based on the specially defined similarity transition matrix of two Gaussian hidden Markov models. Two scaling procedures are also proposed to solve the out-of-precision problem in the implementation. The effectiveness of the proposed methods has been evaluated on simulated observations with predefined model parameters, and on natural texture images. Promising experimental results have been observed.
BibTeX
@inproceedings{chen2005fast,
  author = {Ling Chen and Hong Man},
  title = {{Fast Schemes for Computing Similarities between Gaussian HMMs and Their Applications in Texture Image Classification}},
  booktitle = {EURASIP},
  year = {2005},
  doi = {10.1155/asp.2005.1984},
}
Figure