Learning When to Intubate: Early-Stopping Policies with Patient-Specific Costs of Delay

Patients in respiratory failure are often first placed on noninvasive breathing support, a mask or high-flow nasal oxygen, in the hope of avoiding a breathing tube. For those who eventually fail this support, every extra day before intubation appears to cost survival. Yet more than half of the patients who ultimately recover on noninvasive support look no better during the first six hours. Clinicians therefore face a sequential bet every hour: escalate now, or watch one more hour. Machine learning already has a formal language for this bet. In early classification, a model reads a data stream as it arrives and must decide at each moment whether to commit to a prediction or wait for more evidence. Existing early-classification methods, however, price waiting with a fixed, linear penalty chosen by hand. That is the wrong cost for intubation, where the harm of waiting appears to grow with time and differs sharply between patients.

This note proposes to treat the cost of delay as something to estimate, not assume. We would learn, from observational intensive-care data, how much one more hour on noninvasive support is expected to harm a given patient who will eventually need a tube. We would then train an early-stopping policy that is supervised to stop where the estimated harm of waiting outweighs the expected harm of an unnecessary intubation. The claim is specific and testable. A stopping policy driven by patient-specific, time-varying delay costs should separate "slow responders" from "impending late failures" better than either a bedside score or a well-tuned hourly risk model with a time-varying alarm threshold. The test is how many late failures it flags before the critical window closes, at a fixed rate of premature escalations.

What the two literatures give us, and what is missing

The clinical side motivates the shape of the cost. In COVID-19 patients on noninvasive support, each day between symptom onset and intubation was associated with higher mortality (Timing to intubation COVID-19 patients: can we put it off until tomorrow?). In 3,074 patients aged 70 or older, failing noninvasive ventilation after more than three days led to significantly worse outcomes than failing earlier (Noninvasive ventilation in COVID-19 patients aged ≥ 70 years—a prospective multicentre cohort study). Against this sits the delayed-responder finding: in morbidly obese patients with hypoventilation, 53% of eventual successes showed no blood-gas improvement in the first six hours, while failures carried 92.3% mortality (Determinants of Noninvasive Ventilation Success or Failure in Morbidly Obese Patients in Acute Respiratory Failure). Noninvasive support can also mask deterioration (Oxygenation/non-invasive ventilation strategy and risk for intubation in immunocompromised patients with hypoxemic acute respiratory failure). Together these say the delay cost is neither constant nor uniform across patients.

One result in the file cuts against the simple story, and we take it seriously. Across 3,344 patients in AmsterdamUMCdb and MIMIC-IV, noninvasive-ventilation failure carried no statistically significant 28-day mortality difference from success (Predictive performance of ROX index and its variations for NIV failure). We read this as evidence that the harm lies in when failure is recognized, not in failure itself, and that the effect may be concentrated in subgroups. That is precisely why we propose to estimate the delay cost with heterogeneity rather than import a population curve from COVID cohorts. If the estimate comes out flat, that is itself a finding, and it would kill the main claim (see the decisive checks).

The machine-learning side supplies the machinery. Classifier-Induced Stopping trains a classifier on every prefix of a sequence. It then computes, on each full training sequence, the stopping time that would have maximized reward, and trains a policy network by supervised learning to imitate those times. This avoids the problem that a reinforcement-learning agent which stops early never sees the rest of the sequence. The method reports an 11.8% average gain in the area under the earliness-accuracy frontier (A Policy for Early Sequence Classification). Stop&Hop handles irregularly sampled ICU data with a continuous-time encoder and a learned time-skip (Stop&Hop: Early Classification of Irregular Time Series). BeneFitter fuses speed and accuracy into a single "benefit" target and fires when it turns positive (Benefit-aware Early Prediction of Health Outcomes on Multivariate EEG Time Series). All three treat the time penalty as a fixed constant or a linear savings term. The open-challenges survey names exactly this, along with revocable decisions and drift, as unsolved (Open challenges for Machine Learning based Early Decision-Making research).

