Unmanned aerial vehicle cluster collaborative data transmission method based on MAPPO and RLNC
By adopting the collaborative data transmission method of MAPPO and RLNC in the UAV self-organizing network, using the improved multi-agent proximal strategy optimization algorithm and random linear network coding, the problem of low data transmission efficiency in the UAV network is solved. , achieving efficient and reliable data transmission, suitable for real-time data return tasks in high-risk areas.
Patent Information
- Application Number
- CN202410896218.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
In UAV self-organizing networks, due to high mobility, dynamic topology changes, and resource constraints, massive data cannot be transmitted back to the back-end server at one time, and existing technologies are difficult to improve transmission efficiency without sacrificing data quality. .
A UAV cluster collaborative data transmission method based on MAPPO and RLNC is adopted. Through an improved multi-agent proximal strategy optimization algorithm and random linear network coding, the UAV cluster coding strategy and transmission parameters are optimized to achieve multi-hop collaboration of data. transmission, and obtain the optimal encoding strategy through neural network model training.
On the premise of ensuring the reliability and effectiveness of data transmission, it improves the training and testing accuracy of back-end machine learning algorithms, improves data transmission efficiency, and is suitable for real-time data return tasks in high-risk areas.
Smart Images

Figure CN118869145A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned aerial vehicle clusters, and in particular to a collaborative data transmission method for unmanned aerial vehicle clusters based on MAPPO and RLNC. Background Art
[0002] In some sudden or special scenarios, such as natural disasters, for high-risk areas that are difficult for people to reach, the established communication infrastructure cannot be used or cannot be built at all. In these areas, there is also a large amount of real-time IoT perception information that needs to be transmitted back in time and handed over to the back-end server for analysis; drones can replace humans to rush to the scene of high-risk areas in time, transmit data as an aerial base station or communication relay, realize refined inspection and data collection of the scene, and efficiently transmit real-time data and dispatch commands on the scene, providing a basis for commanders to make decisions.
[0003] It should be noted that a large amount of IoT perception data cannot be completed by relying on the communication capabilities of a single drone, and the wireless self-organizing network composed of multiple drones can give full play to the group advantages and complete the task of efficient data transmission in a collaborative manner. It should also be noted that the manual processing of massive data is inefficient, prone to errors and heavy workload, so massive data can be delivered to the machine learning model on the back-end server for mining and automated analysis. This method can not only process a large amount of data in a short time, but also as the amount of data grows, the machine learning model can be easily expanded to accommodate more data.
[0004] It should also be noted that when passing data to the machine learning model on the backend server, optimizing the encoding parameters and wireless transmission parameters is crucial to improving data transmission efficiency, reducing bandwidth usage and reducing latency; therefore, how to optimize the encoding algorithm and parameters to improve transmission efficiency without sacrificing data quality is crucial for massive data transmission.
[0005] It should also be noted that due to the high mobility of drone nodes, rapid dynamic topology changes, network resource limitations, communication requirements of different service qualities and other factors in the drone self-organizing network, a large amount of data cannot be transmitted back to the back-end server at one time. Therefore, it is very necessary to design an efficient and collaborative transmission solution.
[0006] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the invention
[0007] Based on this, it is necessary to provide a UAV cluster collaborative data transmission method based on MAPPO and RLNC to address the above technical problems. In the case of limited network bandwidth resources, the perception data is transmitted back to the server through multi-hop collaborative transmission of the unmanned cluster local self-organizing network. The present invention also optimizes the coding parameters and wireless transmission parameters to optimize the utilization of different data by the machine learning algorithm while ensuring the reliability and effectiveness of the data in the data transmission process, thereby improving the accuracy of the training and testing of the back-end machine learning algorithm.
[0008] In order to achieve the above object, the first aspect of the present invention provides a UAV cluster collaborative data transmission method based on MAPPO and RLNC, the method comprising:
[0009] Step 1: Each UAV obtains the machine learning algorithm evaluation index C, the UAV cluster coding strategy E and the environmental parameters; the environmental parameters include the two-dimensional range of the target area, the number of UAVs N in the UAV cluster self-organizing network, the initial position d of the UAV i , the number of source packets and the priority distribution of source packets
[0010] Each UAV configures the transmission process parameters respectively; the transmission process parameters of UAV i include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt;
[0011] Step 2: Each UAV defines the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and sets the observation space, action space and reward function of the UAV;
[0012] Step 3: Based on the observation space, action space and reward function of the drone, each drone trains the pre-built neural network model respectively; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm;
[0013] Step 3.1, UAV i inputs the machine learning algorithm evaluation index C, the UAV cluster coding strategy E, the environmental parameters and the transmission process parameters into the pre-built neural network model respectively;
[0014] Step 3.2, at the beginning of each time slice, the drone determines whether the waiting time reaches the data packet transmission time limit T;
[0015] If yes, then execute: the server decodes the cached encoded packet and calculates the reward r for this round i (t), and the calculated reward r i (t) Return to the corresponding drone i; drone i reads the corresponding current environment state S t and action a i (t), combined with the received reward r i (t) Get a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience playback buffer; UAV j resets the UAV self-organizing network environment and uses the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic;
[0016] If not, execute: UAV i obtains the corresponding observation vector O i (t), the output corresponds to action a i (t); UAV i determines whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then use the pre-configured random linear network coding to encode the action a i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packages S i ′(t), and based on the action a i (t) updating the drone cluster coding strategy E;
[0017] Drone i calculates the reward r for this round i (t);
[0018] Drone i reads the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic;
[0019] Step 4: After each drone in the drone cluster trains the pre-built neural network model, the optimal encoding strategy for the drone cluster that senses the source data packet is obtained.
[0020] In order to achieve the above-mentioned object, the second aspect of the present invention provides a UAV cluster collaborative data transmission system based on MAPPO and RLNC, the system comprising a UAV management end and a server management end, the UAV management end comprising an acquisition module, a configuration module, a problem description module and a neural network model training module, the neural network model training module comprising a model parameter input unit, a maximum delay judgment unit, a UAV side training unit and a network strategy parameter update unit;
[0021] The acquisition module is used to determine the machine learning algorithm evaluation index C, the drone cluster coding strategy E and the environmental parameters; wherein the environmental parameters include the two-dimensional range of the target area, the number of drones N in the drone cluster self-organizing network, the initial position d of the drone i , the number of source packets and the priority distribution of source packets
[0022] The configuration module is used to configure the transmission process parameters; wherein the transmission process parameters include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt;
[0023] The problem description module is used to define the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and set the observation space, action space and reward function of the UAV;
[0024] The neural network model training module is used to train the pre-built neural network model based on the observation space, action space and reward function of the drone; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm;
[0025] The model parameter input unit is used to input the machine learning algorithm evaluation index C, the drone cluster encoding strategy E, the environmental parameters and the transmission process parameters into a pre-built neural network model respectively;
[0026] The maximum delay judgment unit is used for the UAV to judge whether the waiting time reaches the data packet transmission time limit T at the beginning of each time slice;
[0027] The UAV side training unit is used to obtain the corresponding observation vector O when the UAV determines that the waiting time has not reached the data packet transmission time limit T i (t), the output corresponds to action a i (t); It is also used to determine whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then use the pre-configured random linear network coding to encode the action a i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packages S i ′(t), and based on the action a i (t) Update the drone cluster coding strategy E; also used to calculate the current round reward r i (t);
[0028] The network policy parameter updating unit is used to read the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic;
[0029] The server management end is used to decode the cached coded packets and calculate the reward r for this round when the drone determines that the waiting time reaches the data packet transmission time limit T. i (t), and the calculated reward r i (t) Return to the corresponding drone so that the corresponding drone combines the received reward r i (t) Generate and store a new state group (S t , a i (t), r i (t)); It is also used to reset the self-organizing network environment of the drone and based on the actor network objective function of the improved multi-agent environment Update the Actor-Critic network strategy parameters.
[0030] In order to achieve the above object, the third aspect of the present invention provides a computer device, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0031] Memory, used to store computer programs;
[0032] The processor is used to implement the above-mentioned UAV cluster collaborative data transmission method based on MAPPO and RLNC when executing the program stored in the memory.
[0033] In order to achieve the above-mentioned objectives, the fourth aspect of the present invention provides a readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the above-mentioned UAV cluster collaborative data transmission method based on MAPPO and RLNC.
[0034] The beneficial effects of the present invention are:
[0035] The present invention trains the improved multi-agent proximal strategy optimization algorithm based on environmental parameters and transmission process parameters, and continuously optimizes the drone cluster coding strategy. After the training, the optimal coding strategy of the drone cluster for the perception source data packet is obtained, which can be applied to actual scenarios as needed. Under the premise of ensuring the reliability and effectiveness of the data in the data transmission process, the utilization degree of the machine learning algorithm for different data is optimized, thereby achieving the effect of improving the accuracy of the training and testing of the back-end machine learning algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The process diagram of the UAV cluster collaborative data transmission method based on MAPPO and RLNC of the present invention is shown in FIG. Figure 1 ;
[0037] Figure 2 The process diagram of the UAV cluster collaborative data transmission method based on MAPPO and RLNC of the present invention is shown in FIG. Figure 2 ;
[0038] Figure 3 It is a structural schematic diagram of the UAV cluster cooperative data transmission system based on MAPPO and RLNC of the present invention;
[0039] Figure 4 It is a timing diagram of the working time axis of the UAV self-organizing network of the present invention;
[0040] Figure 5 It is a comparison diagram of single-end cutting and double-end cutting. DETAILED DESCRIPTION
[0041] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0042] For ease of understanding, the interactive parties and / or terms and / or custom words involved in the present invention are first described in conjunction with the technical solution of the present invention:
[0043] Improved multi-agent proximal policy optimization algorithm: refers to the DCMAPPO (Dynamic Cooperation Multi-Agent Proximal Policy Optimization) neural network model; the present invention models the system as a multi-agent system, in which each drone is an agent, and each agent has the ability to encode and decode, and optimizes the performance of the entire system through learning and collaboration; in this way, the advantages of reinforcement learning and random linear network coding (RLNC) in a distributed environment can be better utilized. The present invention continuously trains the improved multi-agent proximal policy optimization algorithm in the constructed environment, and stops training when the set number of rounds is reached. After the training is completed, the drone cluster can derive the best drone cluster coding strategy E according to the requirements of the corresponding back-end machine learning model while ensuring transmission reliability and effectiveness; after the training is completed, the reward value after convergence and the best drone cluster coding strategy can be obtained, which can be applied to actual scenarios as needed.
[0044] Improved random linear network coding: Because random linear network coding (RLNC) and reinforcement learning are not directly compatible, the present invention improves and adjusts random linear network coding (RLNC) to better combine DCMAPPO and RLNC to obtain the coding decision of the source data packet;
[0045] First, in terms of action space, in traditional RLNC, the action space may be relatively simple, such as selecting a data packet to be encoded. However, in reinforcement learning, a more complex action space is usually required so that the agent can make more flexible decisions. Therefore, the present invention expands the action space, which includes encoding selection and broadcast selection of encoded packets;
[0046] In terms of environmental status, traditional RLNC may focus on the communication status and data packet information between nodes. However, when combined with reinforcement learning, it may be necessary to consider the environmental status more comprehensively, including network topology, channel conditions, and other factors that affect communication efficiency. Therefore, the present invention redefines the observation vector O i (t) represents the observation vector O i (t) includes the available source data packet set of each drone, the bandwidth of drone i at time t, the network broadcast time limit of drone i, the location of drone i at time t, etc.) to better reflect the complexity of the communication environment;
[0047] In terms of reward function design, traditional RLNC usually uses simple reward functions, such as the number of successfully decoded data packets. However, when combined with reinforcement learning, a more complex reward function needs to be designed to better guide agent learning. The reward function may need to consider the trade-offs between communication throughput, data transmission delay, energy efficiency, and other performance indicators. Therefore, the present invention defines a more complex reward function (including a shared reward value, a first penalty value, and a second penalty value). Second penalty value and the third penalty value Four parts) are represented.
[0048] Inter-UAV communication model: All UAVs in the UAV swarm self-organizing network fly at a fixed altitude and a constant rate. The communication between UAVs uses air-to-air channels, which are mainly line of sight (LOS) connections. Therefore, the path loss between UAV i and UAV j can be modeled as the link loss P in free space. L :
[0049]
[0050] Among them, d ij =||d i -d j ||, represents the Euclidean distance between UAV i and UAV j; f represents the carrier frequency of the air-to-air channel, and c represents the speed of light;
[0051] The broadcast communication range of drones is limited, and all neighboring drones of drone i must be within this range. Therefore, the drone communication constraints are as follows:
[0052]
[0053] Among them, d i represents the three-dimensional coordinates of UAV i, d j represents the three-dimensional coordinates of UAV j, ||d i -d j || represents the Euclidean distance between UAV i and UAV j, R i represents the coverage radius of drone i, is the set of neighbors of i.
[0054] Machine learning algorithm evaluation index C: Machine learning models need quantitative evaluation indicators to evaluate which models are more effective. The optimization target of the present invention is the evaluation index C of the machine learning related algorithm installed on the backend server. By finding the optimal encoding strategy E of the source data packet, the evaluation index C is optimized: argmax EC(E); The present invention does not limit the evaluation index C of the machine learning algorithm, which depends on the nature of the machine learning algorithm and actual needs.
[0055] Drone cluster coding strategy E: Drone cluster coding strategy E is closely related to the evaluation indicators of machine learning related algorithms (such as face recognition algorithms, etc.) installed on the backend server. Different coding strategies will lead to different algorithm performance, so it can be transformed into solving the optimal drone cluster coding strategy E:
[0056]
[0057] Among them, E(i,x k ) represents the coding strategy of drone i, Indicates whether UAV i selects the source data packet with priority k to participate in encoding the corresponding network coding packet S, K i (t) represents the broadcast control parameters of UAV i.
[0058] Target area: refers to the geographical area that the drone cluster needs to cover when performing a mission;
[0059] Initial position of the drone d i : The initial three-dimensional position coordinates of the drone obtained through the existing positioning system.
[0060] Priority distribution of source data packets Assume that the priority distribution of known source packets is sorted in descending order of importance, such as W1 represents a set of source data packets with a priority of 1, and w1=|W1| represents the number of source data packets with a priority of 1.
[0061] The radio wave communication coverage of drones D i :
[0062]
[0063] Among them, D i represents the radio wave communication coverage of UAV i, R i Represents the coverage radius of drone i.
[0064] Network broadcast time limit T sd :It is pre-specified that the time for each drone to broadcast the coded packet cannot exceed the given network broadcast time limit T sd :
[0065]
[0066] Among them, p s Indicates the size of the preset coding package s, T sdrepresents the network broadcast time limit of drone i, b i (t) represents the bandwidth of UAV i at time t, S i ′ represents the set of coded packets that UAV i chooses to broadcast at time t.
[0067] Time slot duration Δt: The packet transmission time limit T is divided into multiple time slices, and the duration of each time slice is Δt; the present invention sets each time slice UAV to go through the following three stages, as shown in the attached Figure 4 As shown:
[0068] Phase 1: Each drone broadcasts information to its neighbors based on its own data packet buffer, including its own available source data packet ID and cached coded data packets;
[0069] Phase 2: Each drone determines the encoding strategy of the source data packet based on neighbor information, its own available bandwidth, and other information;
[0070] Phase 3: Each drone encodes and encapsulates the source data packet according to the encoding strategy obtained in the previous phase and broadcasts the generated encoded packet. At the same time, each drone attempts to decode the encoded packet it receives and caches the remaining encoded packets for future decoding.
[0071] Data packet transmission time limit T: Each data packet has a survival time in the drone cluster self-organizing network, which is calculated using the TTL field of the data packet. During the entire T, the topological dynamics of each drone (due to drone movement, joining / leaving, etc.) can be reflected in a timely manner through the exchange of neighbor information in each time slice. The back-end server keeps listening. If it hears the broadcast of some drones, it receives the set of encoded data packets containing the most source data packets, and decodes the received encoded data packets after the last time slice ends. In order to avoid network broadcast storms and multi-hop broadcasts that will cause waste of channel resources, the present invention imposes restrictions on drones, adopts single-hop broadcasts, and prohibits node replays in order to reduce the redundancy of replays, thereby reducing competition and collisions. At the same time, nodes no longer process received packets.
[0072] It should be noted that the relevant machine learning algorithms (such as face recognition algorithms) on the backend server require that data be transmitted back to the server within T, so the number of hops along the path that the data packet passes should not exceed the number of divided time slices; if the data packet reaches its maximum survival time in the drone cluster self-organizing network and the server does not receive it at the end of the data packet transmission time limit T, the data packet is deemed invalid and discarded by default. is the path l that the data packet passes through, P i is the set of paths passed:
[0073]
[0074] in, Indicates the path that the data packet passes through, h max Indicates the number of divided time slices.
[0075] Example 1
[0076] This embodiment provides a specific implementation method of a UAV cluster collaborative data transmission method based on MAPPO and RLNC, as shown in the attached Figure 1 As shown;
[0077] The UAV cluster collaborative data transmission method based on MAPPO and RLNC includes:
[0078] Step 1: Each drone obtains the machine learning algorithm evaluation index C, the drone cluster coding strategy E and the environmental parameters; the environmental parameters of drone i include the two-dimensional range of the target area, the number of drones N in the drone cluster self-organizing network, the initial position d i , the number of source packets and the priority distribution of source packets
[0079] Each UAV configures the transmission process parameters respectively; the transmission process parameters of UAV i include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt;
[0080] Step 2: Each UAV defines the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and sets the observation space, action space and reward function of the UAV;
[0081] Step 3: Based on the observation space, action space and reward function of the drone, each drone trains the pre-built neural network model respectively; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm;
[0082] Step 3.1, UAV i inputs the machine learning algorithm evaluation index C, the UAV cluster coding strategy E, the environmental parameters and the transmission process parameters into the pre-built neural network model respectively;
[0083] Step 3.2, at the beginning of each time slice, UAV i determines whether the waiting time reaches the data packet transmission time limit T;
[0084] If yes, then execute: The server decodes the cached encoded packet, delivers the decoded data packet to the relevant machine learning algorithm for processing and calculates the reward r for this round i (t), and the calculated reward r i (t) Return to the corresponding drone i; drone i reads the corresponding current environment state S t and action a i (t), combined with the received reward r i (t) Get a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience playback buffer; UAV i resets the UAV self-organizing network environment and uses the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic;
[0085] If not, execute: UAV i obtains the corresponding observation vector O i (t), the output corresponds to action a i (t); UAV i determines whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then use the pre-configured random linear network coding to encode the action a i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packages S i ′(t), and based on the action a i (t) updating the drone cluster encoding strategy E; wherein the observation vector
[0086] Drone i calculates the reward r for this round i (t);
[0087] Drone i reads the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic; among them, the state group (S t , a i (t), r i S in (t) t represents the environmental state of drone i at time t (referring to various factors in the environment, including but not limited to the observation vector O i (t)), a i (t) represents the action of UAV i at time t (including encoding selection and encoding packet broadcast selection), r i (t) represents the reward value of drone i at time t;
[0088] Step 4: After each drone in the drone cluster trains the pre-built neural network model, the optimal encoding strategy for the drone cluster that senses the source data packet is obtained.
[0089] It should be noted that when UAV i resets the UAV self-organizing network environment, it is necessary to reset the source data packet set A of UAV i. i , code package set S i 、Drone default bandwidth b i , data packet transmission time limit T, time slice number h and neighbor set are initialized.
[0090] It can be understood that the experience replay buffer is a data structure in reinforcement learning, which is used to store experience samples generated when the agent interacts with the environment. These samples contain four elements: the current state (s), the action taken (a), the reward obtained (r), and the new state after the action is executed (s'); the network strategy parameter of the actor-critic refers to θ, and the actor network objective function of the improved multi-agent environment in this invention is And the state in the experience replay buffer, etc., update the network strategy parameter θ of the Actor-Critic.
[0091] It should also be noted that the action a is encoded using a pre-configured random linear network coding (RLNC). i (t) is packaged, and the obtained packaging result is expressed as:
[0092]
[0093] in, Indicates whether drone i selects source data packet x with priority k at time t k To participate in encoding its network coding package s; x k A represents the source data packet with priority k. i (t) represents the source data packet set of drone i, represents the priority distribution of source packets, W k represents the set of source data packets with priority k;
[0094] For the coded packet set S i Update to get a new set of code packages S i ′(t), is the set of coded data packets formed by drone i after encoding in stage 3, expressed as:
[0095]
[0096] Among them, S i (t) represents the set of coded packets at the beginning of each time slice.
[0097] It should also be noted that due to the action a i (t) includes the encoding selection of each source data packet of drone i and the broadcast selection of the encoded packet, so the subsequent action a i (t) Update the drone cluster coding strategy E; for example, the coding selection indicates that drone 1 selects source data packet x1 to participate in encoding its network coding packet s, and accordingly, sets E[1,1]==1; if the coding selection indicates that drone 1 selects source data packet x1 again to participate in encoding its network coding packet s, then this coding selection is set to be invalid.
[0098] It should also be noted that the optimal coding strategy of the drone cluster that perceives the source data packet includes the cluster coding strategy of each drone in the cluster; for example, E[1,j] represents the cluster coding strategy of drone 1, ..., E[N,j] represents the cluster coding strategy of drone N; where j represents whether to select the source data packet x j To participate in encoding its network coding package s.
[0099] It should also be noted that at the beginning of each time slice, the drone must determine whether the packet transmission time limit T has been reached, and at the same time, discard the packets that have reached the maximum network survival time (TTL = 0), and update the source packet set A owned by drone i at time t i (t); If the packet transmission time limit T has been reached, the backend server calculates the reward r for this round i (t); If the packet transmission time limit T is not reached, drone i calculates the reward r for this round i (t); After the training is completed, the converged reward value and the optimal encoding strategy can be obtained, which can be applied to actual scenarios as needed.
[0100] It should also be noted that, because random linear network coding (RLNC) and reinforcement learning are not directly compatible, the present invention improves and adjusts the action space, environmental state, reward function design, and encoding and decoding processing methods to better combine the two.
[0101] It should also be noted that in the large-scale training environment in this scenario, trajectories (referring to the sequence of states s and actions a) are sampled from various policy sources, which may be very different from the current policy. In this case, the standard clipping method may not be able to handle this deviation; to solve this problem, the present invention introduces and improves a dual-clip method.
[0102] It should also be noted that the internal network of each drone agent is an Actor-Critic structure. Each drone agent has an Actor network, a Critic network, an Actor_target network, and a Critic_target network. m groups of samples are randomly selected from the experience replay buffer, and the extracted state parameters are input into the Actor network to obtain the action strategy of the drone cluster. The extracted actions are input into the Critic network, and the network parameters θ of the Actor-Critic are updated.
[0103] It should also be noted that, when the perception data of the disaster-stricken area needs to be transmitted back to the server for processing within an effective time, the present invention solves the problem of efficient transmission of a group of key information data packets with different priorities in a self-organizing network of an intelligent vehicle cluster composed of a group of drones. While ensuring the reliability and timeliness of the perception data, the transmission of key information is adjusted through channel coding to maximize the analysis and processing efficiency of the relevant machine learning algorithm based on the transmitted data on the server.
[0104] Example 2
[0105] Based on the above-mentioned Example 1, this example provides another specific implementation method of the UAV cluster collaborative data transmission method based on MAPPO and RLNC.
[0106] In some embodiments, the improved actor network objective function It is expressed as:
[0107]
[0108] in, represents the objective function of the actor network of the improved multi-agent environment, B represents the number of state groups sampled from the experience buffer;
[0109] Indicates taking and The minimum value in represents the current ratio of new and old strategies of drone i, represents the estimate of the advantage function at time t, 1-∈ represents the lower bound of clipping, 1+∈ represents the upper bound of clipping, N is the number of drones (number of agents); σ represents the hyperparameter for adjusting the entropy of the strategy, Indicates that the current policy function is in state Entropy under i Indicates the dynamic cropping parameter value of UAV i.
[0110] It can be understood that the advantage function A(s,a) is used in deep reinforcement learning (DRL) to measure the average advantage of performing an action a in a given state s over performing any action according to the current strategy. In the prior art, it is usually expressed as A(s,a)=Q(s,a)-V(s), where Q(s,a) represents the expected future cumulative reward after performing action a in state s, and V(s) represents the average cumulative reward that can be expected by acting according to the current strategy in state s.
[0111] It can be understood that the strategy function in reinforcement learning indicates: what action the agent should take in a given state, which is usually expressed as π(a|s) in the prior art, where s represents the current state, a represents the action taken in state s, and π is a probability density function; the output of the strategy function π(a|s) is a probability distribution, which reflects the probability of taking each possible action a in state s;
[0112] Among them, the state represents a sampled observation vector of UAV i;
[0113] It is expressed as:
[0114]
[0115] in, represents the current new and old strategy ratio of drone i, π θ (a t ∣s t ) indicates that UAV i is in state s in the current time slice t Take action a t The probability of Indicates that UAV i was in state s in the previous time slice t Take action a t probability.
[0116] It should be noted that in reinforcement learning, drones act as agents to learn the best behavior strategy by interacting with the environment. The goal of the agent is usually to maximize its future cumulative rewards. However, in some cases, the rewards may be very sparse or may have high variance, which will cause the learning process to be unstable or even unable to converge to the ideal strategy; after the drone agent interacts with the environment, it needs to update the actor-critic network strategy parameters. Due to the current old and new strategy ratio of drone i, Can be very large, maximizing the RL (Reinforcement Learning) objective may lead to excessive policy deviation;
[0117] To alleviate this problem, the role of clipping in mainstream update methods is to limit the amplitude of policy gradient updates to promote learning stability and convergence. The neural network parameter update method is derived, but the mainstream update method has some problems and limitations: First, in the large-scale training environment in this scenario, the trajectories are sampled from various policy sources, which may be inconsistent with the current policy π θ is very different, in which case the standard clipping method may not be able to handle this deviation. hour, will be a very large number when hour, So even using the above method, the new strategy deviates greatly from the old strategy, which makes it difficult to ensure the convergence of the strategy during training;
[0118] Therefore, the present invention proposes an improved dual clipping method and introduces it into the DCMAPPO neural network model to obtain the objective function of the actor network of the drone. The improved dual clipping method is The lower bound of further trims the ratio of new and old strategies like Figure 5 As shown in the figure, when the parameter exceeds the upper bound, the network policy parameter of Actor-Critic is clipped to the upper bound value; when the parameter is lower than the lower bound, the network policy parameter of Actor-Critic is clipped to the lower bound value. The purpose of this is to limit the amplitude of the policy gradient update and keep it within a relatively stable range, which helps to improve the stability and convergence of learning.
[0119] It should also be noted that this scenario is a multi-agent cooperative environment, and each agent has its own actor-critic network structure, so the improved dual-clip method cannot be directly applied to the multi-agent cooperative environment. For this reason, the present invention adjusts the improved dual-clip method to obtain the improved actor network objective function of the multi-agent environment applicable to the multi-agent environment.
[0120] It should also be noted that the objective function of the actor network in the improved multi-agent environment is According to the specific environment and task, the upper and lower thresholds of clipping are carefully selected to ensure that the clipping results can remain stable and provide sufficient information to promote learning; the multi-dual-clip method is integrated into the training process of the DCMAPPO neural network model to ensure that clipping can be performed within the specified range at each time step; in the DCMAPPO neural network model, multiple agent strategy learning is usually trained in parallel, and they may affect each other. When combining the multi-dual-clip method, the present invention takes into account the communication and collaboration methods between agents to ensure that clipping does not affect the information transfer and learning efficiency between them.
[0121] In terms of trimming parameters: according to the characteristics of the DCMAPPO neural network model, an adaptive mechanism is designed to update the trimming parameter value, so that the trimming parameter value is dynamically adjusted according to the performance of each drone's strategy learning, so as to better adapt to the multi-agent environment; the calculation formula of the new trimming parameter value is:
[0122]
[0123] Among them, c i,new represents the new cropping parameter value of drone i, c i,old represents the current cropping parameter value of UAV i, λ i Represents the adjustment factor of UAV i, which controls the adjustment speed and degree of the clipping parameters of agent k; Var k,current Represents the variance of the current reward of drone i, Var k,target represents the preset target reward variance of drone i.
[0124] It should be noted that in the calculation formula of this new clipping parameter value, the clipping parameter of each drone is adjusted according to the variance of its own reward. If the variance of the drone's reward exceeds the target variance, the clipping parameter will increase; conversely, if the variance is lower than the target variance, the clipping parameter will decrease. In this way, the clipping parameter can be adaptively adjusted according to the variance of each drone's reward, thereby achieving the purpose of adaptively adjusting the upper and lower bounds of clipping.
[0125] It should also be noted that before updating the Actor-Critic network strategy parameters each time, the dynamic clipping parameter value c needs to be updated first. i ; Update the dynamic clipping parameter value c i When the current cropping parameter value c of UAV i is i,old Calculate the new clipping parameter value c of drone i i,new , and the calculated c i,new As the dynamic clipping parameter value c i Substitute the improved actor network objective function
[0126] After updating the Actor-Critic network strategy parameters, c i,new It is recorded as the current clipping parameter value c of drone i i,old , so that the dynamic clipping parameter value c can be updated again before the next update of the Actor-Critic network strategy parameters i .
[0127] Example 3
[0128] Based on the above embodiment, this embodiment provides another specific implementation method of the UAV cluster collaborative data transmission method based on MAPPO and RLNC, as shown in the attached Figure 2 shown.
[0129] In some embodiments, step 3.2 further includes:
[0130] When it is determined that the waiting time does not reach the data packet transmission time limit T, UAV i determines the broadcast control parameter K i (t), according to the broadcast control parameter K i (t) Determine whether to broadcast the coded packet set S obtained after encapsulation i ′(t);
[0131] In the broadcast control parameter K i When (t) = 0, drone i caches the coded packet set S i ′(t) and the received coded packets, and based on the coded packet set S i ′(t) and the received coded packets generate a new coded packet set S″i (t);
[0132] In the broadcast control parameter K i When (t)=1, drone i broadcasts the coded packet set S i ′(t) and cache the received coded packets, and generate a coded packet set S″ based on the received coded packets i (t).
[0133] It should be noted that the broadcast control parameter K i The present invention adopts a competitive approach to determine the value of (t). The drone can obtain its own neighbor set N according to stage 1. i , under the condition of meeting bandwidth and broadcast restrictions, K is determined according to the number of neighbors and the current encoding situation. i The value of (t) (the more the default number of neighbors, the number of coded packets, and the number of source packets that are missing from the neighbors that the user owns, the greater the benefit of the broadcast);
[0134] If the broadcast control parameter K i (t) = 0, drone i caches the current coded packet set S i ′(t) and cache the coded packets heard by itself, forming a new coded packet set S″ at the end of stage three i (t);
[0135] If the broadcast control parameter K i (t) = 1, then broadcast the coded packet set S′ i (t) and cache the coded packets heard by itself, forming a new coded packet set S″ at the end of stage 3 i (t).
[0136] It should be noted that in order to avoid conflicts, each drone is required to have no more than one neighbor to broadcast its encoded data packet:
[0137]
[0138] K i (t) is expressed as:
[0139]
[0140] The present invention broadcasts the control parameter K i (t)∈{0,1} is defined as a binary variable, indicating whether UAV i broadcasts the coded data packet set S generated by it at time t i ′(t).
[0141] It should also be noted that the code packet set S i′(t) is the set of coded data packets formed by drone i after encoding in stage 3. The specific expression can be found in Example 1 and will not be repeated here. Each drone accumulates a set of coded data packets at the end of each time slice to form a larger set S″ i (t); Therefore, the set of coded packets S″ i (t) is the set of coded packets received by drone i after receiving the coded packets broadcast by its neighbors in phase 3, expressed as:
[0142]
[0143] in, Indicates whether UAV j selects source data packet x with priority k k To participate in encoding its network coding package s, K j (t) represents the broadcast control parameters of UAV j, x k represents the source data packet with priority k, m represents the number of priorities, A j (t) represents the source data packet set of UAV j, W k represents the set of source packets with priority k, Indicates the priority distribution of source packets; S j ′(t) represents the coded data packet set formed by drone j after encoding in stage 3, S i ′(t) represents the set of coded data packets formed by UAV i after encoding in stage three.
[0144] In some embodiments, drone i attempts to decode the encoded packet set S″ i (t), decode the participating code Source data set Based on the decoded source data packet set Update the code package set S″ i (t) and source data packet set A i (t).
[0145] It should be noted that in terms of encoding and decoding processing, the present invention will perform bit-by-bit XOR on the data packet to be encoded to obtain a new string of binary numbers, that is, a new encoding packet, and at the same time generate a coefficient matrix M. The encoding packet and the coefficient matrix M are packaged together and handed over to DCMAPPO for encoding and decoding judgment and forwarding processing.
[0146] In a specific implementation, if there are n data packets x1, x2, ..., x n To be encoded, the drone must first obtain an N×n matrix M, in which all elements are from the finite field GF(2 m); N is usually greater than or equal to n. Random linear network coding is essentially a series of matrix operations. The coding process can be expressed as:
[0147]
[0148] The encoded data packet s k As shown below:
[0149] s k =a k1 *x1+a k2 *x2+…+a kn *x n ,k∈[1,N];
[0150] Among them, s k Represents the updated code package set S i The kth encoded packet in .
[0151] Drone pairs of coding packages set S″ i (t) Attempt to decode and cache the remaining encoded packets for future decoding. Decodability can be defined as:
[0152]
[0153] Among them, the subset is the set of decodable packets that satisfy the maximum cardinality, where Is involved in encoding R i (t) is the source data packet set.
[0154] It should be noted that the drone attempts to decode the new set of coded packets S″ i (t), decoded Update S″ i (t) Form a set of coded packets S″′ i (t), in the update After that, the drone calculates the reward r i (t).
[0155] Example 4
[0156] Based on the above embodiments, this embodiment provides another specific implementation method of the UAV cluster collaborative data transmission method based on MAPPO and RLNC.
[0157] In some embodiments, step 2 of the UAV cluster collaborative data transmission method based on MAPPO and RLNC includes:
[0158] Step 2.1, set the observation space of the drone
[0159] The observation space of the drone includes the observation vectors of N drones, and the observation vector of drone i is expressed as:
[0160]
[0161] Among them, A1(t),A2(t),…,A N (t) represents the available source data packet set of each drone (A1(t) represents the available source data packet set of drone 1, and so on, A N (t) represents the set of available source data packets of UAV N), represents the bandwidth of drone i at time t, T sd Indicates the network broadcast time limit of drone i, represents the position of drone i at time t, h(t) represents the number of time slices currently experienced by drone i, Indicates the priority distribution of source data packets;
[0162] Step 2.2, setting the action space of the drone; wherein the action space includes the actions of N drones;
[0163] In each time slice length Δt, the observation vector O is obtained i After (t), drone i independently determines the encoding strategy for all its source data packets and obtains action a i (t);
[0164] Among them, a i (t) includes the encoding selection and broadcast selection of each source data packet of drone i. The encoding selection of 0 indicates that drone i does not select the corresponding source data packet to participate in encoding at time t. The encoding selection of 1 indicates that drone i selects the corresponding source data packet to participate in encoding. The broadcast selection of 0 indicates that drone i does not broadcast the corresponding coded packet at time t. The broadcast selection of 1 indicates that drone i selects to broadcast the corresponding coded packet.
[0165] Step 2.3, setting the reward function of the algorithm on the server, wherein the reward function is expressed as the total reward r(t), Among them, r i (t) represents the total reward of drone i, r i (t) is expressed as:
[0166]
[0167] Where ρ represents the shared reward coefficient. If the current time slice number of drone i is h(t) = h max , then ρ is 1, otherwise it is 0; represents the shared reward value, e krepresents the number of source packets with priority k, w m Indicates the number of source data packets with priority m, represents the adjustable weight of the source data packet with priority k, E[i,j] represents the drone cluster encoding strategy, and C represents the machine learning algorithm evaluation index;
[0168] represents the first penalty value, α represents the weight coefficient of the first penalty value, represents the second penalty value, β represents the weight coefficient of the second penalty value, represents the third penalty value, and γ represents the weight coefficient of the third penalty value.
[0169] in, T represents the data packet transmission time limit, and Δt represents the time slice length.
[0170] It should be noted that the present invention is based on the RLNC-DCMAPPO algorithm, and the problem can be described as a multi-agent decentralized partially observable Markov decision process (Dec-POMDP), which can be defined by a state space S describing the possible states of the environment, an observation space O of each agent, and an action space A, while defining the termination condition of the problem.
[0171] It should also be noted that the shared reward value refers to a part of the reward shared by each drone. All drones work together. When the data packet transmission time limit T ends, the server decodes the received encoded packet and the reward has a lag, so each drone shares this part of the reward;
[0172] The first penalty value Refers to the penalty value that the drone will receive when it chooses to encode a source data packet that it does not have;
[0173] The second penalty value This means that when the bandwidth of the drone is not enough to limit the network broadcast time T sd The penalty value that the drone receives when broadcasting the generated coded packet;
[0174] The third penalty value This means that if the drone broadcasts the coded packet for longer than the network broadcast time limit T sd The penalty value that the drone receives when .
[0175] In a specific implementation manner, the weight coefficient α of the first penalty value, the weight coefficient β of the second penalty value, and the weight coefficient γ of the third penalty value are all in the range of 0 to 1. The second penalty value and the third penalty value All are -100; in practical applications, the specific values of the first penalty value and its weight coefficient α, the second penalty value and its weight coefficient β, and the third penalty value and its weight coefficient γ can also be modified according to actual needs.
[0176] Example 5
[0177] Based on the above embodiments, this embodiment provides a specific implementation of a UAV cluster collaborative data transmission system based on MAPPO and RLNC;
[0178] As attached Figure 3 As shown, the UAV cluster collaborative data transmission system based on MAPPO and RLNC includes a UAV management end and a server management end, the UAV management end includes an acquisition module, a configuration module, a problem description module and a neural network model training module, and the neural network model training module includes a model parameter input unit, a maximum delay judgment unit, a UAV side training unit and a network strategy parameter update unit;
[0179] The acquisition module is used to determine the machine learning algorithm evaluation index C, the drone cluster coding strategy E and the environmental parameters; wherein the environmental parameters include the two-dimensional range of the target area, the number of drones N in the drone cluster self-organizing network, the initial position d of the drone i , the number of source packets and the priority distribution of source packets
[0180] The configuration module is used to configure the transmission process parameters; wherein the transmission process parameters include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt;
[0181] The problem description module is used to define the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and set the observation space, action space and reward function of the UAV;
[0182] The neural network model training module is used to train the pre-built neural network model based on the observation space, action space and reward function of the drone; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm;
[0183] The model parameter input unit is used to input the machine learning algorithm evaluation index C, the drone cluster coding strategy W, the environmental parameters and the transmission process parameters into the pre-built neural network model respectively;
[0184] The maximum delay judgment unit is used for the UAV to judge whether the waiting time reaches the data packet transmission time limit T at the beginning of each time slice;
[0185] The UAV side training unit is used to obtain the corresponding observation vector O when the UAV determines that the waiting time has not reached the data packet transmission time limit T i (t), the output corresponds to action a i (t); It is also used to determine whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then use the pre-configured random linear network coding to encode the action a i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packages S i ′(t), and based on the action a i (t) Update the drone cluster coding strategy E; also used to calculate the current round reward r i (t);
[0186] The network policy parameter updating unit is used to read the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic;
[0187] The server management end is used to decode the cached coded packets when the drone determines that the waiting time reaches the data packet transmission time limit T, deliver the decoded data packets to the relevant machine learning algorithm for processing and calculate the reward r for this round. i (t), and the calculated reward r i (t) Return to the corresponding drone so that the corresponding drone combines the received reward r i (t) Generate and store a new state group (S t , a i (t), r i(t)); It is also used to reset the self-organizing network environment of the drone and based on the actor network objective function of the improved multi-agent environment Update the Actor-Critic network strategy parameters.
[0188] In some embodiments, the improved actor network objective function It is expressed as:
[0189]
[0190] in, represents the objective function of the actor network of the improved multi-agent environment, B represents the number of state groups sampled from the experience buffer;
[0191] Indicates taking and The minimum value in represents the current ratio of new and old strategies of drone i, represents the estimator of the advantage function at time t, 1-∈ represents the lower bound of clipping, 1+∈ represents the upper bound of clipping, N is the number of drones; σ represents the hyperparameter for adjusting the entropy of the strategy, Indicates that the current policy function is in state Entropy under i Indicates the dynamic cropping parameter value of UAV i.
[0192] In some embodiments, the drone-side training unit is further used to:
[0193] When the waiting time does not reach the data packet transmission time limit T, determine the broadcast control parameter K i (t), according to the broadcast control parameter K i (t) Determine whether to broadcast the coded packet set S′ obtained after encapsulation i (t);
[0194] In the broadcast control parameter K i When (t)=0, cache the coded packet set S′ i (t) and the received coded packets, and based on the coded packet set S i ′(t) and the received coded packets generate a new coded packet set S″ i (t);
[0195] In the broadcast control parameter K i When (t)=1, the coded packet set S is broadcasted. i ′(t) and cache the received coded packets, and generate a coded packet set S″ based on the received coded packets i (t).
[0196] In some embodiments, the drone-side training unit is further used to:
[0197] Try to decode the coded packet set S″ i (t), decode the participating code Source data set Based on the decoded source data packet set Update the code package set S″ i (t) and source data packet set A i (t).
[0198] In some embodiments, the problem description module includes an observation space setting unit, an action space setting unit, and a reward function setting unit, wherein:
[0199] The observation space setting unit is used to set the observation space of the drone; wherein the observation space of the drone includes observation vectors of N drones, and the observation vector of drone i is expressed as:
[0200]
[0201] Among them, A1(t),A2(t),…,A N (t) represents the available source data packet set of each drone, Indicates the default bandwidth of the drone, T sd Indicates the network broadcast time limit of drone i, represents the position of drone i at time t, h(t) represents the number of time slices currently experienced by drone i, Indicates the priority distribution of source data packets;
[0202] The action space setting unit is used to set the action space of the drone; wherein the action space includes the actions of N drones; in each time slice length Δt, an observation vector O is obtained i After (t), drone i independently determines the encoding strategy for all its source data packets and obtains action a i (t); where a i (t) includes the encoding selection and broadcast selection of each source data packet of drone i. The encoding selection of 0 indicates that drone i does not select the corresponding source data packet to participate in encoding at time t. The encoding selection of 1 indicates that drone i selects the corresponding source data packet to participate in encoding. The broadcast selection of 0 indicates that drone i does not broadcast the corresponding coded packet at time t. The broadcast selection of 1 indicates that drone i selects to broadcast the corresponding coded packet.
[0203] The reward function setting unit is used to set a reward function, wherein the reward function is expressed as a total reward r(t), Among them, ri (t) represents the total reward of drone i, r i (t) is expressed as:
[0204]
[0205] Where ρ represents the shared reward coefficient. If the current time slice number of drone i is h(t) = h mac , then ρ is 1, otherwise it is 0; represents the shared reward value, w k represents the number of source packets with priority k, w m Indicates the number of source data packets with priority m, represents the adjustable weight of the source data packet with priority k, E[i,j] represents the drone cluster encoding strategy, and C represents the machine learning algorithm evaluation index;
[0206] represents the first penalty value, α represents the weight coefficient of the first penalty value, represents the second penalty value, β represents the weight coefficient of the second penalty value, represents the third penalty value, and γ represents the weight coefficient of the third penalty value.
[0207] It should be noted that the present invention takes into account the problem of reliable information transmission in unmanned aerial vehicle self-organizing networks with limited resources in actual scenarios and the scenario in which massive data is delivered by machine learning algorithms for data processing, and pays more attention to the impact of the encoding and decoding capabilities of unmanned aerial vehicles on the reliability and timeliness of transmitted data; when transmitting perception data, the use of unmanned aerial vehicle clusters to deploy self-organizing networks improves the efficiency of task completion; in terms of simulation scenarios, more practical scenarios with limited resources of unmanned cluster self-organizing networks are considered, and more attention is paid to the requirements for the encoding and decoding capabilities of unmanned aerial vehicle cluster self-organizing networks in the process of executing tasks; in terms of the free movement of unmanned aerial vehicles, the use of the broadcast characteristics of unmanned aerial vehicle clusters is considered to solve the topological changes brought about by free movement.
[0208] In order to solve the problem that RLNC cannot be directly combined with DCMAPPO, the present invention adjusts RLNC according to the characteristics of RLNC and DCMAPPO so as to make it more compatible with DCMAPPO.
[0209] It should also be noted that, in view of the shortcomings of the traditional Actor-Critic network policy gradient update method and the practical problems to be solved, the present invention innovatively proposes a Multi-dual-clip method, which realizes the self-adaptation of the upper and lower bounds of clipping of different agents by adjusting parameters. The present invention introduces and improves a dual clip method, improves and adjusts its basic update method, can better adapt to the multi-agent environment, help the strategy converge faster, and further ensure the timeliness of the data.
[0210] It should also be noted that this patent combines the DCMAPPO algorithm and the network coding method, and innovatively proposes the RLNC-DCMAPPO method. Aiming at the efficiency of the back-end server-related machine learning algorithm, it designs an efficient transmission optimization solution for drone clusters suitable for machine learning. Through joint coding decisions, the optimal coding strategy for the source data packet is obtained.
[0211] Example 6
[0212] Based on the above embodiments, this embodiment provides a specific implementation of a computer device; the computer device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0213] Memory, used to store computer programs;
[0214] The processor is used to implement the UAV cluster collaborative data transmission method based on MAPPO and RLNC as in Example 1, 2, 3 or 4 when executing the program stored in the memory.
[0215] Based on the above embodiments, this embodiment also provides a specific implementation of a readable storage medium, which stores instructions. When executed by one or more processors, the processors execute the UAV cluster collaborative data transmission method based on MAPPO and RLNC as in Embodiment 1, 2, 3 or 4.
[0216] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0217] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0218] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0219] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A UAV cluster collaborative data transmission method based on MAPPO and RLNC, It is characterized in that include: Step 1: Each UAV obtains the machine learning algorithm evaluation index C, the UAV cluster coding strategy E and the environmental parameters; the environmental parameters include the two-dimensional range of the target area, the number of UAVs N in the UAV cluster self-organizing network, the initial position d of the UAV i , the number of source packets and the priority distribution of source packets Each UAV configures the transmission process parameters respectively; the transmission process parameters of UAV i include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt; Step 2: Each UAV defines the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and sets the observation space, action space and reward function of the UAV; Step 3: Based on the observation space, action space and reward function of the drone, each drone trains the pre-built neural network model respectively; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm; Step 3.1, UAV i inputs the machine learning algorithm evaluation index C, the UAV cluster coding strategy E, the environmental parameters and the transmission process parameters into the pre-built neural network model respectively; Step 3.2, at the beginning of each time slice, UAV i determines whether the waiting time reaches the data packet transmission time limit T; If yes, then execute: the server decodes the cached encoded packet and calculates the reward r for this round i (t), and the calculated reward r i (t) Return to the corresponding drone i; drone i reads the corresponding current environment state S t and action a i (t), combined with the received reward r i (t) Get a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience playback buffer; UAV i resets the UAV self-organizing network environment and uses the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic; If not, execute: UAV i obtains the corresponding observation vector O i (t), the output corresponds to action a i (t); UAV i determines whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then use the pre-configured random linear network coding to encode the action a i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packets S′ i (t), and based on the action a i (t) updating the drone cluster coding strategy E; Drone i calculates the reward r for this round i (t); Drone i reads the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic; Step 4: After each drone in the drone cluster trains the pre-built neural network model, the optimal encoding strategy for the drone cluster that senses the source data packet is obtained.
2. The UAV cluster collaborative data transmission method based on MAPPO and RLNC according to claim 1, It is characterized in that Improved actor network objective function It is expressed as: in, represents the objective function of the actor network of the improved multi-agent environment, B represents the number of state groups sampled from the experience buffer; Indicates taking and The minimum value in represents the current new and old strategy ratio of drone i, represents the estimator of the advantage function at time t, 1-∈ represents the lower bound of clipping, 1+∈ represents the upper bound of clipping, N is the number of drones; σ represents the hyperparameter for adjusting the entropy of the strategy, Indicates that the current policy function is in state Entropy under i Indicates the dynamic cropping parameter value of UAV i.
3. The UAV cluster collaborative data transmission method based on MAPPO and RLNC according to claim 1, It is characterized in that The step 3.2 also includes: When it is determined that the waiting time does not reach the data packet transmission time limit T, UAV i determines the broadcast control parameter K i (t), according to the broadcast control parameter K i (t) Determine whether to broadcast the coded packet set S′ obtained after encapsulation i (t); In the broadcast control parameter K i When (t) = 0, drone i caches the coded packet set S′ i (t) and the received coded packets, and based on the coded packet set S′ i (t) and the received coded packets generate a new coded packet set S″ i (t); In the broadcast control parameter K i When (t)=1, drone i broadcasts the coded packet set S′ i (t) Cache the received coded packets and generate a coded packet set S″ based on the received coded packets i (t).
4. The UAV cluster collaborative data transmission method based on MAPPO and RLNC according to any one of claims 1 to 3, It is characterized in that The step 2 comprises: Step 2.1, setting the observation space of the drone; wherein the observation space of the drone includes the observation vectors of N drones, and the observation vector of drone i is expressed as: Among them, A 1 (t), A 2 (t), ..., A N (t) represents the available source data packet set of each drone, represents the bandwidth of drone i at time t, T sd Indicates the network broadcast time limit of drone i, represents the position of drone i at time t, h(t) represents the number of time slices currently experienced by drone i, Indicates the priority distribution of source data packets; Step 2.2, set the action space of the drone; In each time slice length Δt, the observation vector O is obtained i After (t), drone i independently determines the encoding strategy for all its source data packets and obtains action a i (t); where a i (t) includes the encoding selection and broadcast selection of each source data packet of drone i. The encoding selection of 0 indicates that drone i does not select the corresponding source data packet to participate in encoding at time t. The encoding selection of 1 indicates that drone i selects the corresponding source data packet to participate in encoding. The broadcast selection of 0 indicates that drone i does not broadcast the corresponding coded packet at time t. The broadcast selection of 1 indicates that drone i selects to broadcast the corresponding coded packet. Step 2.3, setting a reward function, wherein the reward function is expressed as a total reward r(t), Among them, r i (t) represents the total reward of drone i, r i (t) is expressed as: Where ρ represents the shared reward coefficient. If the current time slice number of drone i is h(t) = h max , then ρ is 1, otherwise it is 0; represents the shared reward value, w k represents the number of source packets with priority k, w m Indicates the number of source data packets with priority m, represents the adjustable weight of the source data packet with priority k, E[i, j] represents the drone cluster encoding strategy, and C represents the machine learning algorithm evaluation index; represents the first penalty value, α represents the weight coefficient of the first penalty value, represents the second penalty value, β represents the weight coefficient of the second penalty value, represents the third penalty value, and γ represents the weight coefficient of the third penalty value.
5. A UAV cluster collaborative data transmission system based on MAPPO and RLNC, It is characterized in that It includes a drone management end and a server management end, wherein the drone management end includes an acquisition module, a configuration module, a problem description module and a neural network model training module, and the neural network model training module includes a model parameter input unit, a maximum delay judgment unit, a drone side training unit and a network strategy parameter update unit; The acquisition module is used to determine the machine learning algorithm evaluation index C, the drone cluster coding strategy E and the environmental parameters; wherein the environmental parameters include the two-dimensional range of the target area, the number of drones N in the drone cluster self-organizing network, the initial position d of the drone i , the number of source packets and the priority distribution of source packets The configuration module is used to configure the transmission process parameters; wherein the transmission process parameters include the source data packet set A i , code package set S i , UAV radio coverage range D i 、Drone default bandwidth b i , data packet transmission time limit T, network broadcast time limit T sd and time slice length Δt; The problem description module is used to define the UAV cluster cooperative data transmission problem as a multi-agent decentralized partially observable Markov decision process, and set the observation space, action space and reward function of the UAV; The neural network model training module is used to train the pre-built neural network model based on the observation space, action space and reward function of the drone; wherein the pre-built neural network model adopts the improved multi-agent proximal strategy optimization algorithm; The model parameter input unit is used to input the machine learning algorithm evaluation index C, the drone cluster encoding strategy E, the environmental parameters and the transmission process parameters into a pre-built neural network model respectively; The maximum delay judgment unit is used for the UAV to judge whether the waiting time reaches the data packet transmission time limit T at the beginning of each time slice; The UAV side training unit is used to obtain the corresponding observation vector O when the UAV determines that the waiting time has not reached the data packet transmission time limit T i (t), the output corresponds to action a i (t); It is also used to determine whether all the data packets selected for encoding belong to the source data packet set A i , if all of them belong to, then the action a is encoded using a pre-configured random linear network i (t) encapsulate and encapsulate the coded packet set S according to the encapsulation result i Update to get a new set of code packets S′ i (t), and based on the action a i (t) Update the drone cluster coding strategy E; also used to calculate the current round reward r i (t); The network policy parameter updating unit is used to read the corresponding current environment state S t and action a i (t), and obtain a new state group (S t , a i (t), r i (t)), the new state group (S t , a i (t), r i (t)) is stored in the experience replay buffer; the actor network objective function based on the improved multi-agent environment Update the network strategy parameters of Actor-Critic; The server management end is used to decode the cached coded packets and calculate the reward r for this round when the drone determines that the waiting time reaches the data packet transmission time limit T. i (t), and the calculated reward r i (t) Return to the corresponding drone so that the corresponding drone combines the received reward r i (t) Generate and store a new state group (S t , a i (t), r i (t)); It is also used to reset the self-organizing network environment of the drone and based on the actor network objective function of the improved multi-agent environment Update Acto r -Criti c The network policy parameters.
6. The UAV cluster collaborative data transmission system based on MAPPO and RLNC according to claim 5, It is characterized in that Improved actor network objective function It is expressed as: in, represents the objective function of the actor network of the improved multi-agent environment, B represents the number of state groups sampled from the experience buffer; Indicates taking and The minimum value in represents the current new and old strategy ratio of drone i, represents the estimator of the advantage function at time t, 1-∈ represents the lower bound of clipping, 1+∈ represents the upper bound of clipping, N is the number of drones; σ represents the hyperparameter for adjusting the entropy of the strategy, Indicates that the current policy function is in state Entropy under i Indicates the dynamic cropping parameter value of UAV i.
7. The UAV cluster collaborative data transmission system based on MAPPO and RLNC according to claim 5, It is characterized in that The drone-side training unit is also used for: When the waiting time does not reach the data packet transmission time limit T, determine the broadcast control parameter K i (t), according to the broadcast control parameter K i (t) Determine whether to broadcast the coded packet set S′ obtained after encapsulation i (t); In the broadcast control parameter K i When (t)=0, cache the coded packet set S′ i (t) and the received coded packets, and based on the coded packet set S′ i (t) and the received coded packets generate a new coded packet set S″ i (t); In the broadcast control parameter K i When (t)=1, the coded packet set S′ is broadcasted. i (t) Cache the received coded packets and generate a coded packet set S″ based on the received coded packets i (t).
8. The UAV cluster collaborative data transmission system based on MAPPO and RLNC according to any one of claims 5 to 7, It is characterized in that The problem description module includes an observation space setting unit, an action space setting unit and a reward function setting unit, wherein: The observation space setting unit is used to set the observation space of the drone; wherein the observation space of the drone includes observation vectors of N drones, and the observation vector of drone i is expressed as: Among them, A 1 (t), A 2 (t), ..., A N (t) represents the available source data packet set of each drone, Indicates the default bandwidth of the drone, T sd Indicates the network broadcast time limit of drone i, represents the position of drone i at time t, h(t) represents the number of time slices currently experienced by drone i, Indicates the priority distribution of source data packets; The action space setting unit is used to set the action space of the drone; wherein the action space includes the actions of N drones; in each time slice length Δt, an observation vector O is obtained i After (t), drone i independently determines the encoding strategy for all its source data packets and obtains action a i (t); where a i (t) includes the encoding selection and broadcast selection of each source data packet of drone i. The encoding selection of 0 indicates that drone i does not select the corresponding source data packet to participate in encoding at time t. The encoding selection of 1 indicates that drone i selects the corresponding source data packet to participate in encoding. The broadcast selection of 0 indicates that drone i does not broadcast the corresponding coded packet at time t. The broadcast selection of 1 indicates that drone i selects to broadcast the corresponding coded packet. The reward function setting unit is used to set a reward function, wherein the reward function is expressed as a total reward r(t), Among them, r i (t) represents the total reward of drone i, r i (t) is expressed as: Where ρ represents the shared reward coefficient. If the current time slice number of drone i is h(t) = h max , then ρ is 1, otherwise it is 0; represents the shared reward value, w k represents the number of source packets with priority k, w m Indicates the number of source data packets with priority m, represents the adjustable weight of the source data packet with priority k, E[i, j] represents the drone cluster encoding strategy, and C represents the machine learning algorithm evaluation index; represents the first penalty value, α represents the weight coefficient of the first penalty value, represents the second penalty value, β represents the weight coefficient of the second penalty value, represents the third penalty value, and γ represents the weight coefficient of the third penalty value.
9. A computer device, Features: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the UAV cluster collaborative data transmission method based on MAPPO and RLNC as described in any one of claims 1 to 4 when executing the program stored in the memory.
10. A readable storage medium, Features: Instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the UAV cluster collaborative data transmission method based on MAPPO and RLNC as described in any one of claims 1 to 4.
Citation Information
Cited By
Unmanned aerial vehicle cluster control and navigation method based on MAPPO
CN119248009A
An emergency video intelligent monitoring system based on multi-source data fusion
CN119766970A
An emergency video intelligent monitoring system based on multi-source data fusion
CN119766970B
Maneuvering strategy layered training method oriented to multi-satellite orbit interaction
CN119805944A
Unmanned cluster message forwarding time control method based on communication data security modeling
CN119906959A
