Language-Conditioned Behavioral Cloning for Autonomous Endoscope Guidance
Automated endoscope guidance reduces the need for continuous manual camera control during minimally invasive surgery. However, the desired camera motion depends on the surgeon's immediate intentions and cannot always be inferred from the visual operative scene alone.
From the abstract. Our summary is in progress.
Full paper
Language-Conditioned Behavioral Cloning for Autonomous Endoscope Guidance
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2610.41978 (PDF).
Abstract
Automated endoscope guidance reduces the need for continuous manual camera control during minimally invasive surgery. However, the desired camera motion depends on the surgeon’s immediate intentions and cannot always be inferred from the visual operative scene alone. We propose to automate the task using language-conditioned behavioral cloning; we define 6 clinically relevant guidance behaviors and collect 235 subtask demonstrations. In preliminary phantom experiments, our policy achieves 100% success on focus, overview, and stop, 80% on search-tip and follow-tip behaviors, and 50% on horizon leveling. These results demonstrate the feasibility of learning heterogeneous surgeon-requested camera behaviors with a single visuomotor policy, while the observed failure modes motivate future work on adding temporal context for more demanding guidance tasks.
I INTRODUCTION
In minimally invasive surgery, camera navigation determines the surgeon’s view of the operative field and can directly affect procedural performance [1, 2]. Camera control also adds extra workload, either for an assisting operator in conventional laparoscopy or for the surgeon in robotic surgery [3, 4]. Automated endoscope guidance aims to reduce the need for continuous manual camera control while retaining the surgeon’s ability to specify the desired view with minimal disruption to the surgical workflow. However, adapting in real time to different surgeon-requested camera behaviors and translating these requests into appropriate endoscope motion remains challenging.
Existing work has either relied on standard instrument tracking and visual servoing [5, 6], or on language-based interfaces for selecting hand-designed camera-control behaviors [7]. More recent approaches have learned camera-control strategies while relying on a separate controller for execution [8], learned camera motion directly from visual observations without explicit task specification [9], or learned instruction-conditioned policies for a restricted class of tracking behaviors [10]. However, whether a single visuomotor policy can learn directly from demonstrations to execute a heterogeneous set of surgeon-requested laparoscopic camera-guidance behaviors remains underexplored.
We propose to automate endoscope guidance using language-conditioned behavioral cloning (BC). The resulting transformer policy maps high-dimensional endoscopic observations together with real-time surgeon instructions directly to camera motion, without explicit instrument tracking or hand-designed, task-specific camera-control rules. The contributions of our work are the following: i) we formulate surgeon-requested endoscope guidance as a language-conditioned visuomotor control problem and address it with a transformer policy trained through BC; ii) we provide a clinically relevant protocol that frames the task as six explicit camera-motion primitives expressible as language instructions, and iii) we demonstrate with a preliminary evaluation that the resulting policy can successfully execute diverse laparoscopic camera-guidance behaviors.
II METHODS
II-A Task protocol
We define six endoscope-guidance subtasks intended to capture common camera adjustments required during minimally invasive surgery. The task set was developed together with clinicians and guided by established criteria for laparoscopic camera navigation, including target centering, viewing distance, horizon orientation, and instrument visibility [1, 2]. We additionally considered behaviors previously studied in automated camera-guidance systems, including instrument tracking, trajectory following, and maintaining or stopping camera motion [5, 4, 7]. The resulting protocol comprises focus, overview, search tip, follow tip, level horizon, and stop. Together, these motion primitives cover changes in viewing distance, instrument localization and tracking, viewpoint orientation, and deliberate camera stabilization. Each subtask is issued as an explicit guidance request, allowing different camera behaviors to be selected within the same surgical scene. Table I summarizes the desired endoscope response for each subtask.
- Focus
- The instrument operator defines a working region by grasping two tissue segments or pointing with two instruments, with the space between their tips indicating the target. The endoscope moves toward the region while keeping it centered in the image.
- Overview
- The instrument operator continues the current surgical activity, while the endoscope moves away from the observed working area to provide a wider view and keeps that area centered in the image.
- Search tip
- The instrument operator indicates a target with one instrument. The endoscope searches for the instrument when it is outside the field of view, follows its visible shaft until the tip is located, and centers the midpoint between the instrument tip and the indicated target.
- Follow tip
- The instrument operator points toward an anatomical structure and moves an instrument along its contour. The endoscope follows the instrument tip, keeping it near the center of the image while maintaining visibility of the surrounding anatomy.
- Level horizon
- The endoscope operator rolls the endoscope to correct the camera orientation and restore a level horizon and upright view of the operative field.
- Stop
- The other operators may continue activity in the phantom, remain inactive, or work outside the field of view, while the endoscope remains stationary and preserves the current view.
II-B Hardware and Experimental Setup
We use the robotic platform for autonomous laparoscopic surgery described in [11]. The experimental setup consists of a UR5e robotic arm equipped with a stereo TIPCAM1 S 3D endoscope (Karl Storz SE & Co. KG) and the OpenHELP phantom [12]. The robot is controlled through a joystick-based interface while enforcing the remote center-of-motion (RCM) constraint. The experimental setup is shown in Figure 1.
II-C Data Collection
Data was collected with three operators: one controlled the robotic endoscope, another operated two laparoscopic instruments that provided visual references for selected tasks, and a third operated an electrocautery instrument in selected episodes to reproduce scenes containing three instruments. Each episode corresponded to one guidance task. We recorded synchronized stereo images, the three-dimensional endoscope-tip position, the endoscope roll angle, and one language instruction per subtask. The dataset contains 235 episodes, which result in a recording time of 39:53 (minutes:seconds), distributed across focus (6:20), overview (6:01), level horizon (7:11), follow tip (4:55), search tip (6:18), and stop (9:08).
II-D Task Space and Policy Definition
At each time step t, the policy receives the synchronized stereo endoscopic image pair and the language instruction associated with the current subtask, o_{t}=(I_{t}^{\mathrm{left}},I_{t}^{\mathrm{right}},\ell_{t}). The action a_{t}=(\Delta p_{t},\Delta r_{t}), consists of the relative 3D displacement of the endoscope tip, \Delta p_{t}\in\mathbb{R}^{3}, and the change in endoscope roll angle, \Delta r_{t}\in\mathbb{R}. Our policy is a language-conditioned behavioral-cloning decoder-only action transformer (BCAT) that maps the stereo endoscopic image pair and language instruction at time t to a chunk of H=10 future actions a_{t:t+H}. Separate pretrained EfficientNet-B0 encoders process the left and right endoscopic images and are fine-tuned during training [13]. The language instruction is encoded using a frozen pretrained MiniLM-L6 encoder [14]. The bidirectional transformer decoder uses H learnable action queries that cross-attend to the visual and language observation tokens and predict the action chunk in parallel. The policy is trained by minimizing the \ell_{1} error between the predicted and demonstrated action chunks.
- Success rate (%, \uparrow)
- 100 (10/10)
- 100 (10/10)
- 80 (8/10)
- 80 (8/10)
- 50 (5/10)
- 100 (10/10)
- Average human completion time (s)
- 7.38
- 6.91
- 8.02
- 13.06
- 9.70
- –
- Average policy completion time (s)
- 9.36
- 7.40
- 15.34
- 34.71
- 35.95
- –
- Completion time ratio (\uparrow)
- 0.79
- 0.93
- 0.52
- 0.38
- 0.27
- –
III Experiments and Results
We train the policy for 100 epochs and evaluate the final checkpoint. We evaluate the final checkpoint over 10 rollouts with varied initial conditions, each comprising the 6 guidance subtasks, for a total of 60 subtask evaluations. The operator triggers each task through a spoken instruction, which is transcribed and provided to the policy. Each execution is scored against the corresponding task definition and considered a failure if it exceeds a maximum timestep. Table II reports the quantitative results, while Fig. 2 shows representative rollouts. The policy achieves 100% success on focus, overview, and stop, and 80% on both search tip and follow tip. Level horizon is the most challenging task, with a 50% success rate. Execution speed is close to the demonstrations for overview, while larger differences occur for tasks requiring longer-term search, tracking, or orientation correction. The main failure modes occurred during level horizon, search tip, and follow tip. Because the policy observes only the current frame, it cannot explicitly infer recent camera motion or retain information about previously observed regions. This can limit search and tracking subtasks and can lead to repeated corrections. Level horizon is additionally affected by the lack of an unambiguous visual reference for the desired scene orientation.
IV Conclusion
We presented a language-conditioned behavioral-cloning approach for surgeon-requested endoscope guidance and evaluated it across six camera behaviors. Preliminary phantom experiments show that a single visuomotor policy can successfully execute several heterogeneous guidance tasks directly from endoscopic observations and language instructions. Performance remains limited for tasks requiring temporal context, particularly search, tracking, and horizon correction. Future work will incorporate observation history and evaluate more expressive policy parameterizations, including generative and larger vision-language-action models.
ACKNOWLEDGMENT
Lorenzo Mazza, Alejandra Toscano and Stefanie Speidel acknowledge support by the project ”Next Generation AI Computing (gAIn),” funded by the Bavarian Ministry of Science and the Arts and the Saxon Ministry for Science, Culture, and Tourism as well as by the Hightech Agenda Bavaria.
Ariel Rodriguez, Ortrun Hellig, Rayan Younis and Stefanie Speidel acknowledge the support by the German Research Foundation (DFG, Deutsche Forschungsgemeinschaft) as part of Germany’s Excellence Strategy – EXC 2050/1 – Project ID 390696704 – Cluster of Excellence “Centre for Tactile Internet with Human-in-the-Loop” (CeTI) of Technische Universität Dresden.
Ariel Rodriguez and Stefanie Speidel would additionally like to thank the Federal Ministry of Research, Technology, and Space (BMFTR) for its support as part of the research program Communication Systems “Souverän. Digital. Vernetzt”. Joint project 6G-life, project identification number: 16KIS2413K.
This work has been partially supported by the German Federal Ministry of Research, Technology and Space (BMFTR) under the Robotics Institute Germany (RIG).