Medi-Care AI: Predicting Medications From Billing Codes via Robust Recurrent Neural Networks

Deyin Liu, Lin Wu, Xue Li

TL;DR

Medi-Care AI introduces a robust Recurrent Neural Network (RNN) framework designed to predict a patient's medication list from messy, incomplete billing codes. By explicitly modeling temporal data decay and injecting multiplicative noise into hidden states, the model achieves significant performance gains over existing clinical prediction benchmarks.

What Problem Does This Paper Address?

Electronic Health Records (EHRs) are a goldmine for clinical research, but they are notoriously "noisy." Studies suggest that over 50% of electronic medication lists contain omissions, and roughly 25% of medications actually taken by patients never make it into the record. This creates a massive hurdle for automated systems trying to assist doctors.

The authors identify two specific types of "noise" in medical data:

  1. Informative Missingness: In healthcare, the fact that a value is missing is often a signal in itself (e.g., a doctor didn't order a test because the patient seemed stable).
  2. Documentation Errors: Omissions and incorrect entries that occur during the high-pressure environment of clinical billing.

Existing models often struggle with these gaps, either by ignoring missing data or using simple imputation methods that don't capture the underlying temporal patterns of a patient's health journey.

Methods

The researchers built their framework on a Gated Recurrent Unit (GRU) architecture, a type of RNN well-suited for sequential data. They introduced two novel "robustness" layers:

  • Temporal Decay Mechanism: Instead of just filling in a missing billing code with the last known value, the model applies a decay rate. As time passes without a new observation, the influence of the old value "fades" toward an empirical mean. This reflects the reality that medical observations become less relevant the longer ago they were recorded.
  • Multiplicative Noise Injection: To handle errors and variability, the authors injected random noise (scaled Bernoulli variables) into the RNN's hidden states during training. This acts as a sophisticated form of dropout, preventing the network's neurons from "co-adapting" too closely to specific (and potentially erroneous) data points. This forces the model to learn more generalized, stable representations of a patient's status.

The final architecture uses these robust hidden states to feed a softmax layer that predicts the probability of various therapeutic medication classes.

Datasets

The model was evaluated on two major real-world healthcare datasets:

  • Physio-Net Challenge 2012: A collection of 8,000 ICU records containing multivariate clinical time series (e.g., heart rate, glucose, albumin).
  • MIMIC-III: A massive, publicly available dataset from Beth Israel Deaconess Medical Center. The authors extracted 99 time-series features from nearly 20,000 admission records to predict ICD-9 diagnostic categories and medication orders.

Key Insights and Ideas

  • Missingness as a Feature: The paper reinforces the idea that missing data in EHRs isn't just a nuisance; it's a pattern. By modeling the rate at which information decays, the model captures the clinical rhythm of patient visits.
  • Hidden State Regularization vs. Input Imputation: While previous models like GRU-Decay applied decay to both inputs and hidden states, this paper argues that hidden states are better served by noise injection. This "stress-tests" the recurrence function, making the model more resilient to the "multiple errors" common in billing sequences.
  • The "Long View" Advantage: The authors found that prediction accuracy increases significantly as the duration of a patient's medical history grows. Patients with more visits are often more severely ill, making their future needs more predictable for a model that can effectively synthesize long-term temporal dependencies.

Key Results

The proposed robust RNN outperformed several strong baselines, including Doctor AI and GRU-Decay.

  • AUC Improvements: The model achieved an Area Under the Curve (AUC) of 0.90 on Physio-Net and 0.78 on MIMIC-III, representing performance gains of 13% and 7% respectively over state-of-the-art methods.
  • Recall Accuracy: In forecasting future medical activities (diagnosis and medication), the model consistently hit higher "Top-k Recall" scores. For example, in predicting medications (Rx) on MIMIC-III, it achieved a Top-10 Recall of 77.2%, significantly higher than Doctor AI's 68.2%.
  • Clinical Utility: A case study on a Parkinson’s patient demonstrated that even when specific diagnostic codes were missing from the record, the model could still correctly predict the need for dopaminergic agents and antiepileptics based on the broader temporal context of the billing sequence.

Limitations and Future Work

The authors acknowledge that while billing codes are a strong proxy for patient status, they are only one piece of the puzzle. Future iterations of Medi-Care AI could be improved by:

  • Integrating Diverse Data: Incorporating laboratory test results, patient demographics, and vital signs to create a more holistic patient representation.
  • Rare Disease Prediction: Improving the model's sensitivity to rare conditions where data is even more sparse.
  • Sequence Ordering: Finding better ways to convert medication data—which is often recorded as a list rather than a sequence—into reliably ordered time-series data to better exploit the strengths of RNNs.

Summary updated

Abstract

In this paper, we present an effective deep prediction framework based on robust recurrent neural networks (RNNs) to predict the likely therapeutic classes of medications a patient is taking, given a sequence of diagnostic billing codes in their record. Accurately capturing the list of medications currently taken by a given patient is extremely challenging due to undefined errors and omissions. We present a general robust framework that explicitly models the possible contamination through overtime decay mechanism on the input billing codes and noise injection into the recurrent hidden states, respectively. By doing this, billing codes are reformulated into its temporal patterns with decay rates on each medical variable, and the hidden states of RNNs are regularised by random noises which serve as dropout to improved RNNs robustness towards data variability in terms of missing values and multiple errors. The proposed method is extensively evaluated on real health care data to demonstrate its effectiveness in suggesting medication orders from contaminated values.
BibTeX
@inproceedings{liu2020medi,
  author = {Deyin Liu and Lin Wu and Xue Li},
  title = {{Medi-Care AI: Predicting Medications From Billing Codes via Robust Recurrent Neural Networks}},
  booktitle = {Neural Networks},
  year = {2020},
  doi = {10.1016/j.neunet.2020.01.001},
}
Figure