A method and device for intelligently generating network topology for task connectivity preservation

By deploying relay nodes of the multi-agent reinforcement learning model in the UAV cluster and making independent decisions on actions, the problem of relay node deployment delay in a highly dynamic background is solved, and the connectivity and performance of the UAV network are improved.

CN118400271BActive Publication Date: 2024-09-06BEIJING UNIV OF POSTS & TELECOMM
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In UAV clusters, existing technology is difficult to deploy relay nodes in a timely manner under a highly dynamic background, which affects the communication connectivity of the UAV network and cannot meet the needs of fast missions.

Method used

Using a multi-agent reinforcement learning model, by deploying a policy network on each relay node, it can make independent decision-making actions to avoid the delay of the central computing unit, and optimize the number of connected branches of the UAV network through a reward mechanism to ensure that the network Connectivity.

Benefits of technology

It achieves the timely deployment of relay nodes in UAV clusters, reduces the number of connected branches in the UAV network, and improves the overall connectivity and performance of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400271B
    Figure CN118400271B
Patent Text Reader

Abstract

The present invention provides a method and device for intelligently generating network topology for task connectivity maintenance, which relates to the technical field of communication. The method is a scheme for deploying all relay nodes based on a multi-agent reinforcement learning model. There is no need to set up a central computing unit in the drone network. By deploying a policy network on each relay node, each relay node can decide its own action based on its own state data. Therefore, the method avoids the time delay of unified calculation and policy transmission of the central computing unit, and effectively ensures the timeliness of relay node deployment in the drone cluster. In addition, the method sets the reward after all agents perform actions to be negatively correlated with the number of connected branches of the drone network in the next time slot. Therefore, the method can effectively reduce the number of connected branches of the drone network and ensure the connectivity of the drone network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communications, and in particular to a method and device for intelligently generating network topology oriented to task connectivity preservation. Background Art

[0002] Drone swarm networks have become a focus of global academic and industrial attention. In the process of performing actual tasks, some drones in a drone swarm may serve above different mission areas due to mission requirements. However, if the distance between these drones is too far, the communication connection will be lost, resulting in the inability to network between drones, which will dramatically affect the overall performance of the network. To overcome this challenge, recent academic research has focused on deploying additional nodes in drone swarms to build network connectivity. Specifically, the researchers first divided the drones in the drone swarm into two categories according to their characteristics: mission execution nodes MU and relay nodes RU. MU (that is, drone nodes that are dispersed because they need to serve above the mission area) do not focus on maintaining network performance. RU acts as a bridge to maintain the stability of the communication link. The deployment of RU is crucial to building an efficient drone network topology.

[0003] In the prior art, the following methods are usually used to deploy RUs: methods based on connected dominating sets, particle swarm algorithms, and neural network methods. However, most of the above algorithms require a central computing unit, which calculates the optimal location for the current deployment of RUs by obtaining the location of MUs in each time slot. Since it takes a certain amount of time to calculate and transmit the deployment strategy to each RU, there will be a technical problem of time lag in the deployment of RUs in a highly dynamic context. Summary of the invention

[0004] The purpose of the present invention is to provide a method and device for intelligently generating network topology for maintaining task connectivity, thereby ensuring the timeliness of relay node deployment in a drone cluster, reducing the number of connected branches of the drone network, and ensuring the connectivity of the drone network.

[0005] In a first aspect, the present invention provides a method for intelligently generating network topology for maintaining task connectivity, comprising: obtaining the position data of each drone node in a drone cluster in a current time slot; wherein the drone nodes include the following two categories: task execution nodes and relay nodes; determining the state data of a target relay node in the current time slot based on the position data; wherein the target relay node represents any relay node in the drone cluster; the state data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node; and using a target multi-agent reinforcement learning model to calculate the state data of all relay nodes in the current time slot. The state data is processed to obtain the velocity vector of each relay node; wherein, the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, and the policy network of the corresponding agent is deployed on each of the relay nodes, the state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the velocity vector of the corresponding relay node; the reward after all agents perform actions is negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster; based on the position data and velocity vectors of all relay nodes in the current time slot, the network topology of the drone network in the next time slot is determined.

[0006] In an optional embodiment, calculating the number of connected branches of the drone network in the next time slot includes the following steps: based on the position data of the first drone node and the second drone node in the next time slot, calculating the distance between the first drone node and the second drone node in the next time slot; wherein the first drone node and the second drone node represent any two drone nodes in the drone cluster; based on a preset communication power threshold and the distance between the first drone node and the second drone node in the next time slot, determining the adjacency relationship between the first drone node and the second drone node in the next time slot; based on the adjacency relationship between drone nodes in the drone cluster in the next time slot, determining the adjacency matrix and degree matrix of the drone network in the next time slot; wherein the i-th diagonal element in the degree matrix represents the number of neighbor nodes of the i-th drone node in the drone cluster; based on the adjacency matrix and the degree matrix, determining the Laplace matrix of the drone network in the next time slot; and taking the number of elements with eigenvalues ​​of 0 in the Laplace matrix as the number of connected branches of the drone network in the next time slot.

