Method and apparatus for determining control policy of robot

By dividing the training process into exploration and exploitation phases, and combining reinforcement learning and particle swarm optimization algorithms for updating, and utilizing replay caching to store data, the problem of low accuracy in robot control strategies was solved, achieving higher accuracy and reliability of control strategies.

CN117744698BActive Publication Date: 2026-11-24SHENZHEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311508746.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2026-11-24
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of the policy network is low during the determination of robot control strategies, and it is prone to getting trapped in local optima, making it difficult to achieve optimal training results.

Method used

The training process is divided into an exploration phase and an exploitation phase. The population is updated by giving improved individuals more opportunities to interact with the environment and giving the best individuals more resources, respectively. Reinforcement learning and particle swarm optimization algorithms are used to update the population, and replay caching is used to store data to improve accuracy.

Benefits of technology

This effectively prevents individuals from getting trapped in local optima too early during training, improves the accuracy and reliability of the control strategy, and encourages individuals to learn optimal performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117744698B_ABST
    Figure CN117744698B_ABST
Patent Text Reader

Abstract

This disclosure provides a method and apparatus for determining the control strategy of a robot, comprising: receiving initialization information, training an initial population until the training time step information is greater than the training time step information, and using the policy network of the best individual in the target population that is greater than the training time step information as the control strategy of the robot. The i-th training includes: obtaining the stage information of the i-th training, determining the first individual to be evaluated in the population of the (i-1)-th training based on the stage information, if the stage information is the exploration stage, then the first individual to be evaluated is the improved individual in the population of the (i-1)-th training, if the stage information is the utilization stage, then the first individual to be evaluated is the best individual in the population of the (i-1)-th training, evaluating the first individual to be evaluated multiple times to obtain a first evaluation result, evaluating the individuals in the population of the (i-1)-th training once to obtain a second evaluation result, and updating the population of the (i-1)-th training based on the first evaluation result and the second evaluation result to obtain the population of the i-th training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of robot control technology, and in particular to a method and apparatus for determining the control strategy of a robot. Background Technology

[0002] With the development of robotics technology, how to determine an accurate and reliable control strategy for controlling robots has become an urgent problem to be solved.

[0003] In related technologies, a robot corresponds to multiple individuals. Each individual (or intelligent agent) includes a policy network, and multiple individuals share a value network. The control policy is actually the policy network that controls the robot most accurately among many policy networks. In some embodiments, the control policy is trained by the training system based on the value network shared by each policy network to iterate until the optimal policy network is obtained, and the optimal policy network obtained is determined as the control policy.

[0004] However, when the training device uses the above method to determine the policy network, there may be a technical problem that the accuracy of the determined policy network is relatively low.

[0005] The information in the background section is merely information known only to the inventor and does not imply that such information had entered the public domain before the date of this application, nor does it imply that it can be considered prior art in this disclosure. Summary of the Invention

[0006] This disclosure provides a method and apparatus for determining the control strategy of a robot, thereby improving the accuracy of the determined control strategy.

[0007] In a first aspect, this disclosure provides a method for determining the control strategy of a robot, comprising:

[0008] The robot receives user input of initialization information for its control task. The initialization information includes training time step information and initialization population. The training time step information includes exploration time step information for the exploration phase and utilization time step information for the utilization phase. The initialization population includes multiple individuals.

[0009] The initial population is trained until the training time step information is greater than the training time step information, and the policy network of the best individual in the target population with greater training time step information is used as the control policy of the robot; wherein, the i-th training includes:

[0010] Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1.

[0011] The first individual to be evaluated is evaluated multiple times to obtain the first evaluation result;

[0012] An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result;

[0013] The population for the (i-1)th evaluation is updated based on the first evaluation result and the second evaluation result to obtain the population for the i-th evaluation.

[0014] Optionally, the initialization information further includes an environment model; each individual includes a policy network; the step of performing multiple evaluations on the first individual to be evaluated to obtain a first evaluation result includes:

[0015] Determine the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated;

[0016] Obtain the i-th reward information determined by the environmental model based on the information of the i-th action performed on the first individual to be evaluated;

[0017] Obtain the (i+1)th state information observed after the first individual to be evaluated performs the i-th action information;

[0018] The first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information.

[0019] Optionally, updating the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the population for the ith time includes:

[0020] The second individual to be evaluated in the population of the (i-1)th time is determined based on the stage information. If the stage information is the exploration stage, the second individual to be evaluated is each individual in the population of the (i-1)th time. If the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population of the (i-1)th time.

[0021] The second individual to be evaluated is updated based on the first evaluation result and the second evaluation result to obtain the population of the i-th time.

[0022] Optionally, updating the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population for the i-th time includes:

[0023] Based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, the policy network of the second individual to be evaluated is updated to obtain the population after the (i-1)th update.

[0024] Based on the first evaluation result and the second evaluation result, and using the particle swarm optimization algorithm, the individuals in the population after the (i-1)th update are updated to obtain the population after the i-th update.

[0025] Optionally, each individual also includes a value network; the step of updating the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, to obtain the population after the (i-1)th update, includes:

[0026] Based on the first evaluation result and the second evaluation result, calculate the loss information of the value network of the second individual to be evaluated in the tth time, where t < i-1;

[0027] The second individual to be evaluated is updated in the tth time based on the loss information of the tth time value network to obtain the population after the (i-1)th update.

[0028] Optionally, the step of updating the individuals in the population after the (i-1)th update based on the first evaluation result and the second evaluation result, and using a particle swarm optimization algorithm, to obtain the population for the i-th update, includes:

