Abstract
Answering "What if?" questions is important in many domains. For example, would a patient's disease progression slow down if I were to give them a dose of drug A? Ideally, we answer our question using an experiment, but this is not always possible (e.g., it may be unethical). As an alternative, we can use non-experimental data to learn models that make counterfactual predictions of what we would observe had we run an experiment. In this paper, we propose the counterfactual GP, a counterfactual model of continuous-time trajectories (time series) under sequences of actions taken in continuous-time. We develop our model within the potential outcomes framework of Neyman and Rubin. The counterfactual GP is trained using a joint maximum likelihood objective that adjusts for dependencies between observed actions and outcomes in the training data. We report two sets of experimental results using the counterfactual GP. The first shows that it can be used to learn the natural progression (i.e. untreated progression) of biomarker trajectories from observational data. In the second, we show how the CGP can be used for medical decision support by learning counterfactual models of renal health under different types of dialysis.
Introduction
Standard supervised learning often fails in decision support because it learns the biases of existing policies rather than the true effects of actions. A classic example is a model predicting that asthmatics are at lower risk from pneumonia because historical data shows they receive aggressive ICU treatment. This policy sensitivity problem means supervised models capture relationships driven by existing clinical policies, which do not generalize when those policies change. To address this, we propose the Counterfactual Gaussian Process (CGP), moving from predicting "what will happen" to "what would happen" under specific future actions (counterfactuals).
Methodology
The CGP framework models continuous-time health trajectories under sequences of actions. It builds on the potential outcomes framework, modeling a collection of potential outcomes $\{Y[a]\}$ for every possible action $a$.
To handle continuous time and irregular measurements, we utilize Marked Point Processes (MPP) to model the joint intensity of actions and outcomes. This allows the mathematical factorization of the "action model" (the policy) from the "outcome model" (the underlying disease progression). We derive an adjusted likelihood objective that maximizes the likelihood of observed data while correcting for dependencies between the timing of actions and patient outcomes.
Experimental Evaluation
We evaluated the CGP using both simulated and real-world clinical data.
Policy Independence in Simulations
We created three "regimes" (A, B, and C) with varying treatment policies. A robust decision-support tool should provide consistent risk scores regardless of the training policy's aggressiveness. As shown in the table below, the CGP maintains high stability across regimes compared to baseline GPs.
Real-World Application: MIMIC-II
Using the MIMIC-II database, we modeled creatinine levels—a key marker for kidney function—in 428 ICU patients receiving different types of dialysis (IHD, CVVH, CVVHD). The CGP achieved a Mean Absolute Error (MAE) of 0.39 for 24-hour predictions, outperforming models that failed to account for treatment effects or patient heterogeneity.
Discussion and Limitations
The CGP enables "what-if" reasoning by estimating the "natural progression" of a disease even when all training patients were treated. However, like other causal methods, it relies on the No Unmeasured Confounders (NUC) assumption. If unrecorded variables influence both treatment decisions and outcomes, predictions may be biased. Future work includes integrating sensitivity analyses to detect violations of these structural assumptions and exploring alternative criteria like the "front-door" approach.
Summary updated