A type I concentrator terminal with real-time data monitoring function

By designing data collection, sequence division, anomaly detection and data monitoring modules in the concentrator terminal, adaptive cleaning of time series data is realized, which solves the real-time problem of traditional concentrators in processing noise and outliers, and improves data quality. Monitoring efficiency and accuracy.

CN118520234BActive Publication Date: 2024-10-01SHANDONG DEYUAN POWER TECHNOLOGY CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961464.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-01
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Traditional concentrators have problems such as low monitoring efficiency, poor real-time performance and insufficient data processing capabilities during the data monitoring process. It is especially difficult to handle noise values ​​and outliers in time series data, resulting in reduced real-time performance.

Method used

An I-type concentrator terminal with real-time data monitoring function is designed, including a data acquisition module, a sequence division module, an anomaly detection module and a data monitoring module. The adaptive window is obtained by analyzing the volatility, periodicity and trend of the time series. length, perform local sampling and abnormal data detection, use adaptive thresholds for data cleaning, and obtain the cleaned time series for monitoring.

Benefits of technology

Through the adaptive data cleaning method, abnormal data is effectively processed, the timeliness and accuracy of data monitoring are improved, and the demand for high precision and real-time performance of modern power systems is met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520234B_ABST
    Figure CN118520234B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and in particular to a type I concentrator terminal with a real-time data monitoring function, comprising a data acquisition module for obtaining a time series sequence of any monitoring data monitored by the type I concentrator terminal; a sequence division module for performing local sampling on the time series sequence to obtain at least two data sub-segments; an anomaly detection module for respectively obtaining first abnormal data or second abnormal data in each data sub-segment; and a data monitoring module for performing a data cleaning operation on the first abnormal data or the second abnormal data in each data sub-segment to obtain a time series sequence after data cleaning, and performing data monitoring according to the time series sequence after data cleaning, thereby improving the effect of data cleaning and making subsequent real-time data monitoring based on the cleaned time series sequence more timely and accurate.
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 processing, and in particular to a type I concentrator terminal with a real-time data monitoring function. Background Art

[0002] In the field of modern power systems and remote monitoring, concentrators play a vital role as the core management and control equipment of remote centralized meter reading systems. Concentrators are responsible for functions such as regular reading of terminal data, system command transmission, data communication, network management, event recording, and horizontal transmission of data. They are the key to ensuring the stable operation of the power system and accurate data transmission. However, with the rapid development of smart grid and Internet of Things technologies, higher requirements are placed on the real-time data monitoring capabilities of concentrators. Traditional concentrators have some shortcomings in data monitoring, such as low monitoring efficiency, poor real-time performance, and insufficient data processing capabilities. They are difficult to meet the modern power system's demand for high-precision and high-real-time data monitoring.

[0003] When processing data, traditional concentrators often process the collected data directly. Since there are noise values ​​and abnormal values ​​in the collected time series data, if data cleaning is not performed, the system will need extra time to process these invalid data, thereby increasing the total data processing time and causing a decrease in real-time performance. Traditional data cleaning usually uses the threshold method, but since the abnormal data in the data is divided into mutation data and long-term unchanged data, the traditional threshold method cannot solve the above problem.

[0004] Therefore, how to clean abnormal data in the monitoring data before the concentrator processes the monitoring data becomes an urgent problem to be solved. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a type I concentrator terminal with a real-time data monitoring function to solve the problem of how to clean abnormal data in the monitoring data before the concentrator processes the monitoring data.

[0006] An embodiment of the present invention provides a type I concentrator terminal with a real-time data monitoring function, including:

[0007] A data acquisition module, used to obtain a time sequence of any type of monitoring data monitored by the type I concentrator terminal;

[0008] A sequence partitioning module, used to analyze the volatility, periodicity and trend of the data changes in the time series, obtain the adaptive window length of the time series, perform local sampling on the time series using the adaptive window length and a preset sampling step, and sequentially obtain at least two data sub-segments;

[0009] an abnormality detection module, for any data sub-segment, counting the number of consecutive identical data in the data sub-segment, if the number is greater than a preset ratio of the length of the data sub-segment, marking the consecutive identical data in the data sub-segment as first abnormal data, if the number is not greater than a preset ratio of the length of the data sub-segment, obtaining a previous data sub-segment of the data sub-segment, obtaining an adaptive threshold of the data sub-segment according to the previous data sub-segment, and obtaining second abnormal data in the data sub-segment using the adaptive threshold of the data sub-segment;

[0010] The data monitoring module is used to respectively obtain the first abnormal data or the second abnormal data in each of the data sub-segments, perform a data cleaning operation on the first abnormal data or the second abnormal data in each of the data sub-segments, obtain a time series sequence after data cleaning, and perform data monitoring according to the time series sequence after data cleaning.

[0011] Preferably, the sequence division module analyzes the volatility, periodicity and trend of the data changes in the time series to obtain the adaptive window length of the time series, including:

[0012] Calculate the variance of all data in the time series, normalize the variance to obtain a corresponding normalized value, obtain a length interval of the experience window, obtain an absolute value of a difference between a maximum value and a minimum value of the length interval, obtain a product of the absolute value of the difference and the normalized value, and use the sum of the product and the minimum value of the length interval as a first recommended window length for the time series;

