Complex skill active learning, enhancement and virtual-real migration method in heterogeneous scene
By adopting active learning of complex skills in heterogeneous scenarios, enhancement methods and virtual-real transfer technology in deep reinforcement learning, the problem of low efficiency and stability of deep reinforcement learning in the process of training agents is solved, and the transition from simulation environment to real environment is realized. Skill transfer improves the accuracy and robustness of robot operations.
Patent Information
- Application Number
- CN202410801467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the process of training the agent, deep reinforcement learning needs to learn based on the trial and error exploration mechanism in the interactive environment, making it difficult for the agent to efficiently train to obtain the optimal or suboptimal strategy, and the cost of data collection in the real environment is high, so it is difficult to implement directly. Strategy training is often not feasible.
A method for active learning and enhancement of complex skills in heterogeneous scenarios is proposed. Through the alternate training of multiple actuators and discriminators, combined with knowledge distillation technology, the performance and stability of skill learning can be improved without teacher models or teaching data. And transfer operational skills from the simulation environment to the real environment through the virtual-real migration method.
It improves the efficiency and robustness of skill learning, enhances the application potential in complex environments, reduces the error between virtual and real space domains, and improves the operating accuracy and robustness of robots in real assembly environments.
Smart Images

Figure CN118690827A
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep reinforcement learning, and in particular to a method for active learning, enhancement, and virtual-real transfer of complex skills in heterogeneous scenarios. Background Art
[0002] At present, skill learning methods based on reinforcement learning, especially deep reinforcement learning, have achieved great success in the field of robot-related applications. However, since reinforcement learning requires learning based on a trial-and-error exploration mechanism in an interactive environment during the training of intelligent agents, it is difficult for intelligent agents to be trained efficiently to obtain optimal or suboptimal strategies, which poses a huge challenge to the efficiency and stability of skill strategy training.
[0003] As reinforcement learning, imitation learning and other methods are gradually applied to the 3C assembly field, skill learning usually requires a large amount of training data. The cost of data collection in the real environment is high, and direct implementation of strategy training is usually not feasible. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.
[0005] To this end, the first purpose of this application is to propose a method for active learning and enhancement of complex skills in heterogeneous scenarios. In the absence of a teacher model or teaching data, the mechanism of human mutual learning is used to enhance the performance and stability of skill learning in the field of skill learning.
[0006] The second purpose of this application is to propose a virtual-reality migration method to achieve the virtual-reality migration of operating skills from a simulation environment to a real assembly environment.
[0007] To achieve the above objectives, the first embodiment of the present application proposes a method for active learning and enhancement of complex skills in heterogeneous scenarios, including:
[0008] Initialize the parameters of multiple actuators and multiple discriminators, and collect state transition pair data based on the interaction between each actuator and the environment;
[0009] Storing the state transfer pair data in a shared data experience replay pool, and sampling a small batch training sample data set from the data experience replay pool;
[0010] By using the training sample data set, performing alternating training of the discriminator and the actuator in a skill strategy learning process;
[0011] After the skill strategy training is completed, the best performing executor is selected to execute in the environment.
[0012] Optionally, the state transition pair data {(st ,a t ,r t ,s t+1 )},include:
[0013] At each interaction time step t, each actuator π θi Receiving status t And the output corresponds to the state s t The action is normally distributed, where i represents the i-th policy function and θ represents the parameter of the policy function;
[0014] Sample action a from the normal distribution t : t ~π θi (·| t ), and controls the actuator π θi Execute in an interactive environment t ;
[0015] After executing action a t After that, the actuator π θi The state is transferred to the new state s t+1 and receive the reward r t .
[0016] Optionally, also include:
[0017] All executors share the data experience replay pool The state transition data obtained by the interaction between different actuators and the environment are stored in the same data experience replay pool middle;
[0018] When the data experience replay pool When the maximum capacity is reached, the first-in-first-out principle is adopted to replace the earliest collected interactive collection state transfer pair data with the latest collected interactive collection state transfer pair data.
[0019] Optionally, performing alternating training of the discriminator and the executor during the skill strategy learning process includes:
[0020] Each discriminator The training of starts with calculating the target value y, and all discriminators are optimized based on minimizing the mean square error;
[0021] Each actuator π θi The training of starts by calculating the distillation loss and optimizing the parameters of each executor using gradient ascent.
[0022] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a virtual-real migration method, including:
[0023] Building a digital twin environment based on a real 3C assembly scenario, and collecting multimodal teaching data in the digital twin environment;
[0024] Establishing a skill knowledge base based on the skill analysis of the multimodal teaching data, and generating a basic strategy sequence of the operation task according to the skill instruction library;
[0025] Residual reinforcement learning and curriculum learning are used to learn each primitive strategy sequence, and the migration of skill strategies from the digital twin environment to the real environment is achieved through the encoder-decoder model. The skill strategy is obtained through the active learning and enhancement method of complex skills in heterogeneous scenarios described in any one of the first aspects above.
[0026] Optionally, building a digital twin environment based on a real 3C assembly scene and collecting multimodal teaching data in the digital twin environment include:
[0027] Building the twin environment that is equivalent to and consistent with the real 3C assembly scene based on the Unity simulation engine;
[0028] The multimodal teaching data is collected in the digital twin environment based on a virtual reality VR device.
[0029] Optionally, the skill parsing process of the multimodal teaching data includes:
[0030] The collected multimodal teaching data is accurately analyzed through a time-space-event correlation model to obtain RGB-D images and three-dimensional force data;
[0031] The assembly action sequence of the multimodal teaching data is identified and segmented using a time-space-contact feature segmentation system.
[0032] Optionally, the adopting residual reinforcement learning and curriculum learning to learn each primitive strategy sequence includes:
[0033] At each time step t, for a given state-action pair, the objective function optimization follows the maximization of the expected cumulative reward obtained when the skill policy is executed, and the action is the instruction output by the skill policy to control the movement of the robot.
[0034] Optionally, the implementation of the migration of the skill strategy from the digital twin environment to the real environment through the encoder-decoder model includes:
[0035] The encoder is used as a feature extractor for image input to achieve the migration of the skill strategy from the digital twin environment to the assembly scenario of the real environment.
[0036] Optionally, also include:
[0037] A multi-level knowledge structure is used to represent the basic operations of the robot. The dynamic layer stores the action sequences derived from human action demonstrations, and the static layer stores the relatively fixed basic knowledge in the task scenario.
[0038] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0039] In the process of active learning and enhancement of complex skills in heterogeneous scenarios, by combining reinforcement learning and knowledge distillation technology, not only the efficiency of skill learning is improved, but also the robustness and generalization ability of the strategy are enhanced, providing a new perspective and method for solving the problem of skill learning in complex environments; and, the 3C assembly operation skill learning method assisted by the digital twin environment not only improves the efficiency and accuracy of skill learning, but also greatly enhances the application potential of skills in complex and uncertain environments, and realizes the virtual-real migration of operation skills from the simulation environment to the real assembly environment. Then, in the real assembly environment, the robot can complete the operation tasks in the virtual environment, reducing the error between the virtual and real space domains. For typical and common tasks such as picking and placing, plugging in and out, etc. in the assembly environment, the robot's completion accuracy is improved, and it is robust.
[0040] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0042] Figure 1 It is a flow chart of a method for active learning and enhancement of complex skills in heterogeneous scenarios according to an embodiment of the present application;
[0043] Figure 2 It is a training principle diagram of a complex skill active learning and enhancement method in a heterogeneous scenario according to an embodiment of the present application;
[0044] Figure 3 is a flow chart of a virtual-real migration method according to an embodiment of the present application;
[0045] Figure 4 is a schematic diagram of constructing a multimodal digital twin environment according to an embodiment of the present application;
[0046] Figure 5 is a diagram of a motion recognition framework based on time-space-touch-sound features according to an embodiment of the present application;
[0047] Figure 6It is a schematic diagram of a primitive strategy learning method according to an embodiment of the present application. DETAILED DESCRIPTION
[0048] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0049] The following describes a method for active learning, enhancement, and virtual-to-real migration of complex skills in a heterogeneous scenario in an embodiment of the present application with reference to the accompanying drawings.
[0050] Figure 1 is a flow chart of a complex skill active learning and enhancement method in a heterogeneous scenario according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0051] Step 101, initialize the parameters of multiple actuators and multiple discriminators, and collect state transition pair data based on the interaction between each actuator and the environment.
[0052] In the field of robot operation skill learning, there is usually a lack of powerful teacher models or a large amount of high-quality demonstration data. Therefore, methods such as imitation learning or policy distillation are usually subject to certain application restrictions in the field of robot operation skill learning. In order to solve the above shortcomings, the purpose of this embodiment is to enhance the performance and stability of skill learning by borrowing the mechanism of human mutual learning in the field of skill learning without a teacher model or teaching data.
[0053] In an embodiment of the present application, a method for active learning and enhancement of complex skills in heterogeneous scenarios is essentially a skill enhancement learning algorithm based on knowledge distillation. The algorithm includes multiple executors and multiple discriminators, and establishes a mutual learning mechanism based on knowledge distillation between multiple executors. In order to introduce diversity in strategy training, the parameters of each executor and discriminator are randomly initialized to different values.
[0054] First, the embodiment of the present application is based on each actuator π θi Interaction with the environment collects state transition data {(s t ,a t ,r t ,s t+1 )}, i represents the i-th policy function, and θ represents the parameters of the policy function.
[0055] Specifically, the process of collecting state transition pair data is as follows: at each interaction time step t, each actuator π θi Receiving status tAnd the output corresponds to the state s t The action of is normally distributed; sample action a from the normal distribution t : t ~π θi (·| t ), and control the actuator π θi Execute in an interactive environment t ; After executing action a t After that, the actuator π θi The state is transferred to the new state s t+1 and receive the reward r t .
[0056] Step 102, store the state transfer pair data in a shared data experience replay pool, and sample a small batch training sample data set from the data experience replay pool.
[0057] In the embodiment of the present application, after obtaining the state transfer pair data {(s t ,a t ,r t ,s t+1 )}, and then store it in the shared data experience playback pool.
[0058] It should be noted that all executors share the data experience playback pool The state transition data obtained by the interaction between different actuators and the environment are stored in the same data experience replay pool middle.
[0059] In addition, in one embodiment of the present application, the data experience playback pool The size is set to 1.0×105, when the data experience playback pool When the maximum capacity is reached, the first-in-first-out principle is adopted to replace the earliest collected interactive collection state transfer pair data with the latest collected interactive collection state transfer pair data.
[0060] Then, a small batch of training sample data sets are sampled from the initialized data experience replay pool and continuously updated. The data experience pool data recovery method mentioned above ensures the diversity of training data and improves the sample utilization efficiency of the skill enhancement learning algorithm based on knowledge distillation to a certain extent.
[0061] Step 103, performing alternating training of the discriminator and the actuator in the skill strategy learning process by training the sample data set.
[0062] In the present application embodiment, Figure 2 As shown, during the entire skill strategy learning process, the discriminator and the executor are trained alternately.
[0063] Specifically, each discriminator The training of starts with calculating the target value y, and all discriminators are optimized based on minimizing the mean square error; each actuator π θi The training of starts by calculating the distillation loss and optimizing the parameters of each executor using gradient ascent.
[0064] Step 104: After the skill strategy training is completed, select the best performing actuator to execute in the environment.
[0065] In the embodiment of the present application, after the skill strategy training is completed, the algorithm converges and the best performing executor is selected to execute in the environment.
[0066] Through the above algorithms, in the absence of a teacher model or teaching data, the mechanism of human mutual learning is borrowed in the field of skill learning to enhance the performance and stability of skill learning.
[0067] According to the first aspect of the present application, a skill enhancement learning algorithm based on knowledge distillation is used to improve the performance of skill learning and the stability of training. In order to facilitate the transfer of skills, the present application also proposes a virtual-to-real transfer method.
[0068] Figure 3 It is a flowchart of a virtual-real migration method according to an embodiment of the present application, including:
[0069] Step 201: construct a digital twin environment based on a real 3C assembly scene, and collect multimodal teaching data in the digital twin environment.
[0070] In order to conveniently collect the data required for training and verify the migration of training strategies from the simulation environment to the real 3C assembly scene, in the implementation of this application, Figure 4 As shown, a twin environment that is equivalent and consistent with the real 3C assembly scene is built based on the Unity simulation engine to simulate the real assembly scene, and in the constructed digital twin simulation environment, a perception model containing multimodal information such as vision, touch, and depth is established.
[0071] Then, based on the virtual reality VR device, the multimodal teaching data is collected in the digital twin environment.
[0072] Step 202: Establish a skill knowledge base based on the skill analysis of the multimodal teaching data, and generate a basic strategy sequence of the operation task according to the skill instruction library.
[0073] In one embodiment of the present application, the process of skill parsing of multimodal teaching data is as follows: Figure 5As shown, the collected multimodal teaching data is accurately analyzed through the time-space-event correlation model to obtain RGB-D images and three-dimensional force data; and the assembly action sequence of the multimodal teaching data is recognized and segmented using the time-space-contact feature segmentation system.
[0074] Accurate analysis of multimodal teaching data is achieved by performing feature extraction, contact force feature extraction and temporal motion segmentation on multimodal teaching data.
[0075] In step 203, residual reinforcement learning and curriculum learning are used to learn each primitive strategy sequence, and the migration of skill strategies from the digital twin environment to the real environment is achieved through the encoder-decoder model.
[0076] Based on the constructed skill knowledge base, the robot can infer the primitive strategy sequence for performing complex assembly tasks. However, in the real environment of 3C assembly scene, the execution of primitive strategy sequence to operate 3C parts will involve contact dynamics and friction, and will also be affected by factors such as inevitable random disturbances. In order to solve the above problems, this application proposes a new primitive strategy learning method, such as Figure 6 As shown in the figure, the domain randomization method and residual reinforcement learning are integrated into the primitive policy training for common 3C assembly scenarios.
[0077] Specifically, in order to improve the generalization performance of the strategy, residual reinforcement learning and curriculum learning are used to learn each primitive strategy sequence. At each time step t, for a given state-action pair, the objective function optimization follows the expected cumulative reward maximized when the skill strategy is executed. The action is the instruction output by the skill strategy to control the movement of the robot.
[0078] It should be noted that the skill strategy in the embodiment of the present disclosure is based on the following Figure 1 The figure shows an active learning and enhancement method for complex skills in a heterogeneous scenario.
[0079] In addition, a randomization method is used to realize the migration of the learned skill strategy from the digital twin environment to the real environment. An encoder-decoder model is used, and the encoder is used as a feature extractor for image input to facilitate the migration of skill strategies from the digital twin environment to the assembly scenario of the real environment.
[0080] In addition, in some embodiments of the present application, a multi-level knowledge structure is used to represent the basic operation of the robot, which can be divided into a static layer and a dynamic layer. These two knowledge representations can not only ensure the stability of the skill knowledge base structure, but also ensure the flexibility of the skill knowledge base.
[0081] As a possible implementation, the dynamic layer stores the action sequences derived from human action demonstrations, while the static layer mainly stores relatively fixed basic knowledge in the task scenario. The knowledge provided by the static and dynamic layers serves as semantic guidance for subsequent skill learning.
[0082] By adopting the above algorithm, the accuracy and robustness of the robot in skill learning in uncertain dynamic scenarios can be improved, and the multi-task transfer of operation skills in complex assembly scenarios can be completed.
[0083] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0084] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for active learning and enhancement of complex skills in heterogeneous scenarios, characterized in that: include: Initialize the parameters of multiple actuators and multiple discriminators, and collect state transition pair data based on the interaction between each actuator and the environment; Storing the state transfer pair data in a shared data experience replay pool, and sampling a small batch training sample data set from the data experience replay pool; By using the training sample data set, performing alternating training of the discriminator and the actuator in a skill strategy learning process; After the skill strategy training is completed, the best performing executor is selected to execute in the environment.
2. The method according to claim 1, characterized in that The state transition pair data {(s t ,a t ,r t ,s t+1 )},include: At each interaction time step t, each actuator π θi Receiving status t And the output corresponds to the state s t The action is normally distributed, where i represents the i-th policy function and θ represents the parameter of the policy function; Sample action a from the normal distribution t :a t ~π θi (·|s t ), and controls the actuator π θi Execute in an interactive environment t ; After executing action a t After that, the actuator π θi The state is transferred to the new state s t+1 and receive the reward r t .
3. The method according to claim 1, characterized in that Also includes: All executors share the data experience replay pool The state transition data obtained by the interaction between different actuators and the environment are stored in the same data experience replay pool middle; When the data experience replay pool When the maximum capacity is reached, the first-in-first-out principle is adopted to replace the earliest collected interactive collection state transfer pair data with the latest collected interactive collection state transfer pair data.
4. The method according to claim 1, characterized in that: The performing of alternating training of the discriminator and the actuator during the skill strategy learning process includes: Each discriminator The training of starts with calculating the target value y, and all discriminators are optimized based on minimizing the mean square error; Each actuator π θi The training of starts by calculating the distillation loss and optimizing the parameters of each executor using gradient ascent.
5. A virtual-real migration method, characterized in that: include: Building a digital twin environment based on a real 3C assembly scenario, and collecting multimodal teaching data in the digital twin environment; Establishing a skill knowledge base based on the skill analysis of the multimodal teaching data, and generating a basic strategy sequence of the operation task according to the skill instruction library; Residual reinforcement learning and curriculum learning are used to learn each primitive strategy sequence, and the migration of skill strategies from the digital twin environment to the real environment is achieved through the encoder-decoder model. The skill strategy is obtained through the active learning and enhancement method of complex skills in heterogeneous scenarios as described in any one of claims 1-6.
6. The method according to claim 5, characterized in that The digital twin environment is constructed based on the real 3C assembly scene, and multimodal teaching data is collected in the digital twin environment, including: Building the twin environment that is equivalent to and consistent with the real 3C assembly scene based on the Unity simulation engine; The multimodal teaching data is collected in the digital twin environment based on a virtual reality VR device.
7. The method according to claim 5, characterized in that The skill parsing process of the multimodal teaching data includes: The collected multimodal teaching data is accurately analyzed through a time-space-event correlation model to obtain RGB-D images and three-dimensional force data; The assembly action sequence of the multimodal teaching data is identified and segmented using a time-space-contact feature segmentation system.
8. The method according to claim 5, characterized in that The residual reinforcement learning and curriculum learning are used to learn each primitive strategy sequence, including: At each time step t, for a given state-action pair, the objective function optimization follows the maximization of the expected cumulative reward obtained when the skill policy is executed, and the action is the instruction output by the skill policy to control the movement of the robot.
9. The method according to claim 5, characterized in that The method of implementing the migration of skill strategies from the digital twin environment to the real environment through the encoder-decoder model includes: The encoder is used as a feature extractor for image input to achieve the migration of the skill strategy from the digital twin environment to the assembly scenario of the real environment.
10. The method according to claim 5, characterized in that Also includes: A multi-level knowledge structure is used to represent the basic operations of the robot. The dynamic layer stores the action sequences derived from human action demonstrations, and the static layer stores the relatively fixed basic knowledge in the task scenario.
Citation Information
Patent Citations
Hybrid expert reinforcement learning method and system
CN109657802A
Intelligent flexible assembly method for 3C products
CN118013838A
Cloud robot system, cloud server, robot control module, and robot
WO2022116716A1
Cited By
Production knowledge automatic extraction and management system oriented to process standardization
CN120371985A
Production knowledge automatic extraction and management system oriented to process standardization
CN120371985B
