Knowing When to Stop Cutting: Optimal Stopping for Bone-Sparing Spinal Decompression

In bone-sparing spinal decompression, the surgeon removes the ligament and the thin rim of bone that press on the nerves while trying to leave intact the facet joints, the small paired joints that keep each vertebra mechanically stable. The central intraoperative decision is when to stop. If the surgeon stops too early, compression remains and the patient keeps the leg pain or numbness. If the surgeon stops too late, the facet is damaged, the segment can become unstable, and the "preserving" operation may end in a fusion with screws. Current AI tools for this surgery plan the cut once, before surgery, from a CT scan. At operating time they do nothing to decide when enough has been removed.

We propose to treat this decision as an early-stopping problem, the setting studied in the earliness-accuracy literature, where a model watches data arrive over time and must decide both what is true and when it has seen enough to act. Spinal decompression has a feature that the standard setting lacks: evidence is not free. The main way to learn where the facet boundary lies is to cut closer to it, so every extra observation removes some of the structure the operation is meant to preserve. We will build a stopping policy that accounts for this coupling. It weighs residual compression against facet loss under a belief about hidden anatomy that combines the preoperative CT with partial keyhole observations. We will test it in a simulated burring environment built from real spine CT volumes, against static planning and against the strongest existing instantaneous safety filters.

Core Claim

A stopping policy that looks ahead and knows that continuing to cut both yields information and destroys bone will give a better trade-off between residual compression and facet violation than two alternatives. The first is static preoperative planning. The second is a one-sided "stop before the wall" safety margin. The advantage should appear specifically when the anatomy shifts during surgery or deviates from normal shape. Written out, the policy picks a stopping step $\tau$ to minimize

$$J(\tau) = \mathbb{E}\big[\, c_r\, R(\tau) + c_f\, F(\tau) + c_t\, \tau \,\big],$$

where $R(\tau)$ is the residual compression after $\tau$ cutting steps (it decreases with cutting), $F(\tau)$ is the facet volume removed beyond a preservation limit (it increases with cutting), $c_r, c_f, c_t$ are clinical cost weights, and the expectation is over hidden anatomy given the observations so far. The difference from the usual early-classification problem is that the observations available at step $t$ depend on how much has already been cut. The cost is two-sided, with a best stopping point between the two failure modes. Existing robotic spine safety work avoids only one wall.

Relation to Prior Work

Two pieces of work motivate the gap from the surgical side. Automatic laminectomy cutting plane planning predicts seven vertebral landmarks on CT and places the longitudinal cuts at 75% of the midline-to-pedicle distance. It reports 0.65 ± 0.70 mm landmark error and 97.18% expert "Grade A" longitudinal planes on VerSe2020. It is entirely offline, and its authors flag CT noise and deformity as failure sources. We reuse its landmark geometry to define the preservation limit and use its plan as the static baseline. Clinical series on facet-sparing flavectomy (Semi-Circumferential Decompression) and on endoscopic discectomy (Residual leg numbness after endoscopic discectomy) show that both failure modes matter clinically: residual symptoms on one side, instability and fusion on the other. Both leave the stopping decision to surgeon feel.

The closest computational work supplies methods but solves a different problem. Safe Deep RL for Intraoperative Planning of Pedicle Screw Placement (SafeRPlan) plans screw trajectories from partial intraoperative views. A five-head ensemble predicts distance to critical boundaries and applies a pessimistic margin. We reuse the ensemble idea for our belief model. Their filter is an instantaneous, one-sided override, however, and our objective has two sides and is temporal. Early Failure Detection in Autonomous Surgical Soft-Tissue Manipulation shows that the slope of ensemble variance over time predicts failure in ex vivo soft tissue, raising success from 47.5% to 95%. Its stop rule is a hand-tuned threshold, and it was never tested on rigid bone at millimetre scale. We test that heuristic directly as a baseline.

From the stopping side, Deep Recurrent Optimal Stopping supplies our policy learner: a recurrent policy trained by treating stopping as inference over a success variable, avoiding compounding Bellman errors. BeneFitter supplies the idea of stopping when estimated net benefit turns positive. It also constrains us, because it relies on expert-specified costs, so we report full trade-off curves across cost ratios instead of trusting one setting. The Hidden Cost of Waiting for Accurate Predictions proves that waiting for accuracy can hurt when the population changes while you wait. Our setting is an analogous but distinct mechanism: the object changes because you observe it. In both work surveyed on this side, observation itself is free, and here it is not.

Research Program

The first component is a burring simulator built on VerSe2020 CT volumes and the ITIS virtual population models used by Ao et al. For each target level we segment the lamina, ligamentum flavum, and facets. Following Li et al., we define the target decompression (canal area restored) and the preservation limit (facet volume beyond the 75% line). Cutting proceeds as small voxel removals along a surgeon-like path. After each step the agent sees only a noisy depth map of the newly exposed surface inside a keyhole window, which is the partial view that tissue-sparing access imposes. We inject intraoperative shift as a rigid-plus-small-deformation offset between the preoperative CT and the true anatomy, with a magnitude we control. This lets us study exactly the regime where static plans are said to fail.

