Unveiling Discrete Clues: Superior Healthcare Predictions for Rare Diseases

Chuang Zhao, Hui Tang, Jiheng Zhang, Xiaomeng Li

In the world of healthcare AI, the "rich get richer" problem is a literal life-and-death issue. Electronic Health Records (EHRs) follow a brutal long-tail distribution: while common diseases like hypertension have mountains of data to train on, rare diseases—which often represent the most challenging diagnostic cases—suffer from extreme data sparsity.

A new paper, "Unveiling Discrete Clues: Superior Healthcare Predictions for Rare Diseases," introduces a framework called UDC to bridge this gap. By mapping sparse clinical signals and rich medical text into a shared "discrete" latent space, the authors provide a way to give rare diseases the same predictive representation as their common counterparts.

TL;DR

UDC addresses the data scarcity of rare diseases in healthcare prediction by aligning sparse clinical interaction signals with rich textual medical knowledge in a unified discrete latent space. Using a tailored VQ-VAE framework with condition-aware and task-aware calibrations, it significantly improves diagnosis and medication recommendations for rare diseases without compromising performance on common ones.

What Problem Does This Paper Address?

Most healthcare prediction models (like those recommending medications or predicting next-visit diagnoses) rely on collaborative (CO) signals—essentially, patterns of how diseases, procedures, and medications co-occur across thousands of patients.

However, as shown in Figure 1(a), EHR data is highly skewed. In the MIMIC-IV dataset, the top 20% of common diseases account for 95% of interactions, while the bottom 20% (rare diseases) account for a measly 0.2%. Consequently, standard models perform well on the "head" of the distribution but fail miserably on the "tail" (Figure 1(b)).

Figure 1: (a) Disease occurrences across three datasets. (b) Medication recommendation for commonest / rarest diseases.

The challenge is that while we lack interaction data for rare diseases, we have plenty of textual knowledge (medical definitions, symptom descriptions). The gap lies in the fact that these two types of information live in different semantic worlds: one is a graph of patient visits, the other is natural language.

Methods

The authors propose UDC (Unveiling Discrete Clues), a three-stage framework that uses a modified Vector Quantized-Variational Autoencoder (VQ-VAE) to bridge the Text-CO gap.

  1. Stage 1: Pre-training. They train a standard collaborative model (PCM) on the whole dataset and use a pre-trained language model (PLM) like Sap-BERT to get initial embeddings for medical text.
  2. Stage 2: Discrete Representation Learning (DRL). This is the core innovation. They map both text and CO signals into a shared codebook of discrete "symptom codes."
    • Condition-aware Calibration: To distinguish between diseases with similar descriptions (e.g., Type 1 vs. Type 2 Diabetes), they inject visit-level context (like lab results or co-occurring procedures) into the quantization process.
  3. Task-aware Calibration: They use contrastive learning with "hard negatives" (synthetic and mixed-domain targets) to ensure the reconstructed representations are actually useful for the specific downstream task (e.g., predicting a specific medication).
  4. Co-teacher Distillation: A novel update strategy where the text and CO signals act as mutual teachers, forcing the model to align semantically equivalent information into the same discrete codes.
  5. Stage 3: Fine-tuning. For rare diseases, the model replaces their weak CO signals with "enriched" representations derived from their textual descriptions.
Figure 2: Overview of UDC. We pre-train the PCM to establish a robust CO space and then obtain CO and text representations for diseases using PCM and a selected PLM. Next, we train the DRL to align the text and CO signals, followed by fine-tuning the PCM for downstream tasks while keeping the DRL frozen. Q, K, and V denote the parameters for multi-head attention.

Datasets

The model was evaluated on three gold-standard, publicly available healthcare datasets:

  • MIMIC-III: EHR data from ~40,000 critical care patients.
  • MIMIC-IV: A larger successor to MIMIC-III with over 70,000 admissions.
  • eICU: A multi-center database covering over 200,000 patients across the US.

Key Insights and Ideas

  • Discreteness is a Feature, Not a Bug: While many models prefer continuous embeddings, UDC uses discrete codes. This mimics how doctors think (a disease is a collection of discrete symptoms) and makes the mapping between text and clinical interactions much more stable.
  • Text as a Bridge: By forcing the model to learn that the textual description of a rare disease should map to the same latent codes as the clinical interactions of related common diseases, UDC effectively "transfers" knowledge from the head to the tail.
  • Contextual Normalization: The use of condition-aware calibration (Eq. 7 in the paper) is crucial. It prevents the model from producing "average" representations for similar-sounding diseases, ensuring that Type 1 and Type 2 diabetes remain distinct based on their clinical context.

Key Results

UDC consistently outperformed state-of-the-art baselines (like GraphCare, RAREMed, and SeqCare) across all datasets and tasks.

  • Rare Disease Performance: In group-level analyses (Figure 3), UDC showed the most significant gains in the rarest disease groups (G1-G3). For diagnosis prediction on MIMIC-IV, it achieved a 3% improvement in Acc@K.
  • Efficiency: Despite its complexity, UDC is computationally efficient, running significantly faster per epoch than graph-based competitors like SeqCare.
  • Plug-and-Play: The authors demonstrated that UDC can be integrated with various backbones (GRU, Transformer, etc.) and still provide a performance boost.
Figure 3: Group Analysis.

Limitations and Future Work

The authors acknowledge that UDC currently focuses on bridging text and collaborative signals. However, medical data is multi-modal. A patient's record might include medical images (X-rays, MRIs) or genomic data. The authors suggest that future work should explore integrating these additional modalities into the discrete latent space to further enrich rare disease representations.

Summary updated

BibTeX
@inproceedings{zhao2025unveiling,
  author = {Chuang Zhao and Hui Tang and Jiheng Zhang and Xiaomeng Li},
  title = {{Unveiling Discrete Clues: Superior Healthcare Predictions for Rare Diseases}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure