A UAV swarm topology optimization method and system based on graph neural network

Deep learning of UAV cluster topology information is carried out through graph neural network and graph convolution layer, which solves the problem of slow response speed of UAV cluster communication topology optimization algorithm, achieves rapid optimization of UAV cluster communication topology, and improves Improve response speed and safety when encountering obstacles.

CN118413859BActive Publication Date: 2024-08-27成都流体动力创新中心
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410883108.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-27
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing UAV cluster communication topology optimization algorithm has a slow response speed during high-speed flight and cannot optimize the topology structure in real time. It is especially difficult to quickly avoid obstacles when a large UAV cluster encounters an obstacle.

Method used

Using a graph neural network-based method, deep learning is performed on UAV topology information through graph convolution layers, and the UAV's motion characteristics and specific input data are combined to quickly optimize the communication topology of the UAV cluster, including the computing nodes. The mean and variance are obtained, the normally distributed variables are obtained, the adjacency matrix is ​​randomly sampled and reconstructed, and the optimized topology is obtained by integerization.

Benefits of technology

It improves the response speed of UAV clusters when encountering obstacles, improves operational safety and the efficiency of obstacle avoidance formation construction, and achieves rapid topology optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413859B
    Figure CN118413859B
Patent Text Reader

Abstract

The present invention discloses a method and system for optimizing the topology of a drone cluster based on a graph neural network, and belongs to the technical field of drones. The method includes a coding step, calculating the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtaining normal distribution variables through the node mean and variance; randomly sampling the normally distributed variables to obtain a sampling variable matrix; restoring the sampling variable matrix to a real variable matrix; a decoding step, using the real variable matrix to obtain a reconstructed adjacency matrix; and integerizing the elements in the reconstructed adjacency matrix to obtain the optimized drone cluster topology structure adjacency matrix. The present invention gives play to the unique advantages of graph neural networks in learning topological graph information, and has a fast convergence speed, and can be actually deployed in the flight process of drone clusters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and in particular relates to a method and system for unmanned aerial vehicle cluster topology optimization based on graph neural network. Background Art

[0002] The communication topology of a drone swarm refers to the communication network structure established between multiple drones. In a drone swarm, each drone needs to communicate with each other for collaboration, coordination, and information exchange to complete a specific task or goal. The communication topology can describe the connection method, transmission path, information exchange method, etc. between drones, which helps to achieve collaborative work and intelligent decision-making between drones in the swarm. The design and optimization of the communication topology can improve the work efficiency and performance of the drone swarm.

[0003] The communication topology of a drone cluster changes rapidly during high-speed flight. Traditional path optimization algorithms (genetic algorithms, ant colony algorithms, brute force search algorithms, etc.) need to traverse the path, which results in slow convergence and response speed, and is unable to optimize the topology in real time.

[0004] For example, patent application CN110661566A discloses a drone cluster networking method and system using deep graph embedding, the method comprising: quantizing historical network data to obtain network snapshot data, performing data representation on the network snapshot data, and calculating the weights corresponding to the directed weighted graph according to the characteristics of the drone cluster; using a coding and decoding model to perform graph embedding on the historical network data, extracting the topological structure information of each node in the historical network data, and adapting the coding and decoding model to the directed weighted graph through an improved proximity similarity function; and performing individual local hierarchical networking on the drone cluster network according to the topological structure information.

[0005] For another example, patent application CN114326824A also discloses a topology control method for heterogeneous high-density hybrid drone swarms based on bionic algorithms. This method designs a new communication topology construction for different types of heterogeneous drone clusters. First, for the application scenario of heterogeneous high-density hybrid drone swarms, large / medium drones are used as key nodes, and high-density small drones use hierarchical different coupling modes around the key nodes to construct the formation; then the topology structure of the heterogeneous drone swarm is constructed; then the formation topology is optimized and adjusted in real time based on the bionic algorithm; finally, the obstacle avoidance formation topology real-time splitting and reconstruction technology is used to improve the obstacle avoidance control method.