[0029] Based on the first evaluation result and the second evaluation result, update the individual optimal position and the global optimal position of the population after the (i-1)th update, wherein the individual optimal position is the parameter of the optimal policy network of each individual in the population after the (i-1)th update, and the global optimal position is the parameter of the optimal policy network of all individuals in the population after the (i-1)th update.

[0030] Based on the individual's best position and the global best position, determine the movement information of individuals in the population after the (i-1)th update;

[0031] The policy network parameters of individuals in the population after the (i-1)th update are updated based on the movement information to obtain the population at the i-th update.

[0032] Optionally, the initialization information further includes a replay cache; the first evaluation result and the second evaluation result are stored in the replay cache; and

[0033] The step of updating the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the population for the i-th time includes:

[0034] The first evaluation result and the second evaluation result are obtained from the replay cache, and the population for the (i-1)th time is updated according to the first evaluation result and the second evaluation result to obtain the population for the i-th time.

[0035] Optionally, the method further includes:

[0036] Obtain the control request initiated for the control task;

[0037] Based on the control strategy, the robot is controlled to perform the operation corresponding to the control request.

[0038] Secondly, this disclosure provides a device for determining the control strategy of a robot, comprising:

[0039] The receiving unit is used to receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information and initialization population. The training time step information includes exploration time step information of the exploration phase and utilization time step information of the utilization phase. The initialization population includes multiple individuals.

[0040] A training unit is used to train the initial population until the training time step information is greater than the training time step information, and to use the policy network of the best individual in the target population with greater training time step information as the control policy of the robot; wherein, the i-th training includes:

[0041] Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1.

[0042] The first individual to be evaluated is evaluated multiple times to obtain the first evaluation result;

[0043] An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result;

[0044] The population for the (i-1)th evaluation is updated based on the first evaluation result and the second evaluation result to obtain the population for the i-th evaluation.

[0045] Optionally, the initialization information further includes an environment model; each individual includes a policy network; the training unit is used to evaluate the first individual to be evaluated multiple times, and when obtaining the first evaluation result, it is specifically used to include:

[0046] Determine the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated;

[0047] Obtain the i-th reward information determined by the environmental model based on the information of the i-th action performed on the first individual to be evaluated;

[0048] Obtain the (i+1)th state information observed after the first individual to be evaluated performs the i-th action information;

[0049] The first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information.

[0050] Optionally, the training unit is used to update the population for the (i-1)th time based on the first evaluation result and the second evaluation result. Specifically, when obtaining the population for the i-th time, it is used to:

[0051] The second individual to be evaluated in the population of the (i-1)th time is determined based on the stage information. If the stage information is the exploration stage, the second individual to be evaluated is each individual in the population of the (i-1)th time. If the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population of the (i-1)th time.

[0052] The second individual to be evaluated is updated based on the first evaluation result and the second evaluation result to obtain the population of the i-th time.

[0053] Optionally, when the training unit updates the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population for the i-th time, it is specifically used for:

[0054] Based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, the policy network of the second individual to be evaluated is updated to obtain the population after the (i-1)th update.

[0055] Based on the first evaluation result and the second evaluation result, and using the particle swarm optimization algorithm, the individuals in the population after the (i-1)th update are updated to obtain the population after the i-th update.

[0056] Optionally, each individual also includes a value network; the training unit is used to update the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, to obtain the population after the (i-1)th update, specifically for:

[0057] Based on the first evaluation result and the second evaluation result, calculate the loss information of the value network of the second individual to be evaluated in the tth time, where t < i-1;

[0058] The second individual to be evaluated is updated in the tth time based on the loss information of the tth time value network to obtain the population after the (i-1)th update.

[0059] Optionally, when the training unit updates the individuals in the population after the (i-1)th update based on the first evaluation result and the second evaluation result, and using a particle swarm optimization algorithm, to obtain the population for the i-th update, it is specifically used for:

[0060] Based on the first evaluation result and the second evaluation result, update the individual optimal position and the global optimal position of the population after the (i-1)th update, wherein the individual optimal position is the parameter of the optimal policy network of each individual in the population after the (i-1)th update, and the global optimal position is the parameter of the optimal policy network of all individuals in the population after the (i-1)th update.

[0061] Based on the individual's best position and the global best position, determine the movement information of individuals in the population after the (i-1)th update;

[0062] The policy network parameters of individuals in the population after the (i-1)th update are updated based on the movement information to obtain the population at the i-th update.

[0063] Optionally, the initialization information further includes a replay cache; the first evaluation result and the second evaluation result are stored in the replay cache; the training unit is used to update the population for the (i-1)th time according to the first evaluation result and the second evaluation result, and when obtaining the population for the i-th time, it is specifically used for:

[0064] The first evaluation result and the second evaluation result are obtained from the replay cache, and the population for the (i-1)th time is updated according to the first evaluation result and the second evaluation result to obtain the population for the i-th time.

[0065] Optionally, the device further includes:

[0066] The obtaining unit is used to obtain the control request initiated for the control task;

[0067] The control unit is used to control the robot to perform the operation corresponding to the control request based on the control strategy.

[0068] Thirdly, this disclosure provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0069] The memory stores computer-executed instructions;

[0070] The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-8.

[0071] Fourthly, this disclosure provides a processor-readable storage medium storing a computer program for causing the processor to perform the methods described in the first or second aspect above.