[0013] Using the autocorrelation coefficient to obtain the period length of the time series as the second recommended window length of the time series;

[0014] Obtaining the difference between every two adjacent data in the time series to obtain a difference sequence, and counting the length of consecutive positive differences, the length of consecutive negative differences, and the length of consecutive 0 differences in the difference sequence to obtain a maximum length and a minimum length;

[0015] According to the first recommended window length, the second recommended window length, the maximum length and the minimum length, a recommended window length interval of the time series is obtained, and an adaptive window length of the time series is obtained by screening in the recommended window length interval.

[0016] Preferably, the sequence division module obtains the recommended window length interval of the time series according to the first recommended window length, the second recommended window length, the maximum length and the minimum length, including:

[0017] The first recommended window length and the second recommended window length are combined into a first length interval, the maximum length and the minimum length are combined into a second length interval, and the intersection between the first length interval and the second length interval is obtained as the recommended window length interval of the time series.

[0018] Preferably, the sequence division module selects and obtains the adaptive window length of the time series in the recommended window length interval, including:

[0019] For any window length in the recommended window length interval, a preset proportion of the window length is used as a step length, and sampling is performed in the time series sequence using the window length and the step length to obtain at least one window subsequence, and the variance of each window subsequence is obtained respectively to obtain an average value of the variance and a variance of the variance, and the product of the average value of the variance and the variance of the variance is used as a characteristic value of the window length;

[0020] The characteristic value of each window length in the recommended window length interval is obtained, and the window length corresponding to the minimum characteristic value is used as the adaptive window length of the time series.

[0021] Preferably, the abnormality detection module acquires the adaptive threshold of the data sub-segment according to the previous data sub-segment, including:

[0022] Detecting whether the previous data subsegment has an adaptive threshold, if it is detected that the previous data subsegment has an adaptive threshold, obtaining a first mean and a first standard deviation of the previous data subsegment and a second mean and a second standard deviation of the data subsegment, obtaining a mean change rate according to the first mean and the second mean, obtaining a standard deviation change rate according to the first standard deviation and the second standard deviation, and if both the mean change rate and the standard deviation change rate meet a preset change rate threshold, setting the adaptive threshold of the data subsegment to be equal to the adaptive threshold of the previous data subsegment;

[0023] If the mean change rate and the standard deviation change rate do not meet the preset change rate threshold, a statistical histogram of the data sub-segment is constructed, and a statistical change curve and a normal distribution curve are obtained according to the statistical histogram. According to the correlation between the statistical change curve and the normal distribution curve, an adaptive threshold of the data sub-segment is obtained.

[0024] Preferably, the abnormality detection module acquires the adaptive threshold of the data subsegment according to the correlation between the statistical change curve and the normal distribution curve, including:

[0025] Obtaining a correlation coefficient between the statistical change curve and the normal distribution curve, obtaining a preset first correlation threshold and a second correlation threshold, wherein the first correlation threshold is less than the second correlation threshold, and if the absolute value of the correlation coefficient is greater than the second correlation threshold, obtaining an adaptive threshold of the data subsegment according to the Laida criterion;

[0026] If the absolute value of the correlation coefficient is less than the first correlation threshold, the adaptive threshold of the data sub-segment is a preset empirical value; if the absolute value of the correlation coefficient is in the threshold interval composed of the first correlation threshold and the second correlation threshold, then based on the one-to-one correspondence between the threshold interval and the preset data threshold interval, the adaptive threshold of the data sub-segment is obtained in the data threshold interval.

[0027] Preferably, the abnormality detection module uses the adaptive threshold of the data sub-segment to obtain the second abnormal data in the data sub-segment, including:

[0028] Using the adaptive threshold of the data subsegment as the adaptive threshold of each data in the data subsegment, detecting whether each data in the data subsegment corresponds to two adaptive thresholds, and if it is detected that any data in the data subsegment corresponds to two adaptive thresholds, selecting the minimum value among the two adaptive thresholds as the adaptive threshold of the data;

[0029] For any data in the data sub-segment, if the data is greater than or equal to an adaptive threshold corresponding to the data, the data is determined to be second abnormal data.

[0030] Preferably, the data monitoring module performs a data cleaning operation on the first abnormal data or the second abnormal data in each of the data sub-segments to obtain a time series sequence after data cleaning, including:

[0031] All data sub-segments containing first abnormal data are eliminated in the time series sequence, and for any data sub-segment containing second abnormal data in the time series sequence, the data mean of the data sub-segment is obtained, and the second abnormal data in the data sub-segment is replaced with the data mean, so as to obtain a time series sequence after data cleaning.