[0006] Chinese patent application CN117784823A also discloses a network topology control method and system for large-scale drone clusters, including: initializing the drone topology network and obtaining flight information of drone network nodes; using flight information to estimate the dynamic topology path of adjacent nodes, and adaptively adjusting the communication network overhead based on the estimation results; calculating the lifespan of important nodes used to maintain the topology structure based on the flight information, adjusting the configuration of important nodes based on the lifespan, and rebuilding the topology network based on the adjustment results; and maintaining the rebuilt topology network.

[0007] However, the above obstacle avoidance methods all have defects such as slow response speed, especially when a large drone cluster encounters an obstacle, it is difficult to quickly achieve obstacle avoidance for the drone cluster. Summary of the invention

[0008] The purpose of the present invention is to provide a UAV cluster topology optimization method and system based on graph neural network, which can optimize the UAV cluster topology structure in real time.

[0009] In order to solve the above-mentioned technical problems, the present invention specifically adopts the following technical solutions: a UAV cluster topology optimization method based on graph neural network, comprising:

[0010] The coding step is to calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtain the normally distributed variables through the node mean and variance; randomly sample the normally distributed variables to obtain the sampling variable matrix; and restore the sampling variable matrix to the real variable matrix;

[0011] In the decoding step, the real variable matrix is ​​used to obtain the reconstructed adjacency matrix; and the elements in the reconstructed adjacency matrix are integerized to obtain the optimized adjacency matrix of the drone cluster topology structure.

[0012] As an improvement, the Pytorch library function is used to convert the format of the drone cluster communication topology graph to be optimized to obtain the adjacency matrix of the drone cluster topology structure.

[0013] As an improvement, the node feature matrix of the drone cluster includes a drone feature matrix and a cluster feature matrix; the attributes of the drone feature matrix include remaining energy consumption, sensor input, location information, and channel utilization; the attributes of the cluster feature matrix include current topological connections, mission requirements, and the presence or absence of faulty nodes.

[0014] As an improvement,

[0015] Using the formula:

[0016] ;

[0017] Calculate the remaining energy consumption of the drone node; where, For the serial number The remaining energy consumption of the node, E0 is the initial energy consumption, For drone nodes send Energy consumption per bit packet; For drone nodes take over Energy consumption per bit of data; They are the indicator variables for sending and receiving respectively. When the drone sends data , when receiving data ;

[0018] Using the formula:

[0019] ;

[0020] Calculate the energy consumption of the drone when forwarding and receiving; For drone nodes send Energy consumption per bit packet; is the number of bits in the data packet; For drone nodes take over Energy consumption per bit of data; Energy consumption for circuit operation; is the free space propagation loss coefficient; is the multipath fading propagation loss coefficient; For drones With drones The distance between Select the variable for the loss coefficient:

[0021] ;

[0022] in, is the distance threshold, ;

[0023] The sensor input includes self-positioning, temperature thermal imaging, distance and reflectivity to obstacles, and electromagnetic environment parameters.

[0024] As an improvement, using the formula:

[0025] ;

[0026] Calculate the mean of the node; where μ is the mean of the node, F is the node feature matrix, A is the adjacency matrix, GCN μ is the graph convolution layer for calculating the mean;

[0027] Using the formula:

[0028] ;

[0029] Calculate the variance of the node; where logσ is the logarithm of the variance, F is the node feature matrix, A is the adjacency matrix, GCN σ Graph convolutional layer for calculating variance;

[0030] Using the formula:

[0031] z i =N(μ i ,σ i 2 );

[0032] Calculates a normally distributed variable; where z i is the normal distribution variable of the node with sequence number i, μ i is the mean value of the node with sequence number i, σ i is the variance of the node with serial number i, and N is the symbol for normal distribution calculation.

[0033] As an improvement, using the formula:

[0034] ;

[0035] Calculate the real variable matrix; where Z is the real variable matrix, is the sampling variable matrix, μ is the mean, is the variance.

[0036] As an improvement, using the formula:

[0037] A * =Sigmoid(ZZ T );

