A method, device and equipment for stabilizing fixed-wing UAV master-wingman cluster

Through the multi-agent deep reinforcement learning method based on the Markov decision-making process, the stability problem of the fixed-wing UAV cluster after the main engine is damaged is solved, and rapid reorganization and stable control are achieved, which is suitable for fixed-wing UAVs with complex dynamic properties. Human-machine cluster.

CN118394107BActive Publication Date: 2024-09-10NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817381.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-10
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Existing fixed-wing UAV swarm control methods are difficult to maintain the stability of the swarm after the host is damaged, and fixed-wing UAVs with complex dynamic properties are more likely to be damaged. It is difficult for traditional methods to find an optimization strategy to maintain the UAV swarm formation.

Method used

Using a multi-agent deep reinforcement learning method based on the Markov decision process, by randomly assigning network parameters, initializing the strategy and status, selecting the host and wingmen, executing actions and calculating rewards, softly updating parameters, achieving stable cluster control, and on the host Quickly reassembles when damaged.

Benefits of technology

It realizes the rapid training of fixed-wing UAV cluster control strategy, ensures the stability of the cluster, and quickly reorganizes after the host is damaged, and can handle the fixed-wing UAV cluster problem with four degrees of freedom and six degrees of freedom.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394107B
    Figure CN118394107B
Patent Text Reader

Abstract

The present application belongs to the technical field of drone clusters, and relates to a method, device and equipment for stabilizing the main and wingman clusters of fixed-wing drones. The method includes: obtaining the main and wingman cluster tasks of fixed-wing drones, and modeling them as a Markov decision process; randomly assigning network parameters to obtain the initial strategy and initial state; randomly selecting the host and wingman, performing the initial action, obtaining the updated state, and calculating the initial reward; taking the initial state, initial action, updated state and initial reward of each wingman as a tuple; when the preset first condition is met, sampling the tuple, calculating the policy gradient and residual, and soft-updating the network parameters to obtain the next strategy and next state, perform the next action, obtain the next updated state, and calculate the next reward; when the preset second condition is met, executing the action according to the strategy corresponding to the current network parameters. The present application can realize a stable main and wingman cluster of fixed-wing drones.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of drone clusters, and in particular to a method, device and equipment for stabilizing fixed-wing drone master-wingman clusters. Background Art

[0002] Leader-Follower is a typical control method in the field of multi-agent control. It designates one agent as the Leader (host) and the other agents as Followers (wingmen), allowing the wingmen to follow the movement of the host, so that the difference in speed and position between the host and the wingmen can always be controlled within a certain range.

[0003] In recent years, there have been a lot of research on master-wingman based UAV swarming methods, such as master-wingman UAV swarming methods based on model predictive control, consensus algorithm and other technologies.

[0004] However, these methods often require precise modeling of the UAV flight platform, environment, etc.; and these methods are usually only aimed at relatively simple quadrotor UAV cluster problems. For fixed-wing UAV cluster problems with very complex dynamic properties, fixed-wing UAVs are more sensitive to control parameters and are therefore more easily damaged. When the host UAV is damaged, traditional methods often find it difficult to find a better strategy to enable the UAV cluster formation to continue. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device and equipment for stabilizing the main-winger cluster of fixed-wing UAVs in response to the above-mentioned technical problems, which can quickly realize a stable main-winger cluster of fixed-wing UAVs.

[0006] A method for stabilizing a fixed-wing UAV master-winger cluster, comprising:

[0007] Obtaining a fixed-wing UAV master-wingman cluster task, selecting a UAV dynamics model, and modeling the fixed-wing UAV master-wingman cluster task as a Markov decision process;

[0008] Based on the Markov decision process, network parameters are randomly assigned to each fixed-wing UAV to initialize the strategy and state, thereby obtaining an initial strategy and an initial state;

[0009] A fixed-wing UAV is randomly selected as the host and the other fixed-wing UAVs are wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain updated states, and calculate the initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple;

[0010] When the preset first condition is met, the tuples are randomly sampled to calculate the policy gradient and residual of each wingman, and the network parameters of each fixed-wing UAV are soft-updated to obtain the next policy and the next state, and the next action is performed to obtain the next updated state and calculate the next reward;

[0011] According to the next feedback judgment, when the preset second condition is met, the action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster.

[0012] In one embodiment, when the preset first condition is not met, the update state is input into the initial strategy, the initial action, the update state and the initial reward are updated, and a new tuple is obtained until the preset first condition is met.

[0013] In one embodiment, when the preset second condition is not met, the network parameters of each fixed-wing UAV are soft-updated according to the policy gradient to obtain the next strategy and the next state, and the next action is executed to obtain the next updated state, and the next reward is calculated until the preset second condition is met.

[0014] In one embodiment, when the host is hit and loses communication with the wingman, the host induction factor of each wingman is calculated, and the wingman with the largest host induction factor is selected as the new host, and the remaining wingmen are new wingmen;

