Skip to content
Robotics.world

Research

Failure Detection for Surgical Robot Imitation Policies via Flow-Matching World Modeling

Imitation-learned surgical robot policies can fail unpredictably at deployment, and in a safety-critical setting a monitor must catch those failures quickly without drowning surgeons in false alarms.

The paper’s first page · arXiv:2607.27511
arXiv
2607.27511 · Preprint · not peer-reviewed
Published
2026-07-29
Authors
Zhefeng Huang, Yilin Cai, Ankit Patel, Mohammad Hajiha, Brendan Browne, Yue Chen

In plain words

Imitation-learned surgical robot policies can fail unpredictably at deployment, and in a safety-critical setting a monitor must catch those failures quickly without drowning surgeons in false alarms. Failure data, however, is scarce, and surgical scenes are highly variable, so training a conventional supervised failure detector is impractical.

AI summary

Overview

Research area: Robotics — surgical robot learning, imitation-learning safety monitoring, and latent world models.

Technical level: Advanced. The paper assumes familiarity with imitation learning (ACT policies), vision foundation models (DINOv2), variational autoencoders, flow matching, and conformal prediction.

Scope: The paper proposes FoMo-FD, an action-conditioned flow-matching world model that detects execution failures of surgical robot imitation policies by scoring how inconsistent a short observation–action window is with learned nominal dynamics, calibrated via conformal prediction on successful rollouts only.

What This Paper Is About

Imitation-learned surgical robot policies can fail unpredictably at deployment, and in a safety-critical setting a monitor must catch those failures quickly without drowning surgeons in false alarms. Failure data, however, is scarce, and surgical scenes are highly variable, so training a conventional supervised failure detector is impractical. The authors' goal is a detector that learns what normal short-horizon execution looks like from successful demonstrations alone, then flags windows in which the observed visual change does not match the commanded actions — no failure demonstrations and no task-specific descriptions required.

Key Contributions

  1. An endpoint-prediction flow-matching world model for surgical visual dynamics. The model predicts the latent visual state at the end of a short execution window, conditioned on a latent visual history and the intervening robot action chunk. It operates on frozen DINOv2 patch features compressed by a view-specific β-VAE into compact latents.

  2. A window-level failure-detection formulation based on inverse-transport nonconformity. Rather than asking whether a single frame looks anomalous, the detector transports the observed endpoint latent backward through the learned flow to the Gaussian base distribution and scores its normalized squared distance. Thresholds come from conformal calibration (N = 19 successful rollouts, α = 0.05), giving task-specific alarms without any failure data.

  3. A broad evaluation across simulation and real hardware. Four surgically relevant tasks — needle pickup and ring over post (Isaac Sim, adapted from SuFIA-BC), and tissue retraction and shunt insertion on a physical da Vinci Research Kit (dVRK) — with twenty distinct failure modes and separate fixed-camera and wrist-camera detectors.

  4. Demonstrated gains over prediction-error and observation-level anomaly baselines, plus ablations on how actions are conditioned and how far ahead the endpoint is predicted.

