Abnormality detection method and device, electronic equipment and storage medium

By obtaining real-time production data of the intelligent control system and inputting it into the anomaly detection model, the abnormality types are automatically detected and visualized, which solves the problem of operators' subjective bias in determining the abnormal status of the intelligent control system and improves the accuracy and reliability of detection.

CN118655880APending Publication Date: 2024-09-17HANGZHOU ANMAISHENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410846010.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Operators cannot have an in-depth understanding of the control logic of the intelligent control system under steady-state production conditions, resulting in subjective bias in determining the abnormal state of the intelligent control system, which can easily lead to serious misjudgments and missed judgments.

Method used

An anomaly detection method is provided. By obtaining real-time production data of the production line intelligent control system, including control volume, interference volume and controlled volume characteristics, the anomaly detection model is input to automatically detect abnormal states. This method uses normal production data to construct abnormal values, characterizes the difference between real-time data and normal data, and determines the abnormal type based on the comparison results for visual output.

Benefits of technology

It realizes automatic detection of abnormal status of the production line intelligent control system, avoids misjudgment problems caused by manual judgment, and improves the accuracy and reliability of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118655880A
    Figure CN118655880A
Patent Text Reader

Abstract

The invention provides an anomaly detection method and device, electronic equipment and a storage medium, and relates to the field of automatic production lines, and the method comprises the steps: obtaining the real-time production data of a production line intelligent control system at the current moment; the real-time production data comprises a control quantity characteristic, an interference quantity characteristic and a controlled quantity characteristic, and the intelligent control system of the production line adjusts the control quantity under the action of the interference quantity to maintain the controlled quantity; inputting the real-time production data into an anomaly detection model to obtain an abnormal value corresponding to the real-time production data; the anomaly detection model is constructed by using normal production data of a production line intelligent control system, and an abnormal value represents the distinction degree between the real-time production data and the normal production data; when it is determined that the abnormal value is greater than a preset threshold value, comparing the real-time production data with abnormal production data of various abnormal types, and determining the abnormal type of the real-time production data according to a comparison result; performing visual output on the abnormal type of the real-time production data; the abnormal state of the intelligent control system can be automatically detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated production, and in particular to an abnormality detection method, device, electronic equipment and storage medium. Background Art

[0002] With the development of automation technology, traditional industrial manufacturing industries have gradually introduced intelligent control systems to convert manual production lines into automated production lines. In related technologies, the intelligent control system will autonomously control the production line for production, and the operator will mainly determine whether the intelligent control system is abnormal based on the quality of the finished product. Since the operator cannot deeply understand the control logic of the intelligent control system under steady-state production conditions, and the quality of the finished products produced by the intelligent control system usually fluctuates within a reasonable range, the operator's judgment on the abnormal state of the intelligent control system has subjective deviations, which can easily lead to serious misjudgments and missed judgments. Summary of the invention

[0003] The purpose of the present invention is to provide an abnormality detection method, device, electronic equipment and storage medium, which can automatically detect the abnormal state of the intelligent control system of the production line.

[0004] In order to solve the above technical problems, the present invention provides an anomaly detection method, comprising:

[0005] Acquire the real-time production data of the intelligent control system of the production line at the current moment; the real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and the intelligent control system of the production line adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity;

[0006] The real-time production data is input into an anomaly detection model to obtain an anomaly value corresponding to the real-time production data; the anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data;

[0007] When it is determined that the abnormal value is greater than a preset threshold, the real-time production data is compared with abnormal production data of various abnormal types, and the abnormal type corresponding to the real-time production data is determined according to the comparison result;

[0008] The abnormality type corresponding to the real-time production data is output visually.

[0009] Optionally, the obtaining of real-time production data of the production line intelligent control system at the current moment includes:

[0010] The actual value of the control amount of the production line intelligent control system at the current moment and the actual values ​​of the control amount at a preset number of adjacent historical moments before the current moment are averaged to obtain the control amount value of the production line intelligent control system at the current moment;

[0011] Determine the difference between the control amount set value of the production line intelligent control system at the current moment and the control amount set value of the production line intelligent control system at the previous historical moment;

[0012] The actual value of the interference amount of the production line intelligent control system at the current moment and the actual values ​​of the interference amount at a preset number of adjacent historical moments before the current moment are averaged to obtain the interference amount value of the production line intelligent control system at the current moment;

[0013] Determine the difference of the interference amount of the production line intelligent control system at the current moment according to the actual value of the interference amount of the production line intelligent control system at the current moment and the actual value of the interference amount at the previous historical moment;

[0014] Determine the difference of the controlled quantity of the production line intelligent control system at the current moment according to the actual value of the controlled quantity of the production line intelligent control system at the current moment and the preset baseline value;

[0015] The control quantity value and the control quantity setting value difference are set as the control quantity characteristic, the interference quantity value and the interference quantity difference are set as the interference quantity characteristic, and the controlled quantity difference is set as the controlled quantity difference, so as to obtain the real-time production data of the production line intelligent control system at the current moment.

[0016] Optionally, before obtaining the real-time production data of the production line intelligent control system at the current moment, the method further includes:

[0017] Acquiring abnormal production data generated by the intelligent control system of the production line in abnormal production batches;

[0018] When the abnormal type of the abnormal production batch has been recorded, classifying the abnormal production data using the abnormal type of the abnormal production batch;

[0019] When the abnormal type of the abnormal production batch is not recorded, unsupervised clustering is performed on the abnormal production data, and an abnormal type is set for the abnormal production data of the category according to data features of the abnormal production data clustered into the same category.

[0020] Optionally, the obtaining of abnormal production data generated by the intelligent control system of the production line in an abnormal production batch includes:

[0021] Obtain normal production data of the production line intelligent control system under normal production conditions and production data to be analyzed generated in abnormal production batches;

[0022] Determine the data distribution of the normal production data, and determine the abnormal data in the production data to be analyzed based on the data distribution and the box plot;

[0023] The occurrence time of the abnormal data is determined, and production data corresponding to a preset number of adjacent historical moments before the occurrence time among the abnormal data and the production data to be analyzed is set as the abnormal production data.

