Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# A soft artificial muscle driven robot with reinforcement learning

## Abstract

Soft robots driven by stimuli-responsive materials have their own unique advantages over traditional rigid robots such as large actuation, light weight, good flexibility and biocompatibility. However, the large actuation of soft robots inherently co-exists with difficulty in control with high precision. This article presents a soft artificial muscle driven robot mimicking cuttlefish with a fully integrated on-board system including power supply and wireless communication system. Without any motors, the movements of the cuttlefish robot are solely actuated by dielectric elastomer which exhibits muscle-like properties including large deformation and high energy density. Reinforcement learning is used to optimize the control strategy of the cuttlefish robot instead of manual adjustment. From scratch, the swimming speed of the robot is enhanced by 91% with reinforcement learning, reaching to 21 mm/s (0.38 body length per second). The design principle behind the structure and the control of the robot can be potentially useful in guiding device designs for demanding applications such as flexible devices and soft robots.

## Introduction

Conventional robots are made of rigid components to provide large output force, high precision, and ease of controllability. When operating in complex environments, bio-inspired soft robots possess unique advantages1,2,3,4. Natural creatures are adaptive and resilient to environment. Fabricated with soft and deformable polymers, bio-inspired robots that mimic natural creatures have drawn a growing interest in recent years. Ultimately, soft robots can perform various tasks beyond the limits of conventional robots, achieving instinctive characteristics in terms of safe for humans1, geometric adaptation4, and tunable camouflage5.

Unmanned underwater vehicles play a significant role in engineering machines which can execute various missions, such as the study of marine life, investigation of underwater creatures, and exploration of the sea6. However, conventional unmanned underwater vehicles are less adaptive to environments, and they also create unwanted noise during the mission. These shortcomings undoubtedly reduce their utility. Here, soft robots based undersea vehicles are potential substitutes to work in the complex ocean environment. Various kinds of soft stimuli-responsive materials have been used to drive soft aquatic robots, such as dielectric elastomer, shape memory alloy7, ionic polymer metal composites8, and ionic conducting polymer films9. Among them, dielectric elastomer (DE) has stood out due to its exceptional fast response and large actuation10,11,12,13. Utilizing DE as base structure, a jellyfish14, a Manta-ray15, and a soft swim-bladder robot16 have been designed recently.

Currently, the most widely used approaches to control the robot are assuming the mechanical structure as rigid body, but those approaches are not applicable on soft robots. In general, the actuation of soft robot itself is difficult to be modelled17. Even for a simple task, it usually requires complicated mechanical analysis18,19. To-date, there are significant contributions by experts of artificial intelligence (AI) and robotics in trying to surmount the modeling and learn to perform specific tasks for soft gripper based on imitating and reinforcement learning20,21. Reinforcement learning (RL) is an adaptive control strategy that serves as a potential solution to the control of soft robots.

Unlike fishes that acquire thrust most often by wave-like movements of the fish’s body, fins and tail, cuttlefish and jellyfish move by jet propulsion. In detail, these cephalopods draw water into their body, then expel the jet of water from a rear orifice to generate a series of vortex rings and hence thrust. This mechanism has been studied in-depth by researchers22,23. Inspired by the structure and propulsion mechanism of cuttlefish, we have designed a biomimetic cuttlefish robot with DE membranes (3 M VHB) as the artificial muscles. The cuttlefish robot uses surrounding open water as the electric ground15, which makes it more robust when faced with the insurmountable challenge of high voltage to actuate the artificial muscle (DE membrane). To make the cuttlefish robot more compact, a highly compact electric system (Epod) is selected for both remote control and voltage boosting. Other than design of the overall on-board system, reinforcement learning is implemented to optimize the strategy toward the actuation of the cuttlefish. Finally, the cuttlefish robot reaches to a swimming speed of 21 mm/s, much better than the one without learning.

