Robot control method based on reinforcement learning of predictive control planning model

By adopting the reinforcement learning method based on the predictive control planning model in robot control, and using Bayesian posterior estimation and cross-entropy algorithm, the problems of sample complexity and model deviation are solved, the robot can realize rapid adaptation and safe decision-making, and reduce the cost of losses and failure rates.

CN118689101APending Publication Date: 2024-09-24UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410687279.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing reinforcement learning methods have unsafe problems caused by high sample complexity and model deviation in robot control, which may cause the robot to deviate from the safe area or malfunction.

Method used

The reinforcement learning method based on the predictive control planning model is used to adaptively adjust the number of planning steps through Bayesian posterior estimation to reduce sample complexity and alleviate model deviations. It combines the cross-entropy algorithm and gradient backpropagation to update the strategy network to achieve rapid robot speed. Adaptation and safety decisions.

Benefits of technology

It significantly reduces the negative impact of sample complexity and model deviation, improves the safety and adaptability of robot control, reduces loss and failure rates, and can solve sequential decision-making problems quickly and safely.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689101A
    Figure CN118689101A
Patent Text Reader

Abstract

The invention provides a robot control method based on predictive control planning model reinforcement learning. The method comprises the four steps of initialization, environment interaction, model updating and strategy updating. Firstly, a predictive control planning model and a reinforcement learning algorithm are initialized; and secondly, interacting with the environment to collect a training trajectory: for each current state, estimating a self-adaptive adjustment planning step number through Bayesian posteriori according to cognitive uncertainty to obtain a candidate action set of the predictive control planning model in the state, and executing a superior action output by using a cross entropy method. And updating the predictive control planning model and the value function again. And finally updating the reinforcement learning strategy network. According to the technical scheme, the sample complexity is remarkably reduced, and the negative influence of model deviation on a model reinforcement learning algorithm is effectively relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot intelligent control, and in particular to a robot control method based on reinforcement learning of a predictive control planning model. Background Art

[0002] With the continuous development of sensor technology, computer technology and intelligent technology, robots are being used more and more widely. For example, in scenarios such as industrial manufacturing, housework care, and environmental detection, it is becoming increasingly important for robots to be able to complete tasks autonomously. Reinforcement learning algorithms provide a powerful framework to help robots autonomously solve sequential decision-making problems. Generally speaking, reinforcement learning algorithms are divided into two types: model-free and model-based. However, model-free reinforcement learning algorithms are rarely directly applied to robotic systems because they have high sample complexity, which increases the wear and tear of the robot and shortens its lifespan, and the intermediate strategies in training may be unsafe and harmful, causing the robot to deviate from the safe area or malfunction.

[0003] Compared with model-free reinforcement learning, model-based reinforcement learning algorithms simulate and plan trajectories by learning the state transition model of the system and environment, thus reducing the sample complexity of the algorithm. However, model bias is an inherent problem of model-based reinforcement learning. It will point the strategy to unknown areas in long-term planning, leading to overestimation of value and disrupting strategy learning, which can easily cause the robot to stray into unsafe areas; while too short planning cannot fully utilize the advantages of the model, and when the number of planning steps is zero, it degenerates into model-free reinforcement learning. Therefore, the method of adaptively adjusting the number of planning steps by using Bayesian posterior estimation through cognitive uncertainty - when the model is reliable, use planning as much as possible to reduce sample complexity, and when uncertainty is high, reduce the number of planning steps to alleviate overestimation of value - can reduce sample complexity and mitigate the negative impact of model bias on model-based reinforcement learning algorithms, thereby reducing the loss of robots and reducing the probability of robots deviating from safe areas or malfunctioning. Summary of the invention