[0024] Optionally, before obtaining the real-time production data of the production line intelligent control system at the current moment, the method further includes:

[0025] Inputting the abnormal production data into the abnormality detection model to obtain an abnormal value of the abnormal production data, and setting the preset threshold value according to the abnormal value of the abnormal production data;

[0026] and / or, inputting the normal production data into the anomaly detection model to obtain an abnormal value of the normal production data;

[0027] The abnormal value of the abnormal production data is determined based on a normal distribution pattern using the abnormal value of the normal production data, and the preset threshold is set according to the abnormal value of the abnormal production data.

[0028] Optionally, comparing the real-time production data with abnormal production data of various abnormal types includes:

[0029] Clustering the real-time production data with abnormal production data of various abnormal types to determine the cluster category to which the real-time production data belongs;

[0030] The abnormal type of the real-time production data is determined according to the abnormal type corresponding to the abnormal production data in the cluster category.

[0031] Optionally, the anomaly detection model is an isolated Mondrian forest;

[0032] After obtaining the abnormal value corresponding to the real-time production data, the method further includes:

[0033] When it is determined that the abnormal value is less than or equal to the preset threshold, the abnormality detection model is updated using the real-time production data.

[0034] The present invention also provides an abnormality detection device, comprising:

[0035] An acquisition module is used to acquire real-time production data of the intelligent control system of the production line at the current moment; the real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and the intelligent control system of the production line adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity;

[0036] A detection module, used for inputting the real-time production data into an anomaly detection model to obtain an anomaly value corresponding to the real-time production data; the anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data;

[0037] An abnormality type determination module, used for comparing the real-time production data with abnormal production data of various abnormal types when it is determined that the abnormal value is greater than a preset threshold, and determining the abnormality type corresponding to the real-time production data according to the comparison result;

[0038] The output module is used to visually output the abnormality type corresponding to the real-time production data.

[0039] The present invention also provides an electronic device, comprising:

[0040] Memory for storing computer programs;

[0041] A processor is used to implement the above-mentioned anomaly detection method when executing the computer program.

[0042] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the above-mentioned anomaly detection method is implemented.

[0043] The present invention provides an anomaly detection method, comprising: acquiring real-time production data of an intelligent control system of a production line at a current moment; the real-time production data comprises control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and the intelligent control system of the production line adjusts the control quantity under the action of the interference quantity to maintain the controlled quantity; inputting the real-time production data into an anomaly detection model to obtain an anomaly value corresponding to the real-time production data; the anomaly detection model is constructed using normal production data of the intelligent control system of the production line, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data; when it is determined that the anomaly value is greater than a preset threshold, comparing the real-time production data with abnormal production data of various abnormal types, and determining the anomaly type corresponding to the real-time production data according to the comparison result; and visually outputting the anomaly type corresponding to the real-time production data.

[0044] It can be seen that the present invention can first obtain the real-time production data of the intelligent control system of the production line at the current moment, and the real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, wherein the relationship between the control quantity, interference quantity and controlled quantity is: the intelligent control system of the production line adjusts the control quantity under the action of the interference quantity to maintain the controlled quantity; subsequently, the present invention can input the real-time production data into the abnormal detection model to obtain the abnormal value corresponding to the real-time production data, wherein the abnormal detection model is constructed using the normal production data of the intelligent control system of the production line, and the abnormal value represents the distinction between the real-time production data and the normal production data, that is, it can determine whether the real-time production data is abnormal according to the distinction between the real-time production data and the normal production data; further, when it is determined that the abnormal value is greater than the preset threshold, the present invention can compare the real-time production data with abnormal production data of various abnormal types, and determine the abnormal type corresponding to the real-time production data according to the comparison result, and then the abnormal type corresponding to the real-time production data can be visualized and output. Obviously, the present invention can automatically detect the abnormal state of the intelligent control system of the production line, thereby avoiding the problem of misjudgment easily caused by manual detection. The present invention also provides an abnormal detection device, an electronic device and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 A flowchart of an anomaly detection method provided by an embodiment of the present invention;

[0047] Figure 2 A flowchart of another anomaly detection method provided by an embodiment of the present invention;

[0048] Figure 3 This is a structural block diagram of an abnormality detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] With the development of automation technology, traditional industrial manufacturing industries have gradually introduced intelligent control systems to convert manual production lines into automated production lines. In related technologies, the intelligent control system will autonomously control the production line for production, and the operator mainly determines whether the intelligent control system is abnormal based on the quality of the finished product. Since the operator cannot deeply understand the control logic of the intelligent control system under the steady-state production state, and the quality of the finished products produced by the intelligent control system usually fluctuates within a reasonable range, the operator's judgment on the abnormal state of the intelligent control system has subjective deviations, which can easily lead to serious misjudgments and missed judgments. For example, when the operator mistakenly judges the normal state of the system as an abnormal state, it is easy to cause the intelligent control system to be mistakenly cut off, resulting in poor control quality; when the operator mistakenly judges the abnormal state of the system as a normal state, it is easy to cause poor quality of the finished product, and then lead to waste of raw materials. In view of this, the present invention can provide an abnormality detection method that can automatically detect the abnormal state of the intelligent control system of the production line, thereby avoiding the serious missed judgment and wrong judgment problems that are easily caused by manual judgment.

[0051] It should be noted that the embodiments of the present invention do not limit the specific hardware device for executing the method. For example, it can be a personal computer, a server or other special equipment, which can be set according to actual application requirements.

[0052] Please refer to Figure 1 , Figure 1 A flowchart of an abnormality detection method provided by an embodiment of the present invention, the method may include:

[0053] S101. Acquire the real-time production data of the intelligent control system of the production line at the current moment; the real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics. The intelligent control system of the production line adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity.

