NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Kinematic Queries That Recalibrate on Clean Frames and Carry Tools Through Smoke

Surgical robots know where their instruments are. Every joint angle is logged many times per second, and that signal is unaffected by smoke, blood or glare. Camera-based tool segmentation, which labels each pixel as instrument or background, works very well on clean video and then fails exactly when surgeons need it most. On the SegSTRONG-C benchmark, a UNet falls from 0.94 to 0.57 Dice under low brightness, and SAM2 zero-shot falls to 0.43 (SegSTRONG-C). Kinematics, the robot's own joint readings, would seem to solve this. In practice they cannot be used directly. Cable friction and errors in the camera-to-robot calibration mean that projecting the robot model into the image lands in the wrong place: kinematic projection alone reaches only 0.56 IoU on a phantom (Self-Supervised Surgical Tool Segmentation using Kinematic Information).

We propose a segmentation model in which a few kinematic tokens, one compact vector per instrument built from its joint state, act as attention queries over a small window of visual features around where the robot says the tool should be. Each query does two things. It outputs that instrument's mask. It also outputs an estimate of the current calibration offset between projected and true tool position. The offset is kept as a slowly updated running state. While the image is clean, vision corrects the kinematics. When a learned reliability gate detects that the image has degraded, the gate stops trusting vision, freezes the offset, and lets the corrected kinematics carry the tool through the smoke. Because attention touches only a few queries and a local window, the added cost should be a small fraction of a frame budget. That keeps the system at or above 30 frames per second, the rate surgical display needs.

Core Claim

The obvious idea at this intersection is to "fuse kinematics with video by cross-attention." It is not done for segmentation, but on its own it is weak. A skeptic can feed the projected robot silhouette in as an extra input channel and get most of the benefit at no attention cost.

Our claim is narrower and testable. The value of attention-based kinematic fusion lies in two places. The first is estimating calibration drift from clean frames and reusing that estimate across corrupted ones. The second is assigning instance identity per robot arm. A rendered prior channel concatenated to the image provides neither, because it has no notion of which pixels correspond to which projected point and no state that persists across frames.

The prediction follows directly. On clean frames the concatenated prior should match our method. Under corruption that follows a period of clean video, our method should hold accuracy while the concatenated prior drifts toward raw kinematic projection quality. The same comparison should hold, at a smaller margin, against a version of the concatenated prior given recurrent memory.

Relation to Prior Work

Two papers motivate the gap. SegSTRONG-C documents the collapse of vision-only models under realistic corruption and names kinematic integration as the next step (SegSTRONG-C). The 2017 challenge report records near-total failure under real cautery smoke even though humans could still see the tools (2017 Robotic Instrument Segmentation Challenge).

Two papers are the closest kinematic precedents, and both differ from this proposal in ways that matter. Da Costa Rocha et al. use kinematics only offline: they project a CAD model and align it with GrabCut to produce pseudo-labels, which takes about 43 minutes (Self-Supervised Surgical Tool Segmentation using Kinematic Information). We do the alignment online, inside the network, every frame. The MA-TCN gesture model weighs kinematics against video once per time step to classify gestures (Gesture Recognition in Robotic Surgery With Multimodal Attention). That weighting is global, and the output is a gesture label rather than a mask. Our attention is spatial and indexed per instrument.

Several papers supply methods we reuse. Gated cross-attention, which mixes attended context with the original features through a learned gate, comes from drug–target modelling (Gated Cross Attention for DTI). We repurpose the gate as a vision-reliability switch that also controls whether the offset state updates. Reliability-based trust shifting between frames and event streams (Object Tracking by Jointly Exploiting Frame and Event Domain) and VPSentry's continuity gate, which blocks corrupted temporal updates (VPSentry), both shape our gate design. Neither carries a second physical sensor into a dense mask.

The latency side follows two further papers. Compact-latent attention (LAMAE) and the MobileNetV2 memory design of DMNet, which runs at 38 FPS (DMNet), show that attention restricted to few tokens can fit a real-time budget.

One paper constrains the design. MATIS reaches 71.36% mIoU on EndoVis 2017 with 8-frame video transformers but reports no real-time speed (MATIS). This tells us that recovering accuracy with heavy temporal attention is the expensive path we must avoid.

Research Program

The backbone is a MobileNetV2-class encoder and decoder of the kind used by DMNet. For each instrument $i$ we form a query $q_i$ from its joint state and the image-plane projection of its tip and wrist. That projection is shifted by the current offset estimate $\delta_i$. Query $q_i$ attends over visual tokens in a window of fixed size $M$ centred on the shifted projection, at cost $O(KM)$ for $K$ instruments, independent of image resolution. Each query's output is decoded in two ways. It is dotted with the decoder features to produce instance mask logits, in the manner of query-based mask heads. It also feeds a small regression head that predicts a residual offset $\Delta_i$.

The offset state updates as

$$\delta_i^{t} = \delta_i^{t-1} + g^t \,\eta\, \Delta_i^t ,$$

where $\eta$ is a small learned step size and $g^t \in [0,1]$ is the vision-reliability gate. The gate is computed from image statistics and from attention entropy. When $g^t$ is near zero, vision is ignored for both the mask and the calibration update, so the mask comes from the corrected kinematic projection.