[0004] The technology of the present invention solves the following problems: It overcomes the problems of the existing reinforcement learning methods in that the sample complexity is high during the learning process and the insecurity caused by the model bias; It provides a robot control method based on the reinforcement learning of the predictive control planning model, which adaptively adjusts the number of planning steps through Bayesian posterior estimation according to cognitive uncertainty, reduces the sample complexity and alleviates the negative impact of the model bias; The robot trained by this method has rapid adaptability and safety, and can safely and autonomously solve sequential decision-making problems, such as the manipulation or trajectory planning of a robotic arm, with less loss and in a shorter time.

[0005] The technical solution of the present invention is: a robot control method based on reinforcement learning of a predictive control planning model, including initialization, environment interaction, model update and strategy update, specifically including the following steps: Step 1: Complete the initialization of the predictive control planning model and reinforcement learning algorithm, including steps S1.1-S1.2: Step S1.1: Set the maximum number of planning steps for the predictive control planning model , the number of model ensembles , the number of integrated value functions , attenuation factor , the number of samples of the cross entropy algorithm 、Number of winners and the number of iterations ; Step S1.2: Initialize the predictive control planning model ensemble of the environment ,in Represents a predictive control planning model, reinforcement learning policy network , value function integration ,in Represents a value function network, experience pool ; Step 2: Interact with the environment to collect training trajectories, including steps S2.1 to S2.4: Step S2.1: The robot obtains the status information of the surrounding environment ; Step S2.2: Based on the current status information , and obtain the candidate action set output by the adaptive planning of the predictive control planning model ; Step S2.3: Based on the current status information and the candidate action set , use the cross entropy method to get the action ; Step S2.4: The robot performs the action , get the current moment reward signal and the next moment status information , the four-tuple Add to experience pool middle; Repeat steps S2.2 to S2.4 until the robot ends this round and the training trajectory is completed; Step 3: Update the predictive control planning model and value function, including steps S3.1 to S3.5: Step S3.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad express; Step S3.2: Set the state-action pair Input Predictive Control Planning Model Ensemble Get the current moment reward and the next moment state The mean and variance of the Gaussian distribution of ,in It is Model The output result is, Representative Model The current moment reward The mean of Representative Model The current moment reward The variance of Representative Model The next moment state The mean of Representative Model The next moment state The variance of Step S3.3: Ensemble the model for predictive control planning Each model in , updated by maximum likelihood, as shown in formula (1), where It is a model The loss function during update; (1); Step S3.4: Set the state-action pair Input value function integration Get value from ,in It is The result output by the value function network; Step S3.5: Integration of value functions Each network in , updated by gradient back propagation using the mean square error loss function, as shown in formula (2), where is the value function The loss function during update, The next moment state Input Policy Network The next action obtained from (2); Step 4: Update the reinforcement learning policy network, including steps S4.1-S4.5: Step S4.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad Indicates that the state of removal ; Step S4.2: Set the current state Input reinforcement learning policy network , get action , and thus obtain the state-action pair ; Step S4.3: Set the state-action pair Input value function integration , get the value ,in It is The result of the value function network output is the minimum value as the estimated value ; Step S4.4: Set the state-action pair Input Predictive Control Planning Model Ensemble The predicted state mean at the next moment is obtained ; Repeat steps S4.2 to S4.4 Get a series of value estimates ; Step 4.5: Based on the deterministic policy loss function, use equation (3) to update the reinforcement learning policy network through gradient back propagation of the neural network. : (3); Repeat steps 2 to 4 until the maximum number of training times or the policy network convergence.

[0006] Furthermore, the step S2.2 specifically includes: Step S2.2.1: Send status information copy times, get ; Step S2.2.2: Each state-action pair Enter the Model Get the current moment reward and the next moment state ; Step S2.2.3: For each state Input reinforcement learning policy network separately , get action ; Step S2.2.4: Repeat steps S2.2.2 and S2.2.3 times, get the action sequence , reward sequence and state sequence ; Step S2.2.5: Set the state-action pair Input value function integration Get value ; Step S2.2.6: For each , , according to the cumulative return formula, as shown in formula (4), calculate its return : (4); Step S2.2.7: For each According to the total variance theorem, the uncertainty of the value function integration and the model uncertainty are added together, as shown in formula (5), and the variance of the return is calculated : (5); Step S2.2.8: For each , taking the inverse of the return variance as their weight ,Right now , and normalize the weights to ,Right now ; Step S2.2.9: Calculate the expected number of planning steps based on the normalized weights as the number of adaptive planning steps ,Right now ; Step S2.2.10: The average of the planned actions is combined into a candidate action set .