[0054] In order to realize automatic monitoring of abnormal state of production line intelligent control system, the embodiment of the present invention first needs to obtain real-time production data of the system in real time. Among them, the real-time production data contains control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and these three characteristics are obtained by respectively processing the control quantity, interference quantity and controlled quantity. The relationship between the control quantity, interference quantity and controlled quantity is: the production line intelligent control system adjusts the control quantity under the action of the interference quantity to maintain the controlled quantity. In other words, the control quantity is the controllable quantity of the production line intelligent control system, the interference quantity is the uncontrollable quantity of the production line intelligent control system, and the controlled quantity is the maintenance quantity of the production line intelligent control system. For example, in the drying process of tobacco manufacturing industry, the controllable quantities such as the barrel wall temperature and the opening of the dehumidification air door can be the control quantity, the material outlet moisture can be the controlled quantity, and the uncontrollable factors such as the ambient temperature and humidity and the inlet moisture can be the interference variables. It can be seen that the control quantity, interference quantity and controlled quantity are three types of data that the intelligent control system of the production line directly contacts. The interference quantity has a direct effect on the value and adjustment of the control quantity. Therefore, for abnormal monitoring of the control quantity, the interference quantity and its changes need to be used as one of the characteristics; the deviation item of the controlled quantity is the evaluation index of the entire intelligent control system. It is the basis for the operator to intuitively judge the state of the intelligent control system and needs to be used as one of the important features in the abnormal monitoring of the intelligent control system. By observing the changes in these data, it is easy to understand the working status of the intelligent control system of the production line, and then it is easy to distinguish the normal state and abnormal state of the intelligent control system of the production line.

[0055] Of course, since the control quantity, interference quantity and controlled quantity are raw data, it is difficult to obtain rich characteristic information by directly observing the changes of these three data, and these three data may also have errors such as jumps. Therefore, after obtaining these three data, the present invention will perform data processing on them to extract characteristic information from these three data to obtain control quantity characteristics, interference quantity characteristics and controlled quantity characteristics. It should be noted that the embodiment of the present invention does not limit the specific data processing method, which can be set according to actual application requirements. The calculation method of the three characteristic quantities is introduced in detail below.

[0056] Regarding the control quantity characteristics, firstly, in order to examine the time series change of the control quantity and to prevent the control quantity at a certain moment from jumping, the embodiment of the present invention can average the control quantity at the current moment and the control quantities at the preset number of adjacent historical moments before the current moment to obtain the control quantity value at the current moment; in addition, the change of the control quantity is also the key inspection content of abnormal detection, so the difference calculation can be performed based on the control quantity at the current moment and the control quantity at the previous historical moment to obtain the control quantity difference at the current moment. That is, the control quantity characteristics can include the control quantity value at the current moment and the control quantity difference. It should be pointed out here that the control quantity output by the intelligent control system of the production line at a certain moment may be of two types, namely, the actual value of the control quantity and the set value of the control quantity, wherein the actual value of the control quantity is the control quantity that has been in effect at the current moment, and the set value of the control quantity is the control quantity corresponding to the control instruction issued by the intelligent control system of the production line at the current moment. In short, the set value of the control quantity is used to adjust the actual value of the control quantity, and at a certain moment, the set value of the control quantity and the actual value of the control quantity may not be equal. At this time, for the control amount value at the current moment, the embodiment of the present invention can use the actual value of the control amount for calculation, that is, the control amount value at the current moment is the corresponding value obtained by averaging the actual value of the control amount at the current moment and the actual value of the control amount at the previous X moments, where X represents the preset sliding window size; and for the control amount difference at the current moment, the embodiment of the present invention can use the control amount setting value for calculation, that is, the control amount difference at the current moment is the difference between the control amount setting value at the current moment and the control amount setting value at the previous historical moment, and at this time, the control amount difference can also be called the control amount setting value difference.

[0057] With respect to the interference quantity feature, firstly, in order to examine the time series variation of the interference quantity and to prevent the interference quantity from jumping at a certain moment, the embodiment of the present invention can average the actual value of the interference quantity at the current moment and the actual value of the interference quantity at the preset number of adjacent historical moments before the current moment to obtain the interference quantity value at the current moment, that is, the interference quantity value at the current moment is the corresponding value obtained by averaging the actual value of the interference quantity at the current moment and the actual value of the interference quantity at the previous X moments, where X represents the preset sliding window size. Among them, the actual value of the interference quantity is the interference quantity value measured by the intelligent control system at each moment. In addition, the variation of the interference quantity is also a key inspection content of abnormal detection, so the difference calculation can also be performed based on the actual value of the interference quantity at the current moment and the actual value of the interference quantity at the previous historical moment to obtain the interference quantity difference at the current moment. That is, the interference quantity feature can include the interference quantity value at the current moment and the interference quantity difference.

[0058] Regarding the characteristics of the controlled quantity, since the control purpose of the intelligent control system is to maintain the controlled quantity near the preset baseline value, the embodiment of the present invention can directly use the difference between the actual value of the controlled quantity at the current moment and the preset baseline value (i.e., the controlled quantity difference) as the characteristic of the controlled quantity.

[0059] Based on this, the real-time production data of the production line intelligent control system at the current moment can be obtained, which may include:

[0060] Step 11: average the actual value of the control amount of the production line intelligent control system at the current moment and the actual values ​​of the control amount at a preset number of adjacent historical moments before the current moment to obtain the control amount value of the production line intelligent control system at the current moment;

[0061] Step 12: Determine the difference between the control quantity set value of the production line intelligent control system at the current moment and the control quantity set value at the previous historical moment by using the control quantity set value of the production line intelligent control system at the current moment;

[0062] Step 13: average the actual value of the interference amount of the production line intelligent control system at the current moment and the actual values ​​of the interference amount at a preset number of adjacent historical moments before the current moment to obtain the interference amount value of the production line intelligent control system at the current moment;

[0063] Step 14: Determine the difference of the interference amount of the production line intelligent control system at the current moment according to the actual value of the interference amount of the production line intelligent control system at the current moment and the actual value of the interference amount at the previous historical moment;

[0064] Step 15: Determine the difference of the controlled quantity of the production line intelligent control system at the current moment according to the actual value of the controlled quantity of the production line intelligent control system at the current moment and the preset baseline value;

