Cloud-edge collaborative scheduling method and application based on multi-type intelligent models

By deploying multiple inference models and selection models on edge nodes, a suitable DNN model is dynamically selected, solving the problems of low edge device image recognition accuracy and high cloud computing bandwidth consumption, and improving recognition accuracy and data security.

CN115202879BActive Publication Date: 2024-10-29INFORMATION & COMM BRANCH OF STATE GRID JIANGSU ELECTRIC POWER +2

Patent Information

Application Number
CN202210828289.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2024-10-29
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

In the existing technology, edge devices choose to compress a single DNN model, resulting in low image recognition accuracy, high bandwidth resource consumption and insufficient data security during cloud computing center calculations.

Method used

Adopting a cloud-edge collaborative scheduling method based on multiple types of intelligent models, by deploying multiple inference models and selection models on edge nodes, and using joint scheduling of prediction models and selection models, a suitable DNN model is dynamically selected for image recognition, reducing bandwidth consumption and Improve recognition accuracy.

Benefits of technology

The overall accuracy of image recognition is improved, bandwidth resource consumption is reduced, and data security is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202879B_ABST
    Figure CN115202879B_ABST
Patent Text Reader

Abstract

The present invention discloses a cloud-edge collaborative scheduling method and application based on multi-type intelligent models, which is applied to a cloud-edge collaborative system, wherein the cloud-edge collaborative system includes a cloud computing center and multiple edge nodes, and the method includes: constructing a prediction model, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes; scheduling the corresponding inference model to execute the target task based on the selection model in the prediction model. The method can be applied to different network structures, different applications, and different input data sets; and based on the extraction of eigenvalues ​​based on the relevant parameter matrix, the recognition effect of the prediction model is improved, and the execution time of the task is reduced; based on the model selection method of multiple DNNs coexisting, the overall accuracy of the prediction model for image processing applications is improved; at the same time, by adopting the method of collaborative scheduling between edge devices and cloud computing centers to execute the target task, the loss of bandwidth resources is reduced, and the security of data is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a cloud-edge collaborative scheduling method and application based on multi-type intelligent models. Background Art

[0002] With the development and maturity of artificial intelligence technology, deep learning has become the core of artificial intelligence technology. The application of deep neural network models makes intelligent service systems more convenient, but deep learning is generally resource-intensive. The demand for big data analysis and computing causes traditional cloud computing to consume a lot of bandwidth resources when transmitting data. At the same time, the delay caused by data transmission affects the real-time performance of applications. The emerging edge computing chooses to compress a single DNN model due to limited edge resources, resulting in low image recognition accuracy.

[0003] Therefore, in order to solve the problem of insufficient accuracy of a single DNN method, and based on the requirement of low latency in edge systems, researchers have proposed a type of early exit model strategy, which divides multiple exit points at the end of model reasoning according to the different feature granularity required by different data in the model reasoning process. However, the early exit points of model reasoning are all determined in advance, and the performance is very unsatisfactory in a dynamic environment, and the workload of prior preparation is large.

[0004] For edge devices with insufficient storage space, the method of optimizing resources by using both traditional large-version DNN and small-version DNN models is obviously inappropriate. The traditional method completely hosts the computing in the cloud center. The amount of application data is huge, and the process of uploading to the cloud data center consumes a lot of bandwidth resources. In addition, due to network instability and security issues, some privacy data is at risk of leakage during transmission. In addition, most studies have not yet combined edge computing with deep learning technology, and have not considered the choice of multiple models from a more comprehensive perspective. Summary of the invention

[0005] The purpose of the present invention is to provide a cloud-edge collaborative scheduling method and application based on multi-type intelligent models, so as to solve the technical problems in the prior art that the edge device chooses to compress a single DNN model, resulting in low image recognition accuracy, large bandwidth resource loss and data security risks when the computing is hosted in a cloud computing center.

[0006] To achieve the above objectives, an embodiment of the present invention provides a cloud-edge collaborative scheduling method based on multi-type intelligent models, which is applied to a cloud-edge collaborative system, wherein the cloud-edge collaborative system includes a cloud computing center and multiple edge nodes.

[0007] In one or more embodiments of the present invention, the method includes: constructing a prediction model, wherein the prediction model includes N inference models and corresponding N selection models deployed on N edge nodes respectively; scheduling the corresponding inference model to execute the target task based on the selection model in the prediction model.

