Next Article in Journal
Effect of Magnetic and Electrical Fields on Yield, Shelf Life and Quality of Fruits
Previous Article in Journal
Cross-Modal Manifold Propagation for Image Recommendation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Deep Deterministic Policy Gradient with Reward Function Based on Fuzzy Logic for Robotic Peg-in-Hole Assembly Tasks

1
College of Science, Guilin University of Technology, Guilin 541006, China
2
School of Information and Electrical Engineering, Shandong Jianzhu University, Jinan 250101, China
3
School of Control Science and Engineering, Shandong University, Jinan 250061, China
*
Author to whom correspondence should be addressed.
Current address: School of Control Science and Engineering, Shandong University, Jingshi Road 17923, Jinan 250061, China.
Appl. Sci. 2022, 12(6), 3181; https://doi.org/10.3390/app12063181
Submission received: 10 February 2022 / Revised: 11 March 2022 / Accepted: 18 March 2022 / Published: 21 March 2022
(This article belongs to the Topic Industrial Robotics)

Abstract

:
Robot automatic assembly of weak stiffness parts is difficult due to potential deformation during assembly. The robot manipulation cannot adapt to the dynamic contact changes during the assembly process. A robot assembly skill learning system is designed by combining the compliance control and deep reinforcement, which could acquire a better robot assembly strategy. In this paper, a robot assembly strategy learning method based on variable impedance control is proposed to solve the robot assembly contact tasks. During the assembly process, the quality evaluation is designed based on fuzzy logic, and the impedance parameters in the assembly process are studied with a deep deterministic policy gradient. Finally, the effectiveness of the method is verified using the KUKA iiwa robot in the weak stiffness peg-in-hole assembly. Experimental results show that the robot obtains the robot assembly strategy with variable compliant in the process of weak stiffness peg-in-hole assembly. Compared with the previous methods, the assembly success rate of the proposed method reaches 100%.

1. Introduction

The robot operating contact environment is changeable and unpredictable. It is a challenge that the robot could quickly perform new tasks and precisely control the contact force in different environments. High-precision assembly is a typical contact operation [1,2], and the assembly process needs to overcome the environmental model and controller errors. The peg-in-hole assembly process is usually divided into the search phase and the insertion phase [3], which is visual and tactile. In the insertion phase, the center axis of the peg-in-hole inserts into the bottom. When the axis deviation or force/torque is not appropriate, it can cause card resistance or wedge tightening. Due to the deformation error, friction and robot positioning error between assembly objects, it is difficult to establish an accurate physical model and find the optimal assembly strategy according to the model analysis.
Robot assembly control strategies could be designed with forces and torques in the robot assembly based on mathematical models. Compared to the position feedback controller with high gain, impedance control ensures that the robot and environment are fully controllable. A natural mass-damping-spring relationship is maintained between the contact force and the position offset, and its force control characteristics depend on inertia, stiffness, and damping parameters [4]. The traditional method of adjusting parameters manually adjusts the control parameters according to the characteristics of the task. For the assembly of such complex tasks, it is difficult to set the impedance control method of fixed parameters to achieve the target task. If the parameters of impedance control could be adjusted to changes in the assembly tasks, the control performance is improved. The safety of the robot could also be guaranteed in the process of adjusting the impedance parameters.
An important feature of reinforcement learning [5,6] is that optimal performance could be achieved by designing incentive function guidance without understanding the robot and environmental system models. Therefore, this paper mainly studies how robots could react to contact forces by changing the stiffness motion in the robot peg-in-hole insertion task. The robot obtains the optimal control strategy in the assembly process through dynamic adjustment of the impedance parameters. Aiming at the soft control problem in the robot contact task, this paper combines the quality evaluation of fuzzy reward and the deep deterministic strategy gradient to achieve variable impedance. The robot could adapt to the different contact force changes in the assembly process.
The main contributions are as follows:
(1)
The reward function with fuzzy logic based on assembly quality evaluation was designed in the actual industrial environment to improve the system learning performance;
(2)
The assembly process model was constructed and the robot completed the stiffness workpieces assembly;
(3)
The robot combined with the variable impedance in the course of operation to avoid the damage of the workpiece during the learning process;
(4)
A framework of learning robot assembly skills is proposed, and it is verified in the peg-in-hole assembly of weak stiffness workpieces.
(5)
The proposed method in this paper combines deep reinforcement learning with robotics technology, which provides theoretical support for the improvement of complex manipulation skills of a new generation of robots. It also provides a new idea for the application of artificial intelligence algorithms in the industrial field.
The remainder of this paper is organized as follows. Section 2 introduces the related work. The assembly system and formulation of the problem to be solved are in Section 3. Section 4 contains the description of the proposed method. Experiments were performed to validate the proposed method, and the results are presented and discussed in Section 5. Finally, in Section 6, we summarize the results of the current work and discuss future directions.

