A method, device and storage medium for offloading edge computing PLD tasks

By combining the LSTM and DQN models in the edge computing environment, the state space and reward space are constructed, the PSO particle swarm algorithm is used to tune the hyperparameters, and the predicted actions are selected with a certain probability, which solves the problem that the DQN model is prone to falling into local optimality and the difficulty of hyperparameters is solved. The identified problems were implemented to implement an efficient task offloading strategy, improving system performance and efficiency.

CN115712467BActive Publication Date: 2024-10-01SICHUAN PUBLIC SECURITY RES CENT +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211452770.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2024-10-01
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

The existing DQN edge computing task offloading model easily falls into the local optimal trap, and the hyperparameters in the LSTM prediction model are difficult to determine, resulting in large errors and resource consumption when the amount of data is large, affecting the efficiency of the task offloading strategy.

Method used

The LSTM is combined with the DQN model, and the PSO particle swarm algorithm is used to tune the hyperparameters by constructing the state space, action space and reward space. During the training process, the predicted action is selected with a certain probability instead of completely selecting the action with the maximum Qt value to avoid local Optimal traps to improve task offloading accuracy and system performance.

Benefits of technology

It effectively avoids local optimal problems, improves task offloading efficiency and system performance in edge computing environments, significantly improves the performance of the traditional DQN model, and enhances the scalability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0003951955030000011
    Figure HDA0003951955030000011
  • Figure QLYQS_15
    Figure QLYQS_15
  • Figure QLYQS_24
    Figure QLYQS_24
Patent Text Reader

Abstract

The present invention relates to the field of edge computing, and in particular to an edge computing PLD task unloading method, device and storage medium. The purpose is to solve the problem that the shortcomings of the above-mentioned prior art will affect the efficiency of the task unloading strategy, and when the amount of data is large, there are often large errors and resource consumption, which brings a large burden to the system. The main scheme includes obtaining the historical task unloading situation data of the entire system in the cluster and cleaning the data; constructing the three major spaces required for the PLD model, using the LSTM model and the DQN model to build the PLD model, and inputting the cleaned historical data into the PLD model through the three major spaces to complete the prediction model training; inputting the upcoming task data into the trained PLD model to obtain the task unloading strategy of the cluster system for each task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing, and in particular to an efficient method for offloading tasks in an edge computing environment. Background Art

[0002] With the development of neural networks and deep learning, DQN and other related technologies are increasingly being used in edge computing and task offloading related fields. Traditional deep learning algorithms often select the action with the maximum Q value as the next action, which is prone to fall into the local optimal trap. In addition, the hyperparameters in the model are often difficult to determine, and an optimal value can only be determined through continuous trial and error.

[0003] In summary, the existing DQN edge computing task offloading model and LSTM prediction model have the following shortcomings:

[0004] 1) The existing DQN edge computing task offloading strategy often selects the action with the maximum Q value as the next action, which is easy to fall into the local optimal trap;

[0005] 2) The hyperparameters in the existing LSTM prediction models are often difficult to determine, and an optimal value can only be determined through continuous trial and error. Summary of the invention

[0006] The purpose of the present invention is to solve the problem that the shortcomings of the above-mentioned prior art will affect the efficiency of the task offloading strategy, and when the amount of data is large, there will often be large errors and resource consumption, which will bring a large burden to the system.

[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0008] The present invention provides an edge computing PLD task unloading method, comprising the following steps:

[0009] S1: Obtain the historical task offloading data of the entire system in the cluster and clean the data;

[0010] S2: Construct the three spaces required for the PLD model, use the LSTM model and the DQN model to build the PLD model, and input the cleaned historical data into the PLD model through the three spaces to complete the prediction model training;

[0011] S3: Input the upcoming task data into the trained PLD model to obtain the task offloading strategy of the cluster system for each task.

[0012] In the above technical solution, in S1, the detailed description of data cleaning is as follows:

[0013] S11: The historical task unloading data of the whole system in the cluster, mainly including: task capacity, task arrival time, task end time, task priority, task maximum tolerance time, task unloading target:

