Introduction
Survival analysis—the prediction of time until a clinical event such as mortality or hospital discharge—is a cornerstone of healthcare informatics. In recent years, the field has seen a surge in deep learning-based survival models, moving beyond traditional linear methods to capture complex, non-linear relationships in clinical data. However, despite the proliferation of new architectures, the field is hindered by a lack of standardization in data preparation.
The "Preprocessing Gap"
Electronic Health Record (EHR) data is inherently challenging: it is multi-modal, irregularly sampled, and contains significant missingness. Currently, most researchers develop custom, often undocumented, preprocessing scripts. This "preprocessing gap" makes it nearly impossible to conduct "apples-to-apples" comparisons between models. It remains unclear whether a model's reported state-of-the-art performance stems from its architecture or from specific, non-standardized data engineering choices. SurvBench addresses this by providing a reproducible, configuration-driven workflow for major clinical databases.
The SurvBench Pipeline
SurvBench implements a modular, nine-stage pipeline designed to transform raw EHR data into structured tensors ready for deep learning. The pipeline is designed to be transparent, working directly from raw PhysioNet data rather than intermediate pre-processed files.
Key Technical Features
- Multi-Modal Integration: The pipeline aligns static demographics, high-frequency time-series (vitals and labs), and unstructured data, including ICD diagnosis codes and radiography report embeddings (generated via BioClinical-BERT).
- Patient-Level Splitting: To eliminate data leakage, SurvBench ensures that all hospital stays for a single patient are grouped within the same data split (train, validation, or test).
- Explicit Missingness Tracking: Rather than simple imputation, the pipeline generates binary masks. This allows models to distinguish between observed values and those that have been imputed, preserving critical clinical context.
- Configuration-Driven Design: All parameters, such as temporal window sizes and imputation strategies, are managed via YAML files, ensuring that experiments are perfectly reproducible.
Datasets and Scalability
The utility of SurvBench is demonstrated across three major clinical databases:
- MIMIC-IV v3.1: A gold-standard single-center ICU dataset.
- eICU Collaborative Research Database v2.0: A multi-center ICU dataset covering over 200,000 admissions.
- MC-MED v1.0.1: A large-scale dataset from the Stanford Emergency Department, used to support competing-risks scenarios (e.g., predicting ICU admission vs. ward admission vs. discharge).
The pipeline is optimized for large-scale data, successfully processing cohorts exceeding 100,000 stays. While handling 100GB+ datasets requires significant hardware (50–100 GB RAM), SurvBench utilizes chunked loading and pre-aggregation to maintain efficiency on standard research workstations.
Conclusion
By standardizing the "wild west" of EHR data preparation, SurvBench removes the "data engineering tax" that often stifles methodological innovation. It provides a foundation for rigorous benchmarking, allowing the community to focus on developing models that truly advance clinical predictive capabilities. Future work will look toward integrating additional modalities, such as raw waveforms and full clinical note sequences, to further enhance the richness of survival analysis.
Source: SurvBench: A Standardised Preprocessing Pipeline for Multi-Modal Electronic Health Record Survival Analysis (Mesinovic & Zhu, 2025).
Summary updated