[0072] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0073] This disclosure provides a method and apparatus for determining a robot's control strategy, comprising: receiving initialization information of the robot's control task input by a user, wherein the initialization information includes training time step information and an initial population, the training time step information sequentially including exploration time step information for the exploration phase and utilization time step information for the utilization phase, the initial population including multiple individuals, training the initial population until the training time step information is greater than the target time step information, and using the policy network of the best individual in the target population that is greater than the training time step information as the robot's control strategy, wherein the i-th training includes: obtaining the stage information of the i-th training, determining the first individual to be evaluated in the (i-1)-th stage population based on the stage information, wherein if the stage information is the exploration phase, the first individual to be evaluated is the individual in the (i-1)-th stage population. In the exploration phase, if the phase information is the utilization phase, the first individual to be evaluated is the best individual in the population of the (i-1)th time, where i is an integer greater than 1. The first individual to be evaluated is evaluated multiple times to obtain the first evaluation result. The individuals in the population of the (i-1)th time are evaluated once to obtain the second evaluation result. The population of the (i-1)th time is updated based on the first and second evaluation results to obtain the population of the ith time. In this embodiment, in the exploration phase, the determining device encourages exploration by giving improved individuals rather than the best individuals more opportunities to interact with the environment, which can prevent the training of individuals from getting trapped in local optima too early. In the utilization phase, the determining device encourages the best individuals to learn to achieve the best final performance by giving them more resources. That is, the method provided in this embodiment can improve the accuracy and reliability of the control strategy determination. Attached Figure Description

[0074] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0075] Figure 1 This is a schematic diagram of a method for determining the control strategy of a robot according to an embodiment of the present disclosure;

[0076] Figure 2 This is a schematic diagram of a method for determining the control strategy of a robot according to another embodiment of the present disclosure;

[0077] Figure 3 This is a schematic diagram of a device for determining the control strategy of a robot according to an embodiment of the present disclosure;

[0078] Figure 4 This is a schematic diagram of a device for determining the control strategy of a robot according to another embodiment of the present disclosure;

[0079] Figure 5 This is a schematic diagram of an electronic device according to an embodiment of the present disclosure.

[0080] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0081] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0082] It should be understood that the terms “comprising” and “having” and any variations thereof in the embodiments of this disclosure are intended to cover but not exclude inclusion. For example, a product or device that includes a series of components is not necessarily limited to those components that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.

[0083] In this disclosure, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0084] In this disclosure, the term "multiple" refers to two or more, and other quantifiers are similar.

[0085] The terms “first,” “second,” “third,” etc., used in this disclosure are used to distinguish similar or related objects or entities and do not necessarily imply a specific order or sequence, unless otherwise indicated. It should be understood that such terms can be used interchangeably where appropriate, for example, in situations where implementation can proceed in an order other than those given in the illustrations or descriptions of embodiments of this disclosure.

[0086] As used in this disclosure, the term "unit / module" means any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code capable of performing the functions associated with that element.

[0087] To facilitate the reader's understanding of this disclosure, at least some of the terms used in this disclosure are explained below:

[0088] Machine learning is a multidisciplinary field that encompasses probability theory, statistics, approximation theory, and complex algorithms. It uses computers as tools and aims to realistically and in real-time simulate human learning methods, while also structuring existing content to effectively improve learning efficiency.

[0089] Reinforcement learning (RL), also known as reward learning, evaluation learning, or enhancement learning, is a paradigm and methodology in machine learning used to describe and solve problems where an agent learns strategies to maximize rewards or achieve specific goals during interactions with its environment. The agent can also be referred to as an individual.

[0090] A population refers to a collection of multiple individuals. State information refers to the information an individual obtains from its environment, such as the velocity and angular velocity of a robot's joints and its own position coordinates. Action information refers to the individual's behavior. The environment model refers to everything outside the individual that interacts with it; it is used to score the individual's action information and obtain reward information. Reward information refers to the environment model's feedback on the action information.

[0091] A policy network is a network that learns to produce a definite output for a given input.

[0092] A value network, also known as a numerical network, refers to the expected value obtained by calculating the cumulative score of current state information.

[0093] Reinforcement learning has been widely applied in the field of robot control. In related technologies, reinforcement learning algorithms mainly use policy networks as individuals in a population, that is, each individual includes a policy network, and all individuals in the population, i.e., all policy networks, share the same value network.

[0094] Given a system that determines the robot's control strategy, the policy network needs to be updated based on the value network to determine the updated optimal policy network (i.e., the one with the highest score represented by the reward information) as the control strategy for controlling the robot.

[0095] However, since the policy network update depends on the guidance of the value network, and when the only value network gets stuck in a local optimum, the update of the entire population will be negatively affected, making reinforcement learning algorithms more prone to getting stuck in local optima, and the trained control policy is difficult to achieve optimal results.

[0096] It should be noted that the above-mentioned information regarding the relevant technology is merely information known only to the inventor and does not represent that the above information had entered the public domain before the date of this application, nor does it represent that it can be considered prior art in this disclosure.

[0097] To avoid the aforementioned technical problems, this disclosure provides a technical concept developed through inventive effort: the system determines that training (or learning) is divided into different stages, and different methods are used to update individuals in the population for different stages, so as to avoid falling into local optima too early, or to provide more resources to obtain the best control strategy. On this basis, the system can also provide data sharing functions, such as the system replay cache storing training data, so as to improve effectiveness by sharing the data in the replay cache.

[0098] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this disclosure.

[0099] Based on the above technical concept, this disclosure provides a method for determining the control strategy of a robot.

[0100] Please see Figure 1 , Figure 1 This is a schematic diagram of a method for determining the control strategy of a robot according to an embodiment of the present disclosure, as shown below. Figure 1 As shown, the method includes:

