Time-to-Event Pretraining for 3D Medical Imaging

Zepeng Frazier Huo, Jason Alan Fries, Alejandro Lozano, Jeya Maria Jose Valanarasu, Ethan Steinberg, Louis Blankemeier, Akshay S Chaudhari, Curtis Langlotz, Nigam Shah

TL;DR

This paper introduces time-to-event (TTE) pretraining, a framework that bridges the gap between static 3D medical images and long-term patient outcomes by leveraging longitudinal Electronic Health Records (EHR). By training models to predict when thousands of different clinical events might occur, the authors significantly boost the prognostic power of 3D imaging foundation models—achieving a 23.7% average increase in AUROC—without compromising their diagnostic accuracy.

What Problem Does This Paper Address?

Current self-supervised learning (SSL) methods for medical imaging are excellent at identifying what is currently in an image (e.g., "this is a lung nodule"). However, they suffer from a missing context problem: they fail to link these visual features to a patient’s future health.

Most pretraining relies on "narrow" time windows—either the image itself or text descriptions written at the time of the scan. This ignores the years of medical history that follow, which contain the "ground truth" for disease progression. Furthermore, traditional risk modeling in AI often struggles with right-censoring (when a patient leaves a study before an event occurs), leading to biased datasets if those patients are simply excluded.

Methods

The authors propose a "continued pretraining" regimen that uses temporal supervision from EHRs.

Overview of the Time-to-Event (TTE) pretraining and task adaptation pipeline.
  1. Task Generation: Instead of a single "mortality" label, they use an entropy-based selection method to identify 8,192 unique pretraining tasks derived from medical codes (diagnoses, medications, procedures).
  2. TTE Modeling: They employ a Piecewise Exponential Neural Network (PEANN). Unlike standard classifiers that output a binary "yes/no," this model estimates the probability distribution of an event occurring over discrete time intervals.
  3. Loss Function: The framework uses a survival likelihood loss that naturally handles right-censored data, allowing the model to learn from every patient, even those who haven't experienced a specific clinical event yet.
  4. Architectures: They evaluated the method across three major 3D backbones: SwinUNETR, DenseNet-121, and ResNet-152, demonstrating that the benefits of TTE pretraining are architecture-agnostic.

Datasets

  • INSPECT: A massive multimodal dataset containing 18,945 chest CT scans (4.2 million 2D slices) linked to longitudinal EHR data. It includes 225 million clinical events with a median follow-up time of 5 years.
  • RSPECT: An external, image-only dataset used to evaluate diagnostic performance (e.g., pulmonary embolism and cardiac function) to ensure that prognostic pretraining doesn't "forget" how to do basic radiology.

Key Insights and Ideas

  • Increased Label Density: By looking at the entire future timeline of a patient's EHR, TTE pretraining provides 3x more labels per image than methods restricted to the time of the scan. This makes the pretraining much more data-efficient.
  • Prognosis $\neq$ Diagnosis: The paper proves that learning to predict the future (prognosis) actually helps the model understand the present (diagnosis). The TTE-pretrained models maintained or improved performance on standard diagnostic tasks.
  • Better Feature Localization: Qualitative analysis using GradCAM showed that TTE-pretrained models focus on clinically relevant pathological regions (like the heart for cardiomegaly) more accurately than baseline models, which often looked at "scattered" features.
  • Calibration Matters: Beyond just being "accurate," the TTE models were significantly better calibrated (54% improvement in Brier Score), meaning the risk percentages they output are more likely to reflect real-world probabilities.

Key Results

Across 8 benchmark tasks, TTE pretraining achieved an average AUROC increase of 23.7% and a 29.4% gain in Harrell’s C-index (a standard metric for survival models) over baseline models.

Performance comparison of TTE pretraining against baselines across multiple architectures.
  • Zero-Sum Myth Busted: The gains in future risk prediction did not come at the cost of current diagnostic accuracy. In fact, for some tasks like identifying RV/LV ratios, the TTE model outperformed all others.
  • Robustness: The performance gains were consistent across different patient subgroups (gender, age, race, and ethnicity), suggesting the method doesn't introduce significant new biases.

Limitations and Future Work

  • Modality Constraints: The study focused exclusively on chest CT scans. Future work is needed to see if these results hold for MRI, ultrasound, or other 3D modalities.
  • Dataset Scale: While large for medical imaging, the dataset is still small compared to general-domain "foundation model" datasets. Scaling to hundreds of thousands of scans is the next logical step.
  • Frozen Encoders: Most evaluations were done using "frozen" backbones with linear probes. The authors suggest that full fine-tuning or alternative adaptation methods (like LoRA) might reveal even deeper performance trade-offs.
  • Compute Intensity: Training 3D encoders is extremely resource-heavy, requiring high-memory GPUs (80GB), which may limit accessibility for smaller research labs.

Summary updated

BibTeX
@inproceedings{huo2025time,
  author = {Zepeng Frazier Huo and Jason Alan Fries and Alejandro Lozano and Jeya Maria Jose Valanarasu and Ethan Steinberg and Louis Blankemeier and Akshay S Chaudhari and Curtis Langlotz and Nigam Shah},
  title = {{Time-to-Event Pretraining for 3D Medical Imaging}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=zcTLpIfj9u},
}
Figure