Reward Learning from Suboptimal Demonstrations with Applications in Surgical Electrocautery

Zohre Karimi, Shing-Hei Ho, Bao Thach, Alan Kuntz, Daniel S. Brown · DOI

Introduction

Automating robotic surgery through Learning from Demonstration (LfD) holds the potential to standardize complex procedures and reduce surgeon fatigue. However, traditional LfD approaches often falter in clinical environments due to two primary challenges: partial observability and the inherent suboptimality of human demonstrations. In a real-world operating room, sensors frequently provide noisy, incomplete point clouds, and even expert surgeons may provide demonstrations that are inconsistent or imperfect.

This paper introduces a sample-efficient framework designed to infer a surgeon's underlying intent from imperfect, human-ranked demonstrations. By combining point cloud autoencoders with preference-based reward learning, the system enables a robot to outperform its teacher, even when trained on "bad" examples.

The Problem: Beyond Perfect Imitation

Most existing LfD methods rely on the assumption that the robot has access to the full state of the environment and that the provided demonstrations are optimal. Standard imitation learning, such as Behavioral Cloning (BC), essentially "copy-pastes" the actions of the demonstrator. If the demonstrator makes a mistake or takes a circuitous path, the robot will replicate those errors.

In surgical tasks like electrocautery, the robot must navigate high-dimensional, partial-view observations (e.g., from a single camera or depth sensor). To be truly effective, the system must learn the goal of the task rather than just the movements performed, allowing it to generalize and improve upon the provided data.

Methodology

The authors propose a three-stage pipeline to bridge the gap between noisy observations and successful task execution.

1. Latent Representation via Point Cloud Autoencoders

To manage high-dimensional and partial-view point clouds, the system first compresses the scene into a 256-dimensional latent vector using a specialized autoencoder. The training of this autoencoder utilizes a loss function that combines Chamfer Distance (CD) for coarse geometric structure and Earth Mover’s Distance (EMD) for fine-grained local density matching. This ensures the compressed representation retains critical spatial information needed for manipulation.

2. Preference-Based Reward Learning (T-REX)

Instead of mimicking actions directly, the framework employs Trajectory-ranked Reward EXtrapolation (T-REX). The system is presented with pairs of suboptimal trajectories and human-provided rankings (e.g., "Trial A was more successful than Trial B"). By learning from these relative rankings, the model extrapolates a reward function that represents the demonstrator's intent. This allows the system to understand what a "good" state looks like, even if no single demonstration in the training set was perfect.

3. Policy Optimization

Finally, the learned reward function is used to train a policy via Proximal Policy Optimization (PPO). A key finding in this stage was the importance of action space design: using end-effector position as the action space proved significantly more sample-efficient than using joint or Cartesian velocities, as it reduced the dimensionality of the required state-action relationship.

Experimental Results

The framework was evaluated across three distinct environments: a simulated sphere-touching task, a simulated tissue-cutting task, and a physical proof-of-concept using a KUKA LBR Med robot on ex vivo bovine muscle tissue.

Performance in Simulation

In simulated environments, the proposed method significantly outperformed standard Behavioral Cloning. In the Sphere task, the method showed a 64.13% improvement over BC, and a 44.70% improvement in the more complex Cutting task. The system achieved an overall success rate of approximately 80%, nearing the performance of an "oracle" trained on ground-truth rewards.

Physical Validation

In physical trials involving real electrocautery, the robot successfully identified attachment points and executed the cutting task in 5 out of 7 trials. This success was achieved using a remarkably small dataset—between 815 and 14,000 pairwise preferences—demonstrating high sample efficiency compared to traditional deep reinforcement learning requirements.

Key Insights

  • Intent over Imitation: By focusing on the reward function (the "why") rather than the action (the "how"), the robot can "smooth out" the errors found in suboptimal demonstrations.
  • Qualitative Supervision: Relative rankings are much easier for human supervisors to provide than perfect demonstrations or hand-crafted reward functions, making this approach more feasible for clinical applications.
  • Efficiency through Design: The combination of latent space compression and end-effector action spaces allows the model to learn complex behaviors with minimal data.

Limitations and Future Work

While promising, the research identified a notable "sim-to-real" gap. Failures in physical trials were largely due to "out-of-distribution" point clouds where the real tissue appearance differed significantly from the simulated training data, causing the autoencoder to struggle.

Future work will focus on active reward learning, where the robot proactively asks for rankings on the most informative trajectory pairs to further increase efficiency. Additionally, the authors plan to conduct human studies to evaluate how the system handles inconsistent or noisy rankings from non-expert users.

Summary updated

Abstract

Automating robotic surgery via learning from demonstration (LfD) techniques is extremely challenging. This is because surgical tasks often involve sequential decision-making processes with complex interactions of physical objects and have low tolerance for mistakes. Prior works assume that all demonstrations are fully observable and optimal, which might not be practical in the real world. This paper introduces a sample-efficient method that learns a robust reward function from a limited amount of ranked suboptimal demonstrations consisting of partial-view point cloud observations. The method then learns a policy by optimizing the learned reward function using reinforcement learning (RL). We show that using a learned reward function to obtain a policy is more robust than pure imitation learning. We apply our approach on a physical surgical electrocautery task and demonstrate that our method can perform well even when the provided demonstrations are suboptimal and the observations are high-dimensional point clouds. Code and videos available here: https://sites.google.com/view/lfdinelectrocautery
BibTeX
@inproceedings{karimi2024reward,
  author = {Zohre Karimi and Shing-Hei Ho and Bao Thach and Alan Kuntz and Daniel S. Brown},
  title = {{Reward Learning from Suboptimal Demonstrations with Applications in Surgical Electrocautery}},
  booktitle = {ISMR},
  year = {2024},
  doi = {10.1109/ismr63436.2024.10585785},
}
Figure