NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Clairvoyance: A Pipeline Toolkit for Medical Time Series

Daniel Jarrett, Jinsung Yoon, Ioana Bica, Zhaozhi Qian, Ari Ercole, Mihaela van der Schaar · DOI

Introduction

Machine learning (ML) holds significant promise for healthcare, yet a "translational barrier" often prevents theoretical research from reaching clinical utility. Real-world medical time-series data is notoriously difficult to handle, characterized by irregular sampling, missing values, and complex interdependencies between static features (e.g., age, gender) and temporal features (e.g., vitals, lab tests).

Overview of the Clairvoyance pipeline, mapping static and temporal patient data to personalized clinical outcomes.

The authors identify three primary challenges in this domain:

  1. Engineering Complexity: Building complete inference workflows is labor-intensive, often consuming the majority of researchers' time on software technicalities.
  2. Evaluation Gaps: Components like imputation and prediction are often studied in isolation, ignoring the fact that a model's performance is deeply tied to its preceding pipeline stages.
  3. Temporal Efficiency: Optimizing pipelines for time-series data is computationally expensive, particularly when accounting for distribution shifts over a patient's journey.

The Clairvoyance Framework

Clairvoyance is a unified, end-to-end pipeline toolkit designed to bridge these gaps. It employs a modular architecture based on the fit-transform-predict paradigm, organizing clinical tasks into three "Integrated Pathways":

  • Predictions Path: Forecasting outcomes such as mortality or disease progression.
  • Treatment Effects Path: Estimating counterfactual outcomes for various interventional actions over time.
  • Active Sensing Path: Determining the optimal timing and type of measurements to maximize information gain under resource constraints.
Detailed architecture of the Clairvoyance pipeline, illustrating the modular components and the optimization interface.

Technical Innovations

The toolkit's modularity allows for standardized preprocessing, imputation (e.g., GAIN, M-RNN), feature selection, and uncertainty estimation. At its core is an Optimization Interface that enables AutoML across three dimensions: algorithms, pipeline configurations, and time steps.

A key contribution is the introduction of Stepwise Algorithm Selection and Hyperparameter optimization (SASH) and Stepwise Pipeline Selection and Configuration (SPSC). These methods allow the system to automatically adapt the model or pipeline configuration at different stages of a patient's journey, accounting for temporal shifts where the "best" model might change over time.

Datasets and Evaluation

Clairvoyance was evaluated across three distinct medical environments:

  • UK Cystic Fibrosis Registry (UKCF): Focused on long-term lung function (FEV1) prediction for ~5,800 patients.
  • General Wards (WARDS): Data from ~6,300 patients at UCLA used to predict ICU admission.
  • MIMIC-III: A large ICU dataset (~23,100 patients) for predicting mechanical ventilation needs and estimating treatment effects.

Key Results and Insights

The automated SASH approach consistently outperformed static, state-of-the-art models across various tasks:

  • Prediction: In the UKCF dataset, SASH achieved an RMSE of 0.059 (vs. 0.062 for standard RNN-LSTMs). In the WARDS dataset, it achieved an AUC of 0.891 (vs. 0.794 for Vanilla RNN).
  • Treatment Effects: SASH outperformed specialized models like the Counterfactual Recurrent Network (CRN) in predicting antibiotic impacts in the ICU.
  • Active Sensing: The framework effectively balanced information gain against acquisition costs, surpassing baseline methods like DeepSensing.

The central insight of Clairvoyance is that the pipeline is a "Gestalt"—the best model depends entirely on the context of upstream preprocessing. By treating the entire pipeline as an optimizable unit and introducing temporal adaptability, Clairvoyance provides a catalyst for reproducible and high-performing medical ML.

Limitations

While powerful, Clairvoyance currently assumes data is pre-formatted into an "Entity-Attribute-Value" (EAV) schema and does not address initial "data archeology" or cleaning of raw EHR data. Furthermore, future iterations will need to incorporate algorithmic fairness, patient privacy, and federated learning to meet the full requirements of real-world clinical deployment.

Summary updated

BibTeX
@inproceedings{jarrett2021clairvoyance,
  author = {Daniel Jarrett and Jinsung Yoon and Ioana Bica and Zhaozhi Qian and Ari Ercole and Mihaela van der Schaar},
  title = {{Clairvoyance: A Pipeline Toolkit for Medical Time Series}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=xnC8YwKUE3k},
}
Figure