[0065] Step 16: Set the control quantity value and the control quantity setting value difference as the control quantity characteristic, set the interference quantity value and the interference quantity difference as the interference quantity characteristic, set the controlled quantity difference as the controlled quantity difference, and obtain the real-time production data of the production line intelligent control system at the current moment.

[0066] Of course, it should be pointed out that the control quantity characteristics, interference quantity characteristics and controlled quantity characteristics may not only include the contents mentioned in the above embodiments, but also include other data quantities obtained by processing the control quantity, interference quantity and controlled quantity respectively, which can be set according to actual application requirements.

[0067] S102. Input the real-time production data into an anomaly detection model to obtain an anomaly value corresponding to the real-time production data; the anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the distinction between the real-time production data and the normal production data.

[0068] In order to realize automatic anomaly detection of real-time production data, the embodiment of the present invention also pre-constructs an anomaly detection model, and the real-time production data can be input into the model for anomaly value calculation, and the real-time production data can be determined according to the anomaly value of the real-time production data to determine whether the real-time production data represents an abnormal state of the system. Specifically, the anomaly detection model can be constructed using the normal production data of the production line intelligent control system, and the anomaly value can represent the distinction between the real-time production data and the normal production data. This is because when the production of the production line intelligent control system reaches a normal and stable state, the normal production data produced by it is usually more concentrated and has less fluctuation; while the abnormal production data generated by the system under abnormal conditions is usually easy to deviate from the normal production data, and the distinction from the normal production data is greater. Based on this characteristic, the embodiment of the present invention only needs to collect a sufficient amount of normal production data, and use the normal production data as the baseline data to train the anomaly detection model, so that the anomaly detection model determines whether the real-time production data deviates from the normal range according to the baseline, and outputs an anomaly value representing the distinction between the real-time production data and the normal production data, so as to realize the automatic detection of abnormal production data.

[0069] It should be noted that the embodiments of the present invention do not limit the anomaly detection algorithm used by the anomaly detection model. For example, the isolation forest algorithm may be used, and the isolation Mondrian forest algorithm may be further used. Among them, the isolation forest algorithm may use multiple randomly generated decision trees to divide the data points, so that each data point can be isolated to the corresponding small interval. If a data point can be distinguished in any decision tree with only a small number of splits, it means that the data point is an anomaly. Based on the isolation forest algorithm, the isolation Mondrian forest replaces the process of constructing the tree of the isolation forest with the Mondrian process, so that each tree in the forest can flexibly adapt to the newly input data points based on the recursive nature of the Mondrian process. Of course, other outlier detection algorithms can also be used as the algorithms used by the anomaly detection model, which can be set according to actual application requirements.

[0070] Furthermore, it should be pointed out that the numerical content contained in the normal production data and the corresponding acquisition method are consistent with the relevant description of the above-mentioned real-time production data, and will not be repeated here.

[0071] S103: When it is determined that the abnormal value is greater than a preset threshold, the real-time production data is compared with abnormal production data of various abnormal types, and the abnormal type corresponding to the real-time production data is determined according to the comparison result.

[0072] In this step, when it is determined that the abnormal value is greater than the preset threshold, it means that the production data implemented at the current moment has deviated from the normal production data and is abnormal production data. At this time, in order to determine the abnormal cause of the production line intelligent control system, the embodiment of the present invention also needs to compare the real-time production data with the abnormal production data of various abnormal types, and determine the abnormal type corresponding to the real-time production data based on the comparison result. In other words, the embodiment of the present invention can pre-collect the abnormal production data generated by the production line intelligent control system under abnormal conditions, and mark the abnormal type for each abnormal production data according to the abnormal cause. Furthermore, after discovering the abnormal real-time production data, the embodiment of the present invention only needs to compare the real-time production data with the marked abnormal production data, and determine the abnormal type of the relatively similar abnormal production data as the abnormal type of the real-time production data.

[0073] It should be noted that the embodiments of the present invention do not limit the comparison method of real-time production data and abnormal production data. For example, the two can be converted into vector form for comparison, or both real-time production data and abnormal production data can be used as data points, and the data points of real-time production data and the data points of abnormal production data are clustered together to determine the cluster category to which the real-time production data belongs, and then determine the abnormal type of the real-time production data according to the abnormal type corresponding to the abnormal production data in the cluster category. Considering that the clustering method is easy to implement, the embodiments of the present invention will compare the real-time production data and the abnormal production data based on the clustering method.

[0074] Based on this, the real-time production data is compared with abnormal production data of various abnormal types, including:

[0075] Step 21: clustering the real-time production data and abnormal production data of various abnormal types to determine the cluster category to which the real-time production data belongs;

[0076] Step 22: Determine the abnormal type of the real-time production data according to the abnormal type corresponding to the abnormal production data in the cluster category.

[0077] It should be noted that the embodiment of the present invention does not limit the clustering algorithm used for clustering processing, for example, it can be a KNN algorithm (k-Nearest Neighbor, K nearest neighbor algorithm), or other supervised clustering algorithms. Considering that the KNN algorithm can improve clustering accuracy based on a voting mechanism, the embodiment of the present invention can perform clustering processing on real-time production data and abnormal production data based on the KNN algorithm.

[0078] Furthermore, the embodiments of the present invention do not limit the specific value of the preset threshold value, which can be set according to actual application requirements. At the same time, the value can be set manually or according to specific experimental results. The embodiments of the present invention also do not limit the specific abnormal type, which can be set according to actual application requirements. In addition, the numerical content and corresponding acquisition method contained in the abnormal production data are consistent with the relevant description of the above-mentioned real-time production data, and will not be repeated here.

[0079] S104. Visually output the abnormality type corresponding to the real-time production data.

[0080] In this step, after determining the abnormal type of the abnormal real-time production data, the abnormal type can be visualized (such as image output) so that the operator can handle it in time. Furthermore, considering that different operators have different abilities to eliminate abnormalities, corresponding processing methods can be set for various abnormal types to facilitate abnormal elimination. When outputting the abnormal type, the corresponding processing method can also be output at the same time so that the operator can eliminate the abnormality according to the processing method. It should be noted that the embodiment of the present invention does not limit the specific visual output form, and can be set according to actual application requirements.

