A method for distributed multi-UAV relay network coverage

By establishing communication channels and energy consumption models among multiple UAVs and converting them into Markov game models, a multi-agent deep reinforcement learning algorithm was built to solve the problem of UAV collaborative relationships and trajectory optimization in complex emergency networking environments. problem, achieving efficient network coverage and maximizing throughput.

CN116017479BActive Publication Date: 2024-10-25HENAN UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211741057.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-25
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In a complex emergency networking environment, when multiple drones deploy wireless relay networks, it is difficult to establish a good collaborative relationship and optimize flight trajectories, making it difficult to achieve communication efficiency and cooperation strategies. Traditional methods are difficult to solve, and reinforcement learning methods are in action. The disaster of dimensionality occurs when the number of spaces and agents increases.

Method used

Using a distributed multi-UAV relay network coverage method, by establishing a multi-UAV communication channel model, energy consumption model and collaborative trajectory optimization mathematical model, convert it into a Markov game model and build a multi-agent deep reinforcement learning algorithm. , use actors and evaluators to design reward functions to guide UAVs to learn collaborative trajectory optimization strategies and achieve relay network coverage.

Benefits of technology

It realizes the collaborative optimization and collaboration strategy of flight trajectories of UAV clusters, maximizes network throughput and energy efficiency, solves the problem of cooperative trajectory optimization among UAVs, and improves the robustness and efficiency of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116017479B_ABST
    Figure CN116017479B_ABST
Patent Text Reader

Abstract

The present invention proposes a method for distributed multi-UAV relay network coverage, the steps of which are: first, establish a multi-UAV communication channel model, energy consumption model and collaborative trajectory optimization mathematical model, and convert them into a Markov game model; second, build a multi-agent deep reinforcement learning algorithm with centralized training and distributed execution, equip each UAV with an actor and an evaluator, the actor outputs the flight trajectory according to the UAV state information, and the evaluator outputs the corresponding action value to train the actor; finally, construct an actor with a dual data stream structure to improve the dynamics of the UAV; construct a hierarchical multi-head attention encoder, and use the attention mechanism to enable the UAV to suppress redundant information and increase the relationship weight of related collaborative UAVs, thereby establishing a correct and complex collaborative relationship. The present invention maximizes the network throughput and energy efficiency of UAVs by collaboratively optimizing the flight trajectory and collaborative strategy of the UAV cluster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of trajectory optimization and wireless communication technology for collaborative use of multiple unmanned aerial vehicles, and in particular to a distributed multi-unmanned aerial vehicle relay network coverage method for collaborative optimization of trajectories for multiple unmanned aerial vehicle wireless relay network coverage. Background Art

[0002] With the rapid development of drone technology, it has become an indispensable tool in modern society. Drones can be deployed in any complex environment to cooperate with humans to complete various tasks. Natural disasters, emergencies, wars, etc., the original communication facilities are damaged, and drones can provide emergency communication services. However, due to the limitations of bandwidth, coverage and the number of drones, aerial base stations need to be dynamically deployed to allocate network resources on demand. Dynamic deployment of drones can reduce the number of devices without affecting the quality of communication, and fill in the signal coverage gap in time when the ground base station fails.

[0003] Establishing a multi-node dynamic relay network between multiple drones can greatly improve the network coverage radius and enhance the robustness of the emergency network, but it requires a good cooperative relationship between drones to autonomously allocate tasks and collaboratively optimize flight paths. In existing drone trajectory optimization solutions, traditional convex optimization methods are usually used, but as the complexity of the task increases, this problem usually becomes non-convex and difficult to solve. Such methods are difficult to apply to drone emergency networking in unknown and changing scenarios. In summary, in a complex emergency networking environment, the deployment of wireless relay networks for multiple drones faces two main challenges: (1) How to maximize the communication efficiency of drones (such as throughput and energy efficiency). (2) How to achieve cooperative trajectory optimization of drones.

[0004] For the above communication efficiency optimization problem, most studies take the energy efficiency and throughput of drones as the main optimization objectives. Saxena et al. proposed an approximate strategy optimization algorithm to maximize the throughput of GUs. Zhang et al. proposed a safe-deep-Q-network algorithm to optimize the flight trajectory of drones to maximize the throughput and energy efficiency of drones. Gupta et al. proposed a vertex method and a sequential optimization algorithm method, taking drone trajectories and power consumption as optimization objectives, and maximized the throughput of ground users under certain fairness between users. Zhang et al. used a successive convex approximation method to optimize the trajectory and signal transmission power of relay node drones to achieve maximum throughput and optimal power consumption. In the above algorithms, drones only perform actions based on the current state information obtained, without perceiving the movement trends of ground users and other drones, which reduces the communication efficiency of drones.

