An intelligent prediction and early warning method for production risks based on industrial big data

By using industrial big data and the isolated forest algorithm in the production field of the process industry to establish a data distribution model, the problem of production risk prediction and early warning in complex process environments is solved, and efficient anomaly detection and early warning of multi-variable complex working conditions are achieved, and rapid positioning is achieved Abnormal causes are identified to improve fault resolution efficiency.

CN112633561BActive Publication Date: 2024-10-18北京名道恒通信息技术有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011445963.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-09
Publication Date
2024-10-18
Estimated Expiration
2040-12-09

AI Technical Summary

Technical Problem

In the field of production in the process industry, existing technologies are difficult to effectively predict and warn production risks, especially in complex processes and high-risk environments. The traditional threshold setting monitoring method is single and unsuitable for abnormal monitoring of complex parameters, and cannot comprehensively locate Abnormal problems, and reliance on manual analysis cannot fully exploit potential data relationships.

Method used

Adopt an intelligent early warning method based on industrial big data, collect historical data through a real-time database, use the isolated forest algorithm to establish a data distribution model, calculate outlier scores, perform cluster analysis and trend analysis, and use parameter-free statistical methods to learn more from historical data. Probability distribution of single digit data to provide early warning and alarm for low-probability real-time data.

Benefits of technology

It achieves universal anomaly detection and early warning for complex process environments, can quickly locate the cause of anomalies, improves fault discovery and processing efficiency, is suitable for modeling multi-variable complex working conditions, and reduces reliance on manual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112633561B_ABST
    Figure CN112633561B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of AI artificial intelligence technology, and specifically refers to a production risk intelligent prediction and early warning method based on industrial big data. It includes 7 steps, step 1 is to select a process position number that can reflect the operating status of the device in a device unit; step 2 is to collect historical data of all position numbers within a specified time; step 3 is to analyze the effectiveness of the historical data; step 4 is to calculate the distribution model of the position number historical data; step 5 is to calculate the abnormal value score of each row of data, and the abnormal value score is within [0, 1]; step 6 is to determine the abnormal value score threshold; step 7 is to calculate the abnormal value score and trend of real-time data. The present invention aims at the technical difficulties of risk prediction in the operation of production equipment, and proposes a production risk intelligent prediction and early warning method based on industrial big data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of AI artificial intelligence technology, and specifically to a production risk intelligent prediction and early warning method based on industrial big data. Background Art

[0002] The production field of the process industry has the characteristics of high risk factor and complex process flow. The equipment is in high temperature and high pressure operation for a long time, which is a high-incidence area for major safety accidents. Once an accident occurs, it will cause significant economic losses to the company and even threaten the safety of employees and the ecological environment. The flow, pressure, temperature, amplitude, liquid level, valve degree and other data generated by the device have the characteristics of nonlinear change and non-normal distribution. The parameters of the device or equipment unit are numerous, and the relationship between them is complex and difficult to describe accurately. The judgment of accidents or problems is mainly based on the personal experience of technicians, and the efficiency of fault identification and resolution is low. Prediction and early warning of production risks are urgent needs of enterprises.

[0003] For complex research objects, in order to make more reliable statistical inferences about the problem, it is often necessary to select multiple features for observation, and each feature contains information about the problem to varying degrees. The increase in the number of features increases the complexity of the problem, making it difficult to use rule-based methods (i.e., staff experience) or methods based on a specific distribution model (e.g., Poisson distribution, exponential distribution, normal distribution, etc.) to detect anomalies in the data.

[0004] The present invention utilizes big data analysis and machine learning technology, comprehensively considers multiple status data of device units, automatically establishes a probability distribution model of working status data, and detects and predicts abnormal conditions.

[0005] The general monitoring model monitors the real-time data online by setting a specific bit number alarm threshold, or sets thresholds for some related parameters, and then monitors the abnormal events caused by these parameters. Although this monitoring method realizes abnormal monitoring and result push, it still has defects:

[0006] The monitoring method is only through setting thresholds, which is relatively simple and has poor early warning effect;

[0007] It is not suitable for abnormal monitoring and early warning of complex, critical parts, and multiple parameters;

[0008] Unable to help users fully locate the problem numbers related to the exception;

[0009] The modeling process relies heavily on manual analysis, and some potential data relationships cannot be obtained through manual quantitative analysis, so big data analysis technology must be used;