[0032] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0033] The present invention provides a type I concentrator terminal with a real-time data monitoring function, comprising a data acquisition module for acquiring a time series of any type of monitoring data monitored by the type I concentrator terminal; a sequence division module for analyzing the volatility, periodicity and trend of data changes in the time series, acquiring an adaptive window length of the time series, and performing local sampling on the time series using the adaptive window length and a preset sampling step length to sequentially obtain at least two data sub-segments; an anomaly detection module for counting the number of consecutive identical data in any data sub-segment, and if the number is greater than a preset proportion of the length of the data sub-segment, the anomaly detection module is used to count the number of consecutive identical data in the data sub-segment. The continuous identical data in the data sub-segment is marked as the first abnormal data. If the number is not greater than a preset proportion of the length of the data sub-segment, the previous data sub-segment of the data sub-segment is obtained, and the adaptive threshold of the data sub-segment is obtained according to the previous data sub-segment. The second abnormal data in the data sub-segment is obtained by using the adaptive threshold of the data sub-segment; a data monitoring module is used to respectively obtain the first abnormal data or the second abnormal data in each of the data sub-segments, perform a data cleaning operation on the first abnormal data or the second abnormal data in each of the data sub-segments, obtain a time series sequence after data cleaning, and perform data monitoring according to the time series sequence after data cleaning. Among them, due to the different operating states of the equipment, its local abnormal conditions are also different, and the corresponding abnormal data generated are also different, including local mutation values ​​and long-term constant values. Therefore, by adaptively constructing a sliding window of the time series sequence of the monitoring data, according to the statistical characteristics and change characteristics of the data values ​​in the sliding window, the first abnormal data or the second abnormal data in the data sub-segment corresponding to each sliding window is detected, so that the first abnormal data or the second abnormal data in the data sub-segment corresponding to each sliding window is cleaned in a targeted manner, so that the data cleaning effect is better, and the timeliness and accuracy of the subsequent real-time data monitoring based on the cleaned time series sequence are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be 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 labor.

[0035] Figure 1 This is a structural block diagram of a type I concentrator terminal with a real-time data monitoring function provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, but should not be understood as limiting the present disclosure.

[0037] It should be noted that the terms "first", "second", etc. in the specification of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure.

[0038] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.

[0039] See also Figure 1 , is a structural block diagram of a type I concentrator terminal with a real-time data monitoring function provided by the first embodiment of the present invention, such as Figure 1 As shown, the Type I concentrator terminal may include:

[0040] The data acquisition module 11 is used to obtain a time sequence of any type of monitoring data monitored by the type I concentrator terminal.

[0041] The main monitoring data of Type I concentrator terminal in the power system include but are not limited to:

[0042] Electric energy data: such as power, power factor, voltage, current, etc. These data are the basis for evaluating the operating status of the power system and the power consumption of users; grid status information: such as overvoltage, phase loss, phase failure, reverse phase sequence, etc. This information is crucial for monitoring the safety and stability of the power grid.

[0043] Type I concentrator terminals collect data in the following ways. You can choose any one of them to collect data:

[0044] 485 bus communication: Establish communication connection with multiple energy meters through 485 bus controller to realize the collection and transmission of energy data. This method has the characteristics of stable communication and high reliability. Wireless communication: Use wireless communication methods such as Bluetooth, Zigbee, LoRa or power carrier to establish connection with energy meters to realize data collection and transmission. This method has the advantages of strong flexibility and convenient installation, but may be affected by environmental interference.

[0045] During data collection, you may encounter the following types of exceptions:

[0046] Data mutation: such as power reversed or lost, which may be caused by equipment failure or external environment interference; data unchanged for a long time: such as power stopped, which may be caused by equipment failure or communication interruption.

[0047] In the embodiment of the present invention, the monitoring data that remains unchanged for a long time is taken as the first abnormal data, and the monitoring data that changes suddenly is taken as the second abnormal data.

[0048] Based on the above analysis, taking a type of monitoring data monitored by a type I concentrator terminal as an example, the time series of the monitoring data is obtained for subsequent data cleaning of the time series, thereby achieving the purpose of real-time data monitoring.

[0049] The sequence division module 12 is used to analyze the volatility, periodicity and trend of the data changes in the time series sequence, obtain the adaptive window length of the time series sequence, and locally sample the time series sequence using the adaptive window length and a preset sampling step to obtain at least two data sub-segments in sequence.

[0050] After obtaining the time series sequence, a sliding window of the time series sequence is constructed according to the volatility, periodicity and trend of the data changes in the time series sequence, which is used to detect the first abnormal data and the second abnormal data according to the data in the sliding window, wherein the magnitude of volatility reflects the randomness and instability of the data, and data with large fluctuations may contain more noise and outliers, and therefore require a larger window for auxiliary analysis; periodicity reflects the pattern of data repeating over a period of time. If periodicity exists, selecting a window that is close to the periodicity can better reflect the periodic characteristics of the data and make better use of the detection of outliers; trend reflects the overall change of the data, and analysis under the same trend can better obtain outliers; therefore, in an embodiment of the present invention, the adaptive window length of the time series sequence is obtained by analyzing the window distribution of the time series data under volatility, periodicity and trend.

[0051] The specific process of obtaining the adaptive window length of the time series is as follows:

[0052] (1) Calculate the variance of all data in the time series, normalize the variance to obtain a corresponding normalized value, obtain the length interval of the experience window, obtain the absolute value of the difference between the maximum value and the minimum value of the length interval, obtain the product of the absolute value of the difference and the normalized value, and use the sum of the product and the minimum value of the length interval as the first recommended window length of the time series.