2. Related Work

The robot assembly strategy is divided into traditional control strategy and learning-based assembly control strategy. The traditional control strategy mainly depends on position-based impedance control, which produces submissive characteristics to the contact environment via assembling objects. That could effectively reduce jam or clam in order to complete the assembly work. The learning-based assembly control strategy is mainly to obtain the optimal assembly strategy using the learning algorithm, including the parameter optimization of impedance control model.
The traditional assembly strategy is that the robot uses the control algorithm to realize the assembly using the feedback information of the sensor [7]. The force control strategy is the main method of peg-in-hole assembly [8]. By analyzing the contraction state and contact force during assembly, it would reduce the contact force and torque to speed up the assembly process. Chan uses impedance control with combining force error and motion error to control SCARA robots to complete the PCB assembly [9]. Aljairah proposes a gradient-based control strategy to continuously update the robot for the smooth control of the assembly process [10]. Xu and Inouel et al. divide peg-in-hole assembly into search and jack phases [11]. Lin Junjian solves the problem of the zero value change of the force sensor through the gravity compensation system of the force sensor [12]. In order to achieve good assembly effect, the traditional control strategy requires a higher contact environment. The contact state is generally complex and dynamic [13], and all the information must be obtained by means of the accurate environmental contact model. In the actual industrial assembly scene, noise interference, environmental complexity and change could not be achieved. The application based on the learning algorithm ensures the automatic operation of assembly work.
At present, the model-less intensive learning method is widely used in the manipulation task with rich contact characteristics [14,15]. Vijaykumar et al. [16] put forward a value function-based method, using the greedy strategy to select discrete assembly action with long short-term memory network (LSTM). The circular neural network estimation Q value function was used to achieve peg-in-hole assembly beyond the resolution of the robot [1]. The robot action based on the enhanced learning method of value function is discrete and low dimensional. M. Nuttin et al. [17] put forward two components, the actor and the critic, to derive the robot assembly strategy and evaluate the action performed. Jing et al. [18] propose a model-driven DDPG method, combined with the feedback exploration strategy, for multi-axis hole assembly. Guide policy search [15] combines track optimization models with neural network strategies to learn a wealth of operational skills. Luo et al. [2] propose the MDGPS (mirror descent guided policy search) method, which does not rely on joint torque and uses force–torque signals from wrist sensors to complete the assembly of deformable and rigid objects.
Stiffness control could be obtained via analyzing models. Inoue et al. [1] propose robotic skill acquisition methods that train push neural networks through intensive learning. However, the resulting high stiffness discrete action constrains the smoothness and safety of the assembly process. Erickson D. et al. [19] obtain the contact force error through force sensors and estimated environmental damping stiffness models online. The environmental models are combined with impedance control to achieve the expected force impedance control parameter. Under the indirect excitation of the observation signal, it is difficult to obtain accurate environmental damping parameters. Sun Xiao et al. [20] propose a method of impedance control parameter regulation based on fuzzy adaptive, and verify the robot’s regulation of end contact force on the PUMA560 robot.
In [21], the time-varying stiffness can be reproduced by properly controlling the energy exchanged during the movement. It could ensure the stability of the robot if the robot moves freely or interacts with the environment. Ficiello et al. [22] combine Cartesian impedance modulation with redundant resolution to improve the performance of human–computer physical interactions. It is demonstrated that a variable impedance with an appropriate modulation strategy for parameter adjustment is superior to a constant impedance. Howard et al. [23] modulate the impedance modulation strategy by imitating human behavior. According to the learned human-like impedance strategy, Chao et al. [24] modulate the impedance curve online to enhance the flexibility and adaptability of the system.
The position-based impedance control could be used without accurate mathematical modeling of robot dynamics. Therefore, the position-based impedance control is also used in this paper to ensure the compliance of peg-in-hole assembly process.

3. Problem Formulation

In the peg-in-hole insertion phase, there are two states of jamming and wedging. If the contact force is not appropriate, it is easy to cause damage to the assembly object. Impedance control [25] ensures that the robot’s contact with the operating environment is controlled, and the end contact force f and displacement Δ x remain:
f = M Δ x ¨ + D Δ x ˙ + K Δ x
where Δ x represents the displacement of the actual position x relative to the reference position x v . M, D, and K represent the inertia, damping, and stiffness. In the process of high-precision assembly, the robot’s degree of freedom is constrained, the movement is slow and smooth, the robot assembly is regarded as a quasi-static process, the inertia and damping in the impedance control are ignored [26], and the stiffness control is used instead of the complete impedance control, that is, f = K Δ x . Based on the stiffness control of intensive learning, the optimal strategy is found by trial and error, which maps the robot assembly state S to the robot’s action. In continuous motion space, the historical information of assembly process also has an influence on the choice of strategy, so the state S in this paper uses trajectory deviation, contact force deviation, assembly process representation, and the action of the robot arm includes joint angle and stiffness.
S = [ F , M , θ , τ ]