[0038] Calculate the reconstructed adjacency matrix; where A * To reconstruct the adjacency matrix, Z is the real variable matrix, Z T is the transpose of the real variable matrix, and Sigmoid is the activation function.

[0039] As an improvement, use the loss function:

[0040] ;

[0041] Optimize; where Loss is the loss parameter and diff is the difference comparison; A t is the input adjacency matrix, A t+1 is the output adjacency matrix, Z is the real variable matrix, p is the real distribution probability, and E is the mathematical expectation.

[0042] As an improvement, the Networkx tool is used to visualize the UAV cluster topology to be optimized and the optimized UAV cluster topology, or / and to visualize the low-dimensional vectors in the encoding step.

[0043] As an improvement, a simulation platform was built to verify the optimized UAV cluster topology.

[0044] The present invention also provides a UAV cluster topology optimization system based on graph neural network, comprising:

[0045] An encoder is used to calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtain normally distributed variables through the node mean and variance; randomly sample the normally distributed variables to obtain a sampling variable matrix; and restore the sampling variable matrix to a real variable matrix;

[0046] The decoder is used to obtain the reconstructed adjacency matrix using the real variable matrix; and integerize the elements in the reconstructed adjacency matrix to obtain the optimized adjacency matrix of the drone cluster topology structure.

[0047] The present invention is beneficial in that:

[0048] In order to improve the obstacle avoidance speed of large-scale UAV clusters when encountering obstacles, the present invention, on the one hand, introduces a graph convolution layer to perform deep learning on the UAV topology information. On the other hand, it combines the learning characteristics of the graph convolution layer and the motion characteristics of large UAV clusters to selectively select a set of specific input data (i.e., UAV characteristics such as the remaining energy consumption, sensor input, location information, channel utilization, and cluster characteristics such as the current topological connection, mission requirements, and the presence or absence of faulty nodes), and completes the rapid optimization of the matrix structure around this set of specific input data.

[0049] In other words, the specific input data combination selected by the present invention can effectively coordinate with the learning characteristics of the graph convolutional layer and the motion characteristics of a large drone cluster, so that when encountering obstacles, an effective obstacle avoidance formation can be quickly constructed for the drone cluster, thereby improving the response speed of the drone cluster when encountering obstacles and improving the operation safety of the drone cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative labor.

[0051] Figure 1 It is a flow chart of the present invention.

[0052] Figure 2 It is a flow chart of simulation verification in the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 making creative work are within the scope of protection of the present invention.

[0054] Herein, suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings by themselves. Therefore, "module", "component" or "unit" can be used mixedly.

[0055] In this document, the terms "upper", "lower", "inner", "outer", "front", "back", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0056] In this document, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0057] Herein "and / or" includes any and all combinations of one or more of the associated listed items.

[0058] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.

[0059] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0060] In response to the above technical issues, such as Figure 1 As shown, the present invention provides a UAV cluster topology optimization method based on graph neural network, which inputs the communication topology structure to be optimized and the node feature matrix of the UAV cluster into the variational graph encoder, and outputs the optimized communication topology structure through learning and feature aggregation of node and edge connections. The specific steps include:

[0061] S1. Convert the format of the UAV cluster communication topology diagram to be optimized.

[0062] The drone cluster communication topology structure diagram belongs to graph data and cannot be directly input into the variational graph encoder, so the format needs to be converted. In this implementation, the Pytorch library function is used to convert and preprocess the graph data. After the Pytorch library function converts and preprocesses the graph data, the encoded representation of the graph data can be obtained, that is, the graph data is converted into a form suitable for neural network processing, including a node feature matrix and an adjacency matrix. The node feature matrix is ​​used to represent the initial features of each node (drone) in the graph. The adjacency matrix is ​​used to represent the connection relationship between nodes (drones) in the graph. In this way, the graph data can be input into the graph convolution layer (used to aggregate the information of neighbor nodes and update node features) for feature extraction and learning, thereby realizing deep learning processing and analysis of graph data. Through the format conversion and preprocessing of the Pytorch library function, a structured input suitable for processing graph data can be provided for the neural network, providing a basis for subsequent model training and optimization.

