Multi-agent escape method based on deep reinforcement learning

By using the actor and critic network trained by the MADDPG algorithm and soft update strategy in the multi-agent escape task, the complexity and stability problems of the traditional algorithm when the number of agents increases are solved, and the efficiency and performance of the escape task are improved.

CN118798253APending Publication Date: 2024-10-18DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776941.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Traditional multi-agent escape algorithms lead to an explosive increase in environmental complexity when the number of agents increases. The learning efficiency is low and the stability is insufficient, making it unable to effectively collaborate and handle complex environments.

Method used

The deep reinforcement learning method based on MADDPG is used to construct actor networks and critic networks for the chasing and escaping agents respectively. Through soft update strategy training, the escape algorithm is optimized to improve the performance and efficiency of multi-agent escape tasks.

Benefits of technology

It improves the overall performance and efficiency of multi-agent escape tasks, overcomes the complexity problem caused by the increase in the number of agents, ensures the stability and robustness of the algorithm, and achieves a more effective escape strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798253A_ABST
    Figure CN118798253A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-agent escape method based on deep reinforcement learning. The multi-agent escape method comprises the following steps: acquiring quantity information, physical size information, movement information and pursuit-escape environment physical information of a tracking agent and an escaping agent; constructing two actor networks and two reviewer networks generated by the party chasing agent and the party escaping agent respectively, and naming the two actor networks and the two reviewer networks as the actor network, the target network of the actor network, the reviewer network and the target network of the reviewer network respectively; adopting MADDPG to respectively generate two actor networks and two commentator networks for training the tracking agent and the escaping agent, and obtaining an escape algorithm that the escaping agent escapes from the tracking agent; according to the method, the test set data of the tracking agent and the escape agent is tested by adopting the escape algorithm that the escape agent escapes from the tracking agent, the completion rate of the escape task that the escape agent escapes from the tracking agent is obtained, and the overall performance and efficiency of the multiple agents in the escape task are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-agent reinforcement learning task, in particular a multi-agent escape algorithm for deep reinforcement learning. Background Art

[0002] A multi-agent system usually refers to a collection of multiple interacting agents, where the agents can be robots, software entities, or any autonomous entities that can perform specific tasks. These agents need to complete complex tasks by working independently or collaboratively, such as search and rescue, automatic traffic control, and coordinated operations of multiple robots.

[0003] Deep Reinforcement Learning (DRL) combines the advantages of deep learning and reinforcement learning, enabling agents to learn complex strategies in high-dimensional and continuous action spaces. However, when traditional DRL is applied to multi-agent systems, it encounters challenges such as dynamic changes in the environment and increased complexity of interactions between agents. To this end, the Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm was proposed to adapt to these challenges.

[0004] As an actor-critic method, MADDPG allows centralized learning and decentralized strategy execution by using information from the global state. The learning of the agent not only reflects its own experience, but also takes into account the impact of the behavior of other agents on the environment. This method is conducive to efficient and effective learning in a multi-agent environment.

[0005] In practical applications, such as a multi-agent escape mission scenario, the agents need to escape or avoid pursuers. In such an environment, the agents must not only consider individual risk avoidance strategies, but also predict the actions of other agents and form an effective group escape strategy. The traditional DDPG algorithm uses deep learning to process complex perceptual inputs, learns actions with higher rewards through gradient descent, and thus learns more effective escape strategies.

[0006] However, although the DDPG method has significant advantages over traditional expert experience methods in multi-agent scenarios, it still faces some problems in research and practical applications. For example, how to make the collaboration between agents more close and effective; how to deal with the explosive growth of environmental complexity caused by the increase in the number of individual agents; and how to ensure the stability and robustness of the algorithm while ensuring learning efficiency. Summary of the invention

[0007] In order to solve the problems of using traditional single-agent methods to solve the multi-agent escape problem, such as lack of strategy, large training fluctuations, limited observation range, inability to obtain global information, and the explosive growth of environmental complexity caused by the increase in the number of agents,

[0008] A multi-agent escape method based on deep reinforcement learning, comprising the following steps:

[0009] Obtaining information on the number, physical size, movement and physical information of the pursuit environment of the pursuing and fleeing intelligent agents and the fleeing intelligent agents; the number of the pursuing intelligent agents ≥ the number of the fleeing intelligent agents;