[0014] S12: Clean the indicator data by first filling in null values ​​and desensitizing the data; then, group and aggregate the desensitized data according to the task arrival time; finally, time serialize and normalize the data within the said time period after grouping and aggregation to obtain the cleaned cluster historical task unloading indicator data.

[0015] In the above technical solution, in S2, three major space definitions, PLD model construction and model training

[0016] The process is described in detail as follows:

[0017] S21: Establishment of state space: The state of the state space is used to reflect the environment, which is composed of the terminal, task and edge server system status;

[0018] Define the state space of the entire system as S = {s2, s2, s3, ..., s n ,}, where s n Indicates the system status recorded by terminal n, Where n is the terminal number, m is the edge server number, k is the task number, is the computing power of terminal n, is the transmission power of terminal n, D k For the calculation task R k The amount of data, ρ k For the calculation task R k The resources required per bit, Maximum waiting time of a task, B n,m To calculate the uplink broadband bandwidth occupied by the terminal to the edge server during offloading, is the computing capacity of edge server m, where the superscript N indicates a terminal, n represents the serial number of the terminal, the superscript M indicates an edge server, and m represents the serial number of the edge server;

[0019] S22: Establishment of action space: The action space is used to regulate the scope of the system's execution of tasks.

[0020] Define the action space A = {a1, a2, a3, ..., a n ,},in Indicates that the task is calculated on the terminal. Indicates that the task will be offloaded, a n,m, =1 means the task will be calculated on server m, a n, the conditions must be met

[0021] S23: Establishment of reward space: The reward space is used to iteratively update the system. The system will update Q through the reward space t value;

[0022] The agent is in state s n After executing action a n You will get reward later n , the system will receive the corresponding reward when it completes the task within the specified time. When the task exceeds its maximum waiting time, it is considered that the task is abandoned and punished. After the system takes action, the system will receive the corresponding reward or punishment. Therefore, the reward function is as follows:

[0023]

[0024] is the time loss weight, is the capacity loss weight, T k is the time loss, E k is the energy loss, p is the timeout penalty;

[0025] S24: Randomly initialize several hyperparameter values ​​to obtain the number of hyperparameters;

[0026] Assign the hyperparameter data as the historical optimal value to the LSTM model, then use the PSO particle swarm algorithm to input the test set into the LSTM model, optimize the LSTM model through multiple rounds of iterations, and use the hyperparameter value with the smallest average error of the predicted value. When the PSO particle swarm algorithm reaches the maximum iteration value, output the values ​​of the key hyperparameters such as the number of hidden layers and the number of neurons in each layer, as well as the optimized LSTM model;

[0027] The tuned LSTM model is combined with the DQN model. The historical task data is input into the LSTM model. After being processed by the LSTM model, the predicted action is input into the DQN model. The DQN model will select the predicted action with a certain probability instead of completely selecting the Q t The maximum value action is taken to obtain the PLD model.

[0028] S25: The input data of the PLD model is the cleaned historical task unloading data obtained in S1, and the data is divided into a training set and a test set according to a preset ratio to train the PLD model.

[0029] In the above technical solution, in S3, the task offloading strategy of the cluster system in the edge computing environment is described in detail as follows:

[0030] S31: During the algorithm training process, the action is chosen by the agent through probability, that is, the action with the largest Q is chosen with a probability of 1-ε. t The action of the network value randomly selects any action with a preset probability of ε, and ε is set according to the specific experimental environment. When the original agent selects a random action, this paper compares the random value δ with the probability ε to determine whether it is a random action or a predicted action. When δ is greater than ε, the random action is selected, otherwise the predicted action is selected. This avoids falling into the local optimum and improves the accuracy.

[0031] S32: Based on historical records, the LSTM model can be used to predict the action information of the next arriving task, and the predicted information is given to the DQN model. A plan for offloading the predicted task is proposed, that is, whether the task is calculated at the terminal or offloaded to the designated edge server for calculation. When the actual task arrives, the recent task information is input into the trained PLD model to obtain the offloading strategy for the recent task.