[0005] For cooperative trajectory optimization of UAVs, previous work mainly focused on establishing effective cooperative strategies for UAVs. Wu et al. proposed a trajectory optimization algorithm based on joint multi-agent deep deterministic policy gradient to maximize average spectral efficiency. Liu et al. extended single-UAV Q-learning to multiple UAVs, training only one UAV at a time and keeping the strategies of other UAVs fixed. However, with the increase in the number of UAVs and the complexity of the network topology, UAVs need to consider different levels of correlation when cooperating to optimize flight trajectories. In addition, the increase in the number of UAVs and ground users will lead to the curse of dimensionality.

[0006] In summary, in the existing solutions, no complex collaborative relationship is established between multiple drones. The problem of multiple agents collaboratively performing complex tasks is usually a non-convex problem that is difficult to solve using traditional methods. The reinforcement learning method will encounter dimensionality disasters as the action space and the number of agents increase, which restricts the scale and number of nodes of drone networks. Summary of the invention

[0007] In view of the deficiencies in the above-mentioned background technology, the present invention proposes a method for distributed multi-UAV relay network coverage, which solves the problem that UAV clusters have not established a good collaborative relationship in complex environments and ensures the connectivity of each network node.

[0008] The technical solution of the present invention is achieved in this way:

[0009] A method for distributed multi-UAV relay network coverage, the steps of which are as follows:

[0010] Step 1: Establish a multi-UAV communication channel model, energy consumption model, and collaborative trajectory optimization mathematical model, and convert the collaborative trajectory optimization mathematical model into a Markov game model;

[0011] Step 2: Based on the Markov game model, a multi-agent deep reinforcement learning algorithm with centralized training and distributed execution is built. Each drone is equipped with an actor and an evaluator. The actor outputs the flight trajectory according to the drone state information, and the evaluator outputs the corresponding action value to train the actor.

[0012] Step 3: For the actor, a dual data stream structure network is established, and the dual data stream structure network is used to process the state information of the drone and output the flight trajectory of the drone;

[0013] Step 4: For the evaluator, a hierarchical multi-head attention encoder is established to remove redundant information of other drones through the attention mechanism, generate different attention levels according to the degree of task relevance, and establish an effective cooperation strategy;

[0014] Step 5: Design reward functions related to safety potential field, throughput, and drone energy consumption to guide drones to learn the correct collaborative trajectory optimization strategy to achieve relay network coverage;

[0015] Step 6: Build a simulation environment for multiple drones to coordinately deploy relay networks. Use interactive training to train each drone to collaborate with each other to complete multi-hop relay network coverage tasks.

[0016] The construction method of the multi-UAV communication channel model is:

[0017] Set the drone collection to Its relative coordinates are The ground user set is Its relative coordinates are

[0018] The communication between drones is a line-of-sight link model, and the link loss model between drone i and drone j is defined as:

[0019]

[0020] in, is the link loss between UAV i and UAV j, d i,j is the distance between UAV i and UAV j, f0 is the carrier frequency of communication, c is the speed of light, η LoS is the additional attenuation coefficient;

[0021] According to the link loss between drone i and drone j, the average power, signal-to-noise ratio and communication rate of the receiving end of the drone communication channel are calculated:

[0022]

[0023]

[0024]

[0025] in, Represents the average power of the drone receiving end, P U is the transmitting power of the UAV, is the signal-to-noise ratio of the UAV communication channel, I i,j (t) is the channel interference of other UAVs, σ 2 is additive Gaussian, is the communication rate between UAV i and UAV j, and B is the communication bandwidth;

[0026] Establish a channel model between the drone and the ground equipment:

[0027]

[0028] in, is the communication rate between UAV i and ground device k, is the link loss between UAV i and ground user k, I i,k (t) represents the channel interference of other UAVs;

[0029]

[0030]

[0031]

[0032] in, is the line-of-sight link loss, is the non-line-of-sight link loss, d i,k (t) is the distance between UAV i and ground user k, η LoS and η NLoS Expressed as additional attenuation coefficient; is the probability of UAV i connecting to ground user k within line of sight, α and β are constants of environmental factors, θ i,k (t) is the elevation angle from the ground equipment to the UAV.

[0033] The energy consumption model is:

[0034]

[0035] Among them, E i (T) is the total energy consumption of the UAV, P dyn (V(t)) is the flight power consumption, P com is the communication power consumption;

[0036]

[0037] Where P0 is the blade profile power, P i is the hovering power, U is the tip linear velocity, V is the flight speed of the UAV, v0 is the rotor induced velocity during hovering, d0 is the fuselage drag coefficient, s is the motor volume, ρ is the air density, and A is the motor area.

[0038] The collaborative trajectory optimization mathematical model is:

[0039]

[0040] stC1:E i (T)≤e safe ;

[0041]

[0042]

[0043] C4:l i (t),l k (t)∈Ω task ;

[0044] C5:V i <V max ;

[0045] C6:a i max ;

[0046]

[0047] Among them, l i (t) is the position of drone i, is the rate of ground users, M is the number of elements in the user set, N is the number of elements in the drone set, and e safe Indicates safe power, R min The minimum communication rate established between nodes. is the drone safety domain, Ω obs ∈R 3×1 To prevent safety zones, is the task-limited area, V max is the maximum speed constraint, a max is the constraint for maximum acceleration.