[0007] In an optional embodiment, based on a preset communication power threshold and the distance between the first drone node and the second drone node in the next time slot, determining the adjacency relationship between the first drone node and the second drone node in the next time slot includes: calculating the large-scale fading and small-scale fading in the communication channel between the first drone node and the second drone node in the next time slot based on the distance between the first drone node and the second drone node in the next time slot; obtaining the constant transmit power of the drone, the first constant antenna gain of the first drone node, and the second constant antenna gain of the second drone node; based on the constant transmit power, the first constant antenna gain, the second constant antenna gain, the large-scale fading and the small-scale fading, calculating the power sent by the second drone node and received by the first drone node in the next time slot; when it is determined that the power is greater than or equal to the preset communication power threshold, determining that the first drone node and the second drone node are adjacent in the next time slot; when it is determined that the power is less than the preset communication power threshold, determining that the first drone node and the second drone node are non-adjacent in the next time slot.

[0008] In an optional embodiment, the target multi-agent reinforcement learning model is a target actor network in a target actor-critic network, and the target actor network includes: multiple target policy networks; the method also includes: obtaining a training sample set; wherein the training sample set includes multiple training samples, each of which includes: the state of all agents in the current time slot, the actions of all agents in the current time slot, the rewards of all agents after performing actions, and the state of all agents in the next time slot; repeating the following steps until a preset number of iterations is reached to obtain the target actor-critic network: extracting a specified number of training samples from the training sample set to obtain batch samples; processing the batch samples using a first loss function to update the initial critic network in the initial actor-critic network based on the first loss function value, and processing the batch samples using a second loss function to sequentially update multiple initial policy networks in the initial actor-critic network based on the second loss function value; when it is determined that the number of updates of the critic network reaches the specified number, updating the network parameters of the target-critic network using the network parameters of the current critic network.

[0009] In an optional embodiment, the objective function used to train the initial actor-critic network is: ;in, Express expectations, , represents the state of the ith agent in time slot t, , represents the action of the ith agent in time slot t, Indicates the preset training duration. represents the reward discount factor, , Indicates that all agents in time slot t are Execute actions in state After the reward, represents the entropy learning rate, represents the total number of agents, , Indicates the policy network parameters Next, agent i is Take action in state probability.

[0010] In an optional implementation, both the critic network and the target-critic network adopt a double Q network; the first loss function is expressed as: ;in, represents the network parameters of the j-th critic network, represents the number of samples in the batch sample, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , It means that the j-th target-critic network targets all agents in Take action in state The evaluation results, Indicates the policy network parameters Next, agent i is Take action in state probability.

[0011] In an optional implementation, the second loss function is expressed as: ;in, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , represents the connection vector of the actions from the 1st agent to the i-1th agent in time slot t, Indicates the policy network parameters of the 1st agent to the i-1th agent that have completed the update, , represents the policy network parameters of the i-th agent currently being updated, , represents the connection vector of the action from the i+1th agent to the nth agent in time slot t, Represents the policy network parameters of the i+1th agent to the nth agent that have not yet been updated.

[0012] In a second aspect, the present invention provides a network topology intelligent generation device for task connectivity maintenance, comprising: a first acquisition module, used to obtain the position data of each drone node in the drone cluster in the current time slot; wherein the drone nodes include the following two categories: task execution nodes and relay nodes; a first determination module, used to determine the state data of the target relay node in the current time slot based on the position data; wherein the target relay node represents any relay node in the drone cluster; the state data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node; a processing module, used to use the target multi-agent reinforcement learning model to process all relay nodes. The state data of the point in the current time slot is processed to obtain the speed vector of each relay node; wherein, the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, and the policy network of the corresponding agent is deployed on each of the relay nodes, the state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the speed vector of the corresponding relay node; the reward after all agents perform the action is negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster; the second determination module is used to determine the network topology of the drone network in the next time slot based on the position data and speed vector of all relay nodes in the current time slot.

[0013] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method for intelligently generating network topology for task connectivity preservation described in any one of the aforementioned embodiments are implemented.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the task-oriented connectivity-preserving network topology intelligent generation method described in any one of the aforementioned embodiments.

[0015] The present invention provides a method for intelligent generation of network topology for task connectivity maintenance. The method is a scheme for deploying all relay nodes based on a multi-agent reinforcement learning model. There is no need to set up a central computing unit in the drone network. By deploying a policy network on each relay node, each relay node can decide its own action based on its own state data. Therefore, the method avoids the time delay of unified calculation and policy transmission of the central computing unit, and effectively ensures the timeliness of relay node deployment in the drone cluster. In addition, the method sets the reward after all agents perform actions to be negatively correlated with the number of connected branches of the drone network in the next time slot. Therefore, the method can effectively reduce the number of connected branches of the drone network and ensure the connectivity of the drone network. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 A flowchart of a method for intelligently generating network topology for maintaining task connectivity provided by an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of a training actor-critic network and an application target actor network provided by an embodiment of the present invention;

[0019] Figure 3 This is a comparison chart of the experimental results of the average connectivity during the task;

[0020] Figure 4 A comparison chart of the average packet loss rate between the method of the present invention and the MADDPG algorithm during the mission;

[0021] Figure 5 A functional module diagram of a network topology intelligent generation device for maintaining task connectivity provided by an embodiment of the present invention;

[0022] Figure 6 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0024] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0026] Embodiment 1

[0027] Figure 1 A flowchart of a method for intelligently generating network topology for maintaining task connectivity provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method specifically comprises the following steps:

[0028] Step S102, obtaining the position data of each drone node in the drone cluster in the current time slot.