Figure 1 shows the detailed fabrication process of the jet-actuator of the robot. The artificial muscle laminate consists of a thin circular layer of carbon grease sandwiched between two pre-stretched DE membranes, along with a small piece of thin foil as the electric feeding line. The chamber is made of acrylic with diameter of 95 mm and height of 30 mm. There is an orifice with diameter of 20 mm at the bottom of the acrylic chamber. The arch with height of 25 mm is used to place the permanent magnet (PM) made of Neodymium, so it can provide the attractive force and the pre-stretched muscle will bend into a cone-like shape. The hard stop is used to prevent excessive attractive force of magnets. The height of body is 55 mm. In consideration of the weight of high voltage (HV) supply and wireless communication system, the total weight of onboard system is still relatively light which is only 126 g. Bolt holes are used for plastic screws to tune the initial distance d3 between the magnets, which is found to have a significant influence on the overall performance of the cuttlefish robot.

Figure 2 shows the actuation mechanism of the cuttlefish robot. DE based flexible capacitor can reduce its thickness with the application of high voltage. The thickness reduction is caused by Maxwell stress when positive and negative charges respectively accumulated on each sides of the DE membranes. Due to the incompressibility of DE material, the surface area of the capacitor will expand (Fig. 2A,B). For the jet-actuator, magnets based mechanical biasing mechanism is used to enlarge the displacement24. When no voltage is applied on the pre-stretched DE membrane (rest state), the initial displacement d1 due to the attractive force of the magnets is relatively small (Fig. 2C). When high voltage is applied, the pre-stretched DE membrane is relaxed, decreasing its stiffness in the axial direction of the jet-actuator. After the relaxation, the displacement d2 is much larger than initial displacement d1 (Fig. 2D). The actuation of the DE membrane induces the volume change of the chamber, resulting in the jet-refill cycle of the cuttlefish body, and generating propulsion to drives the robot. To further investigate the actuation of DE membrane, we simulate the structural deformation through finite element analysis (FEA). In the analysis process, the dimensionless voltage represents the voltage applied on the jet-actuator where Φ is the applied voltage, μ is the shear modulus of the material, ε is the permittivity and H is the initial thickness. Besides the applied voltage, dimensionless displacement load is also imposed in FEA, where R is the radius of the membrane and d is the axial displacement. A material model from a previous study25 was embedded into Abaqus with the user-defined subroutine UMAT. As a result, the von Mises stress distribution corresponding to the rest and actuated state are shown (Fig. 2E,F). The stress distribution reveals the inhomogeneous deformation of the actuator, indicating the use of the material is not efficient26. Some regions of the membrane are near to the failure whereas others are still far below the limit. We foresee that inefficient use of the material can be solved by variable thickness of the membrane which demand further research.

## Results

We aim to design an untethered cuttlefish robot with onboard system providing power and control. The initial distance d3 between magnets is 15 mm and the initial displacement d1 of the jet-actuator is set at 2 mm (Fig. 3A). When applying a voltage of 6.8 kV (charged), the recorded displacement d2 is 17 mm and water is drawn into the chamber (Fig. 3B). As soon as it is discharged, the water is expelled out through orifice. With such reversible motion of the artificial muscle, thrust is thus generated to propel the cuttlefish. Accordingly, the simple in-plane DE actuation is transformed into periodical volume change of the chamber, similar to the working principle of motor transmission system but in a more compact form. Figure 3C shows the system of the robot, including the compact high voltage source, the battery and the jet-actuator. The red area is the tracking mark, indicating the location of the robot in real time. Movement of the robot is voltage dependent as it is very much depending on the jet of water7,14. RL is used to optimize the actuation pattern in order to enhance the performance of our robots, and the details will be addressed in later section. The Epod (powered by a 3.7 V lithium-ion battery) is sealed in an acrylic tube to provide enough buoyancy for the cuttlefish. It is controlled by an eight-pin microcontroller unit (MCU) and the output voltage amplitude (0 V to 10 kV) is adjusted by pulse-width modulation duty cycle. 2.4 G ZigBee is attached on the Epod which enables wireless control with a computer. More details of the Epod can be found in our previous works15,16. The length of the tube is 110 mm with diameter of 35 mm.