[0010] The present invention is not based on rules and assumptions about a specific data distribution, but uses statistical simulation methods to learn the probability distribution of random vectors composed of multiple bit number data from historical data, and uses the learned distribution knowledge to provide early warning and alarm for low-probability real-time data. Such a model is universal and applicable to all random data scenarios. Summary of the invention

[0011] In response to the technical difficulties in risk prediction during the operation of production equipment, the present invention proposes a production risk intelligent prediction and early warning method based on industrial big data.

[0012] The technical solution adopted by the present invention is: a production risk intelligent prediction and early warning method based on industrial big data, which is characterized by comprising the following specific steps:

[0013] Step 1: In a device unit, select a process position number that can reflect the operating status of the device, and the number of position numbers is greater than 1 and less than 100;

[0014] Step 2: Collect historical data of all bit numbers within a specified time through the API provided by the real-time database;

[0015] Step 3: Analyze the validity of historical data. The data collected in the real-time database includes data value and data quality. The collected data sets of all bit numbers form a sample matrix X. Each column of X represents the data of a bit number, and each row of X represents all bit number data collected at the same time point. The data of the sample matrix X is scanned by a sliding window method, and the scanned data is set for analysis and calculation;

[0016] Step 4: To calculate the bit number historical data distribution model, the input data for calculating the data distribution model is all bit number data that passed the validity check in step 3, and the data distribution model uses the isolation forest algorithm to model the data distribution; Step 5: Through the isolation forest created in step 4, traverse each row of the sample matrix X, and calculate the abnormal value score of each row of data, and the abnormal value score is within [0, 1];

[0017] Step 6: Perform cluster analysis on the historical data anomaly score data calculated in step 5 to determine an anomaly score threshold, and data above the threshold is set as abnormal data;

[0018] Step 7: Follow the method in step 5 and use the isolation forest created in step 4 to calculate the outlier score and trend of the real-time data.

[0019] The physical equipment corresponding to the process number must be in the same device unit. The specific process number is provided by the user. At least 2 numbers are required, and up to 100 numbers of early warnings and alarms are supported.

[0020] The collection bit number is historical data of 1 to 3 years, and the collection bit number 1 to 3 years of historical data has a preferred period, and the preferred period is 2 years. The collection bit number can also collect historical data of all bit numbers within a specified time through the OPC protocol.

[0021] The sliding window method starts from the first row of data and scans 7200 rows of data each time. After the 7200 rows of data are scanned, the same scanning operation is continued after advancing 10 rows from the starting position.

[0022] The analysis and calculation includes assumption 1 and assumption 2. In assumption 1, Y is set i,j Indicates the data quality of the i-th row and j-th column in the data subset being scanned. If the data quality at this position is excellent, it is assigned a value of 1, otherwise it is assigned a value of 0; calculate the average value of the data quality of all columns If the average data quality of the jth column is less than 0.9, the data quality of this column is considered insufficient, and all data of the corresponding position number of this column are removed from the historical data; in the second assumption, by setting x t Represents the data in the tth row of a column in the data subset being scanned, r k represents the sample autocorrelation coefficient of a column in the data subset being scanned with a lag of k steps, and n represents the number of rows in the data subset being scanned. A calculation formula 1 is set, and the calculation formula 1 is: Define the p-value of the Q statistic delayed m periods in a column of the data subset being scanned, where CDF represents the probability distribution function of the chi-square distribution with m degrees of freedom, and the p-value of the Q statistic delayed m periods and CDF set calculation formula 2, which is: The column data has a Q statistic whose p-values ​​are all greater than 0.05 after delays of 3, 6, 9, and 12 periods in a column of the data subset being scanned, and there is no significant change. All data with corresponding bit numbers in the column are removed from the historical data.