[0029] Among them, drone nodes include the following two categories: task execution nodes and relay nodes. Task execution nodes are drone nodes that serve above the task area, and relay nodes are drone nodes used to build communication channels between task execution nodes. The method provided in the embodiment of the present invention can be applied to any time slot within the drone cluster mission cycle. Although the drone cluster has strong mobility, in a single time slot, the positions of all drone nodes can be regarded as fixed. The position data of the drone node is also the spatial coordinates of its position. The position data of drone i in time slot t is expressed as .

[0030] Step S104: determining the state data of the target relay node in the current time slot based on the position data.

[0031] Among them, the target relay node represents any relay node in the drone cluster; the status data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node.

[0032] Each drone node in the drone cluster has a sensing function and can sense all drone nodes within its communication range. In order to ensure the connectivity of the drone network, the embodiment of the present invention adopts a distributed execution method to deploy relay nodes. To determine the movement strategy of the relay node, the state data of each relay node must first be determined. The state data of relay node i in time slot t is expressed as: ,in, Represents the set of location data of all task execution nodes MU within the communication range of relay node i at time slot t.

[0033] Step S106, using the target multi-agent reinforcement learning model to process the state data of all relay nodes in the current time slot to obtain the velocity vector of each relay node.

[0034] Among them, the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, and the policy network of the corresponding agent is deployed on each relay node. The state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the velocity vector of the corresponding relay node; the rewards after all agents perform actions are negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster.

[0035] The existing technology uses centralized calculation and feedback to deploy relay nodes. The above process increases the communication overhead between the central control unit and the relay node, and there is also a communication delay in the feedback process, which leads to a time lag in the deployment of relay nodes in a highly dynamic background, and cannot meet the timeliness requirements of the deployment.

[0036] In view of this, the embodiment of the present invention proposes a relay node deployment scheme based on multi-agent reinforcement learning, in which the initial multi-agent reinforcement learning model is trained in advance, and the number of agents in the initial multi-agent reinforcement learning model is consistent with the number of relay nodes in the drone cluster. After the training is completed, a policy network of an agent is deployed on each relay node, so that the agent corresponds to the relay node one by one. In the actual deployment process, the relay node can directly use the trained policy network parameters to autonomously select actions for the existing observed state and output the velocity vector (that is, the movement strategy of the relay node itself) controls the movement of the relay node in each time slot, thereby ensuring the timeliness of the relay node deployment. represents the velocity vector of relay node i in time slot t, represents the speed of movement in the x direction, represents the speed of movement in the y direction, Indicates the speed of movement in the z direction.

[0037] At the same time, in order to optimize the connectivity of the drone network (that is, the number of connected branches is the minimum), the embodiment of the present invention sets the reward after all agents perform actions to be negatively correlated with the number of connected branches of the drone network in the next time slot. It can be seen that, driven by the maximization of rewards, the movement trend of all relay nodes is to minimize the number of connected branches of the drone network in the next time slot. Therefore, the method provided by the embodiment of the present invention can quickly complete the deployment of all relay nodes while ensuring the connectivity of the drone network.

[0038] Step S108, based on the position data and velocity vectors of all relay nodes in the current time slot, determine the network topology of the drone network in the next time slot.

[0039] After all relay nodes determine the velocity vector in the current time slot, each relay node can determine its position data in the next time slot based on its position data and velocity vector in the current time slot. At the same time, by obtaining the position data of all task execution nodes in the next time slot, the position of all drone nodes in the drone cluster in the next time slot can be determined, and then the network topology of the drone network in the next time slot can be constructed. In the embodiment of the present invention, the purpose of updating the network topology is to maintain the connectivity of the drone network.

[0040] The embodiment of the present invention provides a method for intelligent generation of network topology for task connectivity maintenance. The method is a scheme for deploying all relay nodes based on a multi-agent reinforcement learning model. There is no need to set up a central computing unit in the drone network. By deploying a policy network on each relay node, each relay node can decide its own action based on its own state data. Therefore, the method avoids the delay of unified calculation and policy transmission of the central computing unit, and effectively ensures the timeliness of relay node deployment in the drone cluster. In addition, the method sets the reward after all agents perform actions to be negatively correlated with the number of connected branches of the drone network in the next time slot. Therefore, the method can effectively reduce the number of connected branches of the drone network and ensure the connectivity of the drone network.

[0041] In an optional implementation, calculating the number of connected branches of the drone network in the next time slot includes the following steps:

[0042] Step S201, based on the position data of the first drone node and the second drone node in the next time slot, calculate the distance between the first drone node and the second drone node in the next time slot; wherein the first drone node and the second drone node represent any two drone nodes in the drone cluster.

[0043] The distance between two points can be calculated based on the position data of the two points in space using the calculation formula of the Euclidean distance. Through step S201, the distance between any two drones in the drone cluster can be calculated.

[0044] Step S202, based on a preset communication power threshold and a distance between the first drone node and the second drone node in the next time slot, determines the adjacency relationship between the first drone node and the second drone node in the next time slot.

[0045] Among them, the adjacency relationship includes one of the following: adjacency (that is, neighbor), non-adjacency. The greater the distance between drone nodes, the smaller the probability of the two being adjacent. The embodiment of the present invention does not specifically limit the method for determining the adjacency relationship, and the user can set it according to the actual situation. For example, if the distance between drone nodes is less than a certain distance threshold, then it is determined to be adjacent, otherwise it is determined to be non-adjacent; or if the communication power sent by another drone node received by the drone node is greater than a certain power threshold, then it is determined to be adjacent, otherwise it is determined to be non-adjacent.

