[go: up one dir, main page]

Next Article in Journal
Experimental Analysis of Commercial Optical Methods for Foot Measurement
Next Article in Special Issue
Attitude Solving Algorithm and FPGA Implementation of Four-Rotor UAV Based on Improved Mahony Complementary Filter
Previous Article in Journal
Indoor MIMO-VLC Using Angle Diversity Transmitters
Previous Article in Special Issue
The Time-of-Arrival Offset Estimation in Neural Network Atomic Denoising in Wireless Location
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Mean-Field Game Control for Large-Scale Swarm Formation Flight in Dense Environments

1
School of Mathematical Sciences, Beihang University, Beijing 100191, China
2
Key Laboratory of Mathematics, Informatics and Behavioral Semantics, Ministry of Education, Beijing Advanced Innovation Center for Big Data and Brain Computing, Beihang University, Beijing 100191, China
3
Peng Cheng Laboratory, Shenzhen 518055, China
4
Institute of Artificial Intelligence, Beihang University, Beijing 100191, China
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(14), 5437; https://doi.org/10.3390/s22145437
Submission received: 19 June 2022 / Revised: 10 July 2022 / Accepted: 18 July 2022 / Published: 21 July 2022
(This article belongs to the Special Issue AI-Aided Wireless Sensor Networks and Smart Cyber-Physical Systems)
Figure 1
<p>Visualization of the structure and training process of our GAN-based neural network. Its training process is divided into two coupled alternating training parts—generator and discriminator.</p> ">
Figure 2
<p>A large-scale desired formation consisting of twenty-five quadrotors traverses a 3-D environment from the bottom left side to the top right side.</p> ">
Figure 3
<p>The visualization of the executed trajectories for the formation flight of large-scale UAVs. The <math display="inline"><semantics> <mrow> <mi>x</mi> <mi>o</mi> <mi>y</mi> </mrow> </semantics></math>-plane projections represent the outline of the shape.</p> ">
Figure 4
<p>Illustration of MFG convergence and formation stability.</p> ">
Figure 5
<p>Comparison of the executed trajectories for the formation flight of large-scale UAVs about volatility parameter <math display="inline"><semantics> <mrow> <mi>σ</mi> <mo>=</mo> <mn>0</mn> </mrow> </semantics></math>, <math display="inline"><semantics> <mrow> <msqrt> <mn>2</mn> </msqrt> <mo>×</mo> <msup> <mn>10</mn> <mrow> <mo>−</mo> <mn>1</mn> </mrow> </msup> </mrow> </semantics></math> and <math display="inline"><semantics> <mrow> <msqrt> <mn>10</mn> </msqrt> <mo>×</mo> <msup> <mn>10</mn> <mrow> <mo>−</mo> <mn>1</mn> </mrow> </msup> </mrow> </semantics></math>.</p> ">
Figure 6
<p>The visualization of the executed trajectories for large-scale UAVs formation flying through an obstacle-rich area. (<b>a</b>) Full view of the trajectories. (<b>b</b>) <math display="inline"><semantics> <mrow> <mi>x</mi> <mi>o</mi> <mi>y</mi> </mrow> </semantics></math>-plane projection trajectories.</p> ">
Figure 7
<p>Illustration of the performance of interaction terms for MFG control (<math display="inline"><semantics> <msup> <mi mathvariant="script">F</mi> <mn>1</mn> </msup> </semantics></math>, <math display="inline"><semantics> <msup> <mi mathvariant="script">F</mi> <mn>2</mn> </msup> </semantics></math>, <math display="inline"><semantics> <msup> <mi mathvariant="script">F</mi> <mn>3</mn> </msup> </semantics></math>). (<b>a</b>) Formation similarity error. (<b>b</b>) Minimum distance between UAVs and obstacles. (<b>c</b>) Minimum distance between UAVs.</p> ">
Review Reports Versions Notes

Abstract

:
As an important part of cyberphysical systems (CPSs), multiple aerial drone systems are widely used in various scenarios, and research scenarios are becoming increasingly complex. However, planning strategies for the formation flying of aerial swarms in dense environments typically lack the capability of large-scale breakthrough because the amount of communication and computation required for swarm control grows exponentially with scale. To address this deficiency, we present a mean-field game (MFG) control-based method that ensures collision-free trajectory generation for the formation flight of a large-scale swarm. In this paper, two types of differentiable mean-field terms are proposed to quantify the overall similarity distance between large-scale 3-D formations and the potential energy value of dense 3-D obstacles, respectively. We then formulate these two terms into a mean-field game control framework, which minimizes energy cost, formation similarity error, and collision penalty under the dynamical constraints, so as to achieve spatiotemporal planning for the desired trajectory. The classical task of a distributed large-scale aerial swarm system is simulated by numerical examples, and the feasibility and effectiveness of our method are verified and analyzed. The comparison with baseline methods shows the advanced nature of our method.

1. Introduction