[0023] The isolation forest algorithm is used to model data distribution and has schemes 1, 2 and 3. Scheme 1 is provided with target data, Masking effect and Swamping effect. The target data is 512 rows of data randomly sampled with equal probability from all rows in the sample matrix X. The Masking effect indicates that abnormal data increases and becomes dense. The Swamping effect indicates that normal data increases and becomes sparse. Scheme 2 constructs a full binary tree from the target data. Each node of the binary tree has corresponding node columns, node values ​​and node data. The node data of the root node defaults to the entire target data. The entire target data is the node data of the root node. Each node from the root node to the leaf node is created through a strategy. The strategy includes strategy 1, Strategy 2 and Strategy 3, wherein Strategy 1 is to randomly select a column from the node data with equal probability as the node column of the node, Strategy 2 is to randomly select a value between the minimum and maximum values ​​from the column data according to uniform distribution as the node value of the node, Strategy 3 is to use all rows in the node data that are less than the node value as the node data of the left child node, and all rows in the node data that are greater than the node value as the node data of the right child node, and recursively create the left subtree and the right subtree in turn according to the same method, and the leaf node is created until the node data can no longer be divided; Scheme 2 is to construct an isolation forest of 200 trees according to the methods of steps 1 and 2, each tree simulates the probability distribution of the target data, and the entire isolation forest simulates the average probability distribution of the entire data set.

[0024] There are schemes 1, 2 and 3 for calculating the abnormal value score of each row of data. The row of data is set in the matrix X. The scheme 1 is to calculate the depth of the row of data in each binary tree, with an initial depth of 0, and recursively search each node in turn starting from the root node of the binary tree; if the value of the corresponding node column in the row of data is less than the node value and the node has a left child node, the depth increases by 1 and the left child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is greater than the node value and the node has a right child node, the depth increases by 1 and the right child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is equal to the node value or the node is set as a leaf node, the search ends; the scheme 2 is set that the sum of the depths of all binary trees of the row of data in the entire isolation forest is d, and the abnormal value score s of the row of data is obtained by Calculation, γ is the Euler constant; In the third scheme, the abnormality of the data is set, and the abnormality of the data is calculated by It can be seen that the abnormal value score s of the historical data belongs to the interval [0, 1]. The abnormal value score of the data close to 0 indicates that the probability that the data is abnormal data is very small, and the abnormal value score close to 1 indicates that the probability that the data is abnormal data is very large.

[0025] All the anomaly score data are clustered using K-mean with three center points and one iteration, and the anomaly score data are divided into three parts of data: low anomaly, moderate anomaly and high anomaly through clustering; the center point of the high anomaly part of the anomaly score data is used as the basic threshold, and all data segments in the anomaly score data that are greater than or equal to the basic threshold are found as anomaly score data segments; each anomaly score data segment is fitted with multiple trapezoidal polylines, and the starting position of the upper base of the trapezoidal polyline is from the 12th data point to the 12th data point from the end, and the residual sum of squares of each trapezoidal polyline is calculated, and the trapezoidal polyline with the smallest residual sum of squares is selected as the optimal trapezoidal polyline, and the anomaly score corresponding to the upper base of the optimal trapezoidal polyline is used as the anomaly score of the anomaly score data segment; the average value of the anomaly scores of all the anomaly score data segments is used as the alarm threshold of the anomaly scores of all historical data, and 95% of the threshold is used as the early warning threshold.

[0026] Calculate the anomaly score of the real-time data. If the anomaly score is lower than the warning threshold, skip the following steps. If the anomaly score of the real-time data is higher than the warning threshold but lower than the alarm threshold, calculate the trend of the real-time data anomaly score sequence of the previous 11 time points: perform a univariate linear regression on the real-time data anomaly score sequence containing the 12 data. If the slope in the univariate linear regression is greater than 0, and the p-value of the slope in the univariate linear regression is less than 0.05, the real-time data anomaly score sequence has a significant upward trend, triggering an early warning. If the score is higher than or equal to the alarm threshold, an alarm is triggered; each column of the real-time data represents the data of a position number at the current sampling time point, and the data of each position number is analyzed for abnormal conditions: the 60 normal data of the position number before the current time point are used to fit an ARIMA model, and the 95% confidence interval of the 1-step prediction is calculated; if the value of the position number in the real-time data is not within the confidence interval, it is considered that the position number data is abnormally too small or too large compared with the normal situation; if the value of the position number in the real-time data is within the confidence interval, it is considered that the position number data is within the normal range.

[0027] Beneficial effects of the present invention:

[0028] The present invention utilizes big data analysis and machine learning technology, comprehensively considers multiple status data of device units, automatically establishes a probability distribution model of working status data, and detects and predicts abnormal conditions.

[0029] The present invention is not based on rules and assumptions about a specific data distribution, but uses statistical simulation methods to learn the probability distribution of random vectors composed of multiple bit number data from historical data, and uses the learned distribution knowledge to provide early warning and alarm for low-probability real-time data. Such a model is universal and applicable to all random data scenarios.

