A collaborative control method based on deep reinforcement learning
Through deep reinforcement learning and long-short-term memory network, combined with virtual operator training, the problem of intention recognition and control authority allocation in human-machine collaborative control is solved, more efficient collaborative control is achieved, and the security and stability of the system are enhanced.
Patent Information
- Application Number
- CN202210694528.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-20
AI Technical Summary
In human-machine collaborative control systems, machines cannot obtain the true intentions of human operators, making it difficult to allocate control permissions. Existing technologies rely on a large amount of prior knowledge and are difficult to deal with undefined goals and unpredictable behaviors.
Using a method based on deep reinforcement learning, through long short-term memory network and Deep Q-learning algorithm, we build a human action intention model and a machine agent action strategy model to realize human-machine intention recognition and control authority allocation, and combine with virtual operator training to solve data Issues of scarcity.
It improves the efficiency and accuracy of human-machine collaborative control, realizes dynamic control authority adjustment, enhances the security and stability of the system, and has stronger applicability.
Smart Images

Figure CN115032900B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of human-machine collaborative control of unmanned systems, and in particular to a method for realizing machine inference of human intention and target through reinforcement learning and adjusting control authority between human and machine. Background Art
[0002] Human-machine collaborative control is an emerging field with wide applications in assistive robots, remote-operated robots, drones, and unmanned vehicles. Initially, the purpose of introducing collaborative control was to provide assistance to users, such as avoiding obstacles during the operation of wheelchairs or robotic arm systems. Subsequently, in order to improve the efficiency and accuracy of the system and facilitate user use, the degree of collaborative control has been continuously deepened. At present, collaborative control achieves fine control of unmanned systems by integrating environmental information, contextual information, prior data, and instructions output by the human-machine interaction system. It is generally believed that the autonomous control of machines is good at fine-grained task execution, while humans are good at upper-level planning; at the same time, humans can monitor the operating status of machines in real time and correct some errors. Therefore, in many cases, it is necessary to rely on human control and machine autonomous control to complement each other's capabilities to complete complex control tasks.
[0003] In human-machine collaborative control systems, machines cannot obtain the true intentions of human operators, and human operators are unable to cope with tasks that require frequent manipulation. Therefore, it is necessary to first study human-machine intention recognition technology to enable machine agents to infer user goals based on user input. Previous research methods often require a lot of prior knowledge, specifically including three categories: 1) dynamic models, predicting the results of taking a given action in a given environment; 2) sets of goals that users may have; 3) observation models, describing user behavior under given goals. Model-based collaborative control algorithms are suitable for domains where knowledge in the domain can be hard-coded, but face challenges brought about by undefined goals and unpredictable user behavior.
[0004] At present, most of the literature focuses on the allocation of functional authority, that is, for a certain system function, whether it is executed by humans or machines, focusing on functional division. How to liberate human control over fine functions and give full play to human upper-level planning capabilities so that control authority can be appropriately and deeply integrated and allocated according to the current goals, environment, and the respective states of humans and machines is another research difficulty. Deep reinforcement learning uses neural network function approximation to deal with high-dimensional, continuous state and action space dimensional problems, and has recently achieved remarkable success in training automatic agents from scratch to play video games, defeat human world champions in Go games, and control robots. Therefore, using deep reinforcement learning to establish flexible and practical collaborative control strategies can effectively solve the above problems, realize the applicability of human-machine collaborative control methods, establish effective, flexible and practical auxiliary robots, and support subsequent human-machine collaborative upper-level planning. Summary of the invention
[0005] In view of this, the present invention proposes a method for human-machine collaborative control based on deep reinforcement learning. The method solves the problem of control authority allocation in human-machine collaborative control through deep reinforcement learning, and can achieve better human-machine collaborative control.
[0006] In order to achieve the above object, the scheme adopted by the present invention is:
[0007] A method for collaborative control with or without human based on deep reinforcement learning, comprising the following steps:
[0008] Step 1: Function description of constructing human action intention model:
[0009] The action decision of the human operator is described by a Markov decision process. Suppose the known environmental state set is S, the human action input set is A, and the human action target set is G. The human action strategy model is characterized by the random optimal strategy function π(·). The action function of the human operator is a h =π(s,g user ), where s∈S is the current environment state, g user ∈G is the expected goal of human beings, a h represents human action; the expected human goal g user 、Human Action h And the functional relationship of the current environment state s is expressed by f(·), then g user =f(a h ,s), this functional relationship is the functional description of the human action intention model;
[0010] Step 2: Use long short-term memory network to build a human action intention model:
[0011] The input of the long short-term memory network is Xin =[s,a h ], s represents the environmental state, a h Represents human actions; for network training, set label data for each set of input data, and the label data is the actual human target Y out =[g h ], the input data comes from the real interaction data of human operators and the virtual interaction data of virtual operators; for the trained long short-term memory network, the current environment state s′ and the current human action a′ are input, and the predicted human action intention g′ is output;
[0012] Step 3: Construct the function description of the machine agent action strategy model:
[0013] The action strategy model of the machine agent is described as a=π using the random optimal strategy function r (s,g′,a h ), the input of the model is the environment state s, human action a h And human action intention g′, the output is the optimal action a;
[0014] Step 4: Use the human-in-the-loop Deep Q-learning algorithm to build a machine agent action strategy model:
[0015] The action strategy model of the machine agent is a multi-layer neural network that realizes end-to-end mapping from state to action. To facilitate model training, the human action intention g′ output by the human action intention model in step 2 and the actual environment state s are encapsulated into a new model input. After iterative training, a trained machine agent action strategy model is obtained;
[0016] Step 5: When the action of the human operator is close to the optimal action output by the machine agent action strategy model, the action of the human operator is selected; otherwise, the optimal action output by the machine agent action strategy model is selected.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] 1. Aiming at the problem of intention recognition in human-machine collaborative control scenarios, the present invention designs a human-machine intention recognition method based on long-short cycle memory networks. Collaboration is based on the machine's understanding of human action intentions. The collaborative strategy has a strong purpose and higher collaborative efficiency.
[0019] 2. The present invention adopts the "human-in-the-loop" Deep Q-learning algorithm based on the deep reinforcement learning algorithm framework, adds the human-machine control authority allocation strategy design, and can realize effective human-machine control authority adjustment.
[0020] 3. In order to solve the problem of large amount of interactive data required for training, the present invention proposes a pre-training method for virtual operators to solve the problem of lack of real data in real applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 Schematic diagram of the principle of human action intention prediction model.
[0022] Figure 2 This is the schematic diagram of human-machine collaborative control based on deep reinforcement learning.
[0023] Figure 3 Schematic diagram of the Deep Q-learning algorithm with “human in the loop”.
[0024] Figure 4 This is a simulation of the lunar landing. DETAILED DESCRIPTION
[0025] A method for collaborative control with or without human based on deep reinforcement learning. This method obtains appropriate control input based on the state of the controlled machine, the state of the environment, and the control input of the human, thereby avoiding human control errors. The entire process mainly includes the machine's inference of the human's intention and goal and the allocation of control authority between the human and the machine agent. To achieve intention and goal inference, this method proposes an intention recognition method based on a long short-term memory network, which can predict the corresponding target intention based on the state data of the environment, human, system, etc. that can be actually obtained; to achieve the allocation of control authority, a control method for machines and humans is proposed to coordinate the control authority of humans and machine agents, so that the control authority can be dynamically adjusted during the task execution process and allocated to humans or machine agents, thereby improving the safety, stability, and task execution performance of the entire human-machine collaborative system.
[0026] The specific steps of this method are:
[0027] Step 1: Human-computer intention recognition based on long short-term memory network
[0028] 1.1 Building a human action intention model
[0029] The human action decision is described by a specific Markov decision process. Suppose the known environmental state set is S, the human action input set is A, and the human action target set is G. The human action strategy mathematical model is characterized by the random optimal strategy function π(·). The action function of the human operator is a h =π(s,g user ), where s∈S is the current environment state, g user ∈G is the expected goal of human beings, a h represents human action. user 、Human Actionh And the functional relationship between the current environment state s is expressed by f(·), then g user =f(a h ,s), namely the human action intention model.
[0030] 1.2 Human Action Intention Prediction Based on Long Short-Term Memory Network
[0031] The long short-term memory network (LSTM network) can better model and predict time series data, and human action output and environmental state are a series of time series data with very obvious time series characteristics. Therefore, the long short-term memory network is used to establish the human action intention model described in step 1.1. The input of the long short-term memory network is X in =[s,a h ], s represents the environmental state, a h Represents human actions. For network training, set label data for each set of input data, and the label data is the actual human target Y out =[g h ]. The main sources of data are the real interaction data of human operators and the virtual interaction data of virtual operators. For the trained long short-term memory network, the current environment state s′ and the current human action a′ are input, and the model can output the predicted human action intention g′.
[0032] Step 2: Human-machine collaborative control based on deep reinforcement learning
[0033] 2.1 Building a machine agent action strategy model
[0034] Refer to step 1.1 and use the random optimal policy function to build the machine agent action policy model a = π r (s,g′,a h ), the input of the model is the environment state s, the operator input a h And the predicted human action intention g′ output from step 1.2 is the optimal action a.
[0035] 2.2 Optimal Action Generation Based on Deep Reinforcement Learning
[0036] The “human in the loop” Deep Q-learning algorithm is used to construct the machine agent action strategy model described in step 2.1. The strategy model is designed as a multi-layer neural network to achieve end-to-end mapping from state to action. In order to facilitate model training, the predicted human action intention g′ output by the human action intention model in step 1.2 and the actual environment state s are encapsulated into a new model input After iterative training, the strategy model can output the optimal action.
[0037] 2.3 Human-machine collaborative control authority allocation
[0038] In order to make appropriate and in-depth control authority allocation according to the current goals, environment, and the respective states of humans and machines, based on the "human in the loop" Deep Q-learning algorithm adopted in step 2.2, when the action selected by the human user is close to the optimal one, the human user operation a is selected h Otherwise, the optimal action operation a output by the machine agent is selected, that is, the output of the machine agent action strategy model is Among them, f(·)∈[0,1] is the action similarity function, and α∈(0,1) is the similarity threshold.
[0039] This method solves the following two problems:
[0040] 1) Human-machine intention recognition problem. The purpose of human-machine collaborative control is to achieve specific goals through coupled control of user input and machine autonomy. However, the machine does not know what the user wants to achieve. How the machine can infer the user's goal based on the user input and predict the user's intention is a prerequisite for collaborative task completion.
[0041] 2) The problem of control authority allocation in human-machine collaborative control. A deep reinforcement learning method is used to realize the dynamic allocation of control authority in the human-machine collaborative method, so that the control authority can be reasonably allocated according to the current goals, environment, and the respective states of humans and machines, thus realizing human-machine collaboration in a fully stable and effective manner.
[0042] In addition, in order to solve the problem of large amounts of human-computer interaction data required by the "human-in-the-loop" Deep Q-learning algorithm, this method does not directly obtain it through user operations, but instead replaces the real operator with a virtual operator in the early stage, and generates user operation data under specific goals by simulating the real operator to interact, and then uses these data for algorithm training, effectively solving the under-fitting problem caused by the difficulty of real data volume to support model training.
[0043] Here is a more specific example:
[0044] A method for collaborative control with or without human based on deep reinforcement learning, comprising the following steps:
[0045] Step 1: Human-computer intention recognition based on long short-term memory network
[0046] 1.1 Building a human action intention model
[0047] The goal of human action is to optimize a cost function, which is calculated based on the deviation between the current state of the controlled object and the user's desired state. Assuming that the closer the current state is to the desired state, the smaller the corresponding cost value, the goal of the human user is to minimize the cost function. Therefore, the action decision process of the human user can be described as a specific Markov decision process.
[0048] Assuming that the target space is G, the state space of the corresponding environment is S, and the action space is A, the human action decision is described by a specific Markov decision process. The policy model can be described by the end-to-end mapping S×G→A, so there is also a reverse mapping of S×A→G, corresponding to the intention model. Therefore, the reverse mapping can be fitted through a neural network to construct an end-to-end mapping S×A→G, which uses the known environment state S and human action input A to correspond to a limited target set G. When constructing this mapping model, the optimization goal is to minimize the deviation between its output and the user's actual goal.
[0049] In order to model the human action strategy model, a human action strategy model is established while considering abnormal operations such as "errors", "empty shots", "delays" and "repeated" operations of human operators. Assuming the target is g∈G, the state of the corresponding environment is s∈S, and the action taken is a∈A, the human action strategy mathematical model is characterized by the random optimal strategy function π(·), and the action function of the human operator is a h =π(s,g user ), where s∈S is the current environment state, g user ∈G is the expected goal of human beings, a h represents human action. user 、Human Action h And the functional relationship between the current environment state s is expressed by f(·), then g user =f(a h ,s), namely the human action intention model.
[0050] 1.2 Human Action Intention Prediction Based on Long Short-Term Memory Network
[0051] The human action intention model g constructed according to step 1.1 user =f(a h ,s), if the machine wants to obtain the intention of the human operator, it needs to build the above functional relationship so that it can calculate the real intention of the human operator based on the current human operator's action input and environmental status.
[0052] The long short-term memory network (LSTM network) can better model and predict time series data, and human action output and environmental state are a series of time series data with very obvious time series characteristics. Therefore, the long short-term memory network is used to establish the human action intention model described in step 1.1. The input of the long short-term memory network is X in =[s,a h ], s represents the environmental state, a h Represents human actions. For network training, set label data for each set of input data, and the label data is the actual human target Y out =[g h ]. The main sources of data are the real interaction data of human operators and the virtual interaction data of virtual operators. For the trained long short-term memory network, the current environment state s′ and the current human action a′ are input, and the model can output the predicted human action intention g′.
[0053] Assuming that the feedforward output of the LSTM network model is Y', the corresponding target loss function is defined as: Where n represents the number of samples. According to the above process, we can construct Figure 1 A human action intention prediction framework is built based on the LSTM network and Adam optimizer to build a complete intention prediction algorithm. Data is obtained through real human operations and simulated human operations.
[0054] Step 2: Human-machine collaborative control based on deep reinforcement learning
[0055] 2.1 Building a machine agent action strategy model
[0056] Refer to step 1.1 and use the random optimal policy function to build the machine agent action policy model a = π r (s,g′,a h ), the input of the model is the environment state s, the operator input a h And the predicted human action intention g′ output from step 1.2 is the optimal action a.
[0057] like Figure 2 As shown in the figure, the entire action strategy model is described as follows: First, the human operator selects an action a according to the environment state s and his or her desired goal g. h At the same time, since the machine agent cannot know the expected goal g of the human user, it will predict the network based on the target and use a h And s get the predicted target g′. The machine intelligence will finally learn based on the human user action a h, environment state s and predicted target g′ to make appropriate action a. Finally, action a is applied to the environment to obtain a new environment state s′, and the cycle repeats. Finally, the desired goal is achieved.
[0058] 2.2 Optimal Action Generation Based on Deep Reinforcement Learning
[0059] The human-in-the-loop DeepQ-learning algorithm is used to construct the machine agent action strategy model described in step 2.1, such as Figure 3 As shown in the figure, the strategy model is designed as a multi-layer neural network to achieve end-to-end mapping from state to action. In order to facilitate model training, the predicted human action intention g′ output by the human action intention model in step 1.2 and the actual environment state s are encapsulated into a new model input After iterative training, the strategy model can output the optimal action.
[0060] In order to solve the problem of continuous state space and continuous action space, a parameterized continuous function Q(s,a;θ) is used to approximate the state-action value function. The parameter θ is a finite-dimensional vector whose initial value is randomly set. At this time, the learning strategy of the algorithm is obtained by minimizing the loss function L(θ).
[0061] 2.3 Human-machine collaborative control authority allocation
[0062] In order to make appropriate and in-depth control authority allocation according to the current goals, environment, and the respective states of humans and machines, based on the "human in the loop" Deep Q-learning algorithm adopted in step 2.2, when the action selected by the human user is close to the optimal one, the human user operation a is selected h Otherwise, the optimal action operation a output by the machine agent is selected, that is, the output of the machine agent action strategy model is Where f(·)∈[0,1] is the action approximation function, and α∈(0,1) is the similarity threshold. The threshold α can be set according to the desired human-machine authority allocation ratio, and the action approximation function f(a h ,a) can be implemented by dynamic time warping (DTW). Finally, action a or a h Acting on the environment obtains a new environmental state s′, and this cycle repeats until the desired goal is finally achieved.
[0063] In order to solve the large amount of human-computer interaction data required by the "human-in-the-loop" Deep Q-learning algorithm, the algorithm is iteratively trained by using simulated operators instead of real humans in the early training of the algorithm. Four human behavior virtual operators are designed:
[0064] 1) Noon-Pilot, which means no operation without any action;
[0065] 2) Laggy-Pilot, where the current input corresponds to the previous state;
[0066] 3) Noisy-Pilot, i.e. performing wrong operations;
[0067] 4) "Goal-oriented" operator Sensor-Pilot, that is, the operation input is directly directed to the target.
[0068] The following is a simulation experiment:
[0069] Simulation environment:
[0070] The GYM simulation environment library developed by OPENAI can be used to implement and compare various current reinforcement learning algorithms. The toolkit is compatible with most mathematical computing libraries, such as Tensorflow, Theano, etc. The lunar landing simulator LunarLander in GYM is selected as the human-machine collaborative control simulation scene.
[0071] Lunar landing is a classic optimal control problem. Figure 4 As shown in the figure, the lander is a controlled object subject to kinematic / dynamic constraints, and mainly moves in a two-dimensional plane, with the horizontal axis being x and the vertical axis being y. The white part is the ground, and the black part is the motion space before landing. If no external force or engine thrust is applied, the lander will fall freely under the action of gravity. Table 1 lists all the parameters of the simulator, and the simulation experiments are carried out with these parameters.
[0072] Table 1 Simulator parameters
[0073] Parameter name Parameter Value Refresh frame rate fps 50Hz / s Screen width W 20cm Screen height H 13.3cm <![CDATA[Landing position width W h > 4.0cm <![CDATA[Single-step main engine start fuel consumption m m > 1.0 <![CDATA[Single-step left and right assist engine on fuel consumption m s > 1.0 <![CDATA[R general Feedback value coefficient k1]]> 0.3 <![CDATA[R general Feedback value coefficient k2]]> 0.03 <![CDATA[Human game feedback value R succed > 100 <![CDATA[Human game feedback value R landed > 0 <![CDATA[Human game feedback value R out > -100
[0074] Simulation experiment and effect:
[0075] According to the description of the human action intention prediction model based on the LSTM network in step 1.2, the training parameters of the LSTM network are set as shown in Table 2.
[0076] Table 2 Training parameters of human action intention prediction model
[0077]
[0078] Before training the parameters of the Deep Q-learning algorithm of the “human in the loop”, it is necessary to set appropriate training parameters to ensure that the algorithm converges effectively. Table 3 shows the parameter settings of the collaborative control algorithm.
[0079] Table 3 Cooperative control algorithm parameters
[0080]
[0081]
[0082] After the training is completed, experiments are conducted based on the trained model to verify the performance of the model in the test. By conducting 100 groups of experiments on each type of simulated operator, the success rate, crash rate, and landing rate of each group of experiments are recorded in Table 4. The simulation results verify the effectiveness of this method.
[0083] Table 4 Statistics of simulation operator collaborative control experiment results
[0084]
[0085] In summary, in order to achieve intention target inference, the present invention proposes an LSTM-based intention recognition method, which can predict the corresponding target intention according to the state data of the environment, people, systems, etc. that can be actually obtained; in order to achieve the allocation of control authority, the present invention proposes a machine and human control method to coordinate the control authority of people and machine agents, so that it can dynamically adjust the control authority during the task execution process and allocate it to people or machine agents, thereby improving the security, stability and task execution performance of the entire human-machine collaborative system.
Claims
1. A method for collaborative control with or without human based on deep reinforcement learning, characterized in that: The following steps are involved: Step 1: Function description of constructing human action intention model: The action decision of the human operator is described by a Markov decision process. Suppose the known environmental state set is S, the human action input set is A, and the human action target set is G. The human action strategy model is characterized by the random optimal strategy function π(·). The action function of the human operator is a h =π(s,g user ), where s∈S is the current environment state, g user ∈G is the expected goal of human beings, a h represents human action; the expected human goal g user 、Human Action h And the functional relationship of the current environment state s is expressed by f(·), then g user =f(a h ,s), this functional relationship is the functional description of the human action intention model; Step 2: Use long short-term memory network to build a human action intention model: The input of the long short-term memory network is X in =[s,a h ], s represents the environmental state, a h Represents human actions; for network training, set label data for each set of input data, and the label data is the actual human target Y out =[g h ], the input data comes from the real interaction data of human operators and the virtual interaction data of virtual operators; for the trained long short-term memory network, the current environment state s′ and the current human action a′ are input, and the predicted human action intention g′ is output; Step 3: Construct the function description of the machine agent action strategy model: The action strategy model of the machine agent is described as a=π using a random optimal strategy function. r (s,g′,a h ), the input of the model is the environment state s, the human action a h And human action intention g′, the output is the optimal action a; Step 4: Use the human-in-the-loop Deep Q-learning algorithm to build a machine agent action strategy model: The action strategy model of the machine agent is a multi-layer neural network that realizes end-to-end mapping from state to action. To facilitate model training, the human action intention g′ output by the human action intention model in step 2 and the actual environment state s are encapsulated into a new model input. After iterative training, a trained machine agent action strategy model is obtained; Step 5: When the action of the human operator is close to the optimal action output by the machine agent action strategy model, the action of the human operator is selected; otherwise, the optimal action output by the machine agent action strategy model is selected.
Citation Information
Patent Citations
Adaptive game playing algorithm based on deep reinforcement learning
CN109496318A
Brain-like fast and slow dual-channel unmanned autonomous decision-making method
CN113139656A