[0048] The method of converting the collaborative trajectory optimization mathematical model into a Markov game model is:

[0049] Divide the task time T into M time slots m∈[0,Mδ t ], which satisfies T=Mδ t , the drone action, strategy, and network parameters remain unchanged within a time slot; the Markov game process parameters {S, A, P, R} are established, where S is the state space, A is the action space, P is the state transfer function, and R is the reward function. The specific definitions are as follows:

[0050] is the state of drone i in time slot m l i (m) is the position of UAV i in time slot m, d i,j (m) is the relative distance to other UAVs, d i,k (m) is the relative distance to the target service user, d i,obs (m) is the relative distance to the obstacle, R i (m) is the communication rate of the node itself, E i (m) is the remaining power; ​

[0051] A is the action space of the drone F i (m) is the flight driving force of UAV i in time slot m; P is the state transfer function S m+1 =P(S m ,A m );R is the reward function of the model.

[0052] The reward function is divided into communication reward, energy consumption reward, and safety reward;

[0053] First, establish a communication reward function. When UAV i establishes a connection with a ground user, it will receive its own reward r. c , and at the same time all drones on the link will receive a global connection reward r g :

[0054]

[0055] in, Indicates communication reward;

[0056] The remaining power of the drone is used as part of the reward. The energy consumption reward value of the drone is:

[0057]

[0058] in, represents the energy consumption reward of the drone, μ represents the energy consumption reward coefficient, e0 is the safety power threshold of the drone, E i (m) is the remaining battery power of the drone;

[0059] Establish a safety potential field, d represents the distance from obstacles and drones, D safe Represents the safety distance threshold, △d ensures that the denominator is not zero:

[0060]

[0061] in, represents the drone safety reward, η represents the penalty coefficient, and λ safe represents the UAV speed coefficient, d i,obs (m) represents the distance between UAV i and the obstacle;

[0062] Finally, the reward function obtained by drone i in time slot m is:

[0063]

[0064] The multi-agent deep reinforcement learning algorithm is:

[0065] The state set of N drones is The local information observed by each agent and the action set of the drone The state transition function is P(S m+1 |S m ,A m ), that is, given the current state and action of each agent, output the probability distribution of the state at the next moment; the reward function R(S m ,A m ), given the current state and action set of the drone, output the reward of each drone; expected discounted return function J i (π i ) is expressed as:

[0066]

[0067] in, For S m In this state, all agents take The action gets a reward value, π i For each agent’s learned policy function, γ∈[0,1] represents the decay value of the reward; For a1~π1,…,a N ~π N Expectations under conditions;

[0068] The policy gradient formula introducing action entropy is as follows:

[0069]

[0070] in, represents the gradient, represents the expected discounted return function, Ε o~B,a~π Express expectations, is the strategy function, and its network output is the probability value corresponding to each action. is the evaluator, Represents the local status information of all drones, represents the actions of all drones, α is the coefficient of action entropy, θ i and ψ i are the network parameters of the actor and the evaluator respectively, and B is the buffer for storing experience, which stores the local state observation value of each drone at time slot m Selected action value Take Action The status value obtained after And the corresponding rewards

[0071] The loss function of the network is:

[0072]

[0073] in, ε∈[0,1], is the target Q-value network, is the target policy network, are the network parameters of the target critic network, are the network parameters of the target policy network.

[0074] The operation strategy of the actor is:

[0075] Each drone will deploy an actor composed of an artificial neural network, which outputs corresponding flight actions based on the state information obtained by the drone; the drone's actor has a cache space to store the information of the previous time slot. With current status information Make a difference and get the differential value of the state The specific formula is as follows:

[0076]

[0077] The dual-data stream actor network includes a multi-layer perceptron layer, a batch normalization layer, and a residual connection structure; each network branch processes state information independently The differential value of the state Drones can be Information, sense obstacles, targets or the movement trends of other drones, and make appropriate actions in advance.

[0078] The operation strategy of the evaluator is:

[0079] The attention module is combined with the evaluator, and the state value and action value of each agent are first encoded by the input encoder to obtain e i , e i Input the layered multi-head attention encoder to get e a , and then e a With e i Merge the input evaluator output Q value; in the multi-head attention module, each head has three weight matrices: W q , W k , W v , respectively, with the state value and action value encoding value e of each drone i Multiply them together to get q i , k i 、v i Three vectors, the vector combination of all drones generates three encoding matrices Q, K, and V;

[0080] q i =W q ei

[0081] k i =W k e i ;

[0082] v i =W v e i

[0083]

[0084] H=Vα soft ;

[0085] Among them, α soft is the soft attention weight matrix, d k is the attention scaling factor, α soft Then multiply it with V to get the output matrix H∈{h1,h2,...,h n}, h i Agent information integrated with attention weights.

[0086] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention maximizes the network throughput and energy efficiency of drones by collaboratively optimizing the flight trajectory and cooperation strategy of the drone cluster. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0088] Figure 1 This is a flow chart of a multi-UAV collaborative path optimization algorithm in an embodiment of the present invention.