[0053] In one embodiment, for the volatility of the time series, the variance of all the data in the time series is obtained. The larger the variance, the greater the volatility of the data in the time series. The length interval of the experience window is obtained according to big data statistics, and is recorded as ,in Respectively represent the minimum and maximum values ​​of the experience window. Due to different data types, the specific experience values ​​are not given here. Then use the Norm function to normalize the variance to obtain the corresponding normalized value, and at the same time obtain the absolute value of the difference between the minimum and maximum values ​​of the experience window. , and then obtain the product between the normalized value and the absolute value of the difference, and take the sum of the product and the minimum value of the experience window as the first recommended window length of the time series under the volatility characteristics, denoted as .

[0054] (2) Using the autocorrelation coefficient, the period length of the time series is obtained as the second recommended window length of the time series.

[0055] In one embodiment, a periodicity analysis algorithm is used to obtain the periodicity of the time series, wherein the periodicity can be obtained by using an autocorrelation coefficient, and the autocorrelation coefficient represents the correlation coefficient value between time series with an interval of K, wherein the autocorrelation coefficient belongs to the prior art and is not described here. The interval K corresponding to the largest autocorrelation coefficient is used as the approximate period length of the time series, which is recorded as , and the approximate period length is taken as the second recommended window length for time series with periodic characteristics.

[0056] (3) Obtain the difference between every two adjacent data in the time series to obtain a difference sequence, and count the length of consecutive positive differences, the length of consecutive negative differences, and the length of consecutive 0 differences in the difference sequence to obtain a maximum length and a minimum length.

[0057] In one embodiment, the trend of the time series can be obtained according to the change of the data value of the time series, specifically: assuming that the first data value a1 of the time series sequence {a1, a2, a3, ..., an} is the target value, the next value a2 is compared with a1, if it is greater than a1, it is recorded as +, if it is less than a1, it is recorded as -, and if it is equal to a1, it is recorded as 0. After the comparison is completed, a3 is compared with a2, and the marking method is the same. By analogy, the length of consecutive identical symbols is counted, that is, the continuous length of the symbol +, the continuous length of the symbol -, and the continuous length of the symbol 0. According to all the statistical lengths, the minimum length and the maximum length are obtained, which are recorded as .

[0058] (4) Obtaining a recommended window length interval of the time series according to the first recommended window length, the second recommended window length, the maximum length, and the minimum length, and obtaining an adaptive window length of the time series by screening the recommended window length interval.

[0059] The step of acquiring the recommended window length interval of the time series according to the first recommended window length, the second recommended window length, the maximum length, and the minimum length includes:

[0060] The first recommended window length and the second recommended window length are combined into a first length interval, the maximum length and the minimum length are combined into a second length interval, and the intersection between the first length interval and the second length interval is obtained as the recommended window length interval of the time series.

[0061] In one embodiment, the first recommended window length and the second recommended window length Combined into a first length interval , the minimum length and maximum length Form a second length interval , get the interval and The intersection of is taken as the recommended window length interval of the time series, denoted as It should be noted that the adaptive window length of the time series is from the recommended window length interval Select in.

[0062] The step of selecting the adaptive window length of the time series in the recommended window length interval includes:

[0063] For any window length in the recommended window length interval, a preset proportion of the window length is used as a step length, and sampling is performed in the time series sequence using the window length and the step length to obtain at least one window subsequence, and the variance of each window subsequence is obtained respectively to obtain an average value of the variance and a variance of the variance, and the product of the average value of the variance and the variance of the variance is used as a characteristic value of the window length;

[0064] The characteristic value of each window length in the recommended window length interval is obtained, and the window length corresponding to the minimum characteristic value is used as the adaptive window length of the time series.

[0065] In one embodiment, in the recommended window length interval Choose any length value from , in the time series is the window length and the step size is Acquire data, obtain multiple window subsequences, calculate the variance of each window subsequence, and calculate the mean of the variance based on the variance of all window subsequences and the variance of the variance The mean of the variance indicates the average fluctuation length of several window subsequences. The smaller the average fluctuation length, the better. The variance of the variance indicates the fluctuation change of several window subsequences. The smaller the variance of the variance, the better. Therefore, the mean of the variance is obtained. and the variance of the variance The product between is the window length Similarly, obtain the recommended window length interval The eigenvalue of each window length in is selected, and the window length corresponding to the minimum eigenvalue is selected as the adaptive window length of the time series, which is recorded as L.

[0066] Furthermore, after obtaining the adaptive window length of the time series, local sampling analysis is performed on the time series according to the adaptive window. Starting from the first data value in the time series, the sampling window size is L and the sampling step length is , multiple window data are collected, one window corresponds to one data sub-segment. It should be noted that there are repeated parts between adjacent windows, and the repeated parts can better capture the changing trend of the data.

[0067] At this point, the time series sequence is divided into multiple data sub-segments.

