Supervised topic models for clinical interpretability

Michael C. Hughes, Huseyin Melih Elibol, Thomas H. McCoy, Roy H. Perlis, Finale Doshi‐VelezarXiv 2016 · DOI

Abstract: Supervised topic models can help clinical researchers find interpretable cooccurence patterns in count data that are relevant for diagnostics. However, standard formulations of supervised Latent Dirichlet Allocation have two problems. First, when documents have many more words than labels, the influence of the labels will be negligible. Second, due to conditional independence assumptions in the graphical model the impact of supervised labels on the learned topic-word probabilities is often minimal, leading to poor predictions on heldout data. We investigate penalized optimization methods for training sLDA that produce interpretable topic-word parameters and useful heldout predictions, using recognition networks to speed-up inference. We report preliminary results on synthetic data and on predicting successful anti-depressant medication given a patient's diagnostic history.

Introduction

Clinical researchers rely on topic models like Latent Dirichlet Allocation (LDA) to transform thousands of complex medical codes into a manageable set of interpretable "topics" (e.g., cardiovascular or diabetic patterns). Supervised LDA (sLDA) is intended to extend this by discovering topics specifically optimized for predicting patient outcomes. However, sLDA faces two major hurdles in clinical application: the Signal-to-Noise Problem, where high-volume medical codes drown out sparse labels, and the Independence Trap, where the model's structure prevents labels from effectively shaping the underlying topic-word definitions.

Methodology

We propose a three-part framework to resolve these issues:

  1. Weighted Objectives: We introduce penalty weights ($w_x$ and $w_y$) to manually adjust the importance of labels relative to word counts, preventing the labels from being ignored during training.
  2. End-to-End Optimization (Ideal Embedding): We optimize topic discovery and label prediction simultaneously. By using back-propagation through the optimization, we ensure the mapping of words to topics is directly informed by the predictive goal.
  3. Recognition Networks (Approximate Embedding): To scale to large datasets, we use a Multi-Layer Perceptron (MLP) to approximate the complex topic mapping. This "shortcut" provides a significant speedup without substantial loss in accuracy.

Experimental Results

Toy Bars Experiment

We first validated the approach on a synthetic "bars" dataset to test topic recovery. This experiment highlights the trade-off between generative interpretability and discriminative focus.

Comparison of topic recovery and error rates across different training objectives and weights on the synthetic bars dataset.

As seen in the results, standard sLDA often fails to recover true underlying topics when labels are sparse. Our proposed end-to-end methods, especially when weights are tuned, successfully recover the latent structure while maintaining competitive error rates.

Clinical EHR Performance

We evaluated the model on a massive dataset of 875,080 patient encounters to predict the success of 16 common anti-depressants based on diagnostic history.

AUC performance for predicting antidepressant success across various drugs and model configurations.

Our supervised models significantly outperformed standard unsupervised LDA. For example, predicting the success of amitriptyline achieved an AUC of 0.77. While a simple Bag-of-Words (BoW) model still leads in raw predictive power, the sLDA approach offers the interpretability required for clinical trust. Crucially, the approximate embedding method was 3.6x to 6x faster than the ideal method, enabling the processing of nearly a million records in approximately 8 hours.

Conclusion and Future Work

By utilizing weighted objectives and recognition networks, we can train supervised topic models that are both interpretable and computationally efficient for large-scale clinical data. Future research will focus on data-driven initializations to help the model avoid local optima in high-dimensional medical code spaces and expanding the prediction task to a broader range of medications.

Summary updated

Abstract

Supervised topic models can help clinical researchers find interpretable cooccurence patterns in count data that are relevant for diagnostics. However, standard formulations of supervised Latent Dirichlet Allocation have two problems. First, when documents have many more words than labels, the influence of the labels will be negligible. Second, due to conditional independence assumptions in the graphical model the impact of supervised labels on the learned topic-word probabilities is often minimal, leading to poor predictions on heldout data. We investigate penalized optimization methods for training sLDA that produce interpretable topic-word parameters and useful heldout predictions, using recognition networks to speed-up inference. We report preliminary results on synthetic data and on predicting successful anti-depressant medication given a patient's diagnostic history.
BibTeX
@misc{hughes2016supervised,
  author = {Michael C. Hughes and Huseyin Melih Elibol and Thomas H. McCoy and Roy H. Perlis and Finale Doshi‐Velez},
  title = {{Supervised topic models for clinical interpretability}},
  year = {2016},
  eprint = {1612.01678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.01678},
}
Figure