As an important part of cyberphysical systems (CPSs), multiple aerial drone systems have shown great advantages and value in performing tasks such as environmental reconnaissance, information transmission & reception, and target tracking in the fields of disaster rescue, geological exploration, and smart cities [1]. Compared with common multi unmanned aerial vehicle (UAV) systems, hundreds or thousands of larger-scale UAV swarms have better maneuverability performance and mission realization efficiency [2]. When the drone swarm performs actual missions, it will fly in formation as needed. In the process of approaching the target, it not only needs to avoid obstacles in time but also needs to consider the trajectory collision avoidance between the drones in the swarm. As a result, the drone swarm requires a large amount of communication and computing resources to guarantee real-time communication information interaction and perception information calculation, which will grow exponentially with the scale.
Research work on the flight control of aerial swarms is extensive. A large number of research studies focus on the formation flight, trajectory planning, and obstacle avoidance of the swarm, and their combination forms are more common. Specifically, Zhang et al. [3] proposed a formation control method based on the communication consensus mechanism and leader–follower strategy, which realized the efficient flight of multiple UAVs in formation around a single static obstacle. In the same year, Zhang et al. [4] proposed an obstacle avoidance control algorithm based on virtual structure and 3-D spatial leader–follower strategy, which realized a triangular formation of multiple UAVs flying through multiple static obstacles with high efficiency. Shao et al. [5] proposed an improved particle swarm optimization algorithm for formation-obstacle avoidance-trajectory planning in a 3-D environmen and completed an experiment in which multiple UAVs formed a formation after avoiding the static cone and ellipsoid obstacles. Combined with an improved artificial potential field method (APF), Wu et al. [6] performed a swarm control for multiple UAVs based on a virtual core structure, solved the local minima problem in APF, and successfully achieved the swarm control of multiple UAVs and the flexible obstacle avoidance of adaptive formation flight in an urban environment. In 2021, the Fei Gao team [7] proposed a distributed swarm trajectory optimization method for formation flight in a dense environment, which realizes multiple UAVs maintain formation flight through unknown obstacle-rich scenarios. Peng et al. [8] put forward a perception sharing and swarm trajectory global optimal algorithm, which experimentally showed that the success rate of obstacle avoidance in a dense obstacle environment could reach at least 80%. In the latest research so far, the formation-obstacle avoidance scenarios of multi-UAV systems have become more and more complex, and the continuously developed optimal control algorithms provide decision-making guarantees for mission flight in the corresponding scenarios. However, the current situation shows that the research schemes in the above literature are all limited by the large-scale of UAVs because the traditional optimization and control technologies deal with the dynamic interaction between individuals, respectively. With the increase of the number of UAVs, the difficulty of solving the optimal strategy will increase significantly.
For the large-scale UAVs flight control problem, some researchers have contributed interesting work. For example, [9] used the mean-field game (MFG) model to solve the real-time flight control problem of large-scale UAVs on the 2-D plane, and the proposed algorithm effectively realizes interaircraft collision avoidance and reduces the energy consumption of UAVs. Shiri et al. [10] combined a federal learning method that can share the parameters of neural network models on UAVs and completed a simulation experiment based on the MFG model for large-scale-UAV swarms flying to the destination under 2-D conditions. Chen et al. [11] proposed a mean-field trust-region policy optimization control method based on multi-agent reinforcement learning, which solved the problem of limited communication range for large-scale UAV flight control. Xu et al. [12] proposed a dual-fields approach, in which the improved APF method overcomes the failure of traditional APF in collision avoidance; the MFG method greatly reduces the communication interference of the UAV group, couples these two methods to adjust the flight trajectory and power consumption, and realizes the flight obstacle avoidance of large-scale UAVs in multiple static obstacles with height differences. Gao et al. [13] proposed an energy-efficient velocity control algorithm for a large number of UAVs based on MFG, which expressed the speed control of large-scale UAVs as a differential game and used the original double mixed gradient method to solve the problem. Their experiments completed that large-scale UAVs bypassed static obstacles in the case of 2-D while minimizing energy consumption. The above documents all use the mean-field method to convert the traditional control 1-vs.-N game into a 1-vs.-1 game, which greatly reduces the interaction frequency of agent systems. Thus, they can deal with large-scale mission scenarios to effectively reduce the communication resources and flight energy consumption. However, it should be pointed out that the state quantities in their numerical solution of the mean-field are all low-dimensional, and the relevant numerical solution problems can be solved using the grid-based method. In terms of solving high-dimensional MFGs, [14] perfectly avoids spatial grids of high-dimensional MFGs based on the machine learning framework, but their work is limited to the deterministic setting ( σ = 0). Ref. [15] is the first document to solve high-dimensional MFGs under a random setting ( σ > 0), which exploits the natural connection between MFGs and generative adversarial neural networks (GANs) [16]. Ref. [17] further proposed a numerical solution for solving multi-population high-dimensional stochastic MFGs, a coupled alternating neural network (CA-Net). The numerical experiments completed the coordinated flight of large-scale multipopulation quadcopters to the destination and realize the intergroup interaction and intragroup collision avoidance. The MF method, MFG model, and its numerical solution methods gathered from these documents provide a preliminary solution idea for the flight control problem of large-scale aerial drones in 3-D scenes. However, the current situation shows that these large-scale control research schemes are limited by complex scenarios because most of the state quantities in MF terms are directly used for real-time error measurement. With the complexity of application scenarios, a large number of UAV states may change frequently, resulting in a significant decline in mission success rate.
To summarize, a large-scale agent trajectory planning method that can effectively manage both formation and obstacle avoidance in dense environments is lacking in the literature. On the one hand, obstacle-dense avoidance control for aerial swarm navigation in formation needs to break through the large-scale restrictions; on the other hand, large-scale UAV flight control methods cannot be directly applied to complex scenarios. In practice, a single agent will stay away from obstacles for safety. However, when formation imposes agents tracking targets, it may oppose obstacle avoidance, that is, sometimes formation and obstacle avoidance are contradictory; large-scale itself has the difficulty of communication and calculation, which is exacerbated by frequent formation–neighbor communication and obstacle avoidance environment interactions. How to systematically trade off the conflicting requirements of large-scale, formation, and obstacle avoidance is the key point to accomplishing large-scale noncolliding formation flights.
To bridge the gap, we propose a large-scale agent trajectory optimization method capable of navigating large-scale swarms in formations while avoiding dense obstacles. First, extending the formation method in [7], we model the formation using undirected graphs based on probability densities and define a mean-field-based differentiable metric that assesses the difference between large-scale formation shapes in 3-D workspaces. Our formation similarity metric also retains the translation, rotation, and scale invariance of the formation methods in [7], enabling quantitative evaluation of the overall performance of large-scale formation maintenance. To solve the communication and computing difficulties caused by complex scenarios of large-scale multiagent systems and formulate the trade-offs between formation and obstacle avoidance in large-scale contexts, we design a mean-field game control framework that simultaneously satisfies the dynamic constraints and minimizes energy cost, formation similarity error, and collision penalty. The latter two of them serve as mean-field terms directly related to complex environments, and the functional form we define provides greater flexibility for agent maneuvering. Finally, to verify the effectiveness and practicability of the method, we conduct extensive simulation experiments of distributed aerial large-scale UAVs.
Our main contributions are summarized as:
  • A differentiable graph-theory-based mean-field term that quantifies the similarity distance between large-scale three-dimensional formations; a differentiable ellipsoid-based mean-field term that inscribes the potential energy value of dense three-dimensional obstacles.
  • A general control framework for complex scenarios of large-scale multiagent systems—mean-field game control, which jointly takes the amount of communication and computation, operating energy consumption, formation similarity, and obstacle avoidance into account.
  • A series of simulations with a distributed large-scale aerial swarm system validates the efficiency and robustness of our method. The comparison with baseline methods shows the advanced nature of our method.