4. Method

Assembly strategy learning is actually the parameter updating and optimization, which requires a stable and efficient learning algorithm. This paper uses the deep deterministic strategy gradient (DDPG) algorithm to realize the learning of stiffness strategy and trajectory strategy.
With the Actor–Critic framework, the Actor gets a mapping from state S to action a ( t ) , and the Critic uses the state action value function Q ( s , a | θ Q ) to quantify the strategy calculated. Here, the Actor and Critic are represented by neural networks, with parameters θ μ and θ Q , respectively.

4.1. Assembly Policy Learning

The assembly process is divided into non-contact stage and contact stage. The initial position is often random during the assembly process. In the assembly contact state, there is a corresponding relationship between the robot action and the current state. Then the guidance strategy of the subsequent stage could be carried out in turn, which could complete the assembly action smoothly to protect the workpiece from damage. As shown in Figure 1, the mapping between the contact state and robot action is learned with the framework.
The Actor shows the same network structure as shown in Figure 2. The hidden layer has three layers: the first layer contains 300 neurons, the second layer and the third layer each contains 200 neurons, the hidden layer and the output layer between the tanh activation function; the output layer gives an adjustment action, the output dynamic as the joint angle of the 7 axes and the stiffness of the three directions at the end of the robot arm
a = ( θ 1 , θ 2 , θ 3 , θ 4 , θ 5 , θ 6 , θ 7 , k x , k y , k z )
The logical relationships between layers are as follows:
l a y e r 1 = R e L U ( w 1 × s t a t e + b 1 )
l a y e r 2 = s o f t s i g n ( w 2 × l a y e r 1 + b 2 )
o u t p u t = s o f t s i g n ( w 3 × l a y e r 2 + b 3 )
The Critic network structure is shown in Figure 3. According to the current contact state, the assembly action in the Actor network obtains the Q value, evaluates the assembly strategy, and then guides the actor network to make strategic adjustments. The input layer obtains the contact state information and the assembly action given by the Actor network, passes through the R e L U function into the implied layer, and then passes through the identity function into the output layer.
The logical relationships between layers are
l a y e r 1 s = R e L U ( w 1 s × s + b 1 )
l a y e r 1 a = R e L U ( w 1 a × s + b 1 a )
l a y e r 2 = R e L U ( w 2 s × l a y e r 1 s + w 2 a × l a y e r 1 a + b 2 )
o u t p u t = R e L U ( w 3 × l a y e r 2 + b 3 )

4.2. Reward Function

For peg-in-hole assembly, the assembly quality evaluation is one of the most important factors affecting the success rate. The fuzzy logic system could handle multiple parameters, so it could evaluate the quality of the assembly system very well. Therefore, this paper sets up a quality evaluation with fuzzy logic.
In this paper, four typical parameters are used as the parameters of fuzzy quality evaluation, i.e., contact force F Y of t-moment y axis, contact force F Z of z-axis, assembly depth Z of t-moment shaft and assembly action amount D Z :
F Y = | F y f y |
F Z = | F z f z |
Z = s Z
D Z = d s Z
where F z is the force of the z direction, f z is the initial force of the z direction, F y is the force of the y direction, f y is the initial force of the y direction, s Z is the Z axis coordinates in the current state of the robot arm, and d is the Z axis coordinate value at the bottom of the hole under the same coordinate system as the robot arm.
If you blur these four parameters, 625 fuzzy rules are needed if you use only one layer of fuzzy logic system. In order to simplify the design of the reward system, the double-layer fuzzy logic structure of Figure 4 is adopted, the first layer has two fuzzy logic systems, the  F y F z fuzzy logic system takes the contact force F y and z-axis contact force F z as input, and the Z D Z fuzzy logic system takes the assembly depth Z and assembly action D Z of the t-moment axis as the input. The output of the two systems serves as input to the second layer of fuzzy logic systems, and finally the value of the reward required is output by the second layer of fuzzy logic systems. Thus 75 fuzzy rules need to be made, greatly reducing the difficulty of fuzzy rules.
For the above parameter input system, using triangular membership function for fuzzy processing, each parameter is blurred into 5 fuzzy values: VG, G, M, B, and VB, respectively, refer to very good, good, medium, bad, and very bad. Each fuzzy value has a membership range of (0, 1).
f ( x ) = 0 x a x a b a a x b c x c b b x c 0 x c
where a , b , c represent the parameter value in the triangular membership function, a , c determines the width of the membership function, and b determines the location of the membership function.
After blurring the parameters, fuzzy reasoning is based on the established rule library, and the rule library as shown in Table 1 is established according to the experience in peg-in-hole assembly. Additionally, use the AND operation for fuzzy reasoning.
R i ( x ) = m i n ( μ A ( i ) ( x ) , μ B ( i ) ( x ) )
where A , B are fuzzy collections. The AND operation takes the minimum value of the membership of both and determines the membership of the fuzzy value of the output according to the rule library.
Finally, the resulting fuzzy value is clearly processed, that is, the last part of the fuzzy logic system: de-fuzzing. Since there are many fuzzy values obtained after fuzzy reasoning, which cannot be used, the data need to be processed by the de-fuzzing method, and finally the clear value that meets our requirements is obtained.
Discrete fuzzy values are used in this paper. Use the center of gravity method to defuse
U * = i ( C * i w i ) i ( C * i )
where U * refers to the clear output after de-blurring, U * ( 1 , 0 ) refers to the fuzzy collection of fuzzy reasoning, and  w i refers to the weight of each membership.