[0015] According to the current strategy and current status, the new host and the new wingman execute the current action, obtain a tuple, and determine whether the preset first condition is met.

[0016] In one embodiment, a fixed-wing UAV master-winger cluster task is obtained, a UAV dynamics model is selected, and the fixed-wing UAV master-winger cluster task is modeled as a Markov decision process, including:

[0017] Obtain fixed-wing UAV master-wingman cluster mission;

[0018] According to the fixed-wing UAV master-wingman cluster mission, select the UAV dynamics model with four degrees of freedom or the UAV dynamics model with six degrees of freedom;

[0019] According to a four-degree-of-freedom UAV dynamics model or a six-degree-of-freedom UAV dynamics model, the fixed-wing UAV master-winger cluster mission is modeled as a Markov decision process.

[0020] In one embodiment, based on the Markov decision process, network parameters are randomly assigned to each fixed-wing UAV to initialize the strategy and state to obtain the initial strategy and initial state, including:

[0021] Based on the Markov decision process, the Actor network parameters and the Critic network parameters of each fixed-wing UAV are randomly assigned to initialize the strategy to obtain the initial strategy. At the same time, the spatial position, speed, and posture of the fixed-wing UAV are initialized to obtain the initial state.

[0022] In one embodiment, according to the initial strategy and the initial state, the host and the wingman perform initial actions, obtain an updated state, and calculate an initial return of each wingman, including:

[0023] According to the initial strategy and the initial state, the host and the wingman perform initial actions;

[0024] When the selected UAV dynamics model is a four-degree-of-freedom UAV dynamics model, the initial action performed includes two control quantities: the roll angle change and the speed change;

[0025] When the selected UAV dynamics model is a six-degree-of-freedom UAV dynamics model, the initial action performed includes four control quantities: throttle, elevator deflection, aileron deflection, and rudder deflection of the fixed-wing UAV;

[0026] According to the initial actions performed by the host and the wingman, an updated state is obtained, and an initial return of each wingman is calculated.

[0027] In one embodiment, according to the initial actions performed by the host and the wingman, an updated state is obtained, and an initial report of each wingman is calculated, including:

[0028] Inputting the initial actions performed by the host and the wingman into the UAV dynamics model to obtain an updated state;

[0029] Based on the updated state, the initial reward for each wingman is calculated according to the modified Cucker-Smale cluster reward.

[0030] A stable fixed-wing UAV master-wingman cluster device, comprising:

[0031] An acquisition module is used to acquire a fixed-wing UAV master-wingman cluster task, select a UAV dynamics model, and model the fixed-wing UAV master-wingman cluster task as a Markov decision process;

[0032] An initial module, used for randomly assigning network parameters to each fixed-wing UAV based on the Markov decision process to initialize the strategy and state to obtain an initial strategy and initial state;

[0033] An execution module is used to randomly select a fixed-wing UAV as a host and the remaining fixed-wing UAVs as wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain an updated state, and calculate an initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple;

[0034] A sampling module is used to randomly sample tuples when a preset first condition is met to calculate the policy gradient and residual of each wingman, and soft-update the network parameters of each fixed-wing UAV to obtain the next policy and the next state, and execute the next action to obtain the next updated state and calculate the next reward;

[0035] The cluster module is used to judge based on the next report. When the preset second condition is met, the action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster.

[0036] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0037] Obtaining a fixed-wing UAV master-wingman cluster task, selecting a UAV dynamics model, and modeling the fixed-wing UAV master-wingman cluster task as a Markov decision process;

[0038] Based on the Markov decision process, network parameters are randomly assigned to each fixed-wing UAV to initialize the strategy and state, thereby obtaining an initial strategy and an initial state;

[0039] A fixed-wing UAV is randomly selected as the host and the other fixed-wing UAVs are wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain updated states, and calculate the initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple;

[0040] When the preset first condition is met, the tuples are randomly sampled to calculate the policy gradient and residual of each wingman, and the network parameters of each fixed-wing UAV are soft-updated to obtain the next policy and the next state, and the next action is performed to obtain the next updated state and calculate the next reward;

[0041] According to the next feedback judgment, when the preset second condition is met, the action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster.