2. Two Types of Mean-Field Terms

An aerial swarm formed by a large number of UAVs is considered in this paper, which is traversing an obstacle-rich area in an expected formation. Herein, two types of differentiable mean-field terms for formation similarity metric and obstacle potential energy value engraving are constructed in the following two subsections.

2.1. Formation Mean-Field Term

The large-scale system N with N agents have a probability distribution of the spatial state x varying with time t, that is, the mean field ρ ( x , t ) , where x = [ x 1 , x 2 , x 3 , . . . , x n ] R n ρ . Usually the position vector p = [ x , y , z ] = [ x 1 , x 2 , x 3 ] . A formation of N agents is modeled by an undirected graph G = ( V , E ) , where V : = { 1 , 2 , , N } is the set of vertices, and  E V × V is the set of edges [7]. In graph G , the vertex i represents the i th agent with position vector p i = x i , y i , z i R 3 . An edge e i j E that connects vertex i V and vertex j V means the agent i and j can measure the geometric distance between each other. In this work, each agent communicates with all other agents, thus, the formation graph G is complete. Each edge of the graph G is associated with a non-negative number as a weight. The weight of edge e i j is given by
w i j = p i p j 2 , ( i , j ) E ,
where · denotes the Euclidean norm. Now, the adjacency matrix A = ( A i j ) R N × N and degree matrix D = ( D i j ) R N × N of the formation G are determined,
A i j = w i j ,
D i j = j A i j if i = j 0 otherwise .
Thus, the corresponding Laplacian matrix is given by
L = D A .
With the above matrices, the symmetric normalized Laplacian matrix of the graph G is defined as
L ^ = D 1 / 2 LD 1 / 2 = I D 1 / 2 AD 1 / 2 ,
where I R N × N is the identity matrix.
As a graph representation matrix, Laplacian contains information about the graph structure [18]. To achieve the expected formation for the large-scale swarm, we propose a formation similarity metric as
F 1 ( ρ ( x , t ) ) = Ω Ω f 1 ( x , x ^ ) d ρ ( x , t ) d ρ ( x ^ , t ) ,
f 1 ( x , x ^ ) = L ^ ( x ) L ^ e ( x ^ ) F 2 = tr L ^ L ^ e T L ^ L ^ e ,
where Ω denotes state space of x , tr { · } is the trace of a matrix, L ^ is the symmetric normalized Laplacian of the current swarm formation, and L ^ e is the counterpart of the expected formation. Frobenius norm · F is used in our distance metric.
Remark 1.
The function F 1 is invariant to the translation, rotation, and scale of the formation because F 1 is an integral of f 1 . f 1 is natively invariant to translation and rotation of the formation since the corresponding graph is weighted by the absolute distance between agent positions; scaling invariance is achieved by normalizing graph Laplacian with the degree matrix in (5) [7].

2.2. Obstacle Mean-Field Term

The large-scale system N with N UAVs needs to traverse an obstacle-rich area. There are K static obstacles. The position of UAV is available. We assume that obstacles can be detected by the UAV vision sensor. In a 3-D urban environment, without loss of generality, obstacles can be considered rectangular solids Ω o b s , k = { ( x , y , z ) | | x x 0 , k | v 1 , k , | y y 0 , k | v 2 , k , | z z 0 , k | v 3 , k } , k = 1 , . . . , K where ( x 0 , k , y 0 , k , z 0 , k ) is the center of corresponding obstacle, ( ± v 1 , k , ± v 2 , k , ± v 3 , k ) are its vertices that are parallel to the x , y , z -axis, respectively. For training, we formulate obstacles as
Ω o b s , t r n , k : Q k ( x , y , z ) = 1 3 v 1 , k 2 ( x x 0 , k ) 2 + 1 3 v 2 , k 2 ( y y 0 , k ) 2 + 1 3 v 3 , k 2 ( z z 0 , k ) 2 1.1 k = 1 , . . . , K .
We encode ellipsoidal repulsion of obstacles for the generic UAV as
f 2 ( x ) = k = 1 K γ o b s , k 1 Q k if x Ω o b s , t r n 0 otherwise ,
where γ o b s , k , k=1, ⋯, K, is repulsive force gain coefficient between the generic UAV and other obstacles, Ω o b s , t r n = k = 1 K Ω o b s , t r n , k .
Remark 2.
The cuboid obstacle repulsion is encoded as the unit circumscribed ellipsoid repulsion making this function differentiable [19]. Ω o b s , t r n contains an obstacle radial bound ten percent more than in circumscribed ellipsoid of Ω o b s because we found this additional training buffer alleviates collisions during validation. By training with ellipsoidal repulsion, which has gradient information within the obstacles, we incentivize the model to learn trajectories avoiding the obstacles [20].
To achieve all obstacles avoidance for the large-scale swarm, we propose an obstacle potential energy function as
F 2 ( ρ ( x , t ) ) = Ω f 2 ( x ) ρ ( x , t ) d x .
Remark 3.
The function F 2 can avoid dense obstacles for large-scale swarms, which benefits from the proper construction of 3-D obstacles on the one hand, and the organic combination of obstacle potential and mean-field method on the other hand.

3. A Mean-Field Game Control Framework for Complex Scenarios

In this section, we find the optimal state control for large-scale UAVs which can systematically weigh the energy consumption, formation similarity, and obstacle avoidance of each UAV when it travels complex scenarios. Specifically, we first formulate the optimal control problem for a single UAV. The interaction relationship between drones forms an N-agent noncooperative differential game. As the number of UAVs grows large, the complexity of solving the differential game in the optimal control problem can increase significantly as traditional methods need to separately deal with the increasing interactions. Therefore, we reformulate the large-scale UAVs optimal state control problem in complex scenarios as a mean-field game control problem. Subsequently, we propose a generative-adversarial-network (GAN)-based algorithm to solve the mean-field game.