Previous works have been reported to compare the displacement achieved by different kinds of biasing mechanisms such as hanging masses, springs, permanent magnets, etc.24. Inspired by those works, experiment has been performed to evaluate the influence of initial distance d3 on the performance of actuator (Fig. 4). Force and displacement curves of the jet-actuator actuated with 6.8 kV and 0 kV (without magnets) are recorded and plotted for comparison. Besides, Magnetic force (the biasing force) and displacement curve are also recorded. The influence is justified by investigating the intersection of the biasing force-displacement curve with DE curves. Generally, when applying a voltage of 6.8 kV (charged), the DE curve shifts indicating the decrement in stiffness. In Fig. 4, the point marked with “A” is the equilibrium point when no voltage is applied, while the point marked with “B” is equilibrium point under high voltage. The maximal force of attraction that the magnets could provide is constant for various d3 since the length of the hard stop is set constant. The initial distance d3 is set as 6 mm in Fig. 4A. Due to the higher force of magnets, the DE curves of 6.8 kV will be attracted to the hard stop (corresponds to stage B). When the voltage is cut-off, the DE curves of 0 kV is lower than magnetic force curve at stage B (means the actuator remains at stage B). In this condition, stable reversible motion can’t be achieved, so we infer that initial distance of magnets should not be too small. The initial distance d3 is set as 15 mm in Fig. 4B. It shows that the DE curves of 0 kV is above magnetic force curve at stage B and thus stable reversible motion can be achieved. In this case, actuator can be pulled back from stage B to stage A where the recorded reversible stroke is 15 mm. When the initial distance d3 is set as 24 mm, the reversible motion can be observed and the recorded displacement between stage A and B is relatively small, just 3 mm (Fig. 4C). It results in small volume change of chamber. The three initial distances of magnets correspond to three typical behaviors. However, the quasi-static modeling discussed above doesn’t fully reflect the actual influence of the discharge rate of Epod and actuation frequency on the performance of the cuttlefish robot. Besides, slight variation in d3 significantly affects the generation of reversible motion. As a result, adaptive control method is required to enhance the actuation of DE membrane and the propulsion of the robot. In order to generate relatively large volume jet of water and reversible motion, the initial distance d3 is fixed at 15 mm, which corresponds to force-displacement relation of the jet-actuator in Fig. 4B.

Traditional actuators27, such as electric motors or pumps, are in the mainstream of robots controlling research in comparison with DE actuators. As part of the objective in this study, actuation patterns are crucial to the robot in order to swim fast. For soft actuator-based robots (SARs), researchers usually tune the frequency and amplitude of actuation manually7,15. Currently, there is no reliable method to enhance the locomotion of SARs, i.e. moving velocity of the robot. In this work, we propose the use of reinforcement learning to address this problem. Generally, RL enables a robot to autonomously discover an optimal policy to maximize cumulative reward through trial-and-error interaction with its environment28. RL tends to solve the problem based on the assumption of Markov decision processes (MDPs) which consist of a set of states S, a set of actions A, the rewards R, and transitions T. Therefore, how to choose states that can reflect the actual characteristics of the SARs is quite challenging. At first, trade-off must be considered. Continuous states and actions could fully explore the potential of SARs, but they will make state the space and action space too large to be solved. Since we use the voltage to actuate the robot, discretization can be effective for low dimensional problem27, thus we discretize the action, i.e. only two kinds of voltage amplitude (0 kV and 6.8 kV) within unit time are used in our experiments. Undeniably, states which include the nature of the robot and hydrodynamics is extraordinarily complicated. To make RL algorithm easier to be implemented, we choose the several actions (k times) as the state.

$$\begin{array}{rcl}{s}_{t} & = & \{{a}_{t-k},{a}_{t-k+1},{a}_{t-k+2},\,\ldots \,{a}_{t-1}\}\,{\rm{for}}\,{\rm{last}}\,k\,{\rm{actions}}\\ {a}_{t} & = & 0\,{\rm{kV}}\,{\rm{or}}\,6.8\,{\rm{kV}}\end{array}$$

According to the experiments, such simplification can enhance the performance of the robot. The reward function depends on the task that we are trying to complete for RL tends to maximize the cumulative rewards. To maximize the velocity, we define the reward function rt as:

$${r}_{t}=displacement(t+1)-displacement(t)$$
(1)