[0042] The above-mentioned method for stabilizing the leader-follower clustering of fixed-wing UAVs is a method for stabilizing the leader-follower clustering of fixed-wing UAVs based on multi-agent deep reinforcement learning (MADRL). It can quickly train the fixed-wing UAV cluster control strategy, quickly realize the stability of the leader-follower clustering of fixed-wing UAVs, and when the host UAV is damaged, the cluster can also be quickly reorganized. Specifically: after obtaining the task and modeling, a certain scale of UAV agent groups are generated, and host labels and wingman labels are assigned. Each UAV agent in the environment is trained through multi-agent deep reinforcement learning. The reward used in the training is the improved Cucker-Smale cluster reward, which is bounded and can indicate the training status of the fixed-wing UAV system. Moreover, by using this reward, when the host is damaged, the wingman UAV with a larger host induction factor is selected as the new host, and the leader-follower cluster can be quickly formed again. Compared with the traditional UAV cluster algorithm, this application can handle the fixed-wing UAV clustering problem of four-degree-of-freedom and six-degree-of-freedom, and under the condition that the host UAV is damaged, a new host can still be quickly selected and a new cluster can be quickly formed. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is an application scenario diagram of a method for stabilizing fixed-wing UAV master-wingman clustering in one embodiment;

[0044] Figure 2 A schematic diagram of a flow chart of a method for stabilizing a fixed-wing UAV master-wingman cluster in one embodiment;

[0045] Figure 3 A schematic diagram of the trajectory of a master-wingman cluster of a four-degree-of-freedom (4DoF) fixed-wing UAV in one embodiment;

[0046] Figure 4 1 is a diagram of the roll angle and heading angle in a four-degree-of-freedom (4DoF) drone dynamics model in one embodiment, wherein (a) is the roll angle and (b) is the heading angle;

[0047] Figure 5 A schematic diagram of the trajectory of a six-degree-of-freedom (6DoF) fixed-wing UAV master-winger cluster in one embodiment;

[0048] Figure 6 1 is an Euler angle and control quantity diagram of a six-degree-of-freedom (6DoF) fixed-wing drone in one embodiment, wherein (a) is the roll angle, (b) is the pitch angle, and (c) is the yaw angle;

[0049] Figure 7 A graph of the number of training steps that converge to near 0 versus the reward function in one embodiment;

[0050] Figure 8A schematic diagram of the overall framework of a method for stabilizing fixed-wing UAV master-winger clustering in one embodiment;

[0051] Fig. 9 It is a structural block diagram of a stabilized fixed-wing UAV master-wingman cluster device in one embodiment;

[0052] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment.

[0053] Reference numerals:

[0054] 1: Aileron; 2: Elevator; 3: Rudder;

[0055] R: roll angle (roll); P: pitch angle (pitch); Y: yaw angle (yaw); H: heading angle (heading). DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0057] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "multiple groups" means at least two groups, such as two groups, three groups, etc., unless otherwise clearly and specifically defined.

[0058] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, a physical connection, or a wireless communication connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0059] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0060] The present application provides a method for stabilizing the fixed-wing UAV master-winger clustering, which can be applied to Figure 1 In the application scenario shown, the terminal 102 communicates with the server 104 through the network, and the terminal 102 may include but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 may be various portal websites, servers corresponding to the backend of the work system, etc.

[0061] This application provides a method for stabilizing the master-winger cluster of fixed-wing UAVs, such as Figure 2 The flowchart shown in FIG. 1 shows a method for applying the method to Figure 1 The following is an example of a terminal in the example, including:

[0062] Step 202, obtaining a fixed-wing UAV master-wingman cluster task, selecting a UAV dynamics model, and modeling the fixed-wing UAV master-wingman cluster task as a Markov decision process.

[0063] Specifically:

[0064] Obtain fixed-wing UAV master-wingman cluster mission;

[0065] According to the fixed-wing UAV master-wingman cluster mission, select the UAV dynamics model with four degrees of freedom or the UAV dynamics model with six degrees of freedom;

[0066] According to a four-degree-of-freedom UAV dynamics model or a six-degree-of-freedom UAV dynamics model, the fixed-wing UAV master-winger cluster mission is modeled as a Markov decision process.

[0067] More specifically:

[0068] The schematic diagram of the cluster trajectory of the main and wingman of the four-degree-of-freedom fixed-wing UAV is as follows: Figure 3 As shown, the dynamic model of the UAV with four degrees of freedom (4DoF) is:

[0069] ;

[0070] in, For the Drone in Physical state at any moment, For the The coordinates of the drone in space, For the The heading angle of the drone. The first The roll angle of the drone. For the The linear velocity scalar of the drone, For the The gravitational acceleration of the drone, For the The rolling angle and angular velocity of the drone, Complex environment in UAV coordinate, The random noise generated in the coordinates, roll angle, and roll angle velocity is generally simulated using Gaussian noise.

[0071] At this time, Status of fixed-wing drones Including its location , heading angle , roll angle , Linear speed and angular velocity . No. The action (control amount) of a fixed-wing drone is determined by the angular velocity increment and linear velocity increment The vector composed of The roll angle and heading angle in the four-degree-of-freedom UAV dynamics model are shown in the figure below. Figure 4 shown.

[0072] The trajectory diagram of the six-degree-of-freedom fixed-wing UAV master-wingman cluster is as follows Figure 5 As shown, the six-degree-of-freedom (6DoF) UAV dynamics model is:

[0073] ;

