CONAN: Complementary Pattern Augmentation for Rare Disease Detection

Limeng Cui, Siddharth Biswal, Lucas M. Glass, Greg Lever, Jimeng Sun, Cao Xiao

Introduction

Detecting rare diseases within Electronic Health Records (EHR) is a classic "needle in a haystack" problem. For conditions like Idiopathic Pulmonary Fibrosis (IPF), prevalence can be as low as 0.04%, creating a massive class imbalance that cripples standard machine learning models. Beyond simple scarcity, researchers face the "uncertain patient gap": rare diseases often take years to diagnose. During this prodromal period, a patient’s medical record increasingly resembles a positive case, yet they remain labeled as "negative" in the data.

Standard approaches like oversampling or basic Generative Adversarial Networks (GANs) often fail because they generate unrealistic data or focus solely on replicating the rare class. They ignore the nuanced "borderline" cases that are essential for a classifier to establish a sharp, reliable decision boundary. To address this, the CONAN (Complementary pattern Augmentation) framework leverages these uncertain patient records to sharpen detection capabilities.

Architecture

CONAN consists of three integrated components designed to transform raw EHR codes into actionable diagnostic insights:

  1. Hierarchical Patient Embedding: To process complex, longitudinal EHR data, CONAN employs a two-level approach. A Transformer (without position embeddings) first aggregates medical codes within individual visits. Subsequently, a Bidirectional LSTM (Bi-LSTM) with self-attention captures the temporal progression of these visits, producing a latent vector ($h$) that represents the patient's comprehensive medical history.
  2. Complementary GAN: Unlike standard GANs that generate data from random noise, CONAN’s generator uses negative (healthy or uncertain) patients as seeds. By applying subtle modifications to these embeddings, it creates "candidate positive" samples. These samples are "complementary"—specifically designed to sit on the edge of the positive and negative distributions.
  3. Disease Detector: This component serves as both the GAN's discriminator and a max-margin classifier. It utilizes Focal Loss to prevent the model from being overwhelmed by "easy" negative cases, encouraging a large margin between the generated positive and negative clusters.
The CONAN framework architecture, featuring hierarchical patient embedding and a complementary GAN.

The Power of Complementary Samples

The core innovation of CONAN lies in its use of negative samples to generate synthetic positives. By starting with a real patient who does not yet have a diagnosis but may exhibit similar symptoms, the GAN creates "borderline" cases. These are far more useful for training than samples generated from pure Gaussian noise because they force the model to learn the subtle distinctions that separate a healthy individual from one on the verge of a rare disease diagnosis.

Visualizing the Decision Boundary

When comparing CONAN to other methods, the difference in latent space coverage is stark. While regular GANs and medGAN often fail to capture the complexity of the rare class distribution, and PU (Positive-Unlabeled) learning struggles with the boundary, CONAN effectively populates the "uncertain" region. This results in a much sharper decision boundary, which is critical for reducing false positives in low-prevalence scenarios.

Comparison of latent space distributions across different augmentation methods, showing CONAN's superior coverage of the decision boundary.

Experimental Results

The researchers evaluated CONAN using massive, real-world longitudinal data from IQVIA, covering two specific tasks:

  • Inflammatory Bowel Disease (IBD): A low-prevalence task (0.44%).
  • Idiopathic Pulmonary Fibrosis (IPF): A rare disease task (0.04%).

CONAN significantly outperformed state-of-the-art baselines, including specialized PU learning models and other GAN-based augmenters:

  • IBD Detection: Achieved a .96 PR-AUC, a 50.1% relative improvement over the best baseline.
  • IPF Detection: Achieved a .22 PR-AUC, a 41.3% relative improvement. While .22 may appear low in isolation, it represents a massive leap in predictive power for a population with 0.04% prevalence.
  • Early Detection: In longitudinal experiments, CONAN remained competitive even when using only the first 20% of a patient's visits, suggesting a strong potential for identifying rare diseases years before a clinical diagnosis is typically reached.

Conclusion and Future Directions

CONAN demonstrates that the key to finding the "needle" is often hidden in the "haystack" of negative and uncertain samples. By focusing on the decision boundary rather than just the rare class, it provides a robust framework for early intervention. Future work may involve cross-disease learning to leverage shared patterns across similar conditions and the integration of unstructured clinical notes via NLP to provide deeper context beyond structured medical codes.

Summary updated

BibTeX
@inproceedings{cui2020conan,
  author = {Limeng Cui and Siddharth Biswal and Lucas M. Glass and Greg Lever and Jimeng Sun and Cao Xiao},
  title = {{CONAN: Complementary Pattern Augmentation for Rare Disease Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i01.5401},
}
Figure