SSP: Safety-guaranteed Surgical Policy via Joint Optimization of Behavioral and Spatial Constraints
Authors: Jianshu Hu, ZhiYuan Guan, Lei Song, Kantaphat Leelakunwet, Hesheng Wang, Wei Xiao, Qi Dou, Yutong Ban
Organizations: Global College, Shanghai Jiao Tong University, Shanghai, China · Department of Computer Science and Engineering, The Chinese University of Hong Kong, HongKong, China · Computer Science and Artificial Intelligence Laboratory, Massachusetts Institute of Technology, Massachusetts, America
The paradigm of robot-assisted surgery is shifting toward data-driven autonomy, where policies learned via Reinforcement Learning (RL) or Imitation Learning (IL) enable the execution of complex tasks. However, these ``black-box" policies often lack formal safety guarantees, a critical requirement for clinical deployment. In this paper, we propose the Safety-guaranteed Surgical Policy (SSP) framework to bridge the gap between data-driven generality and formal safety. We utilize Neural Ordinary Differential Equations (Neural ODEs) to learn an uncertainty-aware dynamics model from demonstration data. This learned model underpins a robust Control Barrier Function (CBF) safety controller, which minimally alters the actions of a surgical policy to ensure strict safety under uncertainty. Our controller enforces two constraint categories: behavioral constraints (restricting the task space of the agent) and spatial constraints (defining surgical no-go zones). We instantiate the SSP framework with surgical policies derived from RL, IL and Control Lyapunov Functions (CLF). Validation on in both the SurRoL simulation and da Vinci Research Kit (dVRK) demonstrates that our method achieves a near-zero constraint violation rate while maintaining high task success rates compared to unconstrained baselines.
Figures & tables
Fig. 1 : Safety-guaranteed Surgical Policy Framework: We propose a safety-guaranteed surgical policy framework, which learns robust and safe executions of surgical actions.
Fig. 2 : Overview of the Safety-guaranteed Surgical Policy (SSP) Framework: This architecture decouples task performance from safety assurance by wrapping “black-box” surgical policies within a theoretically guaranteed safety layer. The framework utilizes Neural Ordinary Differential Equations (Neural ODEs) to learn a continuous dynamics model with uncertainty quantification, which underpins a Robust Control Barrier Function (CBF) controller. By solving a quadratic program that jointly optimizes for behavioral constraints (restricting the agent to the valid task space) and spatial constraints (avoiding no-go zones), the system minimally deviates from nominal actions to ensure strict safety during deployment.
Fig. 3 : Surgical Environments: The four unconstrained simulation environments in SurRoL used for evaluation.
Fig. 4 : Visualization of the Trajectory and Corresponding Safe Margin: (a) The circular path following task and (c) the safe margin along the path. With CLF combined with CBF, the agent successfully follow the circular path while avoid the red sphere no-go zone. (b) Path following for NeedlePick task and (d) the safe margin along the path. With CLF combined with CBF, the agent successfully finish the NeedlePick task while avoid the cylinder no-go zone. The margin values remain strictly positive ( b(x)>0 ), quantitatively verifying that the safety constraints are strictly satisfied throughout the execution.
CLF Only
Combined CLF-OKCBF Control
Path Type
Len. (m)
Avg. Dev. ( 10−4 m)
CLF Dev. ( 10−4 m)
CBF Dev. ( 10−2 m)
Total Dev. ( 10−3 m)
Straight
0.35
0.939
1.00
7.89
3.23
Circular
0.75
4.24
3.00
0.230
0.341
Triangular
0.30
4.34
4.00
3.05
1.35
TABLE I : Comprehensive Reference Path Following Results: Average trajectory tracking deviation from the reference path under CLF control and CLF CBF control.
Ablation Study (CLF)
Ablation Study (CBF)
Beta ( β )
Avg. Tracking Dev. (m)
Gamma ( γ )
Avg. Safe Margin (m)
5
2.75×10−4
5
9.94×10−2
10
1.36×10−4
10
7.89×10−2
15
9.39×10−5
15
7.35×10−2
20
1.26×10−4
20
5.85×10−2
25
1.34×10−4
25
4.83×10−2
TABLE II : Ablation Studies: Impact of CLF Gain β (Left) and CBF Gain γ (Right) on System Performance.
Fig. 5 : Surgical Environments with Constraints in SurRoL used to evaluate safety. The rows correspond to the four tasks: (a) NeedleReach, (b) NeedlePick, (c) GauzeRetrieve, and (d) PegTransfer. The columns illustrate the two different No-Go Zones geometries (Cylinder vs. Sphere).
Constraint
Task
Method
Task Performance
Safety / Efficiency
Mean Success Rate ↑
Collision ↓
Time ↓
Safe Margin ↑
s˙ Error ↓
s Error ↓
(w/ Violation)
(w/o Violation)
(ms)
( ×10−3 )
( ×10−3 )
( ×10−4 )
Cylinder No-Go Zones
NeedleReach
CLF [ 22 ]
1.00±0.00
0.08±0.02
0.92±0.02
3.33±0.28
−15.5±1.47
1299±7.94
1295±7.87
DP [ 28 ]
1.00±0.01
0.42±0.03
0.58±0.03
6.96±0.36
−1.20±1.61
4.83±0.18
4.79±0.17
DEX [ 4 ]
1.00±0.00
0.50±0.00
0.50±0.00
1.73±0.09
1.71±0.89
6.60±0.29
6.68±0.33
SSP-CLF (Proposed)
1.00±0.00
0.27±0.09
0.17±0.02
5.17±0.09
2.24±0.79
1074±5.80
1071±5.93
TABLE III : Evaluation Results. Mean success rate (with / without violation), collision rate, inference time, and safety margin. Results are averaged over 3 seeds with 20 rollouts each. ↑ / ↓ indicate higher / lower is better. The quantitative results demonstrate the critical efficacy of the proposed framework in enforcing safety without severely compromising task performance.
Method
PSM Tasks
Overall
NeedleReach
GauzeRetrieve
NeedlePick
PegTransfer
Aggregate
Reinforcement Learning
SAC [ 29 ]
1.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
DDPG [ 30 ]
1.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
0.00 ( ± .00)
Imitation Learning
BC [ 31 ]
1.00 ( ± .00)
0.07 ( ± .05)
0.21 ( ± .06)
0.56 ( ± .11)
0.40 ( ± .05)
SQIL [ 32 ]
0.07 ( ± .09)
0.00 ( ± .00)
0.00 ( ± .00)
0.02 ( ± .05)
0.00 ( ± .00)
VINN [ 33 ]
0.89 ( ± .06)
0.01 ( ± .02)
0.02 ( ± .02)
0.05 ( ± .04)
0.02 ( ± .02)
TABLE IV : Performance of Different Learning Algorithms in Surgical Environments: The quantitative results demonstrate the proposed framework achieves comparable performance compared to other unconstrained baselines while guaranteeing safety.
Fig. 6 : Real World Experiments of Needle and Gauze Picking with No-Go Zones: Sampled frames evaluating RL with safety constraints guaranteed by CBF. The rows show (a) needle pick with a sphere, (b) needle pick with a cylinder, (c) gauze retrieve with a sphere, and (d) gauze retrieve with a cylinder.
Fig. 7 : Real World Experiments on dVRK. (a) Multi stage suturing sequence (RL + CLF). The task is decomposed into an RL based grasp phase for robust needle acquisition, followed by a CLF based insertion phase. (b) and (c) Lung tumor resection task with safety constraints (Top and Side views, CLF + CBF). The CLF generates a nominal cutting trajectory, while the CBF enforces a hard safety constraint to prevent penetration into a spherical vascular safety region ( r=90 mm). The controller smoothly deviates to avoid the no-go zone and converges back to the path.