[0074] In the formula, For the The quality of a fixed-wing drone, For the The linear speed of a fixed-wing UAV, No. The angular velocity of a fixed-wing UAV, is the acceleration due to gravity, Respectively The engine thrust and aerodynamic force on a fixed-wing UAV, For the The moment of inertia of a fixed-wing drone, Respectively The torque generated by the engine thrust and aerodynamic force on a fixed-wing UAV is determined by the throttle, elevator, aileron and rudder deflections of the fixed-wing UAV.

[0075] At this time, The status of the fixed-wing drone includes its location , Euler angle , Linear speed and angular velocity . No. The action (control amount) of a fixed-wing drone is the throttle: , Elevator deflection: , Aileron deflection: And rudder deflection: The vector composed of The Euler angles and control quantities of a six-degree-of-freedom fixed-wing drone are shown in the figure below. Figure 6 shown.

[0076] When the throttle of a fixed-wing drone is When given, Engine thrust on a fixed-wing drone It can be calculated by the following formula:

[0077] ;

[0078] In the formula, For the The engine of a fixed-wing UAV generates the coordinate system of the UAV Thrust in the axial direction, is the air density, For the The propeller disc area of ​​a fixed-wing drone, For the The engine power factor of a fixed-wing UAV, For the The speed of the gas ejected by the engine of a fixed-wing drone, For the The speed of the fixed-wing drone, For the The engine constant of a fixed-wing UAV.

[0079] When The throttle size of a fixed-wing drone When given, Engine thrust torque on a fixed-wing UAV It can be calculated by the following formula:

[0080] ;

[0081] In the formula, and is the engine thrust torque constant, which is determined experimentally.

[0082] When Fixed-wing UAV elevator deflection , Aileron deflection and rudder deflection When all are given, the aerodynamic force It can be calculated by the following formula:

[0083] ;

[0084] In the formula, is the air density, For the The speed of the fixed-wing drone, For the The wingspan of a fixed-wing drone, For the The angle of attack of a fixed-wing UAV can be given by the inverse tangent function of the velocity direction: ; For the The average aerodynamic chord of a fixed-wing UAV; For the The pitch angle and angular velocity of a fixed-wing UAV; For the The sideslip angle of a fixed-wing UAV can be given by the inverse sine function of the velocity direction: ; For the The wingspan of a fixed-wing drone; For the The yaw angle and angular velocity of a fixed-wing UAV; For the Fixed-wing UAV along the fuselage The aerodynamic coefficient of the axis, For the Fixed-wing UAV along the fuselage The angular velocity stability derivative of the pitch angle of the axis, For the Fixed-wing UAV along the fuselage axis elevator deflection control derivative, is the time when the sideslip angle, angular velocity and aileron deflection are all 0. Fixed-wing UAV along the fuselage The aerodynamic coefficient of the axis, For the Fixed-wing UAV along the fuselage The aerodynamic derivative of the angular velocity of the roll angle about the axis, For the Fixed-wing UAV along the fuselage The aerodynamic derivative of the sideslip angle of the shaft, For the Fixed-wing UAV along the fuselage Aileron deflection control derivative of axis, For the Fixed-wing UAV along the fuselage The rudder deflection control derivative of the axis, For the Fixed-wing UAV along the fuselage The aerodynamic coefficient of the axis, For the Fixed-wing UAV along the fuselage The aerodynamic derivative in the direction of the axis, For the Fixed-wing UAV along the fuselage The elevator deflection control derivative of the axis.

[0085] When Fixed-wing UAV elevator deflection , Aileron deflection and rudder deflection When both are given, the aerodynamic torque It can be calculated by the following formula:

[0086] ;

[0087] In the formula, is the air density, For the The speed of the fixed-wing drone, For the The wingspan of a fixed-wing drone, For the The sideslip angle of a fixed-wing UAV, For the The wingspan of a fixed-wing drone, For the The angular velocity of the fixed-wing UAV, For the The angular velocity and roll angle of a fixed-wing UAV. For the The average aerodynamic chord of a fixed-wing UAV, For the The angle of attack of a fixed-wing UAV; is the first time when the sideslip angle, roll angle velocity, yaw angle velocity, and aileron deflection are all 0 The aerodynamic moment coefficient of a fixed-wing UAV, For the The aerodynamic coefficients of a fixed-wing UAV related to the deflection of the control surfaces are called the primary control derivatives. The first Cross control derivatives of a fixed-wing UAV. For the Fixed-wing UAV along the fuselage The roll angle angular velocity damping moment derivative of the axis, For the Fixed-wing UAV along the fuselage The roll static stability moment derivative about the axis, For the Fixed-wing UAV along the fuselage The yaw angle of the axis is the angular velocity damping moment derivative, For the Fixed-wing UAV along the fuselage The pitch angle angular velocity damping moment derivative of the axis, For the Fixed-wing UAV along the fuselage The static angle of attack stability moment derivative of the axis, For the Fixed-wing UAV along the fuselage The static sideslip angle stability moment derivative of the axle, For the Fixed-wing UAV along the fuselage The yaw angle of the axis is the angular velocity damping moment derivative, For the Fixed-wing UAV along the fuselage Roll angle angular velocity damping moment derivative of the axis.