[0008] In one or more embodiments of the present invention, constructing the prediction model includes: constructing a training feature set, wherein the training feature set includes M training features; inputting the training feature set into a preset inference model set, and alternately determining N inference models for constructing the prediction model based on inference time and inference accuracy; based on the N inference models, marking category labels for the M training features, wherein the category labels represent the optimal inference model corresponding to the training features; using the training feature set as input, and using the N selection models to respectively select target training features of the corresponding inference models as training targets, and training the N selection models until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

[0009] In one or more embodiments of the present invention, constructing a training feature set specifically includes: constructing a first candidate feature set; based on the Pearson product point correlation parameter matrix, screening the features in the first candidate feature set whose sampling values ​​are within a preset range to construct a second candidate feature set; calculating the first prediction accuracy of the prediction model for the second candidate feature set; successively eliminating one candidate feature from the second candidate feature set, and calculating the second prediction accuracy of the prediction model for the second candidate feature set from which the one candidate feature is eliminated; based on the difference between the first prediction accuracy and the second prediction accuracy, determining whether to delete the corresponding features in the second candidate feature set to construct a training feature set.

[0010] In one or more embodiments of the present invention, the training feature set is input into a preset inference model set, and multiple inference models for constructing the prediction model are determined alternately based on the inference time and the inference accuracy, specifically including: inputting the training feature set into the inference models in the preset inference model set respectively; based on the inference time or the inference accuracy of the inference model, determining an inference model to be added to the prediction model, and deleting the determined inference model from the preset inference model set; determining candidate inference models of the prediction model based alternately on the inference time and the inference accuracy of the inference model, and determining whether to add the candidate inference model to the prediction model based on the inference time and / or the inference accuracy of the prediction model.

[0011] In one or more embodiments of the present invention, based on the N inference models, the M training features are marked with category labels, specifically including: inputting the training feature set into a first inference model, and determining the training features selected by the first inference model based on the inference time and / or the inference accuracy; inputting the remaining training features in the training feature set into a second inference model, and determining the training features selected by the second inference model based on the inference time and / or the inference accuracy, wherein the second inference model is connected after the first inference model; repeating the above steps until the N inference models select corresponding training features in sequence; and marking category labels for the M training features based on the training features selected by the N inference models respectively.

[0012] In one or more embodiments of the present invention, the method further includes: verifying the performance indicators of the prediction model based on the k-fold cross-validation method, wherein the performance indicators include at least one of the inference time, energy consumption of the prediction model, accuracy, precision, recall rate, and F1 score.

[0013] In one or more embodiments of the present invention, when the selection model in the prediction model does not schedule the corresponding inference model to execute the target task, the method further includes: transmitting the target task to the cloud computing center so that the cloud computing center selects the inference model on the edge node to execute the target task.

[0014] In one or more embodiments of the present invention, the inference model is a DNN model, and the selection model is a KNN model.

[0015] In another aspect of the present invention, a cloud-edge collaborative scheduling device based on multi-type intelligent models is provided, and the device includes a construction module and a scheduling module.

[0016] A construction module, used to construct a prediction model, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes;

[0017] The scheduling module is used to schedule the corresponding inference model to execute the target task based on the selection model in the prediction model.

[0018] In one or more embodiments of the present invention, the construction module is specifically used to: construct a training feature set, wherein the training feature set includes M training features; input the training feature set into a preset inference model set, and determine the N inference models for constructing the prediction model alternately based on the inference time and the inference accuracy; based on the N inference models, mark category labels for the M training features, wherein the category labels represent the optimal inference model corresponding to the training features; use the training feature set as input, select the target training features of the corresponding inference models from the N selection models as training targets, and train the N selection models until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

[0019] In one or more embodiments of the present invention, the construction module is specifically used to: construct a first candidate feature set; based on the Pearson product point correlation parameter matrix, screen the features in the first candidate feature set whose sampling values ​​are within a preset range to construct a second candidate feature set; calculate the first prediction accuracy of the prediction model for the second candidate feature set; eliminate one candidate feature from the second candidate feature set in turn, and calculate the second prediction accuracy of the prediction model for the second candidate feature set from which the one candidate feature is eliminated; based on the difference between the first prediction accuracy and the second prediction accuracy, determine whether to delete the corresponding features in the second candidate feature set to construct a training feature set.

[0020] In one or more embodiments of the present invention, the construction module is specifically used to: input the training feature set into the inference models in the preset inference model set respectively; determine an inference model to be added to the prediction model based on the inference time or inference accuracy of the inference model, and delete the determined inference model from the preset inference model set; determine the candidate inference model of the prediction model based on the inference time and inference accuracy of the inference model alternately, and determine whether to add the candidate inference model to the prediction model based on the inference time and / or inference accuracy of the prediction model.

[0021] In one or more embodiments of the present invention, the construction module is specifically used to: input the training feature set into a first inference model, and determine the training features selected by the first inference model based on the inference time and / or inference accuracy; input the remaining training features in the training feature set into a second inference model, and determine the training features selected by the second inference model based on the inference time and / or inference accuracy, wherein the second inference model is connected after the first inference model; repeat the above steps until the N inference models select corresponding training features in sequence; and mark category labels for the M training features based on the training features selected by the N inference models.

[0022] In one or more embodiments of the present invention, the scheduling module is specifically used to: when the selection model in the prediction model does not schedule the corresponding inference model to execute the target task, transmit the target task to the cloud computing center so that the cloud computing center can select the inference model on the edge node to execute the target task.

[0023] In another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory, wherein the memory stores instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the cloud-edge collaborative scheduling method based on multi-type intelligent models as described above.

[0024] In another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the cloud-edge collaborative scheduling method based on multi-type intelligent models as described above is implemented.

[0025] Compared with the prior art, the cloud-edge collaborative scheduling method and application based on multi-type intelligent models according to the implementation mode of the present invention is combined with the compression model method to realize the function of adaptive selection using multiple DNN models for image recognition; and based on the extraction of eigenvalues ​​based on the relevant parameter matrix, the recognition effect of the prediction model is improved and the execution time of the task is reduced; based on the model selection method of multiple DNN coexistence, the overall accuracy of the prediction model for image processing applications is improved; based on the model evaluation method of multiple indicators, the generalization ability of the prediction model is effectively verified. At the same time, the present invention not only reduces the loss of bandwidth resources, but also ensures the security of data by adopting the method of collaborative scheduling between edge devices and cloud computing centers to execute target tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of a cloud-edge collaborative scheduling method based on multi-type intelligent models according to an embodiment of the present invention;

[0027] Figure 2 is a flowchart of constructing a prediction model according to an embodiment of the present invention;

[0028] Figure 3 is a network topology diagram of a cloud-edge collaboration system according to an embodiment of the present invention;

[0029] Figure 4 is a schematic diagram of a prediction model functional architecture according to an embodiment of the present invention;

[0030] Figure 5 is a schematic diagram of a functional architecture of a selection model according to an embodiment of the present invention;

[0031] Figure 6 is a flow chart of selecting a coarse-grained prediction model according to an embodiment of the present invention;

[0032] Figure 7 is a flow chart of selecting a fine-grained optimal prediction model according to an embodiment of the present invention;

[0033] Figure 8 is a flow chart of training feature selection according to one embodiment of the present invention;

[0034] Fig. 9 is a structural diagram of a device for cloud-edge collaborative scheduling based on multi-type intelligent models according to an embodiment of the present invention;

[0035] Fig.10 This is a hardware structure diagram of an electronic device for cloud-edge collaborative scheduling based on multi-type intelligent models according to one embodiment of the present invention. DETAILED DESCRIPTION

[0036] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.

[0037] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.

[0038] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0039] Ginseng Figure 3 A typical application scenario of the cloud-edge collaborative scheduling method based on multi-type intelligent models of the present invention can be a cloud-edge collaborative system. The cloud-edge collaborative system is a heterogeneous system, including a cloud computing center and multiple edge nodes. The cloud computing center is used to process the training process of the prediction model constructed in the cloud-edge collaborative scheduling method based on multi-type intelligent models, and store the trained prediction models in multiple edge nodes for use by edge applications.

[0040] Ginseng Figure 1 , an implementation of the cloud-edge collaborative scheduling method based on multi-type intelligent models of the present invention is introduced. In this implementation, the method includes the following steps.

[0041] In step S101, a prediction model is constructed, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes, wherein N is a positive integer greater than 1.

[0042] Ginseng Figure 2In this implementation, constructing the prediction model includes:

[0043] S1011, construct a training feature set, wherein the training feature set includes M training features, where M is also a positive integer greater than 1.

[0044] Specifically, first, taking image recognition applications as an example, a first candidate feature set is constructed based on candidate features that are often considered in some image recognition studies. In some cases, the first candidate feature set contains multiple features for each image, and for the same or similar images, the features are also the same or similar, resulting in duplication or redundancy of the features contained in the first candidate feature set. For the constructed prediction model, during operation, too much feature extraction will greatly affect its running speed and overhead. The more feature extractions are performed, the more complex the calculation process of the prediction model needs to be. Based on this, in this embodiment, the features in the first candidate feature set can be further screened and deleted.

[0045] Ginseng Figure 8 In this embodiment, based on the Pearson product point correlation parameter matrix, the features with values ​​within a preset range in the first candidate feature set are screened to construct the second candidate feature set.

[0046] Generally, the sampling value range is between -1 and +1. The closer its absolute value is to 1, the stronger the correlation between the two features being tested. Here, the preset range of the sampling value is set to -0.75 to +0.75, and then the features with absolute sampling values ​​higher than 0.75 are deleted, and all the remaining features are constructed as the second candidate feature set, in which there are no repeated or redundant features.

[0047] The above operation only deletes the repeated or redundant features in the first candidate feature set, and it is impossible to determine the importance of the remaining features to the image itself. For the image itself, some features are highly representative, while some features are relatively weak, which may have a certain negative impact on the accuracy of image recognition. Therefore, it is necessary to further screen and delete the features in the second candidate feature set to improve the prediction accuracy of the prediction model.

[0048] In this embodiment, the K-Fold cross-validation algorithm is first used to calculate the first prediction accuracy of the prediction model for the second candidate feature set, and then one candidate feature is eliminated from the second candidate feature set in turn, and the second prediction accuracy of the prediction model for the second candidate feature set from which the one candidate feature is eliminated is calculated, and based on the difference between the first prediction accuracy and the second prediction accuracy, it is determined whether to delete the corresponding feature in the second candidate feature set.

[0049] For example, if the difference between the first prediction accuracy and the second prediction accuracy is greater than 0, it means that the prediction accuracy has decreased, proving that this feature is relatively important for image recognition; if the difference between the first prediction accuracy and the second prediction accuracy is less than 0, it means that the prediction accuracy has increased, proving that the importance of this feature for image recognition is relatively low.

[0050] Based on the above rules, relatively unimportant features in the second candidate feature set are eliminated one by one, and all the features finally retained are constructed as the training feature set.

[0051] S1012, inputting the training feature set into a preset inference model set, and alternately determining N inference models for constructing the prediction model based on inference time and inference accuracy.

[0052] Specifically, the training features in the training feature set can be input into the inference models in the preset inference model set in sequence, and based on the inference time and / or inference accuracy of the inference model, an inference model is determined to be added to the prediction model, and the determined inference model is deleted from the preset inference model set.

[0053] Reference Figure 6 and Figure 7 First, the M training features in the training feature set can be input into each inference model in the preset inference model set in turn for inference, and then the time used by each inference model to infer each training feature and the accuracy of the inference result are calculated, and the inference model with the shortest inference time and / or the highest inference accuracy is selected to be added to the constructed prediction model, and the inference model is deleted from the preset inference model set.

[0054] In order to further screen out the best inference model for different training features, candidate inference models of the prediction model are determined alternately based on the inference time and inference accuracy of the inference model, and whether to add the candidate inference model to the prediction model is determined based on the inference time and / or inference accuracy of the prediction model. Here, the specific method for determining whether to add the candidate inference model to the prediction model based on the inference time and / or inference accuracy of the prediction model can refer to the above-mentioned implementation method of determining an inference model to be added to the prediction model based on the inference time or inference accuracy of the inference model, which will not be repeated here.

[0055] S1013: Based on the N inference models, label the M training features with category labels, wherein the category labels represent the optimal inference models corresponding to the training features.

[0056] In this embodiment, the training feature set is first input into the first inference model, and the training features selected by the first inference model are determined based on the inference time and / or the inference accuracy; the remaining training features in the training feature set are input into the second inference model, and the training features selected by the second inference model are determined based on the inference time and / or the inference accuracy, wherein the second inference model is connected after the first inference model; then the above steps are repeated until the N inference models select corresponding training features in sequence; based on the training features selected by the N inference models, the M training features are marked with category labels.

[0057] Exemplarily, the training feature set is first input into the above-mentioned N inference models in sequence. Assuming that 70% of the training features in the first inference model have a shorter inference time and / or a higher inference accuracy, it means that the first inference model has selected these 70% of the training features. Then the remaining 30% of the training features are input into the subsequent second inference model, and some of the training features selected by the second inference model are also screened out based on the inference time and / or inference accuracy. Repeat this step. Finally, based on the training features selected by the above-mentioned N inference models, the M training features can be labeled as being processed / not processed by the first to Nth inference models.

[0058] S1014, taking the training feature set as input, respectively selecting the target training features of the corresponding inference models as training targets by the N selection models, and training the N selection models until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

[0059] That is, the M training features with category labels are used as a new round of training data and input into N selection models for training, so that the N selection models can select their corresponding inference models according to the category labels of the input training features.

[0060] In step S102, the corresponding inference model is scheduled to execute the target task based on the selected model in the prediction model. In this embodiment, the K nearest neighbor algorithm is used to select the corresponding inference model to execute the target task. The inference model is a DNN model, the selected model is a KNN model, and each KNN model corresponds to a DNN model.

[0061] Ginseng Figure 4 and Figure 5 , for example, let N DNN models be DNN1 model, DNN2 model...DNNn model, and the corresponding N KNN models be KNN-1, KNN-2...KNN-n. Each DNN model and the corresponding KNN model are trained models, and each DNN model has determined the training features of which category labels it is suitable for processing.

[0062] Among them, KNN-1 is the first model in the selection model, and all images entering the prediction model will pass through the KNN-1 model. During operation, each trained KNN model can determine whether the input training feature can be handed over to the corresponding DNN model for processing based on the Euclidean distance algorithm, that is, the k neighboring feature points closest to the training feature in the input KNN model can be calculated based on the Euclidean distance algorithm, and based on the category labels of the above k neighboring feature points, it is determined whether the input training feature can be processed by the DNN model corresponding to the KNN model. If the number of labels processed by the DNN model corresponding to the KNN model among the category labels of the k neighboring feature points is greater than the number of labels not processed by the DNN model, the training feature is handed over to the DNN model for processing.

[0063] Based on the above method, each KNN model can schedule its corresponding DNN model for processing according to the category label of the input training feature, thereby reducing the execution time of the task and improving the overall accuracy of the prediction model for image recognition.

[0064] In addition, when the KNN model in the prediction model does not schedule the corresponding DNN model to perform the target task, the target task can be transmitted to the cloud computing center so that the cloud computing center can select the inference model on the edge node to perform the target task. That is, when the features of the input image have traversed all KNN models and still cannot find the corresponding DNN model for processing, the features of the image are transmitted to the cloud computing center, and the cloud computing center selects the DNN model for calculation. In addition, the image prediction results can also be obtained based on the user's declared preferences or by using a pre-specified inference model for inference.

[0065] In this embodiment, the performance index of the prediction model is verified based on the 10-fold cross validation method. The images to be verified are divided into ten sets, one of which is used as a test set, and the remaining nine are used as training sets. This process is repeated 10 times so that each of the ten subsets is used as a test set exactly once. This standard method evaluates the generalization ability of the machine learning model.

[0066] Define the performance indicators to be evaluated, which include at least one of the inference time, energy consumption of the prediction model, accuracy, precision, recall, and F1 score. And they are defined as:

[0067] 1) Inference time t refers to the time between a model input time t0 and the model generating output t1. The smaller the inference time t, the higher the benefit of the prediction model. Its mathematical expression is:

[0068] t=t1-t0.

[0069] 2) The energy consumption of the prediction model includes its energy consumption, which deducts the static power used by the hardware when the system is idle. The lower the energy consumption, the better the performance of the prediction model.

[0070] 3) Accuracy refers to the ratio of correctly labeled images to the total number of test images. The higher the accuracy, the better the performance of the prediction model.

[0071] 4) Precision refers to the ratio of correctly predicted images to the total number of images predicted to have a specific object. The higher the precision, the better the performance of the prediction model.

[0072] 5) Recall refers to the ratio of correctly predicted images to the total number of test images belonging to a certain object category. The higher the recall, the better the performance of the prediction model.

[0073] 6) The F1 score is the weighted average of precision and recall. The higher the F1 score, the better the performance of the prediction model. Its calculation formula is:

[0074]

[0075] like Fig. 9 As shown, a cloud-edge collaborative scheduling device based on multi-type intelligent models according to a preferred embodiment of the present invention is introduced.

[0076] In an embodiment of the present invention, a cloud-edge collaborative scheduling device based on multi-type intelligent models includes a construction module 201 and a scheduling module 202 .

[0077] A construction module 201 is used to construct a prediction model, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes;

[0078] The scheduling module 202 is used to schedule the corresponding inference model to execute the target task based on the selection model in the prediction model.

[0079] The construction module 201 is also used to: construct a training feature set, wherein the training feature set includes M training features; input the training feature set into a preset inference model set, and determine the N inference models for constructing the prediction model alternately based on the inference time and the inference accuracy; based on the N inference models, mark category labels for the M training features, wherein the category labels represent the optimal inference model corresponding to the training features; use the training feature set as input, select the target training features of the corresponding inference models from the N selection models as training targets, and train the N selection models until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

[0080] The construction module 201 is also used to: construct a first candidate feature set; based on the Pearson product point correlation parameter matrix, screen the features in the first candidate feature set whose sampling values ​​are within a preset range to construct a second candidate feature set; calculate the first prediction accuracy of the prediction model for the second candidate feature set; eliminate one candidate feature from the second candidate feature set in turn, and calculate the second prediction accuracy of the prediction model for the second candidate feature set from which the one candidate feature is eliminated; based on the difference between the first prediction accuracy and the second prediction accuracy, determine whether to delete the corresponding features in the second candidate feature set to construct a training feature set.

[0081] The construction module 201 is also used to: input the training feature set into the inference models in the preset inference model set respectively; determine an inference model to be added to the prediction model based on the inference time or inference accuracy of the inference model, and delete the determined inference model from the preset inference model set; determine the candidate inference model of the prediction model based on the inference time and inference accuracy of the inference model alternately, and determine whether to add the candidate inference model to the prediction model based on the inference time and / or inference accuracy of the prediction model.

[0082] The construction module 201 is also used to: input the training feature set into the first inference model, and determine the training features selected by the first inference model based on the inference time and / or the inference accuracy; input the remaining training features in the training feature set into the second inference model, and determine the training features selected by the second inference model based on the inference time and / or the inference accuracy, wherein the second inference model is connected after the first inference model; repeat the above steps until the N inference models select corresponding training features in sequence; and mark category labels for the M training features based on the training features selected by the N inference models respectively.

[0083] The scheduling module 202 is also used to: when the selection model in the prediction model does not schedule the corresponding inference model to execute the target task, transmit the target task to the cloud computing center so that the cloud computing center can select the inference model on the edge node to execute the target task.

[0084] Fig.10 FIG. 1 shows a hardware structure diagram of an electronic device 30 for cloud-edge collaborative scheduling based on multi-type intelligent models according to an embodiment of the present specification. Fig.10As shown, the electronic device 30 may include at least one processor 301, a memory 302 (e.g., a non-volatile memory), a memory 303, and a communication interface 304, and the at least one processor 301, the memory 302, the memory 303, and the communication interface 304 are connected together via a bus 305. At least one processor 301 executes at least one computer-readable instruction stored or encoded in the memory 302.

[0085] It should be understood that the computer executable instructions stored in the memory 302, when executed, cause at least one processor 301 to perform the above combined operations in various embodiments of the present specification. Figure 1-8 Describes the various operations and functions.

[0086] In the embodiments of the present specification, the electronic device 30 may include, but is not limited to, personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronic devices, and the like.

[0087] According to one embodiment, a program product such as a computer-readable storage medium is provided. The computer-readable storage medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a computer, causes the computer to perform the above-mentioned combination of various embodiments of this specification. Figure 1-8 Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the instructions stored in the readable storage medium.

[0088] According to the cloud-edge collaborative scheduling method and application based on multi-type intelligent models according to the implementation mode of the present invention, combined with the compression model method, the function of adaptively selecting multiple DNN models for image recognition is realized; and the eigenvalues ​​are extracted based on the relevant parameter matrix to improve the recognition effect of the prediction model; the model selection method based on the coexistence of multiple DNNs improves the overall accuracy of the prediction model for image processing applications; at the same time, the model evaluation method based on multiple indicators effectively verifies the generalization ability of the prediction model.

[0089] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0090] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0093] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.

Claims