The second component is a belief model. A 3D convolutional network takes the preoperative CT, the cut history, and the keyhole observations, and predicts current residual compression and remaining facet margin. A five-head ensemble provides uncertainty, reused from Ao et al. As an ablation we replace the ensemble with a generative prior that samples plausible full anatomies consistent with the partial view, in the spirit of Generative Diffusion Prior Distillation. That work reports 84.64% average AUC-PRC at a 50% prefix versus 78.14% for logit distillation on 12 UCR datasets. We keep the generative prior only if the ensemble demonstrably misses bimodal cases, for example when the facet could plausibly lie on either side of the current cut.

The third component is the stopping policy, trained with the recurrent optimal-stopping method on simulated trajectories under $J(\tau)$. It runs separately for left and right sides. For each cost ratio $c_f/c_r$ we train one policy and trace a curve of residual compression against facet violation.

The main limitation is that everything rests on simulation from static CT. Keyhole depth sensing, bleeding, and dural pulsation are crudely modelled. The claim this work can support is therefore "the stopping structure matters when anatomy is uncertain," not "this is ready for patients."

Baselines

The naive reference point is open-loop execution of the preoperative plan. We compute cutting planes with the landmark-based 75% rule of Li et al. on the preoperative CT and execute them regardless of intraoperative observations. We also run a stronger variant that re-registers the plan to the keyhole observations once, rigidly, before cutting. This baseline costs nothing to run and is expected to be nearly unbeatable when shift is zero. Beating it means lower facet violation at equal residual compression once shift exceeds a stated magnitude, and on the deformed-anatomy subset of VerSe2020. The reported numbers, 0.65 mm landmark error and 97.18% Grade A, are planning metrics on undistorted CT. No reported result on stopping or execution under shift was found on Lacuna.

The strongest existing competitor is the pessimistic ensemble safety filter of Ao et al.. We adapt it by having its ensemble predict distance to the preservation limit and halting when the mean distance minus $k$ standard deviations falls below a margin, with $k$ and the margin tuned. For pedicle screws it reports a 100% safe rate on known anatomies, over 90% on unseen anatomies, and 90% bone penetration relative to expert plans. It is the strongest competitor because it already handles partial observation and uncertainty in spinal bone. The open question is whether a one-sided margin suffices for a two-sided objective. No reported result on decompression stopping was found on Lacuna, so we will re-run it ourselves. We also run the variance-slope rule of Thompson et al. on the same ensemble.

Fairness is enforced by construction. All uncertainty-based methods share the identical belief network and ensemble, trained on the same simulated trajectories. Only the stopping rule differs. Every rule receives the same hyperparameter search budget, 50 configurations each, selected on validation patients. The test anatomies are held-out VerSe2020 and ITIS subjects. Beating a baseline means that our curve of residual compression against facet violation lies below it, measured as area under the curve with patient-level bootstrap confidence intervals, and that no operating point of the baseline dominates ours.

Two ablations isolate the key ingredient. The first is a myopic stopping rule: stop as soon as the belief model's expected one-step cost of continuing exceeds that of stopping. It uses the same beliefs and costs but has no lookahead and no value for future information. The second is fitted Q-iteration in place of the recurrent optimal-stopping learner, which checks whether the learner choice matters.

Why not just…?

Why not just plan preoperatively and execute the plan? If intraoperative registration is accurate, this is the right answer, and the proposal should say so. Ao et al. argue that static plans fail under intraoperative shift, but that is an argument, not a measurement for decompression. Our shift sweep settles it. We report the shift magnitude, if any, at which adaptive stopping starts to beat the re-registered static plan. If that threshold lies beyond realistic shift, the main result is negative for adaptive stopping in normal anatomy, and the contribution narrows to deformed spines.

Why not just stop at a fixed or uncertainty-inflated distance margin? This is the real threat. A margin guards only the facet side. To avoid violations in uncertain cases it must stop early everywhere, which trades facet safety for residual compression. The Ao et al. filter is still well tuned, and a single well-chosen margin might trace nearly the same curve as a learned policy. The head-to-head curves above are the test. We expect a gap mainly on high-uncertainty subjects, and we will report results stratified by ensemble disagreement so the gap, or its absence, is visible.

Why not just threshold a calibrated probability that decompression is adequate? This is the myopic ablation. It is the simplest honest version of our idea, and it may capture most of the benefit, since one-step rules are often near-optimal. The non-myopic policy should help only where cutting further is informative, for example when a short additional cut would resolve whether the facet boundary lies close. We will measure the gap overall and on those cases. If the gap is within bootstrap noise, we will report that a calibrated myopic rule suffices and recommend it, since it is simpler to deploy.

Proposed Experiments

The first decisive check is the shift sweep. We run open-loop, re-registered, safety-filter, variance-slope, myopic, and full stopping policies at shift magnitudes from zero up to several millimetres. We expect static plans to tie at zero shift and fall behind as shift grows.

The second is the deformity split. VerSe2020 subjects with scoliosis or spondylolisthesis are evaluated separately, since Li et al. flag this regime as unproven for static planning.

The third is cost robustness. Addressing the misspecification concern raised by BeneFitter, we train at one ratio $c_f/c_r$ and evaluate at others to measure how much the curve degrades when clinical costs are wrong.

The fourth is a sanity check of the stopping learner on the UCR archive. The recurrent optimal-stopping method reports the lowest average cost on 15 of 17 UCR datasets. Reproducing roughly that ranking confirms our implementation before any surgical claim is made.

Every check has a stated way to fail. The idea should be dropped or narrowed if the myopic rule matches the full policy, or if the tuned margin filter's curve is statistically indistinguishable from ours at realistic shift.