Prediction-Constrained Topic Models for Antidepressant Recommendation

Michael C. Hughes, Gabriel Hope, Leah Weiner, Thomas H. McCoy Jr., Roy H. Perlis, Erik B. Sudderth, Finale Doshi-VelezarXiv 2017

TL;DR

This paper introduces a new way to train topic models for prediction tasks, like recommending medications. By explicitly balancing the model's ability to explain data with its ability to predict outcomes, they achieve better recommendations and more interpretable results than previous methods, especially in complex domains like electronic health records.

What Problem Does This Paper Address?

Electronic health records (EHRs) are rich with information, but extracting meaningful insights for clinical decision-making is challenging. Topic models, like Latent Dirichlet Allocation (LDA), are great at finding underlying themes (topics) in large datasets, which can help clinicians understand complex patient histories. A natural next step is to use these topics to predict things like which medication might work best for a patient. However, existing "supervised" topic models often struggle to achieve accurate predictions. This is because they tend to either prioritize explaining the raw data (like LDA) or focus too much on prediction, leading to models that don't truly capture the data's structure. The core problem is a mismatch: we want to predict patient outcomes from their medical history, not the other way around, and existing methods don't properly enforce this asymmetry.

Methods

The authors propose a novel "Prediction-Constrained" (PC) objective for training supervised topic models. The key innovation is a new learning objective that explicitly balances two goals:

  1. Faithful Data Explanation: The model should still be good at generating and explaining the high-dimensional count data (e.g., medical codes).
  2. Accurate Prediction: The learned topics should enable accurate prediction of associated labels (e.g., medication success).

This is achieved by formulating an optimization problem that minimizes the data's generative loss subject to a constraint on the prediction loss. Through mathematical transformations (Karush-Kuhn-Tucker conditions), this constrained problem becomes an unconstrained one, effectively introducing a penalty multiplier ($\lambda_\epsilon$) that balances the two objectives.

A crucial aspect is how the model handles the latent topic distributions ($\pi_d$). Since directly computing these is intractable, they use a "maximum a posteriori" (MAP) estimate of $\pi_d$ given the observed data ($x_d$) as a deterministic embedding. This ensures that the same representation of data is used during training and prediction. The MAP estimation itself is performed using exponentiated gradient updates, and the overall PC-SLDA objective is then optimized using standard gradient descent methods like Adam.

Datasets

  • EHR Dataset: The primary dataset used is a collection of de-identified electronic health records from tertiary care hospitals. This dataset contains information on patients with major depressive disorder, including ICD-9/10 codes, procedures, labs, and medications. The goal is to predict the success of 11 common antidepressants. The data was preprocessed into a bag-of-words representation of patient history before successful treatment, with a vocabulary of 5126 codewords.
  • Toy Bars Case Study: A synthetic dataset was created to specifically study the tradeoffs between modeling data and predicting labels under misspecification. This dataset features a 3x3 grid structure for word co-occurrences, with binary labels that are unambiguously indicated by a specific word. This allows for controlled evaluation of how different training methods handle data structure versus prediction accuracy.

Key Insights and Ideas

  • Asymmetry is Key: The fundamental insight is that prediction tasks have an inherent asymmetry (predicting Y from X, not X from Y). Existing supervised topic models often fail to respect this, leading to suboptimal predictions.
  • Balancing Act: The PC objective provides a principled way to balance the often-competing goals of explaining data and predicting labels. This is crucial when models are misspecified (i.e., the generative assumptions don't perfectly match reality).
  • Interpretable Predictions: By forcing topics to be useful for prediction, the learned topic-word distributions become more relevant to the specific task, leading to more interpretable insights for clinicians.
  • Overfitting Mitigation: Methods that solely focus on prediction (like BP-sLDA) can overfit the training data and perform poorly on held-out data, while unsupervised methods (like Gibbs LDA) explain the data well but don't leverage supervisory signals for prediction. PC-sLDA aims to find a sweet spot.

Key Results

  • Improved Antidepressant Recommendation: In the EHR case study, PC-sLDA achieved competitive or improved prediction accuracy (AUC) compared to unsupervised Gibbs-LDA and logistic regression, especially when using a sufficient number of topics. It also outperformed a purely discriminative approach (BP-sLDA) which tended to overfit.
  • Better Data Likelihoods: While purely discriminative models struggled to explain the data, PC-sLDA showed better held-out data likelihoods than BP-sLDA, demonstrating its ability to capture essential data properties.
  • Interpretable Topics: The learned topic-word probabilities for PC-sLDA were more relevant to the prediction task. For example, a topic that was previously about general preventative care in unsupervised LDA evolved to focus on "counseling" in PC-sLDA, which was hypothesized to be more relevant for predicting success with certain antidepressants.
  • Toy Study Validation: The toy bars case study visually demonstrated that PC-sLDA (with appropriate $\lambda_\epsilon$) was the only method that achieved both good prediction scores and good data explanations, reaching the "sweet spot" in the fitness landscape.

Limitations and Future Work

  • Hyperparameter Tuning: The main hyperparameter, $\lambda_\epsilon$, requires careful selection, often involving training multiple models. The authors suggest initializing models with parameters from a lower $\lambda_\epsilon$ to mitigate this cost.
  • Non-Convexity: While the MAP estimation for the convex case is straightforward, the non-convex case requires reparameterization techniques.
  • Future Directions: The authors suggest exploring the PC objective with improved models for observational health records that can account for factors like patient demographics, temporal evolution, or causality. They also mention that future work could investigate structured prediction tasks for drug combinations.

Summary updated

BibTeX
@misc{hughes2017prediction,
  author = {Michael C. Hughes and Gabriel Hope and Leah Weiner and Thomas H. McCoy Jr. and Roy H. Perlis and Erik B. Sudderth and Finale Doshi-Velez},
  title = {{Prediction-Constrained Topic Models for Antidepressant Recommendation}},
  year = {2017},
  eprint = {1712.00499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.00499},
}
Figure