[0032] S33: The PLD model uses the mean square error method as the loss function and reduces the loss through the gradient descent algorithm. The loss function is as follows, where Q e is the evaluation network, s is the current state, a is the selected action, θ e is the evaluation parameter;

[0033]

[0034] S34: Target Q in the model t The network value is calculated as follows:

[0035] Q t =r n +γmaxQ t (s n+1 , a′; θ t ) (3)

[0036] where r n is the reward value, s n+1 is the state space at the next moment, θ t is the target parameter and a' is the predicted action.

[0037] The present invention also provides an edge computing PLD task unloading device, comprising:

[0038] Data cleaning module: obtains historical task unloading data of the entire system in the cluster and cleans the data;

[0039] Prediction model training module: construct the three spaces required for the PLD model, use the LSTM model and the DQN model to build the PLD model, and input the cleaned historical data into the PLD model through the three spaces to complete the prediction model training;

[0040] Task offloading strategy module: Input the upcoming task data into the trained PLD model to obtain the task offloading strategy of the cluster system for each task.

[0041] In the above technical solution, in the data cleaning module, the detailed description of data cleaning is as follows:

[0042] S11: historical task offloading data of the entire system in the cluster, mainly including: task capacity, task arrival time, task end time, task priority, task maximum tolerance time, and task offloading target;

[0043] S12: Clean the indicator data by first filling in null values ​​and desensitizing the data; then, group and aggregate the desensitized data according to the task arrival time; finally, time serialize and normalize the data within the said time period after grouping and aggregation to obtain the cleaned cluster historical task unloading indicator data.

[0044] In the above technical solution, in the prediction model training module, the three major space definitions, the construction of the PLD model and the model training process are described in detail as follows:

[0045] S21: Establishment of state space: The state of the state space is used to reflect the environment, which is composed of the terminal, task and edge server system status;

[0046] Define the state space of the entire system as S = {s2, s2, s3, ..., s n ,}, where s n Indicates the system status recorded by terminal n, Where n is the terminal number, m is the edge server number, k is the task number, is the computing power of terminal n, is the transmission power of terminal n, D k For the calculation task R k The amount of data, ρ k For the calculation task R k The resources required per bit, Maximum waiting time of a task, B n,m To calculate the uplink broadband bandwidth occupied by the terminal to the edge server during offloading, is the computing capacity of edge server m, where the superscript N indicates a terminal, n represents the serial number of the terminal, the superscript M indicates an edge server, and m represents the serial number of the edge server;

[0047] S22: Establishment of action space: The action space is used to regulate the scope of the system's execution of tasks.

[0048] Define the action space A = {a1, a2, a3, ..., a n ,},in Indicates that the task is calculated on the terminal. Indicates that the task will be offloaded, a n,m, =1 means the task will be calculated on server m, a n , the conditions must be met

[0049] S23: Establishment of reward space: The reward space is used to iteratively update the system. The system will update Q through the reward space t value;

[0050] The agent is in state s n After executing action a n You will get reward later n , the system will receive the corresponding reward when it completes the task within the specified time. When the task exceeds its maximum waiting time, it is considered that the task is abandoned and punished. After the system takes action, the system will receive the corresponding reward or punishment. Therefore, the reward function is as follows:

[0051]

[0052] is the time loss weight, is the capacity loss weight, T k is the time loss, E k is the energy loss, p is the timeout penalty;

[0053] S24: Randomly initialize several hyperparameter values ​​to obtain the number of hyperparameters;

[0054] Assign the hyperparameter data as the historical optimal value to the LSTM model, then use the PSO particle swarm algorithm to input the test set into the LSTM model, optimize the LSTM model through multiple rounds of iterations, and use the hyperparameter value with the smallest average error of the predicted value. When the PSO particle swarm algorithm reaches the maximum iteration value, output the values ​​of the key hyperparameters such as the number of hidden layers and the number of neurons in each layer, as well as the optimized LSTM model;