The closest applied work stays on one side of the divide. A cross-attention model predicts need for mechanical ventilation on MIMIC-IV in fixed hourly bins with no stopping rule (Improving Prediction of Need for Mechanical Ventilation using Cross-Attention). A sepsis phenotyping method clusters 24-hour severity scores without any sequential decision (A Machine Learning Method for Early Stewardship of Invasive Mechanical Ventilation in Patients with Sepsis). Finally, The Hidden Cost of Waiting for Accurate Predictions proves that waiting can degrade decisions because the highest-risk individuals leave the pool before the model acts. It constrains our evaluation: any metric computed only on patients still "available" at hour $t$ will flatter late-stopping policies, so we evaluate on the full admission cohort.

Core Claim

The new ingredient is a supervised stopping target whose cost of waiting is a learned, patient-conditional quantity. Concretely, $h_s(x)$ is the estimated increase in mortality from postponing intubation by one hour at hour $s$, for a patient with history $x$ who will ultimately fail noninvasive support. It is estimated by causal methods from observational data, not set by a domain expert. For a training sequence with eventual outcome $y$ ($y=1$ if noninvasive support fails), the retroactive cost of escalating at hour $\tau$ is

$$ C(\tau) = y \sum_{s<\tau} h_s(x) \;+\; (1-y)\, c_{FA}\, \mathbb{1}[\tau < T], $$

where $T$ is the end of the noninvasive episode and $c_{FA}$ is the cost of an unnecessary intubation. The ideal stopping time $\tau^*=\arg\min_\tau C(\tau)$ becomes the imitation target in the Classifier-Induced Stopping recipe. Because $h_s(x)$ is near zero for a delayed responder's profile and large for an impending late failure's, the same observed trajectory can warrant waiting in one patient and escalating in another. A single global threshold cannot express this. We report results across a sweep of $c_{FA}$ rather than claim one correct value.

Research Program

The first component is the cohort. We would extract noninvasive-ventilation episodes from MIMIC-IV and AmsterdamUMCdb using the inclusion logic of the ROX study, which yields roughly 3,344 patients with a 40.2% failure rate (Predictive performance of ROX index and its variations for NIV failure). Hourly irregular vitals, blood gases, ventilator settings, vasopressor use and comorbidities would be processed following An Extensive Data Processing Pipeline for MIMIC-IV. One database trains the model and the other is held out entirely for external validation, in both directions.

The second component estimates the delay harm. At every hour of every episode we emulate a small randomized trial, a design called sequential target-trial emulation. Among patients still on noninvasive support, we compare "intubated within the next two hours" against "continued noninvasive support." Mortality differences are adjusted by inverse-probability weighting for the measured reasons clinicians chose to intubate. A flexible outcome model, stratified by elapsed hours and patient features, gives $h_s(x)$. This step is the scientific crux and the main risk. Intubation timing is confounded by unrecorded bedside judgment, and the file notes that ventilation interface and mode are often missing. We would therefore report sensitivity bounds on $h_s(x)$ under assumed unmeasured confounding and propagate the low and high ends through the policy.

The third component is the policy. A per-hour classifier for eventual failure (a time-decay recurrent encoder in the style of Stop&Hop) is trained on all prefixes. Retroactive targets $\tau^*$ are computed with $C(\tau)$, and a separate policy network is trained to predict "escalate now" by supervised imitation. As a safety layer, we would apply the Learn-then-Test calibration of Early Time Classification with Accumulated Accuracy Gap Control to bound the premature-escalation rate among eventual successes at each hour separately, not on average. That paper shows average-only control lets early decisions be reckless. Its guarantee assumes calibration and test data come from the same distribution, so we report coverage on the external database as an empirical check rather than a guarantee.

Baselines

The naive reference point is current practice encoded as a rule: the ROX index computed every two hours with the standard threshold, escalating when it falls below cutoff. Its best reported discrimination is an AUROC of 0.626 at 10–12 hours on these same two databases, with other windows and variants generally below 0.6 (Predictive performance of ROX index and its variations for NIV failure). We rerun it on our exact cohort split. Beating it should be easy, and failing to would signal a pipeline error.

The strongest practical competitor is a well-tuned hourly risk model with a threshold. This is the same per-hour failure classifier our policy uses, firing when predicted risk crosses a cutoff that is allowed to vary with elapsed hours. The cutoff schedule is tuned on validation data with the same search budget we give our policy's $c_{FA}$ sweep. The most relevant reported number for a learned ventilation predictor is the cross-attention model's AUC of 0.9013 on MIMIC-IV (Improving Prediction of Need for Mechanical Ventilation using Cross-Attention). That task is any mechanical ventilation in a general ICU population, not failure of noninvasive support, so it is not directly comparable. We will also retrain that architecture on our cohort as an alternative classifier inside this baseline.