Second, in terms of RL algorithm, we use the Q-learning29 with an experience replay mechanism in which we store the agent’s experiences at each time-step, et = (st, at, rt, st+1) in a data-set D = e1, …, eN, pooled over many episodes into a replay memory. Details of the algorithm are shown below. The displacement data is acquired by processing the image from a camera. The reward can be calculated from eq. (1) using the displacement data. And action generated from the RL algorithm is the voltage signal which transfers from the computer to the cuttlefish robot via ZigBee. The experiment setup for the cuttlefish robot is illustrated in Fig. 5. Due to the limitation of camera processing rate, we can only sample 20 frames per second. We chose unit time as 0.2 s for RL to generate an action of 0 kV or 6.8 kV through the computer. k = 6 is a relatively suitable choice for the RL, since jet-actuator can perform a full jet-refill cycle within 6 unit time.

### The algorithm

Table Q, state-action value table, is the guidance to give an action. At first, we initialize it with zeros. After each unit time, we will get a transition (st, at, rt, st + 1), and we will append it in D. We use equation (2), also called backward induction30, to update table Q with a mini-batch of transitions uniformly sampled from D, which is the core of the algorithm. This is based on the following intuition that the optimal strategy is to select the action at maximizing the expected value of rt + γQ(st+1,at+1). α, the learning rate, determines to what extent newly acquired information overrides old information. The discount factor γ determines the importance of future rewards, and ensures that the state-action value be finite when updating table Q. when the robot is in state st, the algorithm chooses to give action randomly with probability ε, or it will give action which has maximal Q value at st. To ensure the results are comparable, number of actions N is fixed as 80 during each episode. Besides, there is a threshod size u of D which guarantees the diversity of the experience before leaning. u, α and γ are set as 200, 0.1 and 0.9 respectively. As soon as an episode completed, cuttlefish is placed static at the start point before we proceed the next episode. With decreasing ε, we rely more on the value table Q to choose actions, which indicates experience gradually been exploited. The results are shown in Fig. 6.

In total 25 episodes of the RL process, the swimming performance of the cuttlefish robot constantly rises with fluctuation (Fig. 6A). Figure 6A(I) shows that the robot swims with the distance of 176 mm in 16 seconds. The average speed of the cuttlefish robot in the 1st episode is 11 mm/s (0.2 body length per second). Figure 6A(II) shows that the robot swims with the distance of 336 mm in 16 seconds. The average speed of the cuttlefish robot in the 23rd episode is 21 mm/s (0.38 body length per second), which is 91% faster than that of the 1st episode (see Supplementary Movie). The sequence of driving voltage of the 1st episode is relatively chaotic (Fig. 6B). With the process of RL, the sequence of driving voltage gradually converges with periodic pattern (Fig. 6C). The experimental results demonstrate that the robot can autonomously actuate DE membranes with optimized control by RL, enhancing the swimming performance.

## Discussion

In summary, we have designed a cuttlefish robot with DE as the jet-actuator. The surrounding water functions as the highly robust electrode of the ground end. We have showed that the high voltage required DE system is compatible with the aqueous operating environment. The chamber and magnets are interacted with the actuating DE membrane to function as jet-actuator that converts the in-plane actuation of DE membrane into the propulsion with the jet-refill cycles. The excellent actuation of the DE membrane, when combined with integrated compact electronics for power and remote control, results in successful operation of an untethered cuttlefish robot. Furthermore, we have investigated the influence of initial distance between magnets on the deformation of the jet-actuator. RL is used to optimize the actuation strategy, enhancing the swimming performance of the robot. The swimming speed of the robot is enhanced by 91% with reinforcement learning, reaching to 21 mm/s (0.38 body length per second). Although the swimming behaviors of the robotic cuttlefish fluctuates due to the complexity of the RL process, actuation motion and the hydrodynamic drag, the average speed of the robot keeps rising. The experimental results validate that the optimized control by RL can enhance the actuation performance of DE driven soft actuator-based robots. The robot can’t change its direction at present, but we foresee that the direction could be changed by using another soft actuator to adjust direction of the jet. Overall, all these performance features are highly desirable for soft robots driven by various types of soft artificial muscle. And the mechanical structure and RL strategy design principle of our robot can be potentially useful in guiding device designs for demanding applications such as flexible devices and soft robots.

## Methods