[0063] In this implementation, the drone cluster communication topology diagram is used through the Pytorch library function to obtain the adjacency matrix of the drone cluster topology structure and the node feature matrix of the drone cluster.

[0064] For a topological graph with n nodes (drones), the adjacency matrix is ​​an n×n matrix, where the element a[i][j] indicates whether there is an edge or weight between node i and node j.

[0065] The node feature matrix of the drone cluster includes a drone feature matrix and a cluster feature matrix; the attributes of the drone feature matrix include remaining energy consumption, sensor input, location information, channel utilization, etc.

[0066] More specifically, the formula is used in this embodiment:

[0067] ;

[0068] Calculate the remaining energy consumption of the drone node; where, For the serial number The remaining energy consumption of the node, E0 is the initial energy consumption, For drone nodes send Energy consumption per bit packet; For drone nodes take over Energy consumption per bit of data; They are the indicator variables for sending and receiving respectively. When the drone sends data , when receiving data ;

[0069] Using the formula:

[0070] ;

[0071] Calculate the energy consumption of the drone when forwarding and receiving; For drone nodes send Energy consumption per bit packet; is the number of bits in the data packet; For drone nodes take over Energy consumption per bit of data; Energy consumption for circuit operation; is the free space propagation loss coefficient; is the multipath fading propagation loss coefficient; For drones With drones The distance between Select the variable for the loss coefficient:

[0072] ;

[0073] in, is the distance threshold, ;

[0074] The sensor input refers to the environmental parameters of the sensors carried by the drone, including its own positioning, temperature thermal imaging, distance and reflectivity from obstacles, electromagnetic environment parameters, etc.

[0075] The attributes of the cluster feature matrix include current topological connections, task requirements, presence or absence of faulty nodes, etc.

[0076] Among them, the expression of the current topological connection is different from that of the adjacency matrix. In the cluster feature matrix, the current topological connection can be classified into many types such as centralized, hierarchical, distributed, etc., and each structural form is numbered and quantified as the characteristics of the topological connection as an input.

[0077] The same goes for mission requirements. Specific missions such as detection, cruise, strike, dispersed flight, etc. are also digitally encoded as another feature input. The same applies to the presence or absence of faulty nodes.

[0078] Based on the above features, create a The node feature matrix F = , where N is the number of drone nodes, W is the number of features, is the UAV feature matrix, is the cluster feature matrix.

[0079] S2. Encoding step.

[0080] The graph neural network used in this embodiment is a variational graph encoder, which includes an encoder and a decoder. After the adjacency matrix of the drone cluster topology structure and the node feature matrix of the drone cluster are input into the variational graph encoder, the following steps can be performed:

[0081] S21. Calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster.

[0082] Specifically, using the formula:

[0083] ;

[0084] Calculate the mean of the node; where μ is the mean of the node, F is the node feature matrix, A is the adjacency matrix, GCN μ is the graph convolution layer for calculating the mean;

[0085] Using the formula:

[0086] ;

[0087] Calculate the variance of the node; where logσ is the logarithm of the variance, F is the node feature matrix, A is the adjacency matrix, GCN σ Graph convolutional layer for computing variance.

[0088] S22. Obtain normal distribution variables through node mean and variance, specifically using the formula:

[0089] z i =N(μ i ,σ i 2 );

[0090] Calculates a normally distributed variable; where z i is the normal distribution variable of the node with sequence number i, μ i is the mean value of the node with sequence number i, σ i is the variance of the node with serial number i, and N is the symbol for normal distribution calculation.

[0091] S23. Randomly sample the normally distributed variables to obtain a sampling variable matrix.

[0092] In the variational graph encoder, by extracting the normal distribution variable z i Get the sampling variable matrix .

[0093] S24 restores the sampled variable matrix to the real variable matrix.

[0094] Since the final forward feedback optimization weight is required, the sampling cannot achieve gradient descent because it does not meet the requirements of linearization, so it is necessary to compress the samples to the standard normal distribution through the standardized normal distribution. Specifically, the formula is used in this step:

[0095] ;

[0096] Calculate the real variable matrix; where Z is the real variable matrix, is the sampling variable matrix, μ is the mean, is the variance.

[0097] S3, decoding step.

[0098] The graph neural network used in this embodiment is a variational graph encoder, which includes an encoder and a decoder. The specific steps of decoding by the variational graph encoder include:

[0099] S31. Use the real variable matrix to obtain the reconstructed adjacency matrix.

[0100] Specifically, in this step, A * =Sigmoid(ZZ T );

[0101] Calculate the reconstructed adjacency matrix; where A * To reconstruct the adjacency matrix, Z is the real variable matrix, Z T is the transpose of the real variable matrix, and Sigmoid is the activation function.

[0102] S32, and integerize the elements in the reconstructed adjacency matrix to obtain the optimized adjacency matrix of the drone cluster topology structure.

[0103] Reconstructed adjacency matrix Each element in is a decimal in [0,1], and needs to be converted into an integer A with only 0 or 1. t+1 That's it, A t+1 It is the adjacency matrix of the optimized drone cluster topology structure.

[0104] S4. Optimize the model.

[0105] In this embodiment, the difference between the output adjacency matrix and the original adjacency matrix is ​​measured by the cross entropy loss function. Specifically, the loss function is used:

[0106] ;

[0107] Optimize the model; Loss is the loss parameter, diff is the difference comparison; A t is the input adjacency matrix, A t+1 is the output adjacency matrix, Z is the real variable matrix, p is the real distribution probability, and E is the mathematical expectation.

[0108] In addition, in order to better train the model, the data set can be divided into training set, validation set and test set. The weight matrix of the model is automatically updated through training with the training set. Optimize hyperparameters by cross-validation to obtain The model with the best prediction effect is selected as the final model, and then tested and evaluated on the test set.

[0109] S5. Networkx visualization.

[0110] In this step, the cluster topology can be visualized by calling the Networkx tool in the Python library. This step mainly defines two visualization functions: 1. Visualize the topological structure of the drone cluster to be optimized and the optimized drone cluster topological structure; 2. Visualize the low-dimensional vector of the intermediate layer of the encoding step, that is, the graph convolution. Iterations can be set to display the changes in the output of the intermediate layer in each Epoch cycle.

[0111] S6. Verification of simulation platform operation.

[0112] like Figure 2 As shown in the figure, in this step, a simulation environment is built to establish a UAV feature model, and a cluster topology structure dataset is built with a cluster scale of more than 10. The trained model is applied offline for prediction. The measurement indicators include convergence time, energy consumption minimization index, and comparison with the optimal solution obtained by the traditional brute force search method.

[0113] In addition, the present invention also provides a UAV cluster topology optimization system based on graph neural network, comprising:

[0114] An encoder is used to calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtain normally distributed variables through the node mean and variance; randomly sample the normally distributed variables to obtain a sampling variable matrix; and restore the sampling variable matrix to a real variable matrix;

[0115] The decoder is used to obtain the reconstructed adjacency matrix using the real variable matrix; and integerize the elements in the reconstructed adjacency matrix to obtain the optimized adjacency matrix of the drone cluster topology structure.

[0116] The obstacle avoidance optimization method proposed in the present invention can effectively reduce the impact of signal interference on the cluster, such as GPS interference. In some flight scenarios, when an external device sends a certain power of directional radio frequency to a drone, so that the drone equipped with a GPS positioning system cannot obtain accurate coordinate data, the cluster can be trained to quickly change its topology structure, such as a distributed structure, or only a few drones in the cluster transmit signals, and the rest of the members receive the transmitted signals, which is equivalent to changing the topology structure to a structure similar to a centralized and hierarchical structure, reducing the power and frequency of the cluster's transmitted signals.