[0055] The tuned LSTM model is combined with the DQN model. The historical task data is input into the LSTM model. After being processed by the LSTM model, the predicted action is input into the DQN model. The DQN model will select the predicted action with a certain probability instead of completely selecting the Q t The maximum value action is taken to obtain the PLD model.

[0056] S25: The input data of the PLD model is the cleaned historical task unloading data obtained in S1, and the data is divided into a training set and a test set according to a preset ratio to train the PLD model.

[0057] In the above technical solution, in the task offloading strategy module, the task offloading strategy of the cluster system in the edge computing environment is described in detail as follows:

[0058] S31: During the algorithm training process, the action is chosen by the agent through probability, that is, the action with the largest Q is chosen with a probability of 1-ε. t The action of the network value randomly selects any action with a preset probability of ε, and ε is set according to the specific experimental environment. When the original agent selects a random action, this paper compares the random value δ with the probability ε to determine whether it is a random action or a predicted action. When δ is greater than ε, the random action is selected, otherwise the predicted action is selected. This avoids falling into the local optimum and improves the accuracy.

[0059] S32: Based on historical records, the LSTM model can be used to predict the action information of the next arriving task, and the predicted information is given to the DQN model. A plan for offloading the predicted task is proposed, that is, whether the task is calculated at the terminal or offloaded to the designated edge server for calculation. When the actual task arrives, the recent task information is input into the trained PLD model to obtain the offloading strategy for the recent task.

[0060] S33: The PLD model uses the mean square error method as the loss function and reduces the loss through the gradient descent algorithm. The loss function is as follows, where Q e is the evaluation network, s is the current state, a is the selected action, θ e is the evaluation parameter;

[0061]

[0062] S34: Target Q in the model t The network value is calculated as follows:

[0063] Q t =r n +γmaxQ t (s n+1 , a′; θ t ) (3)

[0064] where r n is the reward value, s n+1 is the state space at the next moment, θ t is the target parameter and a' is the predicted action.

[0065] The present invention also provides a storage medium, and when a processor executes a program in the storage medium, an edge computing PLD task unloading method as described above is implemented.

[0066] Because the present invention adopts the above technical solution, it has the following beneficial effects:

[0067] 1. The present invention assigns the initialized random hyperparameter data as the historical optimal value to LSTM, and then uses the PSO particle swarm algorithm to tune its model through 100 rounds of iterations, and takes the hyperparameter value with the smallest average error of the predicted value. By combining with the DQN algorithm, the data is input into the LSTM, and then the predicted action is input into the DQN model after being processed by the LSTM model. The model will select the predicted action with a certain probability instead of completely selecting the Q t The maximum value action is selected, thus solving the problem that the traditional DQN model is prone to fall into the local optimal trap. This model can efficiently offload tasks in the edge computing environment. Compared with the traditional DQN task offloading model, the system performance is significantly improved.

[0068] 2. The present invention integrates the PSO particle swarm algorithm into the LSTM model, making it more accurate when assigning hyperparameter values ​​to the LSTM model.

[0069] 3. The present invention defines three spaces required by the model, namely, state space, action space and reward space. The three spaces form the basis for the operation of the model, and the required data flows into the model based on the three spaces. By establishing the three spaces, the scalability of the system is enhanced and the efficiency of the system is improved.

[0070] 4. During the algorithm training process, the action is selected by the agent with a certain probability, that is, the action with the largest Q is selected with a probability of 1-ε t The action of the Q value randomly selects any action with a probability of ε. When the original agent selects a random action, the present invention determines whether it is a random action or a predicted action by comparing the random value δ and the probability ε, thereby avoiding falling into the local optimum and improving the accuracy. The present invention predicts the next action of the system by predicting the next task information through the improved PSO_LSTM algorithm. When the system selects a random action, it will select the predicted action with a certain probability, thereby improving the system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A block diagram of an edge computing PLD task offloading method provided for the implementation of the present invention. DETAILED DESCRIPTION

[0072] The following is a detailed description of the embodiments of the present invention. Although the present invention will be described and illustrated in conjunction with some specific embodiments, it should be noted that the present invention is not limited to these embodiments. On the contrary, modifications or equivalent substitutions made to the present invention should all be included in the scope of the claims of the present invention.

