Unmanned aerial vehicle track and task unloading optimization method based on multi-agent learning
Through the multi-agent learning method, the MADDPG architecture is used to train the neural network of UAVs and terminals, and collaborative decision-making optimizes the UAV trajectory and task offloading of the air-ground 6G network. This solves the complexity of UAV trajectory planning and task offloading in the air-ground 6G network, and achieves Long-term energy consumption minimization and queue stability improve resource efficiency.
Patent Information
- Application Number
- CN202310334475.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The optimization problem of UAV trajectory planning and task offloading in air-ground 6G networks is complex, especially because its solution involves a mixed action space of continuous and discrete variables, and existing methods are difficult to consider the limitations of long-term optimization and global state information, resulting in high network energy consumption. and queue delay constraints are difficult to satisfy.
Using a method based on multi-agent learning, the neural network of the UAV and terminal is trained through the MADDPG architecture, transforming the long-term queue delay constraint into a single-slot online optimization problem, designing the action space and reward function, using Lyapunov optimization theory and Marko The UAV decision-making process realizes collaborative decision-making of UAV trajectory and task offloading, and only optimizes based on local observations.
It minimizes the long-term energy consumption of air-to-ground 6G networks, meets queue stability and delay constraints, improves resource efficiency, and improves the stability of task queues and the processing efficiency of computing-intensive tasks through collaborative decision-making.
Smart Images

