Most treatment guidelines fix how long a therapy lasts: seven days of antibiotics, three months of anticoagulation. The duration is chosen for the average patient. It overtreats people who recover fast and undertreats people who recover slowly. Meanwhile, the bedside already produces a running signal of recovery, namely repeated lab values such as C-reactive protein, white-cell counts and lactate. This proposal asks a narrow, answerable question. Among patients in intensive care on therapeutic antibiotics, would a rule of the form "stop once the inflammatory marker has fallen fast enough and far enough, but never before day $t_{min}$ or after day $t_{max}$" beat the best fixed-duration rule? The comparison is on days alive and free of antibiotics, with no rise in death or restarted treatment. We answer it with causal estimates from observational ICU records, not with a prediction score.
Nobody has made this comparison properly, and the reason is that it is hard to make honestly. Three things get in the way. Clinicians stop early in patients they judge to be well, and they order labs more often in patients they worry about. Patients who die leave no trajectory behind them. The existing machine-learning attempt treats stopping as a one-off classification of "will this patient be restarted within 72 hours" and gets weak discrimination. The contribution here is an evaluation method for stopping rules that are simple enough for a clinician to use. It deals with confounded stopping, lab timing that depends on how worried the doctor is, and death. It is applied to three public ICU databases and checked on simulators where the true answer is known.
Core Claim
A small, interpretable family of stopping rules can be compared causally against calendar rules. Each rule is triggered by the level and slope of a routinely measured biomarker, bounded by minimum and maximum durations. The comparison works by emulating the trial nobody ran: every antibiotic course is cloned into every candidate rule, and a copy is dropped at the moment the clinician's actual behaviour departs from that rule. Two models correct for which copies survive. One is a continuous-time model of when clinicians stop, so that weighting accounts for who remains. The other is a continuous-time outcome model, so that the estimate stays correct if either of the two is wrong.
We predict that the best trajectory rule gains antibiotic-free days alive over the best fixed duration and does not increase a composite of death or reinitiation. We also predict the gain is concentrated in fast responders. The rule family is written as
$$ \tau_{\theta}=\min\{t\ge t_{min}:\ \Delta_{48h}\log B_t\le -s \ \text{and}\ B_t\le c\}\wedge t_{max}, $$
Here $B_t$ is the most recent measured value of the biomarker, such as C-reactive protein, at time $t$ since starting the course. $\Delta_{48h}\log B_t$ is its log-change over the preceding 48 hours, computed only from values actually measured. $\theta=(s,c,t_{min},t_{max})$ collects the slope threshold, level threshold and duration bounds. $\wedge$ means "whichever comes first." If no measurement exists in the window, the rule says "continue." This makes the rule well-defined under irregular testing, and it can be implemented using only data that exist at the bedside.
Why this question, and what already exists
The motivation comes from a tension in the literature. Explainable machine learning for discontinuation of therapeutic antibiotics in intensive care patients trained logistic regression, LightGBM and AutoPrognosis on two Dutch ICUs. It predicted 72-hour reinitiation with AUROC 0.666–0.675, and it found that a short last course was the strongest predictor of reinitiation. Reinitiated patients had 39.8% 90-day mortality versus 25.0% in the others. Read naively, that argues for longer uniform courses. But the finding is confounded by indication, and the authors note that their outcome reflects prescribing behaviour rather than confirmed infection. A classifier cannot say what would have happened under a different stopping policy; a regime comparison can.
The longitudinal literature supplies the reason to expect a trajectory signal. Admission neutrophil-to-lymphocyte ratio lost its prognostic value inside sepsis, and the authors explicitly called for tracking its trend (The association between the neutrophil-to-lymphocyte ratio and mortality in critical illness). In older patients with myocardial infarction, in-hospital change in albumin showed an S-shaped relation to mortality that the admission value hid (Association between albumin changes and prognosis in older patients with acute myocardial infarction). Rising versus falling C-reactive protein separated metabolic risk among people with identical baselines (Association Between High-Sensitivity C-Reactive Protein Trajectories and the Incidence of Metabolic Syndrome). All of these are observational risk predictors. None turns a trajectory into a decision rule.
The closest methodological neighbours cover other parts of the problem. Estimating Treatment Effects for Time-to-Treatment Antibiotic Stewardship in Sepsis (T4) uses a recurrent encoder–decoder to estimate outcomes under different antibiotic start times. It does not address duration or stopping, which we do. Learning Optimal Biomarker-Guided Treatment Policy for Chronic Disorders learns a shallow, interpretable decision tree from a baseline EEG snapshot with doubly robust estimation. We borrow its preference for shallow, auditable policies and its doubly robust logic, but the policy here reads a trajectory over time.
For the outcome model we reuse continuous-time machinery. Continuous-Time Modeling of Counterfactual Outcomes Using Neural Controlled Differential Equations (TE-CDE) represents the patient as a latent path driven by irregular observations; a controlled differential equation is a network whose hidden state is steered continuously by the incoming data stream. Bayesian Neural Controlled Differential Equations for Treatment Effect Estimation (BNCDE) adds calibrated uncertainty. Both predict outcomes along given treatment paths and neither produces stopping rules. Both treat observation timing as ignorable, and we model it explicitly instead.
Evaluating and Learning Optimal Dynamic Treatment Regimes under Truncation by Death constrains the design. It shows that biomarker outcomes become undefined when patients die, and that naive handling produces survivorship bias. We therefore use only outcomes defined for everyone, and principal stratification appears only as a sensitivity analysis. Conservative Continuous-Time Treatment Optimization shows that unconstrained continuous-time optimizers exploit model errors: its regularized method reached a cancer-simulator cost of 73.42 against 280.97 for TE-CDE. That warning is why we search a small, low-dimensional rule family whose members are all well represented in the observed data, rather than optimizing a free-form neural policy.
Research Program
Cohorts. Therapeutic antibiotic courses will be extracted from MIMIC-IV, the eICU database and AmsterdamUMCdb, harmonized through the pipeline of Yet Another ICU Benchmark (YAIB). That paper found that preprocessing choices moved results more than model architecture did. We will therefore fix and publish one course definition, one set of exclusions and one missingness policy before any rule is evaluated.
Outcomes. The primary outcome is antibiotic-free days alive at day 28. Death counts as zero, which keeps the outcome defined for every patient. The safety outcome is the composite of death or antibiotic reinitiation within 14 days.
Estimator, step one: the clinician-stopping model. For each course and each candidate rule $\theta$ on a grid of a few hundred values, we build the cloned emulated trial. A continuous-time hazard model estimates the clinician's instantaneous stopping rate, given the history of labs, vitals and ordering intensity. From it we obtain inverse-probability weights for the clones that stay uncensored.
Estimator, step two: the outcome model. A continuous-time outcome model in the style of BNCDE is fitted to the same histories. The two are combined into a doubly robust estimate of each rule's value, with cross-fitting and bootstrap intervals.
Informative lab timing. Lab-ordering intensity enters both models as an observed covariate. Because it may also reflect worry that the record does not capture, we add a sensitivity analysis. It asks how strong a hidden link between ordering and outcome would have to be to overturn the conclusion.
Selection and validation. The best rule is selected on MIMIC-IV only. It is then frozen and evaluated on eICU and AmsterdamUMCdb.
Ground-truth check. Before touching real outcomes, we build a semi-synthetic benchmark on the MIMIC-IV cohort. Real covariate histories and real lab timing are retained, including a planted dependence of timing on hidden severity. Recovery curves and outcomes are simulated so that the true value of every rule is known. We also reuse the COVID-19 simulator from Conservative Continuous-Time Treatment Optimization, recasting its dexamethasone course as a stopping problem, since there the true effect of every rule can be computed exactly.
Baselines
The naive reference: the observed clinician policy. This is the value of what clinicians actually did, estimated with the same pipeline and data. Any rule that cannot beat it is useless.
The uniform protocol: the best fixed-duration rule. We evaluate every calendar rule from 3 to 14 days and take the best one after the fact. This is deliberately generous to the protocol. It is run through the identical clone–censor–weight and doubly robust estimator, the same folds and the same bootstrap, so the only difference from the trajectory rules is the triggering condition. The trajectory rule "beats" it if two conditions hold on the held-out databases. First, the lower 95% bound on the gain in antibiotic-free days alive must exceed zero. Second, the upper bound on the increase in death-or-reinitiation must stay below a two-percentage-point margin, fixed before analysis.
The strongest simple competitor: a hand-set clinical threshold. This is a single rule of the kind a stewardship committee might write, for example "stop when C-reactive protein has fallen by half from its peak, after at least five days." It is evaluated identically. It is the real threat, because it uses the same signal with no learning.
The strongest existing ML approach: the static reinitiation classifier. We reproduce the discontinuation model of Explainable machine learning for discontinuation of therapeutic antibiotics in intensive care patients with LightGBM on the same harmonized features. Its predicted risk is turned into the rule "stop when predicted reinitiation risk falls below $r$," with $r$ tuned on the same grid budget as $\theta$. The only number the file reports for this approach is predictive: AUROC 0.666–0.675 and AUPRC 0.339–0.355 on the Dutch two-center data. No reported result was found on Lacuna for any stopping policy value on MIMIC-IV, eICU or AmsterdamUMCdb, so all policy numbers will come from this study.
Discrete-time offline reinforcement learning. We run batch-constrained Q-learning in the style of Reinforcement Learning to Optimize Ventilator Settings on 12-hour bins with a binary continue/stop action. It gets the same reward and a tuning budget matched in GPU-hours.
Ablations isolating the key ingredients. The first removes the slope term, leaving level-only rules; this tests whether velocity matters beyond the snapshot. The second replaces the continuous-time outcome model with a binned gradient-boosting outcome model; this tests whether continuous-time modelling earns its cost. The third drops ordering intensity from both nuisance models; this measures how much informative timing shifts the estimates.
Why not just…?
Why not just use the reinitiation classifier and stop when predicted risk is low? A classifier predicts what happens under the clinician's own behaviour. Its strongest feature, a short prior course, is exactly the confounded signal we need to remove. Its discrimination is also modest, at AUROC 0.666–0.675 in Explainable machine learning for discontinuation of therapeutic antibiotics in intensive care patients. Rather than assume it fails as a policy, we convert it into one and evaluate it with the same causal estimator. If it matches the trajectory rules, the lesson is that the causal evaluation, not the trajectory features, matters.
Why not just adopt a hand-set biomarker threshold, as stewardship programs already could? This is a genuine threat, and the design absorbs it rather than arguing against it. The hand-set rule is simply one point in the rule family, so the study reports how much, if anything, a data-chosen rule adds. If the answer is "nothing significant," that is a useful result. It would mean a published, validated threshold is enough, and the contribution becomes the evidence that it beats calendar protocols. The semi-synthetic benchmark checks whether our estimator can detect a planted gain of the size we would claim.
Why not just run offline reinforcement learning on binned time? Off-the-shelf deep RL was brittle in sparse, irregular ICU data: CQL and SAC were outperformed across 32 configurations in Estimating Trustworthy and Safe Optimal Treatment Regimes. Unconstrained optimizers also exploited model error, reaching a cost of 280.97 versus 73.42 in Conservative Continuous-Time Treatment Optimization. Binning further blurs the 48-hour slope that the rule depends on. The binned-RL baseline and the binned-outcome ablation test this directly on our data. A four-parameter rule family also avoids the out-of-support problem, because the data contain clinicians who, by accident, followed each candidate rule.
Why not just estimate effects among survivors, or treat death as censoring? Under both approaches, a rule that stops too early in frail patients can look good once those who die are dropped, which is the survivorship distortion shown in Evaluating and Learning Optimal Dynamic Treatment Regimes under Truncation by Death. Counting death as zero antibiotic-free days, and putting death into the safety composite, removes the problem by construction. A principal-stratification analysis restricted to always-survivors is reported alongside to show how much the answer would move.
Proposed Experiments and Decisive Checks
The first check is on the semi-synthetic MIMIC-IV benchmark and the COVID-19 simulator. There we test whether the estimator recovers the true ranking of rules and the true value of the best rule, and whether its intervals achieve nominal coverage. We report bias, coverage and Spearman rank correlation between estimated and true rule values. The check is run with and without the planted hidden link between severity and lab timing, which quantifies the residual bias from informative sampling. If coverage fails badly when timing is informative, the real-data claims will be limited to the sensitivity bounds.
The second check is the main comparison. The best rule is selected on MIMIC-IV, frozen, and compared against the best fixed duration, the hand-set threshold, the converted classifier and binned RL on eICU and AmsterdamUMCdb, using the pre-registered superiority and non-inferiority criteria above. Transfer to the European database is the hardest test, since practice patterns differ.
The third check is heterogeneity. Gains are estimated separately for courses whose biomarker falls fast in the first 72 hours and for those whose biomarker plateaus. We predict that trajectory rules shorten courses in the first group and lengthen or match them in the second. If the rule merely shortens everyone's course, the benefit is a disguised shorter calendar rule. The fixed-duration baseline would then have caught it.
The ablations report whether the slope term, continuous-time modelling and the ordering-intensity covariate each change the conclusion. A null result on the slope ablation would be the most informative negative finding: it would mean trajectories add nothing to a level threshold for this decision.
References
- Explainable machine learning for discontinuation of therapeutic antibiotics in intensive care patients
- The association between the neutrophil-to-lymphocyte ratio and mortality in critical illness: an observational cohort study
- Association between albumin changes and prognosis in older patients with acute myocardial infarction
- Association Between High-Sensitivity C-Reactive Protein Trajectories and the Incidence of Metabolic Syndrome:A Retrospective Cohort Study
- Estimating treatment effects for time-to-treatment antibiotic stewardship in sepsis
- Learning Optimal Biomarker-Guided Treatment Policy for Chronic Disorders
- Continuous-Time Modeling of Counterfactual Outcomes Using Neural Controlled Differential Equations
- Bayesian Neural Controlled Differential Equations for Treatment Effect Estimation
- Evaluating and Learning Optimal Dynamic Treatment Regimes under Truncation by Death
- Conservative Continuous-Time Treatment Optimization
- Yet Another ICU Benchmark: A Flexible Multi-Center Framework for Clinical ML
- Reinforcement Learning to Optimize Ventilator Settings for Patients on Invasive Mechanical Ventilation: Retrospective Study
- Safe and Interpretable Estimation of Optimal Treatment Regimes