3.1. Single-UAV Optimal Control Problem

We consider that the continuous-time state x of the ith UAV has the dynamic–kinematic equation of the following form
d x i = h i ( x i , x i , u i ) d t + σ d ω i ( t ) ,
where x i denotes the states of all other UAVs, u i U i is the control input (strategy). In the stochastic case, we add a noise term to the dynamics, σ is a volatility term—a fixed coefficient matrix, and  ω i ( t ) denotes a Wiener process (standard Brownian motion), which is identical and independent among all UAVs. The interpretation here is that we are modeling the situation when the quadcopter suffers from noisy measurements [15]. For example, under wind perturbations, σ can be the covariance matrix of the wind velocity [10,13].
Without loss of generality, denoting gravity as g, the acceleration of a UAV with mass m can be written as
x i ¨ = u i m ( sin ( ψ i ) sin ( φ i ) + cos ( ψ i ) sin ( θ i ) cos ( φ i ) ) y i ¨ = u i m ( cos ( ψ i ) sin ( φ i ) + sin ( ψ i ) sin ( θ i ) cos ( φ i ) ) z i ¨ = u i m cos ( θ i ) cos ( φ i ) g ψ i ¨ = τ ψ i θ i ¨ = τ θ i φ i ¨ = τ φ i ,
where ( x , y , z ) is the spatial position of the UAV, ( ψ , θ , φ ) is the angular orientation with corresponding torques τ ψ , τ θ , τ φ , and u is the main thrust directed out of the bottom of the aircraft [21]. To fit a control framework, the above second-order system can be turned into a first-order system
x i ˙ = h i ( x i , x i , u i ) x i ˙ = v x i y i ˙ = v y i z i ˙ = v z i ψ i ˙ = v ψ i θ i ˙ = v θ i φ i ˙ = v φ i v x ˙ i = u i m ( sin ( ψ i ) sin ( φ i ) + cos ( ψ i ) sin ( θ i ) cos ( φ i ) ) v y ˙ i = u i m ( cos ( ψ i ) sin ( φ i ) + sin ( ψ i ) sin ( θ i ) cos ( φ i ) ) v z ˙ i = u i m cos ( θ i ) cos ( φ i ) g v ψ ˙ i = τ ψ i v θ ˙ i = τ θ i v φ ˙ i = τ φ i ,
where x = [ x , y , z , ψ , θ , φ , v x , v y , v z , v ψ , v θ , v φ ] T R 12 is the state with velocities v , and  u = [ u , τ ψ , τ θ , τ φ ] T R 4 is the control.
For the ith UAV, we consider the cost function of the following form
J i x i , x i , u i = 0 T L i x i , u i + F i x i , x i d t + G i x i T ,
where L i is a running cost incurred by the ith UAV based solely on its actions, F i is a running cost incurred by the ith UAV based on its interactions with the rest of the swarm, and  G i is a terminal cost incurred by the ith UAV based on its final state.
The running cost L i is given by
L i x i , u i = c 1 u i ( x i , t ) 2 ,
where c 1 is a constant. The running cost L i denotes the control effort implemented by the ith UAV. The terminal cost G i is given by
G i x i T = c 2 x i T x 0 2 ,
where c 2 is a constant, x i T is the final state of the ith UAV, and x 0 is the target state on which we want the UAVs to reach the objective. The terminal cost G i denotes the distance between UAV i’s target state and the desired state. The interaction cost F i is given by
F i x i , x i = l 1 F i 1 x i , x i , t + l 2 F i 2 x i , x i , t + l 3 F i 3 x i , x i , t ,
where l 1 , l 2 , l 3 are constants, F i 1 x i , x i , t is UAV i’s formation cost,
F i 1 x i , x i , t = 1 N i = 1 N 1 N j = 1 N L ^ ( x i , x i , t ) L ^ e ( x ^ j , x ^ j , t ) F 2 ,
F i 2 x i , x i , t is UAV i’s obstacle avoidance cost,
F i 2 x i , x i , t = 1 N i = 1 N k = 1 K γ o b s , k 1 Q k x i , t if x i Ω o b s , t r n 0 otherwise ,
F i 3 x i , x i , t is UAV i’s collision avoidance cost,
F i 3 x i , x i , t = 1 N j i N 1 E 1 2 x i ( t ) x i ( t ) e 0 ,
1 A ( ξ ) = 1 if ξ A 0 otherwise ,
where 1 means the indicator function, e 0 is the safe distance between UAVs, E = d i a g ( 1 , 1 , 1 / c ) transforms Euclidean distance into ellipsoidal distance. The interaction cost F i denotes the sum of formation maintenance and trajectory collision loss about UAV i.
In summary, the optimal control problem faced by UAV i is given by
inf u i U i J i x i , x i , u i s . t . d x i = h i ( x i , x i , u i ) d t + σ d ω i ( t ) .
To this end, the cooperative control of a large number of UAVs in complex environments is formulated as a noncooperative differential game. Therefore, this is an N-player noncooperative game whose well-known solution is the Nash equilibrium (NE), i.e., the control decisions under which no UAV can unilaterally decrease its cost [22].

3.2. Mean-Field Game Control Formulation