Main Findings

  • Wrist-view detection is the headline result. The wrist-camera WM-NC detector reaches 96.6% failure detection rate (FDR) at a 1.3% false alarm rate (FAR) across the four tasks, the best overall configuration in Table I.

  • Inverse-transport scoring beats prediction error with the same model. WM-PE (identical world model, endpoint prediction error as the score) reaches 52.2% FDR at 7.5% FAR on the wrist view and only 16.9% FDR at 3.8% FAR on the fixed view.

  • Window-level dynamics beat observation-level anomaly scoring. logpZO (adapted from FAILDetect) reaches 45.3% FDR at 3.8% FAR on the wrist view and 34.4% at 0.0% FAR on the fixed view; RND (adapted from FIPER's observation branch) reaches 42.8% at 1.3% and 37.8% at 0.0% respectively.

  • Even the fixed view improves on the best fixed-view baseline. WM-NC raises fixed-view FDR from 37.8% to 45.9%, described as a 21.4% relative improvement — though fixed-view WM-NC also carries a 10.0% FAR, the highest in the table.

  • Both action-conditioning pathways matter, especially for the wrist view. Wrist-view FDR rises from 87.2% with no action conditioning to 88.8% with action-token cross-attention alone, 90.6% with global action modulation alone, and 96.6% with both combined. The fixed view is far less sensitive to this design choice.

  • Longer endpoint horizons help substantially. Wrist-view FDR climbs from 42.2% at K = 1 to 96.6% at K = 4 while FAR stays low, suggesting short gaps give too weak a visual–action consistency signal. The fixed view improves from K = 1 to K = 3 then dips slightly at K = 4.

  • Scoring is fast enough for the real-time loop, in principle. End-to-end scoring (visual encoding plus inverse ODE integration) runs at 13.98 Hz on an Intel Core Ultra 9 285K CPU / NVIDIA RTX 5090 / 64 GB RAM, above the 10 Hz policy and observation loop used in the real-world experiments — but all reported detection results are computed offline on recorded rollouts, with no online intervention.

  • Failure modes vary widely in detectability. Wrist-view WM-NC catches 20/20 for needle drop, blood occlusion, OOD initial condition and execution mismatch in needle pickup, but only 16/20 for insecure grasp and 3/20 for needle slippage.

Methodology in Plain English

The authors start by freezing a pretrained vision model (DINOv2) and training a small autoencoder to squeeze its image features into a compact latent grid (16 × 16 × 8 channels). This compression is trained once per camera view with β = 0.01 and a channel-utilization weight γ = 0.5, then frozen.

Next they train a "world model" on successful teleoperated demonstrations. Instead of predicting the next frame repeatedly, the model is handed the last L = 4 latent frames plus the K = 4 robot actions taken during the following steps, and asked to predict the visual latent at the end of that window. Training uses flow matching: the model learns a velocity field that carries a Gaussian noise sample along a straight path to the true endpoint latent. An auxiliary head also predicts the very next latent during training only, as a regularizer.

At test time the process runs in reverse. Given the observed endpoint latent, the detector integrates the learned flow backward to see where the observation "came from" in noise space. If execution is nominal, that backward-transported point should sit close to the Gaussian base distribution; if something went wrong — a dropped needle, an occluded camera, a grasp that slipped — it lands far away. The squared normalized distance from the origin is the nonconformity score, computed per view, over a monitored window of H = L + K = 8 steps.

Thresholds are set without any failure data: the authors take 19 successful policy rollouts, record each episode's peak score, sort them, and pick the conformal quantile at α = 0.05. A rollout counts as detected if its score crosses the threshold at least once.

The policy side uses an Action Chunking Transformer (ACT) per task, with its default visual encoder swapped for DINOv2 so policy and detector share a representation; observations are resized to 224 × 224. Training uses λ_FM = 1.0 and λ_aux = 0.5. Simulated tasks use 20 failed rollouts per failure mode and 20 held-out successes; real tasks use 10 failed per mode and 20 successes, giving 320 failed and 80 successful rollouts in total. Baselines (logpZO, RND) are retrained on the same VAE latents and use the same calibration and evaluation splits for a controlled comparison.

Why This Matters

Most surgical autonomy monitoring assumes you already know what a failure looks like, or that you can label unsafe events. FoMo-FD inverts that: it learns only what success looks like and treats inconsistency between commanded action and observed visual change as the alarm signal. Because routine robot-assisted surgeries already generate a large corpus of successful executions, this is a practical route to deployment-oriented safety monitoring without bespoke failure annotation.

Real-world applications:

  • Runtime safety monitoring during robot-assisted surgery, raising an alarm when instrument–tissue interaction departs from nominal dynamics (grasp loss, tissue disturbance, needle intrusion).
  • Supervised handoff to a human surgeon, where a detector with a low false alarm rate determines when control should return to the operator.
  • Camera and sensor fault detection in the OR, such as the camera-freeze and blood-occlusion modes tested here, which are sensing anomalies rather than policy errors.
  • Regression testing of new imitation policies before clinical use, scoring offline rollouts against a calibrated nominal model.

Industry relevance: The work targets the da Vinci Research Kit and wrist-camera sensing, consistent with surgical imitation-learning systems such as SRT and SRT-H. It matters to surgical robotics companies building autonomy layers, to regulators who need interpretable, statistically calibrated alarm thresholds, and to hospital systems weighing whether an autonomous subtask is safe to enable.

Future Directions

  • Combining local and global alarms. The authors explicitly propose fusing wrist- and fixed-view detectors through a multi-view alarm policy, since the wrist view dominates for local manipulation failures while the fixed view carries broader scene context.
  • Removing the need for deployment rollouts. Conformal calibration still requires a small set of successful rollouts under the deployment policy; relaxing this would let the method be applied without any on-robot calibration data.
  • Progress- or state-conditioned calibration. The current threshold is episode-level rather than a time-varying conformal band, because surgical episodes reach the same stage at different times. Replacing the time index with a progress or state variable is proposed as a fix.
  • Layered monitoring with semantic systems. FoMo-FD detects whether the interaction is unfolding safely, not whether the robot is doing the right task; coupling it to VLA-based or task-progress monitors is the stated path toward fuller autonomy monitors. Online (rather than offline) evaluation with actual intervention is also still open.

Target Audience

Robotics and surgical-robotics researchers working on safety monitoring, anomaly detection, and world models for manipulation; engineers building execution monitors for imitation-learning policies; and clinically adjacent readers (surgical robotics groups, translational researchers) who want a failure-detection scheme that needs only successful demonstrations and reports calibrated false alarm rates. Readers without background in flow matching or conformal prediction will find the method sections dense, but the experimental results and the qualitative score traces in Figures 3 and 4 are accessible.

Authors’ abstract

Imitation learning has shown increasing promise for autonomous robotic surgery, yet safe deployment remains challenging due to the safety-critical nature of surgical tasks and the complexity and variability of surgical environments. Failure detection is therefore an essential safeguard, but its development remains difficult due to the challenges of scarce failure data, highly variable manipulation dynamics, and the need to balance missed detections against disruptive false…

The full abstract on arXiv
Read the original paper

Related papers