Factorial HMMs with Collapsed Gibbs Sampling for Optimizing Long-term HIV Therapy

Amit Gruber, Chen Yanover, Tal El-Hay, Anders Sönnerborg, Vanni Borghi, Francesca Incardona, Yaara GoldschmidtAISTATS 2018

Introduction

Treating HIV is a complex, long-term challenge. Modern Combined Antiretroviral Therapy (CART) typically utilizes "cocktails" of multiple drugs to suppress viral replication. However, the virus's high mutation rate frequently leads to drug resistance. Current clinical decision support systems often rely on "greedy" algorithms—such as Random Forests or Logistic Regression—that prioritize short-term viral suppression. These models frequently overlook the long-term consequences of resistance mutations and fail to account for patient adherence, a critical factor in treatment success.

To address these gaps, researchers developed FResist, a generative model based on Factorial Hidden Markov Models (FHMMs). FResist is designed to predict the evolution of drug resistance over years, enabling more strategic, long-term therapy planning.

The FResist Model Architecture

The FResist framework leverages the factorial nature of FHMMs to model resistance to multiple drugs simultaneously without the computational explosion associated with standard HMMs. Instead of a single complex state, FResist uses $K$ parallel hidden chains, each representing the virus's resistance to a specific drug.

Evolution of the FResist model structure from a basic HMM (a) to the full model incorporating adherence 'a' and initial resistance 's' (c).

Key innovations in the model include:

  • Modeling Adherence: A latent variable for patient adherence allows the model to distinguish between treatment failure caused by viral resistance versus failure due to missed doses.
  • Collapsed Gibbs Sampling: To overcome the intractability of learning FHMM parameters, the authors developed a novel collapsed Gibbs sampling algorithm. By integrating out continuous variables like mutation probabilities, the algorithm provides a stable and efficient training method for sparse clinical data.
  • Long-term Planning (MDP): By framing therapy selection as a Markov Decision Process (MDP), the model uses dynamic programming to identify treatment sequences that maximize long-term health outcomes.

Experimental Evaluation

The model was rigorously tested using both synthetic and real-world data:

  1. Synthetic Data: Used to evaluate the model's resilience to noise and its ability to recover hidden resistance patterns under varying adherence rates.
  2. EuResist Dataset: A large-scale database containing clinical records for over 65,000 European patients. The study focused on a subset of 1,000 patients with long-term records (at least 30 viral load measurements) spanning 1997 to 2013.

Results and Discussion

FResist demonstrated superior predictive accuracy on the EuResist test set, achieving higher log-likelihoods than standard Logistic Regression and Random Forest models. A significant finding was the impact of patient adherence; the model identified an average adherence rate of approximately 0.87 in real-world data. Accounting for this ~13% non-adherence rate significantly improved the model's ability to predict the emergence of permanent resistance.

Model performance (log-likelihood) on the EuResist dataset as a function of pre-set patient adherence levels.

Furthermore, the model highlighted the importance of initial states. Nearly 47% of first treatments in the dataset failed, often because patients entered the study already carrying resistant strains. By treating resistance as a hidden state inferred from treatment history, FResist provides a more robust mechanism for clinical guidance than models relying solely on surface-level correlations.

Conclusion and Future Work

FResist offers a powerful tool for shifting HIV treatment from short-term fixes to long-term strategic management. While the current model shows great promise, future work will focus on addressing retrospective selection bias in clinical data and incorporating "cross-resistance" maps where single mutations affect multiple drug classes. Additionally, integrating side-effect costs into the MDP framework could help balance clinical efficacy with patient quality of life.

Summary updated

BibTeX
@inproceedings{gruber2018factorial,
  author = {Amit Gruber and Chen Yanover and Tal El-Hay and Anders Sönnerborg and Vanni Borghi and Francesca Incardona and Yaara Goldschmidt},
  title = {{Factorial HMMs with Collapsed Gibbs Sampling for Optimizing Long-term HIV Therapy}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
}
Figure