4.3. Network Training

During network training, the Actor and Critic’s target networks are recorded as μ ( s | θ μ ) and Q ( s , a | θ Q ) , which are used to calculate the target values. These target networks have to be updated with parameters
θ μ = τ θ μ + ( 1 τ ) θ μ
θ Q = τ θ Q + ( 1 τ ) θ Q
θ μ and θ Q are parameters of the target network, and  τ = 0.0001 is the progressive update rate for the target network.
During algorithm training, the Critic network optimizes parameter θ Q by minimizing the loss function, Loss.
L o s s = 1 N i ( y i Q ( s i , a i | θ Q ) ) 2
Thereinto, y i = r i + γ Q ( s i + 1 , μ ( s i + 1 | θ μ ) | θ Q )   γ is a discount factor that balances the current and long-term penalties.
State action value function Q updates Actor on the θ μ gradient:
E [ θ μ Q ( s , a | θ Q ) | s = s i , a = μ ( s i ) ] = 1 N i a Q ( s , a | θ Q ) | s = s i , a = μ ( s i ) θ μ μ ( s | θ μ ) | s i

4.4. Algorithm Pseudocode

The Algorithm 1 pseudocode used in this article is as follows:
Algorithm 1 Fuzzy Rewards—DDPG Algorithm
1:
Initialize Actor–Critic’s network parameters θ Q and θ μ .
2:
Assign network parameters to the target network θ Q θ Q , θ μ θ μ .
3:
Initialize the experience pool R.
4:
for episode = (1, 1000) do
5:
    Go back to the initial point s 1 ;
6:
    for step = (1, 30) do
7:
        Select Action a i = μ ( s i | θ μ ) from the actor network and send it to the robot
8:
        After processing
9:
        The Fuzzy Rewards system calculates the reward value based on F y , F z , Δ z , d z
10:
        The program executes a i and returns the bonus value r i and the new status
11:
         s i + 1
12:
        The state transition process: ( s i , a i , r i , s i + 1 ) is stored in the experience pool R
13:
        As a dataset for the training network
14:
        Randomly sample N ( s i , a i , r i , s i + 1 ) data from Experience Pool R as a mini-
15:
        Batch training data for the policy network and Q network
16:
        Set up y i = r i + γ Q ( s i + 1 , μ ( s i + 1 | θ μ ) | θ Q )
17:
        Define the loss function: L o s s = 1 N i ( y i Q ( s i , a i | θ Q ) ) 2 , update the Critic
18:
        Network with the loss function
19:
        Policy gradient for computing policy networks:
20:
         θ μ J = 1 N i a Q ( s , a | θ Q ) | s = s i , a = μ ( s i ) θ μ μ ( s | θ μ ) | s i
21:
        Update the target network parameters:
22:
         θ μ = τ θ μ + ( 1 τ ) θ μ
23:
         θ Q = τ θ Q + ( 1 τ ) θ Q
24:
    end for
25:
end for

5. Experiments

5.1. Platform Building

