Unmanned aerial vehicle cluster path planning method and system based on multi-agent reinforcement learning

The multi-agent reinforcement learning method is used to realize fast and efficient path planning of UAV swarms in unknown environments, which solves the problems of low path search efficiency and local optimal solutions of traditional methods in complex environments, and realizes the planning of UAV swarms. Autonomous obstacle avoidance flight and trajectory planning.

CN118760233APending Publication Date: 2024-10-11AEROSPACE SCI & IND GRP INTELLIGENT TECH RES INST CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410988348.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Traditional UAV path planning methods have low path search efficiency or fall into local optimal solutions in complex and changeable environments, and are difficult to meet real-time requirements in unknown environments.

Method used

Using a UAV swarm path planning method based on multi-agent reinforcement learning, by establishing a UAV swarm collaborative exploration game model with a partially observable Markov decision-making process, airborne sensor information is used to achieve fast and efficient paths in unknown environments. planning.

Benefits of technology

Realize UAV clusters to quickly and efficiently complete material transportation and emergency rescue tasks in unknown environments, and autonomous obstacle avoidance flight and trajectory planning to meet real-time and efficiency requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760233A_ABST
    Figure CN118760233A_ABST
Patent Text Reader

Abstract

The invention provides an unmanned aerial vehicle cluster path planning method and system based on multi-agent reinforcement learning, and the method comprises the steps: standardizing a cluster collaborative exploration problem as a partially observable Markov decision process, and defining an observation state set S considering obstacle information, target information and unmanned aerial vehicle information; an action set of turning angular acceleration and tangential acceleration is considered, so that the speed and the turning angle of the unmanned aerial vehicle are continuously changed in the flight process, and actual flight requirements are met; designing a strategy network and a value function network based on a convolutional neural network, and extracting local features of the detection information; and according to the provided unmanned aerial vehicle cluster path planning and obstacle avoidance algorithm based on reinforcement learning, autonomous obstacle avoidance flight and trajectory planning of the unmanned aerial vehicle cluster are realized. According to the method, the unmanned aerial vehicle cluster can quickly and efficiently complete collaborative tasks such as material transportation, emergency rescue and the like in an unknown environment only by depending on airborne sensor information of the unmanned aerial vehicle cluster within a given time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicle (UAV) path planning, and in particular to a UAV cluster path planning method and system based on multi-agent reinforcement learning. Background Art

[0002] In recent years, drones have become a military and civilian technology that countries have vigorously developed due to their low cost, consumables, high mobility and flexibility. With the development of drone technology, its application scenarios are also expanding. Drones need to perform tasks in dense obstacle environments such as forests, city streets, and mountainous areas. The flight environment they face is becoming more and more complex. They need to plan paths quickly and in real time for a large number of unknown obstacles to perform flight missions safely and efficiently.

[0003] Traditional UAV path planning methods are mainly divided into two categories. One is traditional algorithms, including A* algorithm, artificial potential field method, rapidly expanding random tree (RRT) and cell decomposition method. These methods are effective in dealing with general planning problems, but when faced with complex and changing environments or high-dimensional spaces, they are prone to low path search efficiency or falling into local optimal solutions. The other category is bionic intelligent algorithms, such as genetic algorithms, particle swarm algorithms, ant colony algorithms, etc. These algorithms show a certain degree of intelligence in path planning, but when dealing with multi-dimensional information in complex environments, it is still difficult to balance the requirements of optimal paths and real-time performance. In addition, these traditional path planning algorithms generally require prior map information, which is difficult to meet in unknown environmental scenarios such as search and rescue. Summary of the invention

[0004] The present invention provides a UAV cluster path planning method and system based on multi-agent reinforcement learning, which enables the UAV cluster to quickly and efficiently complete collaborative tasks such as material transportation and emergency rescue in an unknown environment by relying only on its own onboard sensor information.

[0005] According to one aspect of the present invention, a method for UAV cluster path planning based on multi-agent reinforcement learning is provided, the method comprising:

[0006] S10. Treat each drone in the drone swarm as an intelligent agent and establish a drone swarm collaborative exploration game model based on a partially observable Markov decision process.

[0007] S20, initializing the strategy network parameters, first value function network parameters, second value function network parameters, experience pool, first target value function network parameters, and second target value function network parameters of each agent in the drone cluster collaborative exploration game model;

[0008] S30, initializing the target position and the position of each UAV;

[0009] S40, obtaining the current observation state of the i-th UAV, inputting the observation state of the i-th UAV into the strategy network, and obtaining the action of the i-th UAV;

