A Q-learning Control Method for a Soft Robotic Arm Utilizing Training Data from a Rough Simulator

Peijin Li, Gaotian Wang, Hao Jiang, Yusong Jin, Yinghao Gan, Xiaoping Chen, Jianmin Ji

Abstract

Controlling soft robots is notoriously difficult due to their complex, nonlinear dynamics, and reinforcement learning (RL) approaches typically require prohibitively large amounts of real-world training data. This paper introduces a Q-learning control method that drastically reduces this data requirement by pre-training the controller in a computationally cheap, "rough" simulator. When deployed on a physical Honeycomb Pneumatic Network (HPN) arm, the pre-trained model significantly improves convergence speed and accuracy while saving hundreds of hours of real-world data collection.

Introduction

Soft robots possess infinite degrees of freedom and inherent compliance, making them ideal for delicate tasks like medical care or navigating confined spaces. However, these same properties make them a nightmare to model mathematically. Traditional control methods struggle to handle their nonlinear features, such as hysteresis and material deformation.

Model-free reinforcement learning, specifically Q-learning, is a promising alternative because it learns control policies directly from interaction. Unfortunately, RL suffers from poor sample efficiency. Training an RL agent directly on a physical soft robot requires massive amounts of real-world data, which is slow, expensive, and causes wear and tear on the hardware. Previous attempts to use simulators to speed this up often failed to include absolute spatial coordinates for the goal and robot tip in their state definitions, limiting the controller's ability to adjust to new goals or external disturbances.

The physical Honeycomb Pneumatic Network (HPN) arm used in the experiments.

Methodology

The authors tackle the sample efficiency problem by combining a simplified mathematical simulator with a Q-learning controller. The core innovation lies in the "roughness" of the simulator—it prioritizes speed over high-fidelity physics.

The "Rough" Simulator

Instead of a computationally heavy finite element analysis (FEA) simulation, the authors built a kinematic simulator based on the Piecewise Constant Curvature (PCC) assumption. This model maps the actuation space (air pressure in the robot's pneumatic segments) to a configuration space defined by curvature ($K$), bending plane ($φ$), and arc length ($L$), and finally to a task space representing the 3D position and orientation of the robot's tip.

The kinematic model based on the Piecewise Constant Curvature (PCC) assumption, defining the relationship between curvature, bending plane, and tip position.

The Q-Learning Controller

The controller utilizes a 10-dimensional state space that explicitly includes the absolute pose of the goal (5D) and the pose of the robot's tip relative to the goal (5D). This continuous state space is discretized into over 1 million ($4^{10}$) states.

To overcome the sparsity of real-world data, the Q-table is pre-trained in the rough simulator using evenly distributed spatial goals. Because the state space is so large, the authors use a data augmentation technique: they average the Q-values of nearby states to fill in the gaps for any untrained elements in the Q-table, ensuring a smoother transition from simulation to reality.

Key Results and Insights

The study demonstrates that a "rough" simulator is sufficient for effective sim-to-real transfer. Despite the PCC-based simulator having an average positional error of approximately 12cm, it provided a strong enough prior to drastically accelerate real-world learning.

  • Faster Convergence: In point-to-point reaching tasks, the pre-trained controller reduced positional error to 23mm in just 200 seconds. In contrast, a controller trained from scratch (without pre-training) only reached 65mm of error after 300 seconds.
  • Generalization: By explicitly including absolute poses in the state definition, the controller generalizes better across the entire workspace compared to methods relying solely on actuation parameters.
  • Massive Time Savings: Training a single goal on the physical arm took 4,000 seconds. Fully populating the Q-table in the real world would take an estimated 1,137 hours. The simulator-assisted approach saves an estimated 85% of total training time (approximately 967 hours).

Conclusion

This research proves that high-fidelity simulation is not always a prerequisite for successful reinforcement learning in soft robotics. By utilizing a simplified kinematic model for pre-training, researchers can bypass the data bottleneck of physical hardware.

However, limitations remain. The PCC assumption does not perfectly capture dynamics under gravity, making pre-training slightly less effective for goals requiring heavy bending. Future work will focus on refining the simulator to account for gravity and external loads without sacrificing the computational speed that makes this "rough" approach so effective.

Summary updated

BibTeX
@inproceedings{li2021q,
  author = {Peijin Li and Gaotian Wang and Hao Jiang and Yusong Jin and Yinghao Gan and Xiaoping Chen and Jianmin Ji},
  title = {{A Q-learning Control Method for a Soft Robotic Arm Utilizing Training Data from a Rough Simulator}},
  booktitle = {ROBIO},
  year = {2021},
  doi = {10.1109/robio54168.2021.9739524},
}
Figure