cs.LGFeb 24, 2026

Sequential Counterfactual Inference for Temporal Clinical Data: Addressing the Time Traveler Dilemma

Authors: Jingya Cheng, Alaleh Azhir, Jiazi Tian, Hossein Estiri

Organizations: Massachusetts General Hospital, Boston, MA, USA

Abstract

Counterfactual inference enables clinicians to ask "what if" questions about patient outcomes, but standard methods assume feature independence and simultaneous modifiability -- assumptions violated by longitudinal clinical data. We introduce the Sequential Counterfactual Framework, which respects temporal dependencies in electronic health records by distinguishing immutable features (chronic diagnoses) from controllable features (lab values) and modeling how interventions propagate through time. Applied to 2,723 COVID-19 patients (383 Long COVID heart failure cases, 2,340 matched controls), we demonstrate that 38-67% of patients with chronic conditions would require biologically impossible counterfactuals under naive methods. We identify a cardiorenal cascade (CKD -> AKI -> HF) with relative risks of 2.27 and 1.19 at each step, illustrating temporal propagation that sequential -- but not naive -- counterfactuals can capture. Our framework transforms counterfactual explanation from "what if this feature were different?" to "what if we had intervened earlier, and how would that propagate forward?" -- yielding clinically actionable insights grounded in biological plausibility.

Figures & tables

Explore similar work

CardsList
  1. Benchmarking Counterfactual Prediction in Epidemic Time Series with Time-Varying Interventions

    Jun 4, 2026Wenhao Mu, Facundo Yan, Anik Mumssen +2Forecasting BenchmarksCounterfactual Prediction

  2. Causal Diffusion Models for Counterfactual Outcome Distributions in Longitudinal Data

    Apr 14, 2026Farbod Alinezhad, Jianfei Cao, Gary J. Young +1Counterfactual PredictionCausal Inference

  3. Causal Longitudinal Prior-Fitted Networks for Counterfactual Outcome Prediction

    Jun 4, 2026Amirhossein Zare, Amirhessam Zare, Herlock Rahimi +2Structural Causal ModelsCounterfactual Prediction