[0007] Furthermore, the step S2.3 specifically includes: Step S2.3.1: Average the winning actions and variance Assign zero value; Step S2.3.2: From the mean , the variance is Sampling S actions from a Gaussian distribution , and the candidate action set Combined into action sets ; Step S2.3.3: For Every action in , as calculated by formula (4): Step Return ; Step S2.3.4: From all Select the previous step in the report The actions with the largest correspondence are the winning action set ; Step S2.3.5: Calculate the winning action set The mean and variance ; Repeat steps S2.3.2 to S2.3.5 times, the average of the last winning actions As an action .

[0008] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention provides a robot control method based on predictive control planning model reinforcement learning, which significantly reduces sample complexity and effectively alleviates the negative impact of model bias on model-based reinforcement learning algorithms; (2) The present invention adaptively adjusts the number of planning steps based on epistemic uncertainty through Bayesian posterior estimation - when the model is reliable, planning is used as much as possible to reduce sample complexity, and when uncertainty is high, the number of planning steps is reduced to alleviate value overestimation. This method reduces sample complexity and mitigates the negative impact of model bias on model-based reinforcement learning algorithms, thereby reducing wear on the robot and reducing the probability of the robot deviating from the safe area or malfunctioning.

[0009] (3) The present invention can be combined with any robot model reinforcement learning algorithm to enable the robot to have rapid adaptability and safety, and to be able to safely and autonomously solve sequential decision-making problems with less loss and in a shorter time, and has strong universality. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 This is a flow chart of a robot control method based on reinforcement learning of a predictive control planning model in an example of the present invention. DETAILED DESCRIPTION

[0011] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below through specific implementations and in conjunction with the accompanying drawings.