Figure FT_1 
Figure FT_2 
Figure FT_3
Abstract
Description
Technical Field
[0001] The present invention relates to the field of air-ground integrated networks, and in particular to a method for optimizing unmanned aerial vehicle (UAV) trajectory and task offloading based on multi-agent learning. Background Art
[0002] In recent years, establishing a reliable communication platform for industrial IoT terminals in remote areas to support the collection, upload and processing of massive industrial sensor data is a problem that needs to be solved urgently. The air-to-ground 6G network can effectively expand the traditional ground network by deploying communication, edge computing and storage capabilities in the air between the terminal and the cloud center. UAV has the advantages of high line-of-sight probability and low path loss, and can provide flexible and high-quality communication coverage for ground terminals. In addition, by configuring an onboard server, UAV acts as a mobile airborne small base station and performs edge computing, which is a research hotspot at this stage.
[0003] However, achieving efficient task offloading of air-ground 6G networks still faces severe challenges. First, UAV trajectory planning is a continuous non-convex optimization problem, and its solution is extremely complex; secondly, the task offloading decision of the terminal contains binary variables, and the co-existence of continuous and discrete variables leads to the problem of mixed action space, which also makes the solution of the optimization problem very difficult; in addition, in the computationally intensive industrial Internet of Things scenario, long-term queue delay constraints are coupled with short-term decisions; at the same time, it is impractical to obtain the global state information of the air-ground 6G network, and UAVs and terminals can only make decisions based on local observations.
[0004] Existing research on UAV trajectory planning and task offloading rarely considers long-term optimization problems, and most of the methods used are based on solutions based on global state information, which are difficult to apply in actual networks. To this end, the present invention proposes a UAV trajectory and task offloading optimization method based on multi-agent learning, which can minimize the long-term energy consumption of air-to-ground 6G networks. Summary of the invention
[0005] The present invention discloses a method for optimizing UAV trajectory and task offloading based on multi-agent learning, which is mainly aimed at the long-term joint optimization of UAV flight trajectory and ground terminal task offloading decision in air-ground 6G network. The steps of the method are as follows: Step 1, derive the energy consumption expression of terminal task offloading according to the air-ground 6G network model, derive the queue update formula by using the terminal-side task offloading and the edge computing situation on the UAV side, and describe the UAV trajectory and task offloading optimization problem with the minimization of the long-term average energy consumption of the network; Step 2, according to the Lyapunov optimization theory, the problem containing the long-term queue delay constraint is converted into a series of single-time slot online optimization problems, and then described as a Markov decision process; Step 3, regard UAV and terminal as two types of agents, and use the MADDPG architecture to train the neural network of the agent, so as to promote the collaboration between agents; Step 4, based on the well-trained MADDPG framework, UAV and terminal can quickly make optimized trajectory planning and task offloading decisions based only on local observations. The present invention effectively solves the problem of mixed action space through a reasonable deep reinforcement learning architecture design, thereby efficiently solving the long-term UAV trajectory and task offloading optimization problem and improving the resource efficiency of the air-ground 6G network. The specific process is as follows: The present invention proposes a UAV-assisted air-to-ground 6G network system model including UAVs and ground terminals, whose position vectors are expressed as and , UAV in the time slot The direction vector of flight is , then UAV The trajectory can be expressed as
[0006] Terminal task offloading decision-making The unloading rate and energy consumption of the terminal can be calculated as
[0007] in Refers to the channel bandwidth; Refers to the terminal transmit power; refer to right The channel gain of the ground-to-sky link can be calculated by substituting the location information into the channel model of the ground-to-sky link; is the noise power; for The task offloading queue is backlogged.
[0008] The update formula for terminal-side task offloading and UAV-side edge computing queue is:
[0009] in for The throughput of task offloading; Arrival of tasks for the terminal; Allocate resources for edge computing. To calculate the density.
[0010] The UAV trajectory planning and task offloading problem of minimizing long-term network energy consumption can be described as follows: : , , : , , : , : , : , : , , , : , , The optimization variables are the flight direction vector of the UAV and the task offloading of the terminal; and Refers to task offloading constraints; Refers to the UAV trajectory constraints; Refers to the long-term queue stability constraint; Refers to the long-term queue delay constraint.
[0011] The solution to this problem can be divided into the following steps: 1) Based on Lyapunov optimization theory, the constraints Transformed into the following virtual queue:
[0012] The upper bound of the drift plus penalty function is derived and the problem is transformed into the following single-slot online optimization problem: in .
[0013] 2) Describe the optimization problem as a Markov decision process , UAV and terminal as the process agents, then the observation space The specific definition of 6G network in the air is
[0014] Action Space is defined as follows:
[0015] in For Terminal To UAV The probability of task offloading. This action space design can transform the discrete variables of task offloading into continuous variables, effectively solving the problem of mixed action space. After that, the actual task offloading decision of the terminal can be obtained by sampling according to the probability distribution. The design is as follows:
[0016] in and Both are binary variables, reflecting UAV Is the constraint violated? and , they will be punished accordingly or , otherwise there will be no punishment.
[0017] 3) Based on the MADDPG architecture, any agent Both have actor networks Used to select an action based on the current state space , critic network Responsible for evaluating global observations Select Global Actions In addition, MADDPG uses experience replay technology to replay the experience tuples obtained from each interaction between the agent and the environment. Stored in the replay buffer, where For global returns, random experience tuples from the buffer are used to update the neural network weights during each training, thereby breaking the correlation of training data; each agent has another target actor network With the target critic network , whose structure is the same as the original network, but the weight update is much slower than the original network, which can prevent training oscillations.
[0018] The neural network of the agent is divided into input layer, hidden layer and output layer, and all adopt a fully connected structure. Specifically, the hidden layer of the network uses the ReLU activation function, the output layer of the UAV actor network uses the tanh activation function to obtain the flight direction angle, and the actor network of the terminal uses softmax activation to output the probability of selecting each UAV for task offloading; the critic network of each agent takes global observations and actions as input and outputs state-action values.
[0019] 4) During the training phase of MADDPG, the agent accumulates historical experience through continuous interaction with the environment and back-propagates to update the neural network weights. At the same time, random noise needs to be added to the strategy to stimulate the agent's exploration, that is, ,in is the noise that follows Gaussian distribution. After that, the neural network is trained by stochastic gradient descent, and the weights of the actor and critic networks are updated by minimizing the following loss functions:
[0020] 5) Based on the well-trained MADDPG framework, in each time slot, the UAV and the terminal can quickly make optimized trajectory planning and task offloading decisions based only on local observations. The terminal can select a suitable edge server for task offloading. At the same time, the UAV reasonably adjusts the flight trajectory to provide the terminal with better edge computing services, thereby minimizing long-term network energy consumption.
[0021] The technical method of the present invention has the following advantages: First, the UAV trajectory planning and task offloading decision of the air-to-ground 6G network are jointly optimized to achieve the goal of minimizing network energy consumption and meet the long-term queue stability and queue delay constraints. Secondly, a multi-agent deep reinforcement learning architecture is used to train the decision-making of UAVs and terminals. UAVs provide better edge computing services for terminals by adjusting the flight direction of each time slot. Terminals reasonably select task offloading objects and ensure that their own tasks are processed as quickly as possible, thereby achieving long-term stability of the task queue. Finally, after obtaining a fully trained MADDPG framework through the method of the present invention, UAVs and ground terminals can make decisions quickly and collaborate with each other to promote efficient processing of delay-sensitive and computationally intensive tasks.
[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical methods in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 This is the curve of the change of energy consumption of the air-to-ground 6G network relative to the time slot.
[0025] Figure 2 The curve of MADDPG training return relative to the round change.
[0026] Figure 3 The curve of the backlog of the task offloading queue relative to the time slot.
[0027] Figure 4 It is the curve of terminal rate changing relative to time slot. Implementation
[0028] The present invention proposes a method for optimizing UAV trajectory and task offloading based on multi-agent learning. The embodiments are described in detail below in conjunction with the accompanying drawings.
[0029] The specific implementation scenario of the present invention is a simulated remote area of 1 km × 1 km, including 10 UAVs and a large number of randomly distributed ground terminals. The altitude of the UAV is fixed at 90 m, the flight speed is 10 m / s, and the safe distance between any two UAVs is 5 m.
[0030] The simulation time dimension of the present invention is 1000, the length of each time slot is 0.2 s, and the method of the present invention is executed in each time slot and obtains the optimization result. The simulation parameters are selected as follows: the communication channel between the terminal and HAPS and UAV adopts the probabilistic path loss model, in which the carrier frequency is 0.1 GHz, the environmental parameters are 4.88 and 0.43, and the additional path loss distribution of line-of-sight and non-line-of-sight is 0.1 dB and 21 dB; the task of the terminal is to obey [16.8, 25.2]×10 4 The uniform distribution of bits, the available computing resources of the UAV are [79.2, 118.8] GHz respectively; the terminal power is 23 dBm, the channel bandwidth is 1 MHz, and the noise power is -144 dBm; the parameters related to the calculation are and Take 1000 and 5×10 -26 ; Weight parameter For 10 6 The hyperparameters of MADDPG are as follows: the discount factor is 0.95, the learning rate is 10 -6, the target network update rate is 0.005, and the penalties for violating the position constraint and the safety distance constraint are 50 and 100 respectively.
[0031] The specific implementation steps are as follows: According to the distribution of terminals and UAVs in the scenario, the channel gains of all communication links are calculated, and the required implementation parameters are generated, and then the energy consumption expression of the air-to-ground 6G network is listed.
[0032] Based on Lyapunov optimization, the problem is transformed and the objective function and constraints of the transformed problem are established. In addition, a series of single-slot online optimization problems are re-described as Markov decision processes, and the observation space, action space and reward function are generated. After that, the MADDPG framework is established to initialize the neural networks of the intelligent UAV and the terminal.
[0033] Entering the training phase of MADDPG, the agent interacts with the air-ground 6G network environment, that is, the terminal selects the task offloading object based on the actor network, and the UAV selects the flight trajectory based on the actor network. After that, each agent obtains a reward, and the system state transitions to the next time slot. At the same time, each agent sends the experience tuple generated in this time slot to the next time slot. Stored in experience buffer.
[0034] Using the experience replay technique, experience tuples are randomly extracted from the experience buffer during each training, and the target network outputs the target action and evaluation value to calculate the error function of the actor and critic networks. After that, the weights of the neural network are updated according to the stochastic gradient descent method. The training process stops when the number of training rounds reaches the set upper limit.
[0035] Entering the execution phase of MADDPG, based on the fully trained MADDPG framework, the actor network of the UAV and the terminal is forward propagated in each time slot, and the optimized trajectory planning and task offloading decisions are quickly made according to local observations. After that, the task offloading, edge computing and virtual queue are updated according to the optimization results of the time slot.
[0036] The above optimization method is executed in each time slot until the optimization time ends.
[0037] Figure 1The change of air-to-ground 6G network energy consumption relative to time slot is shown, and the curve shows a stable trend. The reason is that the well-trained terminal and UAV can directly select the optimal decision. At the same time, the network energy consumption also fluctuates according to the arrival of the terminal's task. From the comparison between the methods, the energy consumption of the method of the present invention is significantly lower than that of the fixed UAV trajectory, random task offloading and DQN method. The reason is that the method of the present invention jointly optimizes multiple groups of variables, reduces data transmission and energy consumption, and thus achieves the best energy performance. Numerical results show that when the time slot is 800, the energy consumption of the method of the present invention is 53.73%, 64.36% and 30.89% lower than that of the three benchmark methods, respectively.
[0038] Figure 2 The figure shows the changes in the cumulative returns of the agents during the MADDPG training process relative to the rounds. It can be seen that the curve shows an upward trend at the beginning and then basically stabilizes. This is because the UAV and the terminal learn the flight trajectory and task offloading decisions through exploration and continuous interaction with the environment. When the two learn the optimal strategy, the MADDPG training converges.
[0039] Figure 3 The change of the backlog of the task offloading queue with time slots is shown. It can be seen that after the joint optimization of task offloading and UAV trajectory by the method of the present invention, the task queue can be in a long-term stable state and the backlog is lower than the baseline method. In addition, the reason why the method of the present invention performs better than the Deep Q Network (DQN) method is that DQN trains each agent independently and cannot promote the collaboration between agents through a centralized training architecture. At the same time, the UAV trajectory output by DQN is discretized and cannot be accurately adjusted.
[0040] Figure 4 The change of the terminal rate relative to the time slot is shown. It can be seen that the throughput optimized by the method of the present invention increases rapidly and then remains stable. This is because the UAV quickly adjusts to the optimal trajectory, thereby providing the terminal with the best edge computing service. The rate of the method proposed in the present invention is improved by 8.01%, 19.90% and 1.52% compared with the fixed trajectory, random task offloading and DQN methods, which proves that the proposed method has excellent performance in optimizing terminal rate.
[0041] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical method formed by a specific combination of the above technical features, but should also cover other technical methods formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, a technical method formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).
Claims
1. The present invention discloses a UAV trajectory and task offloading optimization method based on multi-agent learning, which is mainly aimed at the long-term joint optimization of UAV flight trajectory and ground terminal task offloading decision in air-to-ground 6G network. The steps of the method are as follows: Step 1: Based on the air-ground 6G network model, the energy consumption expression of terminal task offloading is derived, and the queue update formula is derived using the task offloading on the terminal side and the edge computing on the drone side to describe the UAV trajectory and task offloading optimization problem that minimizes the long-term average energy consumption of the network; Step 2: According to Lyapunov optimization theory, the problem with long-term queue delay constraints is transformed into a series of single-slot online optimization problems. The optimization problem is then described as a Markov decision process, and the observation space, action space, and reward function are defined respectively. Step 3: Consider UAV and terminal as two types of intelligent agents, collect experience through continuous interaction between the intelligent agents and the environment, and use the MADDPG architecture to train the neural network of the intelligent agents to obtain the optimal strategy to maximize the cumulative return, thereby promoting collaboration between intelligent agents; Step 4: Based on the well-trained MADDPG framework, UAVs and terminals can quickly make optimized trajectory planning and task offloading decisions based only on local observations.
2. According to the multi-agent learning-based UAV trajectory and task offloading optimization method of claim 1, the single-time slot online optimization problem in step 2 can be described as follows: : , , : , , : , : , : , in, Refers to UAVs, For the terminals, the total number of UAVs and terminals are and , Represents the time slot number, is the time slot length; Refers to UAV trajectory planning, for Time slot The direction vector of the flight; Refers to the terminal task offloading strategy. represent Towards Uninstall tasks, otherwise ; Refers to the drone position vector; Refers to the task offloading throughput of the terminal; and They refer to task offloading and task backlog in edge computing queues, respectively. Represents the virtual queue corresponding to the queue delay, Refers to the average number of tasks arriving at the terminal; is the transmitting power; is the task offloading rate; Refers to the parameter that balances queue stability and energy consumption; and Respectively Definition constraints: a terminal can only offload tasks to one UAV; It means that the UAV should fly in the designated area; Refers to the UAV collision constraints, is the relationship between the UAV position and direction vector, Refers to the UAV speed.
3. According to the single time slot online optimization problem described in claim 2, the solving steps are: First, the optimization problem is described as consisting of Markov decision process with multiple agents ,in , and They refer to observation space, action space and reward function respectively; secondly, based on the MADDPG architecture, any intelligent agent Both have actor networks Making decisions, critic network Responsible for evaluation, including and is the neural network weight, and For global observation and decision-making, the agent uses experience replay technology to randomly extract experience tuples during each training, and then the weights of the actor and critic networks are updated by minimizing the following loss functions: in and Refers to the output of the target actor and critic network, is the discount factor; finally, based on the well-trained MADDPG framework, in each time slot, UAVs and terminals can quickly make optimized trajectory planning and task offloading decisions based only on local observations, thereby minimizing long-term network energy consumption.
4. According to the method, a reasonable deep reinforcement learning architecture design can effectively solve the mixed action space problem, thereby efficiently solving the long-term UAV trajectory and task offloading optimization problem. The well-trained terminal can select a suitable edge server for task offloading. At the same time, the UAV reasonably adjusts the flight trajectory to provide the terminal with better edge computing services, significantly improving the resource efficiency of the air-to-ground 6G network.
Citation Information
Cited By
NOMA enabled air-to-ground content delivery network track and resource optimization method
CN118741532A
NOMA-enabled air-ground content distribution network trajectory and resource optimization method
CN118741532B
Unmanned aerial vehicle assisted railway sensing data collection and calculation unloading method and system
CN119383580A
STAR-RIS-assisted UAV-MEC network joint optimization method
CN119815374A
Unmanned aerial vehicle track generation method and system based on observability manifold
CN121635406A