[0089] Figure 2 Schematic diagram of the multi-UAV collaborative path optimization scoring structure in an embodiment of the present invention.

[0090] Figure 3 Schematic diagram of the network structure of the dual data stream actor of the drone in an embodiment of the present invention.

[0091] Figure 4 Schematic diagram of the network structure of the drone hierarchical multi-head attention encoder in an embodiment of the present invention.

[0092] Figure 5 Schematic diagram of a multi-UAV simulation training environment in an embodiment of the present invention. DETAILED DESCRIPTION

[0093] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0094] like Figure 1 and 2 As shown, an embodiment of the present invention provides a method for distributed multi-UAV relay network coverage, and the specific steps are as follows:

[0095] Step 1: Establish a multi-UAV communication channel model, energy consumption model, and collaborative trajectory optimization mathematical model, and convert the collaborative trajectory optimization mathematical model into a Markov game model;

[0096] In emergency communication scenarios, the number of ground base stations is limited and cannot be deployed on a large scale. The terrain is complex and unknown. Ground personnel and vehicles need a bird's-eye view for navigation and stable high-bandwidth communication. Deploy a drone integrated service system that uses drone clusters and emergency network base stations to establish a wireless mesh network and dynamically expand the network range of ground emergency base stations as needed. Set the drone cluster to Its relative coordinates are The ground user set is Its relative coordinates are Ground users are divided into fast-moving rescue vehicles, which travel on the road at a constant speed, and slower-moving rescue personnel, whose movement direction constantly changes randomly.

[0097] In the multi-UAV communication scenario, the channel environment is complex. In order to better meet the actual communication conditions, the channel model is set as an air-to-air link loss model and an air-to-ground link loss model, and the line-of-sight link loss and non-line-of-sight link loss are considered. The communication between UAVs is a line-of-sight link model, and the link loss model between UAV i and UAV j is defined as:

[0098]

[0099] in, is the link loss between UAV i and UAV j, d i,j is the distance between UAV i and UAV j, f0 is the carrier frequency of communication, c is the speed of light, η LoS is the additional attenuation coefficient;

[0100] According to the link loss between drone i and drone j, the average power, signal-to-noise ratio and communication rate of the receiving end of the drone communication channel are calculated:

[0101]

[0102]

[0103]

[0104] in, Represents the average power of the drone receiving end, P U is the transmitting power of the UAV, is the signal-to-noise ratio of the UAV communication channel, I i,j (t) is the channel interference of other UAVs, σ 2 is additive Gaussian, is the communication rate between UAV i and UAV j, and B is the communication bandwidth.

[0105] Establish the channel model between drones, ground users and base stations. The emergency communication environment of drones is complex and changeable. The air-to-ground channel model is usually a probability-weighted combination of the line-of-sight link loss model and the non-line-of-sight link loss model. Therefore, the link loss model between drone i and ground user k is:

[0106]

[0107]

[0108]

[0109] in, is the line-of-sight link loss, is the non-line-of-sight link loss, d i,k (t) is the distance between UAV i and ground user k, η LoS and η NLoS Expressed as additional attenuation coefficient; is the probability of UAV i connecting to ground user k within line of sight, α and β are constants of environmental factors, θ i,k (t) is the elevation angle from the ground equipment to the UAV.

[0110] The communication rate between UAV i and ground device k is:

[0111]

[0112] in, is the communication rate between UAV i and ground device k, is the link loss between UAV i and ground user k, I i,k (t) represents the channel interference of other UAVs;

[0113] Establish the energy consumption model of the UAV. The energy consumption of the UAV is mainly composed of two parts, which are divided into communication energy consumption and flight energy consumption. The communication energy consumption accounts for a low proportion of the overall energy consumption of the UAV and has a small fluctuation. Therefore, in order to simplify the complexity of the system model, this embodiment sets the power consumption of the communication part to a fixed value P com The flight power consumption is set to:

[0114]

[0115] Where P0 is the blade profile power, P i is the hovering power, U is the tip linear velocity, V represents the flight speed of the drone, v0 is the rotor induced velocity during hovering, d0 is the fuselage drag coefficient, s is the motor volume, ρ is the air density, and A is the motor area. The first term of the formula is the power consumption generated by overcoming the blade resistance, and the third term of the formula is the power consumption for overcoming the fuselage resistance. These two terms increase with increasing speed. The second term of the formula is the power consumption for overcoming the induced drag generated by the blade, which is inversely proportional to the speed. Finally, the total energy consumption of the drone is:

[0116]

[0117] Among them, E i (T) is the total energy consumption of the UAV, P dyn (V(t)) is the flight power consumption, P com is the communication power consumption.

[0118] The total network data throughput and mission energy consumption are used as optimization targets to maximize communication energy efficiency, while all drone nodes and base stations maintain effective communication at a certain network rate. Avoid collisions between drones and effectively avoid obstacles in complex terrain after disasters. Optimize the maneuvering speed and trajectory of drones, reduce drone power consumption, and increase air time. Based on the above problems, this embodiment establishes a multi-constraint and multi-objective optimization model to maximize communication energy efficiency by optimizing the trajectory and collaboration strategy of drones. The specific mathematical model is as follows:

[0119]

[0120] stC1:E i (T)≤e safe (12)

[0121]

[0122]

[0123] C4:l i (t),l k (t)∈Ω task (15)

[0124] C5:V i <V max (16)

[0125] C6:a i max (17)

[0126]

[0127] Among them, l i (t) is the position of drone i, is the rate of ground users, M is the number of elements in the user set, N is the number of elements in the drone set, and e safe Indicates safe power, R min The minimum communication rate established between nodes. is the drone safety domain, Ω obs ∈R 3×1 To prevent safety zones, is the task-limited area, V max is the maximum speed constraint, a max is the maximum acceleration constraint. Constraint C1 is the safety power limit of the drone, ensuring that the drone retains enough power for return. Constraint C2 indicates that the communication rate between network nodes reaches a certain value to meet the communication needs of ground rescue personnel and vehicles. is the drone safety domain, Ω obs ∈R 3×1 To prevent the drone from flying into the safety zone, the system will restrict the drone from flying into the area. The mission limits the area where the drone can only fly. C5 and C6 are the maximum speed constraint and maximum acceleration constraint.

[0128] The collaborative trajectory optimization mathematical model is a mixed integer optimization problem, which is difficult to solve by traditional trajectory optimization algorithms. Therefore, the problem is formulated as a Markov game problem, which can be solved by adopting a multi-agent reinforcement learning algorithm, specifically:

[0129] Divide the task time T into M time slots m∈[0,Mδ t ], which satisfies T=Mδ t , the drone action, strategy, network parameters, etc. remain approximately unchanged within a time slot; the Markov game process parameters {S, A, P, R} are established, S is the state space, A is the action space, P is the state transfer function, and R is the reward function. The specific definitions are as follows:

[0130] is the state of drone i in time slot m l i ​(m) is the position of UAV i in time slot m, d i,j (m) is the relative distance to other UAVs, d i,k (m) is the relative distance to the target service user, d i,obs (m) is the relative distance to the obstacle, R i (m) is the communication rate of the node itself, E i (m) is the remaining power;

[0131] A is the action space of the drone F i (m) is the flight driving force of UAV i in time slot m; P is the state transfer function S m+1 =P(S m ,A m ), since the state space of the model is very large, it is difficult to model the state transition in advance. Reinforcement learning can solve this type of model-free optimization problem very well. R is the reward function of the model, which is the key to the completion of training for reinforcement learning and directly affects the performance of the model. The reward function in this paper is divided into local reward and global reward. The local reward is the reward for the drone to complete its own task, and the global reward is the reward that all agents will receive after certain conditions are met to encourage cooperation between drones. The reward function is divided into communication reward, energy consumption reward, and safety reward.

[0132] First, establish a communication reward function. When UAV i establishes a connection with a ground user, it will receive its own reward r. c , and at the same time all drones on the link will receive a global connection reward r g :

[0133]

[0134] in, Indicates communication reward.

[0135] The remaining power of the drone is taken as part of the reward. In order to preserve the power as much as possible, the energy consumption reward value of the drone is:

[0136]

[0137] in, represents the energy consumption reward of the drone, μ represents the energy consumption reward coefficient, e0 is the safety power threshold of the drone, E i (m) is the remaining battery power of the drone.

[0138] A safety potential field is established to improve the learning speed of the obstacle avoidance function of the drone. A potential field is established for obstacles, drones, and service area boundaries. Its range is dynamically adjusted with speed. The closer the drone is to the center of the potential field, the greater the penalty value. d represents the distance from the obstacle and the drone, D safe Represents the safety distance threshold, △d ensures that the denominator is not zero:

[0139]

[0140] in, represents the drone safety reward, η represents the penalty coefficient, and λ safe represents the UAV speed coefficient, d i,obs (m) represents the distance between UAV i and the obstacle.

[0141] Finally, the reward function obtained by drone i in time slot m is:

[0142]

[0143] Step 2: Based on the Markov game model, a multi-agent deep reinforcement learning algorithm with centralized training and distributed execution is built. Each drone is equipped with an actor and an evaluator. The actor outputs the flight trajectory according to the drone state information, and the evaluator outputs the corresponding action value to train the actor.

[0144] Multi-agent deep reinforcement learning is used to optimize the above multi-UAV collaborative trajectory optimization problem. The specific algorithm is as follows:

[0145] Assume that the state set of N drones is The local information observed by each agent and the action set of the drone The state transition function is P(S m+1 |S m ,A m ), that is, given the current state and action of each agent, output the probability distribution of the state at the next moment; the reward function R(S m ,A m ), given the current state and action set of the drone, output the reward of each drone; expected discounted return function J i (π i ) is expressed as:

[0146]

