A method for training operator motor skills based on generative adversarial imitation learning
By introducing the trainer of generative adversarial imitation learning into the teleoperation training framework and using variational autoencoders to train the agent to simulate the operator's behavior, the problem of slow improvement in operator skill level in teleoperation tasks has been solved, and students and students can interact with each other. The two-way interaction between virtual trainers significantly speeds up skill improvement and ensures system security.
Patent Information
- Application Number
- CN202210199665.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-02
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-02
AI Technical Summary
In teleoperation tasks, the skill level of operators improves slowly, and existing technology cannot achieve two-way tactile feedback between students and experts, which may threaten system security.
Introduce the trainer of generative adversarial imitation learning, establish a training database by applying guidance force on the student side, use variational autoencoder to train the agent to simulate the operator's behavior, design the student's motor skills training method, and realize the relationship between the student and the virtual trainer two-way interaction.
While ensuring the security of the system, it significantly speeds up students' skill improvement, realizes two-way interaction between students and experts, and improves the efficiency of skill training.
Smart Images

Figure CN114528947B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of skill training, and in particular relates to a method for training operator's motion skills based on generative adversarial imitation learning. Background Art
[0002] With the development of teleoperation technology, products developed based on teleoperation have been widely used in medical and other fields. However, such equipment requires a high level of skills to master, and operators with insufficient skills are prone to accidents during operation, so it is necessary to carefully design learning strategies for novice operators. In 2018, Mahya Shahbazi proposed an expert-in-the-loop teleoperation training framework, which allows experts to train trainees while operating the console to complete actual tasks, and can ensure the stability and safety of the system. However, G. Ganesh pointed out that two-way tactile feedback is a key factor in improving skill levels, and interacting with peers of the same level can improve skill levels faster than interacting with experts. Mahya Shahbazi's framework only applies tactile feedback on the trainee side, and cannot achieve two-way interaction between trainees and experts. However, if tactile feedback on the expert side is added to this framework, it may threaten the safety of the system. Summary of the invention
[0003] The purpose of the present invention is to provide a method for training operator motor skills based on generative adversarial imitation learning to solve the problem of slow improvement of operator skill level in teleoperation tasks.
[0004] The present invention adopts the following technical scheme: a method for training operator's motor skills based on generative adversarial imitation learning, based on an expert-in-the-loop teleoperation training framework, the expert-in-the-loop teleoperation training framework includes an expert and a trainee, and by applying a guiding force on the trainee end, the expert's teaching to the trainee is simulated on the teleoperation device; a trainer is introduced into the expert-in-the-loop teleoperation training framework, and the trainer is used to imitate its operation by adopting generative adversarial imitation learning;
[0005] The training process includes the following steps:
[0006] Step 1: Establish a student training database;
[0007] Step 2: Train the agent based on the training database to simulate the operator's behavior;
[0008] Step 3: Based on the trained intelligent agent, design a method for training students’ sports skills.
[0009] Furthermore, the specific method of establishing the student training database in step 1 is:
[0010] The trainer and the trainee operate together under the framework of Mahya Shahbazi, and are both acted upon by the guiding force, during which the operator trajectory x is collected. m 、Student trajectory x t , correct trajectory x e and the guide stiffness k form a trainee training database.
[0011] Furthermore, the specific method of step 2 for training the agent based on the training database to simulate the operator's behavior is:
[0012] Process the student training database obtained in step 1 to obtain the difference Δ between the operator trajectory and the correct trajectory me (t) = x m (t)-x e (t), the difference between the operator trajectory and the trainee trajectory Δ mt (t) = x m (t)-x t (t); let state st = (Δmt(t), k(t)), action at = Δme(t);
[0013] The state-action pairs processed in the student training database are used as expert samples τ E , trained using a generative adversarial imitation learning training framework based on a variational autoencoder; finally, a strategy π that can imitate the operator's behavior is obtained, which can be used according to the state s t Generate action a t .
[0014] Furthermore, the specific method of step three is:
[0015] In the final training stage, the expert trajectory is x E (t), the student end trajectory is x T (t), the virtual operator trajectory is x M (t), the virtual operator trajectory is calculated by the operator behavior strategy π obtained in step 2;
[0016] The difference between the virtual operator trajectory and the trainee trajectory Δ MT (t) = x M (t)-x T (t), then:
[0017] x M (t)=π(Δ MT (t-1),k(t-1))+x E (t-1)
[0018] =π((x M (t-1)-x T (t-1)),k(t-1))+xE (t-1)
[0019] During the training process, the guiding force is only applied on the trainee side. The guiding force on the trainee is expressed as f(t)=k(t)(xM(t)-xT(t)); the rest is the same as the framework of Mahya Shahbazi.
[0020] The beneficial effect of the present invention is that: based on the framework of Mahya Shahbazi, this method introduces another trainer, and uses generative adversarial imitation learning to imitate the trainer, so that while the expert performs the operation task, the trainee can have a two-way interaction with the trainer intelligent agent, thereby improving the trainee's skill level more quickly without endangering the system security. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a structural schematic diagram of a data collection framework when establishing a trainee database in a method for training operator's motor skills based on generative adversarial imitation learning according to the present invention;
[0022] Figure 2 A schematic diagram of a structure of a generative adversarial imitation learning training framework based on a variational autoencoder in a method for training operator's motor skills based on generative adversarial imitation learning according to the present invention;
[0023] Figure 3 This is a structural schematic diagram of a trainee sports skill training framework of an operator sports skill training method based on generative adversarial imitation learning in the present invention. DETAILED DESCRIPTION
[0024] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] The present invention provides a method for training operator's motor skills based on generative adversarial imitation learning, based on an expert-in-the-loop teleoperation training framework, wherein the expert-in-the-loop teleoperation training framework includes an expert and a trainee, and by applying a guiding force on the trainee end, the expert's hand-in-hand teaching to the trainee is simulated on the teleoperation device;
[0026] Introducing a trainer into the expert-in-the-loop teleoperation training framework, wherein the trainer is used to imitate the operation of the trainer by adopting generative adversarial imitation learning;
[0027] The training process includes the following steps:
[0028] Step 1: Establish a student training database;
[0029] Step 2: Train the agent based on the training database to simulate the operator's behavior;
[0030] Step 3: Based on the trained intelligent agent, design a method for training students’ sports skills.
[0031] In some embodiments, the specific method of step 1 to establish a student training database is:
[0032] The trainer and the trainee operate together under the framework of Mahya Shahbazi, and are both acted upon by the guiding force, during which the operator trajectory x is collected. m , student trajectory x t , the correct trajectory x e And guide stiffness k and other data form the trainee training database.
[0033] In some embodiments, the specific method of step 2 of training the agent based on the training database to simulate the operator's behavior is:
[0034] Process the student training database obtained in step 1 to obtain the difference Δ between the operator trajectory and the correct trajectory me (t) = x m (t)-x e (t), the difference between the operator trajectory and the trainee trajectory Δ mt (t) = x m (t)-x t (t); let state s t =(Δ mt (t),k(t)), action a t =Δ me (t);
[0035] The state-action pairs processed in the student training database are used as expert samples τ E , trained using a generative adversarial imitation learning training framework based on a variational autoencoder; finally, a strategy π that can imitate the operator's behavior is obtained, which can be used according to the state s t Generate action a t .
[0036] In some embodiments, the specific method of step three is:
[0037] In the final training stage, the expert trajectory is x E (t), the student end trajectory is x T (t), the virtual operator trajectory is x M (t), the virtual operator trajectory is calculated by the operator behavior strategy π obtained in step 2;
[0038] The difference between the virtual operator trajectory and the trainee trajectory Δ MT (t) = x M (t)-x T (t), then:
[0039] x M (t)=π(Δ MT (t-1),k(t-1))+x E (t-1)
[0040] =π((x M (t-1)-x T (t-1)),k(t-1))+x E (t-1),
[0041] During the training process, only the guiding force is applied to the trainee to ensure the stability of the expert's trajectory. The guiding force applied to the trainee can be expressed as f(t) = k(t)(x M (t)-x T (t)); the rest are the same as the framework of Mahya Shahbazi. The rest represent the whole framework described by Mahya Shahbazi, including fuzzy controller and skill evaluation.
[0042] Example
[0043] The teleoperation training framework proposed by Mahya Shahbazi allows experts to train trainees while completing actual tasks, but lacks two-way tactile feedback, which slows down the improvement of trainees' skill levels. The present invention introduces a trainer based on the original framework and models the trainer through imitation learning method, so that trainees can have two-way tactile feedback with the virtual trainer, which improves the training speed without threatening the safety of the system.
[0044] Step 1: Establish a student training database
[0045] The expert inputs the correct trajectory x for a specific training task by direct input or by manipulating the actuator motion. e , the training task does not need to be the same as the actual execution task.
[0046] Under Mahya Shahbazi's training framework, the operator controls the trajectory in the expert simulator along the correct trajectory x e The trainee controls the trainee simulator during movement. During this period, the operator and the trainee are subject to the same guiding force, just like a virtual elastic band tying the operator and the trainee's hands. The framework is as follows Figure 1 The Mahya Shahbazi frame is the frame of Mahya Shahbazi. This guiding force f can be defined as
[0047] f(t)=k(t)(x m (t)-x t (t))
[0048]
[0049] Among them, k∈[0,k max ] represents the stiffness of the virtual elastic band between the operator and the trainee, k max represents the maximum value of this stiffness, determined by experts, It is the adaptive element in the stiffness adjustment process. t Operation track for students, x m Manipulate the trajectory for the operator.
[0050] To adaptively adjust the stiffness coefficient A fuzzy controller needs to be designed. The stiffness coefficient should be related to the trainee's proficiency level, so the trainee's proficiency level needs to be measured, and the correct trajectory input by the expert is used as an ideal reference for evaluating the trainee. Define the standardized measurement parameter Φ:
[0051]
[0052]
[0053]
[0054] Among them, Δ e ,Δ t represent the skill evaluation criteria of experts and students respectively, which can be any existing quantitative metrics, such as the total path length ρ ν and movement fluency δ ν ρ e (ν=e),ρ t (ν=t),δ e (ν=e),δ t (ν=t) represents the total path length and movement smoothness of the expert and apprentice ends respectively, and the subscripts xyz represent the positions in the xyz axis direction respectively. The normalized total path length and normalized movement smoothness can be expressed as
[0055]
[0056]
[0057] The good performance of trainees may come from their proficiency in the task, but it may also be the result of tactile guidance. In order to distinguish the two, a linear metric based on the degree of guidance is introduced when evaluating the proficiency level of trainees. η , which measures the extent to which trainees pay attention to follow the tactile guidance given by the expert.
[0058]
[0059] Among them, f κ Represents the maximum tactile guidance force applied to the trainee's hand.
[0060] The student proficiency level Φ calculated above ρ and Φ δ By taking the average value and other methods to process it into an indicator, it is consistent with the guidance degree indicator Φ η Together they serve as the input of the fuzzy controller. Based on the input, the fuzzy controller can classify the proficiency of the trainees into four categories: beginner, intermediate, advanced, and proficient. From beginner to proficient, the applied force should gradually decrease, so the stiffness coefficient should gradually decrease.
[0061] In order to meet the requirements of the training system, the fuzzy rules are set as follows:
[0062] 1) If the student's skill level is beginner, significantly improve
[0063] 2) If the student's skill level is medium, slightly improve
[0064] 3) If the student's skill level is advanced, slightly reduce
[0065] 4) If the student's skill level is proficient, significantly reduce
[0066] Operators and trainees operate under this framework, during which the operator trajectory x is collected m , student trajectory x t , the correct trajectory x e And guide stiffness k and other data form the trainee training database.
[0067] Step 2: Design an agent to simulate operator behavior
[0068] Firstly, a generative adversarial imitation learning training framework based on variational autoencoder is constructed. The framework mainly consists of a strategy generator π, a discriminator D and a variational autoencoder VAE, all of which can be constructed as neural network models.
[0069] In order to carry out training, the student training database obtained in step one needs to be processed.
[0070] Δ me (t) = x m (t)-x e (t),
[0071] Δ mt (t) = x m (t)-x t (t),
[0072] Let state s t =(Δ mt(t),k(t)), action a t =Δ me (t). The processed state-action pairs in the database are used as expert samples τ E , using the generative adversarial imitation learning training framework based on variational autoencoders for training. The generative adversarial imitation learning training framework based on variational autoencoders is as follows Figure 2 .
[0073] In the generative adversarial imitation learning training process based on variational autoencoders, the variational autoencoder VAE uses expert samples to unsupervisedly infer the modal latent variables c in the samples under the interference of noise. c will be used as the conditional constraint for modeling the policy generator π and the discriminator D. The policy generator π generates state-action pairs under this conditional constraint. The discriminator D identifies whether the sample comes from the expert sample or is generated by the policy generator π, and based on whether the judgment is correct, it provides feedback to the policy generator π, the discriminator D and the variational autoencoder VAE under the conditional constraint of c. The policy generator π aims to confuse the discriminator D and updates the generation strategy based on feedback; the discriminator D aims to correctly distinguish the source of the samples and updates the identification strategy based on feedback; the VAE continuously optimizes the mutual information between the expert samples and the modal latent variables, so as to learn the modal latent variables in the expert samples that best represent the entire expert trajectory and are the most meaningful. This process forms a game between the policy generator π, the discriminator D and the variational autoencoder VAE. The game objective L(π, D, VAE) can be expressed as
[0074]
[0075] Among them, U represents the termination time step of the expert trajectory, s i,E and a i,E Represent the state and action of the expert trajectory at time i respectively.
[0076] Finally, the game reaches Nash equilibrium, and the variational autoencoder VAE learns the modal latent variables that best represent the entire expert trajectory and are the most meaningful in the expert sample. The strategy generator π can generate samples similar to the expert under any modal latent variables, and the discriminator D cannot distinguish whether the sample is an expert sample or a generator. At this stage, multimodal imitation learning is completed, that is, a strategy π that can imitate the operator's behavior is obtained. This strategy can be used according to the state s. t =(Δ mt (t),k(t)) generates action a t =Δ me (t).
[0077] Step 3: Design sports skills training methods for students
[0078] The final design strategy is to train students while experts complete the actual task, the framework is as follows Figure 3 As shown. The expert end trajectory is x E (t), the student end trajectory is x T (t), the virtual operator trajectory is x M (t), the virtual operator trajectory is calculated by the operator behavior strategy π obtained in step 2.
[0079] x M (t)=π(Δ MT (t-1),k(t-1))+x E (t-1)
[0080] =π((x M (t-1)-x T (t-1)),k(t-1))+x E (t-1)
[0081] During the training process, the guiding force is only applied on the trainee side to ensure the stability of the expert side trajectory. The guiding force on the trainee can be expressed as
[0082] f(t)=k(t)(x M (t)-x T (t))
[0083] Research shows that the speed at which trainees learn motor skills is related to their effective participation in the task. In order to speed up the learning of trainees, the present invention allows trainees to partially control the task completion process. S It can be expressed as
[0084] x S (t) = α E (t)·x E (t)+α T (t)·x T (t)
[0085] Where 0≤α E ≤1,0≤α T ≤1,α E +α T =1 represents the control ability of the expert and the trainee over the slave. This parameter can be adjusted adaptively and controlled by the expert.
[0086]
[0087]
[0088] Among them, k∈[0,k max ] represents the stiffness of the virtual elastic band between the expert and the trainee, k max represents the maximum value of this stiffness, determined by experts, is the adaptive element in the stiffness adjustment process; 0≤α T ≤α max ≤1,α max Represents the maximum value of the student weight coefficient, determined by experts, It is an adaptive element in the process of adjusting the weight coefficient of the students.
[0089] To adaptively adjust the stiffness coefficient and student weight coefficient A fuzzy controller needs to be designed. The stiffness coefficient and the student weight coefficient should be related to the student's proficiency level, so the student's proficiency level needs to be measured, and the correct trajectory input by the expert is used as an ideal reference for evaluating the student. The proficiency level measurement method is the same as step one.
[0090] The calculated student proficiency level Φ ρ and Φ δ By taking the average value and other methods to process it into an indicator, it is consistent with the guidance degree indicator Φ η Together as the input of the fuzzy controller. According to the input, the fuzzy controller can classify the proficiency of the trainees into four types: elementary, intermediate, advanced, and proficient. From elementary to proficient, the stiffness coefficient should gradually decrease, and the weight coefficient of the trainees should gradually increase.
[0091] In order to meet the requirements of the training system, the fuzzy rules are set as follows:
[0092] 1) If the student's skill level is elementary, significantly reduce Significantly improved
[0093] 2) If the student's skill level is medium, slightly reduce Slightly improved
[0094] 3) If the student's skill level is advanced, slightly increase Slightly lower
[0095] 4) If the student's skill level is proficient, significantly improved Significantly reduce
[0096] If the level of the trainees in the embodiment is proficient, the stiffness coefficient can be adjusted to The weight coefficient is adjusted to Compared with fixed parameters, without fuzzy controller, the stiffness coefficient and weight coefficient are always At this point, the student's level is proficient, which means that they have mastered this skill relatively well. Therefore, the stiffness coefficient is low, the guidance force felt by the student is low, the weight coefficient is high, the impact on task implementation is greater, the participation is higher, and the skill improvement is faster.
[0097] Experts and trainees operate under this framework, which enables experts to provide trainees with efficient sports skills training while completing actual tasks while ensuring system security.
Claims
1. A method for training operator's motor skills based on generative adversarial imitation learning, characterized in that: Based on an expert-in-the-loop teleoperation training framework, the expert-in-the-loop teleoperation training framework includes an expert and a trainee, and by applying a guiding force on the trainee end, the expert's teaching to the trainee is simulated on the teleoperation device; a trainer is introduced into the expert-in-the-loop teleoperation training framework, and the trainer is used to imitate its operation by adopting generative adversarial imitation learning; The training process includes the following steps: Step 1: Establish a student training database; Step 2: Train the agent based on the training database to simulate the operator's behavior; The specific method of step 2 of training the agent based on the training database to simulate the operator's behavior is: Process the student training database obtained in step 1 to obtain the difference Δ between the operator trajectory and the correct trajectory me (t) = x m (t)-x e (t), the difference between the operator trajectory and the trainee trajectory Δ mt (t) = x m (t)-x t (t); let state s t =(Δ mt (t),k(t)), action a t =Δ me (t); The state-action pairs processed in the student training database are used as expert samples τ E , trained using a generative adversarial imitation learning training framework based on a variational autoencoder; finally, a strategy π that can imitate the operator's behavior is obtained, which can be used according to the state s t Generate action a t ; Step 3: Based on the trained agent, design a method for training students’ sports skills; The specific method of step three is: In the final training stage, the expert trajectory is x E (t), the student end trajectory is x T (t), the virtual operator trajectory is x M (t), the virtual operator trajectory is calculated by the operator behavior strategy π obtained in step 2; The difference between the virtual operator trajectory and the trainee trajectory Δ MT (t) = x M (t)-x T (t), then: x M (t)=π(Δ MT (t-1),k(t-1))+x E (t-1) =π((x M (t-1)-x T (t-1)),k(t-1))+x E (t-1), During the training process, only the guiding force is applied to the trainee. The guiding force received by the trainee is expressed as f(t)=k(t)(x M (t)-x T (t)); the rest is the same as the framework of expert-in-the-loop teleoperation.
2. The operator motor skill training method based on generative adversarial imitation learning as claimed in claim 1, characterized in that: The specific method of step 1 to establish a student training database is: The trainer and the trainee operate together under the framework of expert-in-the-loop teleoperation, both of which are acted upon by the guiding force, and the operator trajectory x is collected during the operation. m 、Student trajectory x t , correct trajectory x e and the guide stiffness k form a trainee training database.