The DE membranes (initial thickness, 1 mm) was made from 3M VHB4910 membrane. Silicone adhesive glue (Dow Corning 734) was used to seal the intersection of the feed line. The finite element analysis was using Abaqus 6.13. Hybrid, reduced integration elements (CAX4RH) were used in the simulation. Tacking of the cuttlefish robot was based on OpenCV31 library with a Logitech camera C270. The permanent magnet was made of Neodymium.

## Data and Materials Availability

All data needed to evaluate the conclusions in the paper are present in the paper and/or the Supplementary Materials. Additional data related to this paper may be requested from the authors.

## References

1. 1.

Rus, D. & Tolley, M. T. Design, fabrication and control of soft robots. Nature 521, 467–475 (2015).

2. 2.

Rogers, J. A., Someya, T. & Huang, Y. G. Materials and Mechanics for Stretchable Electronics. Science 327, 1603–1607 (2010).

3. 3.

Bartlett, N. W. et al. A 3D-printed, functionally graded soft robot powered by combustion. Science 349, 161–165 (2015).

4. 4.

Tolley, M. T. et al. A Resilient, Untethered Soft Robot. Soft Robot. 1, 213–223 (2014).

5. 5.

Morin, S. A. et al. Camouflage and Display for Soft Machines. Science 337, 828–832 (2012).

6. 6.

Fish, F. E. & Kocak, D. M. Biomimetics and Marine Technology: An Introduction. Mar. Technol. Soc. J. 45, 8–13 (2011).

7. 7.

Villanueva, A., Smith, C. & Priya, S. A biomimetic robotic jellyfish (Robojelly) actuated by shape memory alloy composite actuators. Bioinspir. Biomim. 6, 036004 (2011).

8. 8.

Yeom, S. W. & Oh, I. K. A biomimetic jellyfish robot based on ionic polymer metal composite actuators. Smart Mater. Struct. 18, 085002 (2009).

9. 9.

Guo, S. X., Fukuda, T. & Asaka, K. A new type of fish-like underwater microrobot. IEEE/ASME Trans. Mechatron. 8, 136–141 (2003).

10. 10.

Hines, L., Petersen, K. & Sitti, M. Inflated Soft Actuators with Reversible Stable Deformations. Adv. Mater. 28, 3690–3696 (2016).

11. 11.

Li, T. F. et al. Giant voltage-induced deformation in dielectric elastomers near the verge of snap-through instability. J. Mech. Phys.Solids 61, 611–628 (2013).

12. 12.

Keplinger, C. et al. Stretchable, Transparent, Ionic Conductors. Science 341, 984–987 (2013).

13. 13.

Zhao, J. W. et al. Improvement on output torque of dielectric elastomer minimum energy structures. Appl. Phys. Lett. 107, 836–456 (2015).

14. 14.

Godaba, H., Li, J., Wang, Y. & Zhu, J. A soft jellyfish robot driven by a dielectric elastomer actuator. IEEE Robot. Autom. Lett. 1, 624–631 (2016).

15. 15.

Li, T. F. et al. Fast-moving soft electronic fish. Sci. Adv. 3, e1602045 (2017).

16. 16.

Liu, B. Y. et al. Electromechanical Control and Stability Analysis of a Soft Swim-Bladder Robot Driven by Dielectric Elastomer. ASME J. Appl. Mech. 84, 091005 (2017).

17. 17.

Duriez, C. Control of Elastic Soft Robots based on Real-Time Finite Element Method. 2013 IEEE International Conference on Robotics and Automation, Karlsruhe, Germany, https://doi.org/10.1109/ICRA.2013.6631138 (2013, May 06–10).

18. 18.

Inoue, T. & Hirai, S. Modeling of soft fingertip for object manipulation using tactile sensing. 2003 IEEE International Conference on Intelligent Robots and Systems, Las Vegas, NV, https://doi.org/10.1109/IROS.2003.1249271 (2003, Oct. 27–31).

19. 19.

Shibata, M. & Hirai, S. Soft object manipulation by simultaneous control of motion and deformation. IEEE International Conference on Robotics and Automation, Orlando, FL, https://doi.org/10.1109/ROBOT.2006.1642071 (2006, May 15–19).

20. 20.

Zhang, H., Cao, R., Zilberstein, S., Wu, F. & Chen, X. Toward Effective Soft Robot Control via Reinforcement Learning. 2017 International Conference on Intelligent Robotics and Applications, Wuhan, China, https://doi.org/10.1007/978-3-319-65289-4_17 (2017, Aug. 16–18).