[0073] In addition, in order to better illustrate the present invention, numerous specific details are given in the following specific embodiments. It will be understood by those skilled in the art that the present invention can also be implemented without these specific details.

[0074] The present invention provides an edge computing PLD task unloading method, comprising the following steps:

[0075] S1: Get the historical task offloading data of the entire system in the cluster and clean the data; for example: clean a set of data [20, 2022-08-12 15:32:22, 2022-08-12 15:32:24, 3, 12, 0, 4], [30, 2022-08-12 15:32:24, 2022-08-12 15:32:25, 3, 12, 0, 2], [40, 2022-08-12 15:32:23, 2022-08-12 15:32:27, 3, 12, 1, 0] to get [0.5, 2022-08-12 15:32:22, 2022-08-12 15:32:24,1,1,0,1],[1,2022-08-12 15:32:23,2022-08-12 15:32:27,1,1,1,0],[0.75,2022-08-12 15:32:24,2022-08-12 15:32:25,1,1,0,0.5].

[0076] S2: Construct the three spaces required for the PLD model, use the LSTM model and the DQN model to construct the PLD model, and input the cleaned historical data into the PLD model through the three spaces to complete the prediction model training; for example: input the cleaned data group [0.5, 2022-08-12 15:32:22, 2022-08-12 15:32:24, 1, 1, 0, 1], [1, 2022-08-12 15:32:23, 2022-08-12 15:32:27, 1, 1, 1, 0], [0.75, 2022-08-12 15:32:24, 2022-08-12 15:32:25, 1, 1, 0, 0.5] into the PLD model to complete the training.

[0077] S3: Input the upcoming task data into the trained PLD model to obtain the task offloading strategy of the cluster system for each task. For example: input task k and obtain the result task to be offloaded to edge server No. 2 for calculation.

[0078] In the above technical solution, in S1, the detailed description of data cleaning is as follows:

[0079] S11: historical task offloading data of the entire system in the cluster, mainly including: task capacity, task arrival time, task end time, task priority, task maximum tolerance time, and task offloading target;

[0080] S12: Clean the indicator data by first filling in null values ​​and desensitizing the data; then, group and aggregate the desensitized data according to the task arrival time; finally, time serialize and normalize the data within the said time period after grouping and aggregation to obtain the cleaned cluster historical task unloading indicator data.

[0081] In the above technical solution, in S2, three major space definitions, PLD model construction and model training

[0082] The process is described in detail as follows:

[0083] S21: Establishment of state space: The state of the state space is used to reflect the environment, which is composed of the terminal, task and edge server system status;

[0084] Define the state space of the entire system as S = {s2, s2, s3, ..., s n ,}, where s n Indicates the system status recorded by terminal n, Where n is the terminal number, m is the edge server number, k is the task number, is the computing power of terminal n, is the transmission power of terminal n, D k For the calculation task R k The amount of data, ρ k For the calculation task R k The resources required per bit, Maximum waiting time of a task, B n,m To calculate the uplink broadband bandwidth occupied by the terminal to the edge server during offloading, is the computing capacity of edge server m, where the superscript N indicates a terminal, n represents the serial number of the terminal, the superscript M indicates an edge server, and m represents the serial number of the edge server;

[0085] S22: Establishment of action space: The action space is used to regulate the scope of the system's execution of tasks.

[0086] Define the action space A = {a1, a2, a3, ..., a n ,},in Indicates that the task is calculated on the terminal. Indicates that the task will be offloaded, a n,m, =1 means the task will be calculated on server m, a n , the conditions must be met

[0087] S23: Establishment of reward space: The reward space is used to iteratively update the system. The system will update Q through the reward space t value;

[0088] The agent is in state s n After executing action a n You will get reward later n , the system will receive the corresponding reward when it completes the task within the specified time. When the task exceeds its maximum waiting time, it is considered that the task is abandoned and punished. After the system takes action, the system will receive the corresponding reward or punishment. Therefore, the reward function is as follows:

[0089]

[0090] is the time loss weight, is the capacity loss weight, T k is the time loss, E k is the energy loss, p is the timeout penalty;

[0091] S24: Randomly initialize several hyperparameter values ​​to obtain the number of hyperparameters;

[0092] Assign the hyperparameter data as the historical optimal value to the LSTM model, then use the PSO particle swarm algorithm to input the test set into the LSTM model, optimize the LSTM model through multiple rounds of iterations, and use the hyperparameter value with the smallest average error of the predicted value. When the PSO particle swarm algorithm reaches the maximum iteration value, output the values ​​of the key hyperparameters such as the number of hidden layers and the number of neurons in each layer, as well as the optimized LSTM model;

[0093] The tuned LSTM model is combined with the DQN model. The historical task data is input into the LSTM model. After being processed by the LSTM model, the predicted action is input into the DQN model. The DQN model will select the predicted action with a certain probability instead of completely selecting the Q t The maximum value action is taken to obtain the PLD model.

[0094] S25: The input data of the PLD model is the cleaned historical task unloading data obtained in S1, and the data is divided into a training set and a test set according to a preset ratio to train the PLD model.

[0095] In the above technical solution, in S3, the task offloading strategy of the cluster system in the edge computing environment is described in detail as follows:

[0096] S31: During the algorithm training process, the action is chosen by the agent through probability, that is, the action with the largest Q is chosen with a probability of 1-ε. t The action of the network value randomly selects any action with a preset probability of ε, and ε is set according to the specific experimental environment. When the original agent selects a random action, this paper compares the random value δ with the probability ε to determine whether it is a random action or a predicted action. When δ is greater than ε, the random action is selected, otherwise the predicted action is selected. This avoids falling into the local optimum and improves the accuracy.

[0097] S32: Based on historical records, the LSTM model can be used to predict the action information of the next arriving task, and the predicted information is given to the DQN model. A plan for offloading the predicted task is proposed, that is, whether the task is calculated at the terminal or offloaded to the designated edge server for calculation. When the actual task arrives, the recent task information is input into the trained PLD model to obtain the offloading strategy for the recent task.

[0098] S33: The PLD model uses the mean square error method as the loss function and reduces the loss through the gradient descent algorithm. The loss function is as follows, where Q e is the evaluation network, s is the current state, a is the selected action, θ e is the evaluation parameter;

[0099]

[0100] S34: Target Q in the model t The network value is calculated as follows:

[0101] Q t =r n +γmaxQ t (s n+1 , a′; θ t ) (3)

[0102] where r n is the reward value, s n+1 is the state space at the next moment, θ t is the target parameter and a' is the predicted action.

Claims

1. A method for offloading edge computing PLD tasks. It is characterized in that include: S1: Obtain the historical task offloading data of the entire system in the cluster and clean the data; S2: Construct the three major spaces required for the PLD model, use the LSTM model and the DQN model to build the PLD model, and input the cleaned historical data into the PLD model through the three major spaces to complete the prediction model training; S21: Establishment of state space: The state of the state space is used to reflect the environment, which is composed of the terminal, task and edge server system status; The state space of the entire system is defined as ,in Indicates the system status recorded by terminal n, Where n is the terminal number, m is the edge server number, and k is the task number. is the computing power of terminal n, is the transmission power of terminal n, For computing tasks The amount of data, For computing tasks The resources required per bit, The maximum waiting time for a task, To calculate the uplink broadband bandwidth occupied by the terminal to the edge server during offloading, is the computing capacity of edge server m, where the superscript N indicates a terminal, n represents the serial number of the terminal, the superscript M indicates an edge server, and m represents the serial number of the edge server; S22: Establishment of action space: The action space is used to regulate the scope of the system's action execution for the task. Defining the action space ,in , =1 means the task is calculated on the terminal. =1 means the task will be uninstalled, Indicates that the task will be calculated on server m. Conditions to be met ; S23: Reward space establishment: The reward space is used to iteratively update the system. The system will be updated through the reward space value; The agent is in state Execute the action below You will be rewarded later , the system will receive the corresponding reward if it completes the task within the specified time. When the task exceeds its maximum waiting time, it is considered to be abandoned and punished. After the system takes action, the system will receive the corresponding reward or punishment. Therefore, the reward function is as follows: (1) is the time loss weight, is the capacity loss weight, For time loss, is the energy loss, p is the timeout penalty; S24: Randomly initialize several hyperparameter values ​​to obtain the number of hyperparameters; Assign the hyperparameter data as the historical optimal value to the LSTM model, then use the PSO particle swarm algorithm to input the test set into the LSTM model, optimize the LSTM model through multiple rounds of iterations, and use the hyperparameter value with the smallest average error of the predicted value. When the PSO particle swarm algorithm reaches the maximum iteration value, output the values ​​of the key hyperparameters such as the number of hidden layers and the number of neurons in each layer, as well as the optimized LSTM model; Combine the tuned LSTM model with the DQN model, input the historical task data into the LSTM model, and then input the predicted action into the DQN model after being processed by the LSTM model. The DQN model will select the predicted action with a certain probability instead of completely selecting it. The maximum value action is taken to obtain the PLD model; S25: the input data of the PLD model is the cleaned historical task unloading data obtained in S1, and the data is divided into a training set and a test set according to a preset ratio to train the PLD model; S3: Input the upcoming task data into the trained PLD model to obtain the task offloading strategy of the cluster system for each task.

2. According to claim 1, a method for offloading edge computing PLD tasks, It is characterized in that In S1, the detailed description of data cleaning is as follows: S11: historical task offloading data of the entire system in the cluster, mainly including: task capacity, task arrival time, task end time, task priority, task maximum tolerance time, and task offloading target; S12: Clean the indicator data by first filling in empty values ​​and desensitizing the data; then, group and aggregate the desensitized data according to the task arrival time; finally, time serialize and normalize the data within a period of time after grouping and aggregation to obtain the cleaned cluster historical task unloading indicator data.

3. The edge computing PLD task offloading method according to claim 1, It is characterized in that In S3, the task offloading strategy of the cluster system in the edge computing environment is described in detail as follows: S31: During the algorithm training process, the action is selected by the agent through probability, that is, the action with the largest probability is selected with 1-ε. The action of the network value randomly selects any action with a preset probability of ε. ε is set according to the specific experimental environment. When the original agent selects a random action, the random value The method of comparing the size with the probability ε determines whether it is a random action or a predicted action. When it is greater than ε, a random action is selected, otherwise a predicted action is selected; S32: Based on historical records, the LSTM model can be used to predict the action information of the next arriving task, and the predicted information is given to the DQN model. A plan for offloading the predicted task is proposed, that is, whether the task is calculated at the terminal or offloaded to the designated edge server for calculation. When the actual task arrives, the recent task information is input into the trained PLD model to obtain the offloading strategy for the recent task. S33: The PLD model uses the mean square error method as the loss function, and reduces the loss through the gradient descent algorithm. The loss function is as follows, wherein, is the evaluation network, s is the state at this time, For the selected action, is the evaluation parameter; (2) S34: Target in the model The network value is calculated as follows: = (3) in is the reward value, is the state space at the next moment, is the target parameter, To predict actions.