[0046] Step S203, based on the adjacency relationship between the drone nodes in the drone cluster in the next time slot, determine the adjacency matrix and degree matrix of the drone network in the next time slot; wherein the i-th diagonal element in the degree matrix represents the number of neighbor nodes of the i-th drone node in the drone cluster.

[0047] In this embodiment of the present invention, the total number of drone nodes in the drone cluster is expressed as: ,in, Indicates the total number of task execution nodes. represents the total number of relay nodes, and the drone network topology in each time slot is expressed as: ;in, represents the set of all drone nodes in the drone network, It represents the set of edges between drone nodes in the drone network, which represents the communication links between all drones in the drone cluster.

[0048] The adjacency matrix of ,in, , if the first drone node i is adjacent to the second drone node j, then determine ; If the first drone node i and the second drone node j are not adjacent, then . The degree matrix of , ,in, , that is, the i-th diagonal element represents the number of neighbor nodes of the i-th drone node in the drone cluster.

[0049] Step S204, based on the adjacency matrix and the degree matrix, determine the Laplace matrix of the drone network in the next time slot.

[0050] Step S205, taking the number of elements with eigenvalue 0 in the Laplace matrix as the number of connected branches of the UAV network in the next time slot.

[0051] Through the adjacency matrix Sum degree matrix , the UAV network can be calculated The Laplacian matrix at the next time slot , perform eigenvalue decomposition on the Laplace matrix ,in, represents the eigenvector matrix, represents the eigenvalue set of the Laplace matrix. It can be proved by mathematical derivation , that is, the number of connected branches of the current network is the number of elements with eigenvalue 0 in the Laplacian matrix of the current UAV network. , the number of connected branches of the UAV network Indicates that the current network is fully connected.

[0052] In the embodiment of the present invention, the reward after all agents perform an action is negatively correlated with the number of connected branches of the drone network in the next time slot. The embodiment of the present invention does not specifically limit the calculation method of the reward, as long as the above negative correlation rule can be followed. Calculate using the following formula: ,in, Indicates preset adjustment parameters.

[0053] In an optional implementation, the above step S202, based on a preset communication power threshold and a distance between the first drone node and the second drone node in the next time slot, determines the adjacency relationship between the first drone node and the second drone node in the next time slot, specifically includes the following steps:

[0054] Step S2021, based on the distance between the first drone node and the second drone node in the next time slot, calculate the large-scale fading and small-scale fading in the communication channel between the first drone node and the second drone node in the next time slot.

[0055] Specifically, the communication link between UAVs belongs to the air-to-air channel link model. In the air-to-air link model, obstacles are not considered and large-scale fading can be expressed as: ,in, represents the link loss index, represents the distance between the first UAV node i and the second UAV node j at time slot t, Indicates the carrier frequency, Represents the speed of light.

[0056] Since there is a direct link between the two communication receivers, the small-scale fading is modeled using the Rice equation, which is expressed as: ;in, Indicates the strength of the dominant path (direct path, Line-of-Sight, LoS), Indicates the strength of the scattered path (Non-Line-of-Sight, NLoS), represents the modified Bessel function of the first kind, order 0, Represents the Rice coefficient.

[0057] Step S2022, obtain the constant transmission power of the drone, the first constant antenna gain of the first drone node, and the second constant antenna gain of the second drone node.

[0058] Step S2023, based on the constant transmission power, the first constant antenna gain, the second constant antenna gain, the large-scale fading and the small-scale fading, calculate the power sent by the second drone node received by the first drone node in the next time slot.

[0059] The power sent by the second UAV node j received by the first UAV node i at time slot t is expressed as: ;in, represents the constant transmission power of the drone, represents the first constant antenna gain of the first UAV node, Represents the second constant antenna gain of the second UAV node.

[0060] Step S2024, when it is determined that the power is greater than or equal to the preset communication power threshold, determine that the first drone node and the second drone node are adjacent in the next time slot.

[0061] Step S2025, when it is determined that the power is less than the preset communication power threshold, it is determined that the first drone node and the second drone node are non-adjacent in the next time slot.

[0062] That is to say, if the power threshold for establishing a communication link between the two is known to be (that is, preset communication power threshold), then if , then it is determined that the first drone node i and the second drone node j are adjacent in the next time slot; if , it is determined that the first drone node i and the second drone node j are non-adjacent in the next time slot. That is, it represents the link connection condition between two UAV nodes.

[0063] The following is a detailed introduction to the process of how to obtain the target multi-agent reinforcement learning model by training the initial multi-agent reinforcement learning model. In order to train the initial multi-agent reinforcement learning model, it is necessary to predetermine the task cycle motion model of all task execution nodes in the drone cluster to simulate the task execution nodes serving each task point and moving according to the needs of the task during the task cycle.

[0064] First, the positions of the task execution nodes are initialized by randomly and uniformly distributing them in space. In order to reasonably describe the motion trajectory of the task execution nodes during the task, the embodiment of the present invention uses a three-dimensional Gauss-Markov mobility model to model the dynamics of the drone. In order to fit the actual characteristics of drone motion control, the motion rate s, horizontal direction angle d, and flight elevation angle p are used to describe the flight attitude of the drone, and the memory term is introduced (value 0-1) to avoid unreasonable sharp turns in the drone trajectory. The specific formula is as follows: ; Where t represents the current time slot, t-1 represents the previous time slot, , , They represent the average speed, average horizontal direction angle and average flight elevation angle respectively; , , They represent the Gaussian term of speed, the Gaussian term of horizontal direction angle, and the Gaussian term of flight elevation angle respectively; the introduction of Gaussian term brings randomness to the movement of the drone. The value of can realize the control of randomness in the mobile model. When it is 0, the mobility model degenerates into a Gaussian random mobility model, and the movement of this time slot is independent of the previous time slot; When it is 1, the movement vector of the drone in each time slot is the same.