[0068] The anomaly detection module 13 is used to count the number of consecutive identical data in any data sub-segment, and if the number is greater than a preset proportion of the length of the data sub-segment, mark the consecutive identical data in the data sub-segment as first abnormal data; if the number is not greater than a preset proportion of the length of the data sub-segment, obtain the previous data sub-segment of the data sub-segment, obtain an adaptive threshold of the data sub-segment based on the previous data sub-segment, and use the adaptive threshold of the data sub-segment to obtain the second abnormal data in the data sub-segment.

[0069] The purpose of segmenting the time series is to better capture the changing trend of the data, so as to detect the first abnormal data or the second abnormal data in each data sub-segment according to the statistical characteristics and changing characteristics of each data sub-segment. Therefore, in the embodiment of the present invention, for any data sub-segment, the data invariance of the data sub-segment is first judged, that is, the number of consecutive identical data in the data sub-segment is obtained. If the number exceeds half of the length of the data sub-segment, it is determined that the long-term data invariance feature appears in the data sub-segment. At this time, these consecutive identical data in the data sub-segment are marked as the first abnormal data; conversely, if the number does not exceed half of the length of the data sub-segment, it means that the data sub-segment does not meet the long-term data invariance feature, and then the previous data sub-segment before the data sub-segment can be obtained. For example, if the data sub-segment is the i-th data sub-segment, the previous data sub-segment is the i-1-th data sub-segment, and the adaptive threshold of the data sub-segment is obtained according to the previous data sub-segment, and the second abnormal data in the data sub-segment is obtained using the adaptive threshold of the data sub-segment.

[0070] The step of obtaining the adaptive threshold of the data sub-segment according to the previous data sub-segment includes:

[0071] Detecting whether the previous data subsegment has an adaptive threshold, if it is detected that the previous data subsegment has an adaptive threshold, obtaining a first mean and a first standard deviation of the previous data subsegment and a second mean and a second standard deviation of the data subsegment, obtaining a mean change rate according to the first mean and the second mean, obtaining a standard deviation change rate according to the first standard deviation and the second standard deviation, and if both the mean change rate and the standard deviation change rate meet a preset change rate threshold, setting the adaptive threshold of the data subsegment to be equal to the adaptive threshold of the previous data subsegment;

[0072] If the mean change rate and the standard deviation change rate do not meet the preset change rate threshold, a statistical histogram of the data sub-segment is constructed, and a statistical change curve and a normal distribution curve are obtained according to the statistical histogram. According to the correlation between the statistical change curve and the normal distribution curve, an adaptive threshold of the data sub-segment is obtained.