[0101] S101: Receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information and initialization population. The training time step information includes exploration time step information of the exploration phase and utilization time step information of the utilization phase. The initialization population includes multiple individuals.

[0102] For example, the execution subject in this embodiment can be a robot control strategy determination device (hereinafter referred to as the determination device). The determination device can be a server, a terminal device, a processor, a chip, etc., which will not be listed here.

[0103] For example, if the device is determined to be a server, then the device can be an independent server or a server cluster; it can be a cloud server (such as a server deployed on a cloud platform) or a local server, and this embodiment does not limit it.

[0104] This step can be understood as an initialization step, which initializes the training of the robot's control tasks.

[0105] A control task can be understood as the objective of controlling a robot, such as the control system controlling the robot to move forward, etc.

[0106] Training time step information can be understood as the number of training steps. For example, a robot performing a corresponding operation based on the acquired information is considered one step. Furthermore, as training continues, training time step information can include exploration time step information from earlier training and utilization time step information from later training. In other words, the training process first goes through the exploration time step training process and then goes through the utilization time step information.

[0107] The individuals included in the initial population are called initial individuals, such as the initial policy network.

[0108] It is worth noting that this embodiment does not limit the initialization information, such as the exploration time step information, the utilization time step information, and the number of individuals in the initial population. The specific information can be determined by the determining device based on requirements, historical records, and experiments.

[0109] S102: Train the initial population until the training time step information is greater than the training time step information, and use the policy network of the best individual in the target population with greater training time step information as the robot's control policy. The i-th training iteration includes:

[0110] Obtain the stage information of the current training session, and determine the first individual to be evaluated in the population of the (i-1)th training session based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)th training session. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)th training session. i is an integer greater than 1.

[0111] The first individual to be evaluated was evaluated multiple times to obtain the first evaluation result.

[0112] The individuals in the population at the (i-1)th time are evaluated once to obtain the second evaluation result.

[0113] The population for the (i-1)th evaluation is updated based on the first and second evaluation results to obtain the population for the ith evaluation.

[0114] For example, when i equals 1, which means the device is being trained for the first time, the population obtained in the (i-1)th training is the initial population; when i is greater than 1, which means the device is being trained for the second or subsequent training sessions, the population obtained in the (i-1)th training is the population obtained in the previous training session.

[0115] The (i-1)th training iteration can be understood as:

[0116] During each training session, the device first obtains the time step information for that training session and determines whether the time step information belongs to the exploration time step information or the utilization time step information. If the time step information belongs to the exploration time step information, the training session is determined to be in the exploration phase; if the time step information belongs to the utilization time step information, the training session is determined to be in the utilization phase.

[0117] Then, if the training is in the exploration phase, the determining device will identify the improved individual in the population in the (i-1)th training as the first individual to be evaluated. If the training is in the utilization phase, the determining device will identify the best individual in the population in the (i-1)th training as the first individual to be evaluated.

[0118] In this context, an improved individual can be understood as one determined based on the reward information from the previous training iteration. For example, the determining device identifies an individual that has improved based on the reward information, meaning an individual whose score, as represented by the reward information, has increased. If there are multiple individuals with increased scores, the determining device can select the most recent one as the improved individual. Correspondingly, the optimal individual is the one with the highest score represented by the reward information.

[0119] Next, the device first evaluates the first individual to be evaluated multiple times. Similarly, in this embodiment, the number of evaluations is not limited, such as up to 5 times, to obtain the evaluation result corresponding to each evaluation (i.e., the first evaluation result). Then, each individual in the population in the (i-1)th evaluation is evaluated once to obtain the evaluation result corresponding to each individual (i.e., the second evaluation result).

[0120] It is worth noting that during the exploration phase, the deterministic device encourages exploration by giving progressive individuals, rather than the best individuals, more opportunities to interact with the environment, which can prevent individuals from getting trapped in local optima too early in their training. In the utilization phase, the deterministic device encourages the best individuals to learn to achieve the best final performance by giving them more resources.

[0121] Finally, the determining device updates the individuals in the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the updated individuals, that is, to obtain the population including the updated individuals (i.e., the population for the i-th time).

[0122] To facilitate the reader's understanding of this disclosure, the following is combined with Figure 2 The method for determining the control strategy of the robot disclosed herein is described in more detail. For example... Figure 2 As shown, the method includes:

[0123] S201: Receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information, initial population, environment model, and playback buffer. The training time step information includes exploration time step information in the exploration phase and utilization time step information in the utilization phase. The initial population includes multiple individuals, and each individual includes a policy network and a value network.

[0124] It should be understood that, to avoid tedious descriptions, the same technical features as those in the above embodiments will not be repeated in this embodiment. For example, the execution subject and initialization information of this embodiment will not be listed here.

[0125] S202: Train the initial population until the training time step information is greater than the training time step information, and use the policy network of the best individual in the target population with greater training time step information as the robot's control policy. The i-th training iteration includes:

[0126] Obtain the stage information of the current training session, and determine the first individual to be evaluated in the population of the (i-1)th training session based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)th training session. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)th training session. i is an integer greater than 1.

[0127] The first individual to be evaluated was evaluated multiple times to obtain the first evaluation result.

[0128] The individuals in the population at the (i-1)th time are evaluated once to obtain the second evaluation result.

[0129] Store the first and second evaluation results in the replay cache.

[0130] The population for the (i-1)th time is updated based on the first and second evaluation results in the replay cache to obtain the population for the i-th time.