[0065] The above modeling is based on a spherical coordinate system. In actual simulation scenarios, it needs to be converted into a three-dimensional Cartesian coordinate system. The specific conversion formula is as follows: ; From this, the velocity vector of the task execution node in each time slot can be obtained as ,According to the preset time slot length, the position of each task execution node in the UAV cluster can be obtained in real time.

[0066] In an optional embodiment, the target multi-agent reinforcement learning model is a target actor network in a target actor-critic network, and the target actor network includes: a plurality of target policy networks; the method of the present invention further includes the following steps:

[0067] Step S301, obtaining a training sample set; wherein the training sample set includes multiple training samples, each training sample includes: the state of all agents in the current time slot, the actions of all agents in the current time slot, the rewards after all agents perform actions, and the state of all agents in the next time slot.

[0068] Before the drone cluster uses the embodiment of the present invention to deploy relay nodes, the positions and actions of all drones in the drone cluster at each time slot are collected, and then multiple training samples can be obtained by calculating rewards. The training sample set can be expressed as: , the training samples are expressed as: , represents the state of all agents in time slot t, represents the actions of all agents in time slot t, Indicates that all agents in time slot t are Execute actions in state After the reward, Represents the state of all agents in time slot t+1.

[0069] The embodiment of the present invention adopts the actor-critic multi-agent reinforcement learning architecture and introduces the policy entropy into the reinforcement learning objective function to improve the exploratory nature of the reinforcement learning strategy. The actor maintains multiple policy networks, each of which receives the observation vector of the current drone. (that is, the state data of the relay node) as input and directly output the current action The critic network targets all relay nodes at their current state , for the current action The output result can be expressed as .

[0070] Optionally, the objective function used to train the initial actor-critic network is: ;in, Express expectations, , represents the state of the ith agent in time slot t, , represents the action of the ith agent in time slot t, Indicates the preset training duration. represents the reward discount factor, , Indicates that all agents in time slot t are Execute actions in state After the reward, represents the entropy learning rate, which will gradually decrease with the increase of training steps to achieve a balance between exploration and optimization. represents the total number of agents, , Indicates the policy network parameters Next, agent i is Take action in state The probability of represents the probability distribution of the action chosen by agent i under the current observation.

[0071] Repeat the following steps S302-S304 until the preset number of iterations is reached to obtain the target actor-critic network:

[0072] Step S302: extract a specified number of training samples from the training sample set to obtain batch samples.

[0073] Step S303, using the first loss function to process the batch samples to update the initial critic network in the initial actor-critic network based on the first loss function value, and using the second loss function to process the batch samples to sequentially update multiple initial policy networks in the initial actor-critic network based on the second loss function value.

[0074] Step S304: when it is determined that the update times of the critic network have reached the specified times, the network parameters of the target-critic network are updated using the network parameters of the current critic network.

[0075] Figure 2 A schematic diagram of a training actor-critic network and an application target actor network provided in an embodiment of the present invention. After obtaining a training sample set, it is necessary to extract a specified number of training samples from the training sample set to obtain batch samples, and then perform gradient descent update on the network based on the batch samples. The batch samples are extracted once. On the one hand, the critic network needs to be updated according to the first loss function, and on the other hand, multiple initial policy networks need to be updated in sequence, that is, the first policy network is updated according to the second loss function, and then the second policy network is updated according to the second loss function, and so on, to update the last policy network.

[0076] In the prior art, the method of updating the actor network is usually to update all its policy networks synchronously. Considering that the evaluation result Q output by the critic network is jointly determined by the states and actions of all agents, when Q increases, it is impossible to accurately determine which agent's action causes the Q value to increase. Therefore, the synchronous update of all policy networks will lead to blindness of the update or fall into a local optimal solution. In view of this, the embodiment of the present invention proposes a method of sequentially updating multiple initial policy networks. This update method can better learn the collaborative strategy in the task cycle, avoid blindness of the update, and thus realize an efficient and intelligent unmanned cluster topology maintenance solution.

[0077] After determining that the Critic network has been updated for a specified number of times, the parameters of the two critic networks need to be assigned to the two target-critic networks, that is, reinforcement learning soft update, to enhance the stability of the learning process and reduce the variance of the process. When it is determined that the preset number of iterations has been reached, that is, after the actor-critic network has been updated for a corresponding number of times, the target actor-critic network can be obtained, and the multiple target policy networks in the target actor-critic network are deployed in the relay nodes respectively, which can effectively improve the performance of the network topology and meet the characteristics of the highly dynamic unmanned platform cluster network.

[0078] In an optional implementation, both the critic network and the target-critic network use a dual-Q network. and , which can effectively reduce the variance of network updates, where Represents the evaluation result output by the first critic network, Represents the evaluation result output by the second critic network, Represents the evaluation result output by the first target-critic network, Represents the evaluation result output by the second target-critic network.

[0079] The first loss function is expressed as: ;in, represents the network parameters of the j-th critic network, represents the number of samples in the batch sample, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , It means that the j-th target-critic network targets all agents in Take action in state The evaluation results, represents the network parameters of the target-critic network, Indicates the policy network parameters Next, agent i is Take action in state probability.