[0030] The present invention is based on parameter-free statistics and does not require any specific domain knowledge or any assumptions about probability distribution. It can automatically determine the abnormal situation of real-time data based on the distribution of historical data. It is universal and suitable for random data anomaly detection scenarios.

[0031] The present invention adopts an intelligent prediction and early warning method for production risks based on industrial big data. Based on massive industrial big data, the mathematical model can be used to predict and warn risks in advance, which buys more time for fault discovery and processing, and effectively improves fault resolution efficiency.

[0032] The present invention is based on a machine learning algorithm, does not rely on human experience, and can predict abnormal operating conditions of the device based on real-time data, which is conducive to quickly locating the cause of the abnormality.

[0033] The present invention adopts a non-traditional mechanism model algorithm to solve the modeling problem of multi-variable complex working conditions, and is more suitable for industrial big data analysis and processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flow chart of the overall technical solution of a production risk intelligent prediction and early warning method based on industrial big data of the present invention. DETAILED DESCRIPTION

[0035] A production risk intelligent prediction and early warning method based on industrial big data is characterized by comprising the following specific steps: Step 1: In a device unit, a process position number that can reflect the operating status of the device is selected, and the number of the position numbers is greater than 1 and less than 100;

[0036] Step 2: Collect historical data of all bit numbers within a specified time through the API provided by the real-time database;

[0037] Step 3: Analyze the validity of historical data. The data collected in the real-time database includes data value and data quality. The collected data sets of all bit numbers form a sample matrix X. Each column of X represents the data of a bit number, and each row of X represents all bit number data collected at the same time point. The data of the sample matrix X is scanned by a sliding window method, and the scanned data is set for analysis and calculation;

[0038] Step 4: To calculate the bit number historical data distribution model, the input data for calculating the data distribution model is all bit number data that passed the validity check in step 3, and the data distribution model uses the isolation forest algorithm to model the data distribution; Step 5: Through the isolation forest created in step 4, traverse each row of the sample matrix X, and calculate the abnormal value score of each row of data, and the abnormal value score is within [0, 1];

[0039] Step 6: Perform cluster analysis on the historical data anomaly score data calculated in step 5 to determine an anomaly score threshold, and data above the threshold is set as abnormal data;

[0040] Step 7: Follow the method in step 5 and use the isolation forest created in step 4 to calculate the outlier score and trend of the real-time data.

[0041] The physical equipment corresponding to the process number must be in the same device unit. The specific process number is provided by the user, and at least 2 numbers are required. This technical solution supports early warning and alarm for up to 100 numbers.

[0042] The collection bit number is historical data of 1 to 3 years, and the collection bit number 1 to 3 years of historical data has a preferred period, and the preferred period is 2 years. The collection bit number can also collect historical data of all bit numbers within a specified time through the OPC protocol.

[0043] The sliding window method starts from the first row of data and scans 7200 rows of data each time. After the 7200 rows of data are scanned, the same scanning operation is continued after advancing 10 rows from the starting position.

[0044] The analysis and calculation includes assumption 1 and assumption 2. In assumption 1, Y is set i,j Indicates the data quality of the i-th row and j-th column in the data subset being scanned. If the data quality at this position is excellent, it is assigned a value of 1, otherwise it is assigned a value of 0; calculate the average value of the data quality of all columns If the average data quality of the jth column is less than 0.9, the data quality of this column is considered insufficient, and all data of the corresponding position number of this column are removed from the historical data; in the second assumption, by setting x t Represents the data in the tth row of a column in the data subset being scanned, r k represents the sample autocorrelation coefficient of a column in the data subset being scanned with a lag of k steps, and n represents the number of rows in the data subset being scanned. A calculation formula 1 is set, and the calculation formula 1 is: Define the p-value of the Q statistic delayed m periods in a column of the data subset being scanned, where CDF represents the probability distribution function of the chi-square distribution with m degrees of freedom, and the p-value of the Q statistic delayed m periods and CDF set calculation formula 2, which is: The column data has a Q statistic whose p-values ​​are all greater than 0.05 after delays of 3, 6, 9, and 12 periods in a column of the data subset being scanned, and there is no significant change. All data with corresponding bit numbers in the column are removed from the historical data.