[0010] Construct the chasing agent and the fleeing agent to generate two actor networks and two critic networks respectively, named actor network, target network of actor network, critic network, and target network of critic network;

[0011] MADDPG is used to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent respectively, and an escape algorithm is obtained for the fleeing agent to escape from the chasing agent.

[0012] The test of the pursuing agent and the fleeing agent is carried out by using the escape algorithm of the fleeing agent escaping from the pursuing agent to obtain the completion rate of the fleeing agent's escape task from the pursuing agent.

[0013] Further: the actor network has the same structure as the target network of the actor network;

[0014] The actor network includes an input layer with 20 dimensions and 256 dimensions, two fully connected layers with 256 dimensions input and 256 dimensions output, and an output layer with 256 dimensions input and 5 dimensions output; a ReLU activation function is included in the middle of the input layer and the fully connected layer;

[0015] A Sigmoid function is used after the output layer. The output will be compressed to the range of [0,1]. The maximum value of the five values ​​is determined and the action represented by the maximum value is selected, which represents forward, backward, left, right and still.

[0016] Further: the critic network and the target network of the critic network have the same structure;

[0017] The critic network contains an input layer with 64-dimensional input and 256-dimensional output, two fully connected layers with 256-dimensional input and 256-dimensional output, and an output layer with an input dimension of 256 and an output dimension of 1; a ReLU activation function is included in the middle of the input layer and the fully connected layer; the ReLU activation function is used after the output layer, and the output is a tensor containing the predicted reward value, which will eventually be converted into a floating point number.

[0018] Further: the process of using MADDPG to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent respectively, and obtaining the escape algorithm for the fleeing agent to escape from the chasing agent is as follows:

[0019] S31, the escaping agent interacts with the environment, obtains the corresponding current state, action, reward, next state, and task completion flag, and stores them in the experience replay pool;

[0020] S32. When the amount of data stored in the experience replay pool reaches a fixed amount, training is started, using a soft update strategy to train the actor network and the critic network at the same time, and soft updates are performed on the target network of the actor network and the target network of the critic network. The soft update method is to copy 5% of the weight change each time and update it to the corresponding target network;

[0021] S33. For the critic network, the loss LOSS_q is set as:

[0022] LOSS_q=-(reward-output_q)

[0023] Among them, reward is the reward in the experience replay pool, and output_q is the output of the critic network;

[0024] S34. For the actor network, the loss LOSS_a is set as:

[0025] LOSS_a=-f_q(state,output_action)

[0026] Among them, f_q() is the target network of the critic network, state is the current state in the experience replay pool, and action is the action generated by the neural network.

[0027] Further: the evaluation method of the completion of the escape mission is:

[0028] When the task starts N seconds later, if none of the escaping agents is successfully pursued, or when the task starts N seconds later, if there is still one escaping agent that has not been successfully pursued, the above two situations are considered to be successful escapes;

[0029] If all escaping agents are pursued within N seconds after the mission starts, the mission fails.

[0030] Further: the physical size information includes the length information and width information of the intelligent body;

[0031] The movement information includes movement speed and movement strategy;

[0032] The physical information of the pursuit environment includes the length shape of the pursuit environment, and the length information and width information of the pursuit environment when the length shape is a rectangle.

[0033] This application proposes an improved multi-agent escape algorithm based on deep reinforcement learning, aiming to improve the overall performance and efficiency of multi-agents in escape tasks through improvements and optimizations based on the MADDPG algorithm, and overcome the limitations of the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 is a flow chart of the method of the present invention;

[0036] Figure 2 is a model structure diagram of the target network of the actor network / actor network of the present invention;

[0037] Figure 3 is a model structure diagram of the critic network / target network of the critic network of the present invention;

[0038] Figure 4 It is a training flow chart of MADDPG used in the present invention. DETAILED DESCRIPTION

[0039] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Figure 1 is a flow chart of the method of the present invention;

[0042] A multi-agent escape method based on deep reinforcement learning, comprising the following steps:

[0043] S1: Obtaining the number information, physical size information, movement information and physical information of the pursuit environment of the pursuing intelligent agent and the fleeing intelligent agent; the number of the pursuing intelligent agents ≥ the number of the fleeing intelligent agents;