[0010] S50, obtaining a reward function for the ith UAV based on the current distance between the ith UAV and the target point and the distance between the ith UAV and the target point at the previous moment:

[0011] S60, executing the action of the i-th UAV in the simulation environment to obtain the observation state of the i-th UAV at the next moment;

[0012] S70, obtaining the round end flag of the i-th drone;

[0013] S80, storing the current observation state, action, reward function, next moment observation state, and round end flag of the ith UAV as the current experience sequence of the ith UAV in the experience pool;

[0014] S90, judging whether the maximum number of training rounds has been reached, if so, completing the training of the UAV cluster collaborative exploration game model, obtaining the trained UAV cluster collaborative exploration game model, and performing path planning for the UAV cluster based on the trained UAV cluster collaborative exploration game model, otherwise, going to S100;

[0015] S100, determine whether the round end flag of the i-th drone is equal to 1, if so, go to S110, otherwise go to S120;

[0016] S110, determining whether the round end flags of all drones except the i-th drone are all equal to 1, if so, ending the training of the current training round and going to S30, otherwise, ending the training of the i-th drone and going to S40 to train the next drone;

[0017] S120, determining whether the network parameter update cycle has been reached, if so, proceeding to S130, otherwise, proceeding to S40 to train the next UAV;

[0018] S130, randomly sampling a number of groups of experience sequences from the experience pool, and obtaining a true value estimate of the value function corresponding to each group of experience sequences;

[0019] S140, based on the true value estimation of the value function corresponding to each group of experience sequences, obtain the loss function of the first value function network update and the loss function of the second value function network update corresponding to each group of experience sequences; and based on the minimum value of the loss function of the first value function network update corresponding to each group of experience sequences, update the first value function network parameters, and based on the minimum value of the loss function of the second value function network update corresponding to each group of experience sequences, update the second value function network parameters;

[0020] S150, obtaining a loss function of the policy network update corresponding to each set of experience sequences, and updating the policy network parameters based on the minimum value of the loss function of the policy network update corresponding to each set of experience sequences;

[0021] S160, using a soft update method to update the first objective value function network parameters and the second objective value function network parameters, and then transfer to S40 to train the next UAV.

[0022] Preferably, in S10, establishing a UAV swarm collaborative exploration game model based on a partially observable Markov decision process includes:

[0023] S11, establishing an observation state set based on obstacle information, target information and drone information, wherein the observation state set includes the observation state of each drone, and the observation state of each drone includes each range measurement of each drone and a state vector of each drone;

[0024] S12, establishing an action set considering turning angle acceleration and tangential acceleration;

[0025] S13. Design a reward function for each UAV based on the distance between each UAV and the target point;

[0026] S14. An experience pool is established based on the observed state set, action set, reward function and round end flag of each drone, thereby completing the establishment of a drone cluster collaborative exploration game model based on a partially observable Markov decision process.

[0027] Preferably, in S40, the current observation state of the i-th UAV is obtained by the following formula:

[0028] s i =[o r,i ,o st,i ]

[0029] Among them, r,i =[r 1,i ,r 2,i ,……,r M,i ],

[0030]

[0031] In the formula, s i is the current observation state of the i-th UAV, o r,i is the distance measurement information of the obstacle of the i-th UAV, o st,i is the state vector of the ith UAV, r 1,i ,r 2,i ,……,r M,iare the first, second, ..., Mth ranging information of the i-th UAV respectively; D targ,i is the distance between the current i-th UAV and the target point, D other,1 ,D other,2 ,D other,j ,D other,N-1 are the distances between the current i-th UAV and the first, second, j-th, and N-1-th UAVs, i, j∈[1,N], and i≠j, d min,i is the minimum value of the first, second, ..., Mth ranging information of the i-th UAV, v i is the speed of the ith UAV, represents the heading angle of the i-th UAV, q i is the sight angle of the target relative to the i-th UAV.

[0032] Preferably, in S40, the action of the i-th drone is obtained by the following formula:

[0033] a i =[u a,i ,u b,i ]

[0034] In the formula, a i is the action of the ith drone, u a,i is the tangential overload of the i-th UAV, u b,i is the turning angular velocity of the i-th UAV.

[0035] Preferably, in S50, the reward function of the i-th drone is obtained by the following formula:

[0036]

[0037] in,

[0038]

[0039] In the formula, r i is the reward function of the ith drone, D targ,i is the distance between the current i-th UAV and the target point, is the distance between the i-th UAV and the target point at the last moment, d safe1 is the safe distance between the drone and the obstacle, d safe2 is the safe distance between any two drones, step i is the time step of the ith UAV, T max is the maximum time step for executing the task, d err is the acceptable error for the drone to reach the target point, done fail,iTo determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

[0040] Preferably, in S70, the round end flag is obtained by the following formula:

[0041]

[0042] In the formula, done i The end flag of the round, done fail,i To determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

[0043] Preferably, in S130, the true value estimate of the value function corresponding to each set of experience sequences is obtained by the following formula:

[0044]

[0045] In the formula, y i (r i ,s i ',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences, r i is the reward function of the ith drone, γ i is the reward discount factor, done i This is the end-of-round marker. For the input s i '、 The minimum value of the state action evaluation value output by the jth objective value function network, s i ' is the observation state at the next moment, The policy network is in the observed state s i 'When the output action, α i is the entropy regularization coefficient, The input for the policy network is s i 'The output is The probability density of .

[0046] Preferably, in S140, the loss function of the first value function network update and the loss function of the second function network update corresponding to each group of experience sequences are obtained by the following formula:

[0047]

[0048] In the formula, L(φ i,j ) is the loss function of the j-th value function network update, Bi is the number of empirical data sets, (s i ,a i ,r i ,s i ',done i ) are the current observation state, action, reward function, observation state at the next moment, and round end flag of the ith UAV, respectively. For the input s i ,a i The state action evaluation value output by the j-th value function network, y i (r i ,s i ',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences.

[0049] Preferably, in S150, the loss function of the policy network update corresponding to each set of experience sequences is obtained by the following formula:

[0050]

[0051] In the formula, L(θ i ) is the loss function of the policy network update, B i is the number of empirical data sets, s i is the current observation state of the i-th UAV, For the input s i , The minimum value of the state action evaluation value output by the j-th value function network is The policy network is in the observed state s i The output action, α i is the entropy regularization coefficient, The input for the policy network is s i The output is The probability density of .

[0052] Preferably, in S160, the first objective value function network parameters and the second objective value function network parameters are updated by the following formula:

[0053] φ targ,i,j '=ρφ targ,i,j +(1-ρ)φ i,j forj=1,2

[0054] In the formula, φ targ,i,j ' is the updated j-th objective value function network parameter, φ targ,i,j is the jth objective value function network parameter, ρ is the soft update coefficient, φ i,j is the j-th value function network parameter.

[0055] According to another aspect of the present invention, a drone cluster path planning system based on multi-agent reinforcement learning is provided, the system comprising a trained drone cluster collaborative exploration game model deployed at an airborne end, the model being used for path planning for the drone cluster, the model being obtained using any of the above methods.

[0056] By applying the technical solution of the present invention, the cluster collaborative exploration problem is standardized as a partially observable Markov decision process, and the observation state set S considering obstacle information, target information and drone information is defined, and the action set considering turning angle acceleration and tangential acceleration is considered, so that the speed and turning angle of the drone change continuously during the flight, which meets the actual flight needs; a policy network and a value function network based on a convolutional neural network are designed to extract the local features of the detection information; according to the proposed drone cluster path planning and obstacle avoidance algorithm based on reinforcement learning, autonomous obstacle avoidance flight and trajectory planning of the drone cluster are realized. The present invention enables the drone cluster to quickly and efficiently complete collaborative tasks such as material transportation and emergency rescue in an unknown environment within a given time, relying only on its own airborne sensor information. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 A flowchart of a method for UAV cluster path planning based on multi-agent reinforcement learning according to an embodiment of the present invention is shown;

[0059] Figure 2 A strategy network structure diagram provided according to an embodiment of the present invention is shown;

[0060] Figure 3 A value function network structure diagram provided according to an embodiment of the present invention is shown;

[0061] Figure 4 A flight trajectory diagram planned by a drone path planning method based on multi-agent reinforcement learning in a simulation scenario 1 provided according to an embodiment of the present invention is shown;

[0062] Figure 5 The figure shows a flight trajectory diagram planned by a UAV path planning method based on multi-agent reinforcement learning in simulation scenario 2 provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. 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 in 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.

[0064] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0065] Unless otherwise specifically stated, the relative arrangement of the parts and steps described in these embodiments, numerical expressions and numerical values ​​do not limit the scope of the present invention. At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be regarded as a part of the authorization specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0066] like Figure 1 As shown, the present invention provides a UAV cluster path planning method based on multi-agent reinforcement learning, the method comprising:

[0067] S10. Treat each drone in the drone swarm as an intelligent agent and establish a drone swarm collaborative exploration game model based on a partially observable Markov decision process.

[0068] S20, initialize the strategy network parameters θ of each agent in the UAV cluster collaborative exploration game model i 、First value function network parameter φ i,1、Second value function network parameter φ i,2 , Experience Pool D i 、The first objective value function network parameter φ targ,i,1 、Network parameter φ of the second objective value function targ,i,2 ; Among them, the target value function network parameter φ of each agent i targ,i,1 ,φ targ,i,2 Respectively with the value function network parameter φ i,1 ,φ i,2 same;

[0069] S30, initializing the target position and the position of each UAV; wherein the target position and the position of each UAV are random positions;

[0070] S40, obtain the current observation state s of the i-th UAV i , input the observed state of the ith UAV into the policy network, and obtain the action of the ith UAV

[0071] S50, obtaining a reward function r of the ith UAV based on the current distance between the ith UAV and the target point and the distance between the ith UAV and the target point at the previous moment i :

[0072] S60: Execute action a of the i-th drone in the simulation environment i , get the next moment observation state s of the i-th UAV i ';

[0073] S70, get the round end flag of the i-th drone, done i ;

[0074] S80, taking the current observation state, action, reward function, next moment observation state, and round end flag of the ith UAV as the current experience sequence (s i ,a i ,r i ,s i ',done i ) Deposit into experience pool D i middle;

[0075] S90, judging whether the maximum number of training rounds has been reached, if so, completing the training of the UAV cluster collaborative exploration game model, obtaining the trained UAV cluster collaborative exploration game model, and performing path planning for the UAV cluster based on the trained UAV cluster collaborative exploration game model, otherwise, going to S100;

[0076] S100, determine whether the round end flag of the i-th drone is equal to 1, if so, go to S110, otherwise go to S120;

[0077] S110, determining whether the round end flags of all drones except the i-th drone are all equal to 1, if so, ending the training of the current training round and going to S30, otherwise, ending the training of the i-th drone and going to S40 to train the next drone;

[0078] S120, determining whether the network parameter update cycle has been reached, if so, proceeding to S130, otherwise, proceeding to S40 to train the next UAV;

[0079] S130, randomly sampling a number of groups of experience sequences from the experience pool, and obtaining a true value estimate of the value function corresponding to each group of experience sequences;

[0080] S140, based on the true value estimation of the value function corresponding to each group of experience sequences, obtain the loss function of the first value function network update and the loss function of the second value function network update corresponding to each group of experience sequences; and based on the minimum value of the loss function of the first value function network update corresponding to each group of experience sequences, update the first value function network parameters, and based on the minimum value of the loss function of the second value function network update corresponding to each group of experience sequences, update the second value function network parameters;

[0081] S150, obtaining a loss function of the policy network update corresponding to each set of experience sequences, and updating the policy network parameters based on the minimum value of the loss function of the policy network update corresponding to each set of experience sequences;

[0082] S160, using a soft update method to update the first objective value function network parameters and the second objective value function network parameters, and then transfer to S40 to train the next UAV.

[0083] The present invention standardizes the cluster collaborative exploration problem as a partially observable Markov decision process, defines an observation state set S that considers obstacle information, target information and drone information, and an action set that considers turning angle acceleration and tangential acceleration, so that the speed and turning angle of the drone change continuously during flight, which meets the actual flight needs; designs a policy network and a value function network based on a convolutional neural network to extract local features of the detection information; and realizes autonomous obstacle avoidance flight and trajectory planning of drone clusters based on the proposed reinforcement learning-based drone cluster path planning and obstacle avoidance algorithm. The present invention enables drone clusters to quickly and efficiently complete collaborative tasks such as material transportation and emergency rescue in an unknown environment within a given time, relying only on their own airborne sensor information.

[0084] According to an embodiment of the present invention, in S10, establishing a drone cluster collaborative exploration game model based on a partially observable Markov decision process includes:

[0085] S11, establishing an observation state set based on obstacle information, target information and drone information, wherein the observation state set includes the observation state of each drone, and the observation state of each drone includes each range measurement of each drone and a state vector of each drone;

[0086] S12, establishing an action set considering turning angle acceleration and tangential acceleration;

[0087] S13. Design a reward function for each UAV based on the distance between each UAV and the target point;

[0088] S14. An experience pool is established based on the observed state set, action set, reward function and round end flag of each drone, thereby completing the establishment of a drone cluster collaborative exploration game model based on a partially observable Markov decision process.

[0089] According to an embodiment of the present invention, the drone-mounted laser radar detects the position information of local obstacles by emitting and receiving laser beams. At the same height plane, it is defined that the detected obstacle position information is recorded at a certain angle, and the maximum detection angle is θ max , the angle increment of the ranging record is Δθ, then the number of ranging measurements obtained is The observation distance information is represented as o r =[r1,r2,……,r M ], when no obstacle is detected at a certain angle, the distance is recorded as the maximum detection distance of the radar.

[0090] Specifically, in S40, the current observation state of the i-th UAV is obtained by the following formula:

[0091] s i =[o r,i ,o st,i ]

[0092] Among them, r,i =[r 1,i ,r 2,i ,……,r M,i ],

[0093]

[0094] In the formula, s i is the current observation state of the i-th UAV, o r,i is the distance measurement information of the obstacle of the i-th UAV, o st,i is the state vector of the ith UAV, r 1,i ,r 2,i ,……,r M,i are the first, second, ..., Mth ranging information of the i-th UAV respectively; D targ,iis the distance between the current i-th UAV and the target point, D other,1 ,D other,2 ,D other,j ,D other,N-1 are the distances between the current i-th UAV and the first, second, j-th, and N-1-th UAVs, i, j∈[1,N], and i≠j, d min,i is the minimum value of the first, second, ..., Mth ranging information of the i-th UAV, v i is the speed of the ith UAV, represents the heading angle of the i-th UAV, q i is the sight angle of the target relative to the i-th UAV.

[0095] in, D targ,i Indicates the distance between the current drone and the target point, x i ,y i Respectively represent the horizontal and vertical coordinates of the ith UAV, x targ ,y targ Respectively represent the horizontal and vertical coordinates of the target point;

[0096] j≠i,D other,j Indicates the distance between the current UAV and other j-th UAVs; x j ,y j Respectively represent the horizontal and vertical coordinates of the jth UAV;

[0097]

[0098] Furthermore, considering the characteristics of the UAV cluster collaborative exploration task, the speed constraints are set as follows:

[0099] ||v i ||≤v max

[0100] In the formula, i is the number of the drone, i∈[1,N], N is the number of drones, and v max is the maximum speed of the drone.

[0101] According to an embodiment of the present invention, in S40, the action of the i-th drone is obtained by the following formula:

[0102] a i =[u a,i ,u b,i ]

[0103] In the formula, a i is the action of the ith drone, u a,iis the tangential overload of the ith UAV, in g, u b,i is the turning angular velocity of the ith UAV, in rad / s.

[0104] Among them, u a,i and u b,i There are amplitude limits. The advantage of this design is that the speed and turning angle of the drone can be changed continuously, which meets the actual flight needs.

[0105] According to an embodiment of the present invention, in S50, the reward function of the i-th drone is obtained by the following formula:

[0106]

[0107] in,

[0108]

[0109] In the formula, r i is the reward function of the ith drone, D targ,i is the distance between the current i-th UAV and the target point, is the distance between the i-th UAV and the target point at the last moment, d safe1 is the safe distance between the drone and the obstacle, d safe2 is the safe distance between any two drones, step i is the time step of the ith UAV, T max is the maximum time step for executing the task, d err is the acceptable error for the drone to reach the target point, done fail,i To determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

[0110] Furthermore, considering the characteristics of the UAV cluster collaborative exploration task, the obstacle avoidance constraints are set as follows:

[0111] Since there are several obstacles in the drone cluster flight area, for safety reasons, drones need to keep a certain distance from obstacles during flight. safe1 , expressed as:

[0112] Δd ik >dx afe1

[0113] Where, d ik =||p i -p k ||, d ikrepresents the distance between the ith UAV and the kth obstacle around it, p i and p k represent the positions of the i-th UAV and the k-th obstacle respectively.

[0114] Considering the characteristics of the UAV swarm collaborative exploration mission, the collision avoidance constraints are set as follows:

[0115] The drones of your own team cannot collide with each other, that is, they need to maintain a safe distance d between each other. safe2 Within, it is expressed as:

[0116] Δd ij >d safe2

[0117] Where, d ij =||p i -p j ||, d ij Represents the distance between the i-th UAV and the j-th UAV, i, j∈[1,N], i≠j.

[0118] Considering the characteristics of the UAV swarm collaborative exploration task, the boundary constraints are set as follows:

[0119] The drone cannot exceed the given boundary constraints during flight, d bound is the task boundary, then the boundary constraint is expressed as

[0120] 0≤p i ≤d bound

[0121] According to an embodiment of the present invention, in S70, the round end flag is obtained by the following formula:

[0122]

[0123] In the formula, done i The end flag of the round, done fail,i To determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

[0124] According to one embodiment of the present invention, the policy network is composed of a one-dimensional convolutional network and a fully connected network, the input is the observed state, and the output is the action; the value function network and the target value function network have the same structure, consisting of a one-dimensional convolutional network and a fully connected network, the input is the state and action, and the output is the state-action evaluation value, i.e., the Q value.

[0125] According to an embodiment of the present invention, in S130, the true value estimate of the value function corresponding to each set of experience sequences is obtained by the following formula:

[0126]

[0127] In the formula, y i (r i ,s i ',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences, r i is the reward function of the ith drone, γ i is the reward discount factor, done i This is the end-of-round marker. For the input s i '、 The minimum value of the state action evaluation value output by the j-th objective value function network is, s i ' is the observation state at the next moment, The policy network is in the observed state s i 'When the output action, α i is the entropy regularization coefficient, the larger the α i The smaller α corresponds to more exploration. i For more use, The input for the policy network is s i 'The output is The probability density of .

[0128] According to an embodiment of the present invention, in S140, the loss function of the first value function network update and the loss function of the second function network update corresponding to each group of experience sequences are obtained by the following formula:

[0129]

[0130] In the formula, L(φ i,j ) is the loss function of the j-th value function network update, B i is the number of empirical data sets, (s i ,a i ,r i ,s i ',done i ) are the current observation state, action, reward function, observation state at the next moment, and round end flag of the ith UAV, respectively. For the input s i ,a i The state action evaluation value output by the j-th value function network, y i (r i ,s i',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences.

[0131] According to an embodiment of the present invention, in S150, the loss function of the policy network update corresponding to each group of experience sequences is obtained by the following formula:

[0132]

[0133] In the formula, L(θ i ) is the loss function of the policy network update, B i is the number of empirical data sets, s i is the current observation state of the i-th UAV, For the input s i , The minimum value of the state action evaluation value output by the j-th value function network is The policy network is in the observed state s i The output action is pass Sampling, α i is the entropy regularization coefficient, The input for the policy network is s i The output is The probability density of .

[0134] According to an embodiment of the present invention, in S160, the first objective value function network parameter and the second objective value function network parameter are updated by the following formula:

[0135] φ targ,i,j '=ρφ targ,i,j +(1-ρ)φ i,j for j=1,2

[0136] In the formula, φ targ,i,j ' is the updated j-th objective value function network parameter, φ targ,i,j is the jth objective value function network parameter, ρ is the soft update coefficient, φ i,j is the j-th value function network parameter.

[0137] The present invention also provides a drone cluster path planning system based on multi-agent reinforcement learning, the system includes a trained drone cluster collaborative exploration game model deployed at an airborne end, the model is used to perform path planning for the drone cluster, and the model is obtained using any of the above methods.

[0138] In order to further understand the present invention, the following Figure 2-Figure 5 The drone cluster path planning method and system based on multi-agent reinforcement learning of the present invention are described in detail.

[0139] In this embodiment, Figure 2 is the structure of the strategy network adopted by the multi-agent, in which the radar ranging information o r First, local obstacle features are extracted through a 3-layer convolutional neural network, and then the features are captured through a fully connected network; the drone state information is extracted through a 2-layer fully connected network, and then the two networks are feature fused through a 2-layer fully connected network to generate the control amount u a,i and u b,i The probability distribution of the control quantity u is obtained by sampling a,i and u b,i .

[0140] Figure 3 is the structure of the value function network adopted by the multi-agent, in which the radar ranging information o r First, local obstacle features are extracted through a three-layer convolutional neural network, and then the features are captured through a fully connected network; the drone state information and current action are extracted through a two-layer fully connected network to extract state-action pair features, and then the two networks are fused through a two-layer fully connected network to generate a Q value.

[0141] Figure 4 and Figure 5 They are paths generated by the UAV path planning method based on multi-agent reinforcement learning proposed in the present invention in different scenarios. The map size and obstacles in the two scenarios are the same, but their initial UAV positions and target positions are different. Each UAV has unknown environmental information and only detects obstacles through its own onboard sensors. It can be seen that the UAV trajectories planned by this method in the two scenarios have good path smoothness, meet the obstacle avoidance constraints, and enable the cluster UAVs to arrive on time within the specified time.

[0142] In summary, the present invention provides a method and system for UAV cluster path planning based on multi-agent reinforcement learning, setting constraints considering the characteristics of UAV cluster collaborative exploration tasks to meet various constraint requirements of users; standardizing the cluster collaborative exploration problem as a partially observable Markov decision process, defining the observation state set S considering obstacle information, target information and UAV information, and considering the action set of turning angle acceleration and tangential acceleration, so that the speed and turning angle of the UAV change continuously during the flight, which meets the actual flight needs; designing a policy network and a value function network based on a convolutional neural network to extract local features of the detection information; according to the proposed UAV cluster path planning and obstacle avoidance algorithm based on reinforcement learning, autonomous obstacle avoidance flight and trajectory planning of UAV clusters are realized. The present invention enables UAV clusters to quickly and efficiently complete collaborative tasks such as material transportation and emergency rescue in an unknown environment within a given time, relying only on their own airborne sensor information.

[0143] Parts of the present invention that are not described in detail are well known to those skilled in the art.

[0144] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by directional words such as "front, back, up, down, left, right", "lateral, vertical, perpendicular, horizontal" and "top, bottom" are usually based on the directions or positional relationships shown in the drawings. They are only for the convenience of describing the present invention and simplifying the description. Unless otherwise specified, these directional words do not indicate or imply that the devices or elements referred to must have a specific direction or be constructed and operated in a specific direction. Therefore, they cannot be understood as limiting the scope of protection of the present invention. The directional words "inside and outside" refer to the inside and outside relative to the contours of each component itself.

[0145] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" may include both "above" and "below". The device may also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.

[0146] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.

[0147] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A UAV cluster path planning method based on multi-agent reinforcement learning, characterized in that: The method comprises: S10. Treat each drone in the drone swarm as an intelligent agent and establish a drone swarm collaborative exploration game model based on a partially observable Markov decision process. S20, initializing the strategy network parameters, first value function network parameters, second value function network parameters, experience pool, first target value function network parameters, and second target value function network parameters of each agent in the drone cluster collaborative exploration game model; S30, initializing the target position and the position of each UAV; S40, obtaining the current observation state of the i-th UAV, inputting the observation state of the i-th UAV into the strategy network, and obtaining the action of the i-th UAV; S50, obtaining a reward function for the ith UAV based on the current distance between the ith UAV and the target point and the distance between the ith UAV and the target point at the previous moment: S60, executing the action of the i-th UAV in the simulation environment to obtain the observation state of the i-th UAV at the next moment; S70, obtaining the round end flag of the i-th drone; S80, storing the current observation state, action, reward function, next moment observation state, and round end flag of the ith UAV as the current experience sequence of the ith UAV in the experience pool; S90, judging whether the maximum number of training rounds has been reached, if so, completing the training of the UAV cluster collaborative exploration game model, obtaining the trained UAV cluster collaborative exploration game model, and performing path planning for the UAV cluster based on the trained UAV cluster collaborative exploration game model, otherwise, going to S100; S100, determine whether the round end flag of the i-th drone is equal to 1, if so, go to S110, otherwise go to S120; S110, determining whether the round end flags of all drones except the i-th drone are all equal to 1, if so, ending the training of the current training round and going to S30, otherwise, ending the training of the i-th drone and going to S40 to train the next drone; S120, determining whether the network parameter update cycle has been reached, if so, proceeding to S130, otherwise, proceeding to S40 to train the next UAV; S130, randomly sampling a number of groups of experience sequences from the experience pool, and obtaining a true value estimate of the value function corresponding to each group of experience sequences; S140, based on the true value estimation of the value function corresponding to each group of experience sequences, obtain the loss function of the first value function network update and the loss function of the second value function network update corresponding to each group of experience sequences; and based on the minimum value of the loss function of the first value function network update corresponding to each group of experience sequences, update the first value function network parameters, and based on the minimum value of the loss function of the second value function network update corresponding to each group of experience sequences, update the second value function network parameters; S150, obtaining a loss function of the policy network update corresponding to each set of experience sequences, and updating the policy network parameters based on the minimum value of the loss function of the policy network update corresponding to each set of experience sequences; S160, using a soft update method to update the first objective value function network parameters and the second objective value function network parameters, and then transfer to S40 to train the next UAV.

2. The method according to claim 1, characterized in that In S10, the UAV swarm collaborative exploration game model based on partially observable Markov decision process is established, including: S11, establishing an observation state set based on obstacle information, target information and drone information, wherein the observation state set includes the observation state of each drone, and the observation state of each drone includes each range measurement of each drone and a state vector of each drone; S12, establishing an action set considering turning angle acceleration and tangential acceleration; S13. Design a reward function for each UAV based on the distance between each UAV and the target point; S14. An experience pool is established based on the observed state set, action set, reward function and round end flag of each drone, thereby completing the establishment of a drone cluster collaborative exploration game model based on a partially observable Markov decision process.

3. The method according to claim 1, characterized in that: In S40, the current observation state of the i-th UAV is obtained by the following formula: s i =[the r,i ,the st,i ] Among them, r,i =[r 1,i ,r 2,i ,……,r M,i ], In the formula, s i is the current observation state of the i-th UAV, o r,i is the distance measurement information of the obstacle of the i-th UAV, o st,i is the state vector of the ith UAV, r 1,i ,r 2,i ,……,r M,i are the first, second, ..., Mth ranging information of the i-th UAV respectively; D targ,i is the distance between the current i-th UAV and the target point, D other,1 ,D other,2 ,D other,j ,D other,N-1 are the distances between the current i-th UAV and the first, second, j-th, and N-1-th UAVs, i, j∈[1,N], and i≠j, d min,i is the minimum value of the first, second, ..., Mth ranging information of the i-th UAV, v i is the speed of the ith UAV, represents the heading angle of the i-th UAV, q i is the sight angle of the target relative to the i-th UAV.

4. The method according to claims 1 and 3, characterized in that In S40, the action of the i-th drone is obtained by the following formula: a i =[u a,i ,u b,i ] In the formula, a i is the action of the ith drone, u a,i is the tangential overload of the i-th UAV, u b,i is the turning angular velocity of the i-th UAV.

5. The method according to claim 1, characterized in that In S50, the reward function of the i-th drone is obtained by the following formula: in, In the formula, r i is the reward function of the ith drone, D targ,i is the distance between the current i-th UAV and the target point, is the distance between the i-th UAV and the target point at the last moment, d safe1 is the safe distance between the drone and the obstacle, d safe2 is the safe distance between any two drones, step i is the time step of the ith UAV, T max is the maximum time step for executing the task, d err is the acceptable error for the drone to reach the target point, done fail,i To determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

6. The method according to claim 1, characterized in that In S70, the round end flag is obtained by the following formula: In the formula, done i The end flag of the round, done fail,i To determine whether the i-th drone has failed the mission, the round ends. succ,i The round end flag is used to determine whether the mission of the i-th drone is successful.

7. The method according to claim 1, characterized in that In S130, the true value estimate of the value function corresponding to each set of experience sequences is obtained by the following formula: In the formula, y i (r i ,s i ',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences, r i is the reward function of the ith drone, γ i is the reward discount factor, done i This is the round end mark. For the input s i '、 The minimum value of the state action evaluation value output by the jth objective value function network, s i ' is the observation state at the next moment, The policy network is in the observed state s i 'When the output action, α i is the entropy regularization coefficient, The input for the policy network is s i 'The output is The probability density of .

8. The method according to claim 1, characterized in that In S140, the loss function of the first value function network update and the loss function of the second function network update corresponding to each group of experience sequences are obtained by the following formula: In the formula, L(φ i,j ) is the loss function of the j-th value function network update, B i is the number of empirical data sets, (s i ,a i ,r i ,s i ',done i ) are the current observation state, action, reward function, observation state at the next moment, and round end flag of the ith UAV, respectively. For the input s i ,a i The state action evaluation value output by the j-th value function network, y i (r i ,s i ',done i ) is the true value estimate of the value function corresponding to the current group of experience sequences.

9. The method according to claim 1, characterized in that: In S150, the loss function of the policy network update corresponding to each set of experience sequences is obtained by the following formula: In the formula, L(θ i ) is the loss function of the policy network update, B i is the number of empirical data sets, s i is the current observation state of the i-th UAV, For the input The minimum value of the state action evaluation value output by the j-th value function network is The policy network is in the observed state s i The output action, α i is the entropy regularization coefficient, The input for the policy network is s i The output is The probability density of .

10. The method according to claim 1, characterized in that In S160, the first objective value function network parameters and the second objective value function network parameters are updated by the following formula: f targ,i,j ′=rφ targ,i,j +(1-r)φ i,j for j=1,2 In the formula, φ targ,i,j ′ is the updated j-th objective value function network parameter, φ targ,i,j is the jth objective value function network parameter, ρ is the soft update coefficient, φ i,j is the j-th value function network parameter.

11. A drone cluster path planning system based on multi-agent reinforcement learning, characterized in that: The system includes a trained UAV cluster collaborative exploration game model deployed at an airborne end, the model is used to perform path planning for the UAV cluster, and the model is obtained using any method of claims 1 to 10.

Citation Information

Cited By

  • Unmanned aerial vehicle path planning method based on pulse distributed reinforcement learning

    CN118913295A

  • A UAV path planning method based on pulse distributed reinforcement learning

    CN118913295B

  • Cluster path planning method and system based on improved A-star algorithm and reinforcement learning

    CN119902432A

  • Multi-unmanned aerial vehicle cooperative navigation method based on deep reinforcement learning

    CN120800386A