Time-to-Event Pretraining for 3D Medical Imaging

Zepeng Huo, Jason Alan Fries, Alejandro Lozano, Jeya Maria Jose Valanarasu, Ethan Steinberg, Louis Blankemeier, Akshay S. Chaudhari, Curtis P. Langlotz, Nigam H. Shah · DOI

Introduction

Current 3D medical imaging models are primarily designed to identify features present at the time of a scan. While effective for static diagnosis, these models often struggle to predict future patient risks because they are pretrained on "static" labels that lack longitudinal context. This "missing context problem" arises because standard self-supervised learning (SSL) methods focus on local structural features, ignoring the months or years of clinical data that follow a scan.

This paper introduces time-to-event (TTE) pretraining, a framework that leverages longitudinal Electronic Health Record (EHR) data to teach models to predict the timing of future clinical events. By incorporating temporal information and addressing "right-censoring"—where patients leave a study before an event occurs—this approach significantly enhances both prognostic and diagnostic performance, resulting in a 23.7% average boost in outcome prediction accuracy.

Methods

The core innovation is the shift from simple classification to TTE modeling during pretraining. The authors utilize a "knowledge graph" approach to select 8,192 diverse clinical tasks from EHR data, including diagnoses, medications, and procedures. Instead of binary classification, the model estimates the distribution of time until an event occurs.

Overview of the Time-to-Event (TTE) pretraining and task adaptation pipeline.

To ensure scalability, the framework employs a Piecewise Exponential Neural Network (PEANN) architecture. PEANN treats time as discrete intervals and estimates a constant hazard rate for each, avoiding the complex pair-wise comparisons required by traditional Cox Proportional Hazards models. The method was evaluated across three major 3D backbones: SwinUNETR, DenseNet-121, and ResNet-152. After pretraining, the encoder is frozen, and lightweight heads are added for specific task evaluation.

Datasets

The study utilized two primary datasets:

  • INSPECT: A massive multimodal dataset comprising 18,945 chest CT scans linked to longitudinal EHRs with 225 million clinical events and a median follow-up of 5 years.
  • RSPECT: An external, image-only dataset used to evaluate diagnostic performance (e.g., identifying current pulmonary embolism) to ensure pretraining did not degrade the model's ability to detect current pathologies.

Key Insights

  • Increased Label Density: By incorporating future events, the "label density" per image increased by 3x compared to standard "at-visit" labels. Every scan is associated with thousands of potential future outcomes, providing a richer supervisory signal.
  • Prognosis Informs Diagnosis: Learning to predict future outcomes (prognosis) improves the model's understanding of current structural biomarkers (diagnosis), such as the RV/LV ratio.
  • Information from Censoring: TTE modeling treats the time spent in a study before censoring as a valid observation, improving data efficiency compared to methods that discard such cases.

Key Results

The TTE pretraining strategy yielded substantial improvements over standard baselines. Prognostic accuracy saw an average 23.7% increase in AUROC and a 29.4% gain in Harrell’s C-index across eight benchmark tasks.

Performance comparison across different architectures and pretraining strategies for prognostic tasks.

Furthermore, model calibration improved significantly, with the Integrated Brier Score decreasing by an average of 54%, indicating more trustworthy risk estimates. Notably, these gains in prognostic capability were achieved without sacrificing performance on traditional diagnostic classification tasks.

Limitations and Future Work

Despite its success, the approach is computationally intensive, requiring high-memory GPUs (e.g., 80GB A100s) for 3D encoders like SwinUNETR. While the INSPECT dataset is large for medical AI, it remains small compared to general-purpose foundation model datasets. Future research could explore extending this framework to other modalities (MRI, X-ray), scaling to larger datasets, and investigating parameter-efficient fine-tuning (PEFT) methods.

Summary updated

BibTeX
@inproceedings{huo2025time,
  author = {Zepeng 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 P. Langlotz and Nigam H. 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