As the UAV-swarm number N increases, the complexity of solving the differential game in (21) will increase significantly. Mean-field games (MFGs) are a class of problems that encode large populations of interacting agents into systems of coupled partial differential equations, which overcomes the difficulties of large-scale and information sharing. For the current UAV, the neighborhood interaction of formation and collision avoidance, and the environment interaction of obstacle avoidance will cause the UAV to need a great amount of communication resources and computing resources. Traditional optimization and control methods need to separately deal with the increasing interactions, which leads to the problem of dimensionality explosion. Therefore, we reformulate the large-scale UAVs optimal state control problem in complex scenarios as a mean-field game control (MFGC) problem. Under the framework of MFGC, a generic agent only react to the collective behaviors (mean-field) of all agents instead of the behavior of each agent, which greatly reduces the amount of communication and computation. Now, we can drop the index i since agents are indistinguishable in MFG. Let ρ ( x , t ) denote the probability of state x at time t; then, the cost functional (14) is now transformed into
J x , ρ , u = 0 T Ω L x , u ρ ( x , t ) d x + F x , ρ ( x , t ) d t + G ρ ( · , T ) .
Meanwhile, the state dynamics in (11) are transformed into
d x = h ( x ( t ) , ρ ( x , t ) , u ( x , t ) ) d t + σ d ω ( t ) .
According to Ito’s lemma [23], (23) can be represented in terms of the mean field ρ ( x , t ) and then will be equivalent to the Fokker–Planck equation given by
t ρ σ 2 2 Δ ρ + · ( ρ h ) = 0 .
with cost functional (22) and the Fokker–Planck equation in (24), the high-dimensional MFG which describes the complex-scenario cooperative control of a large number of UAVs is summarized as
inf ρ , u J x ( t ) , ρ ( x , t ) , u ( x , t ) s . t . t ρ σ 2 2 Δ ρ + · ( ρ h ) = 0 ρ ( x , 0 ) = ρ 0 ( x ) ,
where ρ 0 ( x ) is the initial probability distribution of the UAV swarm’s states. To this end, the state control for a large number of UAVs is formulated as a high-dimensional MFG. The agents forecast a distribution of the population { ρ ( · , t ) } t = 0 T and aim at minimizing their cost. Therefore, at a Nash equilibrium, we have that, for every x R n ,
J x , ρ , u ^ J x , ρ , u , u U ,
where u ^ is the equilibrium strategy of an agent at state x . Here, we assume that agents are small, and their unilateral actions do not alter the density ρ [14]. With finite UAVs, it yields an MF approximation that achieves the ϵ -NE [10,22].

3.3. GAN-Based Algorithm for Complex-Scenario MFGs

In this section, we propose a generative-adversarial-network (GAN)-based approach to solving the high-dimensional MFG in (25). Inspired by Wasserstein GANs [24], APAC-Net [15,25], we use the variational primal–dual structure of MFG and phrase (25) as a convex–concave saddle-point problem. Then, we propose a GAN-based algorithm to solve the complex-scenario MFG in (25).
Now, we show the underlying primal–dual structure of the complex-scenario MFG and derive the convex–concave saddle-point problem equivalent to (25). Denote ϕ as the Lagrange multiplier, we can put the differential constraint in (24) (Fokker-Planck equation) into the cost function in (22) to obtain the following extended cost function
sup ϕ inf ρ , u 0 T Ω ρ ( x , t ) L x , u ( x , t ) d x + F ρ ( · , t ) d t + G ρ ( · , T ) 0 T Ω ϕ ( x , t ) t ρ σ 2 2 Δ ρ + · ( ρ ( x , t ) h ( x , t ) ) d x d t .
Minimizing concerning u to get the Hamiltonian via H ( x , p ) = inf u { p h + L ( x , u ) } and integrating by parts, we can rewrite (27) as
inf ρ sup ϕ 0 T Ω t ϕ + σ 2 2 Δ ϕ + H ( x , ϕ ) ρ ( x , t ) d x + F ρ ( · , t ) d t + Ω ϕ ( x , 0 ) ρ 0 ( x ) d x Ω ϕ ( x , T ) ρ ( x , T ) d x + G ( ρ ( · , T ) ) .
The Formular (28) is the cornerstone of our algorithm.
We solve (28) by training a GAN-like neural network. Although the idea is inspired by Wasserstein GANs [24] and APAC-Net [15,25], the loss function of our algorithm considers the formation similarity F 1 and dense obstacle avoidance F 2 , which provides greater flexibility for large-scale agents maneuvering; details are shown in Algorithm 1. We show the structure and training process of our GAN-based neural network in Figure 1.
Algorithm 1 GAN-based algorithm for complex-scenario MFGs
Require: σ diffusion parameter, H Hamiltonian, g terminal cost, f interaction term.
Require: Initialize neural networks N ω and N θ , batch size B.
Require: Set ϕ ω and G θ as in (29).
while not converged do
         train  ϕ ω :
         Sample batch z b , t b b = 1 B where z b ρ 0 and t b Unif ( 0 , T )
         Obtaining generated data x b , t b b = 1 B , x b G θ z b , t b .
         Update discriminator parameters ω to minimize total = 0 + t + HJB
                   ω ω η 1 total ( ω )
         train  G θ :
         Sample batch z b , t b b = 1 B where z b ρ 0 and t b Unif ( 0 , T )
         Update generator parameters θ to minimize ζ t
                   θ θ η 2 ζ t ( θ )
end while
First, we initialize the neural networks N ω ( x , t ) and N θ ( z , t ) , then set
ϕ ω ( x , t ) = ( 1 t ) N ω ( x , t ) + t g ( x ) , G θ ( z , t ) = ( 1 t ) z + t N θ ( z , t ) ,
where z ρ 0 are samples drawn from the initial distribution. The formulation of ϕ ω and G θ in (29) automatically satisfy the terminal and initial condition, respectively. Moreover, our algorithm encodes the underlying structure of complex-scenario MFGs via (28) and (29), which absolves the neural networks learning for the entire solution of the MFG from scratch.
Our approach for training neural networks includes parallel alternately training G θ (the state density distribution) and ϕ ω (the value function). In order to obtain the equilibrium of the complex-scenario MFG, we train ϕ ω by first sampling a batch z b b = 1 B from ρ 0 , and t b b = 1 B uniformly from [ 0 , T ] . Then, we compute the push-forward states x b = G θ z b , t b for b = 1 , , B . The main loss item for training the discriminator ϕ ω is
loss ϕ = 1 B b = 1 B ϕ ω x b , 0 0 + 1 B b = 1 B t ϕ ω x b , t b + σ 2 2 Δ ϕ ω x b , t b + H x ϕ ω x b , t b , x b t ,
where we can optionally add a regularization term
HJB = λ 1 B b = 1 B t ϕ ω x b , t b + σ 2 2 Δ ϕ ω x b , t b + H x ϕ ω x b , t b , x b + f x b , t b
to penalize deviations from the HJB equations. This extra regularization term has also been found effective in, e.g., Wasserstein GANs. Finally, we backpropagate the total loss to update the weights of the discriminator ϕ ω . To train the generator, we again sample z b b = 1 B and t b b = 1 B as before. The loss of the generator is given by
loss G = 1 B b = 1 B t ϕ ω G θ z b , t b , t b + σ 2 2 Δ ϕ ω G θ z b , t b , t b + H x ϕ ω G θ z b , t b , t b , x b + f G θ z b , t b , t b ζ t .
At last, we backpropagate this loss to update the weights of G θ . In conclusion, in each time slot t [ 0 , T ] , the neural networks will be trained. The generator G θ will generate the state distribution at time t and the discriminator ϕ ω will get the result of the value function at time t.