[0131] In some embodiments, the determining device performs multiple evaluations on the first individual to be evaluated to obtain a first evaluation result, including the following steps:

[0132] The first step is to determine the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated.

[0133] The second step is to obtain the i-th reward information determined by the environmental model based on the information of the i-th action performed by the first individual to be evaluated.

[0134] The third step: Obtain the (i+1)th state information observed after the first individual to be evaluated performs the i-th action.

[0135] The first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information.

[0136] In this process, the determining device evaluates the first individual to be evaluated once, which is equivalent to the first individual to be evaluated completing a full interaction process with the environmental model. This process begins with the agent observing the environment and reaching a starting state, and ends with observing a ending state. For example:

[0137] The first step can be understood as follows: the first individual to be evaluated observes the state information (i.e., the i-th state information), which is the state information that the robot can receive, such as the velocity, angular velocity, and position coordinates of the robot's various joints. Correspondingly, the determining device can obtain this state information.

[0138] The second step can be understood as follows: Based on the state information, the policy network of the first individual to be evaluated can control the first object to be evaluated to perform an action, such as the acceleration and turning angle of the robot's various joints. After the first individual to be evaluated completes the action, the environment model will provide a score (i.e., reward information). Correspondingly, the determining device can obtain this reward information.

[0139] The third step can be understood as follows: the first individual to be evaluated can observe the next state information (i.e., the (i+1)th state information), and so on until the final state is observed. Accordingly, the determining device can obtain this state information.

[0140] In this embodiment, the determining device determines the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information as the first evaluation result, so that the content of the first evaluation result is relatively rich, thereby improving the reliability of subsequent population updates based on the first evaluation result.

[0141] Accordingly, after the determining device evaluates each of the first individuals to be evaluated, the corresponding evaluation results can be stored in the playback cache.

[0142] In this embodiment, the replay cache is equivalent to a public storage space for storing the evaluation results generated during the training process. Through this public replay cache, the determining device can enable all individuals in the population to enjoy their own experiences (the evaluation results are equivalent to the training experience data), thereby accelerating the learning of individuals in the population.

[0143] It is worth noting that the principle by which the determining device evaluates an individual in the population for the (i-1)th time is the same as the principle by which the determining device evaluates the first individual to be evaluated multiple times, and will not be elaborated here.

[0144] In some embodiments, the determining device updates the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the population for the i-th time, which may include the following steps:

[0145] First step: Determine the second individual to be evaluated in the population of the (i-1)th time based on the stage information. If the stage information is the exploration stage, the second individual to be evaluated is each individual in the population of the (i-1)th time. If the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population of the (i-1)th time.

[0146] Similarly, in this embodiment, the determining device determines different individuals as the second individuals to be evaluated based on different stage information.

[0147] The second step is to update the second individual to be evaluated based on the first and second evaluation results, thus obtaining the population at the i-th time.

[0148] In other words, when the device updates the population for the (i-1)th time, it first determines whether the current update is in the exploration or utilization phase based on the current training phase information. Then, it identifies different individuals as second individuals to be evaluated for different phase information, so as to update the second individuals to be evaluated and obtain the updated second individuals to be evaluated, thereby obtaining a population that includes the updated second individuals to be evaluated.

[0149] Similarly, in this embodiment, the determination device updates different individuals based on different stage information, which can prevent the individual's training from getting stuck in a local optimum too early, and can also encourage it to learn to a best final performance by utilizing more resources.

[0150] In some embodiments, the second step may include the following sub-steps:

[0151] First sub-step: Based on the first and second evaluation results and using a reinforcement learning algorithm, update the policy network of the second individual to be evaluated to obtain the population after the (i-1)th update.

[0152] For example, when the first evaluation result and the second evaluation result are stored in the replay cache, the determining device can obtain the first evaluation result and the second evaluation result from the replay cache, and use a reinforcement learning algorithm to update the first evaluation result and the second evaluation result, thereby obtaining the population after the (i-1)th update.

[0153] In some embodiments, the reinforcement learning algorithm can be a deep deterministic policy gradient algorithm, and correspondingly, the first sub-step may include the following refinement steps:

[0154] First refinement step: Based on the first evaluation result and the second evaluation result, calculate the loss information of the t-th value network of the second individual to be evaluated, where t < i-1.

[0155] For example, the loss information (loss) L of the t-th value network Q of the second individual to be evaluated. Q This can be expressed by Equation 1:

[0156]

[0157] Where N is the batch size of the sample (i.e. the number of individuals), Q′ is the target value network of the tth time, π′ is the target policy network of the tth time, r is the reward information of the tth time, γ is a value between 0 and 1, s′ is the state information of the (t+1)th time, s is the state information of the tth time, and a is the action information of the tth time.

[0158] Based on the above analysis, it can be seen that the playback cache stores the evaluation results of each determination device evaluation. Therefore, the t-th evaluation can be randomly selected by the determination device from the playback cache, or it can be selected by the determination device based on requirements, historical records, and experiments. This embodiment does not limit the selection.

[0159] The second refinement step is to update the policy network of the second individual to be evaluated based on the loss information of the value network at the tth time, so as to obtain the population after the (i-1)th update.

[0160] For example, after the determining device obtains the loss information of the t-th value network, it can perform backpropagation on the t-th value network based on the loss information to calculate the gradient and update the t-th value network. Correspondingly, after obtaining the t-th value network, the determining device calculates the loss information of the t-th policy network based on the t-th value network, and performs backpropagation on the t-th policy network based on the loss information to calculate the gradient and update the t-th policy network.