[0088] The fixed-wing UAV swarm mission is modeled as a partially observable Markov decision process (POMDP), which is described by A tuple of agent actions definition.

[0089] in, Indicates time The real state of the drone swarm environment. Indicates time No. The drone agent actions, Represents the joint action of all drone agents, mapping Indicates that the drone agent is in state Take joint action Then transition to The probability of Indicates The state obtained by the UAV agent from the environment is mapped is the observation function that maps the real state to the observed state. Recorded the Agents from time 0 to status and actions, Indicated in The reward received by each drone agent after taking an action in the observation state, is the discount factor of the corresponding reward function.

[0090] Step 204, based on the Markov decision process, randomly assign network parameters to each fixed-wing UAV to initialize the strategy and state to obtain an initial strategy and an initial state.

[0091] Specifically:

[0092] Based on the Markov decision process, the Actor network parameters and the Critic network parameters of each fixed-wing UAV are randomly assigned to initialize the strategy to obtain the initial strategy. At the same time, the spatial position, speed, and posture of the fixed-wing UAV are initialized to obtain the initial state.

[0093] In this step, based on the Markov decision process, a group of drone agents is generated and initialized.

[0094] Step 206, randomly select a fixed-wing UAV as the host, and the remaining fixed-wing UAVs as wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain updated states, and calculate the initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple.

[0095] Specifically:

[0096] Randomly select one fixed-wing UAV as the host and the rest as wingmen; that is, assign host and wingman labels to all UAVs;

[0097] According to the initial strategy and the initial state, the host and the wingman perform initial actions;

[0098] When the selected UAV dynamics model is a four-degree-of-freedom UAV dynamics model, the initial action performed includes two control quantities: angular velocity change (i.e., roll angle change) and velocity change;

[0099] When the selected UAV dynamics model is a six-degree-of-freedom UAV dynamics model, the initial action performed includes four control quantities: the throttle, elevator deflection, aileron deflection and rudder deflection of the fixed-wing UAV;

[0100] Input the initial actions performed by the host and the wingman into the UAV dynamics model (when the selected UAV dynamics model is a four-degree-of-freedom UAV dynamics model, the initial actions performed by the host and the wingman are input into the four-degree-of-freedom UAV dynamics model; when the selected UAV dynamics model is a six-degree-of-freedom UAV dynamics model, the initial actions performed by the host and the wingman are input into the six-degree-of-freedom UAV dynamics model), and obtain an updated state; based on the updated state, calculate the initial reward of each wingman according to the improved Cucker-Smale cluster reward;

[0101] The initial state, initial action, updated state, and initial return of each wingman are stored as a tuple in the cache of the corresponding wingman.

[0102] In this step, in order to solve the POMDP, a multi-agent reinforcement learning method is used to train all The joint strategy of the UAV agents is trained to maximize the reward function. The reward function obtained by the estimation strategy includes:

[0103] ;

[0104] ;

[0105] ;

[0106] In the formula, represents the joint strategy of the UAV agents, Indicates The policy parameters of the UAV agent, represents the reward function, Indicated in Total rewards received by the moment system;

[0107] Estimate the state-action value function from the reward function:

[0108] ;

[0109] The reward function is given by Improved Cucker-Smale cluster reward for agents Composition, of which The expression is as follows:

[0110] ;

[0111] In the formula, For the The host induction factor of the UAV. The improved Cucker-Smale cluster reward can make the fixed-wing UAV system learn quickly. Since the reward is bounded, it is easy to judge the training status of the system. That is, when the reward approaches 0 during the system training process, it can be determined that the system has completed training.

[0112] It should be noted that according to the initial action performed by the drone, the updated state is the state of the entire drone cluster at the next moment, and the improved Cucker-Smale cluster reward is calculated and fed back to the drone cluster. The improved Cucker-Smale cluster reward can promote the formation of a master-wingman cluster of drones, and the modified reward is bounded, which can indicate the training process. Figure 7 Shown is a graph of the number of training steps that converge to around 0 versus the reward function.

[0113] Step 208, when the preset first condition is met, the tuples are randomly sampled to calculate the policy gradient and residual of each wingman, and the network parameters of each fixed-wing UAV are soft-updated to obtain the next policy and the next state, and the next action is performed to obtain the next updated state and calculate the next reward.

[0114] When the preset first condition is not met, the updated state is input into the initial strategy, the initial action, the updated state and the initial reward are updated, and a new tuple is obtained until the preset first condition is met.

[0115] Specifically:

[0116] Calculating the policy gradient and residual of each wingman means calculating the policy gradient of the Actor and the TD residual of the Critic of each wingman, and soft-updating the Actor network parameters and Critic network parameters of each fixed-wing UAV.

[0117] In order to maximize the advantage function and group reward, a common method is to adopt the centralized training distributed execution (CTDE) paradigm, such as MADDPG and COMA. These methods have Stochastic gradient ascent is applied to maximize the return. Each drone agent in MADDPG has a judge for global information training and several local information training agents. Among them, the deterministic policy gradient used to update the network parameters is:

[0118] ;

[0119] In the formula, For experience replay cache, They are the states and actions extracted from the cache, For the The states observed by the drone agents, For the The actions of the drone agent, For the The deterministic strategy of the UAV agent, For the The policy parameters of the UAV agent, is the gradient operator, For the The drone agent estimates the The drone agent is observing The action taken below. Then it is the Q-value function.

[0120] In this step, the drone strategy is updated based on the historical information of the drone's interaction with the environment to obtain the next strategy. The first preset condition is: the number of times a new tuple is obtained. That is, the process of inputting the updated state into the initial strategy to obtain a new initial action and inputting the new initial action into the drone dynamics model to obtain a new tuple is repeated, and the number of repetitions, that is, the number of times a new tuple is obtained, is determined; when the number of repetitions, that is, the number of times a new tuple is obtained, reaches a preset value, the tuple is randomly sampled, otherwise the above process is repeated until the number of repetitions, that is, the number of times a new tuple is obtained, reaches a preset value.

[0121] Step 210, judging based on the next report, when the preset second condition is met, an action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster.

[0122] When the preset second condition is not met, the network parameters of each fixed-wing UAV are soft-updated according to the policy gradient, so as to obtain the next strategy and the next state according to the network parameters using a reinforcement learning algorithm, and perform the next action according to the next strategy and the next state to obtain the next updated state, and calculate the next reward until the preset second condition is met.

[0123] In this step, when the preset second condition is met, the current strategy of all drones is output as the optimal solution of the Markov decision process, and actions are performed according to the optimal solution to achieve a stable fixed-wing drone master-wingman cluster and complete the drone cluster task. The preset second condition is: the system reward meets the preset threshold condition or the system reward obviously converges to near 0 or the policy gradient meets the preset threshold condition or the reward converges to near 0.

[0124] In this embodiment, when the host is hit and loses communication with the wingman, the host induction factor of each wingman is calculated, and the wingman with the largest host induction factor (i.e., host induction factor) is selected as the new host, and the remaining wingmen are new wingmen; according to the current strategy and current state, the new host and the new wingman perform the current action, obtain a tuple, and determine whether the preset first condition is met. The above settings make the system highly stable.

[0125] Specifically, the host induction factor is composed of the softmax distribution of the host and drone cluster system states. The weight corresponding to each drone is expressed as:

[0126] ;

[0127] in, Indicates The difference factor between the wingman drone and the host drone is calculated by using the Cucker-Smale reward of the host drone. The components represent:

[0128] .

[0129] like Figure 8 The figure shows the overall framework of a method for stabilizing fixed-wing drone master-wingman clustering in this application. The drone clustering is a cooperative task that requires agents to cooperate and maximize team rewards. Agents must sacrifice their rewards in exchange for higher team rewards. In order to achieve cooperation, a centralized judge is used to estimate team rewards and train agents in a decentralized manner. The parameters of the agent and the judge are randomly initialized. and , all agents and judges are composed of neural networks. The agents interact with the environment at the same time, , stored in their respective buffers After updating all buffers, the evaluator retrieves Medium Sampling Will lose When updating the judge, since the training is centralized, the true global state is used Instead of observing Then, by extracting Update all agents by sampling from the

[0130] The above-mentioned method for stabilizing the leader-follower clustering of fixed-wing UAVs is a method for stabilizing the leader-follower clustering of fixed-wing UAVs based on multi-agent deep reinforcement learning (MADRL). It can quickly train the fixed-wing UAV cluster control strategy, quickly realize the stability of the leader-follower clustering of fixed-wing UAVs, and when the host UAV is damaged, the cluster can also be quickly reorganized. Specifically: after obtaining the task and modeling, a certain scale of UAV agent groups are generated, and host labels and wingman labels are assigned. Each UAV agent in the environment is trained through multi-agent deep reinforcement learning. The reward used in the training is the improved Cucker-Smale cluster reward, which is bounded and can indicate the training status of the fixed-wing UAV system. Moreover, by using this reward, when the host is damaged, the wingman UAV with a larger host induction factor is selected as the new host, and the leader-follower cluster can be quickly formed again. Compared with the traditional UAV cluster algorithm, this application can handle the fixed-wing UAV clustering problem of four-degree-of-freedom and six-degree-of-freedom, and under the condition that the host UAV is damaged, a new host can still be quickly selected and a new cluster can be quickly formed.