21. 21.

Gupta, A., Eppner, C., Levine, S. & Abbeel, P. Learning dexterous manipulation for a soft robotic hand from human demonstrations. IEEE/RSJ International Conference on Intelligent Robots and Systems, Daejeon, South Korea, https://doi.org/10.1109/IROS.2016.7759557 (2016, Oct. 09–14).

22. 22.

Anderson, E. J. & Grosenbaugh, M. A. Jet flow in steadily swimming adult squid. J. Exp. Biol. 208, 1125–1146 (2005).

23. 23.

Nawroth, J. C. et al. A tissue-engineered jellyfish with biomimetic propulsion. Nat. Biotechnol. 30, 792–797 (2012).

24. 24.

Loew, P., Rizzello, G. & Seelecke, S. Permanent Magnets as Biasing Mechanism for Improving the Performance of Circular Dielectric Elastomer out-of-plane Actuators. SPIE Conference on Electroactive Polymer Actuators and Devices (EAPAD) Conference Series, Portland, OR, https://doi.org/10.1117/12.2258390 (2017, Mar. 26–29).

25. 25.

Zhao, X. H. & Suo, Z. G. Method to analyze programmable deformation of dielectric elastomer layers. Appl. Phys. Lett. 93, 071101 (2008).

26. 26.

He, T. H., Zhao, X. H. & Suo, Z. G. Dielectric elastomer membranes undergoing inhomogeneous deformation. J. Appl. Phys. 106, 836 (2009).

27. 27.

Tedrake, R. Underactuated Robotics: Algorithms for Walking, Running, Swimming, Flying, and Manipulation (Course Notes for MIT 6.832), http://underactuated.mit.edu/ (2018).

28. 28.

Kober, J., Bagnell, J. A. & Peters, J. Reinforcement learning in robotics: A survey. Int. J. Rob. Res. 32, 1238–1274 (2013).

29. 29.

Watkins, C. J. & Dayan, P. Q-learning. Machine learning 8, 279–292 (1992).

30. 30.

Bellman, R. A Markovian decision process. J. Math. Mech., 679–684 (1957).

31. 31.

Bradski, G. The opencv library. Dr. Dobb’s Journal of Software Tools (2000).

## Acknowledgements

This work acknowledges the supports by the following programs: National Natural Science Foundation of China (Nos 11572280, 11321202, 11432012, 11532011 and U1613202), China Association for Science and Technology (Young Elite Scientist Sponsorship Program No. YESS20150004), Zhejiang Provincial Natural Science Foundation of China (R18A020004), Dr. Li Dak Sum & Yip Yio Chin Fund for Stem Cell and Regenerative Medicine.

## Author information

Authors

### Contributions

T.Y., Z.Z., Y.X., Y.L. and M.Z. designed and carried out the experiments. G.L., T.Y., T.,L. and T.W. wrote the manuscript. S.L., Y.W., T.L. and Z.H. proposed the idea and supervised the project. All the authors discussed the results and commented on the manuscript.

### Corresponding author

Correspondence to Tiefeng Li.

## Ethics declarations

### Competing Interests

The authors declare no competing interests.

Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Yang, T., Xiao, Y., Zhang, Z. et al. A soft artificial muscle driven robot with reinforcement learning. Sci Rep 8, 14518 (2018). https://doi.org/10.1038/s41598-018-32757-9

• Accepted:

• Published:

### Keywords

• Artificial Muscles
• Soft Robots
• Dielectric Elastomer (DE)
• Cuttlefish
• Guidance System Design

• ### Adversarial attack and defense in reinforcement learning-from AI security view

• Tong Chen
• Jiqiang Liu
• Zhen Han

Cybersecurity (2019)

• ### 3D-Printing and Machine Learning Control of Soft Ionic Polymer-Metal Composite Actuators

• James D. Carrico
• Tucker Hermans
• Kam K. Leang

Scientific Reports (2019)

• ### Review of Soft Linear Actuator and the Design of a Dielectric Elastomer Linear Actuator

• Xunuo Cao
• Mingqi Zhang
• Tiefeng Li

Acta Mechanica Solida Sinica (2019)