[0044] S2: Construct the chasing agent and the fleeing agent to generate two actor networks and two critic networks respectively, named actor network, target network of actor network, critic network, and target network of critic network;

[0045] S3: MADDPG (Multi-Agent Deep Deterministic Policy Gradient) is used to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent, and an escape algorithm is obtained for the fleeing agent to escape from the chasing agent.

[0046] S4: Test set data of the pursuing agent and the fleeing agent. The escape algorithm of the fleeing agent escaping from the pursuing agent is used for testing to obtain the completion rate of the fleeing agent's escape task.

[0047] The physical size information includes the length information and width information of the intelligent body;

[0048] The movement information includes movement speed and movement strategy;

[0049] The physical information of the pursuit environment includes the length shape of the pursuit environment, and the length information and width information of the pursuit environment when the length shape is a rectangle.

[0050] Further: the actor network has the same structure as the target network of the actor network;

[0051] The actor network includes an input layer with 20 dimensions and 256 dimensions, two fully connected layers with 256 dimensions input and 256 dimensions output, and an output layer with 256 dimensions input and 5 dimensions output; a ReLU activation function is included in the middle of the input layer and the fully connected layer;

[0052] A Sigmoid function is used after the output layer. The output will be compressed to the range of [0,1]. The maximum value of the five values ​​is determined and the action represented by the maximum value is selected, which represents forward, backward, left, right and still.

[0053] Further: the critic network and the target network of the critic network have the same structure;

[0054] The critic network contains an input layer with 64-dimensional input and 256-dimensional output, two fully connected layers with 256-dimensional input and 256-dimensional output, and an output layer with an input dimension of 256 and an output dimension of 1; a ReLU activation function is included in the middle of the input layer and the fully connected layer; the ReLU activation function is used after the output layer, and the output is a tensor containing the predicted reward value, which will eventually be converted into a floating point number.

[0055] Further: the process of using MADDPG to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent respectively, and obtaining the escape algorithm for the fleeing agent to escape from the chasing agent is as follows:

[0056] S31, the escaping agent interacts with the environment, obtains the corresponding current state, action, reward, next state, and task completion flag, and stores them in the experience replay pool;

[0057] S32: When the amount of data stored in the experience playback pool reaches a fixed number (such as 100,000), the model training part will start. Before that, the training will not start. When it reaches 100,000 or more, the first-in-first-out strategy will be used to discard historical experience and add new strategies.

[0058] Train the actor network and the critic network at the same time, and perform soft updates to the target network of the actor network and the target network of the critic network. The soft update method is to copy 5% of the weight changes each time and update them to the corresponding target network;

[0059] S33. For the critic network, the loss LOSS_q is set as:

[0060] LOSS_q=-(reward-output_q)

[0061] Among them, reward is the reward in the experience replay pool, and output_q is the output of the critic network;

[0062] S34. For the actor network, the loss LOSS_a is set as:

[0063] LOSS_a=-f_q(state,output_action)

[0064] Among them, f_q() is the target network of the critic network, state is the current state in the experience replay pool, and action is the action generated by the neural network.

[0065] The completion of the escape mission is evaluated as follows:

[0066] When the task starts N seconds later, if none of the escaping agents is successfully pursued, or when the task starts N seconds later, if there is still one escaping agent that has not been successfully pursued, the above two situations are considered to be successful escapes;

[0067] If all escaping agents are pursued within N seconds after the mission starts, the mission fails.

[0068] Embodiment 1: A multi-agent escape algorithm based on deep reinforcement learning, comprising the following steps:

[0069] Initialize the multi-agent based deep reinforcement learning environment and generate 4 chasing agents and 2 fleeing agents. The size of each agent is 0.5m long and 0.3m wide.

[0070] The maximum speed of the chasing agent is 1.1m / s.

[0071] The motion strategy of the agent is designed as follows: for each action, it can choose to move forward, backward, left, right, or stop. Each choice can impose a 0.2 m / s speed in the corresponding direction. 2 acceleration.

[0072] The agent itself has an expansion radius of 0.3m. When a chasing agent enters a circle with the agent as the center and the expansion radius, it is considered to have collided and lost its ability to move. When a fleeing agent enters a circle with the agent as the center and the expansion radius, it is considered to have successfully pursued. For the fleeing agent, it is considered to have failed to escape.

