Multi-unmanned aerial vehicle cooperative target tracking method oriented to communication rejection environment
Through the multi-agent reinforcement learning and contrast learning framework, combined with the attention mechanism, the problem of insufficient local observations of drones in communication denial environment is solved, and effective collaboration and target tracking between drones are achieved.
Patent Information
- Application Number
- CN202411023598.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-29
AI Technical Summary
In a communication denial environment, it is difficult for many drones to infer global information through local observations, resulting in poor collaboration behavior and difficulty in effectively completing target tracking tasks.
Multi-agent reinforcement learning combined with contrast learning and attention mechanism is adopted to output auxiliary information through the contrast learning framework, helping agents obtain global information, and optimizing action decisions through the policy network and evaluation network to achieve collaboration between drones.
In the communication denial environment, by comparing the multi-agent reinforcement learning method assisted by learning, the agent can make better decisions, improve the collaboration effect between drones, and ensure the successful completion of the target tracking task.
Smart Images

Figure CN118963413A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of multi-UAV collaborative decision-making, and in particular relates to a multi-UAV collaborative target tracking method in a communication denial environment. Background Art
[0002] In recent years, unmanned aerial vehicles (UAVs) have been widely used in various fields such as military early warning, detection, and rescue. One of its prototype tasks is mobile target tracking. When performing tracking tasks, sensor technology is used to locate mobile targets, and the control system executes action decisions based on effective information input to achieve approach and tracking of the target. Therefore, the decision-making control algorithm is the key for UAVs to achieve autonomous tracking of mobile targets. Deep reinforcement learning emphasizes the learning of the mapping from the environment to the behavior of the intelligent agent, and finds the most correct action decision by maximizing the value function, which is consistent with the decision-making and control requirements of UAVs. Therefore, some scholars have applied deep reinforcement learning technology to UAV target tracking tasks and have achieved certain results. A meta-reinforcement learning-based UAV autonomous obstacle avoidance and target tracking method (Meta-reinforcement learning-based UAV autonomous obstacle avoidance and target tracking, Jiang Weilai, Wu Jun, Wang Yaonan, School of Electrical and Information Engineering, Hunan University, Changsha, Hunan), improves the training efficiency and decision-making effect of the original reinforcement learning, but it does not consider the multi-UAV mission scenario; for the problem of obstacle avoidance and tracking of UAV clusters, a decoupled multi-agent deep deterministic policy gradient algorithm is proposed (Wen Chao, Dong Wenhan, Jie Wujie, Cai Ming, Hu Duoxiu, Air Force Engineering University, Xi'an, Shaanxi), which has strong accuracy and real-time performance, but it assumes that there is communication between UAV clusters and has certain limitations; Research on the applicability of reinforcement learning methods in the problem of multi-UAV target search in a communication-denied battlefield simulation environment (Wang Liang, Wang Wen, Wang Yuyou, Hou Songlin, Qiao Yuzhe, Wu Tianheng, Tao Xianping, National Key Laboratory of New Technologies in Computer Software, Nanjing University) verifies the applicability of reinforcement learning in the multi-UAV target search task in a communication-denied environment, but does not consider how to enhance the collaborative ability between UAVs.
[0003] Most existing results assume that the communication between drones or between drones and ground stations is in good condition, so that the position and other status information of other drones can be directly obtained to complete the target tracking task. In reality, many scenarios often have poor or no communication conditions, so multiple drones need to complete the tracking task collaboratively only through their own sensors and maintain collision avoidance between drones. Multi-agent deep reinforcement learning is one of the effective tools to solve the multi-drone target tracking task. The framework of centralized training and distributed execution is usually used to train drones. Agents can be guided by the same signal, such as global state, during centralized training. However, during execution, if they are in a communication-denied environment, the agent lacks shared signals and can only choose operations based on local observations. This is particularly serious in partially observable Markov decision processes, where the lack of common guidance makes it difficult for drones to form good collaborative behaviors. Therefore, it is necessary to make full use of the local observations of the agent and then infer global information to help the agent make better decisions. Summary of the invention
[0004] The technical problem to be solved by the present invention is: in view of the technical problems existing in the prior art, based on the above background, the present invention proposes a multi-UAV collaborative target tracking method in a communication denial environment.
[0005] The present invention is achieved by at least one of the following technical solutions.
[0006] A multi-UAV cooperative target tracking method in a communication denial environment includes the following steps:
[0007] S1. Set the relevant elements of the multi-agent learning system, including agent state type and dimension, action type and dimension, reward function, and related hyperparameters;
[0008] S2, build multi-agent strategy network, evaluation network and comparative learning framework;
[0009] S3. Establish a simulation environment for multi-UAV target tracking. Through the interaction between the UAV agent and the environment, obtain the agent observation information, part of the environment information and reward information, and store them in the experience replay pool for subsequent training.
[0010] S4. By sampling data from the experience pool, the reinforcement learning objectives and contrastive learning objectives are optimized simultaneously through centralized training-distributed execution. The auxiliary information output by the contrastive learning framework can help the intelligent agent obtain additional global information. After training to convergence, the obtained policy network is used to generate the actions to be performed by the drone.
[0011] Furthermore, the step S1 comprises:
[0012] Step 1-1, setting multiple drones and the number and type of mobile targets to be tracked, where the drones are homogeneous;
[0013] Step 1-2: Combined with the actual requirements of the multi-UAV target tracking task, the UAV state observation information set O is set as:
[0014] O=[O vec , O img ]
[0015] Among them, vec Represents the observation information in the form of a common vector, that is, and Represents the speed of the drone itself in the X-axis and Y-axis directions; and Represents the coordinate difference between the drone and the target in the X-axis and Y-axis directions; img Represents the deep image information acquired by the drone’s onboard camera, and the global state is the combination of all drones’ local observations;
[0016] Steps 1-3: Based on the actual requirements of the multi-UAV target tracking task, set the UAV action A to:
[0017]
[0018] in, is the velocity component of the drone along the X and Y axes. In addition, the speed of the drone is constrained in Respectively represent the minimum and maximum speed of the drone;
[0019] Step 1-4: When the drone is performing the target tracking task, it needs to consider the two subtasks of tracking close to the target and avoiding collision at the same time, and define the reward function R:
[0020] R=λ1*r track +λ2*r avoid
[0021] Set the tracking reward r of the drone track and collision avoidance reward r avoid , and the weighted sum of the two is taken as the total reward obtained by the drone, where λ1 and λ2 represent the weight coefficients of the tracking reward and the collision avoidance reward respectively;
[0022] Steps 1-5: Set the reinforcement learning hyperparameters and task-related parameters, including: sampling batch size, learning rate, total number of training rounds, length of each round, discount factor, initial position coordinates of multiple drones, initial coordinates of the target and speed, number of obstacles in the environment, maximum and minimum speeds of drones, and flight altitude of drones.
[0023] Furthermore, the depth image of the drone's front-view camera is used as part of the state input, not the RGB image. The depth map provides the drone with implicit information for obstacle avoidance, and after being processed by the network, it can more effectively learn the semantic information of the surrounding environment.
[0024] Furthermore, four consecutive frames of images obtained by the depth camera are stacked to help the network learn the ability to process temporal information.
[0025] Furthermore, when the distance between the drone and the target is greater than the expected distance, if the drone moves toward the target, it will be given a certain positive reward, otherwise it will be given a corresponding penalty; when the distance between the drone and the target is already within the expected distance and greater than the minimum distance, the drone will be given a fixed positive reward; when the distance between the drone and the target is less than the minimum distance, the drone will be given a fixed negative reward as a penalty.
[0026] Furthermore, when setting the collision avoidance reward function, when the distance between the drone and the surrounding obstacles is less than the set minimum safety distance, a negative reward is given to the drone, otherwise a positive reward is given; when the drone collides with an obstacle, a larger negative reward is given to help the drone learn collision avoidance behavior.
[0027] Furthermore, the step S2 comprises:
[0028] Step 2-1, establish the MASAC algorithm, which is a model-free off-policy multi-agent deep reinforcement learning algorithm. The centralized training-distributed execution CTDE training framework is used to expand the Soft Actor-Critic (SAC) algorithm to multi-agent continuous tasks, train multiple agents in a continuous action space, and use it in multi-UAV collaborative target tracking tasks; introduce parameter sharing techniques to improve the learning speed and convergence efficiency of the algorithm;
[0029] Step 2-2: Construct the policy network in the MASAC algorithm, that is, the Actor policy network. For the input observation o i , the output action a of the policy network i It is expressed as:
[0030]
[0031] Among them, ti is the global information output by the student network in the comparative learning framework, μ is the parameter of the policy network, is the agent strategy;
[0032] Step 2-3: Construct the evaluation network in the MASAC algorithm, namely the Critic. In order to alleviate overestimating, Clip Double Q learning is used to learn two evaluation networks θ1 and θ2. According to the observation information set O of all drone agents at the current moment, N ={o1,o2,…o n}, action set A = {a1, a2, .., a n}, and the corresponding global information set Y G ={y1,y2,…y n}, and then calculate the centralized state-value function Q; o n and a n are the observation and action of the nth agent, y n The global information of the nth agent inferred by the contrastive learning framework;
[0033] Step 2-4: Construct two target networks of the Critic evaluation network and The weights of the two evaluation networks θ1 and θ2 are copied to their respective target networks, that is,
[0034] Step 2-5: Construct a contrastive learning network, including a student network and teacher network The two have the same network architecture, namely, it consists of a backbone part and a projector part. The backbone part includes a multi-head attention layer and a fully connected layer, and the projector part includes a fully connected layer.
[0035] Furthermore, the step S3 comprises:
[0036] Step 3-1, initialize the parameters of the Airsim simulation environment, including the initial position coordinates of multiple drones, the initial coordinates and speed of the target, the number of obstacles in the environment, the maximum and minimum speeds of the drones, and the flight altitude of the drones; initialize the strategy network, evaluation network, comparative learning network and experience pool, and obtain the initial state observation of the drone agent;
[0037] Step 3-2: Calculate the global observation based on the initial observation of the agent;
[0038] Step 3-3: Input the initial observation and global observation of the agent into the policy network to calculate the action of the agent;
[0039] Step 3-4: Multiple agents perform actions and receive corresponding rewards.
[0040] Step 3-5: Store the trajectory information obtained in the above process in the experience pool for subsequent training.
[0041] Furthermore, a domain randomization method is used to improve the robustness of the network model. That is, in the initialization stage of each environment, the positions of drones and static obstacles in the environment are randomly generated, thereby helping the network model to train a more generalized strategy.
[0042] Furthermore, the step S4 comprises:
[0043] Step 4-1: Sample a batch of trajectory data B from the experience pool for training;
[0044] Step 4-2: Using the local observations of all agents in the same trajectory sequence, contrastive learning is used to infer global information from the local observations of the agents, and the observation information of all drone agents at the same time step is sampled from the experience pool, which is expressed as the following sequence:
[0045] O N ={o1,o2,…o n}
[0046] Among them n is the observation of the nth UAV;
[0047] The sequence is input into the student and teacher networks respectively, and the output is Y G and where Y G as follows:
[0048] {y1,y2,…y n}
[0049] where y n The global information of the nth UAV inferred by the contrastive learning framework;
[0050] Y G and Through contrastive learning, the agent can infer global information from local observations, thus helping it make better decisions;
[0051] The global observation information is extracted by constructing an attention integration module (AIM); the attention weight uses a self-attention mechanism to obtain global information for each agent: given the hidden states of two agents, the attention weight is obtained by using a bilinear mapping and then normalized using a softmax function, as shown below:
[0052]
[0053] In the formula, W k and W q are two learnable linear transformations, representing key and query respectively; is the attention weight coefficient of the ith agent, W k The transpose of h j The transpose of h i is the hidden state of agent i; in order to extract more diverse global information, multiple attention heads are used and their outputs are connected together;
[0054] By using the relative weight of each agent, the global information is obtained as the weighted sum of all other agents:
[0055]
[0056] Among them, y i is the global information of agent i, w i,j is the attention weight coefficient of agent i, h j is the hidden state of agent j;
[0057] Step 4-3: The global information y of agent i i and local observation o i Concatenate them as new agent observations and input them into the policy network and evaluation network for reinforcement learning training;
[0058] Step 4-4: Update the policy network and evaluation network. The loss function of the policy network is as follows:
[0059]
[0060] Where is the batch size of sampling, O is the local observation of all agents, A is the action of all agents, in is the loss function of the policy network, π μ is the agent strategy, is the evaluation network, Y is the set of global information of all agents;
[0061] The loss function of the evaluation network is:
[0062]
[0063] Where j = 1, 2, y target is the target Q value; Q i,j and J(θ i,j ) is the evaluation network and its loss function;
[0064] Step 4-4: In order to realize the adaptive entropy temperature coefficient, the entropy temperature coefficient is updated using the following loss function:
[0065]
[0066] Among them, H is the target strategy entropy; α and J(Δ) are the temperature coefficients and their loss functions;
[0067] Step 4-5: Use the soft update method to update the target evaluation network using the following loss function:
[0068]
[0069] Where j = 1, 2, τ is the soft update coefficient; θ j and They are the evaluation network and its corresponding target evaluation network respectively;
[0070] Steps 4-6: While updating the policy network and the evaluation network, the contrastive learning network is also updated. The design idea of the contrastive loss is that the reconstructed features should be similar to the corresponding original features, and different from other features. The parameters of the teacher network are updated based on the parameters of the student network through the exponential moving average EMA, that is, the momentum encoder.
[0071] Compared with the prior art, the present invention has the following beneficial effects:
[0072] Aiming at the task of collaborative target tracking of multiple UAVs in a communication denial environment, the present invention proposes a multi-agent reinforcement method ACLR based on the assistance of attention contrastive learning. This method uses contrastive learning to compare the local observation of a single agent with the attention fusion of the local observations of all agents in the form of invariance, so that the processed information can contain global information to a certain extent. By splicing the processed information with the original observation information of the agent and using them as the input of the policy network, some of the observable problems of the agent during execution are alleviated, the collaborative effect between UAVs is promoted, and the target tracking task can be better completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1This is a framework diagram of a method for multi-UAV cooperative target tracking in a communication denial environment according to an embodiment;
[0074] Figure 2 It is a schematic diagram of a task scenario constructed in the Airsim simulation environment according to an embodiment of the present invention;
[0075] Figure 3 is a curve diagram showing changes in average rewards obtained by the drone agent during the training process of an embodiment of the present invention;
[0076] Figure 4 is a curve diagram of the distance change between the drone and the obstacle during the test process of the embodiment of the present invention;
[0077] Figure 5 is a curve diagram of distance variation between each UAV during the test process of the embodiment of the present invention;
[0078] Figure 6 is a curve diagram of the distance change between the UAV and the target during the test process of the embodiment of the present invention;
[0079] Figure 7 is a speed change curve diagram of each drone during the test process of the embodiment of the present invention;
[0080] Figure 8 is a schematic diagram of the tracking trajectory of the UAV during the test process of the embodiment of the present invention;
[0081] Fig. 9 is a diagram of cooperation analysis between drones during the test process of an embodiment of the present invention;
[0082] Fig.10 The present invention is a flowchart of a method for multi-UAV collaborative target tracking in a communication denial environment according to an embodiment of the present invention. DETAILED DESCRIPTION
[0083] The present invention is further described in detail below in conjunction with embodiments and drawings, but the implementation manner of the present invention is not limited to these embodiments.
[0084] like Figure 1 , Fig.10 As shown, the multi-UAV cooperative target tracking method for communication denial environment described in this example uses multi-agent deep reinforcement learning to train the distributed target tracking strategy of multiple UAVs in a communication-free obstacle environment. At the same time, in order to solve the local observation problem caused by the inability to communicate between UAVs during strategy execution, attention mechanism and contrastive learning are introduced to infer global information, thereby assisting UAVs to make better decisions, including the following steps:
[0085] S1. Set the relevant elements of the multi-agent learning system, including agent state type and dimension, action type and dimension, reward function, and algorithm-related hyperparameters;
[0086] Step 1-1: In this example, the number of drones is set to 3 and the target to be tracked is 1; the drones are homogeneous; and according to this setting, the corresponding environment is built in the Airsim simulation environment, such as Figure 2 As shown;
[0087] Step 1-2: Combined with the actual requirements of the multi-UAV target tracking task, the state observation information of the UAV is set as follows:
[0088] O=[O vec , O img ]
[0089] Among them, vec Represents the observation information in the form of a common vector, that is, and Represents the speed of the drone itself in the X-axis and Y-axis directions; and Represents the coordinate difference between the drone and the target in the X-axis and Y-axis directions; img Represents the depth image information obtained by the drone's onboard camera, and its resolution is set to 84×84 in this example. Since the mission setting is non-communication, the image provides the drone with implicit information for obstacle avoidance, including obstacle avoidance between the drone and static obstacles in the environment, and collision avoidance between drones. The global state is the combination of all drone local observations.
[0090] Steps 1-3: Based on the actual requirements of the multi-UAV target tracking task, set the UAV actions as follows:
[0091]
[0092] in, are the velocity components of the drone along the X and Y axes. In addition, the velocity of the drone is constrained: in Represent the minimum and maximum speeds of the drone, respectively. In this example, they are set to -3m / s and 3m / s respectively.
[0093] Step 1-4, define the reward function:
[0094] R=λ1*r track +λ2*r avoid
[0095] When the drone is performing the target tracking task, it needs to consider the two subtasks of tracking close to the target and avoiding collision at the same time. Based on this, the tracking reward r of the drone is set. track and collision avoidance reward r avoid , and the weighted sum of the two is taken as the total reward obtained by the drone. Among them, λ1 and λ2 represent the weight coefficients of tracking reward and collision avoidance reward respectively, which are set to 2 and 1 respectively in this example
[0096] When the distance between the drone and the target is greater than the expected distance, if the drone moves towards the target, it will be given a certain positive reward, otherwise it will be given a corresponding penalty; when the distance between the drone and the target is already within the expected distance and greater than the minimum distance, the drone will be given a fixed positive reward; when the distance between the drone and the target is less than the minimum distance, the drone will be given a fixed negative reward as a penalty.
[0097] When setting the collision avoidance reward function, when the distance between the drone and the surrounding obstacles is less than the set minimum safety distance, the drone is given a negative reward, otherwise it is given a positive reward; when the drone collides with an obstacle, a larger negative reward is given to help the drone learn collision avoidance behavior;
[0098] Steps 1-5: This example sets the reinforcement learning hyperparameters and task-related parameters, including: sampling batch size, learning rate, total number of training rounds, length of each round, discount factor, initial position coordinates of multiple drones, initial coordinates of the target and speed, number of obstacles in the environment, maximum and minimum speeds of drones, and flight altitude of drones.
[0099] As an embodiment, the sampling batch size is set to 256, the learning rate is 3e-4, the total number of training rounds is 450K, the length of each round is 300, the discount factor is 0.99, etc.; the initial position coordinates of multiple UAVs are (0, 0, 0), (0, 10, 0), (0, -10, 0), the initial coordinates of the target are (10, 0, 0), the speed is (random (-1, 1), 0.5, 0), the number of obstacles in the environment is 11, the UAV flight altitude is 10m, etc.
[0100] S2. Constructing multi-agent strategy network, value network and contrastive learning framework:
[0101] Step 2-1: Using the centralized training-distributed execution (CTDE) training framework, the SAC algorithm is extended to multi-agent continuous tasks, and the MASAC algorithm is proposed. This algorithm is a model-free off-policy multi-agent deep reinforcement learning algorithm that can train multiple agents in a continuous action space, and is therefore suitable for multi-UAV collaborative target tracking tasks.
[0102] As an embodiment, considering that multiple drones are homogeneous, parameter sharing techniques are introduced to help improve the learning speed and convergence efficiency of the algorithm. A contrastive learning framework is established using a structure similar to DINO to help the agent infer some global information from local information, thereby optimizing the decision-making effect.
[0103] Step 2-2: Construct the policy network in the MASAC algorithm, namely the Actor policy network. i , the output action a of the policy network i It is expressed as:
[0104]
[0105] Among them, y i is the global information output by the student network in the contrastive learning framework, μ is the parameter of the policy network; is the agent strategy;
[0106] Step 2-3: Construct the evaluation network in the MASAC algorithm, namely the Critic evaluation network. In order to alleviate Overestimating, Clip Double Q learning is used, so it is necessary to learn two evaluation networks θ1 and θ2. According to the observation set O = {o1, o2, ...o n}, action set A = {a1, a2, .., a n}, and the corresponding global information set Y G ={y1,y2,…y n}, and then calculate the centralized state-value function Q; o n and a n are the observation and action of the nth agent, y n The global information of the nth agent inferred by the contrastive learning framework;
[0107] Step 2-4: To ensure the stability of learning, construct two target networks of the Critic evaluation network and Copy the weights of the evaluation networks θ1 and θ2 to their respective target networks, i.e.
[0108] Step 2-5: Construct a contrastive learning network. Specifically, a twin network framework similar to DINO is used, including a student network and teacher network The two have the same network architecture, which consists of a backbone part and a projector part. The backbone part consists of a multi-head attention layer and a fully connected layer, and the projector part consists of a fully connected layer.
[0109] S3. Establish a simulation environment for multi-UAV target tracking. Through the interaction between the UAV agent and the environment, obtain the agent observation information, part of the environment information and reward information, and store them in the experience replay pool for subsequent training:
[0110] Step 3-1, initialize the Airsim simulation environment parameters, including the initial position coordinates of multiple drones, the initial coordinates and speed of the target, the number of obstacles in the environment, the maximum and minimum speeds of drones, the flight altitude of drones, etc. Initialize all neural networks and experience pools, and obtain the initial state observations of the drone agent;
[0111] Step 3-2: Calculate the global observation based on the initial observation of the agent;
[0112] Step 3-3: Input the agent's initial observation and global observation into the policy network. Calculate the agent's actions;
[0113] Step 3-4: Multiple agents perform actions and receive corresponding rewards.
[0114] Step 3-5: Store the trajectory information obtained in the above process in the experience pool for subsequent training.
[0115] S4: By sampling data from the experience pool, the reinforcement learning objectives and contrastive learning objectives are optimized simultaneously through centralized training-distributed execution. The auxiliary information output by the contrastive learning framework can help the agent obtain additional global information. After training to convergence, the obtained policy network is used to generate the actions to be performed by the drone:
[0116] Step 4-1: Sample a batch of trajectory data B from the experience pool for training;
[0117] Step 4-2: Use the local observations of all agents in the same trajectory sequence and use contrastive learning to infer global information from the local observations of the agents. Specifically, sample the observations of all agents at the same time step from the experience pool and express them as the following sequence:
[0118] O N ={o1,o2,…o n}
[0119] The sequence is input into the student and teacher networks respectively, and the output is Y G and where Y Gas follows:
[0120] {y1,y2,…y n}
[0121] Y G and By performing contrastive learning, the agent can infer global information from local observations, thereby helping it make better decisions. The extraction of global observation information is achieved by building an attention integration module (AIM). Specifically, the attention weight uses a self-attention mechanism to obtain global information for each agent: given the hidden states of two agents, the attention weight can be obtained by using a bilinear mapping and then normalizing it with a softmax function, as shown below:
[0122]
[0123] In the above formula, W k and W q are two learnable linear transformations, representing “key” and “query” respectively. is the attention weight coefficient of the ith agent, W k The transpose of h j The transpose of h i is the hidden state of agent i. In addition, to extract more diverse global information, we use multiple attention heads and concatenate their outputs together.
[0124] By using the relative weight of each agent, the global information can be obtained as the weighted sum of all other agents:
[0125]
[0126] Among them, y i is the global information of agent i, w i,j is the attention weight coefficient of agent i, h j is the hidden state of agent j;
[0127] Step 4-3: The global information y of agent i i and local observation o i Concatenate them as new agent observations and input them into the policy network and value network for reinforcement learning training;
[0128] Step 4-4: Update the policy network and value network. Specifically, the loss function of the policy network is as follows:
[0129]
[0130] Where is the batch size of sampling, O is the local observation of all agents, A is the action of all agents, in is the loss function of the policy network, π μ is the agent strategy, is the evaluation network, Y is the set of global information of all agents;
[0131] The loss function of the evaluation network is:
[0132]
[0133] Where j = 1, 2, y target is the target Q value; Q i,j and J(θ i,j ) is the evaluation network and its loss function;
[0134] Step 4-4: In order to realize the adaptive entropy temperature coefficient, the entropy temperature coefficient is updated using the following loss function:
[0135]
[0136] Among them, H is the target strategy entropy; α and J(α) are the temperature coefficients and their loss functions;
[0137] Step 4-5: Use soft update to update the target value network using the following loss function:
[0138]
[0139] Where j = 1, 2, τ is the soft update coefficient; θ j and They are the evaluation network and its corresponding target evaluation network respectively;
[0140] Step 4-6: While updating the policy network and the value network, update the contrastive learning network simultaneously. The design idea of contrastive loss is that the reconstructed features should be similar to the corresponding original features and different from other features. The parameters of the teacher network are updated based on the parameters of the student network through the exponential moving average (EMA), also known as the momentum encoder. Figure 3 This is a curve chart of the average reward obtained by the UAV agent during the training process. From the figure, we can see that the reward obtained by the UAV continues to increase and eventually converges to a higher level, which means that the UAV has learned an effective target tracking strategy.
[0141] After the training is completed, the trained strategy is deployed on the drone to verify the learning effect of the algorithm. Figure 4 It is a curve diagram of the distance change between the drone and the obstacle during the test, which reflects that each drone can maintain a safe distance from the obstacle during the tracking process and will not collide; Figure 5 It is a curve diagram of the distance change between each drone during the test, which reflects that each drone moves closer to the target in the initial stage of tracking, so the distance between drones will decrease. When all drones arrive near the target, they will maintain a certain formation to follow the target, and no collision between drones will occur; Figure 6 This is a curve chart of the distance change between the drone and the target during the test. It can be seen that the drone can quickly catch up with the target and continue to follow after reaching the vicinity of the target; Figure 7 This is a curve diagram of the speed change of each drone during the test. It can be seen that in the early stage of tracking, the drone tracks the target at a relatively high speed. When it reaches the vicinity of the target, it automatically adjusts its own speed to continuously follow the target. Figure 8 This is a schematic diagram of the tracking trajectory of the drone during the test, where Figure 8 (a), (b), and (c) reflect that the UAV is accelerating to track the target, while Figure 8 (d), (e), and (f) reflect that the UAV continues to follow the target; Fig. 9 This is a diagram of the collaboration between drones during the test. Fig. 9 (a), (b), and (c) reflect that the UAV accelerates to track the target from different initial positions. Fig. 9 (d), (e), and (f) reflect that multiple UAVs adjust their own speeds to form a certain spatial distribution for coordinated tracking of the target. From the above analysis, it can be seen that the method of the present invention has high learning efficiency and superior performance in the multi-UAV target tracking task in a communication denial environment.
[0142] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A multi-UAV cooperative target tracking method in communication denial environment, Features: The following steps are involved: S1. Set the relevant elements of the multi-agent learning system, including agent state type and dimension, action type and dimension, reward function, and related hyperparameters; S2, build multi-agent strategy network, evaluation network and comparative learning framework; S3. Establish a simulation environment for multi-UAV target tracking. Through the interaction between the UAV agent and the environment, obtain the agent observation information, part of the environment information and reward information, and store them in the experience replay pool for subsequent training. S4. By sampling data from the experience pool, the reinforcement learning objectives and contrastive learning objectives are optimized simultaneously through centralized training-distributed execution. The auxiliary information output by the contrastive learning framework can help the intelligent agent obtain additional global information. After training to convergence, the obtained policy network is used to generate the actions to be performed by the drone.
2. According to the method of claim 1, a multi-UAV cooperative target tracking method in a communication denial environment, It is characterized in that The step S1 comprises: Step 1-1, setting multiple drones and the number and type of mobile targets to be tracked, where the drones are homogeneous; Step 1-2: Combined with the actual requirements of the multi-UAV target tracking task, the UAV state observation information set O is set as: O=[O vec ,The img [ Among them, vec Represents the observation information in the form of a common vector, that is, and Represents the speed of the drone itself in the X-axis and Y-axis directions; and Represents the coordinate difference between the drone and the target in the X-axis and Y-axis directions; img Represents the deep image information acquired by the drone’s onboard camera, and the global state is the combination of all drones’ local observations; Steps 1-3: Based on the actual requirements of the multi-UAV target tracking task, set the UAV action A to: in, is the velocity component of the drone along the X and Y axes. In addition, the speed of the drone is constrained in Respectively represent the minimum and maximum speed of the drone; Step 1-4: When the drone is performing the target tracking task, it needs to consider the two subtasks of tracking close to the target and avoiding collision at the same time, and define the reward function R: R=λ 1 *r track +λ 2 *r avoid Set the tracking reward r of the drone track and collision avoidance reward r avoid , and the weighted sum of the two is taken as the total reward obtained by the drone, where λ 1 , 2 Respectively represent the weight coefficients of tracking reward and collision avoidance reward; Steps 1-5: Set the reinforcement learning hyperparameters and task-related parameters, including: sampling batch size, learning rate, total number of training rounds, length of each round, discount factor, initial position coordinates of multiple drones, initial coordinates of the target and speed, number of obstacles in the environment, maximum and minimum speeds of drones, and flight altitude of drones.
3. According to the method for multi-UAV cooperative target tracking in a communication denial environment described in claim 2, It is characterized in that The depth image of the drone's front-view camera is used as part of the state input, and the depth map of the non-RGB image provides the drone with implicit information for obstacle avoidance.
4. According to the method for multi-UAV cooperative target tracking in a communication denial environment described in claim 2, It is characterized in that Four consecutive frames of images obtained by the depth camera are stacked to help the network learn the ability to process temporal information.
5. According to the method of claim 2 for multi-UAV cooperative target tracking in a communication denial environment, It is characterized in that When the distance between the drone and the target is greater than the expected distance, if the drone moves towards the target, it will be given a certain positive reward, otherwise it will be given a corresponding penalty; when the distance between the drone and the target is already within the expected distance and greater than the minimum distance, the drone will be given a fixed positive reward; when the distance between the drone and the target is less than the minimum distance, the drone will be given a fixed negative reward as a penalty.
6. According to the method of claim 2 for multi-UAV cooperative target tracking in a communication denial environment, It is characterized in that When setting the collision avoidance reward function, when the distance between the drone and the surrounding obstacles is less than the set minimum safety distance, the drone is given a negative reward, otherwise it is given a positive reward; when the drone collides with an obstacle, a larger negative reward is given to help the drone learn collision avoidance behavior.
7. According to the method of claim 1 for multi-UAV cooperative target tracking in a communication denial environment, It is characterized in that The step S2 comprises: Step 2-1, establish the MASAC algorithm, which is a model-free off-policy multi-agent deep reinforcement learning algorithm. The centralized training-distributed execution CTDE training framework is used to expand the soft actor-critic algorithm SAC to multi-agent continuous tasks, train multiple agents in a continuous action space, and use it in multi-UAV collaborative target tracking tasks; introduce parameter sharing techniques to improve the learning speed and convergence efficiency of the algorithm; Step 2-2: Construct the policy network in the MASAC algorithm, that is, the Actor policy network. For the input observation o i , the output action a of the policy network i It is expressed as: Among them, y i is the global information output by the student network in the comparative learning framework, μ is the parameter of the policy network, is the agent strategy; Step 2-3: Construct the evaluation network in the MASAC algorithm, that is, the evaluation network. To alleviate overfitting, truncated double Q learning is used to learn two evaluation networks θ 1 and θ 2 ; According to the observation information set O of all UAV agents at the current moment N ={o 1 ,o 2 ,…o n }, action set A = {a 1 ,a 2 ,..,a n }, and the corresponding global information set Y G ={y 1 ,y 2 ,…y n }, and then calculate the centralized state-value function Q; o n and a n are the observation and action of the nth agent, y n The global information of the nth agent inferred by the contrastive learning framework; Step 2-4: Construct two target networks of the Critic evaluation network and The two evaluation networks θ 1 and θ 2 The weights of are copied to their respective target networks, i.e. Step 2-5: Construct a contrastive learning network, including a student network and teacher network θT , the two have the same network architecture, that is, they consist of a backbone part and a projection head part. The backbone part includes a multi-head attention layer and a fully connected layer, and the projector part includes a fully connected layer.
8. According to the method of claim 1, a multi-UAV cooperative target tracking method in a communication denial environment, It is characterized in that The step S3 comprises: Step 3-1, initialize the parameters of the Airsim simulation environment, including the initial position coordinates of multiple drones, the initial coordinates and speed of the target, the number of obstacles in the environment, the maximum and minimum speeds of the drones, and the flight altitude of the drones; initialize the strategy network, evaluation network, comparative learning network and experience pool, and obtain the initial state observation of the drone agent; Step 3-2: Calculate the global observation based on the initial observation of the agent; Step 3-3: Input the initial observation and global observation of the agent into the policy network to calculate the action of the agent; Step 3-4: Multiple agents perform actions and receive corresponding rewards. Step 3-5: Store the trajectory information obtained in the above process in the experience pool for subsequent training.
9. According to claim 8, a method for multi-UAV cooperative target tracking in a communication denial environment, It is characterized in that The Airsim simulation environment initialization method uses domain randomization to improve the robustness of the network model. In the initialization stage of each environment, the positions of drones and static obstacles in the environment are randomly generated.
10. According to the method of claim 1 for multi-UAV cooperative target tracking in a communication denial environment, It is characterized in that The step S4 comprises: Step 4-1: Sample a batch of trajectory data B from the experience pool for training; Step 4-2: Using the local observations of all agents in the same trajectory sequence, contrastive learning is used to infer global information from the local observations of the agents, and the observation information of all drone agents at the same time step is sampled from the experience pool, which is expressed as the following sequence: The N ={o 1 ,o 2 ,…the n } Among them n is the observation of the nth UAV; The sequence is input into the student and teacher networks respectively, and the output is Y G and where Y G as follows: {and 1 ,and 2 ,…and n } where y n The global information of the nth UAV inferred by the contrastive learning framework; Y G and Through contrastive learning, the agent can infer global information from local observations, thus helping it make better decisions; The global observation information is extracted by constructing an attention integration module (AIM); the attention weight uses a self-attention mechanism to obtain global information for each agent: given the hidden states of two agents, the attention weight is obtained by using a bilinear mapping and then normalized using a softmax function, as shown below: In the formula, W k and W q are two learnable linear transformations, representing key and query respectively; is the attention weight coefficient of the ith agent, W k The transpose of h j The transpose of h i is the hidden state of agent i; in order to extract more diverse global information, multiple attention heads are used and their outputs are connected together; By using the relative weight of each agent, the global information is obtained as the weighted sum of all other agents: Among them, y i is the global information of agent i, w i,j is the attention weight coefficient of agent i, h j is the hidden state of agent j; Step 4-3: The global information y of agent i i and local observation o i Concatenate them as new agent observations and input them into the policy network and evaluation network for reinforcement learning training; Step 4-4: Update the policy network and evaluation network. The loss function of the policy network is as follows: Where is the batch size of sampling, O is the local observation of all agents, A is the action of all agents, in is the loss function of the policy network, π μ is the agent strategy, is the evaluation network, Y is the set of global information of all agents; The loss function of the evaluation network is: Where j = 1, 2, y target is the target Q value; Q i,j and J(θ i,j ) is the evaluation network and its loss function; Step 4-4: In order to realize the adaptive entropy temperature coefficient, the entropy temperature coefficient is updated using the following loss function: Among them, H is the target strategy entropy; α and J(α) are the temperature coefficients and their loss functions; Step 4-5: Use the soft update method to update the target evaluation network using the following loss function: Where j = 1, 2, τ is the soft update coefficient; θ j and They are the evaluation network and its corresponding target evaluation network respectively; Steps 4-6: While updating the policy network and the evaluation network, the contrastive learning network is also updated. The design idea of the contrastive loss is that the reconstructed features should be similar to the corresponding original features, and different from other features. The parameters of the teacher network are updated based on the parameters of the student network through the exponential moving average EMA, that is, the momentum encoder.
Citation Information
Patent Citations
Knowledge tracking method based on comparative learning and memory mechanism
CN115906997A
Unmanned aerial vehicle cluster autonomous cooperation method in communication denial environment
CN117389333A
Dynamic multi-target interference channel allocation and power decision method
CN117580166A
Cluster collaborative target search method based on digital twinning and deep reinforcement learning
CN117930863A
Method for estimating dynamic target of unmanned aerial vehicle in information rejection environment
WO2024120187A1
Cited By
Multi-rotor aircraft cooperative target tracking method based on adaptive attitude correction
CN120469449A
Multi-agent robot football attack and defense strategy learning method and device based on attention communication
CN121167592A
Weld joint intelligent defect detection model training method, detection method and electronic equipment
CN122199516A
Multi-agent cross-end cooperative control method and system based on deep reinforcement learning
CN122632601A