The experimental platform of the KUKA LWR iiwa robot for information collection structure and action execution organization of assembly process is set up. The server is used to process the acquired assembly status data and complete the model learning to trigger the assembly control strategy, driving the robot to complete the flexible assembly task. Taking into account the precision of repeated positioning of the assembly robot, the peg-in-hole gap is set to 0.2 mm, stiffness (Yang’s modulus) is simulated in this experiment, consisting of an axis fixed on the robot body and the assembly table to be assembled workpieces, for the completion of assembly tasks. Specific parameters are shown in Table 2. The shaft of the assembly model consists of a steel shaft with a E s t l = 2.1 × 10 11 Pa modulus of Yang’s and a plastic sleeve with a Yang’s modulus of E s t l = 2.8 × 10 6 Pa, which produces less contact force than a pure stiffness shaft with the same displacement deviation.
In this paper, the communication process is established between the assembly robot and the server through TCP/IP. As shown in Figure 5. The data transmission and command distribution are in the form of Socket. The iiwa robot communicates with the controller with Socket and receives feedback on the assembly status. The neural network is trained with the server. The initial parameter settings for assembly experiment are shown in Table 3.
Depending on the change of force in the direction of the y- and z-axis during assembly, the threshold of the contact force F y and F z is set to 10 N, which is set to 0 because the assembly in this article is independent of the displacement of the x-axis direction and the rotation angle of the z-axis. The stiffness threshold is the maximum and minimum values that are desirable as the threshold.

5.2. Fuzzy Reward System

The contact force F y of the input t-moment y axis, the contact force F z of the z-axis, the assembly depth Z of the t-moment axis, and the assembly action quantity D Z are fuzzed by the triangular membership function, whose respective membership functions are shown in Figure 6.
The fuzzy set after fuzzy is fuzzy according to the set rule library to obtain the output fuzzy set of the first layer; the output of the first layer is obtained by the deflating operation; and the output of the first layer is shown in Figure 7.
The fuzzy logic output of the first layer is used as the input of the fuzzy logic system of the second layer, the same as the fuzzy logic system of the first layer, and the fuzzy operation is carried out first; its membership function is shown in Figure 8.
The resulting fuzzy set fuzzy reasoning, de-fuzzing and other operations to obtain the final evaluation quality are as shown in Figure 9.

5.3. The Assembly Strategy Learning Process

The robustness and generalization capability of the model are improved, and the initial position introduces angle errors ( 0 . 05 , 0 . 05 ) and positional errors (−10 mm, 10 mm) to simulate real industrial environments. In this experiment, the effectiveness of the algorithm is verified by comparing with the other two assembly methods. One is to use position control without impedance control to realize peg-in-hole assembly; the other is to use fuzzy logic to adjust impedance parameters. Other than that, the setup for each experiment is the same. The initial parameter settings for learning training are shown in Table 4.
The training results of each experiment are shown in the Figure 10, including the loss value, reward value and step value during the learning process.
As can be seen from Figure 10, the loss value during training decreases and converges with the increase in step, indicating that the gap between the predicted action value of the Actor network output and the action value required by the actual environment is getting smaller and smaller.
The value of the reward in Figure 10 increases with the number of trainings, indicating that the learning is getting better and better, and the validity of the algorithm is verified.
The step value in Figure 10 requires six steps to complete the assembly task before the training begins, but only four steps after training to complete the assembly task, indicating that the assembly is getting faster and faster. Figure 10 shows the changes in impedance parameters during training.
The force variation curve of each experiment is shown in Figure 11. Without the addition of impedance control, the peg-in-hole assembly process generates a large contact force/moment. The magnitude of force/torque variation produced by the method of adjusting the impedance parameters using learning is smaller than that of adjusting the impedance parameters using fuzzy logic. The security and effectiveness of the algorithm are verified.

5.4. Assembly Strategy Experimental Validation

5.4.1. Test the Assembly Success Rate

After the training is completed, we save and test the trained model, a total of 10 tests, each time with 20 peg-in-hole assembly; the test results as shown in Table 5.
Results of each model performance are showen in Figure 12. It can be seen from the test results that if there is no impedance control, the robot still cannot complete the peg-in-hole assembly task after training. The method of adjusting impedance parameters using fuzzy logic can achieve a success rate of more than 85%, which is less than the 100% success rate that can be achieved using learning to adjust impedance parameters.

5.4.2. Assembly Process Analysis

The trajectory of a peg-in-hole assembly is sampled to obtain the y and z plane’s motion trajectory as shown in Figure 13. The track is divided into the hole-in stage and the un-hole stage.
The joint torque in the assembly process, according to the sampled track point, reads the torque information of each track point in the entry and exit hole stage and the unaddressed stage respectively, and processes it, as shown in Figure 14. The torque of each joint does not change significantly in the unedited stage, and the mutation occurs in the hole-in stage, which gradually converges as the jack progresses. The larger changes are J1, J2, J3, and J4 joints.
The end contact force in the learning process, according to the sampled track point, reads the end force information of each track point in the entry and exit hole stage and the unedited stage, respectively, including the x-axis end moment, the y-axis end force, the z-axis end force. The variation is shown in Figure 15.