[0080] The second loss function is expressed as: ;in, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , represents the connection vector of the actions from the 1st agent to the i-1th agent in time slot t, Indicates the policy network parameters of the 1st agent to the i-1th agent that have completed the update, , represents the policy network parameters of the i-th agent currently being updated, , represents the connection vector of the action from the i+1th agent to the nth agent in time slot t, Represents the policy network parameters of the i+1th agent to the nth agent that have not yet been updated.

[0081] In order to compare the performance of the solution provided by the embodiment of the present invention with the existing method, the simulation experiment was carried out in a three-dimensional simulation space of 500m*500m*500m. The communication range of the MU drone is 120m. The total number is 20, which are randomly distributed in the three-dimensional space. The moving speed range of the MU is 0-16m / s, and the moving speed range of the RU is 0-30m / s. Figure 3 This is a comparison chart of the experimental results of the average connectivity during the task. Figure 3 It can be seen that the connectivity of the MADDPG algorithm is maintained at about 7 on average, while the method proposed in the embodiment of the present invention can stabilize the connectivity of the entire network at about 2 after training, which is a significant improvement compared to the baseline algorithm.

[0082] In addition, the network packet loss rate is closely related to the network connectivity. Figure 4 This is a comparison chart of the average packet loss rate of the method of the present invention and the MADDPG algorithm during the task. Figure 4 It can be seen that the packet loss rate of the MADDPG algorithm is about 70%, while the method of the present invention can reduce the packet loss rate to about 10%. It can be seen that the method proposed in the embodiment of the present invention has a more obvious improvement in network performance within the task cycle compared with the baseline MADDPG algorithm.

[0083] In summary, the embodiment of the present invention proposes a multi-agent reinforcement learning topology generation scheme based on relay nodes RU. Compared with the existing algorithm that needs to rely on the central computing unit, the embodiment of the present invention can independently and in real time complete the deployment of RU nodes, and can effectively improve the performance of the network topology, which is more in line with the characteristics of highly dynamic unmanned platform cluster networks. In addition, the embodiment of the present invention combines policy entropy and introduces a sequential update method of the policy network, so that the collaborative strategy can be better learned in the task cycle, thereby realizing an efficient and intelligent unmanned cluster topology maintenance solution.

[0084] Embodiment 2

[0085] An embodiment of the present invention also provides a network topology intelligent generation device for task connectivity maintenance, which is mainly used to execute the network topology intelligent generation method for task connectivity maintenance provided in the above-mentioned embodiment one. The following is a specific introduction to the network topology intelligent generation method for task connectivity maintenance provided in the embodiment of the present invention.

[0086] Figure 5 is a functional module diagram of a network topology intelligent generation device for task connectivity maintenance provided by an embodiment of the present invention, such as Figure 5 As shown, the device mainly includes: a first acquisition module 10, a first determination module 20, a processing module 30, and a second determination module 40, wherein:

[0087] The first acquisition module 10 is used to obtain the position data of each drone node in the drone cluster in the current time slot; wherein the drone nodes include the following two categories: task execution nodes and relay nodes.

[0088] The first determination module 20 is used to determine the state data of the target relay node in the current time slot based on the position data; wherein the target relay node represents any relay node in the drone cluster; the state data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node.

[0089] The processing module 30 is used to process the state data of all relay nodes in the current time slot using the target multi-agent reinforcement learning model to obtain the speed vector of each relay node; wherein the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, and the policy network of the corresponding agent is deployed on each relay node, the state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the speed vector of the corresponding relay node; the reward after all agents perform the action is negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster.

[0090] The second determination module 40 is used to determine the network topology of the drone network in the next time slot based on the position data and velocity vectors of all relay nodes in the current time slot.

[0091] The embodiment of the present invention provides a network topology intelligent generation device for task connectivity maintenance. The device is a solution for deploying all relay nodes based on a multi-agent reinforcement learning model. There is no need to set a central computing unit in the drone network. By deploying a policy network on each relay node, each relay node can decide its own action based on its own state data. Therefore, the device avoids the delay of unified calculation and policy transmission of the central computing unit, and effectively ensures the timeliness of relay node deployment in the drone cluster. In addition, the device sets the reward after all agents perform actions to be negatively correlated with the number of connected branches of the drone network in the next time slot. Therefore, the device can effectively reduce the number of connected branches of the drone network and ensure the connectivity of the drone network.

[0092] Optionally, the device further comprises:

[0093] A calculation module is used to calculate the distance between the first drone node and the second drone node in the next time slot based on the position data of the first drone node and the second drone node in the next time slot; wherein the first drone node and the second drone node represent any two drone nodes in the drone cluster.

[0094] The third determination module is used to determine the adjacency relationship between the first drone node and the second drone node in the next time slot based on a preset communication power threshold and the distance between the first drone node and the second drone node in the next time slot.

[0095] The fourth determination module is used to determine the adjacency matrix and degree matrix of the drone network in the next time slot based on the adjacency relationship between the drone nodes in the drone cluster in the next time slot; wherein the i-th diagonal element in the degree matrix represents the number of neighbor nodes of the i-th drone node in the drone cluster.

[0096] The fifth determination module is used to determine the Laplace matrix of the drone network in the next time slot based on the adjacency matrix and the degree matrix.

[0097] The sixth determination module is used to use the number of elements with eigenvalue 0 in the Laplace matrix as the number of connected branches of the drone network in the next time slot.

[0098] Optionally, the third determining module is specifically configured to:

