Comparing Rule-Based and Deep Learning Models for Patient Phenotyping

Sebastian Gehrmann, Franck Dernoncourt, Yeran Li, Eric T. Carlson, Joy T. Wu, Jonathan Welt, John Foote Jr., Edward T. Moseley, David W. Grant, Patrick D. Tyler, Leo Anthony CeliarXiv 2017

Introduction

Electronic Health Records (EHRs) contain a wealth of clinical information, yet much of it remains locked within unstructured text, such as clinician notes and discharge summaries. Patient phenotyping—the process of identifying whether a patient has a specific medical condition—is essential for clinical research and population health management. Traditionally, this task has relied on rule-based systems like cTAKES, which require medical experts to manually construct exhaustive dictionaries of synonyms, abbreviations, and misspellings. This manual process is labor-intensive and difficult to scale across thousands of potential conditions.

This study investigates whether deep learning models, specifically Convolutional Neural Networks (CNNs), can outperform these traditional rule-based and n-gram models while reducing the need for manual feature engineering.

Methodology

The researchers compared three primary approaches to phenotyping:

  1. Convolutional Neural Networks (CNNs): Based on the Collobert and Kim architecture, this model treats clinical notes as sequences of word embeddings pre-trained on the MIMIC-III database. It utilizes filters of varying widths (2 to 5 words) to automatically identify phrases indicative of specific phenotypes.
  2. N-gram Baselines: Logistic regression models using bigrams and trigrams as input features.
  3. Concept-Extraction (cTAKES): A traditional NLP pipeline mapping text to Clinical University Identifiers (CUIs). The study evaluated both a "raw" version and a "filtered" version where clinicians manually selected relevant codes.
Architecture of the proposed Convolutional Neural Network (CNN) for patient phenotyping.

To address the "black box" nature of deep learning, the authors employed saliency mapping. By calculating the gradient of the loss function relative to the input, they visualized the specific phrases that most influenced the CNN's predictions, ensuring the model's decisions aligned with clinical logic.

Experimental Setup

The study utilized 1,610 discharge summaries from the MIMIC-III database. A team of seven clinicians annotated these notes for 10 distinct phenotypes. Each note was labeled at least twice to establish a high-quality gold standard for evaluation.

Definitions and prevalence of the ten clinical phenotypes used for model evaluation.

Key Results and Discussion

The CNN model consistently outperformed all other baselines across all 10 phenotyping tasks, achieving an average F1-score of 76 (83 PPV, 71 sensitivity). In specific categories like Obesity and Psychiatric Disorders, the CNN's F1-score exceeded the next best model by up to 37 points.

Automatic Feature Discovery and Interpretability

One of the most significant findings was the CNN's ability to learn synonyms automatically. For instance, it recognized "EtOH" and "alcohol" as functionally identical for the Alcohol Abuse task without human intervention. Furthermore, saliency mapping revealed that the CNN often identified more specific clinical markers than rule-based systems. While cTAKES might flag the generic term "Heart," the CNN identified specific indicators like "EF 20 30" (Ejection Fraction) for heart failure.

Scalability and Performance

While n-gram models occasionally achieved high precision, their sensitivity was often poor. The CNN provided a more robust balance, capturing significantly more positive cases. Crucially, a single CNN architecture can be trained for multiple phenotypes simultaneously, whereas rule-based systems require a bespoke, expert-curated algorithm for every new condition.

Conclusion

Convolutional Neural Networks represent a significant advancement in patient phenotyping, offering superior accuracy and scalability compared to traditional methods. By automating feature discovery and providing interpretable outputs through saliency mapping, these models reduce the manual burden on clinicians while improving the utility of unstructured EHR data. Future work will focus on validating these models across different types of clinical text and developing tools to highlight salient phrases for real-world clinical workflows.

Summary updated

BibTeX
@misc{gehrmann2017comparing,
  author = {Sebastian Gehrmann and Franck Dernoncourt and Yeran Li and Eric T. Carlson and Joy T. Wu and Jonathan Welt and John Foote Jr. and Edward T. Moseley and David W. Grant and Patrick D. Tyler and Leo Anthony Celi},
  title = {{Comparing Rule-Based and Deep Learning Models for Patient Phenotyping}},
  year = {2017},
  eprint = {1703.08705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.08705},
}
Figure