Training uses clean sequences with synthetic drift added to the kinematics and corruptions applied to the frames. The losses are mask loss and offset loss, where the offset target is the shift between projected and annotated tool centroids. Crucially, corrupted segments are always preceded by clean segments, so the network learns to carry its offset state forward.

Runtime is a first-class outcome. We will compile with TensorRT, following the ultrasound foundation-model work that reached about 77 FPS that way (Adapting VFMs for Real-time Ultrasound). We will report end-to-end milliseconds per frame on one fixed GPU and isolate the time spent in fusion.

The data is the main practical risk. The STRAS phantom and in vivo porcine data come with kinematics and IoU references. SegSTRONG-C is generated by robotic replay, which strongly suggests that recorded kinematics exist. We must confirm they can be obtained. If they cannot, SegSTRONG-C-style corruptions will be applied to the STRAS sequences. EndoVis 2017 and 2018 serve as vision-only references. Our method cannot run on them without kinematics, but they anchor the backbone's clean accuracy against DMNet.

Baselines

The naive reference point is raw kinematic projection with no learning. It reaches 0.56 IoU on STRAS Phantom 1 (Self-Supervised Surgical Tool Segmentation using Kinematic Information). Alongside it we run the vision-only backbone, which is the same encoder and decoder with no kinematic input, trained with the identical corruption augmentation. Beating it under corruption is the minimum bar.

The strongest vision-only reference on corruption is the SegSTRONG-C winning entry, which reports 0.9394 average DSC across test sets (SegSTRONG-C). Where SegSTRONG-C kinematics are available, we will train on the same 11 clean training sequences and evaluate on the same corruption test split. Beating it means exceeding 0.9394 average DSC. We expect the clearest gains on the low-brightness split, where vision-only references fall to 0.57 for UNet and 0.43 for SAM2, at 30 FPS or more. Where kinematics are not available, we report the backbone's vision-only result against this number for context only.

On STRAS, the relevant references are the 0.62 IoU of kinematic pseudo-label training on in vivo data and the 0.72 IoU of full supervision. A real-time method above 0.72 under smoke and blood would be a clear result. For real-time vision models, DMNet reports 61.03% mDice at 38 FPS on EndoVis 2017 type segmentation (DMNet). We will re-run DMNet on our splits with the same augmentation and tuning budget.

The strongest multimodal competitor is one we construct, because none exists in the literature. It renders the drifting kinematic projection as a per-instrument heatmap and concatenates it to the image input of the same backbone. A second variant adds a ConvLSTM so it can carry state across frames. Both variants receive the same parameter count, data, augmentation, drift schedule and hyperparameter search budget as our model.

Two ablations isolate the key ingredient. The first removes the offset state, setting $\delta$ to zero so the model attends around raw projections. The second fixes the gate at one, so vision is always trusted. If neither ablation hurts, the core claim is wrong.

Why not just…?

Why not just concatenate the rendered kinematic prior as an input channel? This is the real threat. On clean frames, and under small and constant drift, we expect it to match us. A CNN can learn to shift a prior by a few pixels. What it lacks is any mechanism to remember the correction once the image becomes uninformative. During smoke it must fall back on the uncorrected prior.

The decisive experiment varies two things: the drift magnitude, and the length of the clean segment before corruption. If the concatenated prior matches us at large drift after long clean segments, our contribution reduces to "add kinematics." We would report it that way.

Why not just give that concatenated model a recurrent memory? A ConvLSTM can, in principle, carry an offset across frames. We include it as a baseline for that reason. Our bet is that an explicit, gated two-dimensional offset per instrument is easier to learn than an implicit offset spread across a feature map, and that it drifts less over long corruptions. The test is accuracy as a function of how long the corruption has lasted.

Why not just augment a fast vision-only model harder? The SegSTRONG-C winner shows augmentation can do very well on average. However, SegSTRONG-C itself notes that augmentation depends on knowing the corruption type in advance (SegSTRONG-C), and the 2017 report shows that real smoke defeated augmented models (2017 Challenge). To probe this, we hold out one corruption type entirely during training. If heavily augmented vision matches us on the held-out type, kinematics are not buying robustness.

Why not just use late fusion and average a vision mask with the projected silhouette? MA-TCN found late ensembles inferior to intermediate attention for gestures (Gesture Recognition with Multimodal Attention). Averaging also cannot correct drift. We include it as a cheap reference.

Decisive Checks

The first check plots Dice against corruption duration, with corruption always preceded by clean video, for our model, the concatenated prior with and without memory, and the vision-only backbone. The claim holds only if our curve stays flat while the others decay toward the 0.56-level projection floor.

The second check plots Dice against injected calibration drift. Here we expect our advantage to grow with drift.

The third check is the held-out-corruption test on SegSTRONG-C-style corruptions, where kinematics exist, or on STRAS in vivo smoke and blood.

The fourth check is latency. The full system must sustain at least 30 FPS end to end under TensorRT, and we expect the fusion module to cost no more than a few milliseconds per frame. If it costs more, the window size $M$ is cut until it does, and the resulting accuracy loss is reported.