4. An edge computing PLD task offloading device, It is characterized in that include: Data cleaning module: obtains historical task unloading data of the entire system in the cluster and cleans the data; Prediction model training module: construct the three spaces required for the PLD model, use the LSTM model and the DQN model to build the PLD model, and input the cleaned historical data into the PLD model through the three spaces to complete the prediction model training; In the prediction model training module, the three major space definitions, the construction of the PLD model, and the model training process are described in detail as follows: S21: Establishment of state space: The state of the state space is used to reflect the environment, which is composed of the terminal, task and edge server system status; The state space of the entire system is defined as ,in Indicates the system status recorded by terminal n, Where n is the terminal number, m is the edge server number, k is the task number, is the computing power of terminal n, is the transmission power of terminal n, For computing tasks The amount of data, For computing tasks The resources required per bit, The maximum waiting time for a task, To calculate the uplink broadband bandwidth occupied by the terminal to the edge server during offloading, is the computing capacity of edge server m, where the superscript N indicates a terminal, n represents the serial number of the terminal, the superscript M indicates an edge server, and m represents the serial number of the edge server; S22: Establishment of action space: The action space is used to regulate the scope of the system's execution of tasks. Defining the action space ,in , =1 means the task is calculated on the terminal. =1 means the task will be uninstalled, Indicates that the task will be calculated on server m. Conditions to be met ; S23: Reward space establishment: The reward space is used to iteratively update the system. The system will be updated through the reward space value; The agent is in state Execute the action below You will be rewarded later , the system will receive the corresponding reward if it completes the task within the specified time. When the task exceeds its maximum waiting time, it is considered to be abandoned and punished. After the system takes action, the system will receive the corresponding reward or punishment. Therefore, the reward function is as follows: (1) is the time loss weight, is the capacity loss weight, For time loss, is the energy loss, p is the timeout penalty; S24: Randomly initialize several hyperparameter values ​​to obtain the number of hyperparameters; Assign the hyperparameter data as the historical optimal value to the LSTM model, then use the PSO particle swarm algorithm to input the test set into the LSTM model, optimize the LSTM model through multiple rounds of iterations, and use the hyperparameter value with the smallest average error of the predicted value. When the PSO particle swarm algorithm reaches the maximum iteration value, output the values ​​of the key hyperparameters such as the number of hidden layers and the number of neurons in each layer, as well as the optimized LSTM model; Combine the tuned LSTM model with the DQN model, input the historical task data into the LSTM model, and then input the predicted action into the DQN model after being processed by the LSTM model. The DQN model will select the predicted action with a certain probability instead of completely selecting it. The maximum value action is taken to obtain the PLD model; S25: The input data of the PLD model is the cleaned historical task unloading data obtained in S1, and the data is divided into a training set and a test set according to a preset ratio to train the PLD model; Task offloading strategy module: Input the upcoming task data into the trained PLD model to obtain the task offloading strategy of the cluster system for each task.

5. The edge computing PLD task offloading device according to claim 4, It is characterized in that In the data cleaning module, the detailed description of data cleaning is as follows: S11: historical task offloading data of the entire system in the cluster, mainly including: task capacity, task arrival time, task end time, task priority, task maximum tolerance time, and task offloading target; S12: Clean the indicator data by first filling in empty values ​​and desensitizing the data; then, group and aggregate the desensitized data according to the task arrival time; finally, time serialize and normalize the data within a period of time after grouping and aggregation to obtain the cleaned cluster historical task unloading indicator data.

6. The edge computing PLD task offloading device according to claim 4, It is characterized in that In the task offloading strategy module, the task offloading strategy of the cluster system in the edge computing environment is described in detail as follows: S31: During the algorithm training process, the action is selected by the agent through probability, that is, the action with the largest probability is selected with 1-ε. The action of the network value randomly selects any action with a preset probability of ε. ε is set according to the specific experimental environment. When the original agent selects a random action, the random value The method of comparing the size with the probability ε is to determine whether it is a random action or a predicted action. When it is greater than ε, a random action is selected, otherwise a predicted action is selected; S32: Based on historical records, the LSTM model can be used to predict the action information of the next arriving task, and the predicted information is given to the DQN model. A plan for offloading the predicted task is proposed, that is, whether the task is calculated at the terminal or offloaded to the designated edge server for calculation. When the actual task arrives, the recent task information is input into the trained PLD model to obtain the offloading strategy for the recent task. S33: The PLD model uses the mean square error method as the loss function, and reduces the loss through the gradient descent algorithm. The loss function is as follows, wherein, is the evaluation network, s is the state at this time, For the selected action, is the evaluation parameter; (2) S34: Target in the model The network value is calculated as follows: = (3) in is the reward value, is the state space at the next moment, is the target parameter, To predict actions.

7. A storage medium, It is characterized in that When the processor executes the program in the storage medium, an edge computing PLD task offloading method as described in any one of claims 1-3 is implemented.