6. Conclusions

Robot automatic assembly of weak stiffness parts is a great challenge due to the interaction and high degree of uncertainty of contact force in the course of robot operation. This paper proposed a robot assembly skill learning system, combining the compliance control and deep reinforcement, which could acquire a better robot assembly strategy. The quality evaluation is designed based on fuzzy logic, and the assembly strategy is studied with the deep deterministic strategy gradient. The effectiveness and robustness of the proposed algorithm are demonstrated through a designed simplified simulation model and realistic peg-in-hole assembly experiments. However, the impedance control parameters of the robot are sensitive to the environmental position noise, and it is difficult to optimize the parameters in the industrial field environment. Since the design of the reward function is closely related to the assembly process, various factors must be considered to improve the learning efficiency. The future work will combine with model-based intensive learning to improve the learning efficiency and robot assembly performance.

Author Contributions

Z.W., Y.M. and F.L. wrote the reports; Z.W. and X.Y. read and organized the literature; R.S. and F.L. proposed verification schemes and experimental methods; F.L. and Y.M. carried out experimental platform construction and algorithm network construction; Y.M. and T.F. performed the compilation of experimental results. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Guangdong Key Research and Development Program (No.2020B090925001), by NSFC-Shenzhen Robot Basic Research Center project (U2013204), National Natural Science Foundation of China (No. 61973196).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The study did not report any data.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Inoue, T.; Magistris, G.D.; Munawar, A.; Yokoya, T.; Tachibana, R. Deep Reinforcement Learning for High Precision Assembly Tasks. In Proceedings of the 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Vancouver, BC, Canada, 24–28 September 2017. [Google Scholar]
  2. Luo, J.; Solowjow, E.; Wen, C.; Ojea, J.A.; Agogino, A.M. Deep Reinforcement Learning for Robotic Assembly of Mixed Deformable and Rigid Objects. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018. [Google Scholar]
  3. Li, F.; Jiang, Q.; Quan, W.; Cai, S.; Song, R.; Li, Y. Manipulation skill acquisition for robotic assembly based on multi-modal information description. IEEE Access 2019, 8, 6282–6294. [Google Scholar] [CrossRef]
  4. Hogan, N. Impedance Control—An Approach to Manipulation—Part 2—Implementation. J. Dyn. Syst. Meas. Control 1985, 107, 8–16. [Google Scholar] [CrossRef]
  5. Sutton, R.; Barto, A. Reinforcement Learning: An Introduction; MIT Press: Cambridge, UK, 1998. [Google Scholar]
  6. Tang, T.; Lin, H.C.; Tomizuka, M. A Learning-Based Framework for Robot Peg-Hole-Insertion. In Proceedings of the ASME Dynamic Systems and Control Conference, Columbus, OH, USA, 28–30 October 2015. [Google Scholar]
  7. Yucheng, W. Research on the Assembly Strategy of Macro-Microbot Peg-in-Hole Based on Force Feedback; Xi’an University of Technology: Xi’an, China, 2017. [Google Scholar]
  8. Weijun, W. An Automatic Precision Assembly System for Gentle Assembly of Hole Shafts; Dalian University of Technology: Dalian, China, 2009. [Google Scholar]
  9. Chan, S.P.; Liaw, H.C. Generalized impedance control of robot for assembly tasks requiring compliant manipulation. IEEE Trans. Ind. Electron. 1996, 43, 453–461. [Google Scholar] [CrossRef]
  10. Su, J.; Li, R.; Qiao, H.; Xu, J.; Ai, Q.; Zhu, J.; Loughlin, C. Study on Dual Peg-in-hole Insertion using of Constraints Formed in the Environment. Ind. Robot. 2017, 44, 730–740. [Google Scholar] [CrossRef]
  11. Al-Jarrah, O.M.; Zheng, Y.F. Intelligent compliant motion control. IEEE Trans. Syst. Man, Cybern. Part B Cybern. 1998, 28, 116–122. [Google Scholar] [CrossRef] [PubMed]
  12. Lin, J. Research on the Active Soft Assembly System of Industrial Robots Based on Force Sensors; South China University of Technology: Guangzhou, China, 2013. [Google Scholar]
  13. Hou, Z.; Dong, H.; Zhang, K.; Gao, Q.; Chen, K.; Xu, J. Knowledge-Driven Deep Deterministic Policy Gradient for Robotic Multiple Peg-in-Hole Assembly Tasks. In Proceedings of the 2018 IEEE International Conference on Robotics and Biomimetics (ROBIO), Kuala Lumpur, Malaysia, 12–15 December 2018. [Google Scholar]
  14. Kober, J.; Peters, J. Reinforcement Learning in Robotics: A Survey. Int. J. Robot. Res. 2013, 32, 1238–1247. [Google Scholar] [CrossRef] [Green Version]
  15. Levine, S.; Wagener, N.; Abbeel, P. Learning Contact-Rich Manipulation Skills with Guided Policy Search. Proc. IEEE Int. Conf. Robot. Autom. 2015, 26–30. [Google Scholar] [CrossRef]
  16. Gullapalli, V.; Grupen, R.A.; Barto, A.G. Learning reactive admittance control. ICRA 1992, 1475–1480. [Google Scholar] [CrossRef]
  17. Nuttin, M.; Brussel, H. Learning the peg-into-hole assembly operation with a connectionist reinforcement technique. Comput. Ind. 1997, 33, 101–109. [Google Scholar] [CrossRef]
  18. Jing, X.; Hou, Z.; Wei, W.; Xu, B.; Zhang, K.; Chen, K. Feedback Deep Deterministic Policy Gradient With Fuzzy Reward for Robotic Multiple Peg-in-Hole Assembly Tasks. IEEE Trans. Ind. Inform. 2018, 15, 1658–1667. [Google Scholar]
  19. Erickson, D.; Weber, M.; Sharf, I. Contact Stiffness and Damping Estimation for Robotic Systems. Int. J. Robot. Res. 2003, 22, 41–58. [Google Scholar] [CrossRef]
  20. Xiao, S.; Shouping, Y.; Xing, W. Research on Adaptive Impedance Control of Multi-joint Robot. J. Hunan Univ. Technol. 2017, 31, 5. [Google Scholar]
  21. Ferraguti, F.; Secchi, C.; Fantuzzi, C. A tank-based approach to impedance control with variable stiffness. In Proceedings of the IEEE International Conference on Robotics and Automation, Karlsruhe, Germany, 6–10 May 2013. [Google Scholar]
  22. Ficuciello, F.; Villani, L.; Siciliano, B. Variable Impedance Control of Redundant Manipulators for Intuitive Human–Robot Physical Interaction. IEEE Trans. Robot. 2015, 31, 850–863. [Google Scholar] [CrossRef] [Green Version]
  23. Howard, M.; Braun, D.J.; Vijayakumar, S. Transferring Human Impedance Behavior to Heterogeneous Variable Impedance Actuators. IEEE Trans. Robot. 2013, 29, 847–862. [Google Scholar] [CrossRef] [Green Version]
  24. Chao, L.; Zhi, Z.; Xia, G.; Xie, X.; Zhu, Q.J.S. Efficient Force Control Learning System for Industrial Robots Based on Variable Impedance Control. Sensors 2018, 18, 2539. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Surdilovic, D. Robust control design of impedance control for industrial robots. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, San Diego, CA, USA, 29 October–2 November 2007. [Google Scholar]
  26. Song, P.; Yu, Y.; Zhang, X. A Tutorial Survey and Comparison of Impedance Control on Robotic Manipulation. Robotica 2019, 37, 801–836. [Google Scholar] [CrossRef]