[0081] Furthermore, when the anomaly detection model is constructed based on the isolated Mondrian forest algorithm, in order to improve the real-time performance of the anomaly detection model, when the embodiment of the present invention determines that the anomaly value of the real-time production data is less than or equal to the preset threshold, that is, when the real-time production data is determined to be normal production data, the real-time production data can also be used to update the anomaly detection model. This is because the isolated Mondrian forest algorithm has transformed the tree construction method into a Mondrian process, so that each tree in the forest can flexibly adapt to the newly input data points based on the recursive nature of the Mondrian process. The anomaly detection model update process is roughly as follows:

[0082] 1. Receive new data points (i.e. normal real-time production data);

[0083] 2. Decide whether to divide;

[0084] 3. Update the structure of the Mondrian tree;

[0085] 4. Update the anomaly score;

[0086] 5. Elimination and renewal of trees.

[0087] In the above process, the division rule in step 2 is to limit the data density of leaf nodes to prevent the data density from being too sparse, resulting in excessive differences in the calculation of abnormal scores, or the data density from being too high, resulting in the omission of abnormal points. The embodiment of the present invention does not limit the specific division rule, and reference may be made to the related technology of the isolated Mondrian forest algorithm.

[0088] Based on this, the anomaly detection model is an isolated Mondrian forest. After obtaining the anomaly values ​​corresponding to the real-time production data, it can also include:

[0089] S105: When it is determined that the abnormal value is less than or equal to the preset threshold, the abnormality detection model is updated using the real-time production data.

[0090] Based on the above embodiments, the present invention can first obtain the real-time production data of the intelligent control system of the production line at the current moment, and the real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, wherein the relationship between the control quantity, interference quantity and controlled quantity is: the intelligent control system of the production line adjusts the control quantity under the action of the interference quantity to maintain the controlled quantity; subsequently, the present invention can input the real-time production data into the abnormal detection model to obtain the abnormal value corresponding to the real-time production data, wherein the abnormal detection model is constructed using the normal production data of the intelligent control system of the production line, and the abnormal value represents the distinction between the real-time production data and the normal production data, that is, it can determine whether the real-time production data is abnormal according to the distinction between the real-time production data and the normal production data; further, when it is determined that the abnormal value is greater than the preset threshold, the present invention can compare the real-time production data with abnormal production data of various abnormal types, and determine the abnormal type corresponding to the real-time production data according to the comparison result, and then can visualize the abnormal type corresponding to the real-time production data. Obviously, the present invention can automatically detect the abnormal state of the intelligent control system of the production line, thereby avoiding the misjudgment problem easily caused by manual detection.

[0091] Based on the above embodiments, the following describes in detail the method for obtaining and marking abnormal production data. In one possible scenario, before obtaining the real-time production data of the production line intelligent control system at the current moment, the method may also include:

[0092] S201. Acquire abnormal production data generated by the intelligent control system of the production line in abnormal production batches.

[0093] It is understandable that the finished products produced by the intelligent control system of the production line usually include batches. The quality of each batch can be determined during quality inspection. If the quality meets the standard, it is a normal production batch, and if the quality does not meet the standard, it is an abnormal production batch. Obviously, the production data generated by the intelligent control system of the production line when producing abnormal production batches includes abnormal production data. Further, since the time when the intelligent control system is abnormal is not fixed, that is, the production data generated by the intelligent control system of the production line when producing abnormal production batches are not all abnormal production data, the embodiment of the present invention needs to determine the location of the abnormal production data. In this regard, the embodiment of the present invention can locate the abnormal production data according to the data distribution. Specifically, the embodiment of the present invention can obtain the normal production data of the intelligent control system of the production line under normal production conditions and the production data to be analyzed generated in the abnormal production batch; then, the data distribution of the normal production data can be determined, and the outlier abnormal data in the production data to be analyzed can be determined according to the data distribution and the box-and-whisker plot, so as to complete the positioning. Further, considering that the production data generated by the intelligent control system of the production line is time-series data, the time of occurrence of the abnormal data can be further determined, and the production data corresponding to the preset number of adjacent historical moments before the occurrence of the abnormal data and the production data to be analyzed are set as abnormal production data. It should be noted that the embodiments of the present invention do not limit the specific numerical value of the preset number, which can be set according to actual application requirements.

[0094] Based on this, obtaining abnormal production data generated by the production line intelligent control system in abnormal production batches may include:

[0095] Step 31: Acquire normal production data of the production line intelligent control system under normal production conditions and production data to be analyzed generated in abnormal production batches;

[0096] Step 32: determine the data distribution of normal production data, and determine abnormal data in the production data to be analyzed based on the data distribution and the box plot;

[0097] Step 33: Determine the occurrence time of the abnormal data, and set the production data corresponding to a preset number of adjacent historical moments before the occurrence time in the abnormal data and the production data to be analyzed as abnormal production data.

[0098] S202: When the abnormal type of the abnormal production batch has been recorded, the abnormal production data is classified using the abnormal type of the abnormal production batch.

[0099] After the abnormal production data is obtained, if the abnormal production batch has a clear abnormal cause recorded, the abnormal production data can be classified using the abnormal type of the abnormal production batch.

[0100] S203: When the abnormal type of the abnormal production batch is not recorded, unsupervised clustering is performed on the abnormal production data, and an abnormal type is set for the abnormal production data of the same category according to the data features of the abnormal production data that are clustered into the same category.

[0101] If the abnormal production batch does not record a clear abnormal reason, the embodiment of the present invention can also perform unsupervised clustering on these abnormal production data, and set the abnormal type for the abnormal production data of the same category according to the data characteristics of the abnormal production data that are clustered into the same category. For example, if the numerical items of the barrel wall temperature are all abnormal in a cluster of clustered data, this category can be classified as the category of abnormal barrel wall temperature control. It should be noted that the embodiment of the present invention does not limit the specific unsupervised clustering algorithm, and can be set according to actual application requirements, for example, it can be the DBSCAN algorithm (Density-Based Spatial Clustering of Applications with Noise, a density-based clustering method with noise).