[0045] The isolation forest algorithm is used to model data distribution and has schemes 1, 2 and 3. Scheme 1 is provided with target data, Masking effect and Swamping effect. The target data is 512 rows of data randomly sampled with equal probability from all rows in the sample matrix X. The Masking effect indicates that abnormal data increases and becomes dense. The Swamping effect indicates that normal data increases and becomes sparse. Scheme 2 constructs a full binary tree from the target data. Each node of the binary tree has corresponding node columns, node values ​​and node data. The node data of the root node defaults to the entire target data. The entire target data is the node data of the root node. Each node from the root node to the leaf node is created through a strategy. The strategy includes strategy 1, Strategy 2 and Strategy 3, wherein Strategy 1 is to randomly select a column from the node data with equal probability as the node column of the node, Strategy 2 is to randomly select a value between the minimum and maximum values ​​from the column data according to uniform distribution as the node value of the node, Strategy 3 is to use all rows in the node data that are less than the node value as the node data of the left child node, and all rows in the node data that are greater than the node value as the node data of the right child node, and recursively create the left subtree and the right subtree in turn according to the same method, and the leaf node is created until the node data can no longer be divided; Scheme 2 is to construct an isolation forest of 200 trees according to the methods of steps 1 and 2, each tree simulates the probability distribution of the target data, and the entire isolation forest simulates the average probability distribution of the entire data set.

[0046] There are schemes 1, 2 and 3 for calculating the abnormal value score of each row of data. The row of data is set in the matrix X. The scheme 1 is to calculate the depth of the row of data in each binary tree, with an initial depth of 0, and recursively search each node in turn starting from the root node of the binary tree; if the value of the corresponding node column in the row of data is less than the node value and the node has a left child node, the depth increases by 1 and the left child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is greater than the node value and the node has a right child node, the depth increases by 1 and the right child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is equal to the node value or the node is set as a leaf node, the search ends; the scheme 2 is set that the sum of the depths of all binary trees of the row of data in the entire isolation forest is d, and the abnormal value score s of the row of data is obtained by Calculation, γ is the Euler constant; In the third scheme, the abnormality of the data is set, and the abnormality of the data is calculated by It can be seen that the abnormal value score s of the historical data belongs to the interval [0, 1]. The abnormal value score of the data close to 0 indicates that the probability that the data is abnormal data is very small, and the abnormal value score close to 1 indicates that the probability that the data is abnormal data is very large.

[0047] All the anomaly score data are clustered using K-mean with three center points and one iteration, and the anomaly score data are divided into three parts of data: low anomaly, moderate anomaly and high anomaly through clustering; the center point of the high anomaly part of the anomaly score data is used as the basic threshold, and all data segments in the anomaly score data that are greater than or equal to the basic threshold are found as anomaly score data segments; each of the anomaly score data segments is fitted with multiple trapezoidal polylines, and the starting position of the upper base of the trapezoidal polyline is from the 12th data point to the 12th data point from the end, and the residual sum of squares of each trapezoidal polyline is calculated, and the trapezoidal polyline with the smallest residual sum of squares is selected as the optimal trapezoidal polyline, and the anomaly score corresponding to the upper base of the optimal trapezoidal polyline is used as the anomaly score of the anomaly score data segment; the average value of the anomaly score of all the anomaly score data segments is used as the alarm threshold of the anomaly score of all historical data, and 95% of the threshold is used as the early warning threshold; Scheme 6 avoids the problem that the anomaly score threshold obtained by clustering is too large due to the attraction of a (relatively) large number of concentrated large anomaly score data.

[0048] Calculate the anomaly score of the real-time data. If the anomaly score is lower than the warning threshold, skip the following steps. If the anomaly score of the real-time data is higher than the warning threshold but lower than the alarm threshold, calculate the trend of the real-time data anomaly score sequence of the previous 11 time points: perform a univariate linear regression on the real-time data anomaly score sequence containing the 12 data. If the slope in the univariate linear regression is greater than 0, and the p-value of the slope in the univariate linear regression is less than 0.05, the real-time data anomaly score sequence has a significant upward trend, triggering an early warning. If the score is higher than or equal to the alarm threshold, an alarm is triggered; each column of the real-time data represents the data of a position number at the current sampling time point, and the data of each position number is analyzed for abnormal conditions: the 60 normal data of the position number before the current time point are used to fit an ARIMA model, and the 95% confidence interval of the 1-step prediction is calculated; if the value of the position number in the real-time data is not within the confidence interval, it is considered that the position number data is abnormally too small or too large compared with the normal situation; if the value of the position number in the real-time data is within the confidence interval, it is considered that the position number data is within the normal range.