Figure 1. The framework of the proposed method.
Figure 1. The framework of the proposed method.
Applsci 12 03181 g001
Figure 2. Actor network structure.
Figure 2. Actor network structure.
Applsci 12 03181 g002
Figure 3. Critic network structure.
Figure 3. Critic network structure.
Applsci 12 03181 g003
Figure 4. The assembly quality evaluation with fuzzy logic.
Figure 4. The assembly quality evaluation with fuzzy logic.
Applsci 12 03181 g004
Figure 5. Communication structure of assembly system.
Figure 5. Communication structure of assembly system.
Applsci 12 03181 g005
Figure 6. The first layer of membership function: (a) F y membership function; (b) F z membership function; (c) Z membership function; (d) D Z membership function.
Figure 6. The first layer of membership function: (a) F y membership function; (b) F z membership function; (c) Z membership function; (d) D Z membership function.
Applsci 12 03181 g006
Figure 7. The first layer of fuzzy logic system output: (a) F y F z fuzzy logic system output value; (b) Z D Z fuzzy logic system output value.
Figure 7. The first layer of fuzzy logic system output: (a) F y F z fuzzy logic system output value; (b) Z D Z fuzzy logic system output value.
Applsci 12 03181 g007
Figure 8. The second layer of membership function: (a) F y F z membership function; (b) Z D Z membership function.
Figure 8. The second layer of membership function: (a) F y F z membership function; (b) Z D Z membership function.
Applsci 12 03181 g008
Figure 9. The second layer of fuzzy logic system output.
Figure 9. The second layer of fuzzy logic system output.
Applsci 12 03181 g009
Figure 10. The assembly strategy learning process: (a) loss value change during training; (b) reward value change during training; (c) step value change during training; (df) represent the changes of the impedance values in the x, y, and z directions when the impedance parameters are adjusted by the learning method and the fuzzy logic method, respectively.
Figure 10. The assembly strategy learning process: (a) loss value change during training; (b) reward value change during training; (c) step value change during training; (df) represent the changes of the impedance values in the x, y, and z directions when the impedance parameters are adjusted by the learning method and the fuzzy logic method, respectively.
Applsci 12 03181 g010
Figure 11. The force variation curve of each experiment. (a) Without soft; (b) soft with DDPG; (c) soft of fuzzy.
Figure 11. The force variation curve of each experiment. (a) Without soft; (b) soft with DDPG; (c) soft of fuzzy.
Applsci 12 03181 g011
Figure 12. Results of each model performance: (a) reward; (b) step; (c,d): stiffness.
Figure 12. Results of each model performance: (a) reward; (b) step; (c,d): stiffness.
Applsci 12 03181 g012
Figure 13. The trajectory of the end of the peg during insertion.
Figure 13. The trajectory of the end of the peg during insertion.
Applsci 12 03181 g013
Figure 14. The torque of seven joints during assembly.
Figure 14. The torque of seven joints during assembly.
Applsci 12 03181 g014
Figure 15. The end contact force and torque during assembly.
Figure 15. The end contact force and torque during assembly.
Applsci 12 03181 g015
Table 1. Rule library.
Table 1. Rule library.
VGGMBVB
VG R 1 R 6 R 11 R 16 R 21
G R 2 R 7 R 12 R 17 R 22
M R 3 R 8 R 13 R 18 R 23
B R 4 R 9 R 14 R 19 R 24
VB R 5 R 10 R 15 R 20 R 25
Table 2. Assembly workpiece parameters.
Table 2. Assembly workpiece parameters.
DiameterDepthMinimum ClearanceCenter DeviationAxis Angle
24 mm30 mm0.5 mm(−5 mm, 5 mm) ( 0 . 05 , 0 . 05 )
Table 3. Initial setting of each assembly experiment.
Table 3. Initial setting of each assembly experiment.
ParameterSymbolValue
Contact force threshold F y (−10, 10) N
F z (−10, 10) N
Track increment threshold Δ x 0 mm
Δ y 1 mm
Δ z 5/3 mm
Δ α 0
Δ β 0.02 /3
Δ γ 0.02 /3
Stiffness threshold d x , d y , d z (0, 4000)
Table 4. Training parameter setting of each experiment.
Table 4. Training parameter setting of each experiment.
Without SoftSoft with DDPGSoft with Fuzzy
SymbolValueSymbolValueSymbolValue
episode1000episode1000episode1000
stepmax20stepmax20stepmax20
s 0 s 0 s 0 s 0 s 0 s 0
Table 5. Model test results.
Table 5. Model test results.
GroupsWithout Soft SuccessSoft DDPG SuccessSoft Fuzzy Success
10%95%85%
20%100%85%
30%95%80%
40%100%90%
50%100%80%
60%100%85%
70%100%75%
810%100%65%
90%100%80%
100%90%90%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, Z.; Li, F.; Men, Y.; Fu, T.; Yang, X.; Song, R. Deep Deterministic Policy Gradient with Reward Function Based on Fuzzy Logic for Robotic Peg-in-Hole Assembly Tasks. Appl. Sci. 2022, 12, 3181. https://doi.org/10.3390/app12063181

AMA Style

Wang Z, Li F, Men Y, Fu T, Yang X, Song R. Deep Deterministic Policy Gradient with Reward Function Based on Fuzzy Logic for Robotic Peg-in-Hole Assembly Tasks. Applied Sciences. 2022; 12(6):3181. https://doi.org/10.3390/app12063181

Chicago/Turabian Style

Wang, Ziyue, Fengming Li, Yu Men, Tianyu Fu, Xuting Yang, and Rui Song. 2022. "Deep Deterministic Policy Gradient with Reward Function Based on Fuzzy Logic for Robotic Peg-in-Hole Assembly Tasks" Applied Sciences 12, no. 6: 3181. https://doi.org/10.3390/app12063181

APA Style

Wang, Z., Li, F., Men, Y., Fu, T., Yang, X., & Song, R. (2022). Deep Deterministic Policy Gradient with Reward Function Based on Fuzzy Logic for Robotic Peg-in-Hole Assembly Tasks. Applied Sciences, 12(6), 3181. https://doi.org/10.3390/app12063181

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop