Unmanned aerial vehicle safe path planning method based on maximum entropy multi-agent reinforcement learning

By constructing the POMDP model and training the agent neural network of the UAV swarm using the MASAC algorithm, the path planning problem of the UAV swarm in the air combat environment was solved, and autonomous decision-making and safe flight in complex environments were achieved.

CN117908565BActive Publication Date: 2026-11-24CHONGQING SCI & INNOVATION CENT OF NORTHWEST POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410070432.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2026-11-24
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively solve the path planning problem for drone swarms in complex and dynamic environments, especially in air combat environments, where traditional algorithms suffer from high computational complexity and are unable to plan paths in real time.

Method used

A POMDP model is constructed using a maximum entropy multi-agent reinforcement learning approach. The agent neural network of the UAV swarm is trained using the MASAC algorithm. Through interaction with the air combat simulation environment, the collaborative path planning of the UAV swarm is realized, and the action decision results are output.

Benefits of technology

In complex and dynamic air combat environments, this technology enables autonomous path decision-making for UAV swarms, maintains formation coordination, ensures safe obstacle avoidance and flight within boundaries, reduces pilot stress, solves the dimensionality curse problem, and is applicable to UAV swarms of varying sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117908565B_ABST
    Figure CN117908565B_ABST
Patent Text Reader

Abstract

This invention discloses a method for safe path planning of unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent deep reinforcement learning. The method includes: for the cooperative path planning problem of UAV swarms, building a reinforcement learning air combat simulation environment for UAV interaction based on pre-assumptions, and initializing parameters; introducing two-dimensional UAV dynamic equations; constructing a six-tuple of partially observable Markov decision processes for the UAV swarm cooperative path planning problem to obtain a POMDP model; training agents based on a multi-agent soft actor critic algorithm to solve the POMDP model strategy for UAV swarm cooperative path planning in the air combat simulation environment through interaction between UAVs and the air combat simulation environment, obtaining the weight parameters of the trained agent neural network; inputting the decision-making state information of the UAV swarm into the agent neural network to output action decision results; this invention can improve the performance of dynamic path planning for multiple UAVs in unknown and complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of artificial intelligence and path planning, specifically relating to a method for safe path planning of unmanned aerial vehicles based on maximum entropy multi-agent reinforcement learning. Background Technology

[0002] In modern warfare, gaining air superiority is one of the most crucial elements in establishing and expanding an advantage over the enemy. A key issue in modern air defense is path planning. As aerial combat intensifies and the pace accelerates, unmanned aerial vehicles (UAVs), as a rapidly developing aerial combat force, are playing an increasingly important role in modern warfare due to their unique advantages of zero casualties, low cost, and superior maneuverability. Researching related technologies is essential for gaining the initiative and improving combat performance. Among these, path planning is the most fundamental guiding issue and prerequisite in UAV swarm aerial combat. The ultimate goal of UAV swarm path planning is to quickly and safely reach the designated target location, which is also a research hotspot in the field of unmanned systems.

[0003] For the path planning problem of UAVs in air combat, existing technologies mainly rely on traditional mathematical methods and heuristic algorithms. Traditional mathematical methods are simple in principle and have many improvements, and can meet the path planning requirements in most cases, thus having a wide range of applications. Dijkstra's algorithm, proposed by Edsger W. Dijkstra in the paper "EWDijkstra, A note on two problems in connexion with graphs, in Edsger WybeDijkstra: His Life, Work, and Legacy, 2022, pp. 287-290", is an algorithm for finding the shortest path. This algorithm obtains the optimal path by forward traversing all nodes, but when the number of nodes is too large, the algorithm consumes a lot of time and memory, resulting in low efficiency. A* is a heuristic search algorithm proposed by Peter et al. in their paper "PE Hart, NJ Nilsson, and B. Raphael, A formal basis for the heuristic determination of minimum costpaths, IEEE transactions on Systems Science and Cybernetics, 1968, vol.4, no.2, pp.100-107", which improved upon Dijkstra's algorithm. The A* algorithm addresses the efficiency problem of Dijkstra's algorithm to some extent by selectively expanding nodes through an evaluation function, but it still incurs significant computational costs when the map accuracy is high. D* is an improvement on the A* algorithm by Anthony Stenz in the paper "A. Stenz, Optimal and efficient path planning for partially-known environments, in Proceedings of the 1994 IEEE international conference on robotics and automation, 1994: IEEE, pp. 3310-3317". After calculating the path to the destination, D* dynamically updates the nodes using the evaluation function and replans the path for the next stage based on the current state. Therefore, compared with the A* algorithm, the D* algorithm can achieve better results in dynamic environments.Heuristic algorithms include particle swarm optimization, differential evolution, and simulated annealing. In the paper "T. Guan-Zheng, H. Huan, and A. Sloman, Ant colony system algorithm for real-time globally optimal path planning of mobile robots, Acta Automatica Sinica, 2007, vol. 33, no. 3, pp. 279-285", a real-time globally optimal path planning method for mobile robots based on the Ant Colony Optimization (ACO) algorithm is proposed. In the paper "C. Lamini, S. Benhlima, and A. Elbekri, Genetic algorithm based approach for autonomous mobile robot pathplanning, Procedia Computer Science, 2018, vol. 127, pp. 180-189", the GA algorithm is used to solve path planning problems in static environments. In the literature “X.Guo, M.Ji, Z.Zhao, D.Wen, and W.Zhang, Global path planning and multi-objective path control for unmanned surface vehicle based on modified particle swarm optimization (PSO) algorithm, Ocean Engineering, 2020, vol.216, p.107693”, the PSO algorithm is used to solve the global path planning and multi-objective path control problem.

[0004] Classical algorithms can solve most path planning problems, but they still have limitations. For example, in complex environments, the computational complexity of classical algorithms increases dramatically, sometimes even becoming unsolvable—a phenomenon known as the curse of dimensionality. While heuristic algorithms can address some of the shortcomings of classical algorithms, both classical and heuristic algorithms are better suited for static path planning problems. In static path planning problems, the global environment—including terrain, obstacles, and interference—is known, and the path can be planned before detection. However, for dynamic path planning problems, the global environment is unknown, requiring real-time path planning. Therefore, real-time path planning in dynamic environments is more practically significant and challenging. Summary of the Invention

[0005] To address the aforementioned problems in existing technologies, this invention provides a safe path planning method for unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent reinforcement learning. The technical problem to be solved by this invention is achieved through the following technical solution:

[0006] A method for safe path planning of unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent reinforcement learning includes:

[0007] To address the collaborative path planning problem of a drone swarm consisting of a leader drone and multiple follower drones, a reinforcement learning-based air combat simulation environment for drone interaction is built based on pre-assumptions, and the parameters are initialized.

[0008] Two-dimensional UAV dynamics equations are introduced into the reinforcement learning air combat simulation environment.

[0009] For a reinforcement learning air combat simulation environment that introduces two-dimensional UAV dynamics equations, a six-tuple of partially observable Markov decision process for the UAV swarm cooperative path planning problem is constructed to obtain the POMDP model.

[0010] Based on the multi-agent soft actor critic algorithm, through the interaction between UAVs and the air combat simulation environment, the agent is trained to solve the UAV swarm cooperative path planning (POMDP) ​​model strategy in the air combat simulation environment, and the weight parameters of the trained agent neural network are obtained.

[0011] The decision-making status information of the drone swarm is input into the trained agent neural network, and the action decision results of each drone are output.

[0012] The beneficial effects of this invention are:

[0013] This invention proposes a safe path planning method for unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent reinforcement learning. First, a reinforcement learning environment is established to simulate the arrival of a UAV swarm at its target location in an air combat scenario. This simulation environment considers the UAVs' dynamic equations, obstacle avoidance, and the heterogeneity of the UAVs. Then, the path planning problem of the UAV swarm is modeled as a POMDP model, and a corresponding six-tuple is designed. Next, a novel multi-agent deep reinforcement learning algorithm—MASAC—is used to handle the path planning problem of the UAV swarm in a dynamic and uncertain air combat environment. The constructed POMDP model is trained to obtain a trained POMDP model, enabling it to find a strategy that maximizes the reward function and obtain the joint behavior of multiple agents. Finally, the trained POMDP model is used to output the action decision results of each UAV based on the decision-making state information of the UAV swarm. This allows the trained UAV swarm to make autonomous path decisions in complex and dynamic air combat environments, reaching the target location while maintaining formation coordination, safe obstacle avoidance, and flight within boundaries. This invention utilizes deep reinforcement learning to replace human control decisions for path planning in the rapidly changing environment of aerial combat, reducing the psychological and physical stress on pilots. Employing a multi-agent deep reinforcement learning algorithm addresses the curse of dimensionality, better solving dynamic path planning problems. By learning through continuous interaction with the environment, it ultimately finds a strategy that maximizes cumulative rewards. This allows drones to reach their targets while maintaining formation coordination, safe obstacle avoidance, and flight within designated boundaries, and can be flexibly applied to drone swarms of varying sizes. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating a method for safe path planning of unmanned aerial vehicles based on maximum entropy multi-agent reinforcement learning, provided in an embodiment of the present invention.

[0015] Figure 2 A screenshot of the drone swarm path planning environment in the reinforcement learning air combat simulation environment for drone interaction built according to an embodiment of the present invention.

[0016] Figure 3 This is a schematic diagram of the spatiotemporal situation between the UAV and the target location in an embodiment of the present invention;

[0017] Figure 4 This is a block diagram of the MASAC algorithm training in an embodiment of the present invention;

[0018] Figure 5 This is a schematic diagram of the network update process of the i-th agent during the training of the MASAC algorithm in an embodiment of the present invention;

[0019] Figure 6 This is a graph showing the total reward curve after 500 rounds of training in an embodiment of the present invention. Detailed Implementation

[0020] The present invention will be further described in detail below with reference to specific embodiments, but the implementation of the present invention is not limited thereto.

[0021] This invention, based on deep reinforcement learning, employs the Multi-agent Soft Actor Critic (MASAC) algorithm to solve the dynamic cooperative path planning problem of UAV swarms in air combat environments. It proposes a safe path planning method for UAVs based on maximum entropy multi-agent reinforcement learning, such as... Figure 1 As shown, the method may include the following steps S1 to S5:

[0022] S1 addresses the collaborative path planning problem of a drone swarm consisting of a leader drone and multiple follower drones. Based on pre-assumptions, a reinforcement learning air combat simulation environment for drone interaction is built, and the parameters are initialized.

[0023] The drone swarm in this embodiment of the invention includes a leader drone and multiple follower drones. To build a reinforcement learning-based air combat simulation environment that allows for drone interaction, the assumptions of this invention may include:

[0024] 1) The motion of the drone is only considered in terms of planar motion;

[0025] Specifically, in this embodiment of the invention, the movement of the drone is only considered as planar motion, simplifying the three-dimensional motion in reality into a two-dimensional form.

[0026] like Figure 2 The image shows a screenshot of the path planning environment for a drone swarm. This environment treats drones, which should be in three-dimensional space, as moving in two-dimensional space. Therefore, the movement of the drones conforms to the kinematic equations in two-dimensional space.

[0027] 2) Eliminate the influence of other external factors in the environment;

[0028] Specifically, the environment does not take into account the influence of other external factors (such as weather), such as wind speed and temperature, in order to simplify the simulation environment.

[0029] 3) The drone learns the target location through ground-based radar detection;

[0030] Specifically, the flight objective of an unmanned swarm is to safely and obstacle-avoid the target location. The location information of the target location is known and is believed to be measured by ground radar, which then transmits the data to the unmanned aircraft.

[0031] The assumptions made in this embodiment of the invention are a simplification of the environment to significantly reduce the difficulty of writing environment code, but they do not affect the experimental conclusions.

[0032] In this embodiment of the invention, a pixel-level two-dimensional plane can be constructed using program coding to characterize the simulation environment.

[0033] Specifically, the construction of the reinforcement learning air combat simulation environment for UAV interaction may include:

[0034] ① Set a pixel plane of a preset size to represent the actual two-dimensional space;

[0035] The pixel value is mapped to the actual physical length in two-dimensional space, representing the physical length embodied by the pixel. The size of the pixel plane and the mapping relationship can be set as needed.

[0036] ② Determine the marking method and corresponding circular area of ​​the target location;

[0037] The target location can be marked with a preset shape and color. The area corresponding to the target location is represented by a circular area, and the circular area can also be marked with a certain color. The specific settings can be configured as needed.

[0038] ③ Determine the method of marking obstacles and set obstacles as standard circular areas, and determine the range of the circular areas;

[0039] Similarly, obstacles in circular areas can also be marked with distinctive colors, without any restrictions.

[0040] ④ Set collision detection conditions for the reinforcement learning air combat simulation environment, including only the leader drone having collision detection with obstacles and target locations, while there is no collision detection between the leader drone and follower drones, or between each follower drone.

[0041] The initialization settings for the completion parameters include:

[0042] (1) Set the speed range, acceleration range, and angular velocity range of the drone;

[0043] During the simulation, the speed, acceleration, and angular velocity of the drone did not exceed the corresponding range.

[0044] (2) Set the initial state of the UAV, including the UAV's position coordinates, speed, heading angle, and the position coordinates of the target location and obstacles.

[0045] In each interactive round, the drone's initial state, as well as the coordinates of the target location and obstacles, will be updated.

[0046] For example, please see Figure 2 To understand, the entire drone swarm path planning simulation environment can be defined as a 700 pixel * 600 pixel two-dimensional plane, where 700 pixels = 7000m and 600 pixels = 6000m. The animation refresh rate (FPS) of the environment can be 60. For example... Figure 2 As shown, there are two different types of drones, one of which is the leader drone ( Figure 2 The middle part is blue), its speed range is 10-20 pixels per frame, which translates to 100m / s-200m / s, and its acceleration range is -3m / s². 2 ~3m / s 2 The angular velocity ranges from -0.6 rad / s to 0.6 rad / s; another type is the follower drone ( Figure 2 (The middle one is red), it has greater maneuverability than the Leader drone, with a speed range of 100m / s to 300m / s and an acceleration range of -6m / s². 2 ~6m / s 2 The angular velocity ranges from -1.2 rad / s to 1.2 rad / s. There is only one leader drone, and only the leader drone has collision detection with obstacles and target locations. There is no collision detection between the leader drone and follower drones, or between individual follower drones. There can be multiple follower drones. Figure 2 The screenshot shows a single drone as an example. Follower drones do not perform any collision detection; they simply follow the leader within a certain distance. A green pentagram represents the target location, and a red circle is a circle with a radius of 40 pixels and the target location's coordinates at its center. Once the leader drone enters this area, it is considered to have successfully reached the target location, and the round ends. A solid black circle represents an obstacle with a radius of 20 pixels. Once the leader drone enters this area, a collision detection occurs, the planning task fails, the drone is destroyed, and the round ends. In each new round, the initial state of all drones can be completely randomly generated, as can the target location and obstacle coordinates.

[0047] S2, Introducing two-dimensional UAV dynamics equations into the reinforcement learning air combat simulation environment;

[0048] (I) Dynamics equations for two-dimensional UAVs

[0049] The forces acting on unmanned aerial vehicles (UAVs) during flight are complex, including engine thrust, aerodynamic forces, and gravity. This invention primarily studies the UAV formation path planning problem. To simplify the research, the complex force processes, attitude motion processes, and physical characteristics such as shape and size of the UAVs are disregarded, and the UAVs are treated as point masses moving in two-dimensional space. Therefore, based on this, a two-dimensional UAV dynamic equation (i.e., a two-dimensional UAV dynamic model) is introduced into the reinforcement learning air combat simulation environment, including:

[0050] (1) The maneuvering behavior and state transition process of a single UAV are described using two-dimensional dynamic equations; it is expressed as:

[0051]

[0052] The two-dimensional dynamic equations of a single UAV describe its maneuvering behavior and state transition process; [x,y,v,ψ] is the UAV's flight state vector; (x,y) are the UAV's position coordinates; v is the UAV's velocity; ψ is the angle between the UAV and the x-axis, called the heading angle; [u,ω] is the UAV's control vector, where u is the UAV's acceleration control input, or simply acceleration; ω is the UAV's angular velocity control input, or simply angular velocity; the dots above the parameters indicate the calculation of the first derivative.

[0053] The two-dimensional dynamic equations of a single UAV in two-dimensional space and the spatiotemporal situation of the target location are as follows: Figure 3 As shown.

[0054] Where t1 and t2 are different moments in the movement of the drone, (x G ,y G ) represents the location coordinates of the target location, d G (t) and φ G (t) represents the distance and angle between the UAV and the target location, which is used to describe the battlefield spatial situation. The calculation equations are as shown in equations (2) to (3).

[0055] d G (t)=||(x G ,y G )-(x(t),y(t))|| (2);

[0056]

[0057] Where (x(t),y(t)) represents the position coordinates of the UAV at time t; atan2() represents the atan2 function.

[0058] (2) Based on the two-dimensional dynamic equation of the individual UAV and the two-dimensional spatiotemporal situation of the target location, determine the two-dimensional discrete dynamic equation of the UAV swarm consisting of N UAVs from time t to time t+1, so as to characterize the UAV dynamic model, which is expressed as:

[0059]

[0060] Where i is the index of the UAV, i = 1, 2, ..., N; N is a natural number greater than 1; Δt is the time step.

[0061] (ii) Constraints on the two-dimensional dynamic equations of unmanned aerial vehicles

[0062] The reinforcement learning air combat simulation environment introduces two-dimensional UAV dynamics equations, and also includes constraints on these equations, including:

[0063] The constraints for the UAV's flight state are defined as follows:

[0064]

[0065] Flight state constraints mainly refer to the constraints on the state variables of each drone during the flight of a drone swarm.

[0066] In equation (5), x i,min x i,max y i,min y i,max Let x represent the flight boundary range of the i-th UAV. i,min x i,max Let x be the minimum and maximum values ​​of the flight boundary of the i-th UAV, and y be the maximum and minimum values ​​of the flight boundary of the i-th UAV. i,min y i,max Let v be the minimum and maximum y-values ​​of the flight boundary of the i-th UAV; i,min v i,max Let ψ represent the speed range of the i-th UAV, and let ψ represent the minimum and maximum speeds, respectively; i,min ψ i,max Let represent the range of heading angles for the i-th UAV, and represent the minimum and maximum heading angles, respectively.

[0067] Based on obstacle avoidance and drone formation maintenance, drone flight path constraints are determined, including:

[0068] Unmanned aerial vehicles (UAVs) face two main types of path constraints during flight: avoiding obstacles such as hills and maintaining formation. Obstacles mean that UAVs cannot pass over or inside them; a collision would result in damage. For ease of handling, obstacles in this embodiment are designed as standard circular areas.

[0069] After defining the obstacle zone as a standard circular area, the constraints for the circular obstacle are determined as follows:

[0070]

[0071] In equation (6), (x O ,y O ) represents the coordinates of the center of the circular obstacle; d O R is the distance between the i-th drone and the obstacle; O The radius of the circular obstacle; (x i y i Let be the position coordinates of the i-th UAV;

[0072] To describe the formation of drones, in a formation of N drones, one drone is selected as the leader, and the remaining N-1 drones are followers. During the formation flight of the drone swarm, the follower drones need to follow the leader drone to maintain the formation. The distance between each follower drone and the leader drone should be maintained within a certain range, which can be described as the distance constraint between each follower drone and the leader drone, expressed as:

[0073] d jL,min ≤d jL ≤d jL,max (7);

[0074] Where j is the index of the follower drone, j = 1, 2, ..., N-1; d jL Let d be the distance between the j-th follower drone and the leader drone. jL,min d jL,max This represents the distance range between the j-th follower drone and the leader drone;

[0075] During actual flight, due to limitations in the control capabilities of the UAV, its flight control variables, such as acceleration and angular velocity, cannot exceed specified values. These control constraints are defined as follows:

[0076]

[0077] Among them, u i u is the acceleration control input for the i-th UAV; i,min u i,max ω represents the acceleration control input range for the i-th UAV; i ω is the angular velocity control input for the i-th UAV; i,min ω i,max This represents the angular velocity control input range for the i-th UAV.

[0078] S3. For the reinforcement learning air combat simulation environment that introduces two-dimensional UAV dynamics equations, a six-tuple of the partially observable Markov Decision Process (POMDP) ​​for the UAV swarm cooperative path planning problem is constructed to obtain the POMDP model.

[0079] Those skilled in the art will understand that the six-tuple of a partially observable Markov decision process includes: an observation set Z, a state set S, an action set A, a reward set R, a transition probability P, and an observation function O. For an explanation of the concept of a six-tuple, please refer to relevant technical explanations. The six-tuples constructed in the embodiments of this invention are described below.

[0080] (1) The observation set Z is represented as:

[0081] z i =[x i ,y i ,v i ,ψ i ,m i (9);

[0082] Among them, z i The observation state information of the i-th UAV in the observation set Z is in vector form; [x i ,y i ,v i ,ψ i ] is the flight state vector of the i-th UAV; where (x i ,y i Let ) represent the position coordinates of the i-th UAV; v i Let ψ be the velocity of the i-th drone; i Let m be the heading angle of the i-th UAV; i For the i-th drone, the observation information is related to the drone type; for the leader drone, m i =[O_flag,x G ,y G O_flag is the obstacle flag, set as follows;

[0083]

[0084] d O R is the distance between the i-th drone and the obstacle; O The radius of the circular obstacle; (x G ,y G The coordinates of the target location are 1; that is, when the distance between the drone and the obstacle is less than twice the radius of the obstacle, it is considered that there is an obstacle near the drone, and the obstacle marker is set to 1; otherwise, it is set to 0.

[0085] For follower drones, m i =[v L ,x L ,y L ];v L For the speed of the leader drone; (x L ,y L (m) represents the position coordinates of the leader drone; since there is only one leader drone in the drone penetration formation, the coordinates of all follower drones are... i All are [v L ,x L ,y L ].

[0086] (2) The state set S is represented as:

[0087] s i =[z1,z2,…,z N (11);

[0088] Specifically, the state of the i-th drone can be represented by vector s. i It means, s i The state information of the i-th UAV in the state set S; the state quantity s of each UAV i All of these include the observation status information of the drone. i And information about the observation status of other drones. Therefore, for each drone, s i They are the same.

[0089] (3) The action set A is represented as:

[0090] a i =[u i ,ω i (12);

[0091] The UAV maneuver decision defined in this embodiment of the invention is to select appropriate acceleration and angular velocity and then execute for a time ΔT to achieve the desired speed and desired heading angle of the UAV. As shown in formula (12), the motion control input a of the i-th UAV is... i Let A be a two-dimensional vector, and let the actions be continuous quantities. Let A be the action set, which represents the joint action space.

[0092] Among them, a i The motion control input for the i-th UAV in the motion set A; u i Let ω be the acceleration of the i-th drone; iLet be the angular velocity of the i-th UAV, satisfying the UAV control quantity constraint, i.e., formula (8); moreover, since the UAVs defined in this invention are heterogeneous, the control quantity constraint thresholds for different types of UAVs (including leaders and followers) are not the same, i.e., the upper and lower limits of the range of acceleration and angular velocity are determined according to the UAV type.

[0093] (3) The reward set R

[0094] In order to better complete Figure 2 The illustrated drone swarm path planning task demonstrates that this invention employs different reward and penalty mechanisms for different types of drones. Specifically:

[0095] ①Targeting drones for leaders:

[0096] First, design the boundary reward r. edge When the leader's drone reaches near the boundary, a penalty of -1 is given; otherwise, no reward or penalty is given.

[0097] Leader drone boundary reward r edge Represented as:

[0098]

[0099] Secondly, design obstacle avoidance reward r obs When the distance between the leader drone and an obstacle is less than twice the radius of the obstacle, the drone is considered to have a potential risk of colliding with the obstacle and is penalized with a penalty of -2. When the distance between the leader drone and an obstacle is less than the radius of the obstacle, the drone will collide with the obstacle and be destroyed, and will be penalized with a penalty of -500. Otherwise, except for the above situations, no reward or penalty will be given to the drone.

[0100] Leader drone obstacle avoidance reward r obs Represented as:

[0101]

[0102] Then, design the target reward r goal When the distance between the leader drone and the target point is less than the threshold D1, it is considered to have reached the target point and is given a positive reward of 1000; otherwise, a penalty is designed based on the distance between the drone and the target point.

[0103] Leader drone target reward r goal Represented as:

[0104]

[0105] Where k1 is a preset coefficient; d GD1 represents the distance between the drone and the target location; D2 represents the distance threshold between the leader drone and the target location.

[0106] Redesign formation distance reward r follow When the leader drone and other follower drones are kept within a certain distance, it is considered to have successfully formed a penetration formation, and no reward or penalty is given at this time; otherwise, a penalty is designed based on the distance between the leader drone and other drones.

[0107] Leader drone formation distance reward r follow Represented as:

[0108]

[0109]

[0110] Here, k2 is a preset coefficient, which can be different from k1. The values ​​of k1 and k2 can be set as needed, for example, it can be 0.01.

[0111] Finally, design the speed-coordinated reward r speed When the speed error between the leader drone and other drones is less than the threshold of 1, speed coordination is considered to have been successfully achieved, and a reward of 5 is given; otherwise, no reward or penalty is given to the drone.

[0112] Leader drone speed synergy reward r speed Represented as:

[0113]

[0114]

[0115] Among them, v j Let be the speed of the j-th follower drone.

[0116] Therefore, the reward function for the leader drone can be obtained as follows:

[0117] R L =ω L,1 r edge +ω L,2 r obs +ω L,3 r goal +ω L,4 r follow +ω L,5 r speed (20);

[0118] Among them, R L For the reward function of the leader drone; r edge For the leader drone's boundary reward; robs Obstacle avoidance rewards for leader drones; goal The target reward for the leader's drone; follow For the leader drone's formation distance bonus; r speed Speed-coordinated reward for the leader's drone: ω L,1 ω L,2 ω L,3 ω L,4 ω L,5 r edge r obs r goal r follow r speed The weight.

[0119] ②Targeting follower drones:

[0120] For follower-type drones (N-1 in total), a formation distance reward is first designed. When the j-th follower drone is within a certain distance from the leader drone, it is considered to have successfully formed a penetration formation, and no reward or penalty is given at this time; otherwise, a penalty is designed based on its distance from the leader drone.

[0121] The formation distance bonus r of the j-th follower drone follow,j Represented as:

[0122]

[0123] Secondly, a speed coordination reward is designed. When the speed error between the j-th follower drone and the leader drone is less than the threshold of 1, speed coordination is considered to have been successfully achieved, and a reward of 5 is given. Otherwise, no reward or penalty is given to the follower drone.

[0124] The speed-coordinated reward of the jth follower drone r speed,j Represented as:

[0125]

[0126] Therefore, the reward function for each follower drone j can be obtained as follows:

[0127] R F,j =ω F,1 r follow,j +ω F,2 r speed,j (twenty three);

[0128] Among them, R F,j Let r be the reward function for the j-th follower drone; follow,j The formation distance bonus for the j-th follower drone; r speed,jThe speed-coordinated reward for the j-th follower drone; ω F,1 ω F,2 r follow,j r speed,j The weight.

[0129] The total reward set R consists of the reward R of a leader drone. L R and N-1 follower drones F,j Composition, represented as:

[0130] R = [R L ,R F,j ] (twenty four);

[0131] (4) Transition probability P and observation function O

[0132] Since the current POMDP is not a partially observable Markov decision process in the strict academic sense for reinforcement learning, and the UAV swarm path planning environment built in this embodiment is dynamic and uncertain, the transition probability P and the observation function O are unknown. In fact, the deep reinforcement learning algorithm used in this embodiment is a model-free algorithm, therefore the transition probability P and the observation function O are empty.

[0133] S4, based on the multi-agent soft actor critic algorithm, trains agents to solve the POMDP model strategy for UAV swarm cooperative path planning in the air combat simulation environment through the interaction between UAVs and the air combat simulation environment, and obtains the weight parameters of the trained agent neural network.

[0134] This step is implemented using the MASAC-based UAV swarm cooperative path planning strategy training algorithm proposed in this invention, which will be referred to as the MASAC algorithm for ease of understanding.

[0135] S4 may include the following steps:

[0136] Step a1: Initialize the N actor networks, critic network, and entropy network in the multi-agent soft actor critic algorithm;

[0137] In this system, each drone is considered an agent, and each drone corresponds to an actor network, a critic network, and an entropy network. Step a1 initializes the weight parameters of the networks corresponding to each drone to enable each network to operate.

[0138] Step a2: Initialize the total number of data in the experience pool D; set the noise added during training to OU noise; set the maximum number of rounds and the maximum time step within a round;

[0139] The experience pool D is used to store samples. Specifically, it is a two-dimensional matrix with A1 rows and A2 columns. It is initially empty, so the total number of data that can be stored is A1×A2. The values ​​of A1 and A2 can be set as needed. For example, A1 can be 10000 and A2 can be 20.

[0140] The noise added during training is used to select noise on the agent; the introduction of exploration noise in this embodiment of the invention is equivalent to performing a traversal, so that the agent will not miss the optimal strategy during training, which is beneficial to the convergence of the algorithm.

[0141] The maximum number of rounds represents the stopping condition for the entire training process, and can be represented by Maxepisode. The entire training process of the MASAC algorithm is a continuous repetition of multiple rounds. Unlike the general neural network training process, the rounds in this embodiment of the invention are divided into interactive rounds and training rounds, which are numbered sequentially according to the order in which they appear. They can be uniformly referred to as rounds, and are represented by episode. For example, episode=1 represents the first round.

[0142] The maximum time step within a round refers to the maximum number of moments that can be completed within an interactive round. Each moment is a time step. The maximum time step within a round can be represented by Maxstep, and each moment within an interactive round can be represented by step, which is a time step. For example, step=1 represents the first moment within an interactive round.

[0143] Step a3: Initiate an interactive round, initialize the environment, and obtain the initial state set S;

[0144] At the start of each interactive round, environmental initialization is required because the drone's state and other environmental parameters change. This includes initializing the drone's initial state, such as its x-position, y-position, velocity v, and heading angle ψ, as well as the coordinates of the target location and obstacles. In the first round, the initial state set S at the first moment can be randomly generated to facilitate the processing of that first round. In subsequent moments, the state set S obtained at each moment is derived from the calculation results of the previous moment.

[0145] Step a4: For each moment in the current interaction round, based on the state information s of each UAV in the state set S obtained at that moment... i Input the observation status information z into the actor network corresponding to each UAV. i The motion control input a of each UAV is obtained. i =[u i ,ω i ]; and the OU noise is combined with the motion control input a of each UAV. i Overlay;

[0146] Step a4 involves using OU noise for action selection.

[0147] Please see Figure 4 Understanding that during algorithm training, agent i uses its corresponding observed state information z i As input to the policy network (actor network), the output is the action a of agent i. i The OU noise and the motion control input a of each UAV. i Superposition is used to allow the agent to experience as many states as possible, in order to find more policies and obtain a near-optimal policy.

[0148] Step a5: Limit the motion control input of each UAV after superimposed OU noise within a predetermined range;

[0149] This step of limiting the amplitude is to meet the control constraints of the UAV. The predetermined range can be set as needed, for example, it can be [-1, 1].

[0150] Step a6: Use the motion control inputs of all UAVs after the amplitude limit to form the action set A at this moment, execute the preset step function, and return the reward set R at this moment and the state set S' of the next moment through the interaction between the UAV and the reinforcement learning air combat simulation environment.

[0151] In this embodiment of the invention, the preset step function is the same as the step function commonly used in reinforcement learning, both reflecting the interaction and feedback between the agent and the environment. The environment executes the action set A, which consists of all actions of the agent after amplitude limiting, to obtain the reward set R at the current time step and the state set S' at the next time step.

[0152] Step a7: The state set S, action set A, reward set R at this moment, and the state set S' at the next moment are combined to form a sample and stored in the experience pool D;

[0153] Figure 4 The following s, s', a, and r represent a sample. s, s', a, and r are all 1×N vectors. Here, s is simplified to represent the current state set S, a and r are simplified to represent the current action set A and reward set R, respectively, and s' is simplified to represent the next state set S'.

[0154] Step a8: Determine whether the number of samples in the experience pool D has reached the total number of data in the experience pool D. If not, proceed to step a9; if so, proceed to step a10.

[0155] The embodiments of the present invention can monitor in real time whether the number of samples in the experience pool D has reached the total number of data in the experience pool D. If so, the interaction with the environment is stopped and a simulation round is performed; if not, the interaction with the environment continues and samples are generated.

[0156] In one optional implementation, after generating samples and storing them in the experience pool at each time step, it can be checked whether the number of samples in the experience pool D has reached the total number of data in the experience pool D. If the experience pool is not full at this time, step a9 is executed; if the experience pool is full, the training round of step a10 is executed.

[0157] Step a9: Determine whether the maximum time step within the round has been reached at this moment; if not, return to step a4 using the obtained state set S' for the next moment; if yes, end the current interaction round and execute step a3.

[0158] If the experience pool is not full at this time, it is necessary to first determine whether the current round needs to end, that is, whether the current time has reached the maximum time step within the round (Maxstep). If not, it means that the current round needs to continue. Then, the state set S' of the next time step is used to return to step a4 to continue the processing of the next time step within the current round. At this time, the state set S' of the next time step obtained in step a6 is used as the state set S obtained after returning to step a4. If the time of the current round reaches the maximum time step within the round (Maxstep), then the current round ends, and step a3 is executed to continue to the next interactive round.

[0159] Step a10: Start a training round and randomly sample a batch of samples from the experience pool D; use the sampled samples to update the weight parameters of the actor network, critic network and entropy network of each UAV in the manner of gradient descent, so as to update each network.

[0160] Information concatenated from the state and actions of agent i (s) i ,a i The input (s) to the critic network guides the training of the value network. In this embodiment of the invention, the networks corresponding to each agent are trained independently. Therefore, for agent i, the information (s) obtained by concatenating its own state and action is used. i ,a i It serves as the input to its corresponding critic network.

[0161] Note that this invention uses an actor network with weight parameter θ to fit the policy function and a critic network with weight parameter w to fit the value function. The policy of the i-th agent is represented as π. i Its network parameters are θ i The value network parameter is w i The cumulative expected reward for the i-th agent can be expressed as:

[0162]

[0163] Where E represents the expected value; γ is the decay factor; Ri (t) represents the reward obtained by the i-th agent at time t.

[0164] The MASAC algorithm retains the centralized training and distributed execution framework of MADDPG, where each agent is an independent SAC algorithm. For each agent i, its network update process is similar to that of a single SAC algorithm; the updates of the state-action-value network, policy network, and entropy network are as follows: Figure 5 As shown.

[0165] State-Action-Value Network Q i (s t ,a t ) represents the state s of the i-th agent. t At that time, take action a t The expected cumulative reward obtained afterwards. In order to estimate Q in continuous and high-dimensional action spaces... i (s t ,a t The SAC approximates the value using a neural network represented by parameter w. Right now The mean squared error (MSE) is used as the loss function, and the adaptive moment estimation algorithm is used to update the SAC network parameters. The MSE loss function is used to iteratively update the network parameters and improve the accuracy of the algorithm. Therefore, the loss function can be expressed by equation (26).

[0166]

[0167] Among them, Q i (s t ,a t ) is the state / action value of the Q-network at time t. It represents the state and action value of agent i at time t in the target Q-network. The parameters of the target Q-network are determined by... This indicates that soft updates are performed using equation (27).

[0168]

[0169] Where τ represents the soft update rate; D is the experience pool, i.e., the experience replay buffer, which is responsible for collecting training data and providing samples for training.

[0170] The policy network is a mapping from state to action. SAC finds a new policy π by minimizing the KL divergence. new ,satisfy Therefore, the loss function of the policy π of the i-th agent can be defined as:

[0171]

[0172] Among them, Z i (s t ) is a function used to normalize the distribution. It depends on the state of agent i and has no effect on the parameter gradient of the policy network.

[0173] The SAC algorithm is highly sensitive to the temperature coefficient of entropy. When the agent is in an unknown environment, increasing the temperature coefficient α is beneficial for exploration. Conversely, when the agent is familiar with the environment, α should be decreased so that the agent can choose the optimal strategy. Since the entropy network has the ability to automatically adjust the temperature coefficient α, thus maintaining a balance between exploration and exploitation, the loss function J(α) of agent i in the entropy network at time t is:

[0174]

[0175] in, It is a predefined minimum policy entropy threshold.

[0176] In short, for step a10, for each drone i, gradient descent is performed on the critic network according to formula (26), gradient descent on the actor network according to formula (28), and gradient descent on the entropy network according to formula (29). The weight parameters of the actor network and the entropy network are periodically updated to achieve the desired result. α t+1 ←α t The weight parameters of the critic network are soft-updated according to formula (27).

[0177] Step a11: Determine whether the maximum number of rounds has been reached. If not, return to step a3; if yes, end the training, save the parameters of each network, and obtain the weight parameters of the trained agent neural network.

[0178] This embodiment of the invention can monitor in real time whether the maximum number of rounds has been reached. If the current round has not reached the maximum number of rounds, it returns to step a3 for a new interaction round. After returning to step a3, environment initialization is still required, and an initial state set S is obtained using the random generation method during initialization. At this time, when executing step a4, the trained actor networks are used. This continues until step a7, when samples are generated again and added to the experience pool. After the experience pool is full for the first time, the network training generates samples again. The newly added samples will cause the earliest added samples in the experience pool to be removed, thereby updating the experience pool samples. At this time, the sample pool is updated but will still reach a full state. The network training will be completed again by sampling samples based on the updated sample pool. This process is repeated until the maximum number of rounds is reached.

[0179] In other words, if the current round reaches the maximum number of rounds, the entire algorithm training process ends, and the weight parameters of each network are saved. Those skilled in the art will understand that obtaining the weight parameters of the trained agent neural network at this time is equivalent to obtaining the trained agent neural network.

[0180] S5 inputs the decision-making status information of the drone swarm into the trained agent neural network and outputs the action decision results of each drone.

[0181] Specifically, the state set S, which represents the decision-making state information of the drone swarm, is input into the trained agent neural network, and the action set A is output to obtain the action decision results of each drone.

[0182] S5 is a process of implementing practical decision-making applications using a trained agent neural network.

[0183] This invention proposes a safe path planning method for unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent reinforcement learning. First, a reinforcement learning environment is established to simulate the arrival of a UAV swarm at its target location in an air combat scenario. This simulation environment considers the UAVs' dynamic equations, obstacle avoidance, and the heterogeneity of the UAVs. Then, the path planning problem of the UAV swarm is modeled as a POMDP model, and a corresponding six-tuple is designed. Next, a novel multi-agent deep reinforcement learning algorithm—MASAC—is used to handle the path planning problem of the UAV swarm in a dynamic and uncertain air combat environment. The constructed POMDP model is trained to obtain a trained POMDP model, enabling it to find a strategy that maximizes the reward function and obtain the joint behavior of multiple agents. Finally, the trained POMDP model is used to output the action decision results of each UAV based on the decision-making state information of the UAV swarm. This allows the trained UAV swarm to make autonomous path decisions in complex and dynamic air combat environments, reaching the target location while maintaining formation coordination, safe obstacle avoidance, and flight within boundaries. This invention utilizes deep reinforcement learning to replace human control decisions for path planning in the rapidly changing environment of aerial combat, reducing the psychological and physical stress on pilots. Employing a multi-agent deep reinforcement learning algorithm addresses the curse of dimensionality, better solving dynamic path planning problems. By learning through continuous interaction with the environment, it ultimately finds a strategy that maximizes cumulative rewards. This allows drones to reach their targets while maintaining formation coordination, safe obstacle avoidance, and flight within designated boundaries, and can be flexibly applied to drone swarms of varying sizes.

[0184] To facilitate understanding of the effects of the methods in the embodiments of the present invention, relevant simulation experimental results are given below.

[0185] Table 1 lists all parameters and hyperparameters of the MASAC algorithm. It's important to note that OU noise was only added in the first 20 rounds of this experiment to allow the agent to explore as many states randomly as possible. After 20 rounds, no exploration noise was added, which makes the convergence of the MASAC algorithm more stable. The three parameters of the OU exploration noise were set to σ. ou =0.1, θ OU =0.1,dt OU =0.01. Version information of some major installation packages: pygame version: 2.1.2; gym version: 0.19.0; pytorch version: 1.10.0+cu113; numpy: 1.23.1.

[0186] Table 1. Parameters and Hyperparameters of MASAC

[0187]

[0188] As shown in Table 1, the actor network is a fully connected layer with a 7-256-256-2 structure. The activation functions consist of ReLU and tanh. The initial weights of the neural network are randomly selected from a normal distribution with a mean of 0 and a variance of 0.1, and the learning rate is 1e. -3 The critic network takes augmented state and action information as input. The input layer has 7*N+2 nodes and is a fully connected layer with a 7*N+2-256-256-1 structure. The activation function consists only of ReLU. The initial weights of the neural network are randomly selected from a normal distribution with a mean of 0 and a variance of 0.1, and the learning rate is 3e. -3 The entropy network does not have a fully connected layer structure. Its initial entropy weights and the target logarithmic entropy weights are automatically adjusted during training to balance exploration and exploitation. The learning rate is 3e. -4 .

[0189] The entire simulation experiment was run on a standard Intel Core i5-11260H processor with 16Gb RAM (RTX-3050 graphics card). During the agent's training phase, a simple two-unit formation was considered: a leader drone and a follower drone. If either of the following two scenarios occurs: Scenario 1: the drone encounters an obstacle and dies; Scenario 2: the drone survives but fails to reach the target location within the specified 1000 time steps, then this training session is reset, referred to as a round, and the next round of training begins. The total number of training rounds is set to 500. This experiment cumulatively calculates the single-step reward obtained by the agent in each round, then plots the total reward curve for 500 rounds, and repeats the 500-round training multiple times to calculate the average and variance. The resulting graph is shown below. Figure 6As shown, the total reward during the training phase converges.

[0190] To verify the effectiveness of the proposed multi-agent soft actor critic algorithm in solving the path planning problem of UAV swarms, this invention selects the maximum task completion rate, maximum formation maintenance rate, shortest flight time, shortest flight trajectory, and minimum energy consumption as performance indicators to evaluate the quality of the autonomous path planning decisions of the trained UAVs.

[0191] Maximum Task Completion Rate (MCR):

[0192] J MCR =max(MCR)=max(N) C / N T (30);

[0193] Maximum formation retention rate (FKR):

[0194] J FKR =max(FKR)=max(T) C / T T (31);

[0195] Where, N C N represents the number of rounds in which the task was successfully completed. T T represents the total number of rounds in the Monte Carlo test; C T is the time step in which the drone swarm formation is successfully maintained within a round; T This is the total time step for this round.

[0196] Shortest flight time:

[0197] J T =min(t) f (32);

[0198] Among them, t f The final moment for the leader's drone.

[0199] Shortest flight path:

[0200]

[0201] Minimum energy consumption:

[0202]

[0203] During the testing phase, to clearly observe the flight path of the drone swarm, the time step Δt was set to 0.1. Simulation tests were conducted in the environment using the pre-trained neural network weight parameters of two drones. Based on these network parameters, the number of drones was expanded to 2, 3, 4, and 5, with 100 Monte Carlo tests performed for each. The test data results are shown in Table 2.

[0204] Table 2 Performance Indicators for Different Numbers of Drones

[0205]

[0206] As shown in Table 2, regardless of the number of drones, the success rate of successfully reaching the target location via path planning remains around 91%, the flight time is around 270, the flight path length is around 150, and the energy consumption is around 300. This indicates that the algorithm can solve the path planning problem for multiple drones. Notably, the formation maintenance rate of the drone swarm decreases as the number of drones increases; the more drones there are, the lower the formation maintenance rate. This is because the maximum formation maintenance rate J... FKR It is the formation retention rate shared by the leader drone and all other follower drones. As the number of drones increases, the conditions for successful formation retention become more stringent, resulting in a lower formation retention rate.

[0207] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for safe path planning of unmanned aerial vehicles (UAVs) based on maximum entropy multi-agent reinforcement learning, characterized in that, include: To address the collaborative path planning problem of a drone swarm consisting of a leader drone and multiple follower drones, a reinforcement learning-based air combat simulation environment for drone interaction is built based on pre-assumptions, and the parameters are initialized. Two-dimensional UAV dynamics equations are introduced into the reinforcement learning air combat simulation environment. For a reinforcement learning air combat simulation environment that introduces two-dimensional UAV dynamics equations, a six-tuple of partially observable Markov decision process for the UAV swarm cooperative path planning problem is constructed to obtain the POMDP model. Based on the multi-agent soft actor critic algorithm, through the interaction between UAVs and the air combat simulation environment, the agent is trained to solve the UAV swarm cooperative path planning (POMDP) ​​model strategy in the air combat simulation environment, and the weight parameters of the trained agent neural network are obtained. The decision-making status information of the drone swarm is input into the trained agent neural network, and the action decision results of each drone are output. The constructed six-tuple of the partially observable Markov decision process for the UAV swarm cooperative path planning problem includes: observation set Z, state set S, action set A, reward set R, transition probability P, and observation function O; where: The observation set Z is represented as: ; in, For the observation set Z, the first... The observation status information of the drone; For the first The flight state vector of the UAV; where ( ) is the first The location coordinates of the drone; For the first The speed of the drone; For the first The heading angle of the drone; For the first The observation information of the drones is related to the type of drone; for the leader drone, ; This is an obstacle marker. ; For the first The distance between the drone and the obstacle; The radius of the circular obstacle; () represents the location coordinates of the target location; for follower drones, ; For the speed of the leader's drone; ( ) represents the location coordinates of the leader drone; The state set S is represented as: ; in, For the state set S, the first... Status information of the drone; The action set A is represented as: ; in, For the action set A, the first... Motion control input for the drone; For the first The acceleration of the drone; For the first The angular velocity of the drone satisfies the control constraints of the drone; The reward set R is represented as: ; in, The reward function for the leader drone; For the first The reward function for the follower drone; ; Boundary rewards for leader drones; Obstacle avoidance rewards for leader drones; Target rewards for leaders' drones; Rewards for the formation distance of the leader's drones; Speed-coordinated rewards for leader drones: , , , , They are respectively , , , , The weights; ; For the first Formation distance bonus for follower drones; For the first Speed-coordinated rewards for follower drones; , They are respectively , The weights; The transition probability P and the observation function O are empty; in, Leader drone boundary rewards Represented as: ; Obstacle avoidance rewards for leader drones Represented as: ; Leader drone target reward Represented as: ; Leader drone formation distance reward Represented as: ; ; Leader drone speed synergy reward Represented as: ; ; No. Formation distance reward for follower drones Represented as: ; No. Speed-coordinated reward for follower drones Represented as: ; in, , These are preset coefficients; The distance between the drone and the target location; The distance threshold between the leader drone and the target location; For the first The speed of the follower drone; For the first The distance between the follower drone and the leader drone , Indicates the first The distance range between follower drones and leader drones; drone swarm includes A drone.

2. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 1, characterized in that, The assumptions include: The movement of the drone only considers planar motion, excluding the influence of other external factors in the environment, and the drone learns the target location through ground radar detection.

3. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 2, characterized in that, The construction of the reinforcement learning-based air combat simulation environment for UAV interaction includes: A pixel plane of a preset size is used to represent the actual two-dimensional space; Determine the marking method and corresponding circular area for the target location; Determine the method for marking obstacles, and set obstacles as standard circular areas, and define the range of the circular areas; The collision detection conditions in the reinforcement learning air combat simulation environment are set up so that the leader drone has collision detection with obstacles and target locations, while there is no collision detection between the leader drone and follower drones, or between each follower drone.

4. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 3, characterized in that, The initialization settings for the completion parameters include: Set the speed range, acceleration range, and angular velocity range for the drone; Set the initial state of the drone, including the drone's position coordinates, speed, heading angle, and the position coordinates of the target location and obstacles.

5. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 1, characterized in that, Two-dimensional UAV dynamics equations are introduced into the reinforcement learning air combat simulation environment, including: The maneuvering behavior and state transition process of a single UAV are described using two-dimensional dynamic equations; wherein, the two-dimensional dynamic equations of the single UAV are expressed as: ; in, This is the flight state vector of the UAV; () represents the location coordinates of the drone; For drone speed; For drones and The angle between the axes is called the heading angle; Let be the control vector of the UAV, where For the acceleration control input of the drone, This is the angular velocity control input for the UAV; the dot above the parameter indicates the calculation of the first derivative. Based on the two-dimensional dynamic equations of the individual UAV and the two-dimensional spatiotemporal situation of the target location, the UAV swarm consisting of N UAVs is determined from time [time]. At the time The two-dimensional discrete dynamic equations are represented by the following model: ; in, For drone indexing, ; For time step.

6. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 5, characterized in that, The reinforcement learning air combat simulation environment introduces two-dimensional UAV dynamic equations, and also includes: The constraints for the UAV's flight state are defined as follows: ; in, , , , Indicates the first The flight boundary range of the drone , Indicates the first The speed range of the drone , Indicates the first The heading angle range of the drone; Based on obstacle avoidance and drone formation maintenance, drone flight path constraints are determined, including: After defining the obstacle zone as a standard circular area, the constraints for the circular obstacle are determined as follows: ;in, The coordinates of the center of the circular obstacle; For the first The distance between the drone and the obstacle; The radius of the circular obstacle; Distance constraints between each follower drone and the leader drone: ;in, For indexing follower drones, ; For the first The distance between the follower drone and the leader drone , Indicates the first The distance range between the follower drone and the leader drone; The control constraints for the unmanned aerial vehicle (UAV) are defined as follows: ; in, For the first Acceleration control input for the drone; , Indicates the first The acceleration control input range for the drone; For the first Angular velocity control input for the drone; , Indicates the first The angular velocity control input range for the drone.

7. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 6, characterized in that, The multi-agent soft actor critic algorithm trains agents to solve the cooperative path planning (POMDP) ​​model strategy for UAV swarms in an air combat simulation environment through interaction between UAVs and the simulation environment. The resulting trained agent neural network weight parameters include: Step a1: Initialize the N actor networks, critic network, and entropy network in the multi-agent soft actor critic algorithm; Step a2: Initialize the total number of data in the experience pool D; set the noise added during training to OU noise; set the maximum number of rounds and the maximum time step within a round; Step a3: Initiate an interactive round, initialize the environment, and obtain the initial state set S; Step a4: For each moment in the current interaction round, based on the state information of each UAV in the state set S obtained at that moment... Input observation status information into the actor network corresponding to each UAV. The motion control inputs of each UAV are obtained. The OU noise is then input into the motion control system of each UAV. Overlay; Step a5: Limit the motion control input of each UAV after superimposed OU noise within a predetermined range; Step a6: Using the motion control inputs of all UAVs after the clipping, construct the action set A for this moment, execute the preset step function, and through the interaction between the UAVs and the reinforcement learning air combat simulation environment, return the reward set R for this moment and the state set for the next moment. ; Step a7: Set the state set S, action set A, reward set R at this moment, and the state set at the next moment. A sample is created and stored in the experience pool D; Step a8: Determine whether the number of samples in the experience pool D has reached the total number of data in the experience pool D. If not, proceed to step a9; if so, proceed to step a10. Step a9: Determine whether the maximum time step within the round has been reached at this moment; if not, utilize the obtained state set for the next moment. Return to step a4; if yes, end the current interaction round and execute step a3; Step a10: Start a training round and randomly sample a batch of samples from the experience pool D; use the sampled samples to update the weight parameters of the actor network, critic network and entropy network of each UAV in the manner of gradient descent, so as to update each network. Step a11: Determine whether the maximum number of rounds has been reached. If not, return to step a3; if yes, end the training, save the parameters of each network, and obtain the weight parameters of the trained agent neural network.

8. The UAV safe path planning method based on maximum entropy multi-agent reinforcement learning according to claim 7, characterized in that, The process of inputting the decision-making state information of the drone swarm into the trained agent neural network and outputting the action decision results of each drone includes: The state set S, which represents the decision-making state information of the UAV swarm, is input into the trained agent neural network, and the action set A is output to obtain the action decision results of each UAV.