World Model Augmentation for Imbalanced Multi-Label ECG Classification

Luiz Facury, Jose Geraldo Fernandes, Pedro Robles Dutenhefner, Wagner Meira Jr.LXAI @ ICML 2026

TL;DR

Researchers have developed a "world model" for ECGs that learns how a patient’s heart signature evolves as their clinical condition changes. By repurposing this model to synthesize embeddings for rare cardiac conditions directly in latent space, they significantly improved classification performance on imbalanced data without ever generating a single new waveform.

What Problem Does This Paper Address?

Automated ECG classification is a cornerstone of modern cardiology, but it faces a massive "long-tail" problem. While common arrhythmias are well-represented in datasets, rare conditions or specific combinations of multiple pathologies (multi-label) appear only a handful of times. This imbalance makes it incredibly difficult for standard supervised models to learn the features of the most clinically critical cases.

Existing solutions like GANs or Diffusion models can generate synthetic data, but they are computationally expensive and often struggle to provide precise control over complex multi-label combinations. Simpler methods like SMOTE (interpolating between points) often ignore the underlying "geometry" of how heart disease actually manifests in data. This paper asks: Can we use the temporal history of a patient to learn how disease "deforms" an ECG, and then use that knowledge to dream up examples of rare conditions?

Methods

The authors adapt a Joint-Embedding Predictive Architecture (LeJEPA) to act as a "world model" for ECGs. Here is the breakdown of their approach:

  1. Action-Conditioned Pretraining: They trained the model on over 700,000 pairs of consecutive ECGs from the same patients. The model takes an initial ECG embedding ($z_t$) and an "action" ($a_t$)—defined as the change in the patient's ICD diagnosis codes—and tries to predict the patient's future ECG embedding ($z_{t+1}$).
  2. Latent Synthesis: Once trained, the dynamics model is frozen and used as a data augmentor. To create a synthetic example of a rare condition, they take an embedding of a "normal" ECG and apply the "action" corresponding to the desired rare pathology. The model then outputs a synthetic "abnormal" embedding.
  3. Downstream Probing: Instead of updating the entire heavy encoder, they trained a lightweight MLP "probe" on a massive augmented dataset of 2.7 million embeddings (721k real + 2M synthetic).

Crucially, this entire process happens in representation space. The model never generates a raw voltage-over-time waveform; it only generates the high-level features that a classifier needs to see.

Datasets

The study primarily utilizes the MIMIC-IV-ECG dataset, a massive longitudinal collection of over 800,000 12-lead ECGs.

  • Labels: ICD codes mapped to 76 binary condition labels.
  • Structure: The longitudinal nature allowed the creation of same-patient pairs to observe clinical transitions over time.
  • Benchmarks: They compare their results against a standard supervised xResNet1d-50 (the direct architectural predecessor of their encoder) and a fully fine-tuned version of their model.

Key Insights and Ideas

  • Time as a Free Supervisor: Clinical datasets are often treated as collections of independent snapshots. This paper treats the time between visits as a source of supervision, capturing the "dynamics" of disease progression.
  • Bypassing the "Uncanny Valley" of Signal Generation: Generating realistic 12-lead ECG waveforms is hard and computationally taxing. By synthesizing in latent space, the authors avoid the need for a decoder entirely, making augmentation "negligible" in terms of computational cost.
  • Inverse-Frequency Allocation: To fight the long tail, the authors didn't just generate more data; they generated data inversely proportional to how often a condition appeared. Rare combinations that appeared fewer than 100 times in the real data received up to 13,000 synthetic examples each.
  • Geometric Validation: Using t-SNE visualizations, the authors showed that their synthetic embeddings actually overlap with real abnormal embeddings, proving the world model isn't just making up random noise—it’s learning the actual "direction" of pathology in latent space.

Key Results

The augmented linear probe achieved a macro-averaged AUROC of 0.743 across 76 conditions.

  • Gap Recovery: This result recovered 55% of the performance gap between a simple linear probe trained only on real data (0.687) and a fully fine-tuned encoder (0.789).
  • Efficiency: This improvement was achieved with zero encoder updates and no additional raw waveforms, demonstrating that the "world model" had successfully captured the essence of the pathologies during its pretraining phase.

Limitations and Future Work

While promising, the authors note several areas for improvement:

  • The "Normal" Assumption: The current strategy assumes a "normal" ECG is always a valid starting point for any condition, which ignores patient-specific anatomical factors (e.g., a patient's unique heart shape).
  • Baselines: The paper is an early proof-of-concept and doesn't yet compare the dynamics-based approach against simpler imbalance remedies like SMOTE or random oversampling in the same latent space.
  • Causal Validation: Future work needs to confirm the model is learning clinically meaningful transitions rather than just exploiting label frequencies (e.g., through "shuffled label" ablation studies).
  • Generalization: Testing on other major datasets like PTB-XL is required to ensure the world model's "understanding" of heart dynamics transfers across different clinical settings.

Summary updated

BibTeX
@inproceedings{facury2026world,
  author = {Luiz Facury and Jose Geraldo Fernandes and Pedro Robles Dutenhefner and Wagner Meira Jr.},
  title = {{World Model Augmentation for Imbalanced Multi-Label ECG Classification}},
  booktitle = {LXAI @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=tzHrjD4Lkd},
}
Figure