[0161] In some embodiments, the loss information L of the policy network at the t-th iteration π This can be expressed by Equation 2, Equation 2:

[0162]

[0163] in, Let be the gradient used to update the value network at the t-th iteration.

[0164] In this embodiment, each entity includes a policy network and a value network. When the device updates, it can update the policy network of each entity based on the loss information of the entity's value network. This avoids updating policy networks based on a common value network, thereby achieving targeted updates and improving the accuracy of the updates.

[0165] The second sub-step: Based on the first and second evaluation results and using the particle swarm optimization algorithm, update the individuals in the population after the (i-1)th update to obtain the population after the i-th update.

[0166] In other words, the update can be a two-dimensional update: one dimension is the update based on reinforcement learning algorithm by the deterministic device, and the other dimension is the update based on particle swarm optimization algorithm by the deterministic device. The deterministic device obtains the population for the i-th time through the two-dimensional update, which can improve the accuracy and reliability of the update.

[0167] In some embodiments, the second sub-step may include the following refined steps:

[0168] First refinement step: Based on the first evaluation result and the second evaluation result, update the individual best position and the global best position of the population after the (i-1)th update, where the individual best position is the parameter of the best policy network of each individual in the population after the (i-1)th update, and the global best position is the parameter of the best policy network of all individuals in the population after the (i-1)th update.

[0169] For example, the determining device can update the parameters of the optimal policy network (i.e., the individual's best position pBest) of each individual in the population after the (i-1)th update based on the reward information in the first evaluation result and the reward information in the second evaluation result, and update the parameters of the optimal policy network (i.e., the global best position gBest) of the best individual among all individuals in the population after the (i-1)th update.

[0170] The second refinement step is to determine the movement information of individuals in the population after the (i-1)th update based on the individual's best position and the global best position.

[0171] In some embodiments, the movement information can be movement speed, and for an individual m in the population after the (i-1)th update, the determining device can calculate the movement information V based on Equation 3. m Formula 3:

[0172] V m =wV m +c1r1(pBest m -X m )+c2r2(gBest-X m )

[0173] Among them, X m Let m be the current policy network of individual m, w, c1, and c2 be preset hyperparameters (which can be determined by the determining device based on demand, historical records, and experiments, etc., and are not limited in this embodiment; for example, w is 0.5, and c1 and c2 are 2 respectively), and r2 is a random number between 0 and 1.

[0174] The third refinement step is to update the policy network parameters of individuals in the population after the (i-1)th update based on the movement information, and obtain the population after the i-th update.

[0175] Based on the above example, the determination device can update the policy network parameters of individuals in the population after the (i-1)th update based on Equation 4, Equation 4:

[0176] X i ′=X i +V i

[0177] Among them, X i ′ represents the strategy network parameters calculated using Equation 4.

[0178] In this embodiment, the policy network parameters are updated by combining the replay cache, the individual's best position, and the global best position to obtain an updated policy network. This allows each individual to achieve the same level as a single reinforcement learning individual with significantly fewer updates.

[0179] S203: Obtain a control request initiated for the control task.

[0180] S204: Control the robot to perform operations corresponding to control requests based on the control strategy.

[0181] S201-S202 can be understood as the training phase, in which the device determines the strategy network (i.e., control strategy) for controlling the robot through the training phase. S203-S204 can be understood as the application phase, in which the device uses the control strategy to control the robot to perform corresponding operations.

[0182] Based on the above analysis, it can be seen that the determination device can obtain a control strategy with relatively high accuracy based on the operation during the training phase. Therefore, in the application phase, the determination device based on the control strategy can achieve effective and accurate control of the robot.

[0183] It should be understood that the above examples are only used to illustrate possible implementations of the robot control strategy determination method of the present disclosure embodiments, and should not be construed as limiting the robot control strategy determination method of the present disclosure embodiments.

[0184] Based on the above technical concept, this disclosure also provides a device for determining the control strategy of a robot.

[0185] Please see Figure 3 , Figure 3 This is a schematic diagram of a device for determining the control strategy of a robot according to an embodiment of this disclosure. Figure 3 As shown, the device 300 includes:

[0186] The receiving unit 301 is used to receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information and initialization population. The training time step information includes exploration time step information of the exploration phase and utilization time step information of the utilization phase. The initialization population includes multiple individuals.

[0187] Training unit 302 is used to train the initial population until the training time step information is greater than the training time step information, and to use the policy network of the best individual in the target population with greater training time step information as the control policy of the robot; wherein, the i-th training includes:

[0188] Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1.

[0189] The first individual to be evaluated is evaluated multiple times to obtain the first evaluation result;

[0190] An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result;

[0191] The population for the (i-1)th evaluation is updated based on the first evaluation result and the second evaluation result to obtain the population for the i-th evaluation.

[0192] Please see Figure 4 , Figure 4 This is a schematic diagram of a device for determining the control strategy of a robot according to another embodiment of this disclosure. Figure 4 As shown, the device 400 includes:

[0193] The receiving unit 401 is used to receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information and initialization population. The training time step information includes exploration time step information of the exploration phase and utilization time step information of the utilization phase. The initialization population includes multiple individuals.

[0194] Training unit 402 is used to train the initial population until the training time step information is greater than the training time step information, and to use the policy network of the best individual in the target population with greater training time step information as the control policy of the robot; wherein, the i-th training includes:

[0195] Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1.

[0196] The first individual to be evaluated is evaluated multiple times to obtain the first evaluation result;

[0197] An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result;

[0198] The population for the (i-1)th evaluation is updated based on the first evaluation result and the second evaluation result to obtain the population for the i-th evaluation.

[0199] In some embodiments, the initialization information further includes an environment model; each individual includes a policy network; the training unit 402 is used to evaluate the first individual to be evaluated multiple times, and when obtaining the first evaluation result, it is specifically used for:

[0200] Determine the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated;

[0201] Obtain the i-th reward information determined by the environmental model based on the information of the i-th action performed on the first individual to be evaluated;

[0202] Obtain the (i+1)th state information observed after the first individual to be evaluated performs the i-th action information;

[0203] The first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information.

[0204] In some embodiments, the training unit 402 is used to update the population for the (i-1)th time based on the first evaluation result and the second evaluation result, and when obtaining the population for the i-th time, it is specifically used for:

[0205] The second individual to be evaluated in the population of the (i-1)th time is determined based on the stage information. If the stage information is the exploration stage, the second individual to be evaluated is each individual in the population of the (i-1)th time. If the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population of the (i-1)th time.

[0206] The second individual to be evaluated is updated based on the first evaluation result and the second evaluation result to obtain the population of the i-th time.

[0207] In some embodiments, when the training unit 402 updates the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population for the i-th time, it is specifically used for:

[0208] Based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, the policy network of the second individual to be evaluated is updated to obtain the population after the (i-1)th update.

[0209] Based on the first evaluation result and the second evaluation result, and using the particle swarm optimization algorithm, the individuals in the population after the (i-1)th update are updated to obtain the population after the i-th update.

[0210] In some embodiments, each individual further includes a value network; the training unit 402 is used to update the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result, and by employing a reinforcement learning algorithm, to obtain the population after the (i-1)th update, specifically for:

[0211] Based on the first evaluation result and the second evaluation result, calculate the loss information of the value network of the second individual to be evaluated in the tth time, where t < i-1;

[0212] The second individual to be evaluated is updated in the tth time based on the loss information of the tth time value network to obtain the population after the (i-1)th update.

[0213] In some embodiments, when the training unit 402 updates the individuals in the population after the (i-1)th update based on the first evaluation result and the second evaluation result, and using a particle swarm optimization algorithm, to obtain the population for the i-th update, it is specifically used for:

[0214] Based on the first evaluation result and the second evaluation result, update the individual optimal position and the global optimal position of the population after the (i-1)th update, wherein the individual optimal position is the parameter of the optimal policy network of each individual in the population after the (i-1)th update, and the global optimal position is the parameter of the optimal policy network of all individuals in the population after the (i-1)th update.

[0215] Based on the individual's best position and the global best position, determine the movement information of individuals in the population after the (i-1)th update;

[0216] The policy network parameters of individuals in the population after the (i-1)th update are updated based on the movement information to obtain the population at the i-th update.

[0217] In some embodiments, the initialization information further includes a replay cache; the first evaluation result and the second evaluation result are stored in the replay cache; and

[0218] Training unit 402 is used to update the population for the (i-1)th time based on the first evaluation result and the second evaluation result. Specifically, when obtaining the population for the i-th time, it is used for:

[0219] The first evaluation result and the second evaluation result are obtained from the replay cache, and the population for the (i-1)th time is updated according to the first evaluation result and the second evaluation result to obtain the population for the i-th time.

[0220] The obtaining unit 403 is used to obtain the control request initiated for the control task;

[0221] Control unit 404 is used to control the robot to perform the operation corresponding to the control request based on the control strategy.

[0222] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0223] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.