[0147] in, For S m In this state, all agents take The action gets a reward value, π iFor each agent’s learned policy function, γ∈[0,1] represents the decay value of the reward; It is expressed as a1~π1,…,a N ~π N Expectation under conditions; Maximum entropy reinforcement learning adds action sampling entropy on the basis of policy gradient. When the action with small possibility is selected intelligently, the action sampling entropy will be larger. After introducing this item, the algorithm will encourage the agent to explore more and avoid falling into the local optimal solution, which is more suitable for complex tasks. The policy gradient formula for introducing action entropy is as follows:

[0148]

[0149] in, represents the gradient, represents the expected discounted return function, Ε o~B,a~π Express expectations, is the strategy function, and its network output is the probability value corresponding to each action. The present embodiment adopts a centralized training and decentralized execution architecture, wherein the evaluators share a loss function and jointly update parameters to minimize the error value. Represents the local status information of all drones, represents the actions of all drones, α is the coefficient of action entropy, θ i and ψ i are the network parameters of the actor and the evaluator respectively, and B is the buffer for storing experience, which stores the local state observation value of each drone at time slot m Selected action value Take Action The status value obtained after And the corresponding rewards The loss function of the network is:

[0150]

[0151] in, ε∈[0,1], is the target Q-value network, is the target policy network, are the network parameters of the target critic network, are the network parameters of the target policy network, which are updated by soft updating of the ψ and θ network parameters, and ε is the original data retention coefficient of the soft update.

[0152] Step 3: For the actor, a dual data stream structure network is established, and the dual data stream structure network is used to process the state information of the UAV and output the flight trajectory of the UAV; a dual data stream structure is constructed in the actor to simultaneously process the state information of the UAV and the differential of the state information to improve the dynamic performance of the UAV.

[0153] The policy network mentioned above Corresponding to the actor in reinforcement learning, in order to make the drone more adaptable to dynamic scenes, the present invention proposes a dual-data stream actor network structure as follows Figure 3 The specific contents are as follows:

[0154] Each drone will deploy an actor composed of an artificial neural network, which outputs corresponding flight actions based on the state information obtained by the drone; the drone's actor has a cache space to store the information of the previous time slot. With current status information Make a difference and get the differential value of the state The specific formula is as follows:

[0155]

[0156] The dual-data stream actor network includes a multi-layer perceptron layer, a batch normalization layer, and a residual connection structure; each network branch processes state information independently The differential value of the state Drones can be Information, perceive the movement trend of obstacles, targets or other drones, and make appropriate actions in advance. In addition, adding network differential information can monitor the signal change trend of the drone link in real time, make response strategies in advance, and also perceive the rising and falling edges of state changes such as network node connection and disconnection. The actor network is composed of an artificial neural network, which consists of a multi-layer perceptron (MLP), a fully connected layer (Linear), a batch normalization (BN) and a residual network structure.

[0157] Step 4: For the evaluator, a hierarchical multi-head attention encoder is established to remove the redundant information of other UAVs through the attention mechanism, generate different attention levels according to the degree of task relevance, and establish an effective cooperation strategy; A hierarchical multi-head attention encoder is established in the evaluator to remove the redundant information of other UAVs through the attention mechanism, generate different attention levels according to the degree of task relevance, and establish an effective cooperation strategy.

[0158] The above mentioned The network is an evaluator network in reinforcement learning. In the traditional centralized training and decentralized execution training framework, each actor is assigned an evaluator. Each evaluator takes the state information and action information of all intelligences as input and outputs the evaluation value of the corresponding action. This causes two problems: 1. As the number of agents and users increases, the network size of the evaluator will increase exponentially, which will cause the dimensionality disaster. 2. The relationship and importance between agents are different, and change in real time with the progress of the task and the change of state. If the evaluator considers the information of all agents equally, it will cause too much interference from irrelevant agent information, and it will be difficult to establish a complex collaborative strategy.

[0159] In order to solve the above problems, the present invention proposes a hierarchical multi-head attention encoder, which uses the attention mechanism to increase the encoding weight of related drone information, suppress the information of irrelevant drones and reduce interference, thereby establishing a correct assistance relationship. Its structure is as follows: Figure 4 The specific contents are as follows:

[0160] The attention module is combined with the evaluator, and the state value and action value of each agent are first encoded by the input encoder to obtain e i , e i Input the layered multi-head attention encoder to get e a , and then e a With e i Merge the input evaluator output Q value; in the multi-head attention module, each head has three weight matrices: W q , W k , W v , respectively, with the state value and action value encoding value e of each drone i Multiply them together to get q i , k i 、v i Three vectors, the vector combination of all drones generates three encoding matrices Q, K, and V;

[0161]

[0162]

[0163] H=Vα soft (29)

[0164] Among them, α soft is the soft attention weight matrix, d k is the attention scaling factor, α soft Then multiply it with V to get the output matrix H∈{h1,h2,...,h n}, h iThe agent information of attention weights is integrated. The encoder network is composed of an artificial neural network, which consists of a multi-layer perceptron (MLP), a fully connected layer (Linear), a layer normalization (LN) and a residual network structure.

[0165] Step 5: Design reward functions related to safety potential field, throughput, and drone energy consumption to guide drones to learn the correct collaborative trajectory optimization strategy to achieve relay network coverage;

[0166] Step 6: Build a simulation environment for multiple drones to coordinately deploy relay networks. Use interactive training to train each drone to collaborate with each other to complete multi-hop relay network coverage tasks.

[0167] The algorithm runs on Intel Core i9-11900H, NVIDIA GeForce RTX3090, based on python3.6, pytorch1.7 software platform. Using OpenAI's multi-particle environment, a simple road network, ground users and obstacles were constructed in a 2km x 2km square area. Ground users move along the road at random speeds. A ground network base station is set up in the central area. The drone cluster uses networking relays to cover the base station network to the area where the users are located. Figure 5 As shown in the figure, each drone is equipped with an evaluator and an actor. The evaluator trains the actor according to the status and actions of all drones. After the training is completed, each drone no longer needs the evaluator and only uses the local status information observed by the actor to achieve multi-drone coordination.

[0168] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for distributed multi-UAV relay network coverage, characterized in that: The steps are as follows: Step 1: Establish a multi-UAV communication channel model, energy consumption model, and collaborative trajectory optimization mathematical model, and convert the collaborative trajectory optimization mathematical model into a Markov game model; Step 2: Based on the Markov game model, a multi-agent deep reinforcement learning algorithm with centralized training and distributed execution is built. Each drone is equipped with an actor and an evaluator. The actor outputs the flight trajectory according to the drone state information, and the evaluator outputs the corresponding action value to train the actor. The multi-agent deep reinforcement learning algorithm is: The state set of N drones is The local information observed by each agent and the action set of the drone The state transition function is P(S m+1 |S m ,A m ), that is, given the current state and action of each agent, output the probability distribution of the state at the next moment; the reward function R(S m ,A m ), given the current state and action set of the drone, output the reward of each drone; expected discounted return function J i (π i ) is expressed as: in, For S m In the state, all agents take The action gets a reward value, π i For each agent’s learned policy function, γ∈[0,1] represents the decay value of the reward; For a1~π1,…,a N ~π N Expectations under conditions; The policy gradient formula introducing action entropy is as follows: in, represents the gradient, represents the expected discounted return function, Ε o~B,a~π Express expectations, is the strategy function, and its network output is the probability value corresponding to each action. is the evaluator, Represents the local status information of all drones, represents the actions of all drones, α is the coefficient of action entropy, θ i and ψ i are the network parameters of the actor and the evaluator respectively, and B is the buffer for storing experience, which stores the local state observation value of each drone at time slot m Selected action value Take Action The status value obtained after And the corresponding rewards The loss function of the network is: in, ε∈[0,1], is the target Q-value network, is the target policy network, are the network parameters of the target critic network, are the network parameters of the target policy network; Step 3: For the actor, a dual data stream structure network is established, and the dual data stream structure network is used to process the state information of the drone and output the flight trajectory of the drone; Step 4: For the evaluator, a hierarchical multi-head attention encoder is established to remove redundant information of other drones through the attention mechanism, generate different attention levels according to the degree of task relevance, and establish an effective cooperation strategy; Step 5: Design reward functions related to safety potential field, throughput, and drone energy consumption to guide drones to learn the correct collaborative trajectory optimization strategy to achieve relay network coverage; Step 6: Build a simulation environment for multiple drones to coordinately deploy relay networks. Use interactive training to train each drone to collaborate with each other to complete multi-hop relay network coverage tasks.

2. The method for distributed multi-UAV relay network coverage according to claim 1, characterized in that: The construction method of the multi-UAV communication channel model is: Set the drone collection to Its relative coordinates are The ground user set is Its relative coordinates are The communication between drones is a line-of-sight link model, and the link loss model between drone i and drone j is defined as: in, is the link loss between UAV i and UAV j, d i,j is the distance between UAV i and UAV j, f0 is the carrier frequency of communication, c is the speed of light, η LoS is the additional attenuation coefficient; According to the link loss between drone i and drone j, the average power, signal-to-noise ratio and communication rate of the receiving end of the drone communication channel are calculated: in, Represents the average power of the drone receiving end, P U is the transmitting power of the UAV, is the signal-to-noise ratio of the UAV communication channel, I i,j (t) is the channel interference of other UAVs, σ 2 is additive Gaussian, is the communication rate between UAV i and UAV j, and B is the communication bandwidth; Establish a channel model between the drone and the ground equipment: in, is the communication rate between UAV i and ground device k, is the link loss between UAV i and ground user k, I i,k (t) represents the channel interference of other UAVs; in, is the line-of-sight link loss, is the non-line-of-sight link loss, d i,k (t) is the distance between UAV i and ground user k, η LoS and η NLoS Expressed as additional attenuation coefficient; is the probability of UAV i connecting to ground user k within line of sight, α and β are constants of environmental factors, θ i,k (t) is the elevation angle from the ground equipment to the UAV.