[0102] It is worth noting that step S202 and step S203 can be used in combination. For example, when some abnormal production data have been labeled with abnormal types, while other abnormal production data have not been labeled with abnormal types, all abnormal production data can be subjected to unsupervised clustering processing, and each cluster of data can be labeled according to the abnormal type appearing in the cluster of data.

[0103] Based on the above embodiment, the following is a detailed introduction to the setting method of the preset threshold for determining whether the real-time production data is abnormal. In one possible case, before obtaining the real-time production data of the production line intelligent control system at the current moment, the method may also include:

[0104] S301, inputting abnormal production data into an abnormality detection model to obtain abnormal values ​​of the abnormal production data, and setting a preset threshold value according to the abnormal values ​​of the abnormal production data;

[0105] And / or, S302, inputting normal production data into an anomaly detection model to obtain anomaly values ​​of the normal production data; using the anomaly values ​​of the normal production data to determine the anomaly values ​​of the abnormal production data based on a normal distribution model, and setting a preset threshold value according to the anomaly values ​​of the abnormal production data.

[0106] The embodiment of the present invention provides two ways of setting the preset threshold. First, if sufficient abnormal production data has been obtained, these data can be directly input into the anomaly detection model to obtain the abnormal value of each abnormal production data, and then the preset threshold is determined by combining the abnormal values ​​of all abnormal production data. Since there can be multiple preset thresholds determined by the abnormal values ​​of abnormal production data, the F1-Score (F1 score) of the anomaly detection model can be further calculated according to the preset threshold, and the best value can be selected from each preset threshold in combination with the F1-Score. Second, if sufficient abnormal production data has not been obtained, the above-mentioned preset threshold can also be determined in combination with the data distribution in the embodiment of the present invention. Specifically, normal production data can be input into the anomaly detection model to obtain the abnormal value of normal production data. Subsequently, considering that the distribution of abnormal scores in all production data usually conforms to the normal distribution, the abnormal value of the abnormal production data can be determined based on the normal distribution mode using the abnormal value of the normal production data (such as the average score plus two times the standard deviation), and the preset threshold is set according to the abnormal value of the abnormal production data.

[0107] It is worth pointing out that step S301 and step S302 can also be used in combination to improve the reliability of the threshold by integrating different threshold setting methods.

[0108] The following is a complete introduction to the above anomaly detection method based on a specific flowchart. Figure 2 , Figure 2 A flowchart of another anomaly detection method provided by an embodiment of the present invention. This method is applied to intelligent control systems that already have certain production data. It is highly versatile and can be applied to most intelligent control production lines. It is easy to adapt and only requires access to the data of the intelligent control system and the module for back-end anomaly monitoring. The method mainly includes data collection under normal production conditions of the intelligent control system, data collection under relevant abnormal conditions, establishment of anomaly monitoring algorithm model, and establishment of abnormal prompt rules. Among them:

[0109] 1) Data collection under normal production status:

[0110] The data that this method needs to collect have the following characteristics:

[0111] 1. Control quantity value: for the data collection of the control quantity at a certain moment, the sliding window is used to calculate the average value, and the control quantity at a certain moment is calculated by averaging the control quantity at the previous X moments to obtain the corresponding value;

[0112] 2. Control quantity set value difference, to obtain the difference between the control quantity set value at a certain moment and the control quantity set value at the previous moment;

[0113] 3. Interference value: obtain the data of interference at a certain moment, and use the sliding window to calculate the average value, and calculate the average value of the value at a certain moment and the value of the previous X moments to get the corresponding value;

[0114] 4. Interference value difference: find the difference between the actual value of the interference value at a certain moment and the previous moment;

[0115] 5. Controlled quantity difference: find the difference between the actual value of the controlled quantity and the reference value at a certain moment, and use the sliding window to find the average value, and average the deviation at a certain moment with the deviation at the previous X moments to get the corresponding value;

[0116] For an intelligent control system, there may be one or more control quantities. For each control quantity, two data features 1 and 2 need to be collected. The sliding window is used to calculate the average value in order to avoid misjudgment of abnormal conditions caused by accidental data peaks at a single point. Since the abnormal data generated by the abnormal conditions of the intelligent control system are in a time-series production process, the sliding window mode can effectively monitor continuous abnormal data. The numerical item of the interference quantity has a direct effect on the value and adjustment of the control quantity, so for the abnormal monitoring of the control quantity, the value and change of the interference quantity need to be taken as one of the features. The deviation item of the controlled quantity is the evaluation index of the entire intelligent control system. It is the basis for the operator to intuitively judge the state of the intelligent control system and needs to be one of the important features in the abnormal monitoring of the intelligent control system.

[0117] 2) Data collection under relevant abnormal circumstances:

[0118] The data collection under abnormal conditions of intelligent control systems is mainly used for the subsequent establishment of abnormal prompt rules. When there is sufficient data under abnormal conditions, the collection rules are consistent with the data collection rules under normal production conditions. The collected data segments need to minimize the amount of data under normal production conditions to be collected into the abnormal data set. The judgment method is as follows:

[0119] 1. According to the collection rules in 1), the data sets of abnormal batches are collected to obtain the collected production data sets.

[0120] 2. Obtain normal data distribution from the data collected under normal production conditions in the past. According to the data distribution of each feature item, use the box plot to determine the first appearance time of the feature anomaly point in the abnormal batch, recorded as Y, and classify each data point in the interval [YX,Y] in the production data set into the abnormal data set.

[0121] 3. For the collected abnormal data set, if there is a clear record of the abnormal cause, classify it according to the abnormal cause. If there is no clear record of the abnormal cause, take the center point Y of each abnormal data set, use DBSCAN (can be replaced with any clustering algorithm that determines the number of clusters by itself, depending on the effect) for classification, and then define the category attributes according to the common characteristics in the same cluster.

[0122] 3) Establishment of abnormal monitoring algorithm model

[0123] This method uses Isolation Mondrian Forest (IMF) as an anomaly detection model. The input is the normal production data set after aggregation (control value, control value setting value difference, interference value, interference value difference, controlled value difference), and the output is the abnormal value. When the abnormal value is greater than the abnormal threshold, the input data is judged to be abnormal data; conversely, when the abnormal value is less than or equal to the abnormal threshold, the input data is judged to be normal data.

[0124] IMF is a combination of Mondrian forest and isolation forest. The tree construction process of isolation forest is replaced by Mondrian process. It is the recursive nature of Mondrian process that enables IMF to flexibly adapt to new data points.

[0125] There are two ways to set the anomaly score threshold:

[0126] The abnormal data sets collected in 1 and 2) have clear abnormal points. The abnormal points can be substituted into the anomaly score calculation of the model. According to the threshold division, the F1-score of the model is calculated, and the best threshold division is selected;

[0127] 2. The anomaly score threshold can be divided according to the anomaly score data distribution in the forest trained with the normal production data set. Assuming that the anomaly score is normally distributed, the threshold can be set to the mean score plus two standard deviations.

[0128] 4) Establishment of abnormal prompt rules:

[0129] After real-time monitoring of the anomaly, the detected abnormal data and the abnormal data set in 2) are clustered using the KNN algorithm, and then the abnormal batch is finally diagnosed using the voting method based on the abnormal category at each time point. Based on the results of the abnormal diagnosis, the operator is provided with prompts for corresponding solutions.

[0130] The following is an introduction to an anomaly detection device, an electronic device, and a computer-readable storage medium provided in an embodiment of the present invention. The anomaly detection device, the electronic device, and the computer-readable storage medium described below can be referenced to the anomaly detection method described above.

[0131] Please refer to Figure 3 , Figure 3 A structural block diagram of an abnormality detection device provided by an embodiment of the present invention, the device may include:

[0132] The acquisition module 301 is used to acquire the real-time production data of the intelligent control system of the production line at the current moment; the real-time production data includes the control quantity characteristics, the interference quantity characteristics and the controlled quantity characteristics, and the intelligent control system of the production line adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity;

[0133] The detection module 302 is used to input the real-time production data into the anomaly detection model to obtain anomaly values ​​corresponding to the real-time production data; the anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data;

[0134] The abnormality type determination module 303 is used to compare the real-time production data with abnormal production data of various abnormal types when it is determined that the abnormal value is greater than a preset threshold, and determine the abnormality type corresponding to the real-time production data according to the comparison result;

[0135] The output module 304 is used to visually output the abnormality type corresponding to the real-time production data.

[0136] Optionally, the acquisition module 301 may include:

[0137] The control quantity value processing submodule is used to average the actual value of the control quantity of the production line intelligent control system at the current moment and the actual values ​​of the control quantity at a preset number of adjacent historical moments before the current moment to obtain the control quantity value of the production line intelligent control system at the current moment;

[0138] A processing submodule, for determining a difference between the control quantity set value of the production line intelligent control system at the current moment and the control quantity set value of the production line intelligent control system at the previous historical moment;

[0139] The interference value processing submodule is used to average the actual value of the interference value of the production line intelligent control system at the current moment and the actual values ​​of the interference value at a preset number of adjacent historical moments before the current moment to obtain the interference value of the production line intelligent control system at the current moment;

[0140] The interference value difference processing submodule is used to determine the interference value difference of the production line intelligent control system at the current moment according to the actual value of the interference value of the production line intelligent control system at the current moment and the actual value of the interference value at the previous historical moment;

[0141] A controlled quantity difference processing submodule is used to determine the controlled quantity difference of the production line intelligent control system at the current moment according to the actual value of the controlled quantity of the production line intelligent control system at the current moment and a preset baseline value;

[0142] The integration submodule is used to set the control quantity value and the difference between the control quantity setting value as the control quantity characteristic, the interference quantity value and the interference quantity difference as the interference quantity characteristic, and the controlled quantity difference as the controlled quantity difference, so as to obtain the real-time production data of the production line intelligent control system at the current moment.

[0143] Optionally, the device may further include:

[0144] The abnormal production data acquisition module is used to acquire the abnormal production data generated by the intelligent control system of the production line in the abnormal production batch;

[0145] A first marking module is used to classify abnormal production data using the abnormal type of the abnormal production batch when the abnormal type of the abnormal production batch has been recorded;

[0146] The second labeling module is used to perform unsupervised clustering processing on the abnormal production data when the abnormal type of the abnormal production batch is not recorded, and set the abnormal type for the abnormal production data of the same category according to the data features of the abnormal production data clustered into the same category.

[0147] Optionally, the abnormal production data acquisition module may include:

[0148] The acquisition submodule is used to acquire the normal production data of the production line intelligent control system under normal production conditions and the production data to be analyzed generated in abnormal production batches;

[0149] The positioning submodule is used to determine the data distribution of normal production data and determine the abnormal data in the production data to be analyzed based on the data distribution and box-and-whisker plot;

[0150] A submodule is set up to determine the occurrence time of abnormal data, and set the production data corresponding to a preset number of adjacent historical moments before the occurrence time in the abnormal data and the production data to be analyzed as abnormal production data.

[0151] Optionally, the device may further include:

[0152] A first preset threshold determination module is used to input abnormal production data into an abnormality detection model to obtain an abnormal value of the abnormal production data, and set a preset threshold according to the abnormal value of the abnormal production data;

[0153] And / or, a first preset threshold determination module is used to input normal production data into an anomaly detection model to obtain an abnormal value of the normal production data; use the abnormal value of the normal production data to determine the abnormal value of the abnormal production data based on a normal distribution pattern, and set a preset threshold according to the abnormal value of the abnormal production data.

[0154] Optionally, the abnormality type determination module 303 includes:

[0155] The cluster processing submodule is used to perform cluster processing on the real-time production data and abnormal production data of various abnormal types, and determine the cluster category to which the real-time production data belongs;

[0156] The abnormality type determination submodule is used to determine the abnormality type of the real-time production data according to the abnormality type corresponding to the abnormal production data in the cluster category.

[0157] Optionally, the anomaly detection model is an isolated Mondrian forest; the apparatus may further include:

