Efficient Learning and Decoding of the Continuous-Time Hidden Markov Model for Disease Progression Modeling

Yu-Ying Liu, Alexander Moreno, Maxwell A. Xu, Shuang Li, Jena C. McDaniel, Nancy C. Brady, Agata Rozga, Fuxin Li, Le Song, James M. RehgarXiv 2021

Abstract

Modeling disease progression requires handling noisy, irregularly sampled observations. While Continuous-Time Hidden Markov Models (CT-HMMs) are theoretically ideal, their computational complexity has historically limited their use to small-scale problems. This paper presents a high-performance framework for CT-HMM learning and decoding, enabling models with hundreds of states. We introduce an optimized EM-based learning method using a vectorization trick for eigendecomposition and a novel Viterbi-SSAE algorithm for decoding optimal state sequences and dwelling times. Validated on Glaucoma, Alzheimer’s, and ASD datasets, our approach demonstrates significant speedups and superior predictive accuracy.

The Challenge of Irregular Clinical Data

Most real-world clinical data is "messy"—patients do not visit clinics on a perfectly regular schedule. Traditional Discrete-Time Hidden Markov Models (DT-HMMs) struggle in these scenarios because they assume observations occur at fixed intervals ($\Delta t$). When data is missing or irregularly sampled, DT-HMMs must either guess missing steps or force data into an artificial grid, leading to significant inaccuracies.

Comparison of Discrete-time and Continuous-time HMMs

Continuous-Time HMMs (CT-HMMs) offer a natural solution by allowing state transitions to occur at any point in time. However, learning their parameters has historically been computationally intensive and numerically unstable. Decoding—the process of inferring the most likely path a patient took between distant check-ups—was also an unsolved problem for continuous-time models. Consequently, CT-HMMs were previously restricted to "toy" models with very few states.

Methodology: Scaling Up CT-HMMs

The authors address these bottlenecks through two primary innovations: efficient parameter learning and a novel decoding algorithm.

1. Efficient EM-Based Learning

The framework utilizes an Expectation-Maximization (EM) approach. The core challenge lies in the "E-step," which requires calculating expected statistics over continuous time. The paper compares three methods:

  • Eigen Method: The fastest approach, utilizing eigendecomposition. The authors contribute a vectorization trick that improves computational complexity by a factor of $S$ (the number of states).
  • Expm Method: Uses matrix exponentials. While more numerically stable, it is significantly slower.
  • Uniformization: A series-based approximation method.

2. Viterbi-SSAE Decoding

The paper introduces Viterbi-SSAE, the first complete solution for decoding both the optimal state sequence and the expected "dwell time" (the duration a patient remains in a specific state) between observations. This method combines the classic Viterbi algorithm for discrete observation points with State Sequence Analysis (SSA) to accurately fill the continuous-time gaps.

Real-World Applications and Results

The researchers validated the framework across several complex clinical datasets, demonstrating its ability to scale to hundreds of states.

  • Glaucoma Progression: Using a dataset of 101 eyes followed over 11 years, the model employed 105 states to track structural and functional decline. It successfully visualized an "L-shaped" progression, confirming clinical theories that structural nerve damage often precedes measurable vision loss.
  • Alzheimer’s Disease (ADNI): Modeling 206 subjects, the framework scaled to 277 states, representing a massive leap in CT-HMM application.
  • ASD Language Development: In a study of 87 children with Autism, the model identified "stalling" states. For instance, children remaining in an early language state longer than 4.69 months were statistically likely to have poorer long-term outcomes, providing a clear window for clinical intervention.

Key Insights

The optimized Soft Eigen method achieved speedups of 26 to 35 times over the standard Expm method. Furthermore, the "Soft" EM approach—which considers all possible paths between visits—proved far more robust to measurement noise than "Hard" approaches that only consider the single most likely path.

Limitations and Future Directions

The primary limitation is the mathematical stability of the Eigen method; it fails if the transition matrix becomes non-diagonalizable. The authors suggest a hybrid approach: using the fast Eigen method by default and falling back to the stable Expm method when necessary. Future work will focus on incorporating patient-specific covariates (e.g., age, genetics) and exploring higher-order Markov models to account for long-term medical history.

Summary updated

BibTeX
@misc{liu2021efficient,
  author = {Yu-Ying Liu and Alexander Moreno and Maxwell A. Xu and Shuang Li and Jena C. McDaniel and Nancy C. Brady and Agata Rozga and Fuxin Li and Le Song and James M. Rehg},
  title = {{Efficient Learning and Decoding of the Continuous-Time Hidden Markov Model for Disease Progression Modeling}},
  year = {2021},
  eprint = {2110.13998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.13998},
}
Figure