[0224] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0225] like Figure 5 As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0226] Multiple components in device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0227] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the method for determining the control strategy of a robot. For example, in some embodiments, the method for determining the control strategy of a robot can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the method for determining the control strategy of a robot described above can be performed. Alternatively, in other embodiments, the computing unit 501 may be configured by any other suitable means (e.g., by means of firmware) to execute a method for determining the robot's control strategy.

[0228] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0229] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0230] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0231] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0232] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0233] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0234] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0235] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0236] These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0237] These processors can execute instructions that can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0238] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.

Claims

1. A method for determining the control strategy of a robot, characterized in that, The method includes: The robot receives user input of initialization information for its control task. The initialization information includes training time step information, an initial population, and an environment model. The training time step information includes exploration time step information for the exploration phase and utilization time step information for the utilization phase. The initial population includes multiple individuals, and each individual includes a policy network. The initial population is trained until the training time step information is greater than the training time step information, and the policy network of the best individual in the target population with greater training time step information is used as the control policy of the robot; wherein, the i-th training includes: Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1. The first individual to be evaluated is evaluated multiple times to obtain a first evaluation result, including: determining the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated; obtaining the i-th reward information determined by the environment model for the first individual to be evaluated to perform the i-th action information; obtaining the (i+1)-th state information observed by the first individual to be evaluated after performing the i-th action information; wherein, the first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information, the state information including the velocity and angular velocity of each joint of the robot and the position coordinates of the robot itself, and the action information including the acceleration and turning angle of each joint of the robot; An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result; The process of updating the population in the (i-1)th iteration based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration includes: determining a second individual to be evaluated in the population in the (i-1)th iteration based on the stage information, wherein if the stage information is the exploration stage, the second individual to be evaluated is each individual in the population in the (i-1)th iteration; if the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population in the (i-1)th iteration; updating the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration, wherein updating the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration includes: updating the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result and using a reinforcement learning algorithm to obtain the population after the (i-1)th iteration update; updating the individuals in the population after the (i-1)th iteration update based on the first evaluation result and the second evaluation result and using a particle swarm optimization algorithm to obtain the population in the (i-1)th iteration.

