Early Prediction of Causes (not Effects) in Healthcare by Long-Term Clinical Time Series Forecasting

Michael Staniek, Marius Fracarolli, Michael Hagmann, Stefan RiezlerMLHC 2026

TL;DR

Instead of training machine learning models to directly predict clinical syndrome labels like Sepsis, this paper proposes forecasting the underlying clinical measurements (the "causes") and then deterministically applying medical consensus definitions to get the label. Surprisingly, the authors find that standard dense encoders combined with iterative multi-step decoders trained via "student forcing" outperform specialized architectures for long-term clinical time series forecasting.

What Problem Does This Paper Address?

Early detection of acute syndromes like Sepsis is critical to saving lives in the ICU. Traditionally, machine learning treats this as a standard supervised classification problem: given a history of patient vitals and lab results, predict whether a patient will develop a syndrome within a future window.

However, this "prediction of effects" approach suffers from major flaws:

  1. Lack of Interpretability: Black-box models output a probability score but hide the underlying physiological reasoning, making clinicians hesitant to trust them.
  2. Label Instability and Leakage: Syndrome labels are usually generated retrospectively by applying clinical consensus definitions (like Sepsis-3 or SOFA scores) to Electronic Health Record (EHR) data. Training directly on these labels can lead to shortcut learning, information leakage, or circular logic.
  3. Inflexibility: A model trained to predict Sepsis cannot easily be repurposed to predict a different condition without entirely retraining on new labels.

The authors propose flipping the paradigm: predict the causes, not the effects. By forecasting raw clinical variables into the future, clinicians can directly inspect the predicted physiology, and any consensus definition can be applied deterministically on top of the forecasts.

Paradigm shift: Predicting clinical variables (top) vs. predicting downstream labels (bottom).

Methods

The authors frame the task as a long-term multivariate time series forecasting (TSF) problem, predicting a 24-hour future window based on a 24-hour observation window. They systematically evaluate combinations of different Transformer-based encoder and decoder pipelines:

Encoders

  • Sparse Triplet Encoder: Treats irregularly sampled clinical data as a set of observation triplets (variable ID, time, value), avoiding the need for imputation.
  • Dense Encoder: Bins data into hourly windows, uses mean-value imputation for missing slots, and appends a binary masking matrix to preserve missingness information.

Decoders

  • Direct Multi-Step (DMS): Uses independent attention modules to predict all future time steps simultaneously.
  • Iterative Multi-Step (IMS): An autoregressive decoder that predicts the next time step using its own previous predictions as context.
Overview of the evaluated encoder-decoder pipelines at inference time.

Training Strategy: Student Forcing

While recent TSF literature claims DMS decoders are superior because IMS decoders suffer from error propagation, the authors introduce a student forcing strategy for IMS. Instead of feeding the ground truth during training (teacher forcing), the model is fed its own continuous predictions. Because time series data is continuous and differentiable, gradients can flow backward through the model's own generated history, teaching it to correct its own errors and capture cross-variate dependencies.

Gradient flow comparison between Teacher Forcing and Student Forcing variants.

Datasets

The models were trained and evaluated on two massive, real-world critical care databases:

  • MIMIC-III: Extracted 44,858 ICU stays containing 131 clinical variables (including 15 markers for SOFA and 13 for SAPS-II). The dataset is highly sparse, with 89.08% missing data when binned hourly.
  • eICU Collaborative Research Database: Extracted 77,704 ICU stays containing 98 clinical variables. While denser in terms of observations per hour, it still exhibits 89.85% missingness across all tracked dimensions.

Key Insights and Ideas

  • Bucking the Trend: Contrary to recent trends in the TSF literature advocating for specialized set-function encoders and non-autoregressive (DMS) decoders, the best results came from a traditional Dense Encoder paired with an IMS Decoder.
  • Why IMS Wins Here: Clinical variables are deeply interconnected (e.g., administering a vasopressor causes a downstream change in blood pressure). DMS decoders struggle to capture these cross-variate temporal dependencies because they predict all time steps independently. IMS decoders natively model these step-by-step interactions.
  • The Necessity of Student Forcing: Standard teacher forcing fails because the model never learns to handle its own imperfect predictions during inference. Student forcing with backpropagation through predictions bridges this gap seamlessly.

Key Results

The authors evaluated performance using Mean Squared Error (MSE) on all variables, MSE on calculated SOFA/SAPS-II scores, and downstream Sepsis-3 classification accuracy.

The evaluation setup tracking raw variable forecasting and downstream clinical scores.
  • Overall Performance: Model 16 (Dense Encoder + IMS Decoder + Student Forcing + Backprop) consistently outperformed all other combinations, as well as established TSF baselines like Informer, Autoformer, and DLinear.
  • MIMIC-III Metrics: Model 16 achieved an overall variable MSE of 6.216, a SOFA score MSE of 2.497, and a Sepsis-3 prediction accuracy of 90.34% (outperforming Informer's 85.75% and Autoformer's 89.61%).
  • eICU Metrics: On the larger eICU dataset, Model 16 achieved a SOFA MSE of 2.024 and a Sepsis accuracy of 90.66%.
  • Causes vs. Effects: Directly predicting the SOFA score using a regression head (predicting the effect) yielded an MSE of 2.586 on MIMIC-III. Predicting the underlying variables and calculating the score (predicting the cause) yielded a highly competitive MSE of 2.697, proving that you don't have to sacrifice performance to gain complete clinical interpretability.

Limitations and Future Work

  • Computational Overhead: Autoregressive IMS decoding is sequentially dependent, making it slower during inference compared to parallel DMS decoders.
  • Sparsity Challenges: Mean-value imputation in the dense encoder is a simplistic baseline. Though it performed well, integrating more sophisticated continuous-time models (like Neural ODEs) into the parallelized Transformer framework remains an open challenge.
  • Evaluation Constraints: Due to computational limits, the authors could not run extensive variance component analysis or complex significance testing across all hyperparameter variations.

Summary updated

BibTeX
@misc{staniek2026early,
  author = {Michael Staniek and Marius Fracarolli and Michael Hagmann and Stefan Riezler},
  title = {{Early Prediction of Causes (not Effects) in Healthcare by Long-Term Clinical Time Series Forecasting}},
  year = {2026},
  url = {https://openreview.net/forum?id=kmRGJ6YNr1},
  howpublished = {MLHC},
}
Figure