[0158] The model updating module is used to update the anomaly detection model using real-time production data when it is determined that the anomaly value is less than or equal to a preset threshold.

[0159] An embodiment of the present invention further provides an electronic device, including:

[0160] Memory for storing computer programs;

[0161] A processor is used to implement the steps of the above-mentioned abnormality detection method when executing a computer program.

[0162] Since the embodiments of the electronic device part correspond to the embodiments of the abnormality detection method part, please refer to the description of the embodiments of the abnormality detection method part for the embodiments of the electronic device part, which will not be repeated here.

[0163] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the anomaly detection method in any of the above embodiments are implemented.

[0164] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the anomaly detection method part, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the anomaly detection method part, which will not be repeated here.

[0165] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0166] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0167] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0168] The above is a detailed introduction to an abnormality detection method, device, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. An anomaly detection method, characterized in that: include: Obtain real-time production data of the production line intelligent control system at the current moment; The real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and the production line intelligent control system adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity; Inputting the real-time production data into an anomaly detection model to obtain an anomaly value corresponding to the real-time production data; The anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data; When it is determined that the abnormal value is greater than a preset threshold, the real-time production data is compared with abnormal production data of various abnormal types, and the abnormal type corresponding to the real-time production data is determined according to the comparison result; The abnormality type corresponding to the real-time production data is output visually.

2. The anomaly detection method according to claim 1, characterized in that: The obtaining of real-time production data of the production line intelligent control system at the current moment includes: The actual value of the control amount of the production line intelligent control system at the current moment and the actual values ​​of the control amount at a preset number of adjacent historical moments before the current moment are averaged to obtain the control amount value of the production line intelligent control system at the current moment; Determine the difference between the control amount set value of the production line intelligent control system at the current moment and the control amount set value of the production line intelligent control system at the previous historical moment; The actual value of the interference amount of the production line intelligent control system at the current moment and the actual values ​​of the interference amount at a preset number of adjacent historical moments before the current moment are averaged to obtain the interference amount value of the production line intelligent control system at the current moment; Determine the difference of the interference amount of the production line intelligent control system at the current moment according to the actual value of the interference amount of the production line intelligent control system at the current moment and the actual value of the interference amount at the previous historical moment; Determine the difference of the controlled quantity of the production line intelligent control system at the current moment according to the actual value of the controlled quantity of the production line intelligent control system at the current moment and the preset baseline value; The control quantity value and the control quantity setting value difference are set as the control quantity characteristic, the interference quantity value and the interference quantity difference are set as the interference quantity characteristic, and the controlled quantity difference is set as the controlled quantity difference, so as to obtain the real-time production data of the production line intelligent control system at the current moment.

3. The anomaly detection method according to claim 1, characterized in that: Before obtaining the real-time production data of the production line intelligent control system at the current moment, it also includes: Acquiring abnormal production data generated by the intelligent control system of the production line in abnormal production batches; When the abnormal type of the abnormal production batch has been recorded, classifying the abnormal production data using the abnormal type of the abnormal production batch; When the abnormal type of the abnormal production batch is not recorded, unsupervised clustering is performed on the abnormal production data, and an abnormal type is set for the abnormal production data of the category according to data features of the abnormal production data clustered into the same category.

4. The anomaly detection method according to claim 3, characterized in that: The obtaining of abnormal production data generated by the intelligent control system of the production line in an abnormal production batch includes: Obtain normal production data of the production line intelligent control system under normal production conditions and production data to be analyzed generated in abnormal production batches; Determine the data distribution of the normal production data, and determine the abnormal data in the production data to be analyzed based on the data distribution and the box plot; The occurrence time of the abnormal data is determined, and production data corresponding to a preset number of adjacent historical moments before the occurrence time among the abnormal data and the production data to be analyzed is set as the abnormal production data.

5. The anomaly detection method according to claim 1, characterized in that: Before obtaining the real-time production data of the production line intelligent control system at the current moment, it also includes: Inputting the abnormal production data into the abnormality detection model to obtain an abnormal value of the abnormal production data, and setting the preset threshold value according to the abnormal value of the abnormal production data; and / or, inputting the normal production data into the anomaly detection model to obtain an abnormal value of the normal production data; The abnormal value of the abnormal production data is determined based on a normal distribution pattern using the abnormal value of the normal production data, and the preset threshold is set according to the abnormal value of the abnormal production data.

6. The anomaly detection method according to claim 1, characterized in that: The comparing the real-time production data with abnormal production data of various abnormal types includes: Clustering the real-time production data with abnormal production data of various abnormal types to determine the cluster category to which the real-time production data belongs; The abnormal type of the real-time production data is determined according to the abnormal type corresponding to the abnormal production data in the cluster category.

7. The abnormality detection method according to any one of claims 1 to 6, characterized in that: The anomaly detection model is an isolated Mondrian forest; After obtaining the abnormal value corresponding to the real-time production data, the method further includes: When it is determined that the abnormal value is less than or equal to the preset threshold, the abnormality detection model is updated using the real-time production data.

8. An abnormality detection device, characterized in that: include: An acquisition module is used to acquire the real-time production data of the production line intelligent control system at the current moment; The real-time production data includes control quantity characteristics, interference quantity characteristics and controlled quantity characteristics, and the production line intelligent control system adjusts the control quantity under the influence of the interference quantity to maintain the controlled quantity; A detection module, used for inputting the real-time production data into an anomaly detection model to obtain an abnormal value corresponding to the real-time production data; The anomaly detection model is constructed using normal production data of the production line intelligent control system, and the anomaly value represents the degree of distinction between the real-time production data and the normal production data; An abnormality type determination module, used for comparing the real-time production data with abnormal production data of various abnormal types when it is determined that the abnormal value is greater than a preset threshold, and determining the abnormality type corresponding to the real-time production data according to the comparison result; The output module is used to visually output the abnormality type corresponding to the real-time production data.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the anomaly detection method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the anomaly detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Abnormal state automatic identification and correction system of radiopharmaceutical production line

    CN120928806A

  • AI production decision-making method and system based on industrial big data

    CN121390712A