[0049] The present invention utilizes big data analysis and machine learning technology, comprehensively considers multiple status data of device units, automatically establishes a probability distribution model of working status data, and detects and predicts abnormal conditions.

[0050] The present invention is not based on rules and assumptions about a specific data distribution, but uses statistical simulation methods to learn the probability distribution of random vectors composed of multiple bit number data from historical data, and uses the learned distribution knowledge to provide early warning and alarm for low-probability real-time data. Such a model is universal and applicable to all random data scenarios.

[0051] The present invention is based on parameter-free statistics and does not require any specific domain knowledge or any assumptions about probability distribution. It can automatically determine the abnormal situation of real-time data based on the distribution of historical data. It is universal and suitable for random data anomaly detection scenarios.

[0052] The present invention adopts an intelligent prediction and early warning method for production risks based on industrial big data. Based on massive industrial big data, the mathematical model can be used to predict and warn risks in advance, which buys more time for fault discovery and processing, and effectively improves fault resolution efficiency.

[0053] The present invention is based on a machine learning algorithm, does not rely on human experience, and can predict abnormal operating conditions of the device based on real-time data, which is conducive to quickly locating the cause of the abnormality.

[0054] The present invention adopts a non-traditional mechanism model algorithm to solve the modeling problem of multi-variable complex working conditions, and is more suitable for industrial big data analysis and processing.

[0055] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A production risk intelligent prediction and early warning method based on industrial big data, It is characterized in that The specific steps are as follows: Step 1: In a device unit, select a process position number that can reflect the operating status of the device, and the number of position numbers is greater than 1 and less than 100; Step 2: Collect historical data of all bit numbers within a specified time through the API provided by the real-time database; Step 3: Analyze the validity of historical data. The data collected in the real-time database include data value and data quality. All the bit number data sets collected constitute a sample matrix X. Each column of X represents the data of a bit number, and each row of X represents all bit number data collected at the same time point. The data of the sample matrix X is scanned by the sliding window method, and the scanned data is set for analysis and calculation; Step 4: To calculate the bit number historical data distribution model, the input data for calculating the data distribution model is all bit number data that have passed the validity check in step 3, and the data distribution model uses an isolation forest algorithm to model the data distribution; Step 5: Through the isolation forest created in step 4, traverse each row of the sample matrix X and calculate the outlier score of each row of data, where the outlier score is within [0, 1]; Step 6: Perform cluster analysis on the historical data anomaly score data calculated in step 5 to determine an anomaly score threshold, and data above the threshold is set as abnormal data; Step 7: Using the isolation forest created in step 4, calculate the outlier scores and trends of the real-time data using the method in step 5. All abnormal value score data are clustered by K-mean with 3 center points and 1 iteration, and the abnormal value score data are divided into 3 parts of data, namely, low abnormality, moderate abnormality and high abnormality through clustering; the center point of the high abnormality part of the abnormal value score data is used as the basic threshold, and all data segments in the abnormal value score data that are greater than or equal to the basic threshold are found as abnormal value score data segments; each of the abnormal value score data segments is fitted with multiple trapezoidal polylines, and the starting position of the upper base of the trapezoidal polyline is from the 12th data point to the 12th data point from the end, and the residual sum of squares of each trapezoidal polyline is calculated, and the trapezoidal polyline with the smallest residual sum of squares is selected as the optimal trapezoidal polyline, and the abnormal value score corresponding to the upper base of the optimal trapezoidal polyline is used as the abnormal value score of the abnormal value score data segment; the average value of the abnormal value scores of all the abnormal value score data segments is used as the alarm threshold of the abnormal value scores of all historical data, and 95% of the alarm threshold is used as the early warning threshold; The isolation forest algorithm is used to model data distribution, and there are schemes 1, 2, and 3. In scheme 1, there are target data, Masking effect, and Swamping effect. The target data is 512 rows of data randomly sampled with equal probability from all rows in the sample matrix X. The Masking effect indicates that abnormal data increases and becomes dense. The Swamping effect indicates that normal data increases and becomes sparse. The scheme 2 constructs a full binary tree through the target data. Each node of the binary tree has a corresponding node column, node value and node data. The node data of the root node defaults to the entire target data. Each node from the root node to the leaf node is created through a strategy, and the strategy includes strategy 1, strategy 2, and strategy 3. Strategy 1 is to randomly select a column from the node data as the node column of the node according to equal probability. Strategy 2 is to randomly select a value between the minimum value and the maximum value from the column data according to uniform distribution as the node value of the node. Strategy 3 is to use all rows in the node data that are less than the node value as the node data of the left child node, and all rows in the node data that are greater than the node value as the node data of the right child node. The left subtree and the right subtree are recursively created in turn according to the same method, until the leaf node cannot be divided any further through the node data; the scheme 3 is to construct 200 trees to form an isolation forest according to the methods of schemes 1 and 2, each tree simulates the probability distribution of the target data, and the entire isolation forest simulates the average probability distribution of the entire data set; Calculate the anomaly score of the real-time data. If the anomaly score is lower than the warning threshold, skip the following steps. If the anomaly score of the real-time data is higher than the warning threshold but lower than the alarm threshold, calculate the trend of the real-time data anomaly score sequence of the previous 11 time points: perform a univariate linear regression on the real-time data anomaly score sequence containing the 12 data. If the slope in the univariate linear regression is greater than 0, and the p-value of the 0 test of the slope coefficient of the fitting line in the univariate linear regression is less than 0.05, the real-time data anomaly score sequence has a significant upward trend, triggering an early warning. The abnormal value score of the real-time data is higher than or equal to the alarm threshold, triggering an alarm; each column of the real-time data represents the data of a position number at the current sampling time point, and the data of each position number is analyzed for abnormal conditions: an ARIMA model is fitted using 60 normal data of the position number before the current time point, and a 95% confidence interval of the ARIMA model 1-step prediction is calculated; if the value of the position number in the real-time data is not within the confidence interval, it is considered that the position number data is abnormally too small or too large compared with the normal situation; if the value of the position number in the real-time data is within the confidence interval, it is considered that the position number data is within the normal range.

