An edge collaborative data cleaning system
Patent Information
- Application Number
- CN202211330179.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-10-27
AI Technical Summary
When processing dirty data generated by the Internet of Things, the prior art has problems such as long data transmission time and low real-time cleaning efficiency, especially in the edge computing environment, it is difficult to effectively use large artificial intelligence models for data cleaning.
A distributed edge collaboration framework is proposed, through edge computing dynamic offloading platform and edge collaborative data cleaning method, using logistic regression algorithm and K-means algorithm to collaborate between edge nodes, optimize the data cleaning process, reduce transmission delay and improve Cleaning rate.
It effectively reduces data transmission delay, improves data cleaning rate and accuracy, complies with the bandwidth, storage, computing and load limitations of edge servers, and reduces service latency.
Smart Images

Figure CN115576932B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of computer data processing, and in particular to an edge-coordinated data cleaning system. [Background technology]
[0002] With the rapid development of the Internet of Things, a large number of heterogeneous applications have emerged, generating a large amount of dirty data. How to deal with this dirty data is an urgent problem to be solved.
[0003] One of the processing methods is to directly transmit the generated data to the cloud, where existing machine learning or deep learning methods are used to learn the characteristics of the existing dirty data and then process the dirty data. AI-based data cleaning models can be used in the cloud to clean and explain the causes of abnormal data. However, since such AI models are often large, it is difficult to use this method in edge computing.
[0004] Another solution is a data cleaning algorithm based on cloud-edge collaboration, which has become an emerging trend in IoT applications. Some researchers have proposed a cloud-edge collaborative cleaning algorithm based on federated learning, which achieves data cleaning without affecting data privacy based on the federated data cleaning framework. Some researchers have also proposed the Learn2Clean method, which is a model-free reinforcement learning strategy that finds an ideal task sequence for data preprocessing of a specific data set. Joint data cleaning methods based on infectious disease models can also improve data cleaning rates. In this type of algorithm, no aggregation server or any other central component is required. However, even if part of the data is migrated to the edge node and a large amount of data is uploaded to the cloud server, there are still problems such as long transmission time and low efficiency of real-time data cleaning.
[0005] Different from the above methods, this paper proposes a distributed edge collaboration framework, where all data is uploaded to the edge server for processing, reducing data transmission delay. At the same time, the limitations of edge server bandwidth, storage, computing, and load are taken into consideration, and the edge collaboration training cleaning model is used to improve the data cleaning rate while reducing service delays, providing cleaning accuracy and efficiency. [Summary of the invention]
[0006] To solve the above problems, an edge collaborative data cleaning system is proposed;
[0007] An edge collaborative data cleaning system includes an edge computing dynamic unloading platform and an edge collaborative data cleaning method, wherein the dynamic unloading platform includes a data source layer and an edge collaboration layer; the data source layer is a plurality of Internet of Things devices and a task architecture, and the Internet of Things devices and the task architecture include a plurality of edge node initial positions, edge node final positions, and base stations; the edge collaboration layer is a plurality of edge nodes, and in the edge collaboration, every four edge nodes 1, edge node 2, edge node 3, and edge collaboration point 4 constitute a group of edge update models;
[0008] Furthermore, the data source layer unloads the data to different edge nodes of the edge collaboration layer, and the edge nodes train the data cleaning model based on the received data and the logistic regression algorithm.
[0009] Furthermore, the edge nodes 1, 2 and 3 of the edge collaboration layer transmit their parameter matrices M1, M2 and M3 to the edge node 4 at time t, and the node 4 receives the model parameters.
[0010] Furthermore, the edge node 4 of the edge collaboration layer is based on the formula Update the model and send the updated parameter model back to other nodes.
[0011] Furthermore, an edge collaborative data cleaning method includes the following steps:
[0012] 1) The input is a two-dimensional matrix of the network topology, the accuracy tolerance δ, and the maximum number of offloaded tasks of the edge node R. Then the edge collaborative data cleaning algorithm is adopted, and the algorithm is as follows:
[0013] 2) First, the initial position of the edge node is calculated based on the K-means algorithm.
[0014] 3) For each edge node, the average accuracy ACCave of all edge nodes is calculated using the logistic regression algorithm.
[0015] 4) For each task, calculate the edge nodes that are closest to the task and account for 1 / 2 of the total number, and arrange them in ascending order of distance.
[0016] 5) Then calculate the accuracy ACCk value when unloading the task to the edge node Ck. If |ACCk-ACCave|<δ and the edge constraint is met, the task is unloaded to the Ck node.
[0017] 6) Finally, update the clustering results of the edge layer and the cleaning rate of each category.
[0018] Preferably, the edge collaborative data cleaning method can calculate the average cleaning rate of each edge node based on the new clustering result.
[0019] Preferably, the edge nodes of the edge collaboration layer can randomly select and transmit training parameters to n adjacent nodes based on the Goosip algorithm.
[0020] Preferably, the edge node that receives the parameters updates the model and recalculates the cleaning rate. If the updated parameters make the cleaning rate lower than the cleaning rate before receiving the parameters, the parameters are rolled back to the original parameters. If the difference between the updated cleaning rate and the cleaning rate before receiving the parameters is within an allowable range, the edge node model and parameters are updated.
[0021] Preferably, in step 5 of the edge collaborative data cleaning method, if |ACCk-ACCave|<δ does not satisfy the edge constraint, the task is offloaded to the edge node with the lowest transmission delay.
[0022] Furthermore, the present invention also includes a method for further improving the data cleaning rate, wherein the method is:
[0023] 1) In one update cycle, the average precision based on each class and the whole system is calculated.
[0024] 2) For each edge node in a category, select and transfer the training parameters of that category to other edge nodes. After the parameter transmission is completed, observe the changes in the accurate values of the training models of other edge nodes.
[0025] 3) If the change is within the system tolerance range δ, the condition is met and the accuracy of the model is updated. Otherwise, the original training parameters are returned; finally, the data cleaning rate after joint training is output.
[0026] Compared with the prior art, the present invention has many advantages and beneficial effects, which are specifically embodied in the following aspects:
[0027] 1) Compared with the existing cloud-edge collaborative data cleaning algorithm, it takes into account the limitations of edge server bandwidth, storage, computing, and load, and is more in line with actual scenarios.
[0028] 2) Compared with the existing centralized data cleaning algorithm, the method of updating the parameters of the model through edge joint training can improve the data cleaning rate.
[0029] 3) Taking into account the advantages of edge service placement, the transmission delay of the underlying equipment is structurally reduced, and the total processing time is significantly better than completely offloading the cleaning task to the cloud or cloud-edge collaboration.
Brief Description of the Drawings
[0030] Figure 1This is a schematic diagram of the edge computing dynamic offloading platform of the present invention;
[0031] Figure 2 It is a schematic diagram of the unloading relationship of the data layer Internet of Things tasks under different circumstances of the present invention;
[0032] Figure 3 It is a schematic diagram of the relationship between edge collaboration layers of the present invention;
[0033] Figure 4 It is the algorithm flow chart of the present invention;
[0034] Figure 5 This is a comparison chart of the average accuracy of several algorithms;
[0035] Figure 6 The following is a comparison chart of the average delay of several edge nodes with different numbers. [Specific implementation method]
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0037] An edge collaborative data cleaning system is designed for dirty data generated by a large number of IoT devices. According to the limitations of edge server bandwidth, storage, computing, and load, the placement of edge servers is considered first, and IoT devices are clustered to different edge servers to reduce the latency of data transmission from the device to the edge server. Each edge server is trained based on the collected data, and multi-edge joint training is performed according to the accuracy requirements of the system, and the model is iteratively updated, thereby improving the model accuracy while reducing the system transmission latency.
[0038] As attached Figure 1 As shown in the figure, there are many IoT devices and tasks in the data source layer. According to the size of the task and the limitation of the edge device, the task is offloaded to the appropriate edge node in the edge collaboration layer. At the same time, the edge node cooperates with each other based on the data it receives, and trains the data cleaning model according to the logistic regression algorithm. The joint training improves the data cleaning rate.
[0039] As attached Figure 2 As shown in the figure, assuming there are 3 tasks, each with different task sizes, and different initial data cleaning rates when using the same algorithm, the delay of task upload is positively correlated with the number of hops through the base station. The higher the number of base stations passed, the greater the transmission delay. In the figure, white represents the initial edge node position, and yellow represents the relocated edge node position. When user tasks are unloaded to edge nodes at different locations, the total processing experiment and average accuracy of the entire system are different.
[0040] Then, the edge collaboration layer is as follows Figure 3 As shown, edge nodes 1, 2, and 3 transmit their parameter matrices M1, M2, and M3 to edge node 4 at time t. Edge node 4 receives the model parameters and then calculates the matrix according to the formula Update its model and send the updated parameter model back to other nodes.
[0041] As attached Figure 4 The algorithm flow chart shown,
[0042] Input: Input the two-dimensional matrix of the network topology, delay tolerance δ, the maximum number of offloaded tasks R of the edge node, and calculate the initial position of the edge node based on the K-means algorithm.
[0043] 1. For each edge node, use the logistic regression algorithm to calculate the accuracy of the model, and calculate the average accuracy of all edge nodes ACCave
[0044] 2.for (each task)
[0045] 3. Calculate the edge nodes that are closest to the task, accounting for 1 / 2 of the total number, and arrange them in ascending order of distance 4. Calculate the accuracy ACCk when offloading the task to the edge node Ck
[0046] 5. If(|ACCk-ACCave|<δ&&|Ck| <R)
[0047] 6. The task is offloaded to the Ck node
[0048] 7. Else
[0049] 8. The task is removed from the Ck node and offloaded to the edge node with the lowest transmission delay
[0050] 9. End if
[0051] 10. Update the clustering results and data cleaning rate of the edge layer
[0052] 11.End for
[0053] Output: clustering results and data cleaning rate for each category.
[0054] At the same time, we use several different algorithms for comparison. Proposed is the edge-coordinated data cleaning algorithm proposed in this paper, FedLR and ABOD are cloud-edge collaborative cleaning algorithms, and Learn2clean is a cleaning algorithm based on cloud servers. Figure 5 and Figure 6From the comparison results shown, it can be seen that the data cleaning algorithm proposed in the present invention has the highest accuracy and the lowest delay rate.
[0055] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An edge collaborative data cleaning system, including an edge computing dynamic offloading platform and an edge collaborative data cleaning method. The dynamic offloading platform includes a data source layer and an edge collaboration layer; the data source layer is several Internet of Things devices and a task architecture, and the Internet of Things devices and the task architecture include several initial positions of edge nodes, final positions of edge nodes, and base stations; the edge collaboration layer includes several edge nodes, and every 4 edge nodes among the edge nodes, namely edge node 1, edge node 2, edge node 3, and edge collaboration point 4, form a group of edge update models. The data source layer offloads data to different edge nodes in the edge collaboration layer, and the edge nodes train a data cleaning model based on the received data and then based on the logistic regression algorithm. The edge collaborative data cleaning method includes the following steps: 1) Input a two-dimensional matrix of the network topology structure, an accuracy tolerance δ, and the maximum number of offloaded tasks R of edge nodes, and then adopt the edge collaborative data cleaning algorithm. 2) Calculate the initial positions of edge nodes based on the K-means algorithm. 3) For each edge node, calculate the average accuracy ACCave of all edge nodes using the logistic regression algorithm. 4) For each task, calculate the edge nodes that are the closest to the task and account for 1 / 2 of the total number, and sort them in ascending order of distance. 5) Then, calculate the value of the accuracy ACCk when offloading the task to edge node Ck in sequence. If |ACCk - ACCave| < δ and |Ck| < R are satisfied, then the task is offloaded to node Ck. 6) Finally, update the clustering result of the edge layer and the cleaning rate of each class.
2. The edge collaborative data cleaning system according to claim 1, characterized in that: At time t, edge node 1, edge node 2, and edge node 3 in the edge collaboration layer transmit their model parameter matrices M1, M2, and M3 to edge node 4 respectively. Edge node 4 updates the model based on the received model parameters and transmits the updated parameter model back to other nodes.
3. The edge-coordinated data cleaning system according to claim 1, characterized in that: For the edge collaborative data cleaning method, the method can calculate the average cleaning rate of each edge node based on the new clustering result.
4. The edge-coordinated data cleaning system according to claim 1, characterized in that: The edge nodes in the edge collaboration layer can randomly select to transmit training parameters to n adjacent nodes based on the Goosip algorithm.
5. The edge-coordinated data cleaning system according to claim 1, characterized in that: After receiving the parameters, the edge node updates the model and recalculates the cleaning rate. If the updated parameters result in a cleaning rate lower than the cleaning rate before receiving the parameters, then roll back to the original parameters. If the difference in the updated cleaning rate and the cleaning rate before receiving the parameters is within an allowable range, then update the model and parameters of the edge node.
6. The edge-coordinated data cleaning system according to claim 1, characterized in that: In step 5) of the edge collaborative data cleaning method, if |ACCk - ACCave| < δ and |Ck| < R are not satisfied, then offload the task to the edge node with the lowest transmission delay.
7. The edge-coordinated data cleaning system according to claim 1, characterized in that: The edge update model also includes a method for further improving the data cleaning rate. The steps of the method are as follows: 1) Calculate the average accuracy based on each class and the entire system within an update cycle. 2) For each edge node in a category, select and transfer the training parameters of that category to other edge nodes. After the parameter transfer is completed, observe the changes in the accurate values of the training models of other edge nodes. 3) If the change is within the system's allowable accuracy range δ, the condition is met and the accuracy of the model is updated; otherwise, the original training parameters are returned; finally, the data cleaning rate after joint training is output.
Citation Information
Patent Citations
LTE power wireless private network task unloading and resource allocation method based on cloud side cooperation
CN111585916A
Industrial internet task unloading strategy based on edge computing
CN113660325A