[0099] Based on the distance between the first UAV node and the second UAV node in the next time slot, the large-scale fading and small-scale fading in the communication channel between the first UAV node and the second UAV node in the next time slot are calculated.

[0100] Obtain the constant transmission power of the UAV, the first constant antenna gain of the first UAV node, and the second constant antenna gain of the second UAV node.

[0101] Based on the constant transmission power, the first constant antenna gain, the second constant antenna gain, the large-scale fading and the small-scale fading, the power sent by the second drone node received by the first drone node in the next time slot is calculated.

[0102] When it is determined that the power is greater than or equal to the preset communication power threshold, it is determined that the first drone node and the second drone node are adjacent in the next time slot.

[0103] When it is determined that the power is less than a preset communication power threshold, it is determined that the first drone node and the second drone node are non-adjacent in the next time slot.

[0104] Optionally, the target multi-agent reinforcement learning model is a target actor network in a target actor-critic network, and the target actor network includes: a plurality of target policy networks; the device also includes:

[0105] The second acquisition module is used to acquire a training sample set; wherein the training sample set includes multiple training samples, and each training sample includes: the state of all agents in the current time slot, the actions of all agents in the current time slot, the rewards after all agents perform actions, and the state of all agents in the next time slot.

[0106] The repeated execution module is used to repeatedly execute the following steps until the preset number of iterations is reached to obtain the target actor-critic network:

[0107] Extract a specified number of training samples from the training sample set to obtain batch samples.

[0108] The batch samples are processed using a first loss function to update an initial critic network in an initial actor-critic network based on the first loss function value, and the batch samples are processed using a second loss function to sequentially update multiple initial policy networks in the initial actor-critic network based on the second loss function value.

[0109] When it is determined that the update times of the critic network have reached the specified times, the network parameters of the target-critic network are updated using the network parameters of the current critic network.

[0110] Optionally, the objective function used to train the initial actor-critic network is: ;in, Express expectations, , represents the state of the ith agent in time slot t, , represents the action of the ith agent in time slot t, Indicates the preset training duration. represents the reward discount factor, , Indicates that all agents in time slot t are Execute actions in state After the reward, represents the entropy learning rate, represents the total number of agents, , Indicates the policy network parameters Next, agent i is Take action in state probability.

[0111] Optionally, both the critic network and the target-critic network use a double Q network; the first loss function is expressed as: ;in, represents the network parameters of the j-th critic network, represents the number of samples in the batch sample, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , It means that the j-th target-critic network targets all agents in Take action in state The evaluation results, Indicates the policy network parameters Next, agent i is Take action in state probability.

[0112] Optionally, the second loss function is expressed as: ;in, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , represents the connection vector of the actions from the 1st agent to the i-1th agent in time slot t, Indicates the policy network parameters of the 1st agent to the i-1th agent that have completed the update, , represents the policy network parameters of the i-th agent currently being updated, , represents the connection vector of the action from the i+1th agent to the nth agent in time slot t, Represents the policy network parameters of the i+1th agent to the nth agent that have not yet been updated.

[0113] Embodiment 3

[0114] See also Figure 6 An embodiment of the present invention provides an electronic device, which includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected via the bus 62; the processor 60 is used to execute an executable module stored in the memory 61, such as a computer program.

[0115] The memory 61 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0116] The bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0117] Among them, the memory 61 is used to store programs, and the processor 60 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 60 or implemented by the processor 60.

[0118] The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 60. The above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.

[0119] A computer program product of a method and apparatus for intelligently generating network topology for maintaining task connectivity provided in an embodiment of the present invention includes a computer-readable storage medium storing non-volatile program code executable by a processor, wherein the instructions included in the program code can be used to execute the method described in the previous method embodiment. For specific implementation, please refer to the method embodiment, which will not be repeated here.

[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.

[0122] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0123] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0124] In addition, the terms "horizontal", "vertical", "overhanging" and the like do not mean that the components are required to be absolutely horizontal or overhanging, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0125] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligent generation of network topology for task connectivity preservation. It is characterized in that include: Obtain the location data of each drone node in the drone cluster at the current time slot; wherein the drone nodes include the following two categories: task execution nodes and relay nodes; Determine the state data of the target relay node in the current time slot based on the position data; wherein the target relay node represents any relay node in the drone cluster; the state data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node; The target multi-agent reinforcement learning model is used to process the state data of all relay nodes in the current time slot to obtain the speed vector of each relay node; wherein the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, and the policy network of the corresponding agent is deployed on each relay node, the state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the speed vector of the corresponding relay node; the reward after all agents perform the action is negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster; Based on the position data and velocity vectors of all relay nodes in the current time slot, the network topology of the drone network in the next time slot is determined.

2. The method for intelligently generating network topology for task connectivity preservation according to claim 1, It is characterized in that Calculating the number of connected branches of the drone network in the next time slot includes the following steps: Based on the position data of the first drone node and the second drone node in the next time slot, calculate the distance between the first drone node and the second drone node in the next time slot; wherein the first drone node and the second drone node represent any two drone nodes in the drone cluster; Determine an adjacency relationship between the first drone node and the second drone node in the next time slot based on a preset communication power threshold and a distance between the first drone node and the second drone node in the next time slot; Based on the adjacency relationship between the drone nodes in the drone cluster in the next time slot, determine the adjacency matrix and degree matrix of the drone network in the next time slot; wherein the i-th diagonal element in the degree matrix represents the number of neighbor nodes of the i-th drone node in the drone cluster; Determine a Laplacian matrix of the drone network in a next time slot based on the adjacency matrix and the degree matrix; The number of elements with eigenvalues ​​of 0 in the Laplace matrix is ​​used as the number of connected branches of the drone network in the next time slot.

3. The method for intelligently generating network topology for task connectivity preservation according to claim 2, It is characterized in that Determining an adjacency relationship between the first drone node and the second drone node in the next time slot based on a preset communication power threshold and a distance between the first drone node and the second drone node in the next time slot includes: Based on the distance between the first drone node and the second drone node in the next time slot, calculate the large-scale fading and small-scale fading in the communication channel between the first drone node and the second drone node in the next time slot; Obtaining a constant transmission power of the UAV, a first constant antenna gain of the first UAV node, and a second constant antenna gain of the second UAV node; Calculate the power sent by the second UAV node and received by the first UAV node in the next time slot based on the constant transmit power, the first constant antenna gain, the second constant antenna gain, the large-scale fading, and the small-scale fading; In the case where it is determined that the power is greater than or equal to the preset communication power threshold, determining that the first drone node and the second drone node are adjacent in the next time slot; When it is determined that the power is less than the preset communication power threshold, it is determined that the first drone node and the second drone node are non-adjacent in the next time slot.

4. The method for intelligently generating network topology for task connectivity preservation according to claim 1, It is characterized in that The target multi-agent reinforcement learning model is a target actor network in a target actor-critic network, and the target actor network includes: a plurality of target policy networks; the method further includes: Obtain a training sample set; wherein the training sample set includes a plurality of training samples, each of which includes: the state of all agents in the current time slot, the actions of all agents in the current time slot, the rewards of all agents after performing the actions, and the state of all agents in the next time slot; Repeat the following steps until the preset number of iterations is reached to obtain the target actor-critic network: Extracting a specified number of training samples from the training sample set to obtain batch samples; Processing the batch samples using a first loss function to update an initial critic network in the initial actor-critic network based on the first loss function value, and processing the batch samples using a second loss function to sequentially update multiple initial policy networks in the initial actor-critic network based on the second loss function value; When it is determined that the update times of the critic network have reached the specified times, the network parameters of the target-critic network are updated using the network parameters of the current critic network.

5. The method for intelligently generating network topology for task connectivity preservation according to claim 4, It is characterized in that The objective function used to train the initial actor-critic network is: ; in, Express expectations, , represents the state of the ith agent in time slot t, , represents the action of the ith agent in time slot t, Indicates the preset training duration. represents the reward discount factor, , Indicates that all agents in time slot t are Execute actions in status After the reward, represents the entropy learning rate, represents the total number of agents, , Indicates the policy network parameters Next, agent i is Take action in state probability.

6. The method for intelligently generating network topology for task connectivity preservation according to claim 5, It is characterized in that The critic network and the target-critic network both use a double Q network; The first loss function is expressed as: ; in, represents the network parameters of the j-th critic network, represents the number of samples in the batch sample, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , It means that the j-th target-critic network targets all agents in Take action in state The evaluation results, Indicates the policy network parameters Next, agent i is Take action in state probability.

7. The method for intelligently generating network topology for task connectivity preservation according to claim 6, It is characterized in that The second loss function is expressed as: ; in, Indicates that the j-th critic network targets all agents in Take action in state The evaluation results, , represents the connection vector of the actions from the 1st agent to the i-1th agent in time slot t, Indicates the policy network parameters of the 1st agent to the i-1th agent that have completed the update, , represents the policy network parameters of the i-th agent currently being updated, , represents the connection vector of the action from the i+1th agent to the nth agent in time slot t, Represents the policy network parameters of the i+1th agent to the nth agent that have not yet been updated.

8. A network topology intelligent generation device for task connectivity preservation, It is characterized in that include: The first acquisition module is used to obtain the position data of each drone node in the drone cluster at the current time slot; wherein the drone nodes include the following two categories: task execution nodes and relay nodes; A first determination module is used to determine the state data of the target relay node in the current time slot based on the position data; wherein the target relay node represents any relay node in the drone cluster; the state data includes: the position data of the target relay node and the position data of the task execution node within the communication range of the target relay node; A processing module, used to process the state data of all relay nodes in the current time slot using the target multi-agent reinforcement learning model to obtain the speed vector of each relay node; wherein the agents in the target multi-agent reinforcement learning model correspond one-to-one to the relay nodes, a policy network of the corresponding agent is deployed on each relay node, the state of the agent is the state data of the corresponding relay node in the current time slot, and the action of the agent is the speed vector of the corresponding relay node; the reward after all agents perform the action is negatively correlated with the number of connected branches of the drone network in the next time slot; the drone network represents the network constructed by the drone cluster; The second determination module is used to determine the network topology of the drone network in the next time slot based on the position data and velocity vectors of all relay nodes in the current time slot.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor. It is characterized in that When the processor executes the computer program, the steps of the method for intelligently generating a network topology for maintaining task connectivity according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method for intelligently generating network topology for maintaining task connectivity according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Air security data acquisition and resource allocation method based on DDPG

    CN117058929A

  • Unmanned aerial vehicle flight ad hoc network routing topology optimization method, equipment and medium

    CN117240722A

  • Multi-agent-based air security data acquisition method

    CN118249883A

  • Graph neural network systems for behavior prediction and reinforcement learning in multple agent environments

    US20210192358A1