4. Simulation Results

In this section, to verify the effectiveness and robustness of our method, we conduct a series of simulation experiments of distributed aerial large-scale UAVs. To demonstrate the competitiveness of our method, we compare it against baseline methods regarding their performances at last.

4.1. Simulation Parameters

For the model hyperparameters, we set c 1 = 0.5 (the weight of the control effort in (15)), c 2 = 5 (the weight of the terminal cost in (16)), and l 1 = 5 , l 2 = 10 , l 3 = 5 (the weights of the interaction cost in (17)). For the neural networks, there are three linear hidden layers with 100 hidden units per layer in both networks. Residual neural networks (ResNet) are used for both networks, with a skip connection weight of 0.5 . Tanh activation function is used in ϕ ω while ReLU activation function is used in G θ . We choose ADAM as the optimizer with β = ( 0.5 , 0.9 ) , η 1 = 4 × 10 4 (the learning rate for ϕ ω ), η 2 = 1 × 10 4 (the learning rate for G θ ), weight decay of 10 4 for both networks, batch size 25, and λ = 1 (the weight of the HJB regularization term in (31)).

4.2. Formation Performance of Large-Scale UAVs

To validate the feasibility and robustness of our method for large-scale UAVs formation, we simulated twenty-five drones flying in desired formations from the bottom left side to the top right side in the 3-D scene, as shown in Figure 2. We experimented with two forms of formations—spiral formation and wave formation, which could confirm the generality of our approach. In Figure 2a, we set the initial points of the drones as ( 2 c o s ( 2 π i 25 ) , 2 s i n ( 2 π i 25 ) + 18 , 5 i 24 10 ) , i = 0 , 1 , . . . , 24 ; the target points of the drones are ( 2 c o s ( 2 π i 25 ) , 2 s i n ( 2 π i 25 ) 18 , 5 i 24 + 5 ) , i = 0 , 1 , . . . , 24 . In Figure 2b, the initial points of the drones are ( 20 i 25 10 , s i n ( 20 i 25 10 ) + 18 , 5 i 24 10 ) ) , i = 0 , 1 , . . . , 24 ; the target points of the drones are ( 20 i 25 10 , s i n ( 20 i 25 10 ) 18 , 5 i 24 + 5 ) ) , i = 0 , 1 , . . . , 24 .
The test results are shown in Figure 3, which demonstrates that our method can maintain the formation of large-scale swarms in 3-D environments. To certify the generality of our approach in large-scale formations, we design two forms of formations consisting of twenty-five quadrotors—spiral and wave formations. As depicted in Figure 3a,b, the x o y -plane projections illustrate the shape contour of the formation maintenance, which means that the swarm maintains the desired formation well during the flight.
The convergence of our proposed MFG control algorithm and the effectiveness and stability of formation control under different forms of formations are shown in Figure 4. In Figure 4a, we plot the HJB residual errors, i.e., HJB in Algorithm 1, which shows the convergence of MFGC. Without an efficient strategy control, the HJB residuals under different formations are relatively high. HJB residuals drop fast after we apply a series of controls. After around 5 × 10 4 iterations, the error curves tend to be stable when we obtain an optimal control for UAVs. In Figure 4b, we plot the formation loss. Without a proper design of the formation cost term, there is no effective formation control, and the formation loss under different formations is relatively high. Formation loss drops fast after we apply our formation cost term. After around 1 × 10 5 iterations, the error curves tend to be stable when we obtain an optimal formation control for UAVs.

4.3. Effect of Volatility Term σ on Formation

We investigate the effect of the volatility term σ on the behavior of the MFGC solutions—the executed trajectories for the formation flight of large-scale UAVs. In Figure 5, we show the solutions for MFGCs using σ = 0 , 2 × 10 1 and 10 × 10 1 . As σ increases, the density of UAVs widens along the paths, and the desired formation maintenance of UAVs decreases due to the added diffusion term in the MFG control equations in (25). From Table 1, it can be seen that larger volatility σ corresponds to greater formation cost F 1 , but the collision avoidance cost F 3 is almost invariant. These results are consistent with those in Figure 5.

4.4. Performance of Dense Obstacle Avoidance for Large-Scale UAVs Formation Flying

To verify the effectiveness of our method with large-scale UAVs formation flying through an obstacle-rich area, we design a spiral formation consisting of twenty-five quadrotors. A packed area of nine cuboid obstacles is set up in the simulation. As depicted in Figure 6, the swarm successfully avoids the obstacles and the desired formation is well preserved during the flight. Under our MFG control, the formation similarity error is steadily close to 0 as shown in Figure 7a; the executed trajectories are zero-collision, which can be seen from Figure 7b,c.

4.5. Comparison with Baselines

In the last part of the simulation results, we verify the superiority of our method by comparing it to some typical baseline methods in Table 2. From Table 2, it can be seen that our approach simplifies large-scale communication and handles the most complex application scenarios. For more details of these baseline methods, please refer to the related documents [4,7,9,13], etc.

5. Conclusions

In this paper, we propose a large-scale agent trajectory optimization method capable of navigating large-scale swarms in formations while avoiding dense obstacles. First, two types of differentiable mean-field terms are developed, where the overall similarity distance between large-scale 3-D formations and the potential energy value of dense 3-D obstacles are quantified respectively. Second, we embed these two terms into a designed mean-field game control framework that simultaneously satisfies the dynamic constraints and minimizes energy cost, formation similarity error, and collision penalty. This framework solves the communication and computing difficulties caused by complex scenarios of large-scale multiagent systems and formulates the trade-offs between formation and obstacle avoidance in large-scale contexts. Finally, the solid performance of our method in simulations of the formation and dense obstacle avoidance for large-scale UAVs validates its practicality and efficiency. The comparison with baseline methods shows the advanced nature of our method. In the future, we will consider the application and adaption of this mean-field game control framework in more complex scenarios of multiagent systems, such as complex communication conditions (time-varying, partial rejection) and dense mixed obstacles (static, dynamic).