[0117] The present invention converts the format of the drone cluster topology structure diagram to obtain the adjacency matrix and the node feature matrix, and the node feature matrix comprehensively selects the specific input combination for the drone feature matrix and the cluster feature matrix. Subsequently, the above adjacency matrix and node feature matrix are input into the variational graph autoencoder, and the learning and feature aggregation of the node and edge connections under the specific input combination are performed by encoding, and the optimized adjacency matrix is ​​output by decoding. The present invention gives play to the unique advantages of graph neural networks in learning topological graph information, and through the coordination of specific input combinations and topological graph information learning, it can not only achieve the effect of fast convergence speed, but also ensure the accuracy and reliability of the optimization results. Therefore, it can be actually deployed in the flight process of the drone cluster to optimize the communication topology structure of the drone cluster in real time.

[0118] The present invention selects the adjacency matrix, the UAV feature matrix and the cluster feature matrix as the input of the variational graph autoencoder, which effectively combines global key information, such as topological connections, task requirements, fault nodes, etc., so that subsequent model training can obtain richer representations during the learning process, improves the model's ability to understand the graph structure, and thus improves the accuracy of the prediction effect.

[0119] In addition, the present invention also uses the Networkx tool to realize the visualization of the cluster topology diagram and the visualization of the low-dimensional vectors in the encoding process, making the whole process more intuitive.

[0120] The present invention also builds a simulation environment to verify the results of several models, so as to select the optimal model.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a computer terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0123] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A UAV swarm topology optimization method based on graph neural network, Features: include: The coding step is to calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtain the normal distribution variables through the node mean and variance; randomly sample the normal distribution variables to obtain the sampling variable matrix; restore the sampling variable matrix to the real variable matrix; the node feature matrix of the drone cluster includes the drone feature matrix and the cluster feature matrix; the attributes of the drone feature matrix include residual energy consumption, sensor input, location information, and channel utilization; the attributes of the cluster feature matrix include current topological connection, mission requirements, and whether there are faulty nodes; In the decoding step, the real variable matrix is ​​used to obtain the reconstructed adjacency matrix; and the elements in the reconstructed adjacency matrix are integerized to obtain the optimized adjacency matrix of the drone cluster topology structure; Among them, the Pytorch library function is used to convert the format of the drone cluster communication topology structure diagram to be optimized to obtain the adjacency matrix of the drone cluster topology structure and the node feature matrix of the drone cluster; Among them, using the formula: ; Calculate the remaining energy consumption of the drone node; where, The serial number is The remaining energy consumption of the node, E 0 is the initial energy consumption, For drone nodes send Energy consumption per bit packet; For drone nodes take over Energy consumption per bit of data; They are the indicator variables for sending and receiving respectively. When the drone sends data , when receiving data ; Using the formula: ; Calculate the energy consumption of the drone when forwarding and receiving; For drone nodes send Energy consumption per bit packet; is the number of bits in the data packet; For drone nodes take over Energy consumption per bit of data; Energy consumption for circuit operation; is the free space propagation loss coefficient; is the multipath fading propagation loss coefficient; For drones With drones The distance between Select the variable for the loss coefficient: ; in, is the distance threshold, ; The sensor input includes self-positioning, temperature thermal imaging, distance and reflectivity to obstacles, and electromagnetic environment parameters; Among them, the loss function is used: ; Optimize; where Loss is the loss parameter and diff is the difference comparison; A t is the input adjacency matrix, A t+1 is the reconstructed adjacency matrix of the output, Z is the real variable matrix, p is the real distribution probability, and E is the mathematical expectation.

2. According to claim 1, a UAV cluster topology optimization method based on graph neural network, Features: Using the formula: ; Calculate the mean of the node; where μ is the mean of the node, F is the node feature matrix, A is the adjacency matrix, GCN μ is the graph convolution layer for calculating the mean; Using the formula: ; Calculate the variance of the node; where logσ is the logarithm of the variance, F is the node feature matrix, A is the adjacency matrix, GCN σ Graph convolutional layer for calculating variance; Using the formula: z i =N(μ i , s i 2 ); Calculates a normally distributed variable; where z i is the normal distribution variable of the node with sequence number i, μ i is the mean value of the node with sequence number i, σ i is the variance of the node with serial number i, and N is the symbol for normal distribution calculation.

