NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Doctor AI: Predicting Clinical Events via Recurrent Neural Networks

Edward Choi, Mohammad Taha Bahadori, Jimeng Sun

Abstract

Electronic Health Records (EHRs) contain rich longitudinal data, yet most predictive models are limited to specific outcomes. This paper presents Doctor AI, a generic temporal model based on Recurrent Neural Networks (RNNs) designed to predict the multi-label clinical codes and timing of future patient visits. Utilizing Gated Recurrent Units (GRUs), Doctor AI captures complex dependencies in medical histories. Experimental results on large-scale EHR data show that Doctor AI significantly outperforms traditional baselines, achieving up to 79% Recall@30. Additionally, the model demonstrates robust transfer learning, allowing knowledge from large datasets to enhance predictions on smaller, data-constrained cohorts.

Introduction

In modern healthcare, physicians manage vast amounts of data within Electronic Health Records (EHRs). However, existing clinical decision support systems often focus on narrow, single-outcome predictions, such as readmission risk for a specific disease. These "one-trick pony" models fail to capture the holistic and evolving nature of a patient's health trajectory. Doctor AI addresses this by proposing a unified architecture that treats medical history as a sequence of events, aiming to predict the entire set of diagnoses and medications for a patient's next encounter.

Methods

The core of Doctor AI is a Recurrent Neural Network (RNN) utilizing Gated Recurrent Units (GRUs). GRUs are particularly effective for EHR data as they can maintain long-term dependencies while remaining computationally efficient.

Architecture of Doctor AI using Gated Recurrent Units (GRUs) to process sequential patient visits.

Key Architectural Features

  • Multi-label Prediction: The model outputs a high-dimensional "multi-hot" vector, representing the probability of various diagnosis and medication codes for the upcoming visit.
  • Temporal Modeling: Unlike static models, Doctor AI incorporates the time elapsed between visits as an input and predicts the duration until the next visit as a continuous output.
  • Medical Code Embeddings: To handle over 40,000 unique medical codes, the authors employ an embedding layer initialized with Skip-gram (Word2Vec) vectors, which accelerates convergence and improves accuracy.
  • Joint Optimization: The training process minimizes a composite loss function combining cross-entropy for categorical predictions (codes) and squared loss for temporal predictions (duration).

Experimental Setup

The model was evaluated using two distinct datasets: the primary Sutter Health dataset (263,706 patients) and the publicly available MIMIC II dataset (2,695 ICU patients). To manage complexity, granular ICD-9 codes were aggregated into 1,183 3-digit categories, and medications were grouped into 595 drug classes.

Results and Discussion

Doctor AI demonstrated superior performance across all predictive tasks compared to standard baselines like Logistic Regression and Multi-layer Perceptrons (MLP).

Performance comparison of Doctor AI (RNN variants) against baseline models across different recall metrics.

Performance Highlights

  • High Recall: The model achieved a Recall@30 of 79.58% for diagnosis prediction, a significant improvement over the "Most Frequent" baseline (71.68%) and MLP (64.03%).
  • Transfer Learning Success: A key finding was the effectiveness of transfer learning. A model pre-trained on the massive Sutter Health dataset and fine-tuned on MIMIC II outperformed a model trained solely on MIMIC II by 10%. This suggests that large-scale clinical knowledge can be effectively "exported" to smaller institutions.
  • Clinical Utility: By providing a ranked list of potential future events, Doctor AI functions as a differential diagnosis assistant, aligning with the iterative nature of clinical reasoning.

Conclusion

Doctor AI represents a shift toward more comprehensive and anticipatory clinical decision support. By leveraging the sequential nature of EHR data through RNNs, the model provides a scalable framework for predicting complex patient trajectories. While challenges remain in predicting exact visit timing and incorporating unstructured data, Doctor AI establishes a strong foundation for intelligent, data-driven healthcare.

Summary updated

BibTeX
@inproceedings{choi2016doctor,
  author = {Edward Choi and Mohammad Taha Bahadori and Jimeng Sun},
  title = {{Doctor AI: Predicting Clinical Events via Recurrent Neural Networks}},
  booktitle = {MLHC},
  year = {2016},
  url = {https://openreview.net/forum?id=Hq7Zxn7cLs},
}
Figure