Intelligent cleaning method and system for metering parameters based on built-in MCU carrier chip

Through the intelligent cleaning method with its own MCU carrier chip, the fluctuation degree evaluation and matching weight are used to screen the optimal curve group, which solves the problem of difficulty in determining the matching distance in metering data cleaning, improves the accuracy and efficiency of data processing, and ensures data quality.

CN118035660BActive Publication Date: 2024-09-24ZHEJIANG QINGXIN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410136470.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-31
Publication Date
2024-09-24
Estimated Expiration
2044-01-31

AI Technical Summary

Technical Problem

In the existing technology, the measurement data cleaning method based on the DTW algorithm cannot accurately determine the matching distance of data points when processing data in different periods, resulting in inaccurate identification of outliers and poor data cleaning effect.

Method used

Using the intelligent cleaning method based on the built-in MCU carrier chip, by obtaining the fluctuation degree evaluation of each periodic curve, forming a group of curves to be tested, calculating the cumulative cost matrix and the shortest matching path, analyzing the deformation area and local deformation degree, and obtaining the matching weight , select the optimal curve group for data cleaning.

Benefits of technology

It improves data processing efficiency and accuracy, ensures data quality, and can more accurately identify and clean noise and outliers, representing the characteristics and trends of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118035660B
    Figure CN118035660B
Patent Text Reader

Abstract

The present invention relates to the field of data identification technology, and in particular to a method and system for intelligent cleaning of metering parameters based on a built-in MCU carrier chip. The invention obtains an evaluation of the degree of fluctuation of each periodic curve; obtains a cumulative cost matrix between each periodic curve according to the relative distance of data points between each periodic curve in each curve group to be measured; further obtains the shortest matching path in the cumulative cost matrix; obtains multiple deformation regions according to the position characteristics of elements within the neighborhood of each element in the shortest matching path; obtains matching weights between each periodic curve according to the difference in the evaluation of the degree of fluctuation between each periodic curve, the number of elements in each deformation region, and the local deformation degree; further screens out a preferred curve group; and cleans the metering parameters. The present invention improves the effect of data cleaning by adaptively weighting the matching distance of each data point between periods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data identification, and in particular to a method and system for intelligent cleaning of metrological parameters based on a built-in MCU carrier chip. Background Art

[0002] The metering system based on MCU carrier chip is mainly used for data collection and remote monitoring in the fields of electricity, water, gas, etc. It can collect and monitor the metering data and transmit it back to the central computer for identification and processing. However, with the development of integrated circuit technology, the metering unit can clean the data after collecting it, which can significantly reduce the data processing load of the central computer and facilitate the operation stability of the overall data system.

[0003] In the prior art, considering that the changes in the metering data of users are similar between the data collected in a certain period, the DTW algorithm is used to judge the data changes in the metering system, and then the differences in the metering parameters in different periods are identified and the data is cleaned according to the sequence deformation differences in the DTW; however, due to the short-term mutations in the deformation of different periods, overly obvious deformation positions appear in the DTW matching results, which will cover up the originally inconspicuous deformation positions, and fail to determine the appropriate matching distance of each data point between different periods, resulting in inaccurate identification of abnormal values ​​and poor data cleaning effect. Summary of the invention

[0004] In order to solve the technical problem that the appropriate matching distance between data points in different cycles cannot be determined, resulting in inaccurate identification of outliers and poor data cleaning effect, the purpose of the present invention is to provide a method and system for intelligent cleaning of measurement parameters based on a built-in MCU carrier chip. The technical solution adopted is as follows:

[0005] The present invention proposes a method for intelligent cleaning of metering parameters based on a built-in MCU carrier chip, the method comprising:

[0006] Obtain the metering parameters of the data metering system at each monitoring moment in each cycle to form data points in each cycle curve;

[0007] According to the fluctuation characteristics of the data points in each periodic curve, a fluctuation degree evaluation of each periodic curve is obtained; according to the difference of the fluctuation degree evaluation between each periodic curve, a plurality of curve groups to be tested are obtained;

