Data cleaning method and data cleaning device
By generating a set of constraints and monitoring information, and setting a quality mark based on the data change rate, the problem of lack of production background information in data cleaning in the existing technology is solved, and the reliability and accuracy of data analysis are improved.
Patent Information
- Application Number
- CN202111628053.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-28
AI Technical Summary
Existing data cleaning methods lack production background information, resulting in poor rationality of data analysis models and low reliability of results. They also rely on the subjective rules and contingency of data engineers and fail to effectively reflect the production process and working conditions of the data source.
A data cleaning method and device are provided. By generating a constraint set, the data of the data collection equipment is filtered, and the quality mark is set according to the monitoring information and data change rate. The production process and working conditions are considered in real time, and the production background information is integrated.
It improves the reliability of data cleaning results and the accuracy of data analysis, ensuring the practicality of subsequent data modeling and the reliability of analysis results.
Smart Images

Figure CN114238305B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a data cleaning method and a data cleaning device for implementing the method. Background Art
[0002] With the advancement of enterprise informatization, intelligent applications based on big data, machine learning, and artificial intelligence are increasingly being used in the industrial field. Data cleaning is a crucial link in data processing. The cleaned data largely determines the accuracy of the results of subsequent data analysis. Low-quality data leads to low-quality data analysis and even wrong decisions. The current data cleaning method is generally for data engineers to use general rules and visualization algorithms to process the collected data, which is not very accurate. Summary of the invention
[0003] One aspect of the present disclosure provides a data cleaning method for a data acquisition device in an industrial system. The data cleaning method includes: generating a constraint set for filtering data collected by the data acquisition device; and performing the following operations in each predefined time interval: receiving data collected by the data acquisition device in the predefined time interval and monitoring information generated by the monitoring device of the data acquisition device in the predefined time interval; determining whether there is an abnormality in the data collection of the data acquisition device in the predefined time interval according to the monitoring information; in the case of an abnormality, setting the quality identifier of the data to low quality; in the case of no abnormality, determining whether the data satisfies each constraint in the constraint set; in the case of the data not satisfying any constraint in the constraint set, setting the quality identifier of the data to low quality; in the case of the data satisfying each constraint in the constraint set, according to whether the change rate of the data relative to the data collected by the data acquisition device in the previous predefined time interval exceeds the predefined change rate threshold, setting the quality identifier of the data to intermediate quality or high quality; and storing the data and the quality identifier in association.
[0004] Another aspect of the present disclosure also provides a data cleaning device for a data acquisition device in an industrial system. The data cleaning device includes: a constraint set generation module, a communication module, a processing module and a storage module. The constraint set generation module is configured to generate a constraint set for filtering the data collected by the data acquisition device. The communication module is configured to receive the data collected by the data acquisition device in the predefined time interval and the monitoring information generated by the monitoring device of the data acquisition device in the predefined time interval in each predefined time interval. The processing module is configured to perform the following operations in each predefined time interval: determine whether there is an abnormality in the data collection of the data acquisition device in the predefined time interval according to the monitoring information; if there is an abnormality, set the quality mark of the data to low quality; if there is no abnormality, determine whether the data satisfies each constraint in the constraint set; if the data does not satisfy any constraint in the constraint set, set the quality mark of the data to low quality; if the data satisfies each constraint in the constraint set, set the quality mark of the data to medium quality or high quality according to whether the change rate of the data relative to the data collected by the data acquisition device in the previous predefined time interval exceeds the predefined change rate threshold. The storage module is configured to store the data and the quality indicator in association with each other. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The aspects, features and advantages of the present disclosure will become clearer and easier to understand through the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0006] Figure 1A is a schematic diagram of an application scenario of a data cleaning method and device according to an embodiment of the present disclosure;
[0007] Figure 1B is an example industrial system in which the data cleaning method according to an embodiment of the present disclosure is implemented.
[0008] Figure 2 is a flow chart of a data cleaning method according to an embodiment of the present disclosure;
[0009] Figure 3 is a flow chart of a data cleaning method according to another embodiment of the present disclosure;
[0010] Figure 4 is a flow chart of a data cleaning method according to another embodiment of the present disclosure;
[0011] Figure 5 is a block diagram of a data cleaning device according to an embodiment of the present disclosure;
[0012] Figure 6 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0013] The present disclosure will be described in detail below with reference to exemplary embodiments of the present disclosure. However, the present disclosure is not limited to the embodiments described herein, and it can be implemented in many different forms. The described embodiments are only used to make the present disclosure thorough and complete, and to fully convey the concept of the present disclosure to those skilled in the art. The features of the various embodiments described can be combined or replaced with each other, unless explicitly excluded or should be excluded according to the context.
[0014] As mentioned above, the current data cleaning method is generally for data engineers to use general rules such as regression, binning, and clustering to process the generated data. On the one hand, these general rules themselves are subjective and accidental, and the rules selected by data engineers may not be suitable for the data they process. On the other hand, because data engineers only face the final data and do not understand the production process and working conditions of the data source, factors related to the production process and working conditions are not included in the data cleaning process. This results in the current data cleaning lacking production background information and not reflecting the production process and working conditions, which in turn leads to poor rationality and poor practicality of the subsequent data analysis model, and low reliability of the data analysis results.
[0015] The embodiments of the present disclosure provide a data cleaning method and a data cleaning device. The data cleaning method performs quality classification of field data synchronously with the real-time collection of field data, and sets a quality mark indicating its quality level for the collected field data for use in subsequent data modeling and data analysis. In the data cleaning method according to the embodiments of the present disclosure, the production process and working conditions of the collection object (i.e., the field process unit) of the data collection equipment are considered in real time as factors for setting the quality mark, so that the production background information is included in the result of data cleaning, thereby making the subsequent data modeling more practical and the result of data analysis more reliable.
[0016] Figure 1A It is a schematic diagram of an application scenario of the data cleaning method and device according to an embodiment of the present disclosure.
[0017] refer to Figure 1AIn a specific industrial system, there are multiple on-site process units. For example, in an industrial system for sewage treatment process, there are on-site process units such as water inlet main pipe, water inlet gate, coarse screen pool, fine screen pool, booster pump, press, sand settling tank, blower, deodorization pipe, anoxic tank, aerobic tank, sedimentation tank, various pumps, etc. These on-site process units are collectively referred to as acquisition objects 110 in this article. The acquisition object 110 can be equipped with one or more data acquisition devices 120 to collect the on-site data generated by the acquisition object 110 during the process. The data acquisition device 120 can be an instrument such as a pressure gauge, a liquid level meter, a flow meter, an ammeter, a voltmeter, a magnetometer, etc., or other equipment with data acquisition function. The acquisition object 110 and the data acquisition device 120 are connected to the corresponding monitoring device 130. The monitoring device 130 may include but is not limited to a programmable logic controller (PLC), a supervisory control and data acquisition control system 150 (SCADA), or a combination thereof. The monitoring device 130 controls various types of acquisition objects 110 in a digital manner by storing instructions for executing logical operations, sequence control, timing, counting, faults, alarms, etc. for the acquisition objects 110 and the data acquisition devices 120, or controls the acquisition objects 110 in an analog manner by arranging electronic circuits for executing these operations. The monitoring device 130 can generate monitoring information to record information such as timing, counting, faults, alarms, etc. that occur during monitoring with the acquisition objects 110, the data acquisition devices 120, and devices that have a linkage relationship with the acquisition objects 110 (for example, another acquisition object 110).
[0018] like Figure 1A As shown, the data cleaning device 140 according to the embodiment of the present disclosure communicates with the monitoring device 130 via the field Ethernet. The communication is based on the OLE for Process Control (OPC) protocol for controlling the process. The OPC protocol defines the interface between the monitoring device 130 and the data cleaning device 140, and coordinates the communication operations such as accessing real-time data, monitoring alarms and events, accessing historical data and other applications between them. The data cleaning device 140 can be integrated into a computer, a server, an intelligent device, etc. The data processed by the data cleaning device 140 is provided with a quality mark to provide a reference basis for further analysis of the data. The data cleaning device 140 can display the cleaning results to the user through a human-machine interface or other devices with display functions that communicate with it.
[0019] Figure 1Bis an example industrial system in which the data cleaning method according to an embodiment of the present disclosure is implemented.
[0020] To more conveniently describe the data cleaning method according to the embodiment of the present disclosure, Figure 1B An example industrial system is shown. Figure 1B As shown, the example industrial system includes the equivalent of Figure 1A The collection object 110 in the sedimentation tank 110 used in the sewage treatment process is equivalent to Figure 1A The data acquisition device 120 includes a sludge thickness meter 120 for measuring the sludge thickness in the sedimentation tank 110, a sewage pump 160 for pumping the sewage to be treated to the sedimentation tank 110, and a dosing pump 170 for pumping the precipitant to the sedimentation tank. Figure 1B The example industrial system shown is used to illustrate the data cleaning method according to an embodiment of the present disclosure.
[0021] Figure 2 It is a flowchart of a data cleaning method 200 according to an embodiment of the present disclosure.
[0022] refer to Figure 2 According to the embodiment of the present disclosure, the data cleaning method includes steps S210-S240.
[0023] In step S210, a constraint set U is generated for filtering the data PV collected by the data collection device 120, which may include one or more constraints. These constraints include, but are not limited to, constraints determined based on the device characteristics of the data collection device 120, constraints determined based on the device characteristics of the collection object 110 of the data collection device 120, or constraints determined based on the influence of a device having a linkage relationship with the collection object 110 on the collection object 110.
[0024] by Figure 1B The example industrial system shown in the figure is used as an example. Generate a constraint condition set U = {U1, U2..., U k}, (k≥1). The constraint set U may include a constraint U1 determined according to the equipment characteristics of the sludge thickness meter 120. For example, U1 may be the range of the sludge thickness meter 120. This range is considered as a factor for setting the quality level of the data PV. When the data PV exceeds the range, the data PV is regarded as low-quality data. The constraint set U may also include a constraint U2 determined according to the equipment characteristics of the sedimentation tank 110. For example, U2 may be the maximum thickness of the sludge that the sedimentation tank 110 can accommodate. This maximum thickness is considered as a factor for setting the quality level of the data PV. When the data PV exceeds the maximum thickness, the data PV is regarded as low-quality data. The constraint set U may also include a constraint U3 determined according to the influence of the equipment that has a linkage relationship with the sedimentation tank 110 on the sedimentation tank. For example, according to the function of the sedimentation tank 110 in the sewage treatment process, it needs to mix sewage and precipitant to react. The sludge thickness of the sedimentation tank 110 is mainly affected by the amount of sewage pumped to it by the sewage pump 160 and the amount of precipitant pumped to it by the dosing pump 170. The sewage pump 160 and the dosing pump 170 can be called devices that are linked to the sedimentation tank 110. The constraint condition U3 can be a maximum value as a function of the maximum sewage volume pumped by the sewage pump 120 and the maximum sedimentation volume pumped by the dosing pump 170. This maximum value is considered as a factor for setting the quality level of the data PV. When the data PV exceeds this maximum value, the data PV is regarded as low-quality data.
[0025] The constraints U1, U2 and U3 described above are merely examples for illustration, and different constraint sets may be generated for different industrial systems or different data acquisition devices 120 within the industrial system. In other words, the constraint set depends on the function of the acquisition object 110 in a specific process.
[0026] The generation of the constraint condition set U according to the embodiment of the present disclosure can be automatically generated by a device with a computing function (e.g., a data cleaning device). For example, the functional parameters of the relevant equipment (e.g., the data acquisition device 120, the acquisition object 110, and the equipment having a linkage relationship with the acquisition object 110) can be extracted from the functional design file and the interlocking control file of the industrial system, and the constraint condition set can be generated based on these functional parameters.
[0027] After the constraint set U is generated, steps S215 to S240 are performed every predefined time interval Δt. The length of the predefined time interval Δt can be determined based on the desired data analysis accuracy. Figure 1B In the example shown, the predefined time interval Δt is set to 1 second.
[0028] In step S215, the data (e.g., PV1, PV2, PV3, ..., PV4) collected by the data collection device 120 within a predefined time interval Δt (e.g., 0-1 seconds, 1-2 seconds, 3-4 seconds, ..., n-1-n seconds, etc.) is received. n-1 PV n etc.) and the monitoring information (eg, M1, M2, M3, ..., M n-1 、M n wait).
[0029] by Figure 1B Take the example industrial system shown in the figure as an example. For example, at the nth predefined time interval Δt n (i.e., the period from n-1 to n seconds), receiving the data PV collected by the sludge thickness meter 120 during this period n and monitoring information M generated by the control device 130 during this period n .
[0030] In step S220, according to the monitoring information M n Determine the n Whether there is an abnormality in the data collection of the internal data collection device 120. If there is an abnormality, the method 200 proceeds to step S230 to convert the data PV n Quality mark F n Set to low quality F L .
[0031] by Figure 1B Take the example industrial system shown in the figure as an example. According to the monitoring information M generated in the n-1 to n seconds n Determine the PV of 120 pairs of data of the sludge thickness meter during this period n Whether there is an abnormality in the collection, it may include: n Determine whether there is an abnormality in the sedimentation tank 110, the sludge thickness meter 120, the sewage pump 160 and the dosing pump 170, and if there is an abnormality, the data PV n Quality mark F n Set to low quality F L .
[0032] For example, when monitoring information M n When an alarm for at least one of the sedimentation tank 110, the sludge thickness meter 120, the sewage pump 160, and the dosing pump 170 is triggered within the predefined time interval, it can be determined that an abnormality exists, and the quality indicator F n Set to low quality F LFor example, when the sludge thickness meter 120 fails, the control device 130 will trigger a corresponding alarm to notify the staff to repair it. The sludge thickness meter 120 may still collect data after the alarm, but the data is irrelevant to the production process. Therefore, if the monitoring information M n Indicates that at a predefined time interval Δt n If an alarm for the sludge thickness meter 120 is triggered within a predefined time interval Δt, it can be determined that the sludge thickness meter 120 is n Internal data PV n There is an abnormality in the collection of data PV n Quality mark F n Set to low quality F L .
[0033] For example, when the monitoring information M n Instruct the sedimentation tank 110, the sludge thickness meter 120, the sewage pump 160 and the dosing pump 170 to operate at a predefined time interval Δt n In the case where the sedimentation tank 110 is in a maintenance state, it can be determined that an abnormality exists. For example, it may be necessary to suspend sewage treatment to flush the sedimentation tank 110, and the sedimentation tank 110 may be automatically or manually placed in a maintenance state. n The maintenance status flag is included to indicate whether the sedimentation tank 110 is placed in a maintenance state. For example, when the maintenance status flag is 1, it indicates that the sedimentation tank 110 is in a maintenance state, and when the maintenance status flag is 0, it indicates that the sedimentation tank 110 is not in a maintenance state. The sludge thickness meter 120 may still collect data after the sedimentation tank is placed in a maintenance state, but the data is irrelevant to the production process. Therefore, if the predefined time interval Δt n Monitoring information within M n indicates that the sedimentation tank 110 is in maintenance state, then it can be determined that the sludge thickness meter 120 is within the predefined time interval Δt n Internal data PV n There is an abnormality in the collection of data PV n Quality mark F n Set to low quality F L .
[0034] For another example, it is also considered that due to the need to suspend the sewage treatment process to flush the sedimentation tank 110, the sewage pump 160 stops pumping sewage to the sedimentation tank 110 and is replaced by the clean water pump ( Figure 1B (not shown) pumps clean water to the sedimentation tank 110. At this time, the operation state of the sewage pump 160 is stopped, and the operation state of the clean water pump is running. nThe first operating state flag of the sewage pump and the second operating state flag of the clean water pump are included to indicate the operating state of the sewage pump 160 and the clean water pump. For example, when the first operating state flag is 1 and the second operating state flag is 0, it is set to indicate that the sewage pump 160 is in a stopped state and the clean water pump is in an operating state. The sludge thickness meter 120 may still collect data during the flushing of the sedimentation tank 110, but the data is not related to the production process. Therefore, if the predefined time interval Δt n Monitoring information within M n Indicates that the sewage pump 160 is in a stopped state and the clean water pump is in a running state, then it can be determined that the sludge thickness meter 120 is within a predefined time interval Δt n Internal data PV n There is an abnormality in the collection of data PV n Quality mark F n Set to low quality F L .
[0035] For another example, the monitoring information M n The value of the data quality stamp Q defined by the OPC protocol contained in is used as the basis for determining whether there is an abnormality. The data quality stamp Q defined by the OPC protocol is a label that indicates the quality of information data transmitted on a communication link based on the OPC protocol. Its value indicates the quality of the information data and the possible reasons for the occurrence of the quality. For example, the OPC protocol defines that the value of the data quality stamp Q can be 1-35, 64-91, 192-195, 216-219, among which the quality corresponding to 1-35 is "Bad", the quality corresponding to 64-91 is "Uncertain", and the quality corresponding to 192-195 and 216-219 is "Good". For example, Q is 4, which means "Bad, Configuration Error", indicating that the quality of the information data is poor and may be caused by a configuration error in the server. Therefore, when the monitoring information M n When the value of the data quality stamp Q defined by the OPC protocol is within the range of 1 to 35, it can be determined that the sludge thickness meter 120 is within the predefined time interval Δt n Internal data PV n There is an abnormality in the collection of data PV n Quality mark F n Set to low quality F L .
[0036] The above method of determining whether there is an abnormality in the data collection of the data collection device 120 within the predefined time interval based on the monitoring information is only for example and is not restrictive or exhaustive. The specific method of determining whether there is an abnormality in the collection object 110, the data collection device 120 and / or the equipment that has a linkage relationship with the collection object is determined according to the functions and operations of these equipment in the process.
[0037] Returning to step S220, if there is no abnormality, the method 200 proceeds to step S225 to determine whether the data PV satisfies each constraint in the constraint set U. Furthermore, if the data PV does not satisfy any constraint in the constraint set, the method proceeds to step S230 to set the quality indicator F of the data PV to low quality F. L .
[0038] by Figure 1B Taking the example industrial system as an example, if it is determined that there is no abnormality in step S220, the data PV is determined in step S225. n Whether each constraint in the constraint set U is satisfied, such as the exemplary constraints U1 to U3 described above, and in determining the data PV n If any of U1 to U3 is not satisfied, the data PV n Quality mark F n Set to low quality F L For example, U1 is the range of the sludge thickness meter 120, when the data PV n When the range is exceeded, the data PV n Quality mark F n Set to low quality F L Or, for example, U2 is the maximum sludge thickness that the sedimentation tank 110 can accommodate, when the data PV n When the maximum thickness is exceeded, the data PV n Quality mark F n Set to low quality F L Or, for example, U3 is the maximum sludge thickness value determined based on the maximum sewage volume pumped by the sewage pump 120 and the maximum sedimentation volume pumped by the dosing pump 170. n When this maximum value is exceeded, the data PV n Quality mark F n Set to low quality F L .
[0039] Otherwise, in step S225, the data PV is determined n When each constraint in the constraint set U is satisfied, the method 200 proceeds to step S235, and the data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δtn-1 Data collected in PV n-1 The rate of change ρ n Whether it exceeds the predefined change rate threshold ρ T , the data PV n Quality mark F n Set to intermediate quality F M or high quality F H In the case where there is no previous predefined time interval, that is, when the current predefined time interval is the first time interval Δt1, it is determined that the change rate ρ1 does not exceed the predefined change rate threshold ρ T .
[0040] After step S230 or step S235, the method 200 proceeds to step S240 to store the data PV in association with the data n And its quality mark F n .
[0041] Therefore, according to the data cleaning method 200 of the embodiment of the present disclosure, the production process and working conditions of the on-site process unit (i.e., the collection object 110) are incorporated as factors for setting quality identification for the on-site data, and the production background information is integrated into the quality classification of the on-site data, thereby improving the reliability of the data cleaning results.
[0042] In addition, the data cleaning method 200 according to the embodiment of the present disclosure further considers the data change rate when marking the quality of the data, so as to classify the data more finely. Figure 3 and Figure 3 This will be specifically described in the embodiments of the present invention.
[0043] Figure 3 It is a flowchart of a data cleaning method 300 according to another embodiment of the present disclosure.
[0044] refer to Figure 2 and Figure 3 , steps S310, S315, S330, and S350 in method 300 are respectively the same as steps S210, S215, S230, and S240 in method 200. For the sake of simplicity, descriptions of steps S310, S315, S330, S350 and step S350 are not repeated here. The difference between method 300 and method 200 is that, Figure 3 As shown in the dashed box in Figure 2 Correspondingly, in step S235, according to data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 The rate of change of the data collected within n Whether it exceeds the predefined change rate threshold ρ T, the data PV n Quality mark F n Set to Intermediate F L Quantity or high quality F H , further including steps S335~S345.
[0045] like Figure 3 As shown, in step S325 (with Figure 2 The same as S225 in the n When each constraint in the constraint set U is satisfied, the method 300 proceeds to step S335 to determine the data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change ρ n =|(PV n -PV n-1 ) / PV n-1 |Whether it exceeds the predefined change rate threshold ρ T . In ρ n >ρ T In the case of n Quality mark F n Set to intermediate quality F M On the contrary, in ρ n ≤ρ T In the case of n Quality mark F n Set to High Quality F H . Predefine the change rate threshold ρ T It may be determined, for example, based on the characteristics of the equipment of the acquisition object 110 and the accuracy required for data analysis and / or based on the experience of experts in the field.
[0046] Steps S335 to S345 further divide the data that is not of low quality into intermediate quality data and high quality data. Its function is to reflect certain interferences in the process into the data quality mark, which helps to select data more ideally during data analysis. M It represents the current predefined time interval Δt n There may be some interference during the period, which may cause the data PV collected during this period to n Relative to the last predefined time interval Δt n-1 Data collected in PV n-1 The magnitude of the change was greater than expected. Figure 1BTaking the example industrial system shown in the figure as an example, the pumping pressure of the sewage pump 160 is easily disturbed by the start and stop of other pumps adjacent to it (such as other pumps that do not belong to the industrial system but are adjacent to the sewage pump 160), so that the pumping pressure of the sewage pump 160 is easily disturbed by the start and stop of other pumps adjacent to it, so that the pumping pressure of the sewage pump 160 is easily disturbed by the start and stop of other pumps adjacent to it. n Data collected within PV n Relative to the last predefined time interval Δt n-1 Data collected within PV n-1 The rate of change of exceeds the predefined rate of change threshold ρ T , this paper regards this situation as data PV n Abnormal fluctuations occurred. In subsequent data analysis, depending on the purpose and accuracy of the analysis, the data PV n It may or may not need to be excluded. n The quality level is further divided into low quality F L 、Intermediate quality F M and high quality F H This helps to make more accurate choices when analyzing data.
[0047] Therefore, the data cleaning method 300 according to the embodiment of the present disclosure can reflect some interferences in the process into the results of data cleaning by further subdividing the quality level of the data into low quality, medium quality and high quality, which helps to improve the reliability of subsequent data analysis.
[0048] Figure 4 It is a flowchart of a data cleaning method 400 according to another embodiment of the present disclosure.
[0049] refer to Figure 2 and Figure 4 , steps S410, S420, S425, S430, and S470 in method 400 are respectively the same as steps S210, S215, S220, S225, and S240 in method 200. For the sake of simplicity, the description of steps S410, S420, S425, S430, and S470 will not be repeated.
[0050] Only the differences between method 400 and method 200 are described below.
[0051] The method 400 further includes step S415. In step S415, an abnormal fluctuation flag L is created, and its value may include a first value, such as 0, indicating that the data PV collected by the data collection device 120 has no abnormal fluctuation, or a second value, such as 1, indicating that the data PV collected by the data collection device 120 has an abnormal fluctuation. In addition, the initial value of the abnormal fluctuation flag L is set to the first value.
[0052] In method 400, in step S425 (same as S220 in method 200), according to monitoring information M n Determine the n Internal data collection equipment 120 pairs of data PV n If there is an abnormality in the collection, proceed to step S435 and convert the data PV n Quality mark F n Set to low quality F L , and the abnormal fluctuation mark L n Set to the first value, i.e. L n =0, the “setting” here covers the situation where the value of the abnormal fluctuation flag is maintained unchanged when the abnormal fluctuation flag has been the first value in the previous predefined time interval.
[0053] In method 400, in step S430 (same as S225 in method 200), data PV is determined. n If any constraint in the constraint set U is not satisfied, the process proceeds to step S435.
[0054] In method 400, if Figure 4 As shown in the dashed box in Figure 2 Correspondingly, in step S235, according to data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change ρ n Whether it exceeds the predefined change rate threshold ρ T The data PV n Quality mark F n Set to intermediate quality F M or high quality F H , further including steps S440 to S465.
[0055] In step S430 (same as S225 in method 200), the data PV is determined. n If each constraint in the constraint set U is satisfied, proceed to step S440 to determine the data PV n Relative to the data acquisition device at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change ρ n =|(PV n -PV n-1 ) / PV n-1 |Whether it exceeds the predefined change rate threshold ρ T .
[0056] In ρn >ρ T In the case of , the method 400 proceeds to step S445, starts timing (for example, by a timer, etc.), and the initial value of the timing tc is set to 0, that is, tc = 0. Then, proceed to step S450, the data PV n Quality mark F n Set to intermediate quality F M , and the abnormal fluctuation mark L n Set to the second value, such as L n =1, the “setting” here covers the situation where the value of the abnormal fluctuation flag is maintained unchanged when the abnormal fluctuation flag has been the second value in the previous predefined time interval.
[0057] In ρ n ≤ρ T In the case of , the method 400 proceeds to step S455 to determine the last predefined time interval Δt n-1 Abnormal fluctuation mark L n-1 Is the value of the second value.
[0058] If L n-1 The value is the first value, such as L n =0, then proceed to step S465, and set the data PV n Quality mark F n Set to High Quality F H , and the abnormal fluctuation mark L n Maintain the first value.
[0059] If L n-1 The value is the second value, such as L n =1, then proceed to step S460 to determine whether the timer tc has reached the predefined exit time t delay , that is, judging the recovery from the change rate ρ to the predefined change rate threshold ρ T Whether the predefined exit time t has passed since the following time delay .
[0060] If the timing tc ≥ t delay , indicating that the change rate ρ has recovered to the predefined change rate threshold ρ T The predefined exit time t has passed since delay , then proceed to step S465.
[0061] On the contrary, if the timing tc <t delay , indicating that the change rate ρ has recovered to the predefined change rate threshold ρ T The predefined exit time t has not passed since delay , then proceed to step S450, and the data PVn The quality indicator Fn is set to the intermediate quality F M , and the abnormal fluctuation mark L n Maintain the second value.
[0062] After steps S435, S450, and S465, the method 400 proceeds to step S470 to store the data PV in association with the data. n and quality mark F n .
[0063] The method 400 creates an abnormal fluctuation flag L, and as long as the change rate ρ is greater than the predefined change rate threshold ρ T The timing starts, and only when it is detected that the predefined exit time t delay The change rate ρ of the continuously collected data PV does not exceed the predefined change rate threshold ρ T The reason for this is that in some instances, the factors that cause abnormal fluctuations in the data collected by the data collection device (for example, the sewage pump 160 is affected by the start and stop of the adjacent pump) may last for a period of time. Even if some data collected during this period "seems" to be high-quality data, it is expected that a stricter data screening standard will be applied to treat all data during this period as having undergone abnormal fluctuations. Method 400 monitors the change rate ρ n Whether the time to recover below the predefined change rate threshold reaches the predefined exit time t delay , in order to filter out the data collected during the period of continuous abnormal fluctuations.
[0064] Therefore, according to the data cleaning method 400 of the embodiment of the present disclosure, not only the production background information is integrated into the quality classification of the data, but also the continuous abnormal fluctuations are further reflected in the results of data cleaning, thereby improving its reference value in the subsequent data analysis process and thus improving the accuracy of data analysis.
[0065] In addition, the methods 200, 300 and 400 may further include the step of performing a sliding average filter within each predefined time interval Δt. That is, the data PV collected within the most recent predetermined number j of predefined time intervals is filtered. n PV n-1 ,……,PV n-j+1 The average value is calculated as the sliding average PV n '. The predetermined number j is an integer greater than 1 (j>1), and the average value includes but is not limited to an arithmetic average and a weighted average. In addition, methods 200, 300 and 400 may also include n and quality mark F n Store the sliding average PV in associationn ' steps.
[0066] Taking the arithmetic mean as an example, given j is 3, the predefined time interval Δt is 1 second, and by the third predefined time interval Δt3, three data PV1, PV2 and PV3 have been collected, and the arithmetic mean 1 / 3*(PV1+PV2+PV3) of PV1, PV2 and PV3 is calculated as the sliding average PV1' within the third predefined time interval Δt3, that is, the first sliding average, and the interactive average PV1' is stored in association with the data PV3 and the data quality F3; similarly, by the fourth predefined time interval Δt4, four data PV1, PV2, PV3 and PV4 have been collected, and the arithmetic mean 1 / 3*(PV2+PV3++PV4) of PV2, PV3 and PV4 is calculated as the sliding average PV2' within the fourth predefined time interval Δt3, that is, the second sliding average, and the interactive average PV2' is stored in association with the data PV4 and the data quality F4; and so on.
[0067] The function of performing sliding average filtering is to filter out the random errors of the frequent fluctuations between the collected data PVs and eliminate noise. The sliding average values PV1', PV2', ..., PV n The fitted curve is smooth and can better reflect the real trend of the data PV over time, and can be selectively used for subsequent data analysis. For example, one or more of the data PV, quality indicator F, and sliding average PV can be presented to the data engineer in a visual manner to provide more reliable data support.
[0068] Figure 5 is a block diagram of a data cleaning device 140 according to an embodiment of the present disclosure.
[0069] refer to Figure 5 The data cleaning device 140 may include a constraint condition generating module 510 , a communication module 520 , a processing module 530 and a storage module 540 .
[0070] The data cleaning device 140 may implement the data cleaning methods 200 , 300 , and 400 described above.
[0071] Specifically, the constraint condition set generation module 510 is configured to generate a constraint condition set U for screening the data PV collected by the data collection device 120 .
[0072] The communication module 520 is configured to receive, within each predefined time interval Δt, the data PV collected by the data collection device 120 within the predefined time interval Δt and the monitoring information M generated by the monitoring device 130 of the data collection device 120 within the predefined time interval Δt.
[0073] The processing module 530 is configured to: within each predefined time interval Δt (for example, within the nth predefined time interval Δt n Perform the following operations according to the monitoring information M n Determine the n Internal data collection equipment 120 pairs of data PV n Whether there is any abnormality in the collection; if there is any abnormality, the data PV n Quality mark F n Set to low quality F L ; In the absence of abnormalities, determine the data PV n Whether each constraint in the constraint set U is satisfied; if the data does not satisfy any constraint in the constraint set U, the data PV n Quality mark F n Set to low quality F L ; In data PV n When each constraint in the constraint set U is satisfied, according to the data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change ρ n Whether it exceeds the predefined change rate threshold ρ T , the data PV n Quality mark F n Set to intermediate quality F M or high quality F H When only the first predefined time interval Δt1 has passed and only data PV1 has been collected, and there is no previous predefined time interval, it is determined that the change rate ρ1 does not exceed the predefined change rate threshold ρ T .
[0074] The storage module 540 is configured to store data PV in association with n and the quality mark F n .
[0075] Already combined Figure 1B and Figure 2 The process of implementing the data cleaning method 200 by the data cleaning device 140 has been described in detail, and for the sake of brevity, it will not be repeated here.
[0076] In one embodiment of the present disclosure, Figure 6 The processing module 530 shown is configured to convert the data PV by performing the following operations: n Quality mark F n Set to intermediate quality F M or high quality F H:Determine the data PV n Relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change ρ n Whether it exceeds the predefined change rate threshold ρ T ; at the rate of change ρ n Exceeding the predefined change rate threshold ρ T In the case of n Quality mark F n Set to intermediate quality F M ; at the rate of change ρ n Does not exceed the predefined rate of change threshold ρ T In the case of n Quality mark F n Set to High Quality F H .
[0077] Already combined Figure 1B and Figure 3 The process of implementing the data cleaning method 300 by the data cleaning device 140 has been described in detail, and for the sake of brevity, it will not be repeated here.
[0078] In another embodiment of the present disclosure, the data cleaning device 140 may further include an abnormal fluctuation mark creation module 550 ( Figure 5 The abnormal fluctuation flag L is configured to create an abnormal fluctuation flag L and set its initial value to a first value. The value of the abnormal fluctuation flag L includes the first value indicating non-abnormal fluctuation, such as 0, and the second value indicating abnormal fluctuation, such as 1.
[0079] The processing module 530 is further configured to perform the following operations within each predefined time interval Δt, for example, within the nth predefined time interval Δt: n Internal: Based on monitoring information M n Determine the data acquisition device for data PV n If there is an abnormality in the collection, the abnormal fluctuation mark L n Set to the first value. Or, in the data PV n If any constraint in the constraint set U is not satisfied, the abnormal fluctuation flag L n The “setting” here covers the situation where the value of the abnormal fluctuation flag is maintained unchanged when the abnormal fluctuation flag has been the first value in the previous predefined time interval.
[0080] The processing module 530 is also configured to convert the data PV into n Quality mark F n Set to intermediate quality FM or high quality F H :PV n Determine the data relative to the data acquisition device 120 at the previous predefined time interval Δt n-1 Data collected in PV n-1 The rate of change of n Whether it exceeds the predefined change rate threshold ρ T ; at the rate of change ρ n Exceeding the predefined change rate threshold ρ T In the case of, start timing, for example, set the timing t c The initial value is t c =0, the data quality mark F n Set to intermediate quality F M , and the abnormal fluctuation mark L n is set to the second value, where “setting” covers the case where the value of the abnormal fluctuation flag is maintained unchanged when the abnormal fluctuation flag has been the second value in the previous predefined time interval; n Does not exceed the predefined rate of change threshold ρ T In the case of abnormal fluctuation, determine the abnormal fluctuation mark L n-1 Is it the second value? In the abnormal fluctuation mark L n-1 When the data PV is the first value, n The quality indicator is set to high quality F H , and the abnormal fluctuation mark L n Maintain the first value; in the abnormal fluctuation mark L n-1 When the value is the second value, determine whether the timing has reached the predefined exit time t delay ; When the timing reaches the predefined exit time t delay In the case of n Set to High Quality F H , and the abnormal fluctuation mark L n Set to the first value; if the timing does not reach the predefined exit time t delay In the case of n Set to intermediate quality F M , and the abnormal fluctuation mark L n Maintain the second value.
[0081] Since the previous Figure 1B and Figure 4 The process of implementing the data cleaning method 400 by the data cleaning device 140 has been described in detail, and for the sake of brevity, it will not be repeated here.
[0082] Figure 6 600 according to an embodiment of the present disclosure. Figure 6 As shown, according to the computer readable storage medium 600 of the present disclosure embodiment, a computer readable instruction 610 is stored. When the computer readable instruction 610 is executed by the processor, the execution is performed as described above. Figures 2 to 4 The data cleaning methods 200, 300 and 400 according to the embodiments of the present disclosure are described. The processor may be a central processing unit (CPU) or other forms of processing units having data processing capability and / or instruction execution capability.
[0083] According to an embodiment of the present invention, a computer program product is also provided, which can be stored on a cloud or local storage medium or in a transmission medium. When the computer program included in the computer program product is run by a computer or a processor, it is used to execute the corresponding steps of the data cleaning method of the embodiment of the present invention, and is used to implement the corresponding modules in the data cleaning device according to the embodiment of the present invention.
[0084] The data cleaning method according to the embodiments of the present disclosure and the data cleaning device for implementing the data cleaning method and the computer-readable storage medium are described above with reference to the accompanying drawings. According to the data cleaning method and device for data acquisition equipment in industrial systems of the embodiments of the present disclosure, the quality mark is set for the field data according to the quality level of the field data synchronously with the real-time acquisition of the field data, and the process design and real-time working conditions of the acquisition object are used as factors for setting the quality mark, so that the production background information, production process and working conditions can be reflected in the results of data cleaning, which can improve the rationality of the subsequent data analysis model and the reliability of the data analysis results.
[0085] The terms “first”, “second” and the like in the specification, claims and drawings of the present disclosure are used to distinguish different objects rather than to describe a specific order.
[0086] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0087] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0088] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0089] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0090] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.
[0091] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0092] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A data cleaning method for a data acquisition device in an industrial system, comprising: generating a set of constraint conditions for screening the data collected by the data collection device; and Perform the following actions at every predefined time interval: receiving data collected by the data collection device within the predefined time interval and monitoring information generated by the monitoring device of the data collection device within the predefined time interval; Determining whether there is any abnormality in the data collection by the data collection device within the predefined time interval according to the monitoring information; In the event of an anomaly, setting the quality indicator of the data to low quality; In the absence of anomalies, determining whether the data satisfies each constraint in the constraint set; If the data does not satisfy any constraint in the constraint set, setting the quality indicator of the data to low quality; In the case where the data satisfies each constraint in the constraint set, according to whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold, setting the quality indicator of the data to an intermediate quality or a high quality, wherein, in the case where there is no previous predefined time interval, it is determined that the change rate does not exceed the predefined change rate threshold; as well as The data and the quality indicator are stored in association.
2. The data cleaning method according to claim 1, wherein: According to whether the change rate of the data relative to the data collected by the data collection device in the previous predefined time interval exceeds a predefined change rate threshold, setting the quality indicator of the data to medium quality or high quality includes: determining whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold; In the case where the change rate exceeds the predefined change rate threshold, setting the quality indicator of the data to an intermediate quality; and When the change rate does not exceed the predefined change rate threshold, the quality indicator of the data is set to high quality.
3. The data cleaning method according to claim 1, further comprising: creating an abnormal fluctuation flag and setting its initial value to a first value, wherein the value of the abnormal fluctuation flag includes the first value indicating non-abnormal fluctuation and a second value indicating abnormal fluctuation; and At every predefined time interval: In the case of an abnormality, setting the abnormal fluctuation flag to the first value; When the data does not satisfy any constraint in the constraint set, setting the abnormal fluctuation flag to the first value; The step of setting the quality indicator of the data to medium quality or high quality according to whether the change rate of the data relative to the data collected by the data collection device in the previous predefined time interval exceeds a predefined change rate threshold comprises: determining whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold; When the change rate exceeds the predefined change rate threshold, start timing, set the quality indicator of the data to medium quality, and set the abnormal fluctuation flag to the second value; In a case where the change rate does not exceed the predefined change rate threshold, determining whether the abnormal fluctuation flag within a previous predefined time interval is the second value; When the abnormal fluctuation flag within the previous predefined time interval is the first value, setting the quality indicator of the data to high quality, and maintaining the abnormal fluctuation flag to the first value; In the case where the abnormal fluctuation flag within the previous predefined time interval is the second value, determining whether the timing has reached a predefined exit time; In the case that the timing has reached the predefined exit time, setting the quality indicator of the data to high quality, and setting the abnormal fluctuation flag to the first value; and In a case where the timing does not reach the predefined exit time, the quality indicator of the data is set to an intermediate quality, and the abnormal fluctuation flag is maintained at the second value.
4. The data cleaning method according to any one of claims 1 to 3, wherein: The constraint set includes constraints determined based on device characteristics of the data acquisition device, constraints determined based on device characteristics of the acquisition object of the data acquisition device, and / or constraints determined based on the influence of a device having a linkage relationship with the acquisition object on the acquisition object.
5. The data cleaning method according to any one of claims 1 to 3, wherein: Determining whether there is an abnormality in the data collection by the data collection device within the predefined time interval according to the monitoring information includes determining that there is an abnormality when the monitoring information indicates one of the following: An alarm for the acquisition object, the data acquisition device, and / or a device having a linkage relationship with the acquisition object is triggered; as well as The acquisition object, the data acquisition device, the communication link and / or the device in linkage relationship with the acquisition object are in maintenance or fault state.
6. The data cleaning method according to any one of claims 1 to 3, further comprising: Calculate the average value of the data collected within the most recent predetermined number of predefined time intervals as a sliding average value, where the predetermined number is an integer greater than 1; and The sliding average is stored in association with the data and an indication of a quality of the data.
7. A data cleaning device for a data acquisition device in an industrial system, comprising: A constraint condition set generating module, configured to generate a constraint condition set for screening the data collected by the data collection device; A communication module, configured to receive, within each predefined time interval, data collected by the data collection device within the predefined time interval and monitoring information generated by the monitoring device of the data collection device within the predefined time interval; The processing module is configured to perform the following operations at each predefined time interval: Determining whether there is any abnormality in the data collection by the data collection device within the predefined time interval according to the monitoring information; In the event of an anomaly, setting the quality indicator of the data to low quality; In the absence of anomalies, determining whether the data satisfies each constraint in the constraint set; If the data does not satisfy any constraint in the constraint set, setting the quality indicator of the data to low quality; In the case where the data satisfies each constraint in the constraint set, according to whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold, setting the quality indicator of the data to an intermediate quality or a high quality, wherein, in the case where there is no previous predefined time interval, it is determined that the change rate does not exceed the predefined change rate threshold; and The storage module is configured to store the data and the quality indicator in association with each other.
8. The data cleaning device according to claim 7, wherein: The processing module sets the quality indicator of the data to medium quality or high quality by performing the following operations: determining whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold; In the case where the change rate exceeds the predefined change rate threshold, setting the quality indicator of the data to an intermediate quality; and When the change rate does not exceed the predefined change rate threshold, the quality indicator of the data is set to high quality.
9. The data cleaning device according to claim 7, further comprising: an abnormal flag creation module, configured to create an abnormal fluctuation flag and set its initial value to a first value, wherein the value of the abnormal fluctuation flag includes the first value indicating a non-abnormal fluctuation or the second value indicating an abnormal fluctuation; and The processing module is further configured to perform the following operations within each predefined time interval: In the case of an abnormality, setting the abnormal fluctuation flag to the first value; When the data does not satisfy any constraint in the constraint set, setting the abnormal fluctuation flag to the first value; The step of setting the quality indicator of the data to medium quality or high quality according to whether the change rate of the data relative to the data collected by the data collection device in the previous predefined time interval exceeds a predefined change rate threshold comprises: determining whether a change rate of the data relative to data collected by the data collection device in a previous predefined time interval exceeds a predefined change rate threshold; When the change rate exceeds the predefined change rate threshold, start timing, set the quality indicator of the data to medium quality, and set the abnormal fluctuation flag to the second value; In a case where the change rate does not exceed the predefined change rate threshold, determining whether the abnormal fluctuation flag within a previous predefined time interval is the second value; When the abnormal fluctuation flag in the previous predefined time interval is the first value, setting the quality indicator of the data to high quality, and maintaining the abnormal fluctuation flag to the first value; In the case where the abnormal fluctuation flag in the previous predefined time interval is the second value, determining whether the timing has reached a predefined exit time; In the case that the timing has reached the predefined exit time, setting the quality indicator of the data to high quality, and setting the abnormal fluctuation flag to the first value; and In a case where the timing does not reach the predefined exit time, the quality indicator of the data is set to an intermediate quality, and the abnormal fluctuation flag is maintained at the second value.
10. The data cleaning device according to any one of claims 7 to 9, wherein: The constraint set includes constraints determined based on device characteristics of the data acquisition device, constraints determined based on device characteristics of the acquisition object of the data acquisition device, and / or constraints determined based on the influence of a device having a linkage relationship with the acquisition object on the acquisition object.
11. The data cleaning device according to any one of claims 7 to 9, wherein: The processing module determines that an abnormality exists if the monitoring information indicates one of the following: An alarm for the acquisition object, the data acquisition device, and / or a device having a linkage relationship with the acquisition object is triggered; as well as The acquisition object, the data acquisition device and / or the device having a linkage relationship with the acquisition object are in a maintenance state.
12. The data cleaning device according to any one of claims 7 to 9, wherein: The processing module is further configured to calculate, within each predefined time interval, an average value of data collected within a most recent predetermined number of predefined time intervals as a sliding average value, and the predetermined number is an integer greater than 1; and The storage module is further configured to store the sliding average in association with the data and a quality indicator of the data.
13. A computer-readable storage medium having program instructions stored thereon, wherein when the program instructions are executed by a processor, the processor executes the data cleaning method according to any one of claims 1 to 6.
