A latent topic model for mining heterogenous non-randomly missing electronic health records data

Yue Li, Manolis KellisarXiv 2018

Introduction

Electronic Health Records (EHR) represent a vast repository of clinical information, yet their utility for large-scale research is often hampered by significant data quality issues. EHR data is characterized by high dimensionality, extreme sparsity, and heterogeneity, encompassing unstructured clinical notes, structured diagnostic codes, and continuous laboratory values.

A critical challenge in EHR analysis is the phenomenon of Non-Missing At Random (NMAR) data. Unlike typical datasets where missingness might be stochastic, clinical data is often missing because of deliberate medical decision-making; for instance, a specific diagnostic test is only performed if a clinician suspects a particular pathology. Standard analytical models that assume data is missing at random (MAR) often produce biased results in this context. This paper presents MixEHR, an unsupervised generative framework designed to explicitly model this observation bias, transforming missingness from a nuisance into a valuable clinical signal.

The MixEHR Model

MixEHR is a Bayesian unsupervised learning approach that extends Latent Dirichlet Allocation (LDA) and collaborative filtering to the clinical domain. It adopts a "Patient-as-Document" metaphor, where individual patients are treated as documents and diseases are modeled as latent "topics" that generate the observed clinical features.

As illustrated in the graphical model (Figure 1), MixEHR introduces several key technical innovations:

  1. Joint Modeling of Presence and Value: To address NMAR data, the model jointly accounts for the observation of a lab test ($r_{lj}$) and the actual result of that test ($y_{lj}$). By using a Beta-Binomial distribution to model the observation mechanism, MixEHR learns the underlying patterns of why certain tests are ordered.
  2. Multi-View Integration: The framework handles diverse discrete data categories—such as ICD-9 codes, prescriptions, and clinical notes—simultaneously. Each category is governed by its own distribution, yet all are tied together through shared latent disease topics ($\theta_j$).
  3. Scalable Inference: To facilitate the analysis of millions of records, the authors implemented a Joint Collapsed Variational Bayesian (CVB) inference algorithm. This approach offers superior stability and computational efficiency compared to traditional Gibbs sampling, as evidenced by the log-likelihood convergence plots shown in Figure 1.

Data and Evaluation

The model was rigorously evaluated using the MIMIC-III (Medical Information Mart for Intensive Care) dataset, which is currently the largest publicly available EHR resource. The dataset used in this study comprised approximately 46,500 patients and 53,000 unique clinical features, totaling over 12.8 million phenotypic observations. These observations included unstructured clinical notes, ICD-9 diagnosis codes, DRG billing codes, CPT procedure codes, prescriptions, and laboratory results.

Results and Clinical Utility

MixEHR demonstrated significant improvements over baseline models in both predictive accuracy and clinical interpretability.

Predictive Performance

In the task of predicting ICU mortality, MixEHR achieved an AUROC of 92.1% and an AUPRC of 63.4%. This performance represents a substantial improvement over standard LDA, which achieved 85.5% AUROC and 50.9% AUPRC. Simulation studies further confirmed that MixEHR remains robust under heavy NMAR bias, whereas models assuming MAR data experience significant performance degradation as bias increases.

Unsupervised Phenotyping

A primary strength of MixEHR is its ability to perform unsupervised phenotyping. The model successfully discovered cross-modal disease topics that align with established medical knowledge. For example, a single latent topic might be characterized by the clinical note "HIV," the ICD-9 code for human immunodeficiency virus (042), and an abnormal CD4 count lab result. This holistic view allows for the discovery of complex comorbidities without the need for manual labeling by human experts.

Discussion and Future Work

MixEHR represents a significant advancement in the automated analysis of messy EHR data by treating missingness as an informative signal. However, the current iteration of the model treats patient records as static "bags of features," ignoring the longitudinal progression of disease.

Future research will focus on incorporating temporal dynamics to track patient trajectories over time. Such longitudinal modeling could enable earlier detection of clinical deterioration and provide more granular insights into disease progression in intensive care settings. Additionally, while MixEHR has proven effective on ICU data, further validation on diverse outpatient datasets is required to confirm its generalizability across the broader healthcare landscape.

Summary updated

BibTeX
@misc{li2018latent,
  author = {Yue Li and Manolis Kellis},
  title = {{A latent topic model for mining heterogenous non-randomly missing electronic health records data}},
  year = {2018},
  eprint = {1811.00464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.00464},
}
Figure