[0073] The maximum speed of the escaping agent is 1.0m / s.

[0074] The movement strategy of the escape agent is designed as follows: for each action, it can choose to move forward, backward, left, right, or stop. Each choice can impose a 0.2 m / s acceleration in the corresponding direction. 2 acceleration.

[0075] The agent itself has an expansion radius of 0.3m. When a fleeing agent enters a circle with the agent as the center and the expansion radius, it is considered to have collided and lost its ability to move. When a pursuing agent enters a circle with the agent as the center and the expansion radius, it is considered to be pursued and the escape has failed. For the pursuing agent, it is considered to have successfully escaped.

[0076] The experimental site is a rectangular scene of 20m*20m.

[0077] (2) Create an actor network, an actor’s target network, a critic network, and a critic network’s target network, and create an Adam optimizer for the actor network and the critic network.

[0078] (3) Each agent interacts with the environment and gains experience, which consists of: [current state, action, reward, next state, task completion flag].

[0079] Among them, for each chasing agent, the current state includes:

[0080] 1) Each chasing agent is the origin of the coordinate axis, with the right and top directions as the x and y axes, and the relative positions of the other three chasing agents and the two fleeing agents are calculated. For agent a, the positions of agent b will be saved as follows:

[0081] x b =x bg -x as

[0082] y b =y bg -y as

[0083] Among them, x b ,y b are the position information of agent b in the experience of agent a, x bg is the current position of agent b, x as is the x coordinate of the starting point of agent a, y as is the y coordinate of the starting point of agent a.

[0084] 2) For the location of agent a, it is saved in the following way

[0085] x a =x now -x as

[0086] y a =y now -y as

[0087] Among them, x now is the x coordinate of the current position of agent a, y now is the y coordinate of the current position of agent a.

[0088] 3) The current speed is divided into the x-axis speed and the y-axis speed. The speed synthesis will not exceed the maximum speed. The power system will automatically generate the actual speed of the two axes based on the angle between the theoretical speeds of the two axes (the result of increasing the speed after the action) and the actual maximum speed of 1.1m.

[0089] For each escaping agent, the current state includes:

[0090] 1) Each escaping agent is the origin of the coordinate axis, with the right and top directions as the x and y axes, and the relative positions of the other four chasing agents and one escaping agent are calculated. For agent a, the position of agent b will be saved as follows:

[0091] x b =x bg -x as

[0092] y b =y bg -y as

[0093] Among them, x b ,y b are the position information of agent b in the experience of agent a, x bg is the current position of agent b, x as is the x coordinate of the starting point of agent a, y as is the y coordinate of the starting point of agent a.

[0094] 2) For the location of agent a, it is saved in the following way

[0095] x a =x now -x as

[0096] y a =y now -y as

[0097] Among them, x now is the x coordinate of the current position of agent a, y now is the y coordinate of the current position of agent a.

[0098] 3) The current speed is divided into the x-axis speed and the y-axis speed. The speed synthesis will not exceed the maximum speed. The power system will automatically generate the actual speed of the two axes based on the angle between the theoretical speeds of the two axes (the result of increasing the speed after the action) and the actual maximum speed of 1.0m.

[0099] Among them, for each agent's action:

[0100] The action will be generated according to the output of the neural network. When the value is between [0,0.2), the action is forward; when the value is between [0.2,0.4), the action is backward; when the value is between [0.4,0.6), the action is left; when the value is between [0.6,0.8), the action is right; when the value is between [0.8,1.0], the action is stop.

[0101] Among them, rewards for the pursuer:

[0102] reward=-0.1×distance min +1.5×v+goal reward

[0103] Among them, distance min represents the distance to the nearest escapee, v represents the current speed, goal reward Represents the reward for chasing an obstacle, which is set to 20 here.

[0104] Among them, rewards for escapees:

[0105] reward=-0.1×distance min +2.0×v+time reward

[0106] Among them, distance min represents the distance to the nearest pursuer, v represents the current speed, and time reward represents the reward based on escape time and is defined as:

[0107] time reward =5*times

[0108] Among them, times represents the duration of the escape of the escaping agent.

[0109] Among them, for the next step status:

[0110] Each agent will move to the next position based on the previous state, current speed, action, and the calculation method described above, and the result after movement is the next state.

[0111] Among them, the calculation of the task completion flag is:

[0112] The agent itself has an expansion radius of 0.3m. When a chasing agent enters a circle with the agent as the center and the expansion radius, it is considered to have collided and lost its ability to move. When a fleeing agent enters a circle with the agent as the center and the expansion radius, it is considered to have successfully pursued. For the fleeing agent, it is considered to have failed to escape.

[0113] Figure 2 is a model structure diagram of the target network of the actor network / actor network of the present invention;

[0114] Figure 2 It is a model structure diagram of the actor network / target network of the actor network of the multi-agent escape algorithm based on deep reinforcement learning, including the following structures:

[0115] The input of the model is a 20-dimensional vector, which is [own properties, own x, own y, own x-axis speed, own y-axis speed, properties of agent 1, x of agent 1, y of agent 1, ..., properties of agent 5, x of agent 5, y of agent 5], and the output is a 256-dimensional vector.

[0116] For each fully connected layer, there is a ReLU activation function:

[0117] ReLU(x)=max(0,x)

[0118] Among them, x represents the output result of the previous layer, and max represents the maximum value function.

[0119] In the processing of the output layer, the 256-dimensional vector output by the previous layer is taken as input, and a 5-dimensional vector is output. These five vectors represent the five states of front, back, left, right, and stop. The Sigmoid function is used to process them, and the action represented by the maximum value after processing is selected. The corresponding vector represents a speed of +0.2m / s to the corresponding position. Finally, it will be calculated according to the calculation method of the current speed. Among them:

[0120] Figure 3 This is the model structure diagram of the critic network / target network of the critic network of the present invention

[0121] Figure 3 It is a model structure diagram of the critic network / critic network target network of a multi-agent escape algorithm based on deep reinforcement learning, including the following structures:

[0122] The input of the model is a 21-dimensional vector, which is [own properties, own x, own y, properties of agent 1, own speed on the x-axis, own speed on the y-axis, x of agent 1, y of agent 1, ..., properties of agent 5, x of agent 5, y of agent 5, action], and the output is a 256-dimensional vector.

[0123] For each fully connected layer, there is a ReLU activation function:

[0124] ReLU(x)=max(0,x)

[0125] Among them, x represents the output result of the previous layer, and max represents the maximum value function.

[0126] The output layer receives the 256-dimensional vector passed by the hidden layer (fully connected layer) and outputs a 1-dimensional data, which represents the reward estimate for the action.

[0127]

[0128] Figure 4 It is a training flow chart of MADDPG used in the present invention.

[0129] 1) Based on the initialization of the environment, including the initialization of the chasing agent and the initialization of the fleeing agent, for the agent, there are the corresponding actor network, the target network of the actor network, the critic network, and the target network of the critic network.

[0130] 2) According to [current status, action, reward, next status, task completion mark], the corresponding experience replay pool is formed.

[0131] 3) Environment interaction: The chasing agent and the fleeing agent are required to perform actions, and the environment gives the next state and reward based on the actions performed by the agents.

[0132] 4) Train the critic network. Based on the pursuit reward and escape reward mentioned above, use the extracted samples to calculate the target Q value and the actual Q value. The loss function of the critic network is the mean square error of the two Q values. The parameters of the critic network are updated by the gradient descent method. Figure 4 The centralized strategy described above combines the actions of multiple agents into a joint action and uses it to calculate the target Q value.

[0133] 5) The neural network parameters of the critic network are fixed, and the policy gradient method is used to update the parameters of the actor network.

[0134] 6) Use the soft update strategy to update the target network. Specifically, in each round, 5% of the weights of the actor network and the critic network are copied to the corresponding target network to maintain the stability of the target network parameters.

[0135] 7) Repeat steps 3-6 until the escape algorithm of the fleeing agent escaping the pursuing agent reaches the corresponding iteration round;

[0136] After completing the above model training, a test was conducted, with the task duration set to 90 seconds. Four chasing agents and two fleeing agents were tested in the experimental environment, and the experimental results were evaluated according to the evaluation criteria mentioned above.

[0137] The evaluation method for the escape agent to escape the chasing agent is as follows:

[0138] 90 seconds after the start of the task, if neither of the two escaping agents is successfully pursued, it is scored as 2 points; 90 seconds after the start of the task, if one of the two escaping agents is still not successfully pursued, it is scored as 1 point; the above two situations are considered to be successful escapes.

[0139] If both fleeing agents are pursued within 90 seconds after the mission begins, the mission fails and 0 points are recorded.

[0140] Based on the task completion evaluation method, the task completion rate reached 85%, and the two agents that were scored as 2 points had less than 40% of the cases where they were successfully chased. The number of tests for the above situation was greater than 100.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A multi-agent escape method based on deep reinforcement learning, Features: The following steps are involved: Obtaining information on the number, physical size, movement and physical information of the pursuit environment of the pursuing and fleeing intelligent agents and the fleeing intelligent agents; the number of the pursuing intelligent agents ≥ the number of the fleeing intelligent agents; Construct the chasing agent and the fleeing agent to generate two actor networks and two critic networks respectively, named actor network, target network of actor network, critic network, and target network of critic network; MADDPG is used to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent respectively, and an escape algorithm is obtained for the fleeing agent to escape from the chasing agent. The test of the pursuing agent and the fleeing agent is carried out by using the escape algorithm of the fleeing agent escaping from the pursuing agent to obtain the completion rate of the fleeing agent's escape task from the pursuing agent.

2. According to the multi-agent escape method based on deep reinforcement learning according to claim 1, Features: The actor network has the same structure as the target network of the actor network; The actor network includes an input layer with 20 dimensions and 256 dimensions, two fully connected layers with 256 dimensions input and 256 dimensions output, and an output layer with 256 dimensions input and 5 dimensions output; a ReLU activation function is included in the middle of the input layer and the fully connected layer; A Sigmoid function is used after the output layer. The output will be compressed to the range of [0,1]. The maximum value of the five values ​​is determined and the action represented by the maximum value is selected, which represents forward, backward, left, right and still.

3. According to the multi-agent escape method based on deep reinforcement learning according to claim 1, Features: The critic network and the target network of the critic network have the same structure; The critic network contains an input layer with 64-dimensional input and 256-dimensional output, two fully connected layers with 256-dimensional input and 256-dimensional output, and an output layer with an input dimension of 256 and an output dimension of 1; a ReLU activation function is included in the middle of the input layer and the fully connected layer; the ReLU activation function is used after the output layer, and the output is a tensor containing the predicted reward value, which will eventually be converted into a floating point number.

4. According to the multi-agent escape method based on deep reinforcement learning according to claim 1, Features: The process of using MADDPG to generate two actor networks and two critic networks for training the chasing agent and the fleeing agent respectively, and obtaining the escape algorithm for the fleeing agent to escape from the chasing agent is as follows: S31, the escaping agent interacts with the environment, obtains the corresponding current state, action, reward, next state, and task completion flag, and stores them in the experience replay pool; S32. When the amount of data stored in the experience replay pool reaches a fixed amount, training is started, using a soft update strategy to train the actor network and the critic network at the same time, and soft updates are performed on the target network of the actor network and the target network of the critic network. The soft update method is to copy 5% of the weight change each time and update it to the corresponding target network; S33. For the critic network, the loss LOSS_q is set as: LOSS_q=-(reward-output_q) Among them, reward is the reward in the experience replay pool, and output_q is the output of the critic network; S34. For the actor network, the loss LOSS_a is set as: LOSS_a-f_q(state,output_action) Among them, f_q() is the target network of the critic network, state is the current state in the experience replay pool, and action is the action generated by the neural network.

5. According to the multi-agent escape method based on deep reinforcement learning according to claim 1, Features: The completion of the escape mission is evaluated as follows: When the task starts N seconds later, if none of the escaping agents is successfully pursued, or when the task starts N seconds later, if there is still one escaping agent that has not been successfully pursued, the above two situations are considered to be successful escapes; If all escaping agents are pursued within N seconds after the mission starts, the mission fails.

6. According to the multi-agent escape method based on deep reinforcement learning according to claim 1, Features: The physical size information includes the length information and width information of the intelligent body; The movement information includes movement speed and movement strategy; The physical information of the pursuit environment includes the length shape of the pursuit environment, and the length information and width information of the pursuit environment when the length shape is a rectangle.