Near space network task decision method and device
By adopting a task offloading decision-making model based on reinforcement learning in the near space network, the problem of unconsidered changes in UAV mission loads is solved, the reasonable allocation and processing of tasks is achieved, and the real-time and performance requirements of large-scale edge computing scenarios are met. Efficiency needs.
Patent Information
- Application Number
- CN202410671225.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-01
AI Technical Summary
The existing near space network edge computing architecture fails to effectively consider the spatiotemporal characteristics of changes in UAV mission loads, resulting in a decrease in the stability and convergence of the training process, and cannot be applied to complex mobile edge computing scenarios with large-scale and wide coverage. .
A near space network task offloading decision model built based on reinforcement learning strategy is adopted. By obtaining the pending tasks generated by the Internet of Things device, the decision identification is used to decide whether the task should be performed by the Internet of Things device, drone or near space platform to ensure the accuracy of task allocation. rationality and efficiency.
It effectively reduces task processing costs, meets the real-time requirements of computing-intensive and delay-sensitive tasks, and is suitable for mobile edge computing scenarios with large-scale and wide coverage.
Smart Images

Figure CN118740236A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and more specifically to a near-space network task decision-making method, apparatus, device, medium and program product. Background Art
[0002] In the era of the Internet of Things (IoT), large-scale deployment of smart connected devices and emerging computing-intensive applications have placed higher service quality requirements on the network, which is difficult to play its role in remote areas with low population density, complex terrain, and lack of infrastructure such as power grids.
[0003] In related technologies, the edge computing architecture of non-terrestrial network (NTN) is adopted. NTN includes drone network, near-space platform network and satellite network at different orbital heights. Combining the respective advantages of near-space platform and drone to build an aerial hierarchical edge computing network architecture can realize on-demand services for target areas.
[0004] However, the above-mentioned edge computing network architecture does not take into account the spatiotemporal characteristics of changes in drone mission loads, and is unable to partition the importance of different samples, which reduces the stability and convergence of the training process. As a result, the decision of the edge computing architecture is not suitable for complex scenarios of mobile edge computing under large-scale and wide coverage. Summary of the invention
[0005] In view of the above problems, the present disclosure provides a near-space network task decision-making method, apparatus, device, medium and program product.
[0006] According to the first aspect of the present disclosure, a near-space network task decision method is provided, including: obtaining a pending task generated by an Internet of Things device; processing the pending task using a near-space network task offloading decision model constructed based on a reinforcement learning strategy to obtain a decision identifier of the pending task; when the decision identifier is a first decision identifier, executing the pending task using the Internet of Things device; when the decision identifier is a second decision identifier, executing the pending task using an unmanned aerial vehicle; when the decision identifier is a third decision identifier, executing the pending task using a near-space platform, wherein the near-space platform, the unmanned aerial vehicle and the Internet of Things device are communicatively connected.
[0007] The second aspect of the present disclosure provides a near-space network task decision-making device, including: an acquisition module, which acquires a task to be processed generated by an Internet of Things device; a processing module, which is used to process the task to be processed using a near-space network task offloading decision model constructed based on a reinforcement learning strategy, and obtain a decision identifier of the task to be processed; a first execution module, which is used to use the Internet of Things device to execute the task to be processed when the decision identifier is a first decision identifier; a second execution module, which is used to use a drone to execute the task to be processed when the decision identifier is a second decision identifier; and a third execution module, which is used to use a near-space platform to execute the task to be processed when the decision identifier is a third decision identifier, wherein the near-space platform, the drone and the Internet of Things device are communicatively connected.
[0008] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned near-space network task decision method.
[0009] The fourth aspect of the present disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned near-space network task decision method.
[0010] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned near-space network task decision method when executed by a processor.
[0011] According to the embodiments of the present disclosure, the pending tasks generated by the IoT device are obtained; the pending tasks are processed using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks; when the decision identification is the first decision identification, the pending tasks are executed using the IoT device; when the decision identification is the second decision identification, the pending tasks are executed using the drone; when the decision identification is the third decision identification, the pending tasks are executed using the near-space platform, wherein the near-space platform, the drone and the IoT device are connected in communication. Due to the use of the technical means of processing the pending tasks using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks, the problem of not considering the spatiotemporal characteristics of the change of the drone task load and not partitioning the importance of each sample is avoided, thereby realizing the complex scenarios of mobile edge computing applicable to large-scale and wide-coverage areas, effectively reducing the processing cost of tasks, and meeting the real-time requirements for processing of computationally intensive and delay-sensitive tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0013] Figure 1 The application scenario diagram of the near-space network task decision method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;
[0014] Figure 2 A flowchart of a near space network task decision method according to an embodiment of the present disclosure is schematically shown;
[0015] Figure 3 A schematic diagram of a prediction model according to an embodiment of the present disclosure is schematically shown;
[0016] Figure 4 A structural block diagram of a near-space network task decision-making device according to an embodiment of the present disclosure is schematically shown; and
[0017] Figure 5 A block diagram of an electronic device suitable for implementing a near-space network task decision method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0018] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0019] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0020] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0021] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0022] The embodiments of the present disclosure provide a near-space network task decision method, which obtains pending tasks generated by an Internet of Things device; uses a near-space network task offloading decision model constructed based on a reinforcement learning strategy to process the pending tasks, and obtains a decision identifier of the pending tasks; when the decision identifier is a first decision identifier, uses the Internet of Things device to execute the pending tasks; when the decision identifier is a second decision identifier, uses an unmanned aerial vehicle to execute the pending tasks; when the decision identifier is a third decision identifier, uses a near-space platform to execute the pending tasks, wherein the near-space platform, the unmanned aerial vehicle and the Internet of Things device are communicatively connected.
[0023] Figure 1 The application scenario diagram of the near-space network task decision method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0024] like Figure 1 As shown, the application scenario 100 according to this embodiment may include an Internet of Things device 101, a drone 102, and a near-space platform 103. The Internet of Things device 101, the drone 102, and the near-space platform 103 are connected in communication.
[0025] The Internet of Things device 101 is used to collect surrounding environment information and generate tasks to be processed, and uses a near-space network task offloading decision model built based on a reinforcement learning strategy to process the tasks to be processed, and obtain a decision identifier of the tasks to be processed.
[0026] The drone 102 is used to receive the pending task sent by the IoT device 101 and perform the task processing operation when the decision identifier is the second decision identifier. When the decision identifier is the third decision identifier, the drone 102 receives the pending task sent by the IoT device 101 and sends it to the near-space platform 103.
[0027] When the decision identifier is the third decision identifier, the near-space platform 103 receives the task to be processed sent by the drone 102 and performs the task processing operation.
[0028] Among them, a server for executing the near-space network task decision method disclosed in the present invention can be set on at least one of the Internet of Things device 101, the drone 102 and the near-space platform 103.
[0029] It should be understood that Figure 1 The number of IoT devices 101, drones 102, and near-space platforms 103 in the figure is only for illustration. Any number of IoT devices 101, drones 102, and near-space platforms 103 may be provided according to implementation requirements.
[0030] Figure 2 The flowchart of the near space network task decision method according to the embodiment of the present disclosure is schematically shown.
[0031] like Figure 2 As shown, the near-space network task decision method of this embodiment includes operations S210 to S250.
[0032] In operation S210, a task to be processed generated by an IoT device is obtained.
[0033] According to an embodiment of the present disclosure, the IoT device may be a device for collecting surrounding environment data to generate tasks to be processed, wherein the IoT device may perform lightweight task processing operations.
[0034] In operation S220, the task to be processed is processed using the near space network task offloading decision model constructed based on the reinforcement learning strategy to obtain a decision identifier of the task to be processed.
[0035] According to an embodiment of the present disclosure, the near space network task offloading decision model may be to make a decision judgment on the task to be processed and obtain a decision identifier of the task to be processed.
[0036] According to an embodiment of the present disclosure, the task to be processed can be allocated to the corresponding execution device through the decision identification to perform the task processing operation.
[0037] In operation S230, when the decision identifier is the first decision identifier, the task to be processed is executed using the Internet of Things device.
[0038] According to an embodiment of the present disclosure, the first decision identifier may be a task processing operation representing that the task to be processed is executed on the IoT device.
[0039] In operation S240, when the decision identifier is the second decision identifier, the unmanned aerial vehicle is used to execute the task to be processed.
[0040] According to an embodiment of the present disclosure, the second decision identifier may be a symbol indicating that the task to be processed is being processed on the drone.
[0041] According to the embodiments of the present disclosure, a drone may have the advantages of flexible deployment, low cost, and fast response speed, and may be used to perform pending tasks that cannot be handled by IoT devices.
[0042] In operation S250, when the decision identifier is the third decision identifier, the task to be processed is executed using the near-space platform, wherein the near-space platform, the drone, and the Internet of Things device are communicatively connected.
[0043] According to an embodiment of the present disclosure, the third decision identifier may be a task processing operation representing that the task to be processed is executed on the near-space platform.
[0044] According to an embodiment of the present disclosure, the near-space platform may be a processing platform located in the stratosphere, which can remain stationary for a certain period of time and switch between movement and hovering at will according to mission requirements, so as to execute pending tasks that cannot be handled by IoT devices and drones.
[0045] According to an embodiment of the present disclosure, after obtaining the task to be processed, the near space network task offloading decision model is used to determine the processing device that can execute the task to be processed, and a decision identifier is added. Based on the decision identifier, the processing device corresponding to the task to be processed is determined, and the task processing operation is performed.
[0046] According to the embodiments of the present disclosure, the pending tasks generated by the IoT device are obtained; the pending tasks are processed using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks; when the decision identification is the first decision identification, the pending tasks are executed using the IoT device; when the decision identification is the second decision identification, the pending tasks are executed using the drone; when the decision identification is the third decision identification, the pending tasks are executed using the near-space platform, wherein the near-space platform, the drone and the IoT device are connected in communication. Due to the use of the technical means of processing the pending tasks using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks, the problem of not considering the spatiotemporal characteristics of the change of the drone task load and not partitioning the importance of each sample is avoided, thereby realizing the complex scenarios of mobile edge computing applicable to large-scale and wide-coverage areas, effectively reducing the processing cost of tasks, and meeting the real-time requirements for processing of computationally intensive and delay-sensitive tasks.
[0047] According to an embodiment of the present disclosure, the above method also includes: when the decision identifier is the second decision identifier, performing the following operations: using the Internet of Things device to send the task to be processed to the drone; when the decision identifier is the third decision identifier, performing the following operations: using the Internet of Things device to send the task to be processed to the drone; using the drone to send the task to be processed to the near-space platform.
[0048] According to an embodiment of the present disclosure, when the decision identifier is the second decision identifier, since the Internet of Things device cannot execute the task to be processed and needs to be executed by a drone, the Internet of Things device is used to send the task to be processed to the drone.
[0049] According to the embodiments of the present disclosure, when the decision identifier is the third decision identifier, since neither the IoT device nor the drone can execute the pending task, it needs to be executed by the near-space platform. Since the IoT device cannot directly send the pending task to the near-space platform, it needs to be sent to the drone first, and then the drone sends the pending task to the near-space platform.
[0050] According to an embodiment of the present disclosure, a near-space network task offloading decision model is determined based on the following training operations: obtaining historical tasks, the historical tasks include a first historical task performed by an IoT device, a second historical task performed by a near-space platform, and a third historical task performed by a drone; analyzing the historical tasks to obtain status information and action information related to the historical tasks, wherein the action information is a decision identifier, and the status information includes time slot information and queue length information associated with the historical tasks; determining the revenue information related to the historical tasks based on the status information and action information; and training the near-space network task offloading decision model using the revenue information, status information, and action information to obtain a trained near-space network task offloading decision model.
[0051] According to an embodiment of the present disclosure, a historical task may be a task that has been processed and completed and executed by an IoT device, a drone, or a near-space platform.
[0052] According to an embodiment of the present disclosure, the action information may be a decision identifier of a historical task, indicating which processing device in an IoT device, a drone, or a near-space platform executed the historical task.
[0053] According to an embodiment of the present disclosure, the decision identifier corresponding to the action information may be represented in the form of a binary variable. Indicates historical tasks Whether the task processing operation is performed by the IoT device, i.e. ; Let binary variable Representation Task Whether to offload historical tasks to drones ,Right now ; Let binary variable Indicates unloading to the drone The historical mission Whether it is by drone Perform task processing operations, i.e. ; Let binary variable Indicates unloading to the drone The historical mission Whether it is unloaded to the near-space platform for the second time, if , historical mission Passing drone Unload to near-space platform for processing.
[0054] According to an embodiment of the present disclosure, the state information may be obtained by analyzing the historical tasks, and represents the state changes generated when the historical tasks are processed under the action information of the historical tasks.
[0055] According to an embodiment of the present disclosure, the status information includes time slot information and queue length information associated with the historical task, which may be time slot change information and queue length change information when the historical task is processed under its action information.
[0056] According to an embodiment of the present disclosure, the revenue information may be the revenue associated with the historical task determined based on its status information when the historical task is processed under its action information, that is, the cost information spent on processing the task.
[0057] According to an embodiment of the present disclosure, the parameters of the near space network task offloading decision model are adjusted using the revenue information, the state information and the action information to obtain a trained near space network task offloading decision model.
[0058] According to the embodiments of the present disclosure, historical tasks performed by IoT devices, drones, and near-space platforms are analyzed to obtain revenue information, status information, and action information, which is suitable for complex scenarios of mobile edge computing under large-scale and wide coverage, distinguishes the importance of different features, minimizes the training cost of the model, and improves the stability of training.
[0059] According to an embodiment of the present disclosure, the time slot information associated with the historical task includes the first time slot information corresponding to the first historical task, and the first time slot information is determined based on the following operations: determining the first generated time slot information of the first historical task; determining the first queued time slot information of the IoT device; performing difference processing on the first generated time slot information and the first queued time slot information to determine the first to-be-executed time slot information; and performing calculation processing on the first historical task based on the first to-be-executed time slot information to obtain the first time slot information, wherein the first time slot information is as shown in formula (1):
[0060] (1);
[0061] in, is the first time slot information, t is the first generated time slot information, is the first time slot information to be executed, is the data size of the first historical task, The computing resources required for the first historical task, Computing capacity for IoT devices, is the time slot duration, is the maximum tolerable delay of the first historical task.
[0062] According to an embodiment of the present disclosure, the system operation time is divided into time slots, the duration of each time slot is , all time slots constitute the time slot set .make represents a collection of drones, Represents a collection of IoT devices. Indicates time slot By IoT devices The generated computing tasks, tasks The data size (bits) is , the maximum tolerable delay (s) is , the required computing resources (CPU cycles / bit) are If the system cannot Complete the task before starting If the task is not processed, it will be discarded.
[0063] According to an embodiment of the present disclosure, the first generated time slot information of the first historical task may be the tth time slot generated by the first historical task in the Internet of Things device.
[0064] According to an embodiment of the present disclosure, the first queuing time slot information may be a time slot in which the task corresponding to the task before the first historical task is generated is completed or discarded. .
[0065] According to an embodiment of the present disclosure, difference processing is performed on the first generated time slot information and the first queued time slot information to determine the first to-be-executed time slot information, which may be as shown in formula (2).
[0066] (2);
[0067] According to an embodiment of the present disclosure, based on the above formula (1), the first historical task is determined Put into IoT devices The local computing queue of the task is processed, and the time slot when the task is completed or discarded is used as the first time slot information.
[0068] According to an embodiment of the present disclosure, the queue length information includes transmission queue length information and processing queue length information; the transmission queue length information includes first transmission queue length information and second transmission queue length information, wherein the first transmission queue length information is determined based on the following operations: when the decision identification characterization is processed by the drone, the attribute information of the IoT device is calculated and processed to determine a first data transmission rate between the IoT device and the drone; based on the first data transmission rate, the first transmission queue length information of the transmission queue of the IoT device is determined, wherein the first transmission queue length information is as shown in formula (3):
[0069] (3);
[0070] in, is the first transmission queue length information, is the first transmission queue length information of time slot t-1, The decision flag indicates that the task is not to be processed on the IoT device. The number of tasks discarded during the transmission process from IoT devices to drones, The number of historical missions transmitted to drones for IoT devices.
[0071] According to an embodiment of the present disclosure, the first transmission queue length information may be a queue used by the IoT device to transmit a task to the drone.
[0072] According to an embodiment of the present disclosure, the attribute information of the IoT device may be the communication bandwidth, transmission power, noise power of the IoT device, and the channel gain between the IoT device and the drone.
[0073] According to an embodiment of the present disclosure, the attribute information of the IoT device is calculated and processed to determine a first data transmission rate between the IoT device and the drone.
[0074] According to an embodiment of the present disclosure, the historical task transmitted during the tth time slot is recorded as , is the historical task transmitted by the IoT device to the drone during the tth time slot The number can be expressed as formula (4).
[0075] (4);
[0076] According to an embodiment of the present disclosure, based on the first data transmission rate and the number of historical tasks transmitted from the IoT device to the drone obtained by formula (4), the first transmission queue length information is obtained using formula (3).
[0077] According to an embodiment of the present disclosure, the second transmission queue length information is determined based on the following operations: when the decision identification characterization is processed by the near-space platform, the attribute information of the drone is calculated and processed to determine the second data transmission rate between the drone and the near-space platform; based on the second data transmission rate, the second transmission queue length information of the transmission queue of the drone is determined, wherein the second transmission queue length information is shown in formula (5):
[0078] (5);
[0079] in, It is the second dynamic change information. is the second dynamic change information of the t-1 time slot, is the data size of the third historical task, is the second data transmission rate, The number of tasks discarded during the transmission process of the UAV to the near-space platform.
[0080] According to an embodiment of the present disclosure, there is only one transmission queue at the drone. If the drone receives tasks from different IoT devices in the same time slot, the remaining tolerance delay of the task will be used as the priority, and the offload task with the highest priority (i.e., the shortest remaining tolerance delay) will be placed in the transmission queue first.
[0081] According to an embodiment of the present disclosure, if the IoT device In time slot Generated tasks In time slot Arrival drone during , and this task has the highest priority, then this task (i.e. the third historical task) is recorded as , and in the time slot Initially, the task is placed in the transmission queue. In addition, the task The maximum tolerable delay is recorded as , the data size is recorded as When the task Put into drone After the transmission queue is completed, the task needs to wait time slots to start the secondary unloading. Representation Task The time slot when the secondary unloading is completed or discarded. Before entering the drone Tasks for the transmission queue ( ) and its corresponding , then the task Waiting delay before secondary unloading As shown in formula (6), As shown in formula (7).
[0082] (6);
[0083] (7);
[0084] According to an embodiment of the present disclosure, according to an embodiment of the present disclosure, the attribute information of the drone may be the communication bandwidth, transmission power, noise power of the drone, and the channel gain between the drone and the near-space platform.
[0085] According to an embodiment of the present disclosure, the attribute information of the drone is calculated and processed to determine the second data transmission rate between the drone and the near-space platform.
[0086] According to an embodiment of the present disclosure, based on the second data transmission rate, the first transmission queue length information is obtained using the above formula (5).
[0087] According to an embodiment of the present disclosure, the processing queue length information includes first processing queue length information and second processing queue length information; when the decision identification indicates that the processing is performed by a drone, the queue length information to be processed of the drone is determined; based on the attribute information of the drone, the queue length information to be processed of the drone is processed to obtain the first processing queue length information associated with the drone; when the decision identification indicates that the processing is performed by a near-space platform, the queue length information to be processed of the near-space platform is determined; based on the attribute information of the near-space platform, the queue length information to be processed of the near-space platform is processed to obtain the second processing queue length information associated with the near-space platform.
[0088] According to an embodiment of the present disclosure, in the time slot The amount of data added to the processing queue at the beginning is recorded as .make Indicates time slot At the end, the drone Corresponding to the device The processing queue length, and its dynamic change process is used as the first processing queue length information associated with the drone.
[0089] According to an embodiment of the present disclosure, if in the time slot At the end, the drone's processing queue is not empty (i.e. ), or in the time slot During this period, new tasks are added to the processing queue (i.e. ), then the computation queue is called the effective processing queue. Indicates time slot The effective processing queue set of drones during the period, that is, in the time slot The number of effective processing queues of drones during the period.
[0090] According to an embodiment of the present disclosure, assuming that each drone has only one processor, the effective computing queues in the drone will evenly distribute the computing resources of the drone. Indicates drone CPU frequency, then the first processing queue length information associated with the drone It can be shown as formula (8).
[0091] , (8);
[0092] in, Indicates that the drone processing queue is in the time slot The amount of data discarded during is the length of the drone processing queue during the t-1th time slot, that is, the length of the drone queue to be processed, is the computing capacity of the drone, The computing resources required for the second historical task.
[0093] According to an embodiment of the present disclosure, if the near-space platform is in the time slot During the reception of the drone The task that is uninstalled twice (i.e., the second historical task) is recorded as , and in the time slot Initially put it into the corresponding drone The near-space platform processing queue. Tasks in the transfer queue ( ) in the time slot If it reaches the near-space platform during this period, In addition, the task The maximum tolerable delay is recorded as , the data size is recorded as , the required computing resources are recorded as .
[0094] According to an embodiment of the present disclosure, Indicates time slot At the end, the space platform corresponding to the drone The calculation queue length, and its dynamic change process as the second processing queue length information associated with the near-space platform, can be shown as formula (9).
[0095] (9);
[0096] in, Indicates that the queue is in the time slot The amount of data discarded during is the length of the queue processed by the near-space platform during the t-1th time slot, that is, the length of the queue to be processed by the near-space platform. It is the computing capacity of the near-space platform.
[0097] According to an embodiment of the present disclosure, Representation Task Processes completed or discarded time slots. Task Need to wait Time slots are required to start processing. Previous missions to reach near-space platforms ( ) and its corresponding ,but 1As shown in formula (10), As shown in formula (11).
[0098] (10);
[0099] (11);
[0100] According to an embodiment of the present disclosure, the status information also includes prediction information; the prediction information is determined based on the following operations: based on the constraints, the historical tasks are processed using a prediction model to obtain the prediction information; wherein the constraints are determined based on the following operations: according to the decision identifier, a first constraint is determined, and the first constraint is associated with the number of historical tasks corresponding to the decision identifier; when the decision identifier represents processing by a drone, the unloading time slot information of the third historical task is determined; a first correspondence between the transmission data information associated with the unloading time slot information and the data information of the third historical task is constructed, and the first correspondence is used as the second constraint; the processing data information of the third historical task is determined; a second correspondence between the processing data information and the data information of the third historical task is constructed, and the second correspondence is used as the third constraint; the constraint is determined based on the first constraint, the second constraint and the third constraint.
[0101] According to an embodiment of the present disclosure, considering the indivisibility of tasks, the variables corresponding to the decision identifiers of the above historical tasks are , , ,as well as Formula (12) and Formula (13) must be satisfied and used as the first constraint.
[0102] (12);
[0103] (13);
[0104] in is an indicative function, if ,but ,otherwise .
[0105] According to an embodiment of the present disclosure, when the decision identifier indicates that the task is to be processed by a drone, the unloading time slot information of the third historical task may be the time slot information of the third historical task to be unloaded. The time slot for starting unloading is specifically shown in formula (14).
[0106] (14);
[0107] According to an embodiment of the present disclosure, the first correspondence between the transmission data information associated with the uninstallation time slot information and the data information of the third historical task may be: The amount of data transmitted from the time slot when the unloading starts to the t-1th time slot is less than the amount of data of the third historical task. The amount of data transmitted from the time slot when unloading starts to the tth time slot is greater than or equal to the amount of data of the third historical task, that is, the second constraint condition can be shown as formula (15) and formula (16).
[0108] (15);
[0109] (16);
[0110] According to an embodiment of the present disclosure, when the decision mark indicates that the task is processed by the drone, the time slot when the third historical task is completed or discarded is , due to drones The processing queue changes in real time and cannot be given The closed-form expression of the third historical task processing data information can be the task The time slot at which processing starts , as shown in formula (17).
[0111] (17);
[0112] According to an embodiment of the present disclosure, the second correspondence between the processed data information and the data information of the third historical task may be that the amount of data processed during the period from the time slot when the third historical task starts to be processed to the t-1th time slot is less than the amount of data of the third historical task; and the amount of data processed during the period from the time slot when the third historical task starts to be processed to the tth time slot is greater than or equal to the amount of data of the third historical task, that is, the third constraint condition is as shown in formula (18) and formula (19).
[0113] (18);
[0114] (19);
[0115] According to an embodiment of the present disclosure, the first constraint condition, the second constraint condition and the third constraint condition obtained above are used together as constraint conditions of the prediction model.
[0116] According to an embodiment of the present disclosure, the prediction model may be a trained Convolutional Long Short-Term Memory (ConvLSTM) model. Based on the constraints obtained above, the prediction model is used to predict the decision identification sets corresponding to multiple historical tasks. The prediction information obtained can be the decision identification information in a future time slot. The above prediction model can be .
[0117] Figure 3 A schematic diagram of a prediction model according to an embodiment of the present disclosure is schematically shown.
[0118] like Figure 3 As shown in Figure 1, the prediction model takes the UAV mission load (i.e., the variable information corresponding to the decision identifier) as input and outputs the UAV's future mission load. Specifically, the air plane where the UAV is located is divided into a The grid map of , each grid corresponds to a drone, so the number of grids is equal to the number of drones. The task load of each drone in each time slot is the data value of the corresponding grid in that period. Formally, let the tensor Indicates that all drones are in the time slot The task load at the time of Indicates that it is located in the grid Drones on time slots task load.
[0119] According to an embodiment of the present disclosure, a prediction model is used to process historical tasks and obtain prediction information to enrich the sample types during model training and improve the stability of the model.
[0120] According to an embodiment of the present disclosure, the revenue information related to the historical task is determined according to the state information and the action information, including: determining the state information corresponding to the action information according to the action information of the historical task; determining the processing cost information of the historical task according to the state information; determining the revenue information related to the historical task according to the processing cost information, wherein the revenue information is as shown in formula (20):
[0121] (20);
[0122] in, For revenue information, is the discount factor, The value of , is the preset value, To process cost information.
[0123] According to the embodiment of the present disclosure, each IoT device is regarded as an intelligent agent. It is assumed that the drone and the near-space platform will broadcast their status information and prediction information to the devices within the communication range at the end of each time slot. Therefore, the status observed from the perspective of the IoT device is ,in, is the set of channel gains, For drones in time slots All drones in the time slot The first processing queue length information set at the end is , the second transmission queue length information set is , near-space platforms in time slots The second processing queue length information set at the end is .
[0124] According to an embodiment of the present disclosure, when the agent Based on status information Make action information After that, you will get benefits , then the device The long-term cumulative discounted return (i.e., return information) is as follows: .
[0125] According to an embodiment of the present disclosure, the preset value For information that is much greater than the processing cost The preset constants.
[0126] According to an embodiment of the present disclosure, processing cost information It is defined as the time difference between the completion time slot and the start time slot of the historical task.
[0127] Among them, the processing cost information of the first historical task executed by the IoT device It can be expressed as .
[0128] If the task By device Offload to the drone for processing, i.e., the processing cost information of the second historical mission performed by the near-space platform It can be expressed as .
[0129] If the task After the drone is unloaded twice to the near-space platform for processing, that is, the processing cost information of the third historical task performed by the drone It can be expressed as .
[0130] According to an embodiment of the present disclosure, if the above tasks If the task cannot be processed and completed before its maximum tolerable delay, a penalty will be imposed on the task, i.e. , is a constant greater than zero.
[0131] According to an embodiment of the present disclosure, the expression of the total cost of historical task processing is: .
[0132] According to an embodiment of the present disclosure, a near space network task offloading decision model includes an estimation network and a target network, and the revenue information, state information and action information are input into the estimation network to obtain an estimated Q value; the revenue information, state information and action information are input into the target network to obtain a target Q value; and the parameters of the near space network task offloading decision model are adjusted based on the estimated Q value and the target Q value.
[0133] According to an embodiment of the present disclosure, if the IoT device In time slot The task was generated at the beginning , IoT devices will be based on the near-space network task offloading decision model and follow Make decisions, where represents the probability of random exploration of IoT devices, Indicates that the status and actions The estimated Q value output after inputting the estimation network.
[0134] According to an embodiment of the present disclosure, once the IoT device Action performed , the device will be in the time slot Get status at the beginning , and the corresponding benefits .
[0135] According to an embodiment of the present disclosure, Indicates that from the experience pool A batch training sample set is sampled from , where any experience sample represents The above experience pool It may include historical tasks and their corresponding revenue information, status information, and action information.
[0136] According to the embodiment of the present disclosure, for any empirical sample, the expression of its temporal-difference (TD) error is: ,in For experience samples The target Q value is The expression is ,in For the status Next, estimate the action that the network can take to obtain the maximum Q value, that is .
[0137] According to the embodiment of the present disclosure, based on the TD error obtained above, the importance index of the historical task can be determined, and then the importance index of each experience sample can be determined. The sampling probability and weight of . Based on the sampling probability and weight, the near space network task offloading decision model is trained.
[0138] According to an embodiment of the present disclosure, historical tasks are obtained. The historical tasks obtained above are analyzed to determine multiple ones respectively; the information such as time slot changes, transmission queue length changes, and processing queue length changes generated by the historical tasks under different decision identifiers are used as status information and action information related to the historical tasks. The above-mentioned status information and action information related to the historical tasks are further integrated and analyzed to determine the benefit information related to the historical tasks. Based on the above-mentioned status information and action information obtained, the sampling probability and weight of each historical task are determined. Based on the above-mentioned determined sampling probability and weight, the near space network task unloading decision model is trained using multiple historical tasks to obtain the trained near space network task unloading decision model.
[0139] According to the embodiments of the present disclosure, the near-space network task offloading decision model obtained by the present disclosure based on the above-mentioned training process can make decisions on the tasks to be processed according to the real-time network environment conditions, effectively reduce the processing cost of the tasks, and meet the real-time processing requirements of computationally intensive and delay-sensitive tasks.
[0140] Based on the above-mentioned near-space network task decision method, the present disclosure also provides a near-space network task decision device. Figure 4 The device is described in detail.
[0141] Figure 4 The structural block diagram of the near-space network task decision-making device according to an embodiment of the present disclosure is schematically shown.
[0142] like Figure 4As shown, the near-space network task decision device 400 of this embodiment includes an acquisition module 410 , a processing module 420 , a first execution module 430 , a second execution module 440 and a third execution module 450 .
[0143] The acquisition module 410 is used to acquire the to-be-processed tasks generated by the IoT device. In one embodiment, the acquisition module 410 can be used to perform the operation S210 described above, which will not be described in detail here.
[0144] The processing module 420 is used to process the pending task using the near space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending task. In one embodiment, the processing module 420 can be used to perform the operation S220 described above, which will not be repeated here.
[0145] The first execution module 430 is used to execute the task to be processed using the IoT device when the decision identifier is the first decision identifier. In one embodiment, the first execution module 430 can be used to execute the operation S230 described above, which will not be described in detail here.
[0146] The second execution module 440 is used to use the drone to execute the task to be processed when the decision identifier is the second decision identifier. In one embodiment, the second execution module 440 can be used to execute the operation S240 described above, which will not be repeated here.
[0147] The third execution module 450 is used to execute the pending task using the near-space platform when the decision identifier is the third decision identifier, wherein the near-space platform, the drone, and the IoT device are communicatively connected. In one embodiment, the third execution module 450 can be used to execute the operation S250 described above, which will not be described in detail here.
[0148] According to the embodiments of the present disclosure, the pending tasks generated by the IoT device are obtained; the pending tasks are processed using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks; when the decision identification is the first decision identification, the pending tasks are executed using the IoT device; when the decision identification is the second decision identification, the pending tasks are executed using the drone; when the decision identification is the third decision identification, the pending tasks are executed using the near-space platform, wherein the near-space platform, the drone and the IoT device are connected in communication. Due to the use of the technical means of processing the pending tasks using the near-space network task offloading decision model constructed based on the reinforcement learning strategy to obtain the decision identification of the pending tasks, the problem of not considering the spatiotemporal characteristics of the change of the drone task load and not partitioning the importance of each sample is avoided, thereby realizing the complex scenarios of mobile edge computing applicable to large-scale and wide-coverage areas, effectively reducing the processing cost of tasks, and meeting the real-time requirements for processing of computationally intensive and delay-sensitive tasks.
[0149] According to an embodiment of the present disclosure, any multiple modules among the acquisition module 410, the processing module 420, the first execution module 430, the second execution module 440 and the third execution module 450 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 410, the processing module 420, the first execution module 430, the second execution module 440 and the third execution module 450 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 410, the processing module 420, the first execution module 430, the second execution module 440 and the third execution module 450 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
[0150] According to an embodiment of the present disclosure, the near-space network task decision device 400 further includes a first sending module, a second sending module and a third sending module.
[0151] The first sending module is used to perform the following operation when the decision identifier is the first decision identifier: using the Internet of Things device to send the task to be processed to the drone.
[0152] The second sending module is used to perform the following operation when the decision identifier is the second decision identifier: using the Internet of Things device to send the task to be processed to the drone.
[0153] The third sending module is used to send the pending tasks to the near-space platform using the drone.
[0154] According to an embodiment of the present disclosure, the processing module 420 includes an acquisition submodule, an analysis submodule, a first determination submodule, and a training submodule.
[0155] The acquisition submodule is used to acquire historical tasks, where the historical tasks include a first historical task executed by an IoT device, a second historical task executed by a near-space platform, and a third historical task executed by a drone.
[0156] The analysis submodule is used to analyze the historical tasks to obtain the status information and action information related to the historical tasks, wherein the action information is a decision identifier, and the status information includes the time slot information and queue length information associated with the historical tasks.
[0157] The first determination submodule is used to determine the revenue information related to the historical task according to the state information and the action information.
[0158] The training submodule is used to train the near space network task offloading decision model using the revenue information, state information and action information to obtain the trained near space network task offloading decision model.
[0159] According to an embodiment of the present disclosure, the analysis submodule includes a first determination unit, a second determination unit, a first processing unit, and a second processing unit.
[0160] The first determining unit is used to determine first generation time slot information of a first historical task.
[0161] The second determining unit is used to determine the first queuing time slot information of the Internet of Things device.
[0162] The first processing unit is used to perform difference processing on the first generated time slot information and the first queuing time slot information to determine the first to-be-executed time slot information.
[0163] The second processing unit is used to calculate and process the first historical task based on the first time slot information to be executed, so as to obtain the first time slot information, wherein the first time slot information is as shown in formula (1):
[0164] (1);
[0165] in, is the first time slot information, t is the first generated time slot information, is the first time slot information to be executed, is the data size of the first historical task, The computing resources required for the first historical task, Computing capacity for IoT devices, is the time slot duration, is the maximum tolerable delay of the first historical task.
[0166] According to an embodiment of the present disclosure, the analysis submodule further includes a third processing unit and a third determining unit.
[0167] The third processing unit is used to calculate and process the attribute information of the Internet of Things device when the decision identification indicates that the processing is performed by the drone, and determine a first data transmission rate between the Internet of Things device and the drone.
[0168] The third determining unit is used to determine first transmission queue length information of a transmission queue of the IoT device based on the first data transmission rate, wherein the first transmission queue length information is as shown in formula (2):
[0169] (2);
[0170] in, is the first transmission queue length information, is the first transmission queue length information of time slot t-1, The decision flag indicates that the task is not to be processed on the IoT device. The number of tasks discarded during the transmission process from IoT devices to drones, The number of historical missions transmitted to drones for IoT devices.
[0171] According to an embodiment of the present disclosure, the analysis submodule further includes a fourth processing unit and a fourth determining unit.
[0172] The fourth processing unit is used to calculate and process the attribute information of the UAV and determine the second data transmission rate between the UAV and the near-space platform when the decision identification representation is processed by the near-space platform.
[0173] The fourth determining unit is used to determine the second transmission queue length information of the transmission queue of the UAV based on the second data transmission rate, wherein the second transmission queue length information is as shown in formula (3):
[0174] (3);
[0175] in, It is the second dynamic change information. For the second dynamic change information of history, is the data size of the third historical task, is the second data transmission rate, The number of tasks discarded during the transmission process of the UAV to the near-space platform.
[0176] According to an embodiment of the present disclosure, the analysis submodule further includes a fifth determination unit, a fifth processing unit, a sixth determination unit, and a sixth processing unit.
[0177] The fifth determining unit is used to determine the queue length information of the drone to be processed when the decision identifier indicates that the process is to be processed by the drone.
[0178] The fifth processing unit is used to process the to-be-processed queue length information of the drone based on the attribute information of the drone to obtain the first processing queue length information associated with the drone.
[0179] The sixth determining unit is used to determine the length information of the queue to be processed of the near-space platform when the decision identifier indicates that the processing is performed by the near-space platform.
[0180] The sixth processing unit is used to process the to-be-processed queue length information of the near-space platform based on the attribute information of the near-space platform to obtain the second processing queue length information associated with the near-space platform.
[0181] According to an embodiment of the present disclosure, the analysis submodule further includes a seventh processing unit.
[0182] The seventh processing unit is used to process the historical tasks based on the constraint conditions and utilize the prediction model to obtain prediction information.
[0183] The seventh processing unit includes a first determining subunit, a second determining subunit, a first constructing subunit, a third determining subunit, a second constructing subunit and a fourth determining subunit.
[0184] The first determining subunit is used to determine a first constraint condition according to the decision identifier, where the first constraint condition is associated with the number of historical tasks corresponding to the decision identifier.
[0185] The second determining subunit is used to determine the unloading time slot information of the third historical task when the decision identifier indicates that the task is processed by the drone.
[0186] The first construction subunit is used to construct a first corresponding relationship between the transmission data information associated with the unloading time slot information and the data information of the third historical task, and use the first corresponding relationship as the second constraint condition.
[0187] The third determining subunit is used to determine the processing data information of the third historical task.
[0188] The second construction subunit is used to construct a second corresponding relationship between the processed data information and the data information of the third historical task, and use the second corresponding relationship as the third constraint condition.
[0189] The fourth determining subunit is used to determine the constraint condition according to the first constraint condition, the second constraint condition and the third constraint condition.
[0190] According to an embodiment of the present disclosure, the first determining submodule includes a seventh determining unit, an eighth determining unit, and a ninth determining unit.
[0191] The seventh determining unit is used to determine the state information corresponding to the action information according to the action information of the historical task.
[0192] The eighth determining unit is used to determine the processing cost information of the historical task according to the state information.
[0193] The ninth determination unit is used to determine the revenue information related to the historical task according to the processing cost information, wherein the revenue information is as shown in formula (4):
[0194] (4);
[0195] in, For revenue information, is the discount factor, The value of
[0196] , is the preset value, To process cost information.
[0197] Figure 5 A block diagram of an electronic device suitable for implementing a near-space network task decision method according to an embodiment of the present disclosure is schematically shown.
[0198] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0199] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0200] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
[0201] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0202] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0203] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the near-space network task decision method provided by the embodiment of the present disclosure.
[0204] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0205] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0206] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0207] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0208] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0209] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0210] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A near-space network task decision method, comprising: Get pending tasks generated by IoT devices; Processing the pending task using a near space network task offloading decision model constructed based on a reinforcement learning strategy to obtain a decision identifier of the pending task; When the decision identifier is the first decision identifier, using the Internet of Things device to execute the task to be processed; When the decision identifier is the second decision identifier, using a drone to execute the task to be processed; When the decision identifier is the third decision identifier, the task to be processed is executed using a near-space platform, wherein the near-space platform, the drone, and the Internet of Things device are communicatively connected.
2. The method according to claim 1, wherein: The method further comprises: In the case where the decision identifier is the second decision identifier, the following operations are performed: Using the Internet of Things device to send the task to be processed to the drone; In the case where the decision identifier is the third decision identifier, the following operations are performed: Using the Internet of Things device to send the task to be processed to the drone; The unmanned aerial vehicle is used to send the task to be processed to the near-space platform.
3. The method according to claim 1, wherein: The near space network task offloading decision model is determined based on the following training operations: Acquire historical tasks, where the historical tasks include a first historical task performed by the IoT device, a second historical task performed by the near-space platform, and a third historical task performed by the drone; Analyze the historical task to obtain status information and action information related to the historical task, wherein the action information is the decision identifier, and the status information includes time slot information and queue length information associated with the historical task; Determining benefit information related to the historical task according to the state information and the action information; The near space network task offloading decision model is trained using the revenue information, the state information and the action information to obtain the trained near space network task offloading decision model.
4. The method according to claim 3, wherein: The time slot information associated with the historical task includes first time slot information corresponding to the first historical task, where the first time slot information is determined based on the following operations: Determining first generation time slot information of the first historical task; Determine the first queuing time slot information of the Internet of Things device; Performing difference processing on the first generated time slot information and the first queuing time slot information to determine first to-be-executed time slot information; Based on the first time slot information to be executed, the first historical task is calculated and processed to obtain first time slot information, wherein the first time slot information is as shown in formula (1): in, is the first time slot information, t is the first generated time slot information, is the first time slot information to be executed, u (t) is the data size of the first historical task, β u is the computing resources required for the first historical task, f u is the computing capacity of the IoT device, δ is the time slot duration, θ u (t) is the maximum tolerable delay of the first historical task.
5. The method according to claim 3, wherein: The queue length information includes transmission queue length information and processing queue length information; The transmission queue length information includes first transmission queue length information and second transmission queue length information, wherein the first transmission queue length information is determined based on the following operations: In the case where the decision identification representation is processed by the drone, Calculate and process the attribute information of the IoT device to determine a first data transmission rate between the IoT device and the drone; Based on the first data transmission rate, first transmission queue length information of the transmission queue of the IoT device is determined, wherein the first transmission queue length information is as shown in formula (2): in, is the first transmission queue length information, is the first transmission queue length information of time slot t-1, The decision mark indicates that the task is not to be processed by the IoT device. u (t) is the number of tasks discarded during the transmission process from the IoT device to the drone, The number of historical tasks transmitted by the IoT device to the drone.
6. The method according to claim 5, wherein: The second transmission queue length information is determined based on the following operations: In the case where the decision identification representation is processed by a near-space platform, Calculating and processing the attribute information of the UAV to determine a second data transmission rate between the UAV and the near-space platform; Based on the second data transmission rate, second transmission queue length information of the transmission queue of the UAV is determined, wherein the second transmission queue length information is as shown in formula (3): in, This is the second dynamic change information. For the second dynamic change information of history, is the data size of the third historical task, is the second data transmission rate, is the number of tasks discarded during the transmission of the UAV to the near-space platform.
7. The method according to claim 5, wherein: The processing queue length information includes first processing queue length information and second processing queue length information; In the case where the decision identification representation is processed by the drone, Determine the queue length information of the drone to be processed; Based on the attribute information of the drone, the to-be-processed queue length information of the drone is processed to obtain the first processing queue length information associated with the drone; In the case where the decision identification representation is processed by a near-space platform, Determining the length information of the queue to be processed of the near-space platform; Based on the attribute information of the near-space platform, the to-be-processed queue length information of the near-space platform is processed to obtain the second processing queue length information associated with the near-space platform.
8. The method according to claim 3, wherein: The status information also includes prediction information: The prediction information is determined based on the following operations: Based on the constraint conditions, the historical tasks are processed using a prediction model to obtain the prediction information; The constraint condition is determined based on the following operations: Determining a first constraint condition according to the decision identifier, where the first constraint condition is associated with the number of the historical tasks corresponding to the decision identifier; In the case where the decision identification representation is processed by the drone, Determining the unloading time slot information of the third historical task; Constructing a first correspondence between the transmission data information associated with the unloading time slot information and the data information of the third historical task, and using the first correspondence as a second constraint condition; Determining processing data information of the third historical task; Constructing a second correspondence between the processed data information and the data information of the third historical task, and using the second correspondence as a third constraint condition; The constraint condition is determined according to the first constraint condition, the second constraint condition and the third constraint condition.
9. The method according to claim 3, wherein: The determining, according to the state information and the action information, the revenue information related to the historical task includes: Determining, according to the action information of the historical task, the state information corresponding to the action information; Determining processing cost information of the historical task according to the status information; According to the processing cost information, the revenue information related to the historical task is determined, wherein the revenue information is as shown in formula (4): Among them, r u (t) is the revenue information, γ t is the discount factor, r(o u (t),a u The value of (t) is is the preset value, c u (t) is the processing cost information.
10. A near-space network task decision device, comprising: An acquisition module, used to acquire pending tasks generated by IoT devices; A processing module, used to process the task to be processed by using a near space network task offloading decision model constructed based on a reinforcement learning strategy, and obtain a decision identifier of the task to be processed; A first execution module, configured to execute the task to be processed using the Internet of Things device when the decision identifier is the first decision identifier; A second execution module, configured to execute the task to be processed by using a drone when the decision identifier is a second decision identifier; The third execution module is used to use the near-space platform to execute the task to be processed when the decision identifier is the third decision identifier, wherein the near-space platform, the drone and the Internet of Things device are communicatively connected.
Citation Information
Patent Citations
Task offloading method for multi-unmanned aerial vehicle cooperative edge computing network
CN117641450A