2. The method according to claim 1, characterized in that, Each individual also includes a value network; the process of updating the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, to obtain the population after the (i-1)th update, includes: Based on the first evaluation result and the second evaluation result, calculate the loss information of the value network of the second individual to be evaluated in the tth time, where t < i-1; The second individual to be evaluated is updated in the tth time based on the loss information of the tth time value network to obtain the population after the (i-1)th update.

3. The method according to claim 2, characterized in that, The step of updating the individuals in the population after the (i-1)th update based on the first evaluation result and the second evaluation result, and using the particle swarm optimization algorithm, to obtain the population for the i-th update, includes: Based on the first evaluation result and the second evaluation result, update the individual optimal position and the global optimal position of the population after the (i-1)th update, wherein the individual optimal position is the parameter of the optimal policy network of each individual in the population after the (i-1)th update, and the global optimal position is the parameter of the optimal policy network of all individuals in the population after the (i-1)th update. Based on the individual's best position and the global best position, determine the movement information of individuals in the population after the (i-1)th update; The policy network parameters of individuals in the population after the (i-1)th update are updated based on the movement information to obtain the population at the i-th update.

4. The method according to claim 1, characterized in that, The initialization information also includes a replay cache; the first evaluation result and the second evaluation result are stored in the replay cache; as well as The step of updating the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the population for the i-th time includes: The first evaluation result and the second evaluation result are obtained from the replay cache, and the population for the (i-1)th time is updated according to the first evaluation result and the second evaluation result to obtain the population for the i-th time.

5. The method according to claim 1, characterized in that, The method further includes: Obtain the control request initiated for the control task; Based on the control strategy, the robot is controlled to perform the operation corresponding to the control request.

6. A device for determining the control strategy of a robot, characterized in that, include: The receiving unit is used to receive the initialization information of the robot's control task input by the user. The initialization information includes training time step information, initial population and environment model. The training time step information includes exploration time step information of the exploration phase and utilization time step information of the utilization phase. The initial population includes multiple individuals, and each individual includes a policy network. A training unit is used to train the initial population until the training time step information is greater than the training time step information, and to use the policy network of the best individual in the target population with greater training time step information as the control policy of the robot; wherein, the i-th training includes: Obtain the stage information of the i-th training, and determine the first individual to be evaluated in the population of the (i-1)-th training based on the stage information. If the stage information is the exploration stage, the first individual to be evaluated is the improved individual in the population of the (i-1)-th training. If the stage information is the utilization stage, the first individual to be evaluated is the best individual in the population of the (i-1)-th training. i is an integer greater than 1. The first individual to be evaluated is evaluated multiple times to obtain a first evaluation result, including: determining the i-th state information observed by the first individual to be evaluated, and the i-th action information made by the first individual to be evaluated based on the policy network of the first individual to be evaluated; obtaining the i-th reward information determined by the environment model for the first individual to be evaluated to perform the i-th action information; obtaining the (i+1)-th state information observed by the first individual to be evaluated after performing the i-th action information; wherein, the first evaluation result includes the i-th state information, the i-th action information, the i-th reward information, and the (i+1)-th state information, the state information including the velocity and angular velocity of each joint of the robot and the position coordinates of the robot itself, and the action information including the acceleration and turning angle of each joint of the robot; An evaluation is performed on the individuals in the population for the (i-1)th time to obtain a second evaluation result; The process of updating the population in the (i-1)th iteration based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration includes: determining a second individual to be evaluated in the population in the (i-1)th iteration based on the stage information, wherein if the stage information is the exploration stage, the second individual to be evaluated is each individual in the population in the (i-1)th iteration; if the stage information is the utilization stage, the second individual to be evaluated is the best individual in the population in the (i-1)th iteration; updating the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration, wherein updating the second individual to be evaluated based on the first evaluation result and the second evaluation result to obtain the population in the (i-1)th iteration includes: updating the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result and using a reinforcement learning algorithm to obtain the population after the (i-1)th iteration update; updating the individuals in the population after the (i-1)th iteration update based on the first evaluation result and the second evaluation result and using a particle swarm optimization algorithm to obtain the population in the (i-1)th iteration.

7. The apparatus according to claim 6, characterized in that, Each individual also includes a value network; when the training unit updates the policy network of the second individual to be evaluated based on the first evaluation result and the second evaluation result, and using a reinforcement learning algorithm, to obtain the population after the (i-1)th update, it includes: Based on the first evaluation result and the second evaluation result, calculate the loss information of the value network of the second individual to be evaluated in the tth time, where t < i-1; The second individual to be evaluated is updated in the tth time based on the loss information of the tth time value network to obtain the population after the (i-1)th update.

8. The apparatus according to claim 6, characterized in that, The initialization information also includes a replay cache; the first evaluation result and the second evaluation result are stored in the replay cache; as well as When the training unit updates the population for the (i-1)th time based on the first evaluation result and the second evaluation result to obtain the population for the i-th time, it includes: The first evaluation result and the second evaluation result are obtained from the replay cache, and the population for the (i-1)th time is updated according to the first evaluation result and the second evaluation result to obtain the population for the i-th time.

9. The apparatus according to claim 6, characterized in that, The device further includes: A unit that obtains control requests initiated for the control task; A unit that controls the robot to perform operations corresponding to the control request based on the control strategy.

10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Vehicle queue tracking control method and device and computer readable storage medium

    CN113140104A

  • Reinforced learning multi-target trajectory planning method for industrial robot

    CN116661453A