Open-Sourced Reinforcement Learning Environments for Surgical Robotics

Florian Richter, Ryan K. Orosco, Michael C. YiparXiv 2019

Abstract

Reinforcement Learning (RL) is a machine learning framework for artificially intelligent systems to solve a variety of complex problems. Recent years has seen a surge of successes solving challenging games and smaller domain problems, including simple though non-specific robotic manipulation and grasping tasks. Rapid successes in RL have come in part due to the strong collaborative effort by the RL community to work on common, open-sourced environment simulators such as OpenAI's Gym that allow for expedited development and valid comparisons between different, state-of-art strategies. In this paper, we aim to start the bridge between the RL and the surgical robotics communities by presenting the first open-sourced reinforcement learning environments for surgical robots, called dVRL. Through the proposed RL environments, which are functionally equivalent to Gym, we show that it is easy to prototype and implement state-of-art RL algorithms on surgical robotics problems that aim to introduce autonomous robotic precision and accuracy to assisting, collaborative, or repetitive tasks during surgery. Learned policies are furthermore successfully transferable to a real robot. Finally, combining dVRL with the over 40+ international network of da Vinci Surgical Research Kits in active use at academic institutions, we see dVRL as enabling the broad surgical robotics community to fully leverage the newest strategies in reinforcement learning, and for reinforcement learning scientists with no knowledge of surgical robotics to test and develop new algorithms that can solve the real-world, high-impact challenges in autonomous surgery.

Introduction: The Gap in Surgical Automation

While Reinforcement Learning has mastered complex games and basic industrial picking tasks, its application in surgical robotics has been limited. Surgical automation currently relies heavily on "hand-crafted" control policies—rigidly programmed sequences that are difficult to scale or generalize to different patients and environments.

The barrier to using RL in surgery is two-fold: the sample inefficiency problem, where RL requires millions of trials impractical for multi-million dollar hardware, and the lack of standardized simulation. Unlike the broader robotics community which uses OpenAI Gym, surgical robotics lacked a lightweight, accessible simulation environment that researchers could use to benchmark their algorithms.

The dVRL Framework

To address these challenges, we developed dVRL, a simulation framework built on the V-REP physics engine. dVRL provides a standardized, OpenAI Gym-compatible interface for the da Vinci Research Kit (dVRK), enabling the RL community to develop and test autonomous surgical subtasks.

The dVRL simulation environment modeling the da Vinci Research Kit (dVRK) arm for reinforcement learning tasks.

Key technical features include:

  • OpenAI Gym Integration: Standard make, reset, step, and render APIs allow for "plug and play" integration of state-of-the-art algorithms.
  • End-Effector Control: Agents operate in end-effector space rather than joint space, making learned policies tool-agnostic.
  • Sim-to-Real Stability: A critical scaling term ($\eta$) limits maximum movement per step, ensuring simulation movements translate into stable trajectories on physical hardware.
  • Algorithm Stack: We utilized Deep Deterministic Policy Gradient (DDPG) with Hindsight Experience Replay (HER). For complex tasks, Behavioral Cloning (BC) was added to jumpstart learning from human demonstrations.

Benchmark Environments

The paper introduces two primary benchmark environments designed for the international network of dVRK users:

  1. PSM Reach: The robot arm must move to a random 3D goal position.
  2. PSM Pick: The robot must reach for a small cylindrical object, grasp it, and move it to a goal location.

Because surgical tasks happen at a millimeter scale, normalizing both state and action spaces was essential for neural network convergence. Furthermore, the "Pick" task proved too difficult for standard RL alone; adding human demonstrations via Behavioral Cloning was the catalyst that made the task solvable.

Key Results and Real-World Validation

In simulation, the "Reach" task achieved a 100% success rate, while the "Pick" task reached near-perfect success with Behavioral Cloning. Policies trained in dVRL were transferred to a physical dVRK robot with minimal effort, consistently reaching goal locations within a 3mm threshold.

Real-world validation: the RL-controlled robot autonomously performs suction to clear fake blood and reveal debris in a collaborative task.

We demonstrated a collaborative human-robot task where the RL-controlled robot autonomously performed suction to clear fake blood, revealing debris for a human surgeon to remove. In subsequent trials, the robot autonomously performed both suction and debris removal (picking and handing off the debris).

Limitations and Future Work

While dVRL is a major step forward, current simulations focus on rigid bodies. Real surgery involves complex "soft body" interactions (organs, tissue, thread) which are harder to simulate. Future iterations could also incorporate "visual servoing" using the da Vinci’s stereo cameras rather than coordinate-based state spaces. The next challenge is scaling these fundamental primitives to complex maneuvers like suturing or tissue retraction.

Paper Citation: Florian Richter, Ryan K. Orosco, and Michael C. Yip. "Open-Sourced Reinforcement Learning Environments for Surgical Robotics." arXiv:1903.02090v2 [cs.RO] 27 Jan 2020.

Summary updated

BibTeX
@misc{richter2019open,
  author = {Florian Richter and Ryan K. Orosco and Michael C. Yip},
  title = {{Open-Sourced Reinforcement Learning Environments for Surgical Robotics}},
  year = {2019},
  eprint = {1903.02090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.02090},
}
Figure