[0008] In each curve group to be tested, according to the relative distance of the data points between each periodic curve, the cumulative cost matrix between each periodic curve is obtained, and the shortest matching path in the cumulative cost matrix is ​​obtained; according to the position characteristics of the elements within the neighborhood range of each element in the shortest matching path, multiple deformation regions are obtained;

[0009] Obtain the local deformation degree according to the numerical characteristics of the elements in each deformation area; obtain the matching weight between each periodic curve according to the difference in the fluctuation degree evaluation between each periodic curve, the number of elements in each deformation area and the local deformation degree; and select the preferred curve group according to the matching weight between each periodic curve in each curve group to be tested;

[0010] The metering parameters are cleaned according to the preferred curve group.

[0011] Furthermore, the method for obtaining the fluctuation degree evaluation includes:

[0012] The AMPD algorithm is used to obtain the maximum value of the data point on each cycle curve;

[0013] The volatility evaluation is obtained according to the volatility evaluation acquisition formula, and the volatility evaluation acquisition formula is:

[0014] Among them, A Q Indicates the fluctuation degree evaluation of the periodic curve Q; P i represents the measurement parameter of the i-th data point; P i+1 represents the measurement parameter of the i+1th data point; k represents the sequence number corresponding to the maximum value data point; Indicates the monitoring time corresponding to the kth maximum data point; Indicates the monitoring time corresponding to the k+1th maximum data point; n Q Represents the number of data points on the periodic curve Q; Represents the mean value of all metrological parameters on the periodic curve Q; It represents the standard deviation of all measurement parameters on the periodic curve Q; max() represents the maximum value function; avg() represents the average value function.

[0015] Furthermore, the method for obtaining the curve group to be measured includes:

[0016] Selecting any one of the periodic curves as the target periodic curve, and calculating the difference between the target periodic curve and each of the remaining periodic curves in the fluctuation degree evaluation as the first eigenvalue;

[0017] Calculate the product of each remaining periodic curve and a preset ratio as the second eigenvalue;

[0018] If the first eigenvalue of the periodic curve is less than or equal to the corresponding second eigenvalue, grouping the corresponding periodic curve into a type of curve group to be tested;

[0019] Continue to select ungrouped periodic curves as target periodic curves until all periodic curves are grouped to obtain multiple curve groups to be tested.

[0020] Furthermore, the method for obtaining the cumulative cost matrix includes:

[0021] In each curve group to be tested, the DTW algorithm is used to obtain the relative distance between the data points of each periodic curve as an element constituting the cumulative cost matrix.

[0022] Furthermore, the method for obtaining the shortest matching path includes:

[0023] Among all the paths from the lower left corner to the upper right corner of the cumulative growth matrix, the path with the smallest sum of relative distances is selected as the shortest matching path.

[0024] Furthermore, the method for obtaining the deformation area includes:

[0025] For a neighborhood range of each element in the shortest matching path, other elements in the shortest matching path are taken as similar elements, and similar elements of each element are obtained to form a deformation region; the shortest matching path is traversed to obtain multiple deformation regions.

[0026] Furthermore, the method for obtaining the local deformation degree includes:

[0027] The mean of the elements in each deformation area is calculated as the local deformation degree.

[0028] Furthermore, the method for obtaining the matching weight includes:

[0029] In each curve group to be tested, the difference in the fluctuation degree evaluation between curves of different periods is calculated to obtain a first weight;

[0030] Normalize the number of elements in each deformation region, and negatively map the normalized result as the first normalized value;

[0031] Normalizing the local deformation degree, and performing negative correlation mapping on the normalized result as a second normalized value;

[0032] Calculating the product of the first normalized value and the second normalized value, and accumulating the product results of all deformation areas to obtain a second weight;

[0033] The product of the first weight and the second weight is calculated and normalized to obtain the matching weight between the periodic curves.

[0034] Furthermore, the method for obtaining the preferred curve group includes:

[0035] In each curve group to be tested, if the matching weights between the periodic curves are greater than or equal to a preset matching weight threshold, the corresponding periodic curves constitute a preferred curve group.

[0036] The present invention also proposes a metering parameter intelligent cleaning system based on a built-in MCU carrier chip, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of the metering parameter intelligent cleaning method based on a built-in MCU carrier chip.

[0037] The present invention has the following beneficial effects:

[0038] In order to analyze the short-term mutation in different periods, the present invention obtains the fluctuation degree evaluation of each periodic curve according to the fluctuation characteristics of the data points in each periodic curve, preliminarily understands the stability of the periodic curve, and provides a preliminary classification basis; in order to avoid redundant analysis of a large amount of data, a plurality of curve groups to be tested are obtained according to the difference in the fluctuation degree evaluation between each periodic curve, so as to improve the data processing efficiency and make the analysis more targeted; in each curve group to be tested, according to the relative distance of the data points between each periodic curve, the cumulative cost matrix between each periodic curve is obtained to quantify the matching degree between the periodic curves; and the shortest matching path in the cumulative cost matrix is ​​obtained to perform data analysis more efficiently; according to the elements in the neighborhood range of each element in the shortest matching path Position features, obtain multiple deformation areas, and deeply understand the differences and similarities between different curves; obtain local deformation degrees according to the numerical characteristics of elements in each deformation area, and more accurately compare the differences between periodic signals; obtain the matching weights between each periodic curve according to the differences in the fluctuation degree evaluation between each periodic curve, the number of elements in each deformation area, and the local deformation degree, and improve the accuracy and reliability of the data; select the preferred curve group according to the matching weights between each periodic curve in each curve group to be tested, and ensure that the final selected periodic curve group has the best matching effect and data quality, and can better represent the characteristics and trends of the curve group to which it belongs; clean the metrological parameters, clean the noise, outliers, etc. in the data, and improve the quality of the data. The present invention improves the effect of data cleaning by adaptively weighting the matching distance of each data point between the cycles. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 The present invention provides a flowchart of a method for intelligently cleaning metering parameters based on a built-in MCU carrier chip according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a metering parameter intelligent cleaning method and system based on a self-contained MCU carrier chip proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0043] The specific scheme of the intelligent cleaning method and system of metering parameters based on the built-in MCU carrier chip provided by the present invention is described in detail below with reference to the accompanying drawings.

[0044] See also Figure 1 , which shows a flow chart of a method for intelligent cleaning of metering parameters based on a built-in MCU carrier chip provided by an embodiment of the present invention, and the specific method includes:

[0045] Step S1: Obtain the metering parameters of the data metering system at each monitoring moment in each cycle to form data points in each cycle curve.

[0046] In an embodiment of the present invention, a data metering system is constructed by arranging a metering unit device with a built-in MCU carrier chip, including a clock module, a sensor unit module, a data processing module, and a data transmission module; in order to ensure that the data metering system can accurately judge the data monitoring situation of the corresponding environment, the sensors of each module uniformly obtain the time information output by the clock module; the acquisition time of the sensors is the same and the interval time between the acquisition times is the same, and the metering parameters of the data metering system at each monitoring time in each cycle are obtained. The positive direction of the horizontal axis is the direction of increasing the timing, and the positive direction of the vertical axis is the direction of increasing the metering parameters, which constitute the data points of each cycle curve.

[0047] It should be noted that for different data metering systems, a variety of different sensors can be used to acquire data, such as using sensors in the power metering system to acquire the user's real-time input power, acquiring the user's real-time water flow in the water data metering system, and acquiring the user's real-time gas flow in the gas metering system. In one embodiment of the present invention, taking the power monitoring scenario as an example, the real-time input power of the user corresponding to each monitoring moment is acquired; the acquisition interval is 0.5s, and the acquisition cycle is 24h. In other embodiments of the present invention, the size of the acquisition interval and the acquisition cycle can be set according to the specific situation, and will not be limited or elaborated here.

[0048] Step S2: Obtain the fluctuation degree evaluation of each periodic curve according to the change trend, fluctuation characteristics and distribution characteristics of the maximum values ​​of the data points in each periodic curve; obtain multiple curve groups to be tested according to the differences in the fluctuation degree evaluations between each periodic curve.

[0049] Since the power demand of users shows a certain periodicity and can reflect certain usage habits of users, the characteristics of the data points in each cycle curve can be analyzed to obtain the power demand characteristics of users in each cycle. Since there are short-term mutations in power consumption in different cycles, the data fluctuates; the more short-term mutations there are, the more obvious and drastic the fluctuations of data points will be, resulting in more unstable changes in user demand and greater fluctuations between cycle curves; according to the fluctuation characteristics of the data points in each cycle curve, the fluctuation evaluation of each cycle curve is obtained.

[0050] Preferably, in one embodiment of the present invention, the method for obtaining the fluctuation degree evaluation includes:

[0051] The AMPD algorithm is used to obtain the maximum value of the data point on each cycle curve;

[0052] The volatility evaluation is obtained according to the volatility evaluation acquisition formula, and the volatility evaluation acquisition formula is:

[0053]

[0054] Among them, A Q Indicates the fluctuation degree evaluation of the periodic curve Q; P i represents the measurement parameter of the i-th data point; P i+1 represents the measurement parameter of the i+1th data point; k represents the sequence number corresponding to the maximum value data point; Indicates the monitoring time corresponding to the kth maximum data point; Indicates the monitoring time corresponding to the k+1th maximum data point; n Q Represents the number of data points on the periodic curve Q; Represents the mean value of all metrological parameters on the periodic curve Q; It represents the standard deviation of all measurement parameters on the periodic curve Q; max() represents the maximum value function; avg() represents the average value function.

[0055] In the formula for obtaining the fluctuation degree evaluation, max(|P i -P i+1 |) represents the maximum difference of the measurement parameters between the i-th data point and the i+1-th data point in the cycle curve. The larger the maximum difference, the more obvious the difference position in the cycle curve, that is, the more obvious the change of user demand itself, and the greater the fluctuation degree; It represents the mean difference between the corresponding monitoring time of all the kth maximum data points and the adjacent k+1th maximum data points in the periodic curve. The smaller the mean difference, the closer the corresponding time between the adjacent maximum values ​​of the data points, the more concentrated the changes in user demand are in a shorter time, and the more obvious the short-term drastic changes in the metering parameters are. It represents the difference between the i-th data point on the periodic curve and the mean of all measurement parameters. If the difference is positive, the data point with a larger mean value appears on the periodic curve. On the contrary, the data point with a smaller mean value appears on the periodic curve. Indicates the fluctuation of data points on the cycle curve. The greater the fluctuation, the higher the frequency of data points with a larger relative mean value appearing in the current cycle curve, and the more drastic the change in user demand. Conversely, the frequency of data points with a smaller relative mean value appearing in the current cycle curve is higher. When the change trend of the data points is greater, the fluctuation characteristics are greater, and the distribution characteristics of the maximum values ​​are closer, the greater the change in power demand, and the greater the fluctuation degree evaluation.

[0056] It should be noted that the specific AMPD algorithm is a technical means well known to those skilled in the art and will not be described in detail here.

[0057] In order to avoid redundant analysis of a large amount of data and the problem of poor accuracy in identifying data differences, the fluctuation degree evaluation of different cycle curves is compared. Similar cycle curves may reflect similar power consumption patterns or behaviors. By analyzing similar curves, it is easier to find and deal with problems such as outliers and missing values, improve data quality, further better understand user needs, and optimize the stability of the overall data system. Multiple test curve groups are obtained based on the differences in the fluctuation degree evaluation between each cycle curve.

[0058] Preferably, in one embodiment of the present invention, the method for obtaining the curve group to be measured includes:

[0059] Select any one of the periodic curves as the target periodic curve, calculate the difference in fluctuation evaluation between the target periodic curve and each of the remaining periodic curves, and use it as the first eigenvalue; calculate the product of each of the remaining periodic curves and a preset ratio, and use it as the second eigenvalue; if the first eigenvalue of the periodic curve is less than or equal to the corresponding second eigenvalue, group the corresponding periodic curve into a group of curves to be tested; continue to select ungrouped periodic curves as target periodic curves, until all periodic curves are grouped, and obtain multiple groups of curves to be tested.

[0060] It should be noted that, in one embodiment of the present invention, the preset ratio is taken as an empirical value of 5%; in other embodiments of the present invention, the size of the preset ratio can be set according to specific circumstances, which is not limited or elaborated here.

[0061] Step S3: In each curve group to be tested, according to the relative distance of the data points between each periodic curve, the cumulative cost matrix between each periodic curve is obtained, and the shortest matching path in the cumulative cost matrix is ​​obtained; according to the position characteristics of the elements within the neighborhood range of each element in the shortest matching path, multiple deformation regions are obtained.

[0062] In order to judge the data changes in the data metering system, the relative distance between the data points of the cycle curves is analyzed to measure the similarity of the cycle curves; the closer the distance, the more similar the user power demand; the cumulative cost matrix can comprehensively evaluate the data changes within the cycle and reflect the matching degree between different cycle curves. Therefore, in each curve group to be tested, the cumulative cost matrix between each cycle curve is obtained according to the relative distance between the data points of each cycle curve; in order to quickly screen out the most representative cycle curves and reduce redundant analysis, the shortest matching path in the cumulative cost matrix is ​​obtained. By finding the shortest matching path, power dispatch and load distribution can be carried out more efficiently, reducing unnecessary costs.

[0063] Preferably, in one embodiment of the present invention, the method for obtaining the cumulative cost matrix includes:

[0064] The DTW algorithm is used to measure the similarity between two periodic curves. In each curve group to be tested, the DTW algorithm is used to obtain the relative distance between the data points of each periodic curve as an element constituting the cumulative cost matrix.

[0065] Preferably, in one implementation of the present invention, the method for obtaining the shortest matching path includes:

[0066] Among all the paths from the lower left corner to the upper right corner of the cumulative growth matrix, the path with the smallest sum of relative distances is selected as the shortest matching path.

[0067] The specific DTW algorithm is a technical means well known to those skilled in the art and will not be described in detail here.

[0068] Since the deformation between periodic curves is manifested as more than one element in a single row or column in the cumulative cost matrix being selected as the elements of the shortest matching path; the neighborhood range of each element in the shortest matching path is analyzed. If the elements of the other shortest matching paths appear in the neighborhood range, it is more likely to be the area where deformation occurs; therefore, multiple deformation areas are obtained based on the position characteristics of the elements in the neighborhood range of each element in the shortest matching path.

[0069] Preferably, in one embodiment of the present invention, the method for obtaining the deformation region includes:

[0070] For the neighborhood range of each element in the shortest matching path, other elements in the shortest matching path are taken as similar elements, and similar elements of each element are obtained to form a deformation area; the shortest matching path is traversed to obtain multiple deformation areas.

[0071] It should be noted that, in one embodiment of the present invention, in order to determine the data points adjacent to each element without introducing data from other positions, and to avoid the selection of cross-time series ranges due to an excessively large range, which may cause abnormalities in the identification of user usage feature trends, the method for obtaining the neighborhood range is as follows: taking each element in the shortest matching path as the center, construct a 3×3 range with only the polar coordinate system. The windows in four directions are used as the neighborhood range of each element. In other embodiments of the present invention, the size of the neighborhood range can be set according to specific circumstances, which will not be limited or elaborated herein.

[0072] Step S4: obtaining the local deformation degree according to the numerical characteristics of the elements in each deformation area; obtaining the matching weight between each periodic curve according to the difference in the fluctuation degree evaluation between each periodic curve, the number of elements in each deformation area and the local deformation degree; and selecting the preferred curve group according to the matching weight between each periodic curve in each curve group to be tested.

[0073] By analyzing the deformation area, we can deeply understand the similarities and differences of user usage needs between cycles. The larger the value of the element in each deformation area, the worse the similarity between the cycles, the greater the difference in the change trend, and the larger the local deformation degree; the local deformation degree is obtained according to the numerical characteristics of the elements in each deformation area.

[0074] Preferably, in one embodiment of the present invention, the method for obtaining the local deformation degree includes:

[0075] The mean of the elements in each deformation area is calculated as the local deformation degree.

[0076] Due to the short-term mutation of deformation in different periods, the deformation position is too obvious in the DTW algorithm process, which covers up the inconspicuous deformation position. The difference position generated in different periods cannot be identified. The relative distance between data points is adjusted to comprehensively and accurately evaluate the similarity and difference between curves, and improve the accuracy and reliability of matching. The difference in fluctuation evaluation can reflect the similarity and difference between two periodic curves; the smaller the difference, the more similar the fluctuation patterns of the two periodic curves, and the more accurate the analysis of similarity and difference; the number of elements in the deformation area reflects the integrity and richness of the deformation area; the more elements there are, the more user needs change, the smaller the similarity within the cycle, and the smaller the matching weight; the local deformation degree can reflect the distance or similarity of the deformation area between the two periodic curves; the smaller the local deformation degree of the deformation area, the smaller the difference in change between the periodic curves; therefore, the matching weight between each periodic curve is obtained according to the difference in fluctuation evaluation between each periodic curve, the number of elements in each deformation area, and the local deformation degree.

[0077] Preferably, in one embodiment of the present invention, the method for obtaining the matching weight includes:

[0078] In each curve group to be tested, the difference in the fluctuation degree evaluation between different periodic curves is calculated to obtain a first weight; the number of elements in each deformation region is normalized, and the normalized result is negatively correlated and mapped as a first normalized value; the local deformation degree is normalized, and the normalized result is negatively correlated and mapped as a second normalized value; the product of the first normalized value and the second normalized value is calculated, and the product results of all deformation regions are accumulated to obtain a second weight; the product of the first weight and the second weight is calculated, and normalized to obtain a matching weight between periodic curves. In one embodiment of the present invention, the formula for the matching weight is expressed as:

[0079]

[0080] Among them, B Q,Q' A represents the matching weight of the periodic curve Q and the periodic curve Q'; Q Indicates the fluctuation degree evaluation of the periodic curve Q; A Q' Indicates the fluctuation degree evaluation of the periodic curve Q'; n Y Represents the number of deformation regions in the cumulative cost matrix; N j represents the number of elements in the jth deformation region; Represents the local deformation degree in the jth deformation area; max(N) represents the maximum number of elements in the deformation area between all periodic curves in the curve group to be tested; min(N) represents the minimum number of elements in the deformation area between all periodic curves in the curve group to be tested; max(D) represents the maximum value of the relative distance in the cumulative cost matrix; min(D) represents the minimum value of the relative distance in the cumulative cost matrix; premnmx() represents the normalization function.

[0081] In the formula for matching weights, Represents the number of elements in the deformation region between all periodic curves in the curve group to be tested, N j Normalization is performed and negative correlation mapping is performed. The fewer the number of elements in the jth deformation area, the smaller the deformation scale of the deformation area on the periodic curve, and the less obvious the change. This further reflects that the user demand represented by the deformation position changes less and lasts for a shorter time. The more similar the user demand between cycles is, the greater the matching weight is. Represents the relative distance between all data points based on the current cycle curve Normalization, the smaller the local deformation degree in the deformation area, the smaller the deformation difference in the deformation area, the more likely it is that the user occasionally changes his habits and causes abnormal fluctuations in the monitoring data, and the greater the matching weight; |A Q -A Q' | represents the difference in the fluctuation evaluation between the periodic curve Q and the periodic curve Q'. The smaller the difference, the more similar the fluctuations between the periodic curves are. The resulting changes are sufficient to reflect the difference between the periodic curves, and there is no need to adjust the larger matching weight.

[0082] It should be noted that in other embodiments of the present invention, positive and negative correlations and normalization methods may also be constructed through other basic mathematical operations. The specific means are technical means well known to those skilled in the art and will not be elaborated here.

[0083] Curves with higher matching weights are usually more representative of the characteristics and trends of the curve group they belong to; through screening, it is easier to identify representative curves, quickly focus on the curve group with higher matching weights, and reduce misjudgments or misunderstandings caused by redundant or abnormal data in data analysis. The preferred curve group is screened out based on the matching weights between each period curve in each curve group to be tested.

[0084] Preferably, in one embodiment of the present invention, the method for obtaining the preferred curve group includes:

[0085] In each curve group to be tested, if the matching weights between the periodic curves are greater than or equal to a preset matching weight threshold, the corresponding periodic curves constitute a preferred curve group.

[0086] It should be noted that, in one embodiment of the present invention, the preset matching weight threshold takes an empirical value of 0.7; in other embodiments of the present invention, the size of the preset matching weight threshold can be set according to specific circumstances, which is not limited or elaborated here.

[0087] Step S5: Cleaning the metering parameters according to the preferred curve group.

[0088] Data cleaning based on the preferred curve group can more easily identify abnormal values ​​and handle them appropriately to ensure the accuracy and reliability of the data, while improving the efficiency and effectiveness of the analysis, and can help users quickly identify key information and understand the data characteristics and trends of user power requirements. Therefore, the metering parameters are cleaned according to the preferred curve group of each curve array to be measured.

[0089] It should be noted that, in the embodiment of the present invention, after selecting the preferred curve group of each curve group to be measured, the mean of all measurement parameters at each monitoring moment is calculated as the preferred data at each monitoring moment; the preferred data at all monitoring moments are obtained to form the preferred curve of the preferred curve group; and the data loss caused by data cleaning is reduced.

[0090] After obtaining the optimal curve, the optimal curve is packaged with the corresponding cycle number and cycle name and transmitted to the central computer through the MCU chip.

[0091] In summary, the present invention obtains the fluctuation degree evaluation of each periodic curve according to the fluctuation characteristics of the data points in each periodic curve; obtains the cumulative cost matrix between each periodic curve according to the relative distance of the data points between each periodic curve in each curve group to be tested, and further obtains the shortest matching path in the cumulative cost matrix; obtains multiple deformation regions according to the position characteristics of the elements in the neighborhood range of each element in the shortest matching path; obtains the local deformation degree according to the numerical characteristics of the elements in each deformation region; obtains the matching weight between each periodic curve according to the difference in the fluctuation degree evaluation between each periodic curve, the number of elements in each deformation region and the local deformation degree; further selects the preferred curve group; and cleans the metering parameters. The present invention improves the effect of data cleaning by adaptively weighting the matching distance of each data point between cycles.

[0092] The present invention also proposes a metering parameter intelligent cleaning system based on a built-in MCU carrier chip, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any one of the steps of a metering parameter intelligent cleaning method based on a built-in MCU carrier chip.

[0093] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0094] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for intelligent cleaning of metering parameters based on a self-contained MCU carrier chip, characterized in that: The method comprises: Obtain the metering parameters of the data metering system at each monitoring moment in each cycle to form data points in each cycle curve; According to the fluctuation characteristics of the data points in each periodic curve, a fluctuation degree evaluation of each periodic curve is obtained; according to the difference of the fluctuation degree evaluation between each periodic curve, a plurality of curve groups to be tested are obtained; In each curve group to be tested, according to the relative distance of the data points between each periodic curve, the cumulative cost matrix between each periodic curve is obtained, and the shortest matching path in the cumulative cost matrix is ​​obtained; according to the position characteristics of the elements within the neighborhood range of each element in the shortest matching path, multiple deformation regions are obtained; Obtain the local deformation degree according to the numerical characteristics of the elements in each deformation area; obtain the matching weight between each periodic curve according to the difference in the fluctuation degree evaluation between each periodic curve, the number of elements in each deformation area and the local deformation degree; and select the preferred curve group according to the matching weight between each periodic curve in each curve group to be tested; Cleaning the metering parameters according to the preferred curve group; The method for obtaining the fluctuation degree evaluation includes: The AMPD algorithm is used to obtain the maximum value of the data point on each cycle curve; The volatility evaluation is obtained according to the volatility evaluation acquisition formula, and the volatility evaluation acquisition formula is: ; Represents a periodic curve Evaluation of the degree of volatility; Indicates Metrics of data points; Indicates Metrics of data points; Indicates the serial number corresponding to the maximum data point; Indicates The maximum data point corresponds to the monitoring moment; Indicates The maximum data point corresponds to the monitoring moment; Represents a periodic curve The number of data points above; Represents a periodic curve The mean of all measurement parameters above; Represents a periodic curve The standard deviation of all measurement parameters above; represents the maximum value function; Represents the averaging function.

2. According to claim 1, a metering parameter intelligent cleaning method based on a built-in MCU carrier chip is characterized in that: The method for obtaining the curve group to be measured includes: Selecting any one of the periodic curves as the target periodic curve, and calculating the difference between the target periodic curve and each of the remaining periodic curves in the fluctuation degree evaluation as the first eigenvalue; Calculate the product of each remaining periodic curve and a preset ratio as the second eigenvalue; If the first eigenvalue of the periodic curve is less than or equal to the corresponding second eigenvalue, grouping the corresponding periodic curve into a type of curve group to be tested; Continue to select ungrouped periodic curves as target periodic curves until all periodic curves are grouped to obtain multiple curve groups to be tested.

3. According to claim 1, a metering parameter intelligent cleaning method based on a built-in MCU carrier chip is characterized in that: The method for obtaining the cumulative cost matrix includes: In each curve group to be tested, the DTW algorithm is used to obtain the relative distance between the data points of each periodic curve as an element constituting the cumulative cost matrix.

4. According to claim 1, a metering parameter intelligent cleaning method based on a built-in MCU carrier chip is characterized in that: The method for obtaining the shortest matching path includes: Among all the paths from the lower left corner to the upper right corner of the cumulative growth matrix, the path with the smallest sum of relative distances is selected as the shortest matching path.

5. The method for intelligent cleaning of metering parameters based on a self-contained MCU carrier chip according to claim 1 is characterized in that: The method for obtaining the deformation area includes: For a neighborhood range of each element in the shortest matching path, other elements in the shortest matching path are taken as similar elements, and similar elements of each element are obtained to form a deformation region; the shortest matching path is traversed to obtain multiple deformation regions.

6. The method for intelligent cleaning of metering parameters based on a self-contained MCU carrier chip according to claim 1 is characterized in that: The method for obtaining the local deformation degree includes: The mean of the elements in each deformation area is calculated as the local deformation degree.

7. The method for intelligent cleaning of metering parameters based on a self-contained MCU carrier chip according to claim 1 is characterized in that: The method for obtaining the matching weight includes: In each curve group to be tested, the difference in the fluctuation degree evaluation between curves of different periods is calculated to obtain a first weight; Normalize the number of elements in each deformation region, and negatively map the normalized result as the first normalized value; Normalizing the local deformation degree, and performing negative correlation mapping on the normalized result as a second normalized value; Calculating the product of the first normalized value and the second normalized value, and accumulating the product results of all deformation areas to obtain a second weight; The product of the first weight and the second weight is calculated and normalized to obtain the matching weight between the periodic curves.

8. The method for intelligent cleaning of metering parameters based on a self-contained MCU carrier chip according to claim 1 is characterized in that: The method for obtaining the preferred curve group includes: In each curve group to be tested, if the matching weights between the periodic curves are greater than or equal to a preset matching weight threshold, the corresponding periodic curves constitute a preferred curve group.

9. A metering parameter intelligent cleaning system based on a self-contained MCU carrier chip, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the intelligent cleaning method of metering parameters based on a built-in MCU carrier chip as described in any one of claims 1 to 8 are implemented.