The strongest existing stopping methods are Classifier-Induced Stopping with its standard linear time penalty, and Stop&Hop. Both are trained on identical features, splits and compute. Stop&Hop reports an AUC of approximately 0.82 on PhysioNet 2012 mortality (Stop&Hop: Early Classification of Irregular Time Series). For Classifier-Induced Stopping on noninvasive-ventilation failure we found no reported result on Lacuna, and the same holds for any early-stopping method on intubation timing.

The ablations that isolate the key ingredient replace $h_s(x)$ in turn with three alternatives. The first is a constant (which recovers standard Classifier-Induced Stopping). The second is a population-average increasing curve that depends on elapsed time only. The third is a patient-conditional curve estimated without confounding adjustment. Beating the baselines means two things at the same premature-escalation rate among eventual successes. The policy must flag more eventual failures before the 72-hour mark the elderly-COVID cohort identifies as critical. It must also beat the time-varying-threshold baseline and the population-average ablation by a margin outside bootstrap confidence intervals on the held-out database.

Why not just…?

Why not just use the ROX index, or a severity score like SOFA? These rules are transparent and already at the bedside, but the file's evidence is that they barely discriminate. ROX tops out at an AUROC of 0.626 (Predictive performance of ROX index and its variations for NIV failure) and performs poorly in immunocompromised patients (Performance of the ROX index to predict intubation in immunocompromised patients receiving high-flow nasal cannula for acute respiratory failure). Baseline severity differs between failures and successes, but it is a snapshot. It cannot tell the 53% of slow responders apart from deteriorating patients during the hours when the decision matters. We include ROX as the naive baseline so this is measured, not asserted.

Why not just threshold an hourly risk model, with the threshold lowered as hours pass? This is the real threat. If the dominant effect is "the longer you wait, the less evidence you should demand," a tuned time-varying threshold captures it with far less machinery, and our population-average ablation would perform about the same. The proposal only earns its complexity if delay harm differs across patients at the same hour and the same risk level. The experiment settles this directly. If the patient-conditional policy does not beat the time-varying threshold on late-failure capture at matched premature-escalation rates, we would report that the simple rule suffices. The contribution would then shrink to the delay-harm estimates themselves.

Why not just learn the stopping rule with reinforcement learning on a mortality reward? Offline reinforcement learning on ICU data has been tried for ventilator settings (Towards Safe Mechanical Ventilation Treatment Using Deep Offline Reinforcement Learning). For early stopping specifically, A Policy for Early Sequence Classification reports that supervised stopping beat a PPO policy by 35.3% in frontier area on ECG data, because the agent that stops never sees what follows. A mortality reward from observational data also faces the same confounding we address explicitly. Folding it into a reward hides the problem rather than solving it. Stop&Hop serves as the reinforcement-learning representative in our comparison.

Why not just plug in the population delay curve from the COVID studies? Those curves come from different populations. The ROX cohort shows no overall mortality penalty for failure, so transporting a COVID curve could badly overstate harm in, for example, hypercapnic COPD patients. The population-average ablation tests exactly this substitution.

Decisive Checks

The program stands or falls on three results. First, the estimated delay harm $h_s(x)$ must show heterogeneity that survives the confounding sensitivity bounds. Patients with slow-responder profiles, such as hypercapnic patients without pneumonia (the obese cohort found 92% of failures had pneumonia versus 14% of successes), should show near-zero harm, and late-failure profiles should show rising harm. If the estimates are flat or the bounds swamp them, the patient-conditional policy has nothing to exploit, and we stop there. Second, the policy must beat the time-varying-threshold baseline on the held-out database. The primary metric is the fraction of eventual failures flagged before 72 hours at matched premature-escalation rates; median hours of lead time before actual intubation is secondary. Every metric is computed over all admissions, so patients who crash or die early are not silently dropped. Third, the per-hour premature-escalation guarantee from Learn-then-Test calibration must hold empirically on the external database. Where it breaks, we report by how much, since this tells us how far the distribution shift between hospitals undermines the safety layer. A final subgroup audit of stopping times by race and sex, motivated by the disparities documented in the MIMIC-IV pipeline paper, checks whether the learned delay costs push some groups toward systematically later escalation.