Industrial quality inspection edge computing power scheduling method and device, electronic equipment and storage medium
The edge computing power scheduling method of the multi-condition DDPG model solves the problem of response delay and bandwidth pressure caused by improper selection of computing power nodes in industrial quality inspection, realizes intelligent scheduling, and improves the processing experience and bandwidth utilization of quality inspection services. .
Patent Information
- Application Number
- CN202311699758.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-10-18
AI Technical Summary
The lack of self-aware, adaptive, and self-scheduling edge computing power scheduling solutions in industrial quality inspection results in improper selection of computing power nodes that may affect the work rhythm of the production pipeline and create bandwidth pressure.
Using a multi-condition DDPG model, by obtaining the status data of the GPU memory usage of edge computing nodes, the maximum total concurrent bandwidth available and the average network delay, and using the deep deterministic policy gradient method, the target node scheduling position is automatically generated to reduce Response latency and improved bandwidth utilization.
It realizes intelligent scheduling of computing power nodes, reduces the average response delay, improves the total concurrent bandwidth utilization, improves the processing experience of industrial quality inspection services and the bandwidth utilization of operators.
Smart Images

Figure CN118802803A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and specifically to methods, devices, electronic devices and storage media for scheduling edge computing power for industrial quality inspection. Background Art
[0002] With the continuous emergence of new industrial Internet businesses, a large number of quality inspection scenarios using machine vision for industrial scenarios have emerged, which directly affect the production quality reliability and safety of production line products.
[0003] The reasoning and training computing power required for industrial quality inspection is mainly pre-deployed. The reasoning and training computing power for industrial quality inspection is mainly deployed locally or on the cloud, and can only be connected to computing resources in other locations through manual adjustment.
[0004] For customers in industrial quality inspection scenarios, if they all use locally deployed inference and training computing power, they need to purchase and deploy a large amount of computing power resources in advance, which will cause resources to be idle during off-duty periods, and local computing power cannot be expanded quickly.
[0005] If all inference and training computing power are deployed on the cloud, there are many edge computing nodes on the cloud. Inappropriate selection of computing node locations may affect the work rhythm of the production line due to network latency. In addition, industrial quality inspection images are large and are prone to generate greater bandwidth pressure due to transmission.
[0006] Therefore, there is an urgent need for an industrial quality inspection edge computing power scheduling solution that can be self-sensing, self-adaptive, and self-scheduling. Summary of the invention
[0007] The embodiments of the present application provide an industrial quality inspection edge computing power scheduling method, device, electronic device and storage medium to solve the technical problem in the prior art that the industrial quality inspection edge computing power lacks self-perception, self-adaptation, self-scheduling and other capabilities.
[0008] In a first aspect, an embodiment of the present application provides an industrial quality inspection edge computing power scheduling method, including: obtaining status data of each edge computing power node in the most recent T time period; wherein the status data includes GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network latency; inputting the status data into a multi-conditional DDPG model to obtain a target node scheduling position output by the multi-conditional DDPG model; wherein the multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions based on the status data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from the multiple preliminary node scheduling positions based on the Q value.
[0009] In one embodiment, state data is input into a multi-conditional DDPG model, including: taking GPU memory usage as the state, the maximum total concurrent bandwidth that can be provided as the first condition, and the average network latency as the second condition and inputting them into an executor of the multi-conditional DDPG model.
[0010] In one embodiment, obtaining status data of each edge computing node within the most recent T time period includes: obtaining status data of each edge computing node within the most recent T time period from a distributed container cloud management platform; wherein T is the time granularity.
[0011] In one embodiment, after obtaining the target node scheduling position output by the multi-condition DDPG model, it includes: feeding back the target node scheduling position to the distributed container cloud management platform so that the distributed container cloud management platform executes the action corresponding to the target node scheduling position.
[0012] In one embodiment, before inputting the state data into the multi-conditional DDPG model, it includes: obtaining an initialized multi-conditional DDPG model; training the initialized multi-conditional DDPG model according to the training data to obtain the multi-conditional DDPG model; wherein the training data includes the action, reward and result of the next state in each state of each edge computing node; the training content includes updating the judge network, updating the actuator network and updating the target network.
[0013] In one embodiment, before the state data is input into the multi-condition DDPG model, it includes: inputting the GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network latency into the preprocessing module, and obtaining the state data after data standardization output by the preprocessing module.
[0014] In one embodiment, the executor includes a first action target network and a first action estimation network, the first action target network and the first action estimation network are two neural networks with the same structure, and the parameter update frequencies of the first action target network and the first action estimation network are different; the evaluator includes a second action target network and a second action estimation network, the second action target network and the second action estimation network are two neural networks with the same structure, and the parameter update frequencies of the second action target network and the second action estimation network are different.
[0015] In the second aspect, an embodiment of the present application provides an industrial quality inspection edge computing power scheduling device, including: a status data module, used to obtain the status data of each edge computing power node in the most recent T time period; wherein the status data includes GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network delay; a target node scheduling position module, used to input the status data into a multi-condition DDPG model to obtain the target node scheduling position output by the multi-condition DDPG model; wherein the multi-condition DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions based on the status data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from the multiple preliminary node scheduling positions based on the Q value.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the industrial quality inspection edge computing power scheduling method described in the first aspect is implemented.
[0017] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the industrial quality inspection edge computing power scheduling method described in the first aspect is implemented.
[0018] The industrial quality inspection edge computing power scheduling method, device, electronic device and storage medium provided by the embodiment of the present application include: obtaining the status data of each edge computing power node in the most recent T time period; wherein the status data includes the GPU memory usage, the maximum total concurrent bandwidth available and the average network delay; inputting the status data into the multi-conditional DDPG model to obtain the target node scheduling position output by the multi-conditional DDPG model; wherein the multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions according to the status data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from multiple preliminary node scheduling positions according to the Q value. The present application can sense the status of each edge computing power node, and determine the target node scheduling position that minimizes the average response delay of the computing power node and improves the total concurrent bandwidth utilization, thereby fully improving the bandwidth utilization of the operator and the customer's experience in industrial quality inspection business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 It is a flowchart of the industrial quality inspection edge computing power scheduling method provided in an embodiment of the present application;
[0021] Figure 2 It is a process schematic diagram of the industrial quality inspection edge computing power scheduling method provided in an embodiment of the present application;
[0022] Figure 3 This is a schematic diagram of the process of building and training the actuator in the multi-condition DDPG model of this application;
[0023] Figure 4 This is a schematic diagram of the process of building and training the judge in the multi-condition DDPG model of this application;
[0024] Figure 5 It is a structural schematic diagram of an industrial quality inspection edge computing power scheduling device provided in an embodiment of the present application;
[0025] Figure 6 It is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] In the existing technical solutions, the reasoning and training computing power for industrial quality inspection is mainly deployed locally or in the cloud. The location of the computing power is relatively fixed. Currently, there is no solution for self-sensing, self-adaptive, and self-scheduling of industrial quality inspection edge computing power.
[0028] Based on this, an embodiment of the present application provides an industrial quality inspection edge computing power scheduling method. Based on the reinforcement learning of the multi-condition DDPG model, it selects the target node scheduling position that can minimize the average response delay of the computing power node and improve the total concurrent bandwidth utilization, thereby fully improving the operator's bandwidth utilization and the customer's user experience for industrial quality inspection business processing.
[0029] See also Figure 1 , Figure 1 : is a flow chart of the industrial quality inspection edge computing power scheduling method provided in the embodiment of the present application. In this embodiment, the industrial quality inspection edge computing power scheduling method includes steps S110 to S120, and each step is as follows:
[0030] S110: Obtain the status data of each edge computing node in the most recent T time period.
[0031] The status data includes GPU memory usage, maximum total concurrent bandwidth available, and average network latency.
[0032] S120: Input the state data into the multi-condition DDPG model to obtain the target node scheduling position output by the multi-condition DDPG model.
[0033] The multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions based on the state data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from multiple preliminary node scheduling positions based on the Q value.
[0034] The DDPG (Deep Deterministic Policy Gradient) used in this embodiment is a deep reinforcement learning method based on the Actor-Critic architecture. DDPG is based on the Actor-Critic method. In terms of action output, a network is used to fit the policy function and directly output actions. It can handle the output of continuous actions and large action spaces. DDPG combines the previously successful DQN structure to improve the stability and convergence of Actor-Critic.
[0035] The policy function Actor selects behavior based on probability; the value function Critic scores the behavior based on the Actor's behavior, and the Actor modifies the selected behavior according to the Critic's score.
[0036] DPG (Deterministic Policy Gradient) means that the behavior of each step directly obtains a certain value through the function μ:
[0037] a t =μ(s t |θ μ );
[0038] a t is the action chosen at time t, s t is the state of the environment at time t, θ μ is the weight value, and the function μ is the optimal behavior strategy. After training, a deterministic optimal behavior strategy function is obtained. Deterministic policy gradient The formula is as follows:
[0039]
[0040] DDPG (Deep Deterministic Policy Gradient) is a policy learning method that integrates deep learning neural networks into DPG. That is, both the value function Critic and the policy function Actor are expressed using neural networks. Compared with DPG, the core improvement is: using neural networks as simulations of the policy function μ and the Q function, namely the policy network and the Q network; and then using deep learning methods to train the above neural networks.
[0041] Optionally, when the policy function Actor is set on the executor, the policy network is equivalent to the executor network; when the value function Critic is set on the judge, the Q network is equivalent to the judge network.
[0042] The industrial quality inspection edge computing power scheduling method, device, electronic device and storage medium provided by the embodiment of the present application include: obtaining the status data of each edge computing power node in the most recent T time period; wherein the status data includes the GPU memory usage, the maximum total concurrent bandwidth available and the average network delay; inputting the status data into the multi-conditional DDPG model to obtain the target node scheduling position output by the multi-conditional DDPG model; wherein the multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions according to the status data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from multiple preliminary node scheduling positions according to the Q value. The present application can sense the status of each edge computing power node, and determine the target node scheduling position that minimizes the average response delay of the computing power node and improves the total concurrent bandwidth utilization, thereby fully improving the bandwidth utilization of the operator and the customer's experience in industrial quality inspection business processing.
[0043] Based on any of the above embodiments, the step of inputting the state data into the multi-conditional DDPG model may specifically include:
[0044] The GPU memory usage is used as the state, the maximum total concurrent bandwidth that can be provided is used as the first condition, and the average network latency is used as the second condition to be input into the executor of the multi-condition DDPG model.
[0045] In this embodiment, the state is the GPU memory usage rate s of each edge computing node in the tth period. t ; Introduce multiple conditions c1 is the maximum total concurrent bandwidth currently available, c2 is the average network delay; behavior (action) a t It is the computing node scheduling position of the customer corresponding to the t-th period, which belongs to the continuous action space type.
[0046] Optionally, after the adjustment action of model selection is executed by the distributed container cloud management platform (i.e., the brain of the computing network), the GPU memory usage rate of each edge computing node is calculated by s t Convert to s t+1 ; r(s t ,c1,c2,a t ) function is a distributed container cloud management platform in state s t Perform adjustment action a t After that, the single-step reward value returned will be determined by the GPU memory usage s of each edge computing node in the next T time period. t+1 Decide.
[0047] Based on any of the above embodiments, the step of obtaining the status data of each edge computing node within the most recent T time period may specifically include:
[0048] Obtain the status data of each edge computing node in the recent T time period from the distributed container cloud management platform; where T is the time granularity.
[0049] Based on any of the above embodiments, the steps after obtaining the target node scheduling position output by the multi-condition DDPG model may specifically include:
[0050] The target node scheduling position is fed back to the distributed container cloud management platform so that the distributed container cloud management platform executes the action corresponding to the target node scheduling position.
[0051] Based on any of the above embodiments, the step of inputting the state data into the multi-conditional DDPG model may specifically include:
[0052] Obtain an initialized multi-conditional DDPG model; train the initialized multi-conditional DDPG model according to the training data to obtain a multi-conditional DDPG model; wherein the training data includes the action, reward and result of the next state of each edge computing node; the training content includes updating the judge network, updating the actuator network and updating the target network.
[0053] Based on any of the above embodiments, the step of inputting the state data into the multi-conditional DDPG model may specifically include:
[0054] The GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network delay are input into the preprocessing module to obtain the status data after data standardization output by the preprocessing module.
[0055] The data standardization process includes: for each dimension separately, subtract the mean of the data by attribute (by column), and divide it by its variance. The specific formula is: (A-mean) / std, where A is the input data, mean is the average value, and std is the standard deviation.
[0056] Data standardization can improve the convergence speed and model accuracy of the multi-condition DDPG model.
[0057] See also Figure 2 , Figure 2 It is a process diagram of the industrial quality inspection edge computing power scheduling method provided by the embodiment of the present application. In this embodiment, the scheduling process of each edge computing power node of industrial quality inspection is as follows:
[0058] 0) Distributed container cloud management platform (computing network brain) connects multiple industrial quality inspection customers, such as Figure 2 As shown, it includes industrial quality inspection customer 1, industrial quality inspection customer 2, ..., industrial quality inspection customer n.
[0059] 1) Obtain the GPU memory usage rate of each edge computing node in the recent T time period from the distributed container cloud management platform (computing network brain) as the state (s), as well as the maximum total concurrent bandwidth (c1) and average network delay (c2) that can be provided as multiple conditions, with a time granularity / time interval of T (such as 5 minutes);
[0060] 2) Input the GPU memory usage rate (s), the maximum total concurrent bandwidth (c1) and the average network delay (c2) of each edge computing node in the recent T time period into the preprocessing module for data standardization;
[0061] 3) Input the GPU memory usage (s), the maximum total concurrent bandwidth (c1) and the average network delay (c2) of each edge computing node in the most recent T time period after standardization into the trained DDPG-based deep reinforcement learning executor;
[0062] 4) The deep neural network in the executor learns the restrictions of the adjustment of the scheduling method of each edge computing node position from the multi-conditional data, learns the operating status of each computing node from the status of each edge computing node, and outputs the scheduling position of the edge computing node (a);
[0063] Among them, the index number of each computing power node is output as 1, 2, ..., X. 1 represents edge computing power node 1, 2 represents edge computing power node 2, and so on; for example Figure 2 As shown: edge computing power scheduling node for industrial quality inspection customer 1, edge computing power scheduling node for industrial quality inspection customer 2, and edge computing power scheduling node for industrial quality inspection customer 3;
[0064] 5) Feedback the edge computing node adjustment actions of the n customers to the distributed container cloud management platform (computing network brain), and the distributed container cloud management platform (computing network brain) implements the action according to the feedback results;
[0065] 6) After the scheduling and adjustment of the edge computing nodes for each industrial quality inspection customer is completed, the status data of each edge computing node in the next T time period will be input into the executor based on multi-conditional reinforcement learning.
[0066] Furthermore, the implementation of the multi-conditional DDPG model in this embodiment is mainly divided into two steps:
[0067] Step 1: Preprocessing of historical multi-condition and state data.
[0068] The historical GPU memory usage rate (s), the maximum total concurrent bandwidth (c1) and the average network latency (c2) of each edge computing node are obtained from the distributed container cloud management platform (computing network brain). The time granularity / time interval is T (5min), and the data is standardized.
[0069] In some embodiments, the total data set can be divided into training data and test data, with 80% of the entire data set being the training data and the remaining 20% being the test data. The training set is used for training, and the test set is used to evaluate and verify the model.
[0070] Step 2: Build and train a multi-condition DDPG model.
[0071] See also Figure 3-Figure 4 , Figure 3 This is a schematic diagram of the process of building and training the actuator in the multi-condition DDPG model of this application; Figure 4 This is a schematic diagram of the process of building and training the critic in the multi-conditional DDPG model of this application. The built DDPG model consists of an executor (actor) and a critic (critic), wherein the executor can be composed of a graph network.
[0072] The executor can input the GPU memory usage rate (s), the maximum total concurrent bandwidth (c1) and the average network latency (c2) of each edge computing node, and the executor can output the computing node scheduling position (a) of n industrial quality inspection customers.
[0073] Then, the GPU memory usage rate of each edge computing node in the most recent T time period, the objective multi-condition data of the edge computing node scheduling adjustment, and the schedulable edge computing node position output by the actuator are input into the judge composed of a fully connected neural network, and the Q(s,c1,c2,a) value for evaluating this action selection is output. The Q value is fed back to the actuator, and the actuator selects the computing node position that can best meet the customer's industrial quality inspection scenario computing power call requirements, reduce network latency, and improve the total concurrent bandwidth utilization.
[0074] Specifically, the executor may include a first action target network (target_net1) and a first action estimation network (eval_net1), the first action target network and the first action estimation network are two neural networks with the same structure, and the parameter update frequencies of the first action target network and the first action estimation network are different.
[0075] like Figure 3 As shown, input layer 1 inputs the GPU memory usage rate (s) of each edge computing node; input layer 2 inputs the maximum total concurrent bandwidth (c1) and average network latency (c2) that can be provided; the two input layers pass through a fully connected layer respectively, with 128 neurons and an activation function of "relu". Then the states and multiple conditions are merged through the merge layer. This is followed by a fully connected layer (with 128 neurons and an activation function of "relu") and a dropout layer, with a dropout probability of 0.2, that is, 20% of the neurons are randomly ignored and made invalid.
[0076] The output layer is a fully connected layer (Dense): n neurons are set, the activation function is "tanh", and each neuron outputs the index number of each computing power node 1, 2, ..., X, 1 represents edge computing power node 1, 2 represents edge computing power node 2, and so on.
[0077] The evaluator may include a second action target network (target_net2) and a second action estimation network (eval_net2), the second action target network and the second action estimation network are two neural networks with the same structure, and the parameter update frequencies of the second action target network and the second action estimation network are different.
[0078] like Figure 4As shown in the figure, three input layers are set respectively. Input layer 1 receives the GPU memory usage rate (s) of each edge computing node in the recent T time period, input layer 2 receives the maximum total concurrent bandwidth (c1) and average network delay (c2) that can be provided, and input layer 3 receives the computing node scheduling position adjustment action of n industrial quality inspection customers output by the actuator; input layers 1 and 2 are respectively passed through two fully connected layers (Dense), with 256 and 128 neurons set respectively, and the activation function is "relu"; input layer 3 is passed through a fully connected layer (Dense), with 16 neurons set, and the activation function is "relu"; then the merge layer (merge) is used to merge the state, multiple conditions, and actions; finally, a fully connected layer (128 neurons, activation function "relu") and an output layer (1 neuron, activation function "tanh") are connected. The final output is the Q(s,c1,c2,a) value that evaluates the action selection.
[0079] The model training process is as follows:
[0080] Only the parameters of the action estimation network and the evaluation estimation network need to be trained, while the parameters of the action target network and the evaluation target network are copied from the first two networks at regular intervals. Use experience replay (replay buffer) to save all stages (s, c1, c2, a, r, s') in a replay memory. The training data is randomly extracted from the memory bank, which records the actions, rewards and results of the next state (s, c1, c2, a, r, s') in each state. The size of the memory bank is limited. When the data is full, the next data will overwrite the first data in the memory bank. The training data (s, c1, c2, a, r, s') is the data generated by the actuator when interacting with each edge computing node environment. s represents the state faced by the system at that time, a represents the behavior of the actuator when facing the operating state of each edge node, r represents the benefit obtained from the environment after the actuator makes the selected behavior, and s' represents another state to which the system transfers after the actuator makes the selected behavior.
[0081] 1) First, randomly initialize the judge network Q(s,a|θ Q ) and the actuator network μ(s|θ μ ), the initial weights are θ Q and θ μ Then initialize the target network Q'=Q(s,a|θ Q ) and μ'=μ(s|θ μ ). Initialize the experience replay R.
[0082] When round = 1: initialize a random process for action selection and obtain the initial state s1 of each edge computing node.
[0083] When t=1, select the computing node scheduling position of the industrial quality inspection customer to adjust action a t , and get the reward r after execution t and the new status of each edge computing node s t+1 . The (s t ,c1,c2,at,r t ,s t+1 ) is stored in R. A batch of N records (s) is randomly selected from R i ,c 1i ,c 2i ,a i ,r i ,s i+1 ). Then set the objective function for:
[0084]
[0085] in Characterize the target network, r i represents the reward value during the learning process of i, θ μ′ ,θ Q′ represents the target weight and γ represents the discount factor.
[0086] 2) The critic network is then updated by minimizing the following loss function: L represents the loss function.
[0087]
[0088] The training of the state estimation network of the judge is still based on the square loss of the actual Q value and the estimated Q value. The estimated Q value is obtained by inputting the state estimation network according to the current state s and the action a output by the action estimation network, while the actual Q value is obtained by adding the actual reward r and the discounted value of the Q value obtained by inputting the next moment state s' and the action a' obtained by the action reality network into the state reality network.
[0089] 3) Then update the actuator network: Since a is a deterministic policy, that is, a = μ(s|θ), the actuator network is updated through the deterministic policy gradient. The action gradient obtained from the evaluator Multiply by the parameter gradient from the actor The actuator modifies the parameters in the direction where it is more likely to obtain a larger Q function value. The purpose of the actuator is to obtain an action with a high Q value as much as possible, so the loss of the actuator can be simply understood as the larger the feedback Q value, the smaller the loss, and the smaller the feedback Q value, the greater the loss.
[0090]
[0091] in Represents the gradient, and uses the action network method to adjust the weight value. represents the action gradient, represents the parameter gradient.
[0092] 4) Finally, update the target network: The weights of the target network are updated by slowly tracking the learned network. The following are the weight updates of the evaluation network and the action network:
[0093] θ Q′ ←τθ Q +(1-τ)θ Q′ ;
[0094] θ μ′ ←τθ μ +(1-τ)θ μ′ ;
[0095] τ is set to a number very close to 1 so that the parameters θ of the target network do not change too much.
[0096] In summary, the embodiments of the present application provide an industrial quality inspection edge computing power scheduling method based on multi-condition reinforcement learning. Multiple conditions are introduced on the basis of the original deep deterministic strategy supervisor DDPG, and the advantages of DDPG in continuous action space prediction are used to estimate the scheduling method of each edge computing power node of industrial quality inspection. The constructed multi-condition DDPG model consists of an executor and an evaluator, wherein the executor is composed of a deep neural network, and inputs the GPU memory usage rate (s) of each edge computing power node, the maximum total concurrent bandwidth (c1) that can be provided, and the average network delay (c2), and outputs the computing power node scheduling position (a) of n industrial quality inspection customers.
[0097] The deep neural network in the executor learns the restrictions on the adjustment of the location scheduling method of each edge computing node of industrial quality inspection from multi-condition data. Then, the GPU memory usage rate of each edge computing node in the recent T time period, the objective multi-condition data that restricts the location adjustment of each edge computing node of industrial quality inspection, and the computing node location adjustment scheduling position output by the executor are output to the judge composed of the full neural network, and the Q(s,c1,c2,a) value that evaluates the action selection is output. The Q value is fed back to the executor, and the executor selects the one that can minimize the average response delay of the computing node and improve the total concurrent bandwidth utilization based on the Q value. This fully improves the bandwidth utilization of operators and the customer's experience in industrial quality inspection business processing.
[0098] The industrial quality inspection edge computing power scheduling device provided in an embodiment of the present application is described below. The industrial quality inspection edge computing power scheduling device described below and the industrial quality inspection edge computing power scheduling method described above can be referenced to each other.
[0099] See also Figure 5 , Figure 5 : is a schematic diagram of the structure of the industrial quality inspection edge computing power scheduling device provided in an embodiment of the present application. In this embodiment, the industrial quality inspection edge computing power scheduling device may include:
[0100] The status data module 510 is used to obtain the status data of each edge computing node in the most recent T time period; the status data includes the GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network latency.
[0101] The target node scheduling position module 520 is used to input the state data into the multi-condition DDPG model to obtain the target node scheduling position output by the multi-condition DDPG model.
[0102] The multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions based on the state data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from multiple preliminary node scheduling positions based on the Q value.
[0103] In one embodiment, the target node scheduling location module 520 is specifically used to:
[0104] The GPU memory usage is used as the state, the maximum total concurrent bandwidth that can be provided is used as the first condition, and the average network latency is used as the second condition to be input into the executor of the multi-condition DDPG model.
[0105] In one embodiment, the status data module 510 is specifically used to obtain the status data of each edge computing node within the most recent T time period from the distributed container cloud management platform; where T is the time granularity.
[0106] In one embodiment, the industrial quality inspection edge computing power scheduling device further includes a data sending module, which is specifically used to:
[0107] The target node scheduling position is fed back to the distributed container cloud management platform so that the distributed container cloud management platform executes the action corresponding to the target node scheduling position.
[0108] In one embodiment, the industrial quality inspection edge computing power scheduling device further includes a model training module, which is specifically used to:
[0109] Obtain an initialized multi-conditional DDPG model; train the initialized multi-conditional DDPG model according to the training data to obtain a multi-conditional DDPG model; wherein the training data includes the action, reward and result of the next state of each edge computing node; the training content includes updating the judge network, updating the actuator network and updating the target network.
[0110] In one embodiment, the industrial quality inspection edge computing power scheduling device further includes a standardization processing module, which is specifically used to:
[0111] The GPU memory usage, the maximum total concurrent bandwidth that can be provided, and the average network delay are input into the preprocessing module to obtain the status data after data standardization output by the preprocessing module.
[0112] In one embodiment, the executor includes a first action target network and a first action estimation network, the first action target network and the first action estimation network are two neural networks with the same structure, and the parameter update frequencies of the first action target network and the first action estimation network are different; the evaluator includes a second action target network and a second action estimation network, the second action target network and the second action estimation network are two neural networks with the same structure, and the parameter update frequencies of the second action target network and the second action estimation network are different.
[0113] On the other hand, an embodiment of the present application further provides an electronic device, Figure 6 is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device may include: the electronic device may include a memory 620, a processor 610, and a computer program stored in the memory 620 and executable on the processor 610. When the processor 610 executes the program, the industrial quality inspection edge computing power scheduling method provided by the above methods is implemented.
[0114] Optionally, the electronic device may further include a communication bus 630 and a communication interface (CommunicationsInterface) 640, wherein the processor 610, the communication interface 640, and the memory 620 communicate with each other through the communication bus 630. The processor 610 may call a computer program in the memory 620 to execute an industrial quality inspection edge computing power scheduling method, the method comprising:
[0115] Obtain the status data of each edge computing node in the most recent T time period; the status data includes GPU memory usage, the maximum total concurrent bandwidth available, and the average network latency; input the status data into the multi-conditional DDPG model to obtain the target node scheduling position output by the multi-conditional DDPG model; the multi-conditional DDPG model includes an executor and an evaluator; the executor outputs multiple preliminary node scheduling positions based on the status data; the evaluator determines the Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from multiple preliminary node scheduling positions based on the Q value.
[0116] In addition, the logic instructions in the above-mentioned memory 620 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0117] On the other hand, the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the industrial quality inspection edge computing power scheduling method provided by the above methods. Its steps and principles have been introduced in detail in the above methods and will not be repeated here.
[0118] Non-transitory computer-readable storage media can be any available media or data storage devices that can be accessed by a processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drives (SSDs)), etc.
[0119] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for scheduling edge computing power for industrial quality inspection, characterized in that: include: Obtain the status data of each edge computing node in the most recent T time period; The status data includes GPU memory usage, maximum total concurrent bandwidth available, and average network latency; Inputting the state data into a multi-condition DDPG model to obtain a target node scheduling position output by the multi-condition DDPG model; The multi-conditional DDPG model includes an executor and an evaluator; the executor outputs a plurality of preliminary node scheduling positions according to the state data; The evaluator determines a Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from the multiple preliminary node scheduling positions according to the Q value.
2. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: The step of inputting the state data into a multi-conditional DDPG model comprises: The GPU memory usage rate is used as a state, the maximum total concurrent bandwidth that can be provided is used as a first condition, and the average network latency is used as a second condition to be input into the executor of the multi-condition DDPG model.
3. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: The acquisition of the status data of each edge computing node within the most recent T time period includes: Obtain the status data of each edge computing node in the recent T time period from the distributed container cloud management platform; where T is the time granularity.
4. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: After obtaining the target node scheduling position output by the multi-condition DDPG model, the method includes: The target node scheduling position is fed back to the distributed container cloud management platform, so that the distributed container cloud management platform executes an action corresponding to the target node scheduling position.
5. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: Before inputting the state data into the multi-conditional DDPG model, the method includes: Get the initialized multi-condition DDPG model; Training the initialized multi-conditional DDPG model according to the training data to obtain the multi-conditional DDPG model; The training data includes the actions, rewards and results of the next state of each edge computing node in each state; the training content includes updating the judge network, updating the actuator network and updating the target network.
6. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: Before inputting the state data into the multi-conditional DDPG model, the method includes: The GPU video memory usage rate, the maximum total concurrent bandwidth that can be provided, and the average network delay are input into a preprocessing module to obtain status data after data standardization processing output by the preprocessing module.
7. The industrial quality inspection edge computing power scheduling method according to claim 1 is characterized in that: The actuator includes a first action target network and a first action estimation network, wherein the first action target network and the first action estimation network are two neural networks with the same structure, and the first action target network and the first action estimation network have different parameter update frequencies; The evaluator includes a second action target network and a second action estimation network, wherein the second action target network and the second action estimation network are two neural networks with the same structure, and the parameter update frequencies of the second action target network and the second action estimation network are different.
8. An industrial quality inspection edge computing power scheduling device, characterized in that: include: The status data module is used to obtain the status data of each edge computing node in the recent T time period; The status data includes GPU memory usage, maximum total concurrent bandwidth available, and average network latency; A target node scheduling position module, used to input the state data into a multi-condition DDPG model to obtain a target node scheduling position output by the multi-condition DDPG model; The multi-conditional DDPG model includes an executor and an evaluator; the executor outputs a plurality of preliminary node scheduling positions according to the state data; The evaluator determines a Q value of each preliminary node scheduling position and feeds the Q value back to the executor, and the executor determines the target node scheduling position from the multiple preliminary node scheduling positions according to the Q value.
9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the industrial quality inspection edge computing power scheduling method described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the industrial quality inspection edge computing power scheduling method as described in any one of claims 1 to 7 is implemented.