Author Contributions

Conceptualization, G.W. and Z.L.; methodology, G.W. and W.Y.; software, G.W.; validation, W.Y. and X.Z.; formal analysis, G.W.; investigation, Z.L.; writing—original draft preparation, G.W. and Z.L.; writing—review and editing, W.Y. and X.Z.; visualization, G.W.; supervision, W.Y. and X.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Science and Technology Innovation 2030-Key Project under Grant 2020AAA0108200.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We thank Zhiming Zheng for his fruitful discussions, valuable opinions, and guidance.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CPSsCyberphysical Systems
MFMean Field
MFGMean-Field Game
MFGCMean-Field Game Control
2-DTwo-Dimensional
3-DThree-Dimensional
UAVUnmanned Aerial Vehicle
APFArtificial Potential Field
GANsGenerative Adversarial Neural Networks
CA-NetCoupled Alternating Neural Network
HJBHamilton–Jacobi–Bellman (partial differential equation)

References

  1. Lin, X.; Su, G.; Chen, B.; Wang, H.; Dai, M. Striking a Balance Between System Throughput and Energy Efficiency for UAV-IoT Systems. IEEE Internet Things J. 2019, 6, 10519–10533. [Google Scholar] [CrossRef]
  2. Zhang, J.; Xu, W.; Gao, H.; Pan, M.; Han, Z.; Zhang, P. Codebook-Based Beam Tracking for Conformal Array-Enabled UAV mmWave Networks. IEEE Internet Things J. 2021, 8, 244–261. [Google Scholar] [CrossRef]
  3. Zhang, J.; Yan, J.; Zhang, P.; Kong, X. Collision Avoidance in Fixed-Wing UAV Formation Flight Based on a Consensus Control Algorithm. IEEE Access 2018, 6, 43672–43682. [Google Scholar] [CrossRef]
  4. Zhang, J.; Yan, J.; Zhang, P. Fixed-Wing UAV Formation Control Design With Collision Avoidance Based on an Improved Artificial Potential Field. IEEE Access 2018, 6, 78342–78351. [Google Scholar] [CrossRef]
  5. Shao, S.K.; Peng, Y.; He, C.L.; Du, Y. Efficient Path Planning for UAV Formation via Comprehensively Improved Particle Swarm Optimization. ISA Trans. 2020, 97, 415–430. [Google Scholar] [CrossRef] [PubMed]
  6. Wu, E.; Sun, Y.; Huang, J.; Zhang, C.; Li, Z. Multi UAV Cluster Control Method Based on Virtual Core in Improved Artificial Potential Field. IEEE Access 2020, 8, 131647–131661. [Google Scholar] [CrossRef]
  7. Quan, L.; Yin, L.J.; Xu, C.; Gao, F. Distributed Swarm Trajectory Optimization for Formation Flight in Dense Environments. In Proceedings of the IEEE International Conference on Robotics and Automation, Philadelphia, PA, USA, 23–27 May 2022. [Google Scholar]
  8. Obstacle Avoidance of Resilient UAV Swarm Formation with Active Sensing System in the Dense Environment. Available online: https://arxiv.org/abs/2202.13381 (accessed on 27 February 2022).
  9. Kim, H.; Park, J.; Bennis, M.; Kim, S.L. Massive UAV-to-Ground Communication and its Stable Movement Control: A Mean-Field Approach. In Proceedings of the IEEE 19th International Workshop on Signal Processing Advances in Wireless Communications, Kalamata, Greece, 25–28 June 2018. [Google Scholar]
  10. Shiri, H.; Park, J.; Bennis, M. Communication-Efficient Massive UAV Online Path Control: Federated Learning Meets Mean-Field Game Theory. IEEE Trans. Commun. 2020, 68, 6840–6857. [Google Scholar] [CrossRef]
  11. Chen, D.; Qi, Q.; Zhuang, Z.; Wang, J.; Liao, J.; Han, Z. Mean Field Deep Reinforcement Learning for Fair and Efficient UAV Control. IEEE Internet Things J. 2021, 8, 813–828. [Google Scholar] [CrossRef]
  12. Xu, W.; Xiang, L.; Zhang, T.; Pan, M.; Han, Z. Cooperative Control of Physical Collision and Transmission Power for UAV Swarm: A Dual-Fields Enabled Approach. IEEE Internet Things J. 2022, 9, 2390–2403. [Google Scholar] [CrossRef]
  13. Gao, H.; Lee, W.J.; Kang, Y.H.; Li, W.C.; Han, Z.; Osher, S.; Poor, V. Energy-Efficient Velocity Control for Massive Numbers of UAVs: A Mean Field Game Approach. IEEE Trans. Veh. Technol. 2022, 71, 6266–6278. [Google Scholar] [CrossRef]
  14. Ruthotto, L.; Osher, S.J.; Li, W.; Nurbekyan, L.; Fung, S.W. A Machine Learning Framework for Solving High-Dimensional Mean Field Game and Mean Field Control Problems. Proc. Natl. Acad. Sci. USA 2020, 117, 9183–9193. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Lin, A.T.; Fung, S.W.; Li, W.C.; Nurbekyan, L.; Osher, S.J. Alternating the Population and Control Neural Networks to Solve High-Dimensional Stochastic Mean-Field Games. Proc. Natl. Acad. Sci. USA 2021, 118, e2024713118. [Google Scholar] [CrossRef] [PubMed]
  16. Goodfellow, I.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; Bengio, Y. Generative Adversarial Nets. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 8–13 December 2014; pp. 2672–2680. [Google Scholar]
  17. Wang, G.F.; Yao, W.; Zhang, X.; Niu, Z.J. Coupled Alternating Neural Networks for Solving Multi-Population High-Dimensional Mean-Field Games with Stochasticity. IEEE Trans. Cybern. 2021, submitted.
  18. Tantardini, M.; Ieva, F.; Tajoli, L.; Piccardi, C. Comparing Methods for Comparing Networks. Sci. Rep. 2019, 9, 17557. [Google Scholar] [CrossRef] [PubMed]
  19. Chang, K.; Xia, Y.; Huang, K. UAV Formation Control Design with Obstacle Avoidance in Dynamic Three-dimensional Environment. SpringerPlus 2016, 5, 1124. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  20. Onken, D.; Nurbekyan, L.; Li, X.J.; Fung, S.W.; Osher, S.; Ruthotto, L. A Neural Network Approach for High-Dimensional Optimal Control. arXiv 2022, arXiv:2104.03270v1. [Google Scholar]
  21. García Carrillo, L.R.; Dzul López, A.E.; Lozano, R.; Pégard, C. Quad Rotorcraft Control; Springer: London, UK, 2013; pp. 23–34. [Google Scholar]
  22. Lasry, J.M.; Lions, P.L. Mean field games. Jpn. J. Math. 2007, 2, 229–260. [Google Scholar] [CrossRef] [Green Version]
  23. Schulte, J.M. Adjoint Methods for Hamilton-Jacobi-Bellman Equations. Ph.D. Thesis, University of Munster, Munster, Germany, November 2010. [Google Scholar]
  24. Arjovsky, M.; Chintala, S.; Bottou, L. Wasserstein Generative Adversarial Networks. In Proceedings of the Machine Learning Research, International Convention Centre, Sydney, Australia, 6–11 August 2017; Volume 70, pp. 214–223. [Google Scholar]
  25. Gao, H.; Lin, A.; Banez, R.A.; Li, W.C.; Han, Z.; Osher, S.; Poor, H.V. Belief and Opinion Evolution in Social Networks: A High-Dimensional Mean Field Game Approach, In Proceedings of IEEE International Conference on Communications, Montreal, QC, Canada, 14–23 June 2021.
