Industrial Internet of Things task offloading method, system, device and storage medium
The PASD model and Dueling DQN model are used to optimize task offloading decisions in the industrial Internet of Things, solving the balance problem between task processing efficiency and resource consumption in the cloud-edge collaborative computing system, and achieving efficient task processing and resource management.
Patent Information
- Application Number
- CN202211262611.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-14
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-10-14
AI Technical Summary
In the field of industrial Internet of Things, in the cloud-edge collaborative computing system, it is difficult to achieve a balance between the processing efficiency and resource consumption of industrial data tasks, resulting in task offloading performance being limited by network resources and computing resources.
The PASD model is used, and the competitive deep Q network Dueling DQN model is used to make offloading decisions based on the weighted sum of the average task completion time and the total system energy consumption. The model performance is optimized through the priority experience replay pool and the important sampling method, and the optimal offloading operation is determined and allocated. resources to offload tasks to appropriate execution parties.
It minimizes the average task completion time and total system energy consumption, improves the processing efficiency of industrial data tasks, reduces resource consumption, and improves the diversity and reliability of offloading operations.
Smart Images

Figure CN115529335B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of industrial Internet of Things. More specifically, the present disclosure relates to an industrial Internet of Things task offloading method, system, device and storage medium. Background Art
[0002] With the widespread application of Industrial Internet of Things (IIoT), a large number of automated industrial equipment have joined the IIoT, and automated industrial equipment will generate a large number of industrial data tasks. At the same time, the computing and processing of these tasks consume a lot of resources. Therefore, a low-latency and low-power production environment has become a problem that the industrial industry needs to solve urgently.
[0003] The development of cloud-edge-end collaborative computing systems has made up for the shortcomings of task offloading in single cloud computing (MCC, Mobile Cloud Computing) or single edge computing (MEC, Mobile Edge Computing) environments. In order to achieve efficient digital computing processing, the industrial data processing method of the cloud-edge-end collaborative computing architecture is that industrial Internet of Things devices can offload industrial tasks to cloud servers or edge servers, and then use MCC or MEC to share the load of industrial data tasks. However, with the increase in latency-sensitive tasks in industrial equipment, the limited network resources and computing resources of industrial Internet of Things devices and servers have become an important factor affecting computing offloading performance. Therefore, how to improve the processing efficiency of industrial data tasks while reducing resource consumption is an important issue that needs to be considered when the cloud-edge-end collaborative computing system in the field of industrial Internet of Things performs task offloading.
[0004] In view of this, there is an urgent need to provide an industrial Internet of Things task offloading method, system, device and storage medium, so as to calculate the offloading operation that takes into account both task offloading efficiency and resource allocation, so as to improve the processing efficiency of industrial data tasks while reducing resource consumption. Summary of the invention
[0005] In order to at least solve one or more of the technical problems mentioned above, the present disclosure proposes an industrial Internet of Things task offloading method, system, device and storage medium in multiple aspects.
[0006] In a first aspect, the present disclosure provides an industrial Internet of Things task offloading method, comprising: obtaining an industrial Internet of Things application task in response to a task offloading request issued by an industrial Internet of Things device; determining an offloading operation according to the application task using a PASD model; the offloading operation includes an offloading decision and a resource allocation decision; the offloading decision includes an executor of the application task; the executors include: an industrial Internet of Things device, an edge server, and a cloud server; sending an offloading operation to the industrial Internet of Things device to instruct the industrial Internet of Things device to offload the application task to the executor in the offloading decision, and instructing the executor in the offloading decision to allocate corresponding resources according to the resource allocation decision to execute the application task; wherein the PASD model includes a competitive deep Q network Dueling DQN model, the reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total energy consumption of the system, and the Q value is the action value corresponding to the Dueling DQN model executing the offloading operation; the PASD model outputs the offloading operation corresponding to the maximum Q value as the determined offloading operation.
[0007] In some embodiments, the PASD model includes a priority experience replay pool for storing unloading operations output by the PASD model to update training samples for reinforcement learning of the PASD model.
[0008] In some embodiments, the PASD model is used to determine the unloading operation according to the application task, including: in response to the application task, sensing the system environment status of the current time slot; the system environment status includes computing resource information of the industrial Internet of Things device, computing resource information of the edge server, computing resource information of the cloud server and remaining bandwidth resource information of the wireless channel; the PASD model determines the unloading operation based on the system environment status of the current time slot.
[0009] In some embodiments, after determining the unloading operation according to the application task using the PASD model, it also includes: generating a reward corresponding to performing the unloading operation and the system environment state of the next time slot based on the unloading operation; storing the system environment state of the current time slot, the unloading operation, the reward and the system environment state of the next time slot into a priority experience replay pool for PASD model reinforcement learning.
[0010] In some embodiments, the system environment state, unloading operation, reward of the current time slot and the system environment state of the next time slot are stored in a priority experience replay pool, including: taking the system environment state, unloading operation, reward of the current time slot and the system environment state of the next time slot as a training data array, assigning sampling probability to the training data array and storing it in the priority experience replay pool.
[0011] In some embodiments, assigning sampling probabilities to the training data array includes: calculating the sampling probability of the training data array according to the following formula and assigning the sampling probability to the training data array: in, Indicates uninstall operation The sampling probability of Indicates that the Dueling DQN model performs the unloading operation in the system environment state of the current time slot The action value Q value, Indicates the system environment status of the current time slot; A indicates the number of elements in the offload operation set; Indicates uninstall operation The priority of
[0012] In some embodiments, after assigning sampling probabilities to the training data arrays, the method further includes: correcting the priorities of the training data arrays using an importance sampling method.
[0013] In some embodiments, correcting the priority of the training data array using the importance sampling method includes: updating the priority of the training data array according to the following formula: in, Indicates uninstall operation The sampling probability of Indicates uninstall operation The priority of K represents the number of training data arrays in the priority experience replay pool; σ represents the influence coefficient of the importance sampling method on the learning process. When σ=1, the importance sampling completely compensates for the uneven sampling probability.
[0014] In some embodiments, using the PASD model, before determining the offloading decision according to the application task, it also includes: constructing the PASD model; the construction step of the PASD model includes: constructing the problem model in the PASD model, specifically including: establishing optimization objectives and constraints; generating rewards for the Dueling DQN model in the PASD model according to the optimization objectives; training the PASD model using training samples to enable the PASD model to obtain the offloading operation of the problem model corresponding to the maximum reward; wherein the optimization objective is to minimize the average completion time of the application task and minimize the total energy consumption of the system; the constraints include: the completion time of the application task is less than or equal to the maximum tolerable delay of the application task, the network bandwidth allocated to the application task is within the transmission bandwidth range of the link, the computing resources allocated to the application task when the industrial Internet of Things device is processed is less than or equal to the computing capacity of the industrial Internet of Things device, and the sum of the computing consumption of the application task when processed by the industrial Internet of Things device, the transmission consumption offloaded to the edge server, and the transmission consumption offloaded to the cloud server does not exceed the total battery capacity of the industrial Internet of Things device.
[0015] In some embodiments, the reward includes positive rewards and negative rewards; correspondingly, the rewards of the Dueling DQN model in the PASD model are generated according to the optimization objectives, including: taking the negative value of the weighted sum of the average completion time of the application tasks and the total energy consumption of the system as the positive reward; taking the negative value of the weighted sum of the maximum average completion time of the application tasks and the maximum total energy consumption of the system in the current time slot as the negative reward.
[0016] In some embodiments, a PASD model is trained using training samples to enable the PASD model to obtain the unloading operation of the problem model corresponding to the maximum reward, including: converting the problem model into a Markov decision MDP problem; sensing the system environment state of the current time slot and extracting an unloading operation from the training sample for execution; calculating the reward corresponding to the Q value output by the Dueling DQN model when executing the extracted unloading operation; sensing the system environment state of the next time slot after the extracted unloading operation is executed; and feeding back the system environment state and reward of the next time slot to the PASD model.
[0017] In some embodiments, the reward corresponding to the Q value output by the Dueling DQN model when executing the extracted uninstall operation is calculated, including: if the application task is successful after executing the extracted uninstall operation, then a positive reward is calculated; if the application task fails after executing the extracted uninstall operation, then a negative reward is calculated.
[0018] In a second aspect, the present disclosure provides an industrial Internet of Things cloud-edge-terminal collaborative system, including: a cloud server, which is configured to: respond to a task offloading request issued by an industrial Internet of Things device, obtain an application task of the industrial Internet of Things; use a PASD model to determine an offloading operation based on the application task; send the offloading operation to the industrial Internet of Things device to instruct the industrial Internet of Things device to offload the application task to the executor in the offloading decision, and instruct the executor in the offloading decision to allocate corresponding resources according to the resource allocation decision to execute the application task; wherein the offloading operation includes an offloading decision and a resource allocation decision; the offloading decision contains an executor of the application task; the executors include: industrial Internet of Things devices, edge servers and cloud servers; the PASD model includes a competitive deep Q network Dueling DQN model, and the reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total system energy consumption, and the Q value is Dueling The DQN model executes the action value corresponding to the offloading operation; the PASD model outputs the offloading operation corresponding to the maximum Q value as the determined offloading operation; the industrial Internet of Things device is used to generate and execute application tasks and send task offloading requests; and the edge server is used to receive and execute application tasks offloaded by the industrial Internet of Things device.
[0019] In a third aspect, the present disclosure provides an electronic device, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor executes any one of the methods in the first aspect.
[0020] In a fourth aspect, the present disclosure provides a non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute any of the methods in the first aspect.
[0021] Through the industrial Internet of Things task offloading method provided above, the disclosed scheme uses the negative value of the weighted sum of the average task completion time and the total system energy consumption as the reward corresponding to the Q value output by the Dueling DQN model in the PASD model, that is, when the weighted sum of the average task completion time and the total system energy consumption is smaller, the reward corresponding to the Q value is larger, and accordingly, the Q value output by the Dueling DQN model is also larger. Since the PASD model outputs the unloading operation corresponding to the maximum Q value as the determined unloading operation, after the task unloading request issued by the industrial Internet of Things device, the PASD model can determine the unloading operation according to the application task, and the determined unloading operation at this time is the unloading operation corresponding to the maximum Q value. Therefore, when the industrial Internet of Things device unloads the application task to the corresponding executor according to the unloading decision in the unloading operation, and instructs the executor to allocate the corresponding resources to execute the application task according to the resource allocation decision in the unloading operation, the requirements of minimizing the average task completion time and the total system energy consumption can be achieved, and the processing efficiency of industrial data tasks can be improved while reducing resource consumption.
[0022] Furthermore, in some embodiments of the present disclosure, a priority experience replay pool is set in the PASD model, and the unloading operation, reward, and two system environment states of adjacent time slots output by the PASD model based on the application task are stored as priority experience in the priority experience replay pool as new training samples, so that the PASD model can perform further reinforcement learning based on the priority experience, optimize the convergence speed of the PASD model, and further enhance the performance of the PASD model.
[0023] Furthermore, in some embodiments of the present disclosure, in response to a task offloading request issued by an industrial Internet of Things device, the priority experience obtained by the PASD model can be assigned a certain sampling probability and added to the priority experience replay pool, thereby effectively avoiding the frequent selection of offloading operations with high error values, effectively improving the diversity of offloading operation selection, and improving the learning efficiency of the PASD model for the task offloading method.
[0024] Furthermore, in some embodiments of the present disclosure, the importance sampling method is used to correct the priority of the training data array added to the priority experience replay pool and adjust the distribution of the sampling probability of the priority experience, which can avoid the PASD model from having a preference for high-priority offloading operations, and then prevent the deviation in the PASD model calculation process caused by the preference for offloading operations, thereby ensuring that the offloading operations determined by the PASD model are more objective and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] By reading the detailed description below with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0026] Figure 1 An exemplary scenario in which the embodiments of the present disclosure can be applied is shown;
[0027] Figure 2 An exemplary flow chart showing an industrial Internet of Things task offloading method according to some embodiments of the present disclosure is shown;
[0028] Figure 3 An exemplary flow chart showing a method for constructing a PASD model according to some embodiments of the present disclosure;
[0029] Figure 4 An exemplary network structure diagram of a Dueling DQN model in a PASD model of some embodiments of the present disclosure is shown;
[0030] Figure 5 An exemplary network structure diagram of a PASD model according to some other embodiments of the present disclosure is shown;
[0031] Figure 6 An exemplary flow chart showing an uninstall operation calculation method according to other embodiments of the present disclosure;
[0032] Figure 7 An exemplary flow chart showing a method for prioritizing experience backtracking according to other embodiments of the present disclosure is shown;
[0033] Figure 8 Another exemplary flow chart showing the priority experience backtracking method of other embodiments of the present disclosure;
[0034] Fig. 9 An exemplary structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0036] It should be understood that the terms "include" and "comprising" used in the specification and claims of the present disclosure indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0037] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.
[0038] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0039] The specific implementation of the present disclosure is described in detail below with reference to the accompanying drawings.
[0040] Exemplary application scenarios
[0041] In the application of industrial Internet of Things technology, when a large number of device terminals are added to the industrial Internet of Things, a large number of task processing requirements will be generated, such as object recognition tasks and posture monitoring tasks. The local computing load of the terminal device will face an exponential explosive growth. The present disclosure is applicable to the cloud-edge-end collaborative computing system in the industrial Internet of Things, where the cloud represents the cloud server, the edge represents the edge server, and the end represents the industrial Internet of Things device. When the industrial Internet of Things device generates a task processing requirement, the task can be offloaded to different executors based on the task processing requirements and the resources of the cloud-edge end. However, the pursuit of excessively high task processing efficiency will lead to excessive consumption of cloud-edge resources, and vice versa. Therefore, the cloud-edge-end collaborative computing system currently used in the industrial Internet of Things requires a balance between task processing efficiency and resource consumption.
[0042] Figure 1 An exemplary scenario to which the disclosed embodiments can be applied is shown, in which an industrial Internet of Things device generates a task offloading request and transmits it to a cloud server through an edge server. Under the instruction of the offloading operation determined by the cloud server, the industrial Internet of Things device offloads the tasks and data to be processed to the corresponding executor.
[0043] Exemplary Unloading Scenarios
[0044] In view of this, the disclosed embodiment provides an industrial Internet of Things task offloading method, which uses the negative value of the weighted sum of the average task completion time and the total system energy consumption as the reward corresponding to the Q value output by the Dueling DQN model in the PASD model, and makes the unloading operation corresponding to the maximum Q value output by the PASD model as the determined unloading operation. Therefore, after the industrial Internet of Things device issues a task offloading request, the PASD model can determine the unloading operation according to the application task. At this time, the determined unloading operation can meet the requirements of minimizing the average task completion time and the total system energy consumption, thereby achieving a balance between task processing efficiency and resource consumption.
[0045] The industrial Internet of Things task offloading method disclosed in the present invention is described below with reference to the accompanying drawings.
[0046] Figure 2 An exemplary flow chart of an industrial Internet of Things task offloading method according to some embodiments of the present disclosure is shown.
[0047] like Figure 2 As shown, the industrial Internet of Things task offloading method provided in this embodiment may include:
[0048] In step 210, in response to a task offloading request issued by an industrial Internet of Things device, an application task of the industrial Internet of Things is obtained.
[0049] In step 210, the industrial Internet of Things device generates a task offloading request and sends it to the edge server. The edge server uploads the task offloading request to the cloud server. After receiving the task offloading request, the cloud server obtains the application task of the industrial Internet of Things and determines the corresponding offloading operation according to the application task in subsequent steps.
[0050] The application task in step 210 may include a parameter description of the application task. For example, in some embodiments, the application task of the industrial Internet of Things may be described as: in, represents the i-th application task of industrial IoT device n at time slot t, i = {1, 2, 3, …, R}; Indicates the data size of the i-th application task, Indicates the completion of the i-th application task The computing resources required.
[0051] In the description of the above application task, it is assumed that the application task is indivisible and the time is divided into equally spaced discrete time slots {1, 2, 3, …, T}. Each time slot t has a fixed time interval τ. Indicates the completion of the i-th application task The maximum tolerable delay.
[0052] In step 220, the PASD model is used to determine the offload operation according to the application task.
[0053] Among them, the PASD model represents the Prioritized Action Sampling-Based Dueling DQN model, which is deployed on a cloud server. When the cloud server obtains the application task of the industrial Internet of Things in response to the task offloading request, the PASD model calculates the offloading operation based on the application task, wherein the offloading operation includes the offloading decision and the resource allocation decision.
[0054] Furthermore, the uninstallation decision includes the executor of the application task. can be described as in, and In turn, they represent application tasks Offloaded to Industrial IoT devices, edge servers, and cloud servers. and
[0055] It can be understood that and When any of the two is 1, the other two are 0. A value of 1 indicates an application task. Offloaded to industrial IoT devices, A value of 1 indicates an application task. is offloaded to the edge server, A value of 1 indicates an application task. Offloaded to the cloud server.
[0056] In this embodiment, the uninstall decision Contains the following three value conditions:
[0057] First, Represents application tasks Offloaded to Industrial IoT devices;
[0058] Second, Represents application tasks Offloaded to edge servers;
[0059] Third, Represents application tasks Offloaded to the cloud server.
[0060] Furthermore, the resource decision may include any one or more of the following: network resource decision and computing resource decision. The network resource decision is used to indicate the allocation of network bandwidth resources in the network link, and the computing resource decision is used to indicate the allocation of computing resources in the corresponding executor.
[0061] In this embodiment, the PASD model deployed in the cloud server can be reinforced through training samples in advance. It includes a competitive deep Q network Dueling DQN model. The Q value output by the Dueling DQN model represents the action value corresponding to the execution of a certain unloading operation. The reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total system energy consumption. When executing step 220, the PASD model generates several Q values corresponding to the execution of several unloading operations according to the application task, and outputs the maximum Q value and its corresponding unloading operation as the unloading operation determined by the cloud server. Executing the determined unloading operation can achieve the maximum action value, which means obtaining the maximum reward, which means that after executing the determined unloading operation, the average task completion time and the total system energy consumption are minimized.
[0062] In step 230, the uninstall operation is sent to the industrial Internet of Things device.
[0063] After the cloud server returns the determined offloading operation to the industrial IoT device, the industrial IoT device identifies the offloading decision in the offloading operation, offloads the application task to the executor indicated in the offloading decision, and instructs the executor to allocate corresponding resources to execute the application task according to the resource allocation decision in the offloading operation.
[0064] Through the above-mentioned industrial Internet of Things task offloading method, the negative value of the weighted sum of the average task completion time and the total system energy consumption is used as the reward corresponding to the Q value output by the Dueling DQN model in the PASD model, that is, when the weighted sum of the average task completion time and the total system energy consumption is smaller, the reward corresponding to the Q value is larger, and accordingly, the Q value output by the DuelingDQN model is also larger. Since the PASD model outputs the unloading operation corresponding to the maximum Q value as the determined unloading operation, after the task unloading request issued by the industrial Internet of Things device, the PASD model can determine the unloading operation according to the application task, and the determined unloading operation at this time is the unloading operation corresponding to the maximum Q value. Therefore, when the industrial Internet of Things device unloads the application task to the corresponding executor according to the unloading decision in the unloading operation, and instructs the executor to allocate the corresponding resources to execute the application task according to the resource allocation decision in the unloading operation, the requirement of minimizing the average task completion time and the total system energy consumption can be achieved, and the processing efficiency of industrial data tasks can be improved while reducing resource consumption.
[0065] In some embodiments of the present disclosure, a PASD model needs to be constructed before the PASD model is deployed on a cloud server.
[0066] The construction of the PASD model is described below with reference to the accompanying drawings.
[0067] Figure 3 An exemplary flow chart of a method for constructing a PASD model according to some embodiments of the present disclosure is shown.
[0068] like Figure 3 As shown, the steps of constructing the PASD model may include:
[0069] In step 310, a problem model in the PASD model is constructed.
[0070] Specifically, step 310 may include: establishing optimization goals and constraints, wherein the optimization goals are to minimize the average completion time of application tasks and minimize the total energy consumption of the system.
[0071] Constraints can include the following four items:
[0072] First, the completion time of the application task is less than or equal to the maximum tolerable delay of the application task;
[0073] Second, the network bandwidth allocated to the application task is within the transmission bandwidth of the link;
[0074] Third, the computing resources allocated to the application tasks when they are processed by the IIoT devices are less than or equal to the computing capacity of the IIoT devices;
[0075] Fourth, the sum of the computing consumption of the application task when processed by the industrial Internet of Things device, the transmission consumption offloaded to the edge server, and the transmission consumption offloaded to the cloud server shall not exceed the total battery capacity of the industrial Internet of Things device.
[0076] To facilitate understanding by those skilled in the art, the construction of the problem model is described below in an exemplary manner.
[0077] The optimization goal disclosed in the present invention is to minimize the average task completion time and the total system energy consumption by jointly optimizing the remaining network bandwidth allocation and computing resource allocation in the network link under the constraints of task tolerance delay and allocatable resources.
[0078] In the time slot range of t, the following problem model is established:
[0079] P:
[0080] C1:
[0081] C2:
[0082] C3:
[0083] C4:
[0084] Among them, P represents the optimization goal, C1 to C4 represent the constraints of the problem model; Represents application tasks The completion time, Represents application tasks The maximum tolerable delay; Represented as an application task Allocated network bandwidth, W mun Represents the minimum transmission bandwidth of the network link, W max Indicates the maximum transmission bandwidth of the network link; Represents the application tasks on industrial IoT device n The computing resources of F n represents the computing capacity of the IIoT device n; Represents industrial IoT devices processing application tasks Computational consumption and application offloading tasks Transmission consumption to edge servers and offloading application tasks The sum of transmission consumption to the cloud server, E n represents the total battery capacity of the IIoT device; T represents the number of time slots into which time is divided, N represents the number of IIoT devices, and R represents the number of application tasks within the range of t time slots.
[0085] Furthermore, the transmission model of the network link in the above problem model is introduced.
[0086] Define the remaining bandwidth of the jth network link with non-zero remaining bandwidth within time slot t as b j (t), then the network bandwidth allocated to the application task is After allocating network bandwidth, the remaining bandwidth of the jth network link whose remaining bandwidth is not zero is updated to
[0087] If the remaining bandwidth b j (t) Not enough to upload application tasks Then it occupies b j (t) All transfer application tasks part of the bandwidth, and then wait until the remaining bandwidth is sufficient to support the upload application task The transfer continues while the remainder of
[0088] According to the above transmission model, the maximum uplink efficiency from industrial IoT devices to edge servers can also be obtained according to the Shannon formula. The specific calculation formula is as follows:
[0089]
[0090] in, represents the uplink efficiency from IIoT devices to edge servers, P n (t) represents the transmission power of IIoT device n to the edge server within time slot t, h n_m (t) represents the wireless channel gain from the industrial IoT device n to the server, and N0 represents the signal Gaussian white noise.
[0091] Application Tasks Completion time Includes: Completing application tasks on industrial IoT devices Time Complete application tasks on edge servers Time Or complete application tasks on cloud servers Time
[0092] Total system energy consumption Includes: Computational energy consumption of industrial IoT devices Computational energy consumption of edge servers or the computing energy consumption of cloud servers
[0093] When the offload decision determines that the application task is completed on the IIoT device, the application task Completion time It is composed of the end waiting calculation delay and the end calculation delay. in, Indicates that the application task is completed The computing resources required, Indicates the time the end waits for calculation delay.
[0094] Accordingly, the computing energy consumption of industrial IoT devices Among them, the coefficient
[0095] When the offload decision determines that the application task is completed on the edge server, the application task Completion time Including waiting transmission delay, transmission time, waiting calculation delay and calculation delay, in, Indicates that the application task is completed The amount of data, Indicates the uplink efficiency from industrial IoT devices to edge servers, represents the edge waiting transmission delay, Indicates the edge waiting calculation delay, Indicates that the edge server is an application task Allocated computing resources.
[0096] Accordingly, the computing energy consumption of the edge server in, represents the edge transmission energy consumption, represents the edge computing energy consumption, coefficient
[0097] When the offloading decision determines that the application task is completed on the cloud server, the application task Completion time Including cloud waiting transmission delay, cloud transmission time and cloud computing delay, in, Indicates that the application task is completed The amount of data, Indicates the uplink efficiency from industrial IoT devices to cloud servers. Indicates the cloud waiting transmission delay, Indicates that the cloud server is an application task Allocated computing resources.
[0098] Accordingly, the computing energy consumption of cloud servers Among them, P n_c (t) represents the transmission power of industrial IoT device n to the cloud server within the time slot range of t, and the coefficient
[0099] In step 320, a reward is generated according to the optimization goal.
[0100] In this embodiment, considering the complexity of the network environment in the cloud-edge collaborative computing system, the cloud-edge collaborative computing environment can be regarded as a Markov decision process (MDP) with internal state transition probability. The MDP consists of a five-dimensional data group M = {S, A, ρ, R, γ}, where S corresponds to the state space. A corresponds to the action space, ρ corresponds to the internal state transition probability of the system, R corresponds to the reward function, and γ corresponds to the discount factor. The working principle of the Markov decision process is as follows: After the application task arrives at the cloud server, the decision maker in the cloud server senses the system environment state of the current time slot, and then extracts an action from the action space to execute. After the action is completed, the system environment state will be updated to the system environment state of the next time slot, and the system environment will feedback a reward to the cloud server.
[0101] The following is an explanation of the five-dimensional data group of the MDP corresponding to the cloud-edge collaborative computing environment disclosed in the present invention.
[0102] First, the description of the state space:
[0103] System environment status It is a four-dimensional data group, including the computing resources of industrial IoT devices, the computing resources of edge servers, the computing resources of cloud servers, and the remaining bandwidth resources of wireless channels.
[0104] Right now Among them, F n (t) represents the computing resources of all IIoT devices, F m (t) represents the computing resources of the edge server, F c (t) represents the computing resources of the cloud server, b j (t) represents the remaining bandwidth of the network link, that is, the remaining bandwidth resources of the wireless channel.
[0105] Second, the description of the action space:
[0106] The action space contains multiple uninstall operations Each uninstall operation It includes offloading decisions and resource allocation decisions. Specifically,
[0107] Third, explanation of the reward:
[0108] award Including positive rewards With negative rewards
[0109] Positive Rewards It is the negative value of the weighted sum of the average completion time of the application task and the total energy consumption of the system. That is, Among them, δ represents the proportional coefficient of the average completion time of the application task, and μ represents the proportional coefficient of the total energy consumption of the system.
[0110] Negative Rewards It is the negative value of the weighted sum of the average completion time of the maximum application task and the maximum total system energy consumption in the current time slot.
[0111] Right now, in, represents the average completion time of the largest application task, Indicates the maximum total system energy consumption.
[0112] It should be noted that when the application task is successfully executed, the negative reward That is, when the application task is successfully executed, the system environment only feedbacks positive rewards; when the application task fails, positive rewards That is, when the application task fails to execute, the system environment only feeds back negative rewards.
[0113] Fourth, the description of the internal state transition probability of the system:
[0114] The internal state transition probability is defined as the probability of the system environment transitioning from the current system environment state to a possible subsequent system environment state.
[0115] Fifth, explanation of discount factors:
[0116] The discount factor is a hyperparameter of the Dueling DQN model, which is used to reduce the proportion of historical rewards so that the cloud server pays more attention to recent rewards. The discount factor does not participate in the calculation of the Q value output by the Dueling DQN model.
[0117] In step 330, the PASD model is trained using the training samples.
[0118] Figure 4An exemplary network structure diagram of the Dueling DQN model in the PASD model of some embodiments of the present disclosure is shown. For the Dueling DQN model in the PASD model, the Q function in the Dueling DQN model outputs the action value function and the state value function respectively through two fully connected layers, wherein the Q function It can be expressed as the superposition of the action value function and the state value function. in, represents the state value function, Represents the action value function. In order to force the output and value of the action value function to be set to 0, the average value is subtracted from the output value of each action value function to ensure a constraint that the expected value is 0, so that a unique Q value can be determined based on the action value function and the state value function to increase the stability of the Q value.
[0119] In step 330, the PASD model performs reinforcement learning based on the training samples, and takes outputting the maximum Q value as the goal of the reinforcement learning, that is, taking the unloading operation with the maximum reward as the learning goal.
[0120] Exemplarily, the steps of step 330 may include:
[0121] Convert the problem model into an MDP problem; perceive the system environment state of the current time slot and extract an offloading operation from the training sample for execution; calculate the reward corresponding to the Q value output by the Dueling DQN model when executing the extracted offloading operation; perceive the system environment state of the next time slot after the extracted offloading operation is executed; and feed back the system environment state and reward of the next time slot to the PASD model.
[0122] After the above training, the PASD model continues to converge to approach the maximum value of the Q function.
[0123] The PASD model constructed by the above construction method takes minimizing the average task completion time and the total energy consumption of the system as the optimization goal. The solving ability is improved through reinforcement learning, so that the PASD model can output the Q value with the maximum reward, thereby guiding the system to perform corresponding unloading operations to achieve a balance between task processing efficiency and resource consumption.
[0124] In the existing technology, there is also a mobile edge computing task offloading and resource allocation method based on game theory, but this method focuses on short-term performance and is difficult to cope with the computational burden brought by the exponentially growing decision space. It is also difficult to adapt to the task offloading computing requirements and long-term performance optimization problems of large-scale industrial Internet of Things cloud-edge collaboration.
[0125] Based on any of the above PASD models, another embodiment of the present disclosure further designs the PASD model. Figure 5 An exemplary network structure diagram of a PASD model according to some other embodiments of the present disclosure is shown.
[0126] like Figure 5 As shown, the PASD model includes a priority experience replay pool for storing the unloading operations output by the PASD model to update the training samples for reinforcement learning of the PASD model.
[0127] Correspondingly, Figure 6 FIG. 2 is an exemplary flow chart of an uninstall operation calculation method according to another embodiment of the present disclosure. It can be understood that the uninstall operation calculation method is a specific implementation of the aforementioned step 220, so the aforementioned method is combined with Figure 2 The features described can be similarly applied here, Figure 6 The described features can also be applied to the aforementioned step 220 .
[0128] like Figure 6 As shown, the uninstall operation calculation method may include:
[0129] In step 610, in response to the application task, the system environment state of the current time slot is sensed.
[0130] Among them, the system environment status includes the computing resource information of the industrial Internet of Things equipment, the computing resource information of the edge server, the computing resource information of the cloud server, and the remaining bandwidth resource information of the wireless channel. The remaining bandwidth resource information of the wireless channel here is the remaining network bandwidth in the network link mentioned above.
[0131] The specific description of the system environment status has been fully introduced in the previous embodiments and will not be repeated here.
[0132] In step 620, the PASD model determines an offload operation based on the system environment status of the current time slot.
[0133] After the system environment state of the current time slot is input into the PASD model, the PASD model calculates several Q values, one of which corresponds to an offloading operation. The PASD model selects the offloading operation corresponding to the maximum Q value and outputs it.
[0134] The larger the Q value, the greater the action value of the offloading operation, and the larger the corresponding reward. Correspondingly, the smaller the average task completion time and the total system energy consumption are. At this time, the offloading operation corresponding to the maximum Q value can be regarded as the global optimal solution that meets the requirements of minimizing the average task completion time and the total system energy consumption.
[0135] After the PASD model outputs the unloading operation, the cloud server adds the output results of the PASD model to the priority experience recycling pool and optimizes the PASD model again as a new training sample. Since the training samples used are more in line with the actual environment, the performance of the trained PASD model is improved.
[0136] Figure 7 An exemplary flow chart of a priority experience backtracking method according to some other embodiments of the present disclosure is shown.
[0137] like Figure 7 As shown, the priority experience backtracking method may include:
[0138] In step 710, a reward and a system environment state for the next time slot are generated based on the unloading operation output by the PASD model.
[0139] The reward in step 710 of this embodiment refers to the reward fed back by the system environment after the uninstall operation output by the PASD model is executed.
[0140] It should be noted that rewards include positive rewards and negative rewards. If the application task is successfully executed, a positive reward will be fed back, and if the application task fails, a negative reward will be fed back.
[0141] The specific calculation method of positive rewards and negative rewards has been fully introduced in the previous embodiments and will not be elaborated here.
[0142] When the unloading operation output by the PASD model is executed, the system environment state changes immediately, and the decision-making power in the cloud server perceives the system environment state at this time as the system environment state of the next time slot referred to in step 710 of this embodiment.
[0143] In step 720, the system environment state of the current time slot, the uninstall operation, the reward, and the system environment state of the next time slot are stored in the priority experience replay pool.
[0144] The priority experience replay pool can be regarded as a storage pool for training samples. The data in the storage pool is used to train the PASD model that has been deployed on the cloud server, that is, the PASD model still performs reinforcement learning during use.
[0145] This embodiment sets a priority experience replay pool in the PASD model, and stores the unloading operation, reward and two system environment states of adjacent time slots output by the PASD model based on the application task as priority experience in the priority experience replay pool as new training samples, so that the PASD model can perform further reinforcement learning based on the priority experience, optimize the convergence speed of the PASD model, and further enhance the performance of the PASD model.
[0146] When the PASD model extracts the offloading operation to be executed, it can extract the offloading operation according to the traditional epsilon-greedy algorithm, but this will cause the action with the initial high error value to be frequently selected repeatedly, which is not conducive to the diversity of action selection.
[0147] In view of the above problems, another embodiment of the present disclosure further provides another priority experience backtracking method. Compared with the priority experience backtracking method provided in the previous text, the priority experience backtracking method provided in this embodiment assigns a sampling probability to each data updated to the priority experience recycling pool to avoid the PASD model frequently extracting repeated unloading operations.
[0148] Figure 8 Another exemplary flow chart of the priority experience backtracking method according to some other embodiments of the present disclosure is shown.
[0149] like Figure 8 As shown, the priority experience backtracking method provided in this embodiment may include:
[0150] In step 810, a reward and a system environment state for the next time slot are generated based on the unloading operation output by the PASD model.
[0151] Step 810 of this embodiment is consistent with the content of step 710 in the previous embodiment, and will not be further described here.
[0152] In step 820, the system environment state, the unloading operation, the reward of the current time slot and the system environment state of the next time slot are used as a training data array.
[0153] This training data array is used for reinforcement learning by the PASD model.
[0154] After obtaining the system environment status, uninstallation operation, reward and system environment status of the next time slot in the current time slot, the cloud server packages the data into a training data array.
[0155] In step 830, after assigning sampling probabilities to the training data array, it is stored in the priority experience replay pool.
[0156] Exemplarily, the sampling probability of the training data array may be calculated and assigned to the training data array according to the following formula:
[0157]
[0158] in, Indicates uninstall operation The sampling probability of Indicates that the Dueling DQN model performs the unloading operation in the system environment state of the current time slot The action value Q value, Indicates the system environment status of the current time slot; A indicates the number of elements in the offload operation set; Indicates uninstall operation The priority of when When , it corresponds to the uniform random case. The PASD model will give priority to the experience with the highest priority.
[0159] Through the priority experience backtracking method of this embodiment, the priority experience obtained by the PASD model in response to the task offloading request issued by the industrial Internet of Things device can be added to the priority experience replay pool after being assigned a certain sampling probability, thereby effectively avoiding the frequent selection of the initial high error value offloading operation, effectively improving the diversity of offloading operation selection, improving the learning efficiency of the PASD model for the task offloading method, and further optimizing the convergence speed of the PASD model.
[0160] In some embodiments of the present disclosure, the prioritized empirical backtracking method that assigns sampling probability changes the probability distribution of offloading operations in the action space in an uncontrolled manner, which will cause the decision maker of the cloud server to prefer high-priority offloading operations. This preference will lead to biased estimates in the PASD model.
[0161] In order to correct the above-mentioned biased estimation, some embodiments of the present disclosure utilize importance sampling to correct the priority of the training data array.
[0162] Exemplarily, in this embodiment, the priority of the training data array may be updated according to the following formula:
[0163]
[0164] in, Indicates uninstall operation The sampling probability of Indicates uninstall operation The priority of K represents the number of training data arrays in the priority experience replay pool; σ represents the influence coefficient of the importance sampling method on the learning process. When σ = 1, the uneven sampling probability is fully compensated.
[0165] This embodiment uses the importance sampling method to correct the priority of the training data array added to the priority experience replay pool and adjusts the distribution of the sampling probability of the priority experience. This can avoid the PASD model's preference for high-priority offloading operations, and then prevent deviations in the PASD model calculation process caused by the preference for offloading operations, thereby ensuring that the offloading operations determined by the PASD model are more objective and reliable.
[0166] In summary, the present disclosure provides an industrial Internet of Things task offloading method, which uses the PASD model to calculate the offloading operation that can minimize the average task completion time and the total system energy consumption, so as to instruct the industrial Internet of Things device to offload the application task to the corresponding executor according to the offloading decision in the offloading operation, and instruct the executor to allocate corresponding resources to execute the application task according to the resource allocation decision in the offloading operation, so as to improve the processing efficiency of industrial data tasks while reducing resource consumption.
[0167] In addition, based on the industrial Internet of Things task offloading method, a priority experience recycling pool is added to the PASD model so that the PASD model can perform further reinforcement learning based on the priority experience, optimize the convergence speed of the PASD model, and further enhance the performance of the PASD model.
[0168] Furthermore, a certain sampling probability can be assigned to the priority experience, thereby effectively avoiding the frequent selection of the initial high error value unloading operation, effectively improving the diversity of unloading operation selection, and improving the learning efficiency of the PASD model for the task offloading method.
[0169] In addition, the importance sampling method can be introduced to correct the distribution of the sampling probability of priority experience, so as to avoid the PASD model's preference for high-priority unloading operations, and then prevent the deviation in the PASD model calculation process caused by the preference for unloading operations, thus ensuring that the unloading operations determined by the PASD model are more objective and reliable.
[0170] The disclosed embodiment also provides an industrial Internet of Things cloud-edge-end collaboration system, which includes:
[0171] The cloud server is configured to: obtain an application task of the industrial Internet of Things in response to a task offloading request issued by an industrial Internet of Things device; determine an offloading operation according to the application task using a PASD model; send the offloading operation to the industrial Internet of Things device to instruct the industrial Internet of Things device to offload the application task to an executor in an offloading decision, and instruct the executor in the offloading decision to allocate corresponding resources according to a resource allocation decision to execute the application task;
[0172] Industrial IoT devices, used to generate and execute application tasks and send task offloading requests;
[0173] and edge servers to receive and execute application tasks offloaded from IIoT devices.
[0174] Among them, the offloading operation includes offloading decisions and resource allocation decisions; the offloading decision contains the executor of the application task; the executors include: industrial Internet of Things devices, edge servers and cloud servers; the PASD model includes the competitive deep Q network Dueling DQN model, and the reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total energy consumption of the system. The Q value is the action value corresponding to the Dueling DQN model executing the offloading operation; the PASD model outputs the offloading operation corresponding to the maximum Q value as the determined offloading operation.
[0175] The cloud server in the industrial Internet of Things cloud-edge collaborative system provided by this implementation can use the unloading operation corresponding to the maximum Q value output by the deployed PASD model as the determined unloading operation, and send the unloading operation to the industrial Internet of Things device. Through the unloading decision, it instructs the industrial Internet of Things device to unload the application task to the corresponding executor, and guides the executor to allocate the resources corresponding to the resource allocation decision to execute the application task, thereby achieving the requirements of minimizing the average task completion time and the total energy consumption of the system, and improving the processing efficiency of industrial data tasks while reducing resource consumption.
[0176] Fig. 9 An exemplary structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.
[0177] like Fig. 9 As shown, the electronic device 900 includes a memory 910 and a processor 920 .
[0178] The processor 920 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0179] The memory 910 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 920 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 910 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 910 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0180] The memory 910 stores executable codes, and when the executable codes are processed by the processor 920 , the processor 920 can execute part or all of the methods described above.
[0181] The scheme of the present disclosure has been described in detail above with reference to the accompanying drawings. In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. Those skilled in the art should also be aware that the actions and modules involved in the specification are not necessarily required for the present disclosure. In addition, it can be understood that the steps in the method of the embodiment of the present disclosure can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present disclosure can be merged, divided and deleted according to actual needs.
[0182] In addition, the present disclosure can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present disclosure.
[0183] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
[0184] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system and method according to multiple 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 module, a program segment or a part of the 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 continuous boxes 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 and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0185] Although multiple embodiments of the present disclosure have been shown and described herein, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art may think of many changes, modifications, and alternatives without departing from the thought and spirit of the present disclosure. It should be understood that in the process of practicing the present disclosure, various alternatives to the embodiments of the present disclosure described herein may be adopted. The attached claims are intended to define the scope of protection of the present disclosure, and therefore cover equivalents or alternatives within the scope of these claims.
Claims
1. An industrial Internet of Things task offloading method, characterized in that: include: In response to a task offloading request issued by an industrial Internet of Things device, obtaining an application task of the industrial Internet of Things; Using the PASD model, determining an offloading operation according to the application task; the offloading operation includes an offloading decision and a resource allocation decision; The offloading decision contains the executor of the application task; the executor includes: industrial Internet of Things devices, edge servers and cloud servers; the PASD model is used to indicate a competitive deep Q network model based on priority action sampling; Sending the offloading operation to the industrial Internet of Things device to instruct the industrial Internet of Things device to offload the application task to the executor in the offloading decision, and instructing the executor in the offloading decision to allocate corresponding resources according to the resource allocation decision to execute the application task; Among them, the PASD model includes a competitive deep Q network Dueling DQN model, the reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total energy consumption of the system, and the Q value is the action value corresponding to the unloading operation performed by the Dueling DQN model; the unloading operation corresponding to the maximum Q value output by the PASD model is used as the determined unloading operation.
2. The industrial Internet of Things task offloading method according to claim 1 is characterized in that: The PASD model includes a priority experience replay pool for storing the unloading operations output by the PASD model to update training samples for reinforcement learning of the PASD model.
3. The industrial Internet of Things task offloading method according to claim 2 is characterized in that: The using the PASD model to determine the uninstall operation according to the application task includes: In response to the application task, the system environment state of the current time slot is sensed; the system environment state includes computing resource information of the industrial Internet of Things device, computing resource information of the edge server, computing resource information of the cloud server, and remaining bandwidth resource information of the wireless channel; The PASD model determines the offloading operation based on the system environment status of the current time slot.
4. The industrial Internet of Things task offloading method according to claim 3 is characterized in that: After the PASD model is used to determine the uninstall operation according to the application task, the method further includes: generating a reward corresponding to executing the unloading operation and a system environment state for a next time slot based on the unloading operation; The system environment state, unloading operation, reward of the current time slot and the system environment state of the next time slot are stored in the priority experience replay pool for reinforcement learning of the PASD model.
5. The industrial Internet of Things task offloading method according to claim 4 is characterized in that: The storing of the system environment state, uninstallation operation, reward of the current time slot and the system environment state of the next time slot into the priority experience replay pool includes: The system environment state, unloading operation, reward of the current time slot and the system environment state of the next time slot are used as a training data array, and after assigning sampling probability to the training data array, it is stored in the priority experience replay pool.
6. The industrial Internet of Things task offloading method according to claim 5 is characterized in that: The assigning sampling probability to the training data array comprises: The sampling probability of the training data array is calculated according to the following formula and the sampling probability is assigned to the training data array: in, Indicates uninstall operation The sampling probability of Indicates that the Dueling DQN model performs the unloading operation under the system environment state of the current time slot The action value Q value, Indicates the system environment status of the current time slot; A indicates the number of elements in the offload operation set; Indicates uninstall operation The priority of 7. The industrial Internet of Things task offloading method according to claim 5 or 6, characterized in that: After assigning sampling probability to the training data array, the method further includes: Importance sampling is used to correct the priority of the training data array.
8. The industrial Internet of Things task offloading method according to claim 7 is characterized in that: The step of correcting the priority of the training data array by using the importance sampling method comprises: Update the priority of the training data array according to the following formula: in, Indicates uninstall operation The sampling probability of Indicates uninstall operation The priority of K represents the number of training data arrays in the priority experience replay pool; σ represents the influence coefficient of the importance sampling method on the learning process. When σ=1, the importance sampling completely compensates for the uneven sampling probability.
9. The industrial Internet of Things task offloading method according to claim 1, characterized in that: The using the PASD model to determine the uninstall operation according to the application task includes: using the PASD model to determine the uninstall decision according to the application task; Before determining the offloading decision according to the application task by using the PASD model, the method includes: constructing the PASD model; The steps of constructing the PASD model include: Constructing the problem model in the PASD model specifically includes: Establish optimization objectives and constraints; Generate a reward for the Dueling DQN model in the PASD model according to the optimization objective; Using the training samples to train the PASD model so as to enable the PASD model to obtain the unloading operation of the problem model corresponding to the maximum reward; Among them, the optimization goal is to minimize the average completion time of application tasks and minimize the total energy consumption of the system; the constraints include: the completion time of the application task is less than or equal to the maximum tolerable delay of the application task, the network bandwidth allocated to the application task is within the transmission bandwidth of the link, the computing resources allocated when the application task is processed by the industrial Internet of Things device are less than or equal to the computing capacity of the industrial Internet of Things device, and the sum of the computing consumption of the application task when processed by the industrial Internet of Things device, the transmission consumption offloaded to the edge server, and the transmission consumption offloaded to the cloud server does not exceed the total battery capacity of the industrial Internet of Things device.
10. The industrial Internet of Things task offloading method according to claim 9 is characterized in that: The reward includes a positive reward and a negative reward; correspondingly, generating a reward of the Dueling DQN model in the PASD model according to the optimization target includes: The negative value of the weighted sum of the average completion time of the application task and the total energy consumption of the system is used as the positive reward; The negative reward is the negative value of the weighted sum of the maximum average completion time of the application task and the maximum total system energy consumption in the current time slot.
11. The industrial Internet of Things task offloading method according to claim 10, characterized in that: The unloading operation of training the PASD model using the training samples to enable the PASD model to obtain the problem model corresponding to the maximum reward includes: Convert the problem model into a Markov decision MDP problem; sensing the system environment state of the current time slot and extracting an unloading operation from the training sample for execution; Calculate the reward corresponding to the Q value output by the Dueling DQN model when executing the extracted offloading operation; Sense the system environment state in the next time slot after the extracted offloading operation is executed; The system environment state and reward for the next time slot are fed back to the PASD model.
12. The industrial Internet of Things task offloading method according to claim 11, characterized in that: The calculation of the reward corresponding to the Q value output by the Dueling DQN model when executing the extracted unloading operation includes: If the application task is successful after the extracted uninstall operation is executed, the positive reward is calculated; If the application task fails after executing the extracted uninstall operation, the negative reward is calculated.
13. An industrial Internet of Things cloud-edge-end collaboration system, characterized in that: include: The cloud server is configured to: in response to a task offloading request issued by an industrial Internet of Things device, obtain an application task of the industrial Internet of Things; Using the PASD model, an offloading operation is determined according to the application task; the offloading operation is sent to the industrial Internet of Things device to instruct the industrial Internet of Things device to offload the application task to the executor in the offloading decision, and instruct the executor in the offloading decision to allocate corresponding resources according to the resource allocation decision to execute the application task; the PASD model is used to indicate a competitive deep Q network model based on priority action sampling; The unloading operation includes an unloading decision and a resource allocation decision; the unloading decision includes the executor of the application task; the executors include: industrial Internet of Things devices, edge servers and cloud servers; the PASD model includes a competitive deep Q network Dueling DQN model, the reward corresponding to the Q value output by the Dueling DQN model is the negative value of the weighted sum of the average task completion time and the total energy consumption of the system, and the Q value is the action value corresponding to the unloading operation executed by the Dueling DQN model; the unloading operation corresponding to the maximum Q value output by the PASD model is used as the determined unloading operation; Industrial IoT devices, used to generate and execute application tasks and send task offloading requests; and an edge server, configured to receive and execute application tasks offloaded by the industrial Internet of Things device.
14. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 12.
15. A non-transitory machine-readable storage medium having executable codes stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method according to any one of claims 1 to 12.