3. The method for distributed multi-UAV relay network coverage according to claim 2, characterized in that: The energy consumption model is: Among them, E i (T) is the total energy consumption of the UAV, P dyn (V(t)) is the flight power consumption, P com is the communication power consumption; Where P0 is the blade profile power, P i is the hovering power, U is the tip linear velocity, V is the flight speed of the UAV, v0 is the rotor induced velocity during hovering, d0 is the fuselage drag coefficient, s is the motor volume, ρ is the air density, and A is the motor area.

4. The method for distributed multi-UAV relay network coverage according to claim 3, characterized in that: The collaborative trajectory optimization mathematical model is: s.t.C1:E i (T)≤e safe ; C4:l i (t),l k (t)∈Ω task ; C5:V i <V max ; C6:a i <a max ; Among them, l i (t) is the position of drone i, is the rate of ground users, M is the number of elements in the user set, N is the number of elements in the drone set, and e safe Indicates safe power, R min The minimum communication rate established between nodes. is the drone safety domain, Ω obs ∈R 3×1 To prevent safety zones, is the task-limited area, V max is the maximum speed constraint, a max is the constraint for maximum acceleration.

5. The method for distributed multi-UAV relay network coverage according to claim 4, characterized in that: The method of converting the collaborative trajectory optimization mathematical model into a Markov game model is: Divide the task time T into M time slots m∈[0,Mδ t ], which satisfies T=Mδ t , the drone action, strategy, and network parameters remain unchanged within a time slot; the Markov game process parameters {S, A, P, R} are established, where S is the state space, A is the action space, P is the state transfer function, and R is the reward function. The specific definitions are as follows: is the state of drone i in time slot m l i (m) is the position of UAV i in time slot m, d i,j (m) is the relative distance to other UAVs, d i,k (m) is the relative distance to the target service user, d i,obs (m) is the relative distance to the obstacle, R i (m) is the communication rate of the node itself, E i (m) is the remaining power; A is the action space of the drone F i (m) is the flight driving force of UAV i in time slot m; P is the state transfer function S m+1 =P(S m ,A m );R is the reward function of the model.

6. The method for distributed multi-UAV relay network coverage according to claim 5, characterized in that: The reward function is divided into communication reward, energy consumption reward, and safety reward; First, establish a communication reward function. When UAV i establishes a connection with a ground user, it will receive its own reward r. c , and at the same time all drones on the link will receive a global connection reward r g : in, Indicates communication reward; The remaining power of the drone is used as part of the reward. The energy consumption reward value of the drone is: in, represents the drone energy consumption reward, μ represents the energy consumption reward coefficient, e0 is the drone safety power threshold, E i (m) is the remaining battery power of the drone; Establish a safety potential field, d represents the distance from obstacles and drones, D safe Represents the safety distance threshold, △d ensures that the denominator is not zero: in, represents the drone safety reward, η represents the penalty coefficient, and λ safe represents the UAV speed coefficient, d i,obs (m) represents the distance between UAV i and the obstacle; Finally, the reward function obtained by drone i in time slot m is:

7. The method for distributed multi-UAV relay network coverage according to claim 1, characterized in that: The operation strategy of the actor is: Each drone will deploy an actor composed of an artificial neural network, which outputs corresponding flight actions based on the state information obtained by the drone; the drone's actor has a cache space to store the information of the previous time slot. With current status information Make a difference and get the differential value of the state The specific formula is as follows: The dual-data stream actor network includes a multi-layer perceptron layer, a batch normalization layer, and a residual connection structure; each network branch processes state information independently The differential value of the state The drone passes additional Information, sense obstacles, targets or the movement trends of other drones, and make appropriate actions in advance.

8. The method for distributed multi-UAV relay network coverage according to claim 1, characterized in that: The operation strategy of the evaluator is: The attention module is combined with the evaluator, and the state value and action value of each agent are first encoded by the input encoder to obtain e i , e i Input the layered multi-head attention encoder to get e a , and then e a With e i Merge the input evaluator output Q value; In the multi-head attention module, each head has three weight matrices: W q , W k , W v , respectively, with the state value and action value encoding value e of each drone i Multiply them together to get q i , k i 、v i Three vectors, the vector combination of all drones generates three encoding matrices Q, K, and V; H=Vα soft ; Among them, α soft is the soft attention weight matrix, d k is the attention scaling factor, α soft Then multiply it with V to get the output matrix H∈{h1,h2,...,h n }, h i Agent information integrated with attention weights.

Citation Information

Patent Citations

  • Unmanned aerial vehicle network hovering position optimization method based on multi-agent deep reinforcement learning

    CN111786713A

  • Implementation method of unmanned aerial vehicle relay communication system based on depth deterministic strategy gradient algorithm

    CN114980126A

  • Communication coverage method based on multi-agent maximum entropy reinforcement learning and related equipment

    CN115314904A

  • Three-dimensional trajectory design and resource scheduling optimization method for complex unmanned aerial vehicle network

    CN115499921A