3. According to the graph neural network-based UAV cluster topology optimization method of claim 1, Features: Using the formula: ; Calculate the real variable matrix; where Z is the real variable matrix, is the sampling variable matrix, μ is the mean, and σ is the variance.

4. According to claim 1, a UAV cluster topology optimization method based on graph neural network, Features: Using the formula: A * =Sigmoid(ZZ T ); Calculate the reconstructed adjacency matrix; where A * To reconstruct the adjacency matrix, Z is the real variable matrix, Z T is the transpose of the real variable matrix, and Sigmoid is the activation function.

5. According to claim 1, a UAV cluster topology optimization method based on graph neural network, Features: Use the Networkx tool to visualize the UAV swarm topology to be optimized and the optimized UAV swarm topology, or / and visualize the low-dimensional vectors in the encoding step.

6. According to claim 1, a UAV cluster topology optimization method based on graph neural network, Features: A simulation platform is built to verify the optimized drone cluster topology structure.

7. A UAV swarm topology optimization system based on graph neural network, Features: include: The encoder is used to calculate the adjacency matrix of the drone cluster topology structure to be optimized and the mean and variance of each node in the node feature matrix of the drone cluster, and obtain normally distributed variables through the node mean and variance; randomly sample the normally distributed variables to obtain a sampling variable matrix; restore the sampling variable matrix to a real variable matrix; the node feature matrix of the drone cluster includes a drone feature matrix and a cluster feature matrix; the attributes of the drone feature matrix include remaining energy consumption, sensor input, location information, and channel utilization; the attributes of the cluster feature matrix include current topological connections, mission requirements, and whether there are faulty nodes; A decoder is used to obtain a reconstructed adjacency matrix using the real variable matrix; and integerize the elements in the reconstructed adjacency matrix to obtain an optimized adjacency matrix of the drone cluster topology structure; Among them, the Pytorch library function is used to convert the format of the drone cluster communication topology structure diagram to be optimized to obtain the adjacency matrix of the drone cluster topology structure and the node feature matrix of the drone cluster; Among them, using the formula: ; Calculate the remaining energy consumption of the drone node; where, The serial number is The remaining energy consumption of the node, E 0 is the initial energy consumption, For drone nodes send Energy consumption per bit packet; For drone nodes take over Energy consumption per bit of data; They are the indicator variables for sending and receiving respectively. When the drone sends data , when receiving data ; Using the formula: ; Calculate the energy consumption of the drone when forwarding and receiving; For drone nodes send Energy consumption per bit packet; is the number of bits in the data packet; For drone nodes take over Energy consumption per bit of data; Energy consumption for circuit operation; is the free space propagation loss coefficient; is the multipath fading propagation loss coefficient; For drones With drones The distance between Select the variable for the loss coefficient: ; in, is the distance threshold, ; The sensor input includes self-positioning, temperature thermal imaging, distance and reflectivity to obstacles, and electromagnetic environment parameters; In the decoding step, the real variable matrix is ​​used to obtain the reconstructed adjacency matrix; and the elements in the reconstructed adjacency matrix are integerized to obtain the optimized adjacency matrix of the drone cluster topology structure; Among them, the loss function is used: ; Optimize; where Loss is the loss parameter and diff is the difference comparison; A t is the input adjacency matrix, A t+1 is the reconstructed adjacency matrix of the output, Z is the real variable matrix, p is the real distribution probability, and E is the mathematical expectation.

Citation Information

Patent Citations

  • Unmanned aerial vehicle cluster networking method and system adopting depth map embedding

    CN110661566A

  • Heterogeneous high-density hybrid unmanned aerial vehicle group topology control method based on bionic algorithm

    CN114326824A

  • Network topology control method and system for large-scale unmanned aerial vehicle cluster

    CN117784823A

  • Unmanned aerial vehicle cluster situation analysis method based on space-time diagram convolutional network and medium

    CN115494865A

  • Unmanned cluster system network security assessment method based on graph neural network

    CN115811478A