Inferring multimodal latent topics from electronic health records

Yue Li, Pratheeksha Nair, Xing Han Lù, Zhi Wen, Yuening Wang, Amir Ardalan Kalantari Dehaghi, Yan Miao, Weiqi Liu, Tamás Ördög, Joanna M. Biernacka, Euijung Ryu, Janet E. Olson, Mark A. Frye, Aihua Liu, Liming Guo, Ariane Marelli, Yuri Ahuja, José Dávila-Velderrain, Manolis KellisNature Communications 2020

Abstract

Electronic health records (EHR) are rich heterogeneous collections of patient health information, whose broad adoption provides clinicians and researchers unprecedented opportunities for health informatics, disease-risk prediction, actionable clinical recommendations, and precision medicine. However, EHRs present several modeling challenges, including highly sparse data matrices, noisy irregular clinical notes, arbitrary biases in billing code assignment, diagnosis-driven lab tests, and heterogeneous data types. To address these challenges, we present MixEHR, a multi-view Bayesian topic model. We demonstrate MixEHR on MIMIC-III, Mayo Clinic Bipolar Disorder, and Quebec Congenital Heart Disease EHR datasets. Qualitatively, MixEHR disease topics reveal meaningful combinations of clinical features across heterogeneous data types. Quantitatively, we observe superior prediction accuracy of diagnostic codes and lab test imputations compared to the state-of-art methods. We leverage the inferred patient topic mixtures to classify target diseases and predict mortality of patients in critical conditions. In all comparison, MixEHR confers competitive performance and reveals meaningful disease-related topics.

Introduction

Electronic Health Records (EHR) represent a cornerstone for modern precision medicine, yet they remain notoriously difficult to analyze due to their inherent complexity. EHR data is fundamentally "multimodal," comprising a mix of unstructured clinical notes, discrete billing codes (ICD-9), and continuous laboratory results.

Effective modeling of this data must overcome three primary hurdles:

  1. Extreme Sparsity: Most patients interact with only a tiny fraction of the thousands of possible clinical codes and tests.
  2. Heterogeneity: Integrating disparate data types—such as the free-text "words" of a physician's note with the binary flags of a procedure—requires sophisticated mathematical balancing.
  3. Informative Missingness (NMAR): In clinical settings, data is rarely "missing at random." The absence of a specific lab test often indicates a clinician's suspicion (or lack thereof), serving as a vital clinical signal in itself.

Existing models frequently "flatten" these nuances, failing to account for the underlying reasons why certain data points are missing or how different data types interact to define a patient's state.

The MixEHR Framework

To address these challenges, we introduce MixEHR, a multi-view Bayesian topic model. Building upon the principles of Latent Dirichlet Allocation (LDA), MixEHR extends the concept of topic modeling to handle the multi-faceted nature of medical data.

Overview of the MixEHR framework, including data integration (a), the probabilistic model (b), and variational inference (c).

Multi-view Factorization

Rather than treating all data as a single homogeneous set, MixEHR employs a two-level architecture. At the lower level, it utilizes data-type-specific models to preserve the unique characteristics of notes, labs, and codes. These are linked at the higher level by a common "loading matrix," which represents a patient's unique mixture of latent disease topics.

Modeling the "Missing"

To account for informative missingness in lab tests, MixEHR assigns latent topics to both the result of a test and the indicator of whether the test was performed. This allows the model to derive clinical insight from the very act of a test being ordered.

Scalable Inference

To handle massive datasets like MIMIC-III (containing over 16 million observations), we developed a collapsed variational Bayesian inference algorithm. This approach provides the scalability required for real-world EHR systems without the prohibitive computational costs associated with traditional Markov Chain Monte Carlo (MCMC) sampling.

Validation and Key Insights

MixEHR was validated across three diverse real-world datasets: the publicly available MIMIC-III (ICU patients), the Mayo Clinic Bipolar Disorder dataset (psychiatric traits), and the Quebec Congenital Heart Disease (CHD) dataset (longitudinal data spanning 28 years).

Meta-Phenotypes and Interpretability

Unlike "black-box" deep learning approaches, MixEHR generates human-readable "meta-phenotypes." For example, a topic might cluster the ICD-9 code for cirrhosis with clinical notes mentioning "ascites" and specific abnormal lab results. This joint modeling prevents abundant data types (like notes) from overwhelming rarer, highly specific signals (like specialized labs).

Performance Metrics

  • Prediction Accuracy: MixEHR achieved a median diagnostic code prediction accuracy of 88.9%, outperforming standard LDA (83.3%).
  • Imputation: The model significantly outperformed Multivariate Imputation by Chained Equations (MICE) in filling missing lab results.
  • Clinical Utility: In the Mayo dataset, MixEHR achieved an AUROC of 0.85 for classifying Bipolar Disorder. In MIMIC-III, it reached the highest AUPRC (31.62%) for mortality prediction.

Conclusion and Future Directions

MixEHR demonstrates that Bayesian topic models can effectively extract meaningful clinical insights from messy, heterogeneous EHR data. While the current model provides a powerful "snapshot" of patient health, future work will focus on natively integrating temporal dynamics to better predict disease progression over time. Additionally, improving the integration of subjective patient-provided information and developing "online" learning capabilities will be essential for real-time clinical decision support.

Summary updated

BibTeX
@inproceedings{li2020inferring,
  author = {Yue Li and Pratheeksha Nair and Xing Han Lù and Zhi Wen and Yuening Wang and Amir Ardalan Kalantari Dehaghi and Yan Miao and Weiqi Liu and Tamás Ördög and Joanna M. Biernacka and Euijung Ryu and Janet E. Olson and Mark A. Frye and Aihua Liu and Liming Guo and Ariane Marelli and Yuri Ahuja and José Dávila-Velderrain and Manolis Kellis},
  title = {{Inferring multimodal latent topics from electronic health records}},
  booktitle = {Nature Communications},
  year = {2020},
  doi = {10.1038/s41467-020-16378-3},
}
Figure