1. A cloud-edge collaborative scheduling method based on multi-type intelligent models, applied to a cloud-edge collaborative system, wherein the cloud-edge collaborative system includes a cloud computing center and multiple edge nodes. It is characterized in that The method comprises: Constructing a prediction model, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes; Scheduling the corresponding inference model based on the selection model in the prediction model to execute the target task; Wherein, constructing the prediction model comprises: Constructing a training feature set, wherein the training feature set includes M training features; Input the training feature set into a preset inference model set, and determine N inference models for constructing the prediction model alternately based on inference time and inference accuracy; Based on the N inference models, labeling the M training features with category labels, wherein the category labels represent the optimal inference models corresponding to the training features; The training feature set is used as input, and the target training features of the corresponding inference models are respectively selected by the N selection models as training targets, and the N selection models are trained until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

2. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that Construct a training feature set, including: Constructing a first candidate feature set; Based on the Pearson product point correlation parameter matrix, the features in the first candidate feature set whose sampling values ​​are within a preset range are screened to construct a second candidate feature set; Calculating a first prediction accuracy of the prediction model for the second candidate feature set; Eliminate one candidate feature from the second candidate feature set in turn, and calculate a second prediction accuracy rate of the prediction model for the second candidate feature set from which the one candidate feature is eliminated; Based on the difference between the first prediction accuracy and the second prediction accuracy, it is determined whether to delete the corresponding features in the second candidate feature set to construct a training feature set.

3. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that The training feature set is input into a preset inference model set, and N inference models for constructing the prediction model are determined alternately based on the inference time and the inference accuracy, specifically including: Inputting the training feature sets into the inference models in the preset inference model set respectively; Based on the inference time or inference accuracy of the inference model, determine an inference model to add to the prediction model, and delete the determined inference model from the preset inference model set; Determine candidate inference models of the prediction model alternately based on the inference time and the inference accuracy of the inference model, and determine whether to add the candidate inference model to the prediction model based on the inference time and / or the inference accuracy of the prediction model.

4. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that Based on the N inference models, labeling category labels for the M training features specifically includes: Inputting the training feature set into a first reasoning model, and determining the training features selected by the first reasoning model based on reasoning time and / or reasoning accuracy; Inputting the remaining training features in the training feature set into a second reasoning model, and determining the training features selected by the second reasoning model based on the reasoning time and / or the reasoning accuracy, wherein the second reasoning model is connected after the first reasoning model; Repeat the above steps until the N inference models select corresponding training features in sequence; Based on the training features respectively selected by the N inference models, the M training features are marked with category labels.

5. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that The method further comprises: Based on a k-fold cross validation method, the performance indicators of the prediction model are verified, wherein the performance indicators include at least one of the inference time, energy consumption of the prediction model, accuracy, precision, recall rate, and F1 score.

6. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that When the selection model in the prediction model does not schedule the corresponding reasoning model to perform the target task, the method further includes: The target task is transmitted to the cloud computing center so that the cloud computing center selects an inference model on an edge node to execute the target task.

7. The cloud-edge collaborative scheduling method based on multi-type intelligent models as claimed in claim 1, It is characterized in that The inference model is a DNN model, and the selection model is a KNN model.

8. A cloud-edge collaborative scheduling device based on multi-type intelligent models, It is characterized in that The device comprises: A construction module, used to construct a prediction model, wherein the prediction model includes N inference models and corresponding N selection models respectively deployed on N edge nodes; A scheduling module, used for scheduling the corresponding inference model to execute the target task based on the selection model in the prediction model; Wherein, the building blocks are specifically used for: Constructing a training feature set, wherein the training feature set includes M training features; Input the training feature set into a preset inference model set, and determine N inference models for constructing the prediction model alternately based on inference time and inference accuracy; Based on the N inference models, labeling the M training features with category labels, wherein the category labels represent the optimal inference models corresponding to the training features; The training feature set is used as input, and the target training features of the corresponding inference models are respectively selected by the N selection models as training targets, and the N selection models are trained until the training conditions are met, wherein the target training features are training features marked with inference labels corresponding to the inference models.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and A memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the cloud-edge collaborative scheduling method based on multi-type intelligent models as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the cloud-edge collaborative scheduling method based on multi-type intelligent models as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Cloud edge resource map intelligent scheduling system and scheduling method thereof

    CN112367354A

  • Edge cloud collaborative optimization method based on deep reinforcement learning

    CN113067873A

Cited By

  • A cache-aware size model cloud-edge collaborative multi-task scheduling method

    CN123011406A