[0012] like Figure 1 As shown, an embodiment of the present invention provides a robot control method based on reinforcement learning of a predictive control planning model, including initialization, environment interaction, model update, and strategy update, specifically including the following steps: Step 1: Complete the initialization of the predictive control planning model and reinforcement learning algorithm, including steps S1.1-S1.2: Step S1.1: Set the maximum number of planning steps for the predictive control planning model , the number of model ensembles , the number of integrated value functions , attenuation factor , the number of samples of the cross entropy algorithm 、Number of winners and the number of iterations ; Step S1.2: Initialize the predictive control planning model ensemble of the environment ,in Represents a predictive control planning model, reinforcement learning policy network , value function integration ,in Represents a value function network, experience pool ; Step 2: Interact with the environment to collect training trajectories, including steps S2.1 to S2.4: Step S2.1: The robot obtains the status information of the surrounding environment ; Step S2.2: Based on the current status information , and obtain the candidate action set output by the adaptive planning of the predictive control planning model , specifically including: Step S2.2.1: Send status information copy times, get ; Step S2.2.2: Each state-action pair Enter the Model Get the current moment reward and the next moment state ; Step S2.2.3: For each state Input reinforcement learning policy network separately , get action ; Step S2.2.4: Repeat steps S2.2.2 and S2.2.3 times, get the action sequence , reward sequence and state sequence ; Step S2.2.5: Set the state-action pair Input value function integration Get value ; Step S2.2.6: For each , , according to the cumulative return formula, as shown in formula (4), calculate its return : (4); Step S2.2.7: For each According to the total variance theorem, the uncertainty of the value function integration and the model uncertainty are added together, as shown in formula (5), and the variance of the return is calculated : (5); Step S2.2.8: For each , taking the inverse of the return variance as their weight ,Right now , and normalize the weights to ,Right now ; Step S2.2.9: Calculate the expected number of planning steps based on the normalized weights as the number of adaptive planning steps ,Right now ; Step S2.2.10: The average of the planned actions is combined into a candidate action set ; Step S2.3: Based on the current status information and the candidate action set , use the cross entropy method to get the action , specifically including: Step S2.3.1: Average the winning actions and variance Assign zero value; Step S2.3.2: From the mean , the variance is Sampling S actions from a Gaussian distribution , and the candidate action set Combined into action sets ; Step S2.3.3: For Every action in , as calculated by formula (4): Step Return ; Step S2.3.4: From all Select the previous step in the report The actions with the largest correspondence are the winning action set ; Step S2.3.5: Calculate the winning action set The mean and variance ; Repeat steps S2.3.2 to S2.3.5 times, the average of the last winning actions As an action ; Step S2.4: The robot performs the action , get the current moment reward signal and the next moment status information , the four-tuple Add to experience pool middle; Repeat steps S2.2 to S2.4 until the robot ends this round and the training trajectory is completed; Step 3: Update the predictive control planning model and value function, including steps S3.1 to S3.5: Step S3.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad express; Step S3.2: Set the state-action pair Input Predictive Control Planning Model Ensemble Get the current moment reward and the next moment state The mean and variance of the Gaussian distribution of ,in It is Model The output result is, Representative Model The current moment reward The mean of Representative Model The current moment reward The variance of Representative Model The next moment state The mean of Representative Model The next moment state The variance of Step S3.3: Ensemble the model for predictive control planning Each model in , updated by maximum likelihood, as shown in formula (1), where It is a model The loss function during update; (1); Step S3.4: Set the state-action pair Input value function integration Get value from ,in It is The result output by the value function network; Step S3.5: Integration of value functions Each network in , updated by gradient back propagation using the mean square error loss function, as shown in formula (2), where is the value function The loss function during update, The next moment state Input Policy Network The next action obtained from (2); Step 4: Update the reinforcement learning policy network, including steps S4.1-S4.5: Step S4.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad Indicates that the state of removal ; Step S4.2: Set the current state Input reinforcement learning policy network , get action , and thus obtain the state-action pair ; Step S4.3: Set the state-action pair Input value function integration , get the value ,in It is The result of the value function network output is the minimum value as the estimated value ; Step S4.4: Set the state-action pair Input Predictive Control Planning Model Ensemble The predicted state mean at the next moment is obtained ; Repeat steps S4.2 to S4.4 Get a series of value estimates ; Step S4.5: Based on the deterministic policy loss function, use equation (3) to update the reinforcement learning policy network through gradient back propagation of the neural network. : (3); Repeat steps 2 to 4 until the maximum number of training times or the policy network convergence.

[0013] The above embodiments are provided only for the purpose of describing the present invention, and are not intended to limit the scope of the present invention. The scope of the present invention is defined by the appended claims. Various equivalent substitutions and modifications made without departing from the spirit and principles of the present invention should all be included within the scope of the present invention.

Claims