2. According to claim 1, a production risk intelligent prediction and early warning method based on industrial big data, It is characterized in that The physical equipment corresponding to the process number must be in the same device unit. The specific process number is provided by the user. At least 2 numbers are required, and up to 100 numbers of early warnings and alarms are supported.

3. According to claim 1, a production risk intelligent prediction and early warning method based on industrial big data, It is characterized in that The collection bit number is 1 to 3 years of historical data. The collection bit number can also collect the historical data of all bit numbers within a specified time through the OPC protocol.

4. According to claim 1, a production risk intelligent prediction and early warning method based on industrial big data, It is characterized in that The sliding window method starts from the first row of data and scans 7200 rows of data each time. After the 7200 rows of data are scanned, the same scanning operation is continued after advancing 10 rows from the starting position.

5. According to claim 1, a production risk intelligent prediction and early warning method based on industrial big data, It is characterized in that There are schemes 1, 2 and 3 for calculating the abnormal value score of each row of data. The row of data is set in the matrix X. The scheme 1 is to calculate the depth of the row of data in each binary tree, with an initial depth of 0, and recursively search each node in turn starting from the root node of the binary tree; if the value of the corresponding node column in the row of data is less than the node value and the node has a left child node, the depth increases by 1 and the left child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is greater than the node value and the node has a right child node, the depth increases by 1 and the right child node is searched, otherwise the search ends; if the value of the corresponding node column in the row of data is equal to the node value or the node is set as a leaf node, the search ends; the scheme 2 is set to have the sum of the depths of all binary trees of the row of data in the entire isolation forest as d, and the abnormal value score s of the row of data is calculated by γ=0.577215664901532, Calculation, γ is the Euler constant; in the scheme three, the abnormality of the data is set, and the abnormality of the data is calculated by γ=0.577215664901532, It can be seen that the anomaly score s of the historical data belongs to the interval [0,1]. The anomaly score close to 0 for the data indicates that the probability that the data is anomaly is very small, and the anomaly score close to 1 indicates that the probability that the data is anomaly is very large.

Citation Information

Patent Citations

  • Equipment fault warning and state monitoring method

    CN104102773A

  • Power customer demand sensitivity monitoring and early warning method based on random forest

    CN111539585A

  • Financial transaction system anomaly identification method based on isolated forest algorithm

    CN111798312A