Figure 1. Visualization of the structure and training process of our GAN-based neural network. Its training process is divided into two coupled alternating training parts—generator and discriminator.
Figure 1. Visualization of the structure and training process of our GAN-based neural network. Its training process is divided into two coupled alternating training parts—generator and discriminator.
Sensors 22 05437 g001
Figure 2. A large-scale desired formation consisting of twenty-five quadrotors traverses a 3-D environment from the bottom left side to the top right side.
Figure 2. A large-scale desired formation consisting of twenty-five quadrotors traverses a 3-D environment from the bottom left side to the top right side.
Sensors 22 05437 g002
Figure 3. The visualization of the executed trajectories for the formation flight of large-scale UAVs. The x o y -plane projections represent the outline of the shape.
Figure 3. The visualization of the executed trajectories for the formation flight of large-scale UAVs. The x o y -plane projections represent the outline of the shape.
Sensors 22 05437 g003
Figure 4. Illustration of MFG convergence and formation stability.
Figure 4. Illustration of MFG convergence and formation stability.
Sensors 22 05437 g004
Figure 5. Comparison of the executed trajectories for the formation flight of large-scale UAVs about volatility parameter σ = 0 , 2 × 10 1 and 10 × 10 1 .
Figure 5. Comparison of the executed trajectories for the formation flight of large-scale UAVs about volatility parameter σ = 0 , 2 × 10 1 and 10 × 10 1 .
Sensors 22 05437 g005
Figure 6. The visualization of the executed trajectories for large-scale UAVs formation flying through an obstacle-rich area. (a) Full view of the trajectories. (b) x o y -plane projection trajectories.
Figure 6. The visualization of the executed trajectories for large-scale UAVs formation flying through an obstacle-rich area. (a) Full view of the trajectories. (b) x o y -plane projection trajectories.
Sensors 22 05437 g006
Figure 7. Illustration of the performance of interaction terms for MFG control ( F 1 , F 2 , F 3 ). (a) Formation similarity error. (b) Minimum distance between UAVs and obstacles. (c) Minimum distance between UAVs.
Figure 7. Illustration of the performance of interaction terms for MFG control ( F 1 , F 2 , F 3 ). (a) Formation similarity error. (b) Minimum distance between UAVs and obstacles. (c) Minimum distance between UAVs.
Sensors 22 05437 g007
Table 1. Comparison with interaction costs.
Table 1. Comparison with interaction costs.
Volatility Parameter σ Formation Cost F 1 Collision Avoidance Cost F 3
0 1.41 × 10 3 6.35 × 10 2
2 × 10 1 6.34 × 10 2 6.34 × 10 2
10 × 10 1 4.30 × 10 1 6.14 × 10 2
Table 2. Comparison with baseline methods.
Table 2. Comparison with baseline methods.
MethodSceneScale of UAVsScene ComplexityCommunication
 [4]Formation flight and obstacle avoidanceSmall0.67 1 O ( N )  2
[9]Cluster flightLarge0.5 O ( 1 )
[13]Cluster flight and obstacle avoidanceLarge0.67 O ( 1 )
[7]Formation flight and dense obstacle avoidanceSmall0.83 O ( N )
OursFormation flight and dense obstacle avoidanceLarge1 O ( 1 )
1 The measurement method of scene complexity is as follows: here it is a scoring system, [cluster flight, formation flight] = [1′, 2′]; [obstacle avoidance, dense obstacle avoidance] = [1′, 2′]; [small, large] = [1′, 2′]. We accumulate the scores for each literature experiment scene according to each item and finally normalize them. 2 O () is infinitesimal of the same order.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, G.; Yao, W.; Zhang, X.; Li, Z. A Mean-Field Game Control for Large-Scale Swarm Formation Flight in Dense Environments. Sensors 2022, 22, 5437. https://doi.org/10.3390/s22145437

AMA Style

Wang G, Yao W, Zhang X, Li Z. A Mean-Field Game Control for Large-Scale Swarm Formation Flight in Dense Environments. Sensors. 2022; 22(14):5437. https://doi.org/10.3390/s22145437

Chicago/Turabian Style

Wang, Guofang, Wang Yao, Xiao Zhang, and Ziming Li. 2022. "A Mean-Field Game Control for Large-Scale Swarm Formation Flight in Dense Environments" Sensors 22, no. 14: 5437. https://doi.org/10.3390/s22145437

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop