An intelligent analysis method for IoT intelligent service platform data
Through the time series decomposition algorithm and distance parameter correction technology, the connected graph dynamic splitting algorithm is improved, which solves the problem of inaccurate clustering based on a single basis and improves the clustering accuracy and anomaly detection credibility of equipment data.
Patent Information
- Application Number
- CN202410903733.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Existing clustering algorithms based on dynamic splitting of connected graphs cannot accurately reflect the connections between data using a single basis when clustering device data, resulting in inaccurate clustering results and affecting the credibility of anomaly detection.
The time series decomposition algorithm is used to obtain the trend term, seasonal term and residual term of multi-dimensional data, the anomaly degree value and distance factor at each sampling moment are calculated, the distance parameter is constructed based on the distance weight, and the tolerance coefficient is corrected to improve the clustering of the connected graph dynamic splitting algorithm. class result.
It improves the accuracy of data clustering and the credibility of anomaly detection, and obtains more accurate clustering results by comprehensively considering multiple characteristics of the data such as correlation, trend and anomalies.
Smart Images

Figure CN118445654B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data clustering, and in particular to an intelligent analysis method for IOT intelligent service platform data. Background Art
[0002] In terms of equipment health monitoring, more and more industrial equipment is connected through IOT technology, transmitting data to the cloud platform in real time, so that the intelligent service platform can better understand the operation mode and behavior of the equipment, and provide enterprises with more intelligent and accurate equipment health monitoring and management services. Cluster analysis of data can be performed to identify abnormal status of equipment, which helps to detect problems with equipment early, reduce unplanned downtime, and improve production efficiency.
[0003] When clustering device data using a clustering algorithm based on dynamic splitting of a connected graph, the prior art usually uses the number of points and edges in the connected graph as the basis for splitting judgment. However, due to the complex connections between the data, using a single clustering basis cannot accurately reflect the connections between the data, resulting in inaccurate clustering results, which in turn affects the credibility of the anomaly detection results. Summary of the invention
[0004] In order to solve the technical problem that when clustering device data based on a clustering algorithm that dynamically splits a connectivity graph, a single clustering basis cannot accurately reflect the connection between data, resulting in inaccurate clustering results, thereby affecting the credibility of anomaly detection results, the purpose of the present invention is to provide an intelligent analysis method for IOT intelligent service platform data, and the technical solution adopted is as follows:
[0005] Acquire multidimensional data of at least two data cycles of the industrial equipment to be tested in the IOT intelligent service platform, and the multidimensional data includes at least temperature data, vibration data and power data; obtain the trend item, seasonal item and residual item of each single-dimensional data in the multidimensional data based on the time series decomposition algorithm;
[0006] Select one sampling moment in each of two different data cycles as the time to be tested, and select one single-dimensional data in the multidimensional data as the data to be analyzed; in the data to be analyzed, obtain the abnormality value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual item; obtain the distance factor between the two times to be tested according to the numerical difference of the trend item, the numerical difference of the seasonal item and the abnormality value between the two times to be tested; obtain the distance weight between the two times to be tested according to the correlation between the data to be analyzed and all other single-dimensional data;
[0007] According to the distance factors of the two moments to be measured in all single-dimensional data and the corresponding distance weights, the distance parameter between the two moments to be measured is obtained; the distance parameter between any two sampling moments in the same data period is a preset value, and the preset value is less than the distance parameter between the two moments to be measured;
[0008] An initial connected graph set corresponding to the multidimensional data is obtained according to the distance parameter between all sampling moments; the tolerance coefficient in the clustering algorithm of the dynamic splitting of the connected graph is corrected according to the distance parameter, and a split connected graph of the initial connected graph set is obtained according to the corrected tolerance coefficient as a clustering result; anomaly detection is performed according to the clustering result.
[0009] Furthermore, obtaining the abnormality degree value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual item includes:
[0010] Taking each sampling moment as the center, a preset neighborhood is constructed; in the residual item corresponding to the data to be analyzed, in the preset neighborhood corresponding to each sampling moment, the mean difference between the residual values of the central sampling moment and all the neighborhood sampling moments is taken as the first abnormal factor of the central sampling moment;
[0011] Taking the data period at each sampling moment as the center, a preset range is constructed, and the mean difference of the residual values between each sampling moment and the sampling moments at the same position in other data periods within the preset range is calculated as the second abnormal factor of the corresponding sampling moment;
[0012] The product of the first abnormal factor and the second abnormal factor at each sampling moment is taken as the abnormality degree value of the corresponding sampling moment.
[0013] Further, the distance factor between the two moments to be measured is obtained according to the trend item numerical difference, the season item numerical difference and the abnormality degree value between the two moments to be measured, including:
[0014] Obtain the difference coefficient corresponding to each time to be tested according to the positions and values of the two time to be tested in the trend item and the value in the season item;
[0015] The difference in the abnormality degree values between the two moments to be measured is calculated to obtain an abnormal difference value; the difference coefficients corresponding to the two moments to be measured are multiplied, and then multiplied by the abnormal difference value, and the obtained product is normalized as the distance factor between the two moments to be measured.
[0016] Furthermore, one of the two moments to be measured is selected as the first moment and the other is selected as the second moment, and the formula model of the difference coefficient is:
[0017] ;in, Indicates data to be analyzed In the first moment The corresponding coefficient of variation; Indicates data to be analyzed In the corresponding trend item, the first moment The corresponding trend value; Indicates data to be analyzed In the corresponding trend item, at the second moment In the data cycle, the first moment The trend value corresponding to the sampling time at the same position; Indicates data to be analyzed In the corresponding seasonal terms, the first moment The corresponding value; Indicates data to be analyzed In the corresponding seasonal term, at the second moment In the data cycle, the first moment The value corresponding to the sampling time at the same position.
[0018] Furthermore, the distance weight between two to-be-measured moments is obtained according to the correlation between the to-be-analyzed data and all other one-dimensional data, including:
[0019] In the trend item corresponding to each single-dimensional data, the trend values of the time to be tested and the corresponding neighborhood sampling time are combined into a data sequence in time sequence; in the data to be analyzed and each other single-dimensional data, the Pearson correlation coefficient between the data sequence corresponding to each time to be tested is calculated as the correlation value, and the difference between the correlation values corresponding to the two time to be tested is used as the difference parameter;
[0020] The mean of the difference parameters between the two time points to be measured in the data to be analyzed and all other single-dimensional data is taken as the distance weight between the two time points to be measured.
[0021] Furthermore, the step of obtaining the distance parameter between the two moments to be measured according to the distance factors of the two moments to be measured in all single-dimensional data and the corresponding distance weights includes:
[0022] After normalizing the mean of the product of the distance factor and the distance weight between the two test moments in all single-dimensional data, the distance parameter between the two test moments is obtained.
[0023] Furthermore, the obtaining of an initial connected graph set corresponding to the multidimensional data according to the distance parameter between all sampling moments includes:
[0024] The lower quartile of the distance parameter between all sampling moments is used as the judgment threshold;
[0025] Constructing a connection matrix between all sampling moments, the construction method comprising: judging a distance parameter between any two sampling moments, if the distance parameter is less than the judgment threshold, the element at the corresponding position in the connection matrix is 1; if the distance parameter is greater than or equal to the judgment threshold, the element at the corresponding position in the connection matrix is 0;
[0026] The two sampling moments corresponding to the element values of 1 in the connection matrix are connected to obtain the initial connected graph set.
[0027] Furthermore, the bearing coefficient in the clustering algorithm for dynamically splitting the connected graph is corrected according to the distance parameter, and the split connected graph of the initial connected graph set is obtained according to the corrected bearing coefficient as the clustering result, including:
[0028] The bearing coefficient is corrected according to the distance parameter, and the formula model of the corrected bearing coefficient is:
[0029] ;
[0030] in, represents the modified bearing factor; Indicates that the connected graph is split into two parts. Total number of midpoints; Indicates that the connected graph is split into two parts. Total number of midpoints; It means that after the connected graph is split into two parts, the first The distance parameter between the two sampling moments corresponding to the edge; Represents the total number of edges connecting the two parts after the connected graph is split into two parts; Indicates taking the minimum value;
[0031] A clustering algorithm based on dynamic splitting of connected graphs splits each connected graph in the initial connected graph set according to a preset splitting threshold and the modified tolerance coefficient, and obtains a split connected graph of all connected graphs in the initial connected graph set as a clustering result.
[0032] Further, performing anomaly detection according to the clustering result includes:
[0033] In the clustering result, a split connectivity graph including a number of sampling moments less than a preset number threshold is regarded as an abnormal connectivity graph; and the sampling moments in the abnormal connectivity graph are abnormal moments.
[0034] Furthermore, the step of obtaining the trend term, seasonal term and residual term of each single-dimensional data in the multidimensional data based on the time series decomposition algorithm includes:
[0035] Based on the STL time series decomposition algorithm, each single-dimensional data is decomposed into time series to obtain the trend term, seasonal term and residual term of each single-dimensional data.
[0036] The present invention has the following beneficial effects:
[0037] The present invention provides an intelligent analysis method for IOT intelligent service platform data, the main purpose of which is to optimize the data clustering process, thereby improving the credibility of the final anomaly detection result. First, multidimensional data of multiple data periods in the IOT intelligent service platform are obtained, and then each single-dimensional data is decomposed based on a time series algorithm to obtain a trend item, a seasonal item, and a residual item corresponding to each single-dimensional data. Further, since the residual item represents the data point in the time series that is obviously inconsistent with the expected pattern, it can reflect the abnormality of the data to a certain extent, so the residual item corresponding to each single-dimensional data can be analyzed to obtain the abnormality degree value corresponding to each sampling moment. Since the data has periodicity and trend, in each single-dimensional data, according to the numerical difference and numerical distribution of each sampling moment in the trend item and the seasonal item, combined with the abnormality degree value of the sampling moment, the distance metric between the sampling moments during the final clustering is calculated to obtain an indicator for measuring the distance metric: the distance factor. Further, since there will be a certain degree of connection between data of different dimensions, the relevant situation of the data corresponding to the sampling moment in each single-dimensional data is continuously analyzed to obtain another indicator for measuring the distance metric during the final clustering: the distance weight. Then, the distance factor and distance weight between sampling moments are combined to obtain the distance parameter between sampling moments. At this time, the distance parameter can better characterize the characteristics and connections of the data because it integrates multiple features between the data, such as correlation, trend, periodicity, and abnormal conditions. Therefore, the clustering result obtained by using the distance parameter between sampling moments as the basis for subsequent clustering will be more accurate. Finally, the initial connected graph set is obtained according to the distance parameter between sampling moments, and the bearing coefficient is corrected according to the distance parameter. The clustering algorithm based on the dynamic splitting of the connected graph obtains the split connected graph according to the corrected bearing coefficient as the clustering result, and anomaly detection is performed based on the clustering result, which can effectively improve the credibility and accuracy of anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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.
[0039] Figure 1A flow chart of an intelligent analysis method for IOT intelligent service platform data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] 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 intelligent analysis method of IOT intelligent service platform data proposed by the present invention, its specific implementation method, structure, characteristics and effects, 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.
[0041] 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.
[0042] The specific scheme of the intelligent analysis method of IOT intelligent service platform data provided by the present invention is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1 , which shows a method flow chart of an intelligent analysis method of IOT intelligent service platform data provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S1: Obtain multidimensional data of at least two data cycles of the industrial equipment to be tested in the IOT intelligent service platform, and the multidimensional data includes at least temperature data, vibration data and power data; obtain the trend item, seasonal item and residual item of each single-dimensional data in the multidimensional data based on the time series decomposition algorithm.
[0045] The IOT intelligent service platform has multiple functions, such as: it can realize remote monitoring and control of equipment. No matter where the user is, he can easily monitor and control various IoT devices through the platform to realize remote operation; it can also collect and analyze data. By analyzing the massive data generated by IoT devices, users can obtain valuable information and make corresponding decisions; and the IOT service platform also supports the interconnection between devices, realizing intelligent collaboration between devices. Therefore, more and more industrial equipment is connected through IOT technology, and data is transmitted to the cloud platform in real time, providing enterprises with more intelligent and accurate equipment health monitoring and management services. At the same time, by clustering the data, the patterns of different states of the equipment can be identified, such as normal operation, potential failures and abnormal states, which helps to find possible problems of the equipment early, so as to better formulate predictive maintenance plans. By predicting possible equipment problems in advance, unplanned downtime can be reduced and production efficiency can be improved; so the accuracy of the clustering results has an important impact on the credibility of the final abnormal detection results. Therefore, the purpose of this embodiment of the present invention is to improve the clustering process, improve the accuracy of the clustering results, and thus improve the accuracy of abnormal detection.
[0046] Taking the data in the industrial production process as an example for analysis, in the industrial production process, the operation data of the industrial equipment to be tested is obtained by setting up IOT sensors, wherein the operation data includes multi-dimensional data of at least two data cycles, such as temperature data, vibration data, power data, pressure data, humidity data, etc. It should be noted that in this embodiment of the present invention, it is considered that the data cycle of each single-dimensional data in the multi-dimensional data is the same; at the same time, the equipment for collecting data and the type of data can be adjusted according to the implementation scenario, and are not limited here.
[0047] For the operating data in the production process of industrial equipment, in order to mine the periodic changes, trend change information and abnormal situations within the data, time series analysis can be performed on each single-dimensional data in the multidimensional data to obtain trend items, seasonal items and residual items, which are convenient for subsequent process analysis.
[0048] Preferably, in one embodiment of the present invention, the trend item, seasonal item and residual item of each single-dimensional data in the multidimensional data are obtained based on the time series decomposition algorithm, including:
[0049] For the acquired multidimensional data, each single-dimensional data can be decomposed into time series based on the STL time series decomposition algorithm to obtain the trend term, seasonal term and residual term of each single-dimensional data. It should be noted that in the decomposition process, the data period is used as the seasonal period in the decomposition process parameters, the length of the seasonal smoother is 15, and the length of the trend smoother is ,in represents a floor function. The specific decomposition process of the STL time series decomposition algorithm is a technical means well known to those skilled in the art, and will not be elaborated herein.
[0050] At this point, the multi-dimensional data of the device under test can be obtained and each single-dimensional data in the multi-dimensional data can be decomposed in time series to facilitate analysis in subsequent processes.
[0051] Step S2: Select any sampling moment in each of two different data periods as the moment to be tested, and select any single-dimensional data in the multidimensional data as the data to be analyzed; in the data to be analyzed, obtain the abnormality degree value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual item; obtain the distance factor between the two moments to be tested according to the numerical difference of the trend item, the numerical difference of the seasonal item and the abnormality degree value between the two moments to be tested; obtain the distance weight between the two moments to be tested according to the correlation between the data to be analyzed and all other single-dimensional data.
[0052] Since the purpose of the embodiment of the present invention is to cluster data, so as to perform anomaly detection based on the clustering results, and the essence of clustering is to classify data with similar characteristics into one category, that is, it is necessary to obtain the metric distance between different moments, and it is considered that the sampling moments in the same data cycle belong to one category, so the essence is to cluster the sampling moments in different data cycles. Therefore, one sampling moment can be selected as the moment to be tested in two different data cycles, and one single-dimensional data can be selected as the data to be analyzed in the multidimensional data. By analyzing the data to be analyzed and the moment to be tested, it is used to illustrate the method for obtaining certain indicators in the embodiment of the present invention.
[0053] Because the ultimate goal is anomaly detection, and the residual term after time series decomposition represents the part that cannot be explained by trends and cycles, characterizing the data points in the time series that are obviously inconsistent with the expected pattern, and usually contain some abnormal information and noise information, so we can first analyze the residual values corresponding to each sampling moment in the residual term, and obtain the abnormal situation at each sampling moment based on the differences and distribution between the residual values.
[0054] Preferably, in one embodiment of the present invention, obtaining the abnormality degree value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual term includes:
[0055] By comparing the difference in residual values between each sampling moment and its surrounding sampling moments, it can be determined whether the residual value of the corresponding sampling moment is significantly different from the residual values of the surrounding sampling moments, so as to detect abnormal conditions at the sampling moment. Therefore, a preset neighborhood is constructed with each sampling moment as the center.
[0056] Then, in the residual item corresponding to the data to be analyzed, in the preset neighborhood corresponding to each sampling moment, the sampling moments other than the central sampling moment are taken as the neighborhood sampling moments, and then the mean difference between the residual values of the central sampling moment and all its corresponding neighborhood sampling moments is calculated as the first abnormal factor of the central sampling moment. The first abnormal factor takes into account the static relationship within the neighborhood, thereby characterizing the abnormal situation of each sampling moment.
[0057] At the same time, since the data is periodic, considering the dynamic relationship in time, we can build a preset range with the data period of each sampling moment as the center, and calculate the difference between the residual values of each sampling moment and the sampling moments at the same position in other data periods except the central data period within the preset range as the second abnormal factor of the corresponding sampling moment. The second abnormal factor characterizes the abnormal situation of each sampling moment by comparing the difference between the residual values of each sampling moment and the sampling moments at the same position in other data periods.
[0058] Finally, the product of the first abnormal factor and the second abnormal factor at each sampling moment is taken as the abnormal degree value of the corresponding sampling moment. For example, the formula model of the abnormality degree value is:
[0059] ;
[0060] in, Indicates data to be analyzed In The abnormality degree value corresponding to each sampling moment; Indicates data to be analyzed In the corresponding residual term, The residual value corresponding to the sampling moment; Indicates data to be analyzed In the corresponding residual term, The sampling time The residual value corresponding to the sampling time of the neighborhood; represents the total number of neighborhood sampling moments; Indicated in Within the preset range corresponding to the data cycle where the sampling moment is located, the In other data cycles The sampling time at the same location of the sampling time is in the data to be analyzed The residual value in the corresponding residual term; Indicates the total number of other data cycles included in the preset range.
[0061] In the formula model of the abnormality degree value, in the residual term corresponding to the data to be analyzed, a preset neighborhood is constructed, and then the difference in the residual value between the central sampling time and each neighborhood sampling time is calculated. If the difference is larger, it means that in the local area, the residual value corresponding to the central sampling time is more prominent than the residual value of the surrounding sampling time, which means that the possibility of abnormality at the central sampling time is higher. Therefore, the mean difference of the residual value between the central sampling time and all the neighborhood sampling times is calculated as the first abnormal factor of the central sampling time. , at this time, the larger the first anomaly factor is, the higher the degree of anomaly at the central sampling moment is; since the operating data is periodic, when analyzing the degree of anomaly at each sampling moment, the difference between the residual values between the sampling moments separated by different numbers of data cycles can be analyzed. The essence is to analyze the data differences between the sampling moments at the same position in different data cycles. If the difference is smaller, it can be considered that the anomaly occurring at the sampling moment is more likely to be caused by measurement error or insufficient data mining by the time series decomposition algorithm. On the contrary, if the difference is larger, it is considered that the anomaly occurring at the sampling moment is more likely to be a data anomaly caused by equipment anomaly. Therefore, the mean difference between the residual values of each sampling moment and the sampling moments at the same position in other data cycles is calculated as the second anomaly factor at the corresponding sampling moment. , the larger the second abnormal factor is, the higher the abnormality level of the sampling moment is; therefore, the first abnormal factor and the second abnormal factor of each sampling moment are finally combined, and the product of the two is taken as the abnormality level value of the corresponding sampling moment.
[0062] It should be noted that the preset neighborhood size is set to 9, that is, in terms of timing, with each sampling moment as the center, 4 sampling moments are taken before and after, and if the sampling moments on one side are less than 4, then the other side can be used to make up a total of 9; similarly, the preset range size is set to 5, that is, in terms of timing, with the data period of each sampling moment as the center, 2 data periods are taken before and after, and if one data period is less than 2, then the other side can be used to make up a total of 5; the specific preset neighborhood size and the preset range size can be adjusted according to the implementation scenario and are not limited here.
[0063] At this point, by analyzing the residual items corresponding to the data to be analyzed, the abnormality value corresponding to each sampling moment is preliminarily obtained, which is used as an indicator to obtain the distance measurement in the subsequent cluster analysis.
[0064] After obtaining the abnormality value of each sampling moment according to the residual term, the influence of the trend term and the seasonal term can be further analyzed. Since the trend term can capture the long-term growth or decrease pattern in the time series, it is helpful to evaluate the similarity or difference between two sampling moments in the time dimension; similarly, the seasonal term is usually used to describe the periodic changes in the time series. Therefore, analyzing the numerical difference between the two sampling moments in the seasonal term can reflect the relative position of the two sampling moments in a specific period, which is also valuable for evaluating the similarity or difference between the two sampling moments; and the abnormality value provides a quantitative evaluation of the deviation of the data at the sampling moment from the normal range. Therefore, in this embodiment of the present invention, the abnormality value of the sampling moment, the position and value in the trend term, and the value in the seasonal term are combined to obtain the distance factor between the sampling moments, which can be used as a parameter for the subsequent distance measurement.
[0065] Preferably, in one embodiment of the present invention, obtaining the distance factor between the two moments to be measured according to the trend item value difference, the season item value difference and the abnormality degree value between the two moments to be measured includes:
[0066] First, the difference coefficient corresponding to each time to be tested is obtained according to the numerical difference in the trend item and the numerical difference in the season item between the two time to be tested. Among the two time to be tested, one time to be tested is selected as the first time, which is recorded as , the other time to be measured is taken as the second time, recorded as , the formula model of the coefficient of variation is:
[0067] ;
[0068] in, Indicates data to be analyzed In the first moment The corresponding coefficient of variation; Indicates data to be analyzed In the corresponding trend item, the first moment The corresponding trend value; Indicates data to be analyzed In the corresponding trend item, at the second moment In the data cycle, the first moment The trend value corresponding to the sampling time at the same position; Indicates data to be analyzed In the corresponding seasonal terms, the first moment The corresponding value; Indicates data to be analyzed In the corresponding seasonal term, at the second moment In the data cycle, the first moment The value corresponding to the sampling time at the same position.
[0069] In the formula model of the difference coefficient, the difference coefficient corresponding to each time to be tested is calculated according to the numerical difference between the two time to be tested in the trend item and the numerical difference between the two time to be tested in the season item. In this embodiment of the present invention, the numerical difference between the two time to be tested in the trend item is not directly calculated, but the position of each time to be tested in its data period is considered, and the difference between the trend values of the sampling moments at the same position in the data period is compared to characterize the difference between the trend items between the two time to be tested. The purpose of doing so is that the difference at this time can comprehensively consider the relative position and trend changes of the two moments in the data period, rather than just analyzing a single sampling moment; similarly, the same analysis is performed on the trend item to construct the formula model of the difference coefficient. At this time, the greater the difference in the trend item corresponding to each time to be tested and the greater the difference in the corresponding season item, the more significant the difference between the two time to be tested.
[0070] The above formula can be used to obtain the difference coefficients corresponding to the two test moments, and then combined with the abnormality level values corresponding to each test moment, the difference between the abnormality level values of the two test moments is taken as the abnormal difference value; then the difference coefficients corresponding to the two test moments are multiplied and then multiplied by the abnormal difference value, and the normalized value of the product is taken as the distance factor between the two test moments. The two test moments are respectively recorded as the test moments and the time to be tested , the formula model of the distance factor can be specifically, for example:
[0071] ;
[0072] in, Indicates data to be analyzed In, the time to be tested and the time to be tested The distance factor between Indicates data to be analyzed In, the time to be tested The abnormality value of Indicates data to be analyzed In, the time to be tested The corresponding coefficient of variation; Indicates data to be analyzed In, the time to be tested The abnormality value of Indicates data to be analyzed In, the time to be tested The corresponding coefficient of variation; Represents the normalization function.
[0073] In the formula model of the distance factor, by combining the abnormality value and the difference coefficient corresponding to each time to be tested, when the time to be tested and the time to be tested The difference in the abnormality degree values between The larger the value, the greater the abnormality values of the two are, so the value of the distance factor between the two should be larger. Similarly, if the difference coefficient corresponding to the two test moments is also larger, it also means that the distance factor between the two test moments should be larger. Therefore, the difference in the abnormality value between the two test moments is combined with the corresponding two difference coefficients, and the product of the three is normalized as the distance factor between the two test moments. The distance factor is used as a key indicator for the subsequent distance measurement between the sampling moments.
[0074] At this point, by analyzing the data to be analyzed, the distance factor between two sampling moments in different data periods is obtained, preparing for the subsequent acquisition of the distance metric for clustering.
[0075] In the above process, only single-dimensional data is analyzed, but multi-dimensional data of the same device often have intrinsic connections. Therefore, the embodiment of the present invention continues to analyze the correlation between the data to be analyzed and other single-dimensional data, so as to obtain the distance weight between the two measured moments, which is used to adjust the distance factor obtained above.
[0076] Preferably, in one embodiment of the present invention, obtaining the distance weight between two to-be-measured moments according to the correlation between the to-be-analyzed data and all other one-dimensional data includes:
[0077] The purpose of analyzing the correlation between the data to be analyzed and other one-dimensional data is to obtain the distance weight between the two test moments. Therefore, the correlation between the data in the local area can be analyzed. Because the credibility of data that are farther away is relative to that of data that are closer, only the data of the sampling moments within the preset neighborhood corresponding to the test moment can be analyzed. Therefore, in the trend item corresponding to each one-dimensional data, the trend values corresponding to the test moment and the corresponding neighborhood sampling moments are organized into a data sequence in time series.
[0078] Then, in the data to be analyzed and each other single-dimensional data, the Pearson correlation coefficient between the data sequence corresponding to each tested moment is calculated as the correlation value. At this time, each tested moment corresponds to a correlation value, so the difference in the correlation values corresponding to the two tested moments is taken as the difference parameter. The difference parameter characterizes the difference between the correlation conditions of the data sequences corresponding to the two tested moments in the data to be analyzed and other single-dimensional data.
[0079] Finally, the mean of the difference parameters between the two time points to be measured in the data to be analyzed and all other single-dimensional data is used as the distance weight between the two time points to be measured. The formula model of the distance weight can be, for example, as follows:
[0080] ;
[0081] in, Indicates data to be analyzed In, the time to be tested and the time to be tested The distance weight between them; Indicates the total number of single-dimensional data contained in multidimensional data; Indicates data to be analyzed In the corresponding trend item, the time to be tested is The corresponding data sequence; Indicated in In the corresponding trend items of other single-dimensional data, the time to be tested The corresponding data sequence; Indicates data to be analyzed In the corresponding trend item, the time to be tested is The corresponding data sequence; Indicated in In the corresponding trend items of other single-dimensional data, the time to be tested The corresponding data sequence; It means to find the Pearson correlation coefficient.
[0082] In the formula model of distance weight, in the trend item corresponding to each single-dimensional data, in the preset neighborhood corresponding to the two time points to be tested, the trend values corresponding to all sampling moments are formed into a data sequence. Since the Pearson correlation coefficient can characterize the correlation between two groups of data, in this embodiment of the present invention, the Pearson correlation coefficient between the data sequence corresponding to each time point to be tested is calculated as the correlation value in the data to be analyzed and each other single-dimensional data, and the difference in the correlation values corresponding to the two time points to be tested is used as the difference parameter. The difference parameter characterizes the data sequence corresponding to the two time points to be tested, and the difference in the correlation between the same data to be analyzed and other single-dimensional data. The larger the difference, the more significant the difference between the two time points to be tested in the same data. Finally, the mean of the difference parameter obtained between the two time points to be tested in the data to be analyzed and all other single-dimensional data is used as the distance weight between the two time points to be tested. The larger the distance weight, the more obvious the difference between the two time points to be tested.
[0083] It should be noted that the preset neighborhood size is set to 9, and the specific size can be adjusted according to the implementation scenario and is not limited here. In this embodiment of the present invention, when calculating the distance weight, the reason for selecting the trend item is that the trend item can reflect the overall trend and law of data changes over time, which helps to reveal the relative changes of data at different time points, while the seasonal item emphasizes periodicity rather than the overall trend. Similarly, data that has not been decomposed into time series may contain more randomness and noise, and the residual item is more used to reflect the abnormal situation of the data. Therefore, in this embodiment of the present invention, the trend item is selected for calculation.
[0084] At this point, by analyzing the correlation between the data to be analyzed and all other single-dimensional data, the distance weight between the two measured moments is obtained. The distance weight is also a key indicator for distance measurement when obtaining clusters later.
[0085] Step S3: Obtain the distance parameter between the two moments to be measured according to the distance factor of the two moments to be measured in all single-dimensional data and the corresponding distance weight; the distance parameter between any two sampling moments in the same data period is a preset value, and the preset value is less than the distance parameter between the two moments to be measured.
[0086] According to the above process, two indicators for evaluating the distance measurement between the two time points to be tested can be obtained, namely the distance factor and the distance weight. Therefore, here, the distance factor and the distance weight are combined to obtain the distance parameter between the two time points to be tested, which is used as the distance measurement between the two time points to be tested during clustering.
[0087] Preferably, in one embodiment of the present invention, obtaining the distance parameter between the two moments to be measured according to the distance factors of the two moments to be measured in all single-dimensional data and the corresponding distance weights includes:
[0088] According to the above steps, the distance factor and distance weight between the two test moments can be calculated for each single-dimensional data. Therefore, the distance factor and distance weight of the two test moments in all single-dimensional data are combined. First, the distance factor and distance weight of the two test moments in the same single-dimensional data are multiplied, and finally the mean of the product under all single-dimensional data is normalized as the distance parameter between the two test moments. The formula model of the distance parameter can be, for example, as follows:
[0089] ;
[0090] in, Indicates the time to be tested and the time to be tested The distance parameter between Indicates the total number of single-dimensional data contained in multidimensional data; Indicated in In the single-dimensional data, the time to be measured and the time to be tested The distance weight between them; Indicated in In the single-dimensional data, the time to be measured and the time to be tested The distance factor between Represents the normalization function.
[0091] In the formula model of the distance parameter, the distance factor and distance weight between all the single-dimensional data at the time to be tested are combined. Based on the above analysis, it can be seen that the larger the distance factor, the more obvious the data difference between the two time to be tested, and the less likely it is to be clustered into one category in the subsequent clustering process. Similarly, the larger the distance weight, the more obvious the data difference between the two time to be tested, and the less likely it is to be clustered into one category. Therefore, the formula is constructed so that the distance weight and the distance factor are positively correlated with the final distance parameter.
[0092] At this point, the distance parameter between any two sampling moments that are not in the same data period can be obtained through the above method. Since the sampling moments belonging to the same data period are considered to be grouped into one category in the embodiment of the present invention, here, if two sampling moments belong to the same data period, then the distance parameter between the two sampling moments is a preset value, and the preset value should be smaller than the distance parameter between two sampling moments that are not in the same data period, so the preset value is taken as 0.
[0093] Step S4: obtaining an initial connected graph set corresponding to the multidimensional data according to the distance parameter between all sampling moments; correcting the tolerance coefficient in the clustering algorithm of the dynamic splitting of the connected graph according to the distance parameter, and obtaining the split connected graph of the initial connected graph set as the clustering result according to the corrected tolerance coefficient; and performing anomaly detection according to the clustering result.
[0094] Clustering algorithm is an important method in the field of data analysis. The cluster generated by clustering is a collection of data objects. Objects in the same cluster are similar to each other, and objects in different clusters are different. Since the data in industrial production is large-scale data, the embodiment of the present invention uses a dynamic clustering algorithm based on a connected graph to perform cluster analysis on the data, which utilizes the connectivity of the graph and has high efficiency.
[0095] The clustering process of the dynamic clustering algorithm based on connected graphs consists of two stages: connection and splitting. The connection stage mainly includes taking the data set and distance parameter as input, generating multiple maximum connected graphs, and outputting connected graph sets; the splitting stage mainly includes taking the connected graph set as input, outputting smaller connected graphs, and each connected graph is a class. Therefore, it is necessary to first obtain the initial connected graph set. Since the distance parameter between each sampling time represents the difference between the sampling points, the initial connected graph set is constructed according to the distance parameter between each sampling time.
[0096] Preferably, in one embodiment of the present invention, obtaining an initial connected graph set corresponding to the multidimensional data according to the distance parameters between all sampling moments includes:
[0097] First, the lower quartile of the distance parameter between all sampling moments is calculated as the judgment threshold.
[0098] Then, a connection matrix between all sampling moments is constructed. The construction method includes: judging the distance parameter between any two sampling moments. If the distance parameter is less than a judgment threshold, it is considered that the two sampling moments are more likely to belong to the same class, and the element at the corresponding position in the connection matrix is 1; if the distance parameter is greater than or equal to the judgment threshold, it is considered that the difference between the two sampling moments is large and it is less likely to belong to the same class, and the element at the corresponding position in the connection matrix is 0.
[0099] Finally, the two sampling moments corresponding to the element value of 1 in the connection matrix are connected to obtain the initial connected atlas. It should be noted that the essence of the graph is a collection of points and edges. Therefore, when constructing the initial connected atlas, each sampling moment can be regarded as a point. If the distance parameter between two sampling moments meets the judgment condition, the two sampling moments can be connected without considering the positional relationship between the sampling moments.
[0100] After obtaining the initial connected graph set, in the traditional dynamic clustering algorithm based on the connected graph, when splitting each connected graph, only the number of points and the number of edges are considered to obtain the tolerance coefficient, which is then compared with the splitting threshold to obtain the final splitting result, and the intrinsic connection between the data is not considered. In the embodiment of the present invention, the distance parameter between the two sampling moments obtained integrates multiple features between the data. Therefore, here, the tolerance coefficient in the dynamic clustering algorithm based on the connected graph is improved according to the distance parameter, so that the final splitting result can be more in line with the data characteristics and the accuracy of data clustering is improved.
[0101] Preferably, in one embodiment of the present invention, the bearing coefficient in the clustering algorithm of the dynamic splitting of the connected graph is corrected according to the distance parameter, and the split connected graph of the initial connected graph set is obtained according to the corrected bearing coefficient as the clustering result, including:
[0102] The bearing coefficient is corrected according to the distance parameter, and the formula model of the corrected bearing coefficient is:
[0103] ;
[0104] in, represents the modified bearing factor; Indicates that the connected graph is split into two parts. The total number of points in ; Indicates that the connected graph is split into two parts. The total number of points in ; It means that after the connected graph is split into two parts, the first The distance parameter between the two sampling moments corresponding to the edge; Represents the total number of edges connecting the two parts after the connected graph is split into two parts; Indicates taking the minimum value.
[0105] Then, based on the clustering algorithm of dynamic splitting of connected graphs, each connected graph in the initial connected graph set is split according to the preset splitting threshold and the corrected tolerance coefficient, and the split connected graphs of all connected graphs in the initial connected graph set are obtained as the clustering result.
[0106] It should be noted that the process of obtaining a split connectivity graph based on a connectivity graph dynamic split clustering algorithm is a technical means well known to those skilled in the art, and the process will not be described in detail here. The preset split threshold is set to 5 in this embodiment of the present invention, and the specific value can be adjusted according to the implementation scenario and is not limited here; the formula model of the bearing coefficient is a well-known technology, and the specific expression is: ,in, represents the bearing coefficient, Indicates that the connected graph is split into two parts. The total number of points in ; Indicates that the connected graph is split into two parts. The total number of points in ; Represents the total number of edges connecting the two parts after the connected graph is split into two parts; In the embodiment of the present invention, the denominator in the bearing coefficient is improved and modified to the distance parameter between the two sampling moments corresponding to the edge, which can more accurately reflect the internal connection between the data of the two parts, thereby obtaining a more accurate clustering result.
[0107] At this point, the split connectivity graph, that is, the final clustering result, can be obtained, and anomaly detection can be performed based on the clustering result.
[0108] Preferably, in one embodiment of the present invention, performing anomaly detection according to the clustering result includes:
[0109] Since anomalies are sudden and most of the data are still normal data, in the clustering results, the split connectivity graph containing a number of sampling moments less than the preset number threshold is regarded as an abnormal connectivity graph; then the sampling moment in the abnormal connectivity graph is the abnormal moment. It should be noted that the preset number threshold can be set to 20, and the specific value can be adjusted according to the implementation scenario, which is not limited here.
[0110] In summary, firstly, the multidimensional data of multiple data periods in the IOT intelligent service platform are obtained, and then each single-dimensional data is decomposed based on the time series algorithm to obtain the trend item, seasonal item and residual item corresponding to each single-dimensional data. Furthermore, since the residual item represents the data points in the time series that are obviously inconsistent with the expected pattern, it can reflect the abnormality of the data to a certain extent, so the residual item corresponding to each single-dimensional data can be analyzed to obtain the abnormality degree value corresponding to each sampling moment. Since the data has periodicity and trend, in each single-dimensional data, according to the numerical difference and numerical distribution in the trend item and seasonal item at each sampling moment, combined with the abnormality degree value at the sampling moment, the distance metric between the sampling moments in the final clustering is calculated to obtain an indicator for measuring the distance metric: the distance factor. Furthermore, since there will be a certain degree of connection between data of different dimensions, the relevant situation of the data corresponding to the sampling moment in each single-dimensional data is further analyzed to obtain another indicator for measuring the distance metric in the final clustering: the distance weight. Then, the distance factor and distance weight between sampling moments are combined to obtain the distance parameter between sampling moments. At this time, the distance parameter can better characterize the characteristics and connections of the data because it integrates multiple features between the data, such as correlation, trend, periodicity, and abnormal conditions. Therefore, the clustering result obtained by using the distance parameter between sampling moments as the basis for subsequent clustering will be more accurate. Finally, the initial connected graph set is obtained according to the distance parameter between sampling moments, and the bearing coefficient is corrected according to the distance parameter. The clustering algorithm based on the dynamic splitting of the connected graph obtains the split connected graph according to the corrected bearing coefficient as the clustering result, and anomaly detection is performed based on the clustering result, which can effectively improve the credibility and accuracy of anomaly detection.
[0111] It should be noted that the sequence of the above embodiments of the present invention is for description only 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.
[0112] 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. An intelligent analysis method for IoT intelligent service platform data. It is characterized in that The method comprises: Acquire multidimensional data of at least two data cycles of the industrial equipment to be tested in the IOT intelligent service platform, and the multidimensional data includes at least temperature data, vibration data and power data; obtain the trend item, seasonal item and residual item of each single-dimensional data in the multidimensional data based on the time series decomposition algorithm; Select one sampling moment in each of two different data cycles as the time to be tested, and select one single-dimensional data in the multidimensional data as the data to be analyzed; in the data to be analyzed, obtain the abnormality value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual item; obtain the distance factor between the two times to be tested according to the numerical difference of the trend item, the numerical difference of the seasonal item and the abnormality value between the two times to be tested; obtain the distance weight between the two times to be tested according to the correlation between the data to be analyzed and all other single-dimensional data; According to the distance factors of the two moments to be measured in all single-dimensional data and the corresponding distance weights, the distance parameter between the two moments to be measured is obtained; the distance parameter between any two sampling moments in the same data period is a preset value, and the preset value is less than the distance parameter between the two moments to be measured; Acquire an initial connected graph set corresponding to the multidimensional data according to the distance parameter between all sampling moments; modify the tolerance coefficient in the clustering algorithm of dynamic splitting of the connected graph according to the distance parameter, and obtain a split connected graph of the initial connected graph set as a clustering result according to the modified tolerance coefficient; perform anomaly detection according to the clustering result; The method of obtaining the abnormality degree value corresponding to each sampling moment according to the difference and distribution between the residual values corresponding to each sampling moment in the corresponding residual item includes: Taking each sampling moment as the center, a preset neighborhood is constructed; in the residual item corresponding to the data to be analyzed, in the preset neighborhood corresponding to each sampling moment, the mean difference between the residual values of the central sampling moment and all the neighborhood sampling moments is taken as the first abnormal factor of the central sampling moment; Taking the data period at each sampling moment as the center, a preset range is constructed, and the mean difference of the residual values between each sampling moment and the sampling moments at the same position in other data periods within the preset range is calculated as the second abnormal factor of the corresponding sampling moment; The product of the first abnormal factor and the second abnormal factor at each sampling moment is used as the abnormal degree value of the corresponding sampling moment; The step of obtaining the distance factor between the two moments to be measured according to the trend item numerical difference, the season item numerical difference and the abnormality degree value between the two moments to be measured comprises: Obtain the difference coefficient corresponding to each time to be tested according to the positions and values of the two time to be tested in the trend item and the value in the season item; Calculate the difference of the abnormality degree values between the two moments to be measured to obtain the abnormal difference value; multiply the difference coefficients corresponding to the two moments to be measured, and then multiply them by the abnormal difference value, and normalize the obtained product as the distance factor between the two moments to be measured; Select one of the two time points to be measured as the first time point and the other as the second time point. The formula model of the difference coefficient is: in, Indicates that in the data to be analyzed s, the first moment t a The corresponding coefficient of variation; Indicates that in the trend item corresponding to the data to be analyzed s, the first moment t a The corresponding trend value; Indicates that in the trend item corresponding to the data to be analyzed s, at the second moment t b In the data cycle, the first moment t a The trend value corresponding to the sampling time at the same position; Indicates that in the seasonal term corresponding to the data to be analyzed s, the first moment t a The corresponding value; Indicates that in the seasonal term corresponding to the data to be analyzed s, at the second moment t b In the data cycle, the first moment t a The value corresponding to the sampling time at the same position; The distance weight between two to-be-measured moments is obtained according to the correlation between the to-be-analyzed data and all other one-dimensional data, including: In the trend item corresponding to each single-dimensional data, the trend values of the time to be tested and the corresponding neighborhood sampling time are combined into a data sequence in time sequence; in the data to be analyzed and each other single-dimensional data, the Pearson correlation coefficient between the data sequence corresponding to each time to be tested is calculated as the correlation value, and the difference between the correlation values corresponding to the two time to be tested is used as the difference parameter; The mean of the difference parameters between the two time points to be tested in the data to be analyzed and all other single-dimensional data is used as the distance weight between the two time points to be tested; The method of modifying the bearing coefficient in the clustering algorithm for dynamically splitting the connected graph according to the distance parameter, and obtaining the split connected graph of the initial connected graph set as the clustering result according to the modified bearing coefficient, includes: The bearing coefficient is corrected according to the distance parameter, and the formula model of the corrected bearing coefficient is: Where t′ represents the modified bearing coefficient; W A represents the total number of points in part A after the connected graph is split into two parts; W B represents the total number of points in part B after the connected graph is split into two parts; D h It represents the distance parameter between the two sampling moments corresponding to the hth edge connecting the two parts after the connected graph is split into two parts; H represents the total number of edges connecting the two parts after the connected graph is split into two parts; min{} represents the minimum value; A clustering algorithm based on dynamic splitting of connected graphs splits each connected graph in the initial connected graph set according to a preset splitting threshold and the modified tolerance coefficient, and obtains a split connected graph of all connected graphs in the initial connected graph set as a clustering result.
2. According to claim 1, an intelligent analysis method for IOT intelligent service platform data, It is characterized in that The step of obtaining the distance parameter between the two moments to be measured according to the distance factors of the two moments to be measured in all the single-dimensional data and the corresponding distance weights includes: After normalizing the mean of the product of the distance factor and the distance weight between the two test moments in all single-dimensional data, the distance parameter between the two test moments is obtained.
3. According to claim 1, an intelligent analysis method for IOT intelligent service platform data, It is characterized in that The step of obtaining an initial connected graph set corresponding to the multidimensional data according to the distance parameter between all sampling moments includes: The lower quartile of the distance parameter between all sampling moments is used as the judgment threshold; Constructing a connection matrix between all sampling moments, the construction method comprising: judging a distance parameter between any two sampling moments, if the distance parameter is less than the judgment threshold, the element at the corresponding position in the connection matrix is 1; if the distance parameter is greater than or equal to the judgment threshold, the element at the corresponding position in the connection matrix is 0; The two sampling moments corresponding to the element values of 1 in the connection matrix are connected to obtain the initial connected graph set.
4. According to claim 1, an intelligent analysis method for IOT intelligent service platform data, It is characterized in that The performing anomaly detection according to the clustering result includes: In the clustering result, a split connectivity graph including a number of sampling moments less than a preset number threshold is regarded as an abnormal connectivity graph; and the sampling moments in the abnormal connectivity graph are abnormal moments.
5. According to claim 1, an intelligent analysis method for IOT intelligent service platform data, It is characterized in that The method of obtaining the trend item, the seasonal item and the residual item of each single-dimensional data in the multidimensional data based on the time series decomposition algorithm includes: Based on the STL time series decomposition algorithm, each single-dimensional data is decomposed into time series to obtain the trend term, seasonal term and residual term of each single-dimensional data.
Citation Information
Patent Citations
Time Series Decomposition
CN112989271A
Unsupervised anomaly detection method for dynamic periodic time sequence
CN116010485A
Omnibearing gamma logging data optimization processing method
CN117648590A
River state evaluation method and system based on multi-dimensional sensor
CN118035780A
Method and system for characterizing time series
US11061934B1