[0073] In one embodiment, for the first data sub-segment among the obtained multiple data sub-segments, the above-mentioned first abnormal data detection method is first used to detect whether the first data sub-segment does not meet the characteristics of long-term data invariance. If not, a statistical histogram is constructed based on the data in the first data sub-segment, the ordinate of the statistical histogram is the number of corresponding data, and the abscissa represents the value of the data. A statistical change curve is constructed based on the statistical histogram, wherein the construction of the statistical histogram belongs to the prior art and will not be repeated here. Considering that the data of the first data sub-segment presents a normal distribution, it can be based on the Laida criterion ( The abnormal data is acquired according to the criterion, therefore, the corresponding normal distribution curve is generated according to the horizontal coordinate of the statistical histogram, and the correlation between the statistical change curve and the normal distribution curve is obtained by means such as the Pearson correlation coefficient, so as to obtain the adaptive threshold of the first data sub-segment according to the correlation. It should be noted that if the first data sub-segment does not have an adaptive threshold, the first abnormal data in the first data sub-segment has been detected. On the contrary, when the first data sub-segment has an adaptive threshold, the first abnormal data does not exist in the first data sub-segment, and the second abnormal data needs to be acquired through the adaptive threshold.

[0074] When analyzing the second data sub-segment, the data invariance of the second data sub-segment is first determined. When it is determined that the second data sub-segment does not meet the characteristics of long-term data invariance, if the first data sub-segment does not detect the first abnormal data, that is, the adaptive threshold is obtained, then the first mean and the first standard deviation of the first data sub-segment and the second mean and the second standard deviation of the second data sub-segment are obtained, the absolute value of the difference between the first mean and the second mean is calculated, and the ratio between the absolute value of the difference and the first mean is obtained, and the ratio is multiplied by 100% to obtain the mean change rate. Similarly, the absolute value of the difference between the first standard deviation and the second standard deviation is calculated, and the ratio between the absolute value of the difference and the first standard deviation is obtained, and the ratio is multiplied by 100% to obtain the standard deviation change rate.

[0075] The change rate threshold is set to an empirical value of 20%. When both the mean change rate and the standard deviation change rate are less than or equal to 20%, the adaptive threshold of the second data sub-segment is set equal to the adaptive threshold of the first data sub-segment. On the contrary, when at least one of the mean change rate or the standard deviation change rate is greater than 20%, it indicates that the second data sub-segment has undergone a significant change. At this time, the adaptive threshold of the second data sub-segment needs to be adjusted to reflect this change. Therefore, according to the method for obtaining the adaptive threshold of the first data sub-segment, the adaptive threshold of the second data sub-segment is obtained, thereby obtaining the adaptive threshold of the second data sub-segment. It should be noted that the absence of an adaptive threshold for the previous data sub-segment of any data sub-segment means that the first abnormal data in the previous data sub-segment has been detected, and there is no need to obtain an adaptive threshold.

[0076] By analogy, when analyzing the i-th data sub-segment, first determine whether the i-th data sub-segment meets the characteristics of long-term data invariance. If not, then determine whether the i-1-th data sub-segment has an adaptive threshold. If the i-1-th data sub-segment has an adaptive threshold, then obtain the adaptive threshold of the i-th data sub-segment based on the mean change rate and standard deviation change rate between the i-1-th data sub-segment and the i-th data sub-segment.

[0077] Preferably, obtaining the adaptive threshold of the data subsegment according to the correlation between the statistical change curve and the normal distribution curve includes:

[0078] Obtaining a correlation coefficient between the statistical change curve and the normal distribution curve, obtaining a preset first correlation threshold and a second correlation threshold, wherein the first correlation threshold is less than the second correlation threshold, and if the absolute value of the correlation coefficient is greater than the second correlation threshold, obtaining an adaptive threshold of the data subsegment according to the Laida criterion;

[0079] If the absolute value of the correlation coefficient is less than the first correlation threshold, the adaptive threshold of the data sub-segment is a preset empirical value; if the absolute value of the correlation coefficient is in the threshold interval composed of the first correlation threshold and the second correlation threshold, then based on the one-to-one correspondence between the threshold interval and the preset data threshold interval, the adaptive threshold of the data sub-segment is obtained in the data threshold interval.

[0080] In one embodiment, taking the first data sub-segment as an example, after obtaining the correlation between the statistical change curve and the normal distribution curve by means such as the Pearson correlation coefficient, the value range of the correlation is [-1, 1], wherein the larger the absolute value of the correlation is, the stronger the correlation is, therefore, the first correlation threshold is set to 0.5 and the second correlation threshold is set to 0.8. When the statistical histogram of the first data sub-segment conforms to the normal distribution, it conforms to the Laida criterion, wherein the absolute value of the correlation under empirical conditions is greater than 0.8, and also when the correlation between the statistical change curve and the normal distribution curve is greater than 0.8, it indicates a strong correlation relationship, and the adaptive threshold of the first data sub-segment is obtained in full accordance with the Laida criterion. The threshold obtained according to the Laida criterion belongs to the prior art and will not be repeated here.

[0081] When the correlation between the statistical change curve and the normal distribution curve is between [0.5, 0.8], it is a moderate correlation, and the adaptive threshold of the data sub-segment is within the preset data threshold interval. Choose between Data threshold interval A one-to-one correspondence is performed, and then the corresponding threshold is obtained in the data threshold interval according to the calculated correlation as the adaptive threshold of the first data sub-segment. When the correlation between the statistical change curve and the normal distribution curve is less than 0.5, the empirical value is selected as the adaptive threshold of the first data sub-segment, thereby obtaining the adaptive threshold of the first data sub-segment according to the statistical characteristics of the first data sub-segment.

[0082] Further, after determining that the data sub-segment does not meet the feature of long-term data invariance and obtaining the adaptive threshold of the data sub-segment, the adaptive threshold of the data sub-segment can be used to obtain the second abnormal data in the data sub-segment, including:

[0083] Using the adaptive threshold of the data subsegment as the adaptive threshold of each data in the data subsegment, detecting whether each data in the data subsegment corresponds to two adaptive thresholds, and if it is detected that any data in the data subsegment corresponds to two adaptive thresholds, selecting the minimum value among the two adaptive thresholds as the adaptive threshold of the data;

[0084] For any data in the data sub-segment, if the data is greater than or equal to an adaptive threshold corresponding to the data, the data is determined to be second abnormal data.

[0085] In one embodiment, the adaptive threshold of the data subsegment is used as the adaptive threshold of each data in the data subsegment. However, considering that there is a repeated part between two adjacent data subsegments, and each data in the repeated part will have two adaptive thresholds, that is, when the two adjacent data subsegments do not meet the characteristics of long-term data invariance, there is an adaptive threshold for each of the two adjacent data subsegments, and there are two adaptive thresholds for each data in the repeated part between the two adjacent data subsegments. Therefore, it is detected whether each data in the data subsegment corresponds to two adaptive thresholds. If it is detected that any data in the data subsegment corresponds to two adaptive thresholds, the minimum value of the two adaptive thresholds is selected as the adaptive threshold of the data. At this point, the adaptive threshold of each data in the data subsegment is obtained, and one data corresponds to one adaptive threshold. Then, for any data in the data subsegment, if the data is greater than or equal to the adaptive threshold corresponding to the data, the data is determined to be the second abnormal data, thereby obtaining all the second abnormal data in the data subsegment.

[0086] The data monitoring module 14 is used to respectively obtain the first abnormal data or the second abnormal data in each of the data sub-segments, perform data cleaning operations on the first abnormal data or the second abnormal data in each of the data sub-segments, obtain a time series sequence after data cleaning, and perform data monitoring according to the time series sequence after data cleaning.

[0087] The first abnormal data or the second abnormal data in each data sub-segment is obtained by using the abnormal detection module 13. When the data sub-segment meets the characteristics of long-term data invariance, the first abnormal data is detected. On the contrary, when the data sub-segment does not meet the characteristics of long-term data invariance, the second abnormal data is detected. Then, the first abnormal data or the second abnormal data in each data sub-segment is cleaned to obtain a time series after data cleaning. The specific data cleaning process is:

[0088] All data sub-segments containing first abnormal data are eliminated in the time series sequence, and for any data sub-segment containing second abnormal data in the time series sequence, the data mean of the data sub-segment is obtained, and the second abnormal data in the data sub-segment is replaced with the data mean, so as to obtain a time series sequence after data cleaning.

[0089] In one embodiment, if first abnormal data is detected in a data sub-segment, the data sub-segment is removed from the time series sequence; if second abnormal data is detected in the data sub-segment, the data mean of all data in the data sub-segment is calculated, and the data mean is used to replace the second abnormal data in the data sub-segment, thereby obtaining a time series sequence after data cleaning.

[0090] Further, after obtaining the time series sequence after data cleaning, data monitoring is performed according to the time series sequence after data cleaning. Specifically, features are extracted from the time series sequence after data cleaning for data monitoring. Data monitoring includes but is not limited to data prediction and anomaly monitoring, for example: using the time series sequence after data cleaning to train a neural network model (such as an isolation forest model) for anomaly monitoring; or, using the time series sequence after data cleaning to perform data prediction and analysis, that is, by predicting and outputting a predicted value, identifying abnormal values ​​or abnormal trends according to the difference between the actual value and the predicted value, and issuing an early warning, thereby achieving the function of real-time data monitoring. It should be noted that data monitoring according to the time series sequence after data cleaning is not the focus of the present invention, and belongs to the prior art, and will not be described in detail here.

[0091] In summary, an embodiment of the present invention provides a type I concentrator terminal with a real-time data monitoring function, including a data acquisition module for acquiring a time series of any type of monitoring data monitored by the type I concentrator terminal; a sequence division module for analyzing the volatility, periodicity and trend of data changes in the time series, acquiring an adaptive window length of the time series, and locally sampling the time series using the adaptive window length and a preset sampling step to sequentially obtain at least two data sub-segments; an anomaly detection module for counting the number of consecutive identical data in any data sub-segment, and if the number is greater than a preset ratio of the length of the data sub-segment, the anomaly detection module is used to detect the number of consecutive identical data in the data sub-segment. , the continuous identical data in the data sub-segment are marked as first abnormal data. If the number is not greater than a preset proportion of the length of the data sub-segment, the previous data sub-segment of the data sub-segment is obtained, and the adaptive threshold of the data sub-segment is obtained according to the previous data sub-segment. The second abnormal data in the data sub-segment is obtained by using the adaptive threshold of the data sub-segment; a data monitoring module is used to respectively obtain the first abnormal data or the second abnormal data in each of the data sub-segments, perform data cleaning operations on the first abnormal data or the second abnormal data in each of the data sub-segments, obtain a time series sequence after data cleaning, and perform data monitoring according to the time series sequence after data cleaning. Among them, due to the different operating states of the equipment, its local abnormal conditions are also different, and the corresponding abnormal data generated are also different, including local mutation values ​​and long-term constant values. Therefore, by adaptively constructing a sliding window of the time series sequence of the monitoring data, according to the statistical characteristics and change characteristics of the data values ​​in the sliding window, the first abnormal data or the second abnormal data in the data sub-segment corresponding to each sliding window is detected, so that the first abnormal data or the second abnormal data in the data sub-segment corresponding to each sliding window is cleaned in a targeted manner, so that the data cleaning effect is better, and the timeliness and accuracy of the subsequent real-time data monitoring based on the cleaned time series sequence are improved.

[0092] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A type I concentrator terminal with real-time data monitoring function, characterized in that: The type I concentrator terminal comprises: A data acquisition module, used to obtain a time sequence of any type of monitoring data monitored by the type I concentrator terminal; A sequence partitioning module, used to analyze the volatility, periodicity and trend of the data changes in the time series, obtain the adaptive window length of the time series, perform local sampling on the time series using the adaptive window length and a preset sampling step, and sequentially obtain at least two data sub-segments; an abnormality detection module, for any data sub-segment, counting the number of consecutive identical data in the data sub-segment, if the number is greater than a preset ratio of the length of the data sub-segment, marking the consecutive identical data in the data sub-segment as first abnormal data, if the number is not greater than a preset ratio of the length of the data sub-segment, obtaining a previous data sub-segment of the data sub-segment, obtaining an adaptive threshold of the data sub-segment according to the previous data sub-segment, and obtaining second abnormal data in the data sub-segment using the adaptive threshold of the data sub-segment; A data monitoring module, used to respectively obtain the first abnormal data or the second abnormal data in each of the data sub-segments, perform a data cleaning operation on the first abnormal data or the second abnormal data in each of the data sub-segments to obtain a time series sequence after data cleaning, and perform data monitoring according to the time series sequence after data cleaning; The sequence division module analyzes the volatility, periodicity and trend of data changes in the time series to obtain the adaptive window length of the time series, including: Calculate the variance of all data in the time series, normalize the variance to obtain a corresponding normalized value, obtain a length interval of the experience window, obtain an absolute value of a difference between a maximum value and a minimum value of the length interval, obtain a product of the absolute value of the difference and the normalized value, and use the sum of the product and the minimum value of the length interval as a first recommended window length for the time series; Using the autocorrelation coefficient to obtain the period length of the time series as the second recommended window length of the time series; Obtaining the difference between every two adjacent data in the time series to obtain a difference sequence, and counting the length of consecutive positive differences, the length of consecutive negative differences, and the length of consecutive 0 differences in the difference sequence to obtain a maximum length and a minimum length; According to the first recommended window length, the second recommended window length, the maximum length and the minimum length, a recommended window length interval of the time series is obtained, and an adaptive window length of the time series is obtained by screening in the recommended window length interval.

2. A type I concentrator terminal with real-time data monitoring function according to claim 1, characterized in that: The sequence division module obtains a recommended window length interval of the time series according to the first recommended window length, the second recommended window length, the maximum length, and the minimum length, including: The first recommended window length and the second recommended window length are combined into a first length interval, the maximum length and the minimum length are combined into a second length interval, and the intersection between the first length interval and the second length interval is obtained as the recommended window length interval of the time series.

3. A type I concentrator terminal with real-time data monitoring function according to claim 1, characterized in that: The step of selecting the adaptive window length of the time series in the recommended window length interval in the sequence division module includes: For any window length in the recommended window length interval, a preset proportion of the window length is used as a step length, and sampling is performed in the time series sequence using the window length and the step length to obtain at least one window subsequence, and the variance of each window subsequence is obtained respectively to obtain an average value of the variance and a variance of the variance, and the product of the average value of the variance and the variance of the variance is used as a characteristic value of the window length; The characteristic value of each window length in the recommended window length interval is obtained, and the window length corresponding to the minimum characteristic value is used as the adaptive window length of the time series.

4. The type I concentrator terminal with real-time data monitoring function according to claim 1, characterized in that: The abnormality detection module obtains the adaptive threshold of the data sub-segment according to the previous data sub-segment, including: Detecting whether the previous data subsegment has an adaptive threshold, if it is detected that the previous data subsegment has an adaptive threshold, obtaining a first mean and a first standard deviation of the previous data subsegment and a second mean and a second standard deviation of the data subsegment, obtaining a mean change rate according to the first mean and the second mean, obtaining a standard deviation change rate according to the first standard deviation and the second standard deviation, and if both the mean change rate and the standard deviation change rate meet a preset change rate threshold, setting the adaptive threshold of the data subsegment to be equal to the adaptive threshold of the previous data subsegment; If the mean change rate and the standard deviation change rate do not meet the preset change rate threshold, a statistical histogram of the data sub-segment is constructed, and a statistical change curve and a normal distribution curve are obtained according to the statistical histogram. According to the correlation between the statistical change curve and the normal distribution curve, an adaptive threshold of the data sub-segment is obtained.

5. The type I concentrator terminal with real-time data monitoring function according to claim 4, characterized in that: The abnormality detection module obtains the adaptive threshold of the data subsegment according to the correlation between the statistical change curve and the normal distribution curve, including: Obtaining a correlation coefficient between the statistical change curve and the normal distribution curve, obtaining a preset first correlation threshold and a second correlation threshold, wherein the first correlation threshold is less than the second correlation threshold, and if the absolute value of the correlation coefficient is greater than the second correlation threshold, obtaining an adaptive threshold of the data subsegment according to the Laida criterion; If the absolute value of the correlation coefficient is less than the first correlation threshold, the adaptive threshold of the data sub-segment is a preset empirical value; if the absolute value of the correlation coefficient is in the threshold interval composed of the first correlation threshold and the second correlation threshold, then based on the one-to-one correspondence between the threshold interval and the preset data threshold interval, the adaptive threshold of the data sub-segment is obtained in the data threshold interval.

6. The type I concentrator terminal with real-time data monitoring function according to claim 1, characterized in that: The abnormality detection module uses the adaptive threshold of the data sub-segment to obtain the second abnormal data in the data sub-segment, including: Using the adaptive threshold of the data subsegment as the adaptive threshold of each data in the data subsegment, detecting whether each data in the data subsegment corresponds to two adaptive thresholds, and if it is detected that any data in the data subsegment corresponds to two adaptive thresholds, selecting the minimum value among the two adaptive thresholds as the adaptive threshold of the data; For any data in the data sub-segment, if the data is greater than or equal to an adaptive threshold corresponding to the data, the data is determined to be second abnormal data.

7. The type I concentrator terminal with real-time data monitoring function according to claim 1, characterized in that: The data monitoring module performs a data cleaning operation on the first abnormal data or the second abnormal data in each of the data sub-segments to obtain a time series sequence after data cleaning, including: All data sub-segments containing first abnormal data are eliminated in the time series sequence, and for any data sub-segment containing second abnormal data in the time series sequence, the data mean of the data sub-segment is obtained, and the second abnormal data in the data sub-segment is replaced with the data mean, so as to obtain a time series sequence after data cleaning.