A method for low-altitude unmanned aerial vehicle task offloading and resource allocation based on airspace safety and link reliability perception
By decomposing the task offloading and resource allocation problem and combining airspace security, link reliability and return-to-home energy models, the task offloading strategy for low-altitude UAVs is optimized, which solves the problems of insufficient airspace security, link reliability and return-to-home energy in the existing technology, and realizes efficient and safe task offloading and resource allocation.
Patent Information
- Application Number
- CN202610984726.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-03
- Publication Date
- 2026-11-20
AI Technical Summary
Existing unmanned aerial vehicle (UAV) mission offloading methods fail to effectively consider airspace safety, link reliability, and return-to-home energy, resulting in infeasible offloading results, high latency, and low resource utilization efficiency.
Adopting the Stackelberg hierarchical optimization approach, the task offloading and computational resource allocation problem is decomposed into an upper-layer task offloading problem and a lower-layer computational resource allocation problem. Combining airspace security, link reliability, and return-to-home energy models, candidate nodes are screened and action masking information is generated through DRL agents to optimize the task offloading strategy, and the computational resource allocation result is solved based on KKT conditions.
It improves the safety, reliability, and resource utilization efficiency of low-altitude UAV mission offloading, reduces mission completion latency, and increases the revenue of computing resource providers.
Smart Images

Figure FT_1 
Figure SMS_46 
Figure SMS_60
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of low-altitude unmanned aerial vehicle (UAV) networks, edge computing, and intelligent resource offloading technology. Specifically, it relates to a task offloading and computing resource allocation method that comprehensively considers airspace security constraints, link reliability constraints, and return-to-home energy constraints in a low-altitude UAV collaborative computing scenario. Background Technology
[0002] With the development of applications such as low-altitude economy, smart cities, emergency rescue, traffic inspection, and target search, low-altitude drones are increasingly taking on computational tasks such as image acquisition, video analysis, environmental perception, and target recognition. These tasks are typically characterized by large data volumes, high computational demands, and stringent latency requirements. However, drones are limited by onboard computing power, battery capacity, and payload capacity, making it difficult for them to complete all task processing on local computing for extended periods. Therefore, offloading tasks to external computing resources such as ground-based MEC servers, collaborative drones, or cloud nodes has become an important way to improve the task processing efficiency of low-altitude drones.
[0003] The unloading process for low-altitude UAV missions is not only affected by computing resource capacity but also constrained by factors such as airspace safety, link reliability, and return-to-home energy. On the one hand, low-altitude UAVs need to avoid airspace risks such as no-fly zones, buildings, restricted flight zones, and dangerous areas during operation. On the other hand, the mission unloading process relies on air-to-ground or air-to-air links for data transmission, and link quality is easily affected by factors such as flight altitude, communication distance, obstruction, and interference. Link instability can directly lead to increased mission upload latency or even unloading failure. In addition, UAVs have limited battery capacity and need to retain sufficient energy to return to base, refueling point, or safe landing point after mission execution. If existing unloading methods select mission execution nodes solely based on distance, instantaneous speed, or node computing power, it is easy to produce infeasible unloading results such as unreliable links, insufficient energy, or failure to meet low-altitude safety constraints.
[0004] Therefore, there is an urgent need for a technical solution that can simultaneously perceive airspace safety, link reliability, and return-to-home energy status in low-altitude UAV collaborative computing scenarios, and perform task offloading and computing resource allocation accordingly, so as to improve the safety, reliability, and resource utilization efficiency of low-altitude UAV task processing. Summary of the Invention
[0005] The purpose of this invention is to provide a secure and reliable task offloading and computing resource allocation method for collaborative computing of low-altitude unmanned aerial vehicles (UAVs), addressing the problems of insufficient consideration of airspace security, link reliability, return-to-home energy, and node resource status in existing low-altitude UAV task offloading processes, which easily lead to infeasible offloading, high task completion latency, and low computing resource utilization efficiency. The technical solution to achieve the purpose of this invention is: a secure and reliable task offloading and computing resource allocation method for collaborative computing of low-altitude UAVs, comprising the following steps:
[0006] Step 1: Establish a low-altitude UAV collaborative computing system model and determine the system components, including the mission UAV, collaborative UAV, ground edge computing nodes, cloud nodes, and safe return point.
[0007] Step 2: Obtain the system operating status and establish the task model, airspace security model, link reliability model, and return-to-home energy model;
[0008] Step 3: With the goal of reducing the effective completion latency of the task and increasing the revenue of the computing resource provider, establish a joint optimization problem model for low-altitude UAV task offloading and computing resource allocation;
[0009] Step 4: Based on the Stackelberg hierarchical optimization concept, the joint optimization problem is decomposed into an upper-level task offloading problem and a lower-level computing resource allocation problem;
[0010] Step 5: In the upper-layer task offloading problem, a candidate computing node set is constructed based on airspace security, link reliability, return energy, task latency, and node resource constraints, and action masking information is generated; combined with the optimal response of lower-layer resource allocation, the task offloading strategy is determined through the safety action masking DRL.
[0011] Step 6: In the lower-level computing resource allocation problem, based on the unloading result obtained from the task unloading strategy, solve the computing resource allocation result according to the KKT conditions, and update the system status.
[0012] The beneficial effects of the present invention are as follows: Compared with the existing low-altitude UAV task offloading and resource allocation methods, which have insufficient consideration of airspace security, link reliability and return energy constraints, and the complex problem of coupled solution of task offloading and resource allocation, the advantages of the present invention are: (1) It proposes a safe and feasible candidate node screening and action masking offloading method. The present invention comprehensively considers airspace security, link reliability, return energy, task delay and node resource status, constructs a safe and feasible candidate computing node set, and transforms it into action masking information and introduces it into the DRL offloading strategy, so that the agent selects the task execution node only from the candidate nodes that meet the constraints, thereby reducing the selection of inactive actions and improving the safety, reliability and training efficiency of task offloading. (2) Based on Stackelberg hierarchical optimization, the present invention decomposes the joint optimization problem into an upper-level task offloading problem and a lower-level computing resource allocation problem. The upper level determines the task execution node, and the lower level solves the computing resource allocation result based on KKT conditions for the offloaded task, thereby reducing the difficulty of solving the complex joint optimization problem, and taking into account the task completion delay, resource utilization efficiency and resource provider benefits. Attached Figure Description
[0013] Figure 1 Framework diagram for offloading and allocating computational resources for low-altitude unmanned aerial vehicle (UAV) missions Detailed Implementation
[0014] Furthermore, the establishment of the low-altitude UAV collaborative computing system model described in step 1, which determines the system components such as the mission UAV, collaborative UAVs, ground edge computing nodes, cloud nodes, and safe return points, is as follows:
[0015] Establish a collaborative computing system for low-altitude unmanned aerial vehicles (UAVs) such as Figure 1 As shown, it mainly includes a low-altitude UAV network and a ground network. The low-altitude UAV network consists of mission-oriented UAVs and cooperative UAVs. The mission-oriented UAVs are grouped as follows: The mission drone collects data and generates computation requests during low-altitude operations. Let the set of cooperative drones be... Collaborative drones, acting as providers of aerial computing resources, offer auxiliary computing services to mission drones when they have sufficient surplus computing power, energy, and reliable air-to-air links. This does not consider dynamic role switching between mission and collaborative drones, and... The set of ground-based MEC servers in the ground network is as follows: The cloud node is denoted as This serves as a backup computing resource. It can still provide computing services for the mission when local, MEC, and collaborative drones are all unsuitable. Let the set of safe return points be... This includes drone bases, refueling points, or safe landing sites.
[0016] Furthermore, step 2, which involves obtaining the system operating status and establishing the task model, airspace security model, link reliability model, and return-to-home energy model, is detailed as follows:
[0017] To characterize the dynamic operation of the system, this invention divides the system runtime into discrete time slots. Each time slot is [length missing] Within each time slot, the system sequentially completes the following steps: UAV status update, task generation, candidate node selection, task unloading, computing resource allocation, and status update.
[0018] drones In the time slot The position is represented as ,in , and These represent the horizontal coordinates and flight altitude of the UAV, respectively. Let's assume the mission UAV... In the time slot The generated task is denoted as The number of tasks is And let it follow a Poisson distribution: ,in Indicates the mission drone Mission generation rate. Mission drones. In the time slot The first Each task is represented as ,in Indicates the amount of task data; Indicates the computational load of the task; This represents the maximum tolerable latency for a task. It assumes that tasks generated within the same time slot are independent and have no dependencies; each task is indivisible and can only be offloaded to a single compute node for execution; each compute node can process multiple tasks simultaneously, but is constrained by its maximum compute resource capacity.
[0019] Low-altitude unmanned aerial vehicles (UAVs) must meet airspace safety requirements during mission execution. Their flight is constrained not only by static airspace factors such as fixed obstacles, no-fly zones, restricted flight zones, and danger zones, but also by dynamic risks such as dynamic obstacles, approaching other UAVs, and changes in the local environment. This invention assumes that the UAV has generated a preset safe flight path based on the mission area, terrain environment, and airspace restrictions before flight. Let the low-altitude operating area be... Static no-entry airspace includes areas with fixed obstacles, no-fly zones, restricted-fly zones, and danger zones, denoted as follows: , , and Therefore, a statically inaccessible space can be defined as... The corresponding static safe airspace is Setting up drones The preset flight path is To meet the safety requirements of static airspace, the preset flight path of the UAV must satisfy the following: Meanwhile, the pre-set flight path of the UAV should also meet basic operational requirements such as low-altitude flight altitude, speed, and safety intervals. These static airspace safety constraints are not used as subsequent optimization variables, but rather as prerequisite feasibility conditions for task offloading and computational resource allocation.
[0020] The actual low-altitude environment remains dynamic. To characterize the impact of dynamic factors on mission unloading safety, this invention introduces a dynamic airspace risk index. (Time slot is defined.) The internal dynamic risk object set is object With drones The distance between them is Referring to the concept of obstacle probability risk distribution, this invention defines the object For drones The resulting local risks are:
[0021]
[0022] in, Indicates risk object The influence range parameter. The closer the distance, the greater the local risk; the farther the distance, the smaller the local risk. Furthermore, the combined impact of multiple dynamic risk objects on the UAV is expressed as:
[0023]
[0024] in When there are many dynamic risk objects around the drone or they are close by, Increase. This invention uses dynamic airspace risk as an external safety state quantity to correct return-to-home redundant energy, allowing the UAV to retain more safety energy under high-risk conditions. This relationship will be further expressed in the return-to-home energy model as:
[0025]
[0026] If the dynamic risk exceeds the system's acceptable limit, it indicates that the UAV has entered an abnormally high-risk state. This situation should typically be handled by the flight control safety module or an external obstacle avoidance / replanning module. The airspace safety and risk model adopts a "static hard constraint + dynamic risk perception" approach: static airspace safety constraints are used to ensure that the preset trajectory does not enter fixed obstacles, no-fly zones, restricted flight zones, and danger zones; dynamic airspace risk is used to characterize temporary risk factors during flight and influence subsequent task unloading and computational resource allocation decisions through return-to-home redundant energy.
[0027] During the unloading process of a low-altitude UAV mission, the reliability of the link between the UAV and the node is extremely important for the mission's completion. Based on the type of computing node, the external mission transmission link for the UAV is divided into two categories: one is the air-to-ground link, denoted as the A2G link; the other is the air-to-air link, denoted as the U2U link.
[0028] In low-altitude air-to-ground communication, a mission-oriented UAV is set up. In the time slot With ground nodes The angle of elevation between them is: .in, Indicates the drone's flight altitude. Indicates the relationship between the drone and the ground node The horizontal distance between them.
[0029] According to the commonly used air-to-ground channel model, the Loss Probability (LoS) of an A2G link can be expressed as:
[0030]
[0031] in, and These are parameters related to the low-altitude communication environment. Let... Indicates the launch power of the mission drone. This represents the channel gain determined by the air-to-ground path loss. Indicates the air-to-ground link bandwidth. Represents the noise power spectral density. Let represent the air-to-ground link interference power. Then, the signal-to-interference-plus-noise ratio (SIR) of the A2G link is:
[0032]
[0033] The corresponding task upload speed is: .
[0034] To simultaneously characterize line-of-sight conditions and task upload timeliness, this invention defines the air-to-ground task-level link reliability as:
[0035]
[0036] A2G link reliability is affected by Loss of Memory (LoS) probability, path loss, interference, task data volume, upload rate, and maximum tolerable latency. Higher LoS probability, better channel conditions, higher upload rate, or smaller task data volume generally result in higher task-level link reliability.
[0037] When a task is offloaded to a collaborating UAV for execution, the task UAV needs to upload task data to the collaborating UAV via an air-to-air link. For the U2U link between the task UAV and the collaborating UAV, since ground obstruction has a relatively small impact, this invention uses a free-space channel model to approximate its link quality. Let... This represents the channel gain determined by the air-to-air link path loss. Indicates the bandwidth of the air-to-air link. Indicates the air-to-air link interference power, then the mission drone To collaborative drones The signal-to-interference-plus-noise ratio is: .
[0038] The corresponding task upload speed is: .
[0039] Since U2U links are less affected by ground obstructions, their task-level link reliability is mainly defined from the perspective of task upload timeliness:
[0040]
[0041] To facilitate subsequent task unloading modeling, air-to-ground links and air-to-air links will be uniformly represented as:
[0042]
[0043] Here, s represents an external computing node. For a local computing node s=0, the task does not need to upload data, and therefore is not subject to link reliability constraints.
[0044] Meanwhile, the task upload latency can be obtained from the link transmission rate: ,in
[0045]
[0046] Low-altitude drones are limited by battery capacity and must conserve enough energy to return to base, refueling point, or safe landing point while performing computational tasks. Let's assume the drone... In the time slot The remaining energy is Since path planning is not the primary focus of research, UAVs in time slots arrive The drone flies along a preset safe flight path, therefore its flight energy consumption can be calculated based on the distance between adjacent waypoints. Let the energy consumption coefficient per unit flight distance of the drone be... Then the flight energy consumption is expressed as:
[0047]
[0048] When a mission is executed locally, the drone consumes local computing power; when the mission is offloaded to a ground-based MEC server, a collaborating drone, or a cloud node, the mission drone consumes communication power to upload mission data. Let... Indicates task Was it uninstalled to the node? ,in Indicates local computation. This represents an external computing node. If the task is offloaded to an external node, the communication energy consumption is:
[0049]
[0050] in, Indicates drone The transmission power, Indicates the amount of task data. Indicates drone To external computing nodes The transmission rate. If the task is executed locally, there is no energy consumption for task upload. For local computing tasks, let... Indicates drone Assigned to task Local computing resources Indicates the effective capacitance coefficient of the drone chip. This represents the computational load of the task. Therefore, the local computing energy consumption can be expressed as:
[0051]
[0052] Therefore, drones In the time slot The total energy consumption inside is:
[0053]
[0054] Based on dynamic airspace risk The drone needs to retain a safety redundancy of energy. .
[0055] Furthermore, step 3 establishes a joint optimization problem model for low-altitude UAV task offloading and computing resource allocation, with the goal of reducing the effective completion latency of the task and increasing the revenue of the computing resource provider, as detailed below:
[0056] The task unloading and computational resource allocation problem first needs to satisfy static spatial security constraints, which serve as a prerequisite for the joint optimization problem. Task completion delay is determined by the task execution location. If the task... If executed locally by the drone, its completion latency is If the task is unloaded to an external compute node The completion delay consists of upload delay and calculation delay. This invention ignores the delay of sending back the calculation result.
[0057]
[0058] For local nodes, ground MEC nodes, and collaborative UAV nodes, task completion latency must meet the maximum tolerable latency requirement. For cloud nodes, considering their role as backup computing resources, this invention does not directly determine timeout tasks as infeasible, but instead defines an effective latency:
[0059]
[0060] in, This represents the cloud timeout penalty coefficient. The formula indicates that when a cloud task does not exceed the maximum tolerable latency, the effective latency equals the actual completion latency; when a cloud task times out, the timeout portion is penalized and included in the effective latency, thus characterizing the service quality degradation caused by the cloud-based backup computing.
[0061] External computing nodes earn revenue by processing drone missions. For the nodes... In the time slot The profit obtained is:
[0062]
[0063] in, Represents a node The unit price for the service is calculated. Represents a node Unit computing resource cost, local computing node It is used to handle the drone's own tasks and is not an external computing resource provider, therefore it is not included in the revenue from resource services.
[0064] In summary, the optimization objective of this invention is to maximize the profit of the computing resource provider while minimizing the effective task completion latency, under the constraints of link reliability, return energy, latency, and computing resource capacity. The final optimization problem is expressed as follows:
[0065]
[0066] st
[0067]
[0068] in, and These represent the weighting coefficients for resource provider profit and effective task completion latency, respectively. Constraints C1 and C2 represent the unique task offloading and 0-1 decision variables; C3–C5 represent constraints on computing resource allocation range, external computing node capacity, and local computing capacity, respectively; C6 and C7 represent link reliability constraints and safe return energy constraints, respectively; C8 and C9 represent the maximum tolerable latency constraint and time slot completion constraint for non-cloud nodes, respectively. Cloud nodes are not subject to the hard maximum tolerable latency constraints in C8 and C9, but rather to the effective latency constraints. The soft penalties in the text reflect the impact of exceeding the time limit.
[0069] Step 4: Based on the Stackelberg hierarchical optimization concept, the joint optimization problem is decomposed into an upper-level task unloading problem and a lower-level computing resource allocation problem. In this problem, the system unloading platform acts as the leader, which determines the task execution node based on the task status, link reliability, return energy, and node resource status. The computing resource provider acts as the follower, which allocates computing resources to the unloaded task based on the given task unloading result.
[0070] Step 5 above includes:
[0071] Step 5-1: Obtain the system status of the current time slot. (In the time slot...) The DRL agent needs to select the execution node for the task based on the current system state. The system state can be represented as... , respectively represent the mission drone's location, remaining energy, dynamic airspace risk, mission data volume, mission computational load, and maximum tolerable latency. This indicates the reliability of the link between the task and external nodes. This indicates the remaining resources of the computing node.
[0072] Step 5-2: Select a set of safe and feasible candidate computing nodes. For drones... In the time slot The generated task The set of all its optional computation nodes is represented as: Based on constraints such as airspace security, link reliability, return-to-home energy, mission latency, and node resources, a set of candidate computing nodes was selected from all available computing nodes. The candidate nodes for ground-based MECs and the candidate nodes for cooperative drones are selected by filtering the available MEC set and the available cooperative drone set, respectively:
[0073]
[0074]
[0075] in This represents the set of MEC nodes that meet the requirements for link reliability and computing resources. This refers to a set of collaborative drones that meet the requirements for remaining computing power, remaining energy, return capability, and air-to-air link reliability. Cloud nodes, serving as backup computing resources, are always retained, but their timeouts are reflected in the objective function through a soft penalty.
[0076] Step 5-3: Generate action masking information. Based on the candidate computing node set, define the action masking variable as:
[0077]
[0078] in, Represents a node Actions that can be taken for the current task. This indicates that the node is not selectable in the current state.
[0079] Step 5-4: Introduce action masking information into the DRL offloading strategy. Let the task offloading strategy of the DRL agent be... ,in This represents the network parameters of the policy. The network output shows the logit value for each compute node. The strategy after action masking is expressed as:
[0080]
[0081] This formula guarantees that the probability of selecting an inactive action is 0, so that the DRL agent selects the task execution node only from the set of candidate computing nodes, thereby reducing the selection of inactive actions and invalid exploration.
[0082] Step 5-5: For the current task The DRL agent, based on the masked strategy From the candidate computing node set Select the execution node. If the selected execution node is... Then the corresponding task unloading variable will be set to: And set the unload variables corresponding to the other nodes to: .
[0083] This yields the unloading result for the current task. To avoid an excessively large joint action space, this invention adopts a task-by-task unloading method, that is, unloading decisions are made one by one in the order of tasks within the same time slot; after each task is unloaded, the remaining resources of the selected computing node and the energy status of the UAV are temporarily updated, and then the next task is unloaded, until all tasks in the current time slot are unloaded.
[0084] Steps 5-6: Calculate rewards and update the DRL offloading policy. Define time slots by comprehensively considering resource provider profits and effective task completion latency. The reward is:
[0085]
[0086] in, Indicates the profit of the resource provider. Indicates the effective completion time of the task. and These represent the weighting coefficients for profit and latency, respectively. This reward function guides the DRL agent to learn a task offloading strategy that balances low latency and high returns, ensuring safe and feasible offloading. The DRL policy network parameters are updated based on the reward value to obtain the upper-layer task offloading strategy and the corresponding task offloading result.
[0087] Step 6: In the lower-level computational resource allocation problem, based on the task unloading results obtained in Step 5, solve for the computational resource allocation results using KKT conditions, and update the system state. This specifically includes the following steps:
[0088] Step 6-1: Determine the task set and establish a resource allocation subproblem. Based on the task unloading results obtained in Step 5, determine the current time slot. The set of tasks that are unloaded from the compute nodes. For compute nodes The set of tasks it receives is denoted as ,Right now: To balance the cost of computing resource usage and task computation latency, computing nodes... The lower-level resource allocation subproblem can be represented as:
[0089]
[0090] st
[0091]
[0092] in, Represented as a task Allocated computing resources For the task The computational load, Represents a computing node The maximum computing resources, Represents a computing node The unit cost of calculating resources, This represents the task computation delay penalty coefficient.
[0093] Step 6-2: Solve the resource allocation results based on the KKT conditions. For the above resource allocation subproblem, construct the Lagrangian function:
[0094]
[0095] in, To calculate the Lagrange multipliers corresponding to the resource capacity constraint, based on the KKT first-order optimality conditions, ... Taking the partial derivative and setting it to 0, we get
[0096]
[0097] This yields the node. For the task The optimal computational resource allocation response is .in, Determined by computational resource capacity constraints. When node computational resources are sufficient, the resource capacity constraint is not tight. When the total allocated resources to a node reach its maximum computing capacity, resource capacity constraints become tightly bound. and satisfy .
[0098] Furthermore, for local nodes, ground MEC nodes, and cooperative UAV nodes, the task needs to meet a maximum tolerable latency constraint. To meet this constraint, the nodes... At least for the task The allocated computing resources are ,like This indicates that even if the node provides sufficient computing resources, it is unlikely to meet the maximum tolerable latency requirement of the task and should be excluded during the action masking phase. Therefore, considering the minimum computing resource requirements, the resource allocation result for non-cloud nodes can be expressed as:
[0099]
[0100] As a backup computing resource, cloud nodes do not impose this hard latency lower bound, but instead reflect the decline in service quality through effective latency soft penalties.
[0101] Step 6-3: Calculate the task completion latency and resource service benefits. If the task is executed on the local node, the task completion latency is:
[0102]
[0103] If the task is offloaded to an external compute node s, the task completion latency is:
[0104]
[0105] For cloud node c, the effective completion delay is defined as:
[0106]
[0107] in, This represents the cloud timeout penalty coefficient. For local nodes, ground MEC nodes, and collaborative drone nodes, we have: .
[0108] The service revenue obtained by the computing resource provider in time slot t is:
[0109]
[0110] in, Represents a node The unit price for the service is calculated. Represents a node Unit computational resource cost
[0111] Step 6-4: Update the system status. Based on the task execution results and computing resource allocation results, update the remaining computing resources of each computing node. Simultaneously, update the UAV's remaining energy based on flight energy consumption, communication energy consumption, and local computing energy consumption. Also, update the task completion status, effective task completion latency, resource service revenue, and system rewards. The updated system status serves as the input for the next time slot's task unloading and computing resource allocation, thus forming a dynamic closed-loop optimization process of candidate node selection, task unloading, computing resource allocation, and status updating.
Claims
1. A method for low-altitude UAV mission offloading and resource allocation based on airspace security and link reliability awareness, characterized in that, Includes the following steps: Step 1: Establish a low-altitude UAV collaborative computing system model, and determine the mission UAV, collaborative UAV, ground edge computing nodes, and cloud. It consists of systems such as end nodes and safe return points; Step 2: Obtain the system operating status and establish models for mission, airspace security, link reliability, and return-to-home energy. Step 3: With the goal of reducing the effective completion latency of tasks and increasing the revenue of computing resource providers, establish a low-altitude UAV task offloading and computing mechanism. The computational resource allocation joint optimization problem model is represented as follows: ; st ; in, and These represent the weighting coefficients for resource provider profit and effective task completion latency, respectively. C1 and C2 represent the unique task offloading and 0-1 decision variables; C3–C5 represent the constraints on computing resource allocation range, external computing node capacity, and local computing capacity, respectively; C6 and C7 represent link reliability constraints and safe return energy constraints; C8 and C9 represent the maximum tolerable latency constraints and time slot completion constraints for non-cloud nodes. Cloud nodes are not subject to the hard maximum tolerable latency constraints in C8 and C9, but rather to the effective latency constraints. The soft penalties in the text reflect the impact of exceeding the time limit; Step 4: Based on the Stackelberg optimization concept, the optimization problem is decomposed into an upper-level task unloading problem and a lower-level computing resource allocation problem; Step 5: In the upper-level task unloading problem, construct a set of candidate computing nodes based on constraints and generate action masking information; combined with... Optimal response to lower-level resource allocation; determine task offloading strategy by shielding DRL through security actions. Step 6: In the lower-level computing resource allocation problem, based on the unloading results obtained from the task unloading strategy, solve the problem using KKT conditions. Calculate the resource allocation results and update the system status.
2. The method for low-altitude UAV mission offloading and resource allocation based on airspace security and link reliability awareness according to claim 1, characterized in that... Step 1 involves establishing a low-altitude UAV collaborative computing system model, which determines the system components including the mission UAV, collaborative UAVs, ground edge computing nodes, cloud nodes, and safe return points, as detailed below: Establish a low-altitude unmanned aerial vehicle (UAV) collaborative computing system, with the task UAVs aggregated as follows: Collaborative drones are assembled It provides auxiliary computing services; the ground-based MEC server set is The cloud node is denoted as ; Let the set of safe return points be... .
3. The method for low-altitude UAV mission offloading and resource allocation based on airspace security and link reliability awareness according to claim 1, characterized in that, Step 2 includes obtaining the system's operational status and establishing models for mission, airspace safety, link reliability, and return-to-home energy, as detailed below: Divide system uptime into drones In the time slot The position is represented as ; Set up a mission drone In the time slot The generated task is denoted as The number of tasks is And it follows a Poisson distribution: Mission drones The first The task is This represents the task data volume, task computation volume, and maximum tolerable latency; let the low-altitude operating area be... Static, inaccessible airspace is Static safe airspace is ; Set up drones The preset flight path is ,satisfy: Meanwhile, the drone's preset flight path should also meet basic requirements such as low-altitude flight altitude, speed, and safe distance. drones With dynamic risk objects The distance between them is ,definition For drones Local risks arising from this: , The cumulative form of dynamic airspace risk is: ; In the return energy model: ; The external mission transmission links of UAVs are divided into two categories. In air-to-ground communication, the line-of-sight probability of air-to-ground links is as follows: ;set up Indicates the launch power of the mission drone. This represents the channel gain determined by the air-to-ground path loss. Indicates the air-to-ground link bandwidth. Represents the noise power spectral density. Let represent the air-to-ground link interference power. Then, the signal-to-interference-plus-noise ratio (SIR) of the A2G link is: ; drones to ground node Task upload rate is The reliability of the air-to-ground mission-level link is defined as follows: ; When the mission drone uploads data to the collaborating drone via an air-to-air link, the signal-to-interference-plus-noise ratio (SIR) of the air-to-air link is: ; The corresponding task upload rate is ,Task Uploaded to collaborative drones via air-to-air link At that time, its link reliability is defined as: The links are uniformly represented as: ; Let the energy consumption coefficient per unit flight distance of the UAV be... Then the flight energy consumption is expressed as: ;set up Indicates task Was it uninstalled to the node? ,in This indicates local computation; if the task is offloaded to an external node, the communication energy consumption is: ;set up Assigned to task Local computing resources Let the effective capacitance coefficient of the drone chip be represented, then the local computational energy consumption can be expressed as: ; Therefore, drones In the time slot The total energy consumption inside is: .
4. The method for low-altitude UAV mission offloading and resource allocation based on airspace security and link reliability awareness according to claim 1, characterized in that, Step 5 constructs a candidate computing node set and action masking information based on constraints, and combines the optimal resource response at the lower layer with the safety action masking DRL to determine the task offloading strategy, as follows: Obtain the system status of the current time slot and filter to obtain a set of candidate computing nodes. The method is as follows: ; ; in This represents the set of MEC nodes that meet the requirements for link reliability and computing resources. This represents a set of cooperative UAVs that meet the requirements for remaining computing power, remaining energy, return-to-home capability, and air-to-air link reliability; the action masking variable is defined as: ; Incorporate action masking information into the DRL offload strategy; Let the task offloading strategy of the DRL agent be: ,in Indicates the policy network parameters; the network outputs the logit value corresponding to each computing node. The strategy after action masking is expressed as: ; For the current task The DRL agent, based on the masked strategy From the candidate computing node set Select the execution node; calculate the reward and update the DRL offload policy: .
5. The method for low-altitude UAV mission offloading and resource allocation based on airspace security and link reliability awareness as described in claim 1, characterized in that... Step 6: In the lower-level computational resource allocation problem, based on the task unloading results obtained in Step 5, solve for the computational resource allocation results using KKT conditions, and update the system state, as follows: Based on the task unloading results obtained in step 5, determine the current time slot. The set of tasks that are unloaded to each compute node compute nodes The lower-level resource allocation subproblem can be represented as: ; st ; The resource allocation results are calculated based on the KKT conditions; for the above resource allocation subproblem, a Lagrangian function is constructed: ; According to the first-order optimality condition of KKT, Taking the partial derivative and setting it to 0, we get: ; This yields the node. For the task The optimal computational resource allocation response is After considering the minimum computing resource requirements, the resource allocation result for non-cloud nodes can be expressed as follows: ; As a backup computing resource, cloud nodes do not impose this hard latency lower bound, but instead reflect the service quality degradation through effective latency soft penalties; The service revenue obtained by the computing resource provider in time slot t is: ; The remaining computing resources of the node, the remaining energy of the UAV, the task status, the effective latency, the resource revenue and the system reward are updated based on the task execution results, and the updated system status is used as the input for the next time slot, forming a dynamic closed-loop optimization process.