[0131] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0132] The present application also provides a stable fixed-wing UAV master-wingman cluster device, such as Fig. 9 The structural block diagram shown in one embodiment includes: an acquisition module 902, an initial module 904, an execution module 906, a sampling module 908 and a clustering module 910, wherein:

[0133] An acquisition module 902 is used to acquire a fixed-wing UAV master-wingman cluster task, select a UAV dynamics model, and model the fixed-wing UAV master-wingman cluster task as a Markov decision process;

[0134] The initialization module 904 is used to randomly assign network parameters to each fixed-wing UAV based on the Markov decision process to initialize the strategy and state to obtain an initial strategy and initial state;

[0135] The execution module 906 is used to randomly select a fixed-wing UAV as the host and the other fixed-wing UAVs as wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions to obtain an updated state, and calculate the initial reward of each wingman; the initial state, initial action, updated state and initial reward of each wingman are taken as a tuple;

[0136] The sampling module 908 is used to randomly sample tuples when a preset first condition is met to calculate the policy gradient and residual of each wingman, and soft-update the network parameters of each fixed-wing UAV to obtain the next policy and the next state, and execute the next action to obtain the next updated state and calculate the next reward;

[0137] The cluster module 910 is used to judge based on the next report, and when the preset second condition is met, execute an action according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster.

[0138] For the specific definition of a stable fixed-wing UAV master-wingman cluster device, please refer to the definition of a stable fixed-wing UAV master-wingman cluster method above, which will not be repeated here. Each module in the above device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0139] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for stabilizing the main and wingman cluster of fixed-wing unmanned aerial vehicles is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0140] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0141] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0143] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for stabilizing the master-winger cluster of fixed-wing UAVs, characterized in that: include: Obtaining a fixed-wing UAV master-wingman cluster task, selecting a UAV dynamics model, and modeling the fixed-wing UAV master-wingman cluster task as a Markov decision process; Based on the Markov decision process, network parameters are randomly assigned to each fixed-wing UAV to initialize the strategy and state, thereby obtaining an initial strategy and an initial state; A fixed-wing UAV is randomly selected as the host and the other fixed-wing UAVs are wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain updated states, and calculate the initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple; Using multi-agent reinforcement learning methods to The joint strategy of the UAV agents is trained to maximize the reward function. The reward function obtained by the estimated strategy includes: In the formula, represents the joint strategy of the UAV agents, Indicates The policy parameters of the UAV agent, represents the reward function, Indicated in The total rewards obtained by the system at this moment, is the discount factor corresponding to the reward function, For the drone's movements; Estimate the state-action value function from the reward function: In the formula, Indicates time The real state of the drone swarm environment. Indicates time No. The drone agent actions, represents the joint action of all drone agents; The reward function is given by Improved Cucker-Smale cluster reward for agents Composition, of which The expression is as follows: In the formula, For the The host induction factor of the UAV is the softmax distribution of the host and UAV cluster system state. The weight corresponding to each drone is expressed as: in, represents the difference factor between the jth wingman UAV and the host; The difference factor is represented by the corresponding j-th component of the host drone's Cucker-Smale reward: ; When the preset first condition is met, the tuples are randomly sampled to calculate the policy gradient and residual of each wingman, and the deterministic policy gradient is used to soft-update the network parameters of each fixed-wing UAV to obtain the next policy and the next state, and to perform the next action, obtain the next updated state, and calculate the next reward; the preset first condition is: the number of times a new tuple is obtained; calculating the policy gradient and residual of each wingman refers to calculating the policy gradient of the Actor of each wingman and the TD residual of the Critic; According to the next reward judgment, when the preset second condition is met, the action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-wingman cluster; the preset second condition is: the system reward meets the preset threshold condition or the system reward converges to 0 or the policy gradient meets the preset threshold condition or the reward converges to 0.

2. A method for stabilizing fixed-wing UAV master-winger clustering according to claim 1, characterized in that: When the preset first condition is not met, the updated state is input into the initial strategy, the initial action, the updated state and the initial reward are updated, and a new tuple is obtained until the preset first condition is met.

3. A method for stabilizing fixed-wing UAV master-winger clustering according to claim 2, characterized in that: When the preset second condition is not met, the network parameters of each fixed-wing UAV are soft-updated according to the policy gradient to obtain the next strategy and the next state, and the next action is executed to obtain the next updated state and calculate the next reward until the preset second condition is met.

4. A method for stabilizing fixed-wing UAV master-winger clustering according to claim 3, characterized in that: When the host is hit and loses communication with the wingman, the host induction factor of each wingman is calculated, and the wingman with the largest host induction factor is selected as the new host, and the remaining wingmen are new wingmen; According to the current strategy and current status, the new host and the new wingman execute the current action, obtain a tuple, and determine whether the preset first condition is met.