1. A robot control method based on reinforcement learning of predictive control planning model, It is characterized in that The method includes initialization, environment interaction, model update and strategy update, and specifically includes the following steps: Step 1: Complete the initialization of the predictive control planning model and reinforcement learning algorithm, including steps S1.1-S1.2: Step S1.1: Set the maximum number of planning steps for the predictive control planning model , the number of model ensembles , the number of integrated value functions , attenuation factor , the number of samples of the cross entropy algorithm 、Number of winners and the number of iterations ; Step S1.2: Initialize the predictive control planning model ensemble of the environment ,in Represents a predictive control planning model, reinforcement learning policy network , value function integration ,in Represents a value function network, experience pool ; Step 2: Interact with the environment to collect training trajectories, including steps S2.1 to S2.4: Step S2.1: The robot obtains the status information of the surrounding environment ; Step S2.2: Based on the current status information , and obtain the candidate action set output by the adaptive planning of the predictive control planning model ; Step S2.3: Based on the current status information and the candidate action set , use the cross entropy method to get the action ; Step S2.4: The robot performs the action , get the current moment reward signal and the next moment status information , the four-tuple Add to experience pool middle; Repeat steps S2.2 to S2.4 until the robot ends this round and the training trajectory is completed; Step 3: Update the predictive control planning model and value function, including steps S3.1 to S3.5: Step S3.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad express; Step S3.2: Set the state-action pair Input Predictive Control Planning Model Ensemble Get the current moment reward and the next moment state The mean and variance of the Gaussian distribution of ,in It is Model The output result is, Representative Model The current moment reward The mean of Representative Model The current moment reward The variance of Representative Model The next moment state The mean of Representative Model The next moment state The variance of Step S3.3: Ensemble the model for predictive control planning Each model in , updated by maximum likelihood, as shown in formula (1), where It is a model The loss function during update; (1); Step S3.4: Set the state-action pair Input value function integration Get value from ,in It is The result output by the value function network; Step S3.5: Integration of value functions Each network in , updated by gradient back propagation using the mean square error loss function, as shown in formula (2), where is the value function The loss function during update, The next moment state Input Policy Network The next action obtained from (2); Step 4: Update the reinforcement learning policy network, including steps S4.1-S4.5: Step S4.1: From the experience pool Random sampling to obtain empirical data , empirical data In the form of a quad Indicates that the state of removal ; Step S4.2: Set the current state Input reinforcement learning policy network , get action , and thus get the state-action pair ; Step S4.3: Set the state-action pair Input value function integration , get the value ,in It is The result of the value function network output is the minimum value as the estimated value ; Step S4.4: Set the state-action pair Input Predictive Control Planning Model Ensemble The predicted state mean at the next moment is obtained ; Repeat steps S4.2 to S4.4 Get a series of value estimates ; Step S4.5: Based on the deterministic policy loss function, use equation (3) to update the reinforcement learning policy network through gradient back propagation of the neural network : (3); Repeat steps 2 to 4 until the maximum number of training times or the policy network convergence.

2. The method according to claim 1, It is characterized in that The step S2.2 specifically includes: Step S2.2.1: Send status information copy times, get ; Step S2.2.2: Each state-action pair Enter the Model Get the current moment reward and the next moment state ; Step S2.2.3: For each state Input reinforcement learning policy network separately , get action ; Step S2.2.4: Repeat steps S2.2.2 and S2.2.3 times, get the action sequence , reward sequence and state sequence ; Step S2.2.5: Set the state-action pair Input value function integration Get value ; Step S2.2.6: For each , , according to the cumulative return formula, as shown in formula (4), calculate its return : (4); Step S2.2.7: For each According to the total variance theorem, the uncertainty of the value function integration and the model uncertainty are added together, as shown in formula (5), and the variance of the return is calculated : (5); Step S2.2.8: For each , taking the inverse of the return variance as their weight ,Right now , and normalize the weights to ,Right now ; Step S2.2.9: Calculate the expected number of planning steps based on the normalized weights as the number of adaptive planning steps ,Right now ; Step S2.2.10: The average of the planned actions is combined into a candidate action set .

3. The method according to claim 1, It is characterized in that The step S2.3 specifically includes: Step S2.3.1: Average the winning actions and variance Assign zero value; Step S2.3.2: From the mean , the variance is Sampling S actions from a Gaussian distribution , and the candidate action set Combined into action sets ; Step S2.3.3: For Every action in , as calculated by formula (4): Step Return ; Step S2.3.4: From all Select the previous step in the report The actions with the largest correspondence are the winning action set ; Step S2.3.5: Calculate the winning action set The mean and variance ; Repeat steps S2.3.2 to S2.3.5 times, the average of the last winning actions As an action .