5. A method for stabilizing fixed-wing UAV master-winger clustering according to any one of claims 1 to 4, characterized in that: Obtain a fixed-wing UAV master-wingman cluster task, select a UAV dynamics model, and model the fixed-wing UAV master-wingman cluster task as a Markov decision process, including: Obtain fixed-wing UAV master-wingman cluster mission; According to the fixed-wing UAV master-wingman cluster mission, select the UAV dynamics model with four degrees of freedom or the UAV dynamics model with six degrees of freedom; According to a four-degree-of-freedom UAV dynamics model or a six-degree-of-freedom UAV dynamics model, the fixed-wing UAV master-winger cluster mission is modeled as a Markov decision process.

6. A method for stabilizing fixed-wing UAV master-winger clustering according to any one of claims 1 to 4, characterized in that: Based on the Markov decision process, network parameters are randomly assigned to each fixed-wing UAV to initialize the strategy and state, and obtain the initial strategy and initial state, including: Based on the Markov decision process, the Actor network parameters and the Critic network parameters of each fixed-wing UAV are randomly assigned to initialize the strategy to obtain the initial strategy. At the same time, the spatial position, speed, and posture of the fixed-wing UAV are initialized to obtain the initial state.

7. A method for stabilizing fixed-wing UAV master-winger clustering according to any one of claims 1 to 4, characterized in that: According to the initial strategy and the initial state, the host and the wingman perform initial actions, obtain an updated state, and calculate an initial return of each wingman, including: According to the initial strategy and the initial state, the host and the wingman perform initial actions; When the selected UAV dynamics model is a four-degree-of-freedom UAV dynamics model, the initial action performed includes two control quantities: the roll angle change and the speed change; When the selected UAV dynamics model is a six-degree-of-freedom UAV dynamics model, the initial action performed includes four control quantities: throttle, elevator deflection, aileron deflection, and rudder deflection of the fixed-wing UAV; According to the initial actions performed by the host and the wingman, an updated state is obtained, and an initial return of each wingman is calculated.

8. A method for stabilizing fixed-wing UAV master-winger clustering according to claim 7, characterized in that: According to the initial actions performed by the host and the wingman, an updated state is obtained, and an initial return of each wingman is calculated, including: Inputting the initial actions performed by the host and the wingman into the UAV dynamics model to obtain an updated state; Based on the updated state, the initial reward for each wingman is calculated according to the modified Cucker-Smale cluster reward.

9. A stable fixed-wing UAV master-winger cluster device, characterized in that: include: An acquisition module is used to acquire a fixed-wing UAV master-wingman cluster task, select a UAV dynamics model, and model the fixed-wing UAV master-wingman cluster task as a Markov decision process; An initial module, used for randomly assigning network parameters to each fixed-wing UAV based on the Markov decision process to initialize the strategy and state to obtain an initial strategy and initial state; An execution module is used to randomly select a fixed-wing UAV as a host and the remaining fixed-wing UAVs as wingmen; according to the initial strategy and the initial state, the host and the wingmen perform initial actions, obtain an updated state, and calculate an initial reward of each wingman; the initial state, initial action, updated state, and initial reward of each wingman are taken as a tuple; Using multi-agent reinforcement learning methods to The joint strategy of the UAV agents is trained to maximize the reward function. The reward function obtained by the estimated strategy includes: In the formula, represents the joint strategy of the UAV agents, Indicates The policy parameters of the UAV agent, represents the reward function, Indicated in The total rewards obtained by the system at this moment, is the discount factor corresponding to the reward function, For the drone's movements; Estimate the state-action value function from the reward function: In the formula, Indicates time The real state of the drone swarm environment. Indicates time No. The drone agent actions, represents the joint action of all drone agents; The reward function is given by Improved Cucker-Smale cluster reward for agents Composition, of which The expression is as follows: In the formula, For the The host induction factor of the UAV is the softmax distribution of the host and UAV cluster system state. The weight corresponding to each drone is expressed as: in, represents the difference factor between the jth wingman UAV and the host; The difference factor is represented by the corresponding j-th component of the host drone's Cucker-Smale reward: ; The sampling module is used to randomly sample tuples when the preset first condition is met to calculate the policy gradient and residual of each wingman, and use deterministic policy gradient to softly update the network parameters of each fixed-wing UAV to obtain the next policy and the next state, and perform the next action to obtain the next updated state and calculate the next reward; the preset first condition is: the number of times the new tuple is obtained; calculating the policy gradient and residual of each wingman refers to calculating the policy gradient of the Actor of each wingman and the TD residual of the Critic; The cluster module is used to judge based on the next reward. When the preset second condition is met, the action is executed according to the strategy corresponding to the current network parameters to achieve a stable fixed-wing UAV master-winger cluster; the preset second condition is: the system reward meets the preset threshold condition or the system reward converges to 0 or the policy gradient meets the preset threshold condition or the reward converges to 0.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.