Fault detection method, device, computer equipment and storage medium
Through the deep learning model and data floating error judgment, the efficiency and accuracy of automated equipment fault detection are achieved, the problems of low detection efficiency and high cost in the existing technology are solved, and the product yield is improved.
Patent Information
- Application Number
- CN202410805413.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Existing automated equipment fault detection methods are difficult to meet accuracy requirements in complex and dynamic manufacturing processes, and require frequent model updates, resulting in low detection efficiency and high costs.
By loading multiple time series data from automation equipment, we can generate historical time series data and determine the mean sequence, perform feature sampling and deep learning model training, establish a fault detection model, monitor sensor parameters in real time, and judge abnormal points based on data floating errors to realize the detection of automation equipment. Fault detection.
It improves the efficiency and accuracy of fault detection, reduces the need for process recipe updates, reduces detection costs, and can mark equipment abnormal time points in real time to improve product yield.
Smart Images

Figure CN118378036B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and in particular to a fault detection method, device, computer equipment and storage medium. Background Art
[0002] When automation equipment is used in the manufacturing industry, its fault conditions need to be monitored in real time to improve product yield. With the increase in equipment precision and complexity, higher requirements are placed on fault detection of automation equipment in the manufacturing process. Timely discovery and identification of equipment faults can effectively improve the utilization rate of automation equipment and product quality.
[0003] At present, the commonly used method of fault detection and classification is to extract the eigenvalue information from the raw data of the sensor by creating a model, and then monitor its statistical information. The quality of the eigenvalue information determines the quality of process control. However, the production and manufacturing of some products have high requirements on process parameters, such as wafer manufacturing. Wafer manufacturing is a complex, expensive and lengthy process involving hundreds of process steps, and it is necessary to monitor the corresponding process parameter changes at the same time to improve the yield. The complexity and dynamics of wafer manufacturing lead to the failure detection results of the existing eigenvalue information extraction method when applied to equipment fault detection cannot meet the accuracy requirements of production and manufacturing, and engineers need to build different fault detection models for different production process recipes. When the process recipe changes, it takes a lot of time to update the fault detection model, and the feature extraction efficiency is low. It is difficult for chip engineers to mark and judge whether a single time point of different sensors is abnormal. Therefore, how to improve the fault detection efficiency of automated equipment, improve the accuracy of fault detection results, accurately mark the abnormal time point of equipment, and improve product yield is a problem that needs to be solved. Summary of the invention
[0004] Based on this, it is necessary to provide a fault detection method, device, computer equipment and storage medium that can improve the fault detection efficiency of automated equipment, improve the accuracy of fault detection results, accurately mark the time points of equipment abnormalities, and improve product yield in response to the above technical problems.
[0005] In a first aspect, the present application provides a fault detection method, the method comprising:
[0006] Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0007] Performing feature sampling on the plurality of historical time series data to determine target sample data, and performing model training on a deep learning model based on the target sample data to determine a fault detection model;
[0008] Acquire sensor parameters of the automation equipment, and determine target window data according to the length of the historical data sequence and the mean sequence of the historical data;
[0009] Determine the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model;
[0010] The abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment.
[0011] In one embodiment, determining the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model includes:
[0012] Determine online data floating error according to the target window data and the fault detection model;
[0013] Determine the training data floating error according to the historical data mean sequence and the fault detection model;
[0014] A target data floating error is determined according to the online data floating error and the training data floating error.
[0015] In one embodiment, determining the online data floating error according to the target window data and the fault detection model includes:
[0016] Performing mask processing on the target timestamp data in the target window data by using the fault detection model to determine first mask data, and determining a first overall encoding vector by using the fault detection model and the first mask data;
[0017] Inputting the target window data into the fault detection model to determine a second overall encoding vector;
[0018] An online data floating error is determined based on the first overall encoding vector and the second overall encoding vector.
[0019] In one embodiment, determining the training data floating error according to the historical data mean sequence and the fault detection model includes:
[0020] Performing a mask operation on random timestamps in the mean sequence of the historical data to determine second mask data, and inputting the second mask data into the fault detection model to determine a first historical coding vector;
[0021] Determine a second historical encoding vector according to the historical data mean sequence and the fault detection model;
[0022] The training data floating error at each timestamp is determined according to the first historical encoding vector and the second historical encoding vector.
[0023] In one embodiment, determining the abnormal point of the target window data according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment includes:
[0024] Based on the triple standard deviation rule, determining the online data abnormality threshold according to the online data floating error, and determining the target data abnormality threshold according to the target data floating error;
[0025] The abnormal point of the target window data is jointly determined according to the online data abnormality threshold and the target data abnormality threshold to feed back the equipment failure information of the automation equipment.
[0026] In one embodiment, the fault detection method further includes:
[0027] Generate exception array 1 and exception array 2 to record the abnormal results of the target window data and the online data abnormal threshold and the target data abnormal threshold respectively, determine the abnormal points of the target window data based on the common abnormal results of exception array 1 and exception array 2, and mark the abnormal points in the time series data in real time in the visualization interface.
[0028] In one embodiment, multiple time series data of automation equipment are loaded, multiple historical time series data are generated, and a mean sequence of historical data is determined, including:
[0029] Perform data preprocessing on multiple time series data, obtain multiple historical time series data with uniform length, and record the length of the historical data sequence;
[0030] The plurality of historical time series data are normalized and calculated, and a mean value sequence of the historical data after the normalization calculation is determined.
[0031] In one embodiment, the data preprocessing includes:
[0032] Obtaining historical data timestamps of multiple time series data, and determining a data collection period according to the timestamp intervals of the historical data timestamps;
[0033] Determine adjacent timestamps of the plurality of time series data according to the timestamps of the historical data, and determine supplementary data of the historical time series data according to the timestamp intervals of the adjacent timestamps and the data collection period;
[0034] The historical time series data is complemented based on the supplementary data to determine the complemented historical time series data.
[0035] In one embodiment, normalizing the plurality of historical time series data and determining a mean value sequence of the historical data after the normalization calculation includes:
[0036] Performing normalization calculation on data with the same timestamp in multiple pieces of historical time series data to update the multiple pieces of historical time series data;
[0037] The mean value of the historical data is calculated based on the updated multiple historical time series data with the same timestamp to determine the mean sequence of the historical data.
[0038] In one embodiment, obtaining sensor parameters of an automation device and determining target window data according to the length of the historical data sequence and the mean value sequence of the historical data include:
[0039] Acquire real-time time series data of the sensor parameters, and determine the time series data to be processed according to the processing mode;
[0040] The length of the time series data to be processed is compared with the length of the historical data sequence. If the length is insufficient, it is supplemented according to the mean sequence of historical data, and data preprocessing and normalization calculations are performed.
[0041] In one embodiment, feature sampling is performed on the plurality of historical time series data to determine target sample data, and model training is performed on a deep learning model based on the target sample data to determine a fault detection model, including:
[0042] Each piece of historical time series data is intercepted to determine a historical time subsequence, and the historical time subsequence is subjected to time point extension processing to determine multiple data sequence samples;
[0043] Constructing positive sample features and negative sample features from the multiple data sequence samples according to the time dimension and / or the subsequence dimension;
[0044] Target sample data is determined according to the positive sample features and the negative sample features, and a deep learning model is trained based on the target sample data to determine a fault detection model.
[0045] In a second aspect, the present application further provides a fault detection device, the device comprising:
[0046] A historical time series data determination module is used to load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0047] A fault detection model determination module is used to perform feature sampling on the multiple historical time series data to determine target sample data, and to perform model training on a deep learning model based on the target sample data to determine a fault detection model;
[0048] A target window data determination module is used to obtain sensor parameters of the automation equipment and determine the target window data according to the length of the historical data sequence and the mean sequence of the historical data;
[0049] A target floating error determination module, used to determine an online data floating error and a target data floating error according to the target window data, the historical data mean sequence and the fault detection model;
[0050] The device fault information determination module is used to determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feed back the device fault information of the automation equipment.
[0051] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0052] Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0053] Performing feature sampling on the plurality of historical time series data to determine target sample data, and performing model training on a deep learning model based on the target sample data to determine a fault detection model;
[0054] Acquire sensor parameters of the automation equipment, and determine target window data according to the length of the historical data sequence and the mean sequence of the historical data;
[0055] Determine the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model;
[0056] The abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment.
[0057] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0058] Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0059] Performing feature sampling on the plurality of historical time series data to determine target sample data, and performing model training on a deep learning model based on the target sample data to determine a fault detection model;
[0060] Acquire sensor parameters of the automation equipment, and determine target window data according to the length of the historical data sequence and the mean sequence of the historical data;
[0061] Determine the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model;
[0062] The abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment.
[0063] The above fault detection method, device, computer equipment and storage medium load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data; perform feature sampling on multiple historical time series data, determine target sample data, and train the deep learning model based on the target sample data to determine the fault detection model; obtain the sensor parameters of the automation equipment, determine the target window data according to the length of the historical data sequence and the mean sequence of historical data; determine the online data floating error and the target data floating error according to the target window data, the mean sequence of historical data and the fault detection model; determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feedback the equipment fault information of the automation equipment. It solves the problem that engineers need to build different fault detection models for different production process recipes. When the process recipe changes, it takes a lot of time to update the fault detection model, resulting in high fault detection costs and low feature extraction efficiency. The above scheme can train and deploy the deep learning model through the historical time series data collected by the automation equipment sensors, determine the fault detection model, and monitor the sensor parameter data flow of the automation equipment in the production process in real time, that is, the target window data, and sort the target window data according to the length of the historical data sequence to obtain the target window data. Based on the fault detection model, the data floating error is determined according to the target window data and the historical data mean sequence, and the fault information of the automation equipment is determined according to the data floating error and the target window data. When an abnormality occurs during the operation of the automation equipment, the time point of the equipment abnormality can be marked, so as to screen the produced products and improve the product yield. At the same time, there is no need to update the fault detection model according to the process formula. The fault detection model can be iteratively trained according to the sensor parameters obtained in real time to realize the automatic update of the fault detection model, improve the fault detection efficiency of the automation equipment, and improve the accuracy of the fault detection results. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 An application environment diagram of a fault detection method in an embodiment;
[0065] Figure 2 is a flow chart of a fault detection method in one embodiment;
[0066] Figure 3 is a flow chart of a fault detection method in another embodiment;
[0067] Figure 4 is a flow chart of a fault detection method in another embodiment;
[0068] Figure 5 is a flow chart of a fault detection method in another embodiment;
[0069] Figure 6 is a structural block diagram of a fault detection device in one embodiment;
[0070] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0072] The fault detection method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 loads multiple time series data of the automation equipment, generates multiple historical time series data and determines the mean sequence of historical data; performs feature sampling on the multiple historical time series data, determines the target sample data, and performs model training on the deep learning model based on the target sample data to determine the fault detection model; obtains the sensor parameters of the automation equipment, and determines the target window data according to the length of the historical data sequence and the mean sequence of the historical data; determines the online data floating error and the target data floating error according to the target window data, the mean sequence of historical data and the fault detection model; determines the abnormal point of the target window data according to the online data floating error and the target data floating error to feedback the equipment fault information of the automation equipment, and sends the equipment fault information to the terminal 102 through the communication network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0073] In one embodiment, Figure 2 As shown, a fault detection method is provided. This embodiment takes the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0074] S210, loading multiple time series data of automation equipment, generating multiple historical time series data and determining the mean sequence of the historical data.
[0075] Among them, time series data refers to the sensor time series data generated by arranging the historical sensor data collected by the equipment sensors of the automation equipment according to the generated timestamps before and after. The time series data is composed of historical sensor data corresponding to multiple timestamps.
[0076] Specifically, multiple sensor time series data of equipment sensors of automation equipment within a period of time are loaded, and data pre-processing, such as detection and completion operations, and unified length processing, is performed on the multiple sensor time series data to obtain multiple historical time series data of uniform length. The mean at each timestamp is obtained based on the multiple time series data, so that the historical data mean sequence can be obtained, and the sequence length of the historical data mean sequence is the same as the sequence length of the historical data sequence.
[0077] S220: Perform feature sampling on multiple historical time series data to determine target sample data, and perform model training on a deep learning model based on the target sample data to determine a fault detection model.
[0078] Among them, the deep learning model includes a time series encoding module and a contrastive learning loss calculation module.
[0079] Specifically, feature sampling is performed on multiple historical time series data, and target sample data is determined based on the feature sampling results. The target sample data is input into the deep learning model, the time series encoding module of the deep learning model is trained, the model parameters of the deep learning model are updated, and the encoding parameter vector at each timestamp of the mean sequence of historical data is obtained during the training process, and the comparative learning loss is calculated based on the encoding parameter vector. Based on the learning rate decay strategy and the early stopping strategy, it is determined whether the deep learning model converges based on the comparative learning loss. If so, the deep learning model after training is determined to be a fault detection model.
[0080] S230, obtaining sensor parameters of the automation equipment, and determining target window data according to the length of the historical data sequence and the historical data mean sequence.
[0081] Specifically, sensor parameters of automation equipment are collected at a specific frequency, and real-time time series data is obtained according to the sensor parameters, and the obtained real-time time series data is used as online time series data.
[0082] There are two processing methods based on the different scenarios that need to be processed:
[0083] Method 1: Select a range for online time series data and test the data within the selected range:
[0084] The online time series data is intercepted according to the start interception position and the end interception position selected by the user, and the intercepted online time series data is used as the target window data. If the window data length corresponding to the target window data is less than the length of the historical data sequence, the target window data is padded according to the historical data mean sequence, and then the data pre-processing is also performed to determine the target window data. The specific content of the data pre-processing will be expanded later. The window data length of the target window data is equal to the length of the historical data sequence.
[0085] Method 2: Process online data in real time, that is, the data value of each timestamp will be detected:
[0086] According to the sensor parameters of the bound automation equipment, the data value of each timestamp is obtained in real time. If the length of the previous real-time online time series data is insufficient, it is supplemented by the mean sequence of historical data as window data.
[0087] S240, determining the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model.
[0088] Specifically, the online data encoding vector corresponding to the target window data is determined according to the target window data, the historical data mean sequence and the fault detection model, and the online data floating error is determined according to the online data encoding vector. The training data encoding vector corresponding to the historical time series data is determined according to the historical time series data and the fault detection model. The target data floating error is determined according to the online data encoding vector and the training data encoding vector.
[0089] S250, determining abnormal points of the target window data according to the online data floating error and the target data floating error to feed back equipment failure information of the automation equipment.
[0090] The equipment failure information includes whether the automation equipment fails and the time when the failure occurs. The abnormal point of the target window data is the time when the automation equipment fails.
[0091] In the above fault detection method, multiple time series data of automation equipment are loaded, multiple historical time series data are generated and the mean sequence of historical data is determined; feature sampling is performed on multiple historical time series data to determine the target sample data, and the deep learning model is trained based on the target sample data to determine the fault detection model; the sensor parameters of the automation equipment are obtained, and the target window data is determined according to the length of the historical data sequence and the mean sequence of the historical data; the online data floating error and the target data floating error are determined according to the target window data, the mean sequence of historical data and the fault detection model; the abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feedback the equipment fault information of the automation equipment. It solves the problem that engineers need to build different fault detection models for different production process recipes. When the process recipe changes, it takes a lot of time to update the fault detection model, resulting in high fault detection cost and low feature extraction efficiency. The above scheme can train and deploy the deep learning model through the historical time series data collected by the sensors of the automation equipment, determine the fault detection model, and monitor the sensor parameter data flow of the automation equipment in the production process in real time, that is, the target window data, sort the target window data according to the length of the historical data sequence, and obtain the target window data. Based on the fault detection model, the data floating error is determined according to the target window data and the mean sequence of historical data, and the fault information of the automation equipment is determined according to the data floating error and the target window data. When an abnormality occurs during the operation of the automation equipment, the time point of the equipment abnormality can be marked to screen the produced products and improve the product yield. At the same time, there is no need to update the fault detection model according to the process recipe. The fault detection model can be iteratively trained according to the sensor parameters obtained in real time to achieve automatic update of the fault detection model, improve the fault detection efficiency of the automation equipment, and improve the accuracy of the fault detection results.
[0092] In one embodiment, determining the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model includes:
[0093] The online data floating error is determined based on the target window data and the fault detection model; the training data floating error is determined based on the historical data mean sequence and the fault detection model; the target data floating error is determined based on the online data floating error and the training data floating error.
[0094] Specifically, the floating error of online data is determined according to the target window data and the fault detection model, the floating error of training data is determined according to the historical data mean sequence and the fault detection model, the floating error of online data and the floating error of training data are horizontally spliced to determine the floating error of spliced data, the floating error of spliced data is calculated by moving average and the error is horizontally normalized to determine the floating error of target data.
[0095] The above scheme normalizes the splicing results of the online data floating error and the training data floating error to determine the target data floating error, so that the target data floating error can represent both the online data floating error and the training data floating error, thereby improving the reliability of the target data floating error.
[0096] In one embodiment, Figure 3 As shown, determining the online data floating error according to the target window data and the fault detection model includes:
[0097] S310 , performing mask processing on target timestamp data in target window data through a fault detection model to determine first mask data, and determining a first overall coding vector through the fault detection model and the first mask data.
[0098] Among them, the target timestamp data refers to the data of a certain timestamp randomly extracted from the target window data or the data of a specified timestamp. It is worth noting that there are differences in the mask processing for the two methods in step S230. For example, method one is a random mask, and method two is to mask the specified timestamp coming in in real time. The time series encoding module in the fault detection model includes a fully connected layer, a mask layer, and a convolution layer, wherein the fully connected layer converts and maps the original time series features to high-dimensional features. The mask layer performs a random timestamp mask operation on the high-dimensional features output by the fully connected layer. The convolution layer uses dilated convolution to increase the receptive field, and a residual connection is used between the input and output.
[0099] Specifically, the target timestamp data in the target window data is masked by the fault detection model, that is, the target timestamp data is set to 0, the first mask data after the masking is determined, and the first mask data is encoded according to the fault detection model to determine the first overall encoding vector.
[0100] S320, inputting the target window data into the fault detection model to determine a second overall coding vector.
[0101] Specifically, the target window data is encoded through the fault detection model to determine the second overall encoding vector.
[0102] S330, determining the online data floating error according to the first overall coding vector and the second overall coding vector.
[0103] The online data floating error refers to the online data floating error at each time stamp corresponding to the target window data.
[0104] Specifically, the difference between the first overall coding vector and the second overall coding vector is used as the online data floating error.
[0105] The above method performs a random timestamp mask operation on the high-dimensional features output by the fully connected layer through the mask layer of the fault detection model to simulate the time missing situation, determines the second overall coding vector according to the target window data and the fault detection model, determines the first overall coding vector according to the masked target window data and the fault detection model, and determines the online data floating error according to the first overall coding vector and the second overall coding vector, which can improve the robustness of the fault detection model to time characteristics.
[0106] In one embodiment, the floating error of training data is determined according to the mean sequence of historical data and the fault detection model, including: performing a mask operation on random timestamps in the mean sequence of historical data to determine second mask data, and inputting the second mask data into the fault detection model to determine a first historical coding vector; determining a second historical coding vector according to the mean sequence of historical data and the fault detection model; and determining the floating error of training data at each timestamp according to the first historical coding vector and the second historical coding vector.
[0107] Specifically, the target timestamp data in the mean sequence of historical data is masked by the fault detection model, that is, the target timestamp data is set to 0, the second mask data after the masking is determined, and the second mask data is encoded according to the fault detection model to determine the first historical encoding vector. The mean sequence of historical data is encoded by the fault detection model to determine the second historical encoding vector. The difference between the first historical encoding vector and the second historical encoding vector is used as the training data floating error, so as to obtain the training data floating error at each timestamp.
[0108] The above scheme determines the first historical coding vector according to the mean sequence of historical data after masking through the fault detection model, determines the second historical coding vector according to the mean sequence of historical data through the fault detection model, and determines the floating error of training data according to the first historical coding vector and the second historical coding vector, which can further improve the robustness of the fault detection model to time characteristics.
[0109] In one embodiment, Figure 4 As shown, the equipment fault information of the automation equipment is determined according to the online data floating error, the target data floating error and the target window data, including:
[0110] S410. Based on the triple standard deviation rule, determine the online data abnormality threshold according to the online data floating error, and determine the target data abnormality threshold according to the target data floating error.
[0111] The three-sigma rule is a statistical principle used to measure whether a set of data contains outliers. This method assumes that the data set follows a normal distribution, calculates the mean and standard deviation of the data, and determines a threshold, which is the range of the mean plus or minus three times the standard deviation.
[0112] Specifically, based on the triple standard deviation rule, the mean of the online data floating error and the standard deviation of the online data floating error are calculated. The online data anomaly threshold is determined based on the mean of the online data floating error and the standard deviation of the online data floating error. The calculation formula for the online data anomaly threshold is shown in formula (1):
[0113] (1)
[0114] in, is the online data abnormality threshold, is the mean floating error of online data, is the standard deviation of the floating error of online data, is the coefficient determined based on the three standard deviation rule.
[0115] Calculate the mean of the target data floating error and the standard deviation of the target data floating error. Determine the target data abnormal threshold based on the mean of the target data floating error and the standard deviation of the target data floating error. The calculation formula of the target data abnormal threshold is shown in formula (2):
[0116] (2)
[0117] in, is the target data abnormal threshold, is the mean floating error of the target data, is the standard deviation of the floating error of the target data, is another coefficient determined based on the three standard deviation rule.
[0118] S420: Determine the abnormal point of the target window data according to the online data abnormal threshold and the target data abnormal threshold to feed back the equipment failure information of the automation equipment.
[0119] Specifically, the abnormal point of the target window data can be determined based on the comparison result between the target window data and the online data abnormal threshold and the target data abnormal threshold, and the equipment fault information of the automation equipment can be determined based on the abnormal point of the target window data.
[0120] The above scheme can improve the efficiency and accuracy of obtaining the abnormal threshold of target data, thereby improving the reliability of equipment fault information of automation equipment.
[0121] In one embodiment, the above-mentioned fault detection method also includes: generating anomaly array 1 and anomaly array 2, which are used to record the abnormal results of the target window data and the online data abnormality threshold and the target data abnormality threshold respectively, determining the abnormal points of the target window data based on the common abnormal results of anomaly array 1 and anomaly array 2, and marking the abnormal points in the time series data in real time in a visual interface.
[0122] In this embodiment, by recording the abnormal results of the target window data and the online data abnormality threshold and the target data abnormality threshold through abnormal array 1 and abnormal array 2, misdetection of the automation equipment can be avoided and the fault detection accuracy of the automation equipment can be improved.
[0123] In one embodiment, multiple time series data of automation equipment are loaded, multiple historical time series data are generated, and a mean sequence of historical data is determined, including:
[0124] Perform data preprocessing on multiple time series data, obtain multiple historical time series data with uniform length, and record the length of the historical data sequence;
[0125] The plurality of historical time series data are normalized and calculated, and a mean value sequence of the historical data after the normalization calculation is determined.
[0126] Specifically, the preprocessing this time refers to data preprocessing, which may include detection and completion operations, and uniform length truncation operations.
[0127] In one embodiment, data preprocessing includes:
[0128] Obtaining historical data timestamps of multiple time series data, and determining a data collection period according to the timestamp intervals of the historical data timestamps;
[0129] Determine adjacent timestamps of multiple time series data according to the timestamps of historical data, and determine supplementary data of the historical time series data according to the timestamp interval of adjacent timestamps and the data collection cycle; perform a completion operation on the historical time series data based on the supplementary data to determine the historical time series data.
[0130] The data collection period is the mode of the timestamp intervals of the historical timestamps.
[0131] Specifically, the timestamp interval of the historical time series data is determined as the timestamp of the historical data, and the mode of the timestamp interval is determined, and the mode of the timestamp interval is used as the data collection period. Two adjacent timestamps of the historical time series data are determined according to the timestamp of the historical time series data, and the supplementary data of the historical time series data is determined according to the division result of the time interval of the two adjacent timestamps and the data collection period. The historical time series data is supplemented by the supplementary data, and the supplemented historical time series data is determined as the supplemented historical time series data.
[0132] The above scheme determines the data collection cycle according to the timestamp interval of the historical time-demand data, determines the supplementary data of the historical time series data according to the data collection cycle and the event interval of adjacent timestamps of the historical time series data, and completes the historical time series data according to the supplementary data, thereby improving the integrity of the historical time series data.
[0133] In one embodiment, normalizing the plurality of historical time series data and determining a mean value sequence of the historical data after the normalization calculation includes:
[0134] Normalization calculation is performed on multiple historical time series data, that is, data with the same timestamp in the completed historical time series data, to update the multiple historical time series data; mean calculation is performed on the same timestamp based on the updated multiple historical time series data to determine the mean sequence of historical data.
[0135] Specifically, in the data preprocessing, a data length unification process will also be performed, that is, the data length of the completed historical time series data is determined, the shortest data length is determined from the data lengths of the multiple completed historical time series data as the unified length, the completed historical time series data is intercepted based on the shortest data length, and the intercepted completed historical time series data is normalized to update the multiple historical time series data; the mean of the same timestamp is calculated based on the updated multiple historical time series data, the historical data mean sequence is determined, and the historical data sequence length of the historical data mean sequence is determined. At this time, the historical data sequence length is the shortest data length among the data lengths of the completed historical time series data.
[0136] Regarding normalization calculation, multiple historical time series data can be normalized horizontally by minimum-maximum normalization, specifically, data values of the same timestamp of multiple historical time series data are normalized by minimum-maximum normalization.
[0137] The above scheme intercepts the completed historical time series data and performs normalization calculation on the intercepted and completed historical time series data, which can effectively improve the convergence speed of the model and improve the model training efficiency.
[0138] In one embodiment, the sensor parameters of the automation equipment are obtained, and the target window data is determined according to the length of the historical data sequence and the mean value sequence of the historical data, including:
[0139] Acquire the real-time time series data of sensor parameters, and determine the time series data to be processed according to the processing mode; compare the length of the time series data to be processed with the length of the historical data sequence. If the length is insufficient, fill it according to the mean sequence of historical data, and perform data preprocessing and normalization calculation.
[0140] The above scheme can ensure the integrity and reliability of the historical data mean sequence; in addition, the processing mode refers to the two processing methods of step S230.
[0141] In one embodiment, Figure 5 As shown, feature sampling is performed on multiple historical time series data to determine target sample data, and a deep learning model is trained based on the target sample data to determine a fault detection model, including:
[0142] S510: intercept each piece of historical time series data to determine a historical time subsequence, and perform time point extension processing on the historical time subsequence to determine multiple data sequence samples.
[0143] The time point extension processing for the historical time subsequence refers to extending the earliest time point corresponding to the historical time subsequence forward, and extending the latest time point corresponding to the historical time subsequence backward.
[0144] Specifically, each piece of historical time series data is intercepted, and a piece of historical time series data after interception is randomly obtained as a historical time subsequence. The earliest time point corresponding to the historical time subsequence is extended forward by two time points, and the first sequence sample is determined according to the extension result; the latest time point corresponding to the historical time subsequence is extended backward by one time point, and the second sequence sample is determined according to the extension result. The first sequence sample and the second sequence sample are used as data sequence samples.
[0145] S520: construct positive sample features and negative sample features from multiple data sequence samples according to the time dimension and / or subsequence dimension.
[0146] Specifically, a first sequence of samples in the data sequence samples is input into the deep learning model, and a first feature corresponding to the data sequence samples is determined according to the output data of the deep learning model. A second sequence of samples in the data sequence samples is input into the deep learning model, and a second feature corresponding to the data sequence samples is determined according to the output data of the deep learning model. The first feature and the second feature are feature data corresponding to the data sequence samples, and the feature data corresponding to the data sequence samples are used as positive sample features of the data sequence samples.
[0147] Exemplarily, the feature data of the same data collection time of different data sequence samples in different historical time subsequences can be used as the negative sample feature of a certain data sequence sample. The feature data corresponding to the data sequence samples with different data collection times in a certain historical time subsequence can also be used as the negative sample feature of a certain data sequence sample; the features of the same data collection time in different data sequence samples in the same historical time subsequence can be used as the positive sample feature.
[0148] S530: Determine target sample data according to the positive sample features and the negative sample features, and perform model training on a deep learning model based on the target sample data to determine a fault detection model.
[0149] Specifically, the positive sample features and the negative sample features corresponding to the positive sample features are combined to determine the target sample data, and the deep learning model is trained through the target sample data to determine the subsequence dimension loss and time dimension loss of the deep learning model. The subsequence dimension loss and the time dimension loss are weighted and summed to determine the contrastive learning loss. If the contrastive learning loss meets the preset loss condition, the deep learning model after training is determined to be a fault detection model. Among them, the subsequence dimension loss is determined by: determining the similarity information of the feature data of different historical time subsequences at the same time point, and determining the subsequence dimension loss of the deep learning model according to the similarity information of the feature data of different historical time subsequences at the same time point. The time dimension loss is determined by: determining the similarity information of the feature data of the same historical time subsequence and different time points, and determining the time dimension loss of the deep learning model according to the similarity information of the feature data of the same historical time subsequence and different time points.
[0150] The above scheme determines the data training samples according to the historical time subsequence after the time point extension processing. Since the historical time subsequence can be extended forward or backward in time point, one historical time subsequence can be extended into two data training samples. Through the data training samples and the deep learning model, the positive sample features containing two feature data can be obtained. At the same time, the negative sample features of the data sequence samples can be determined according to the data collection time corresponding to the feature data and the data sequence samples. The deep learning model is trained according to the positive sample features and the negative sample features to determine the fault detection model. The encoder in the deep learning model can learn feature representations of different dimensions, thereby improving the computational accuracy of the fault detection model.
[0151] Exemplarily, based on the above embodiment, the fault detection method includes:
[0152] Load the historical time series data of the automation equipment. The number of historical time series data can be set according to actual needs. For example, 100 historical time series data can be loaded. Determine the timestamp interval of the historical time series data, and determine the mode of the timestamp interval, and use the mode of the timestamp interval as the data collection period. Determine two adjacent timestamps of the historical time series data according to the timestamp of the historical time series data, and determine the supplementary data of the historical time series data according to the division result of the time interval between the two adjacent timestamps and the data collection period. Completion operation is performed on the historical time series data through the supplementary data, and the completed historical time series data is determined to be the completed historical time series data. Determine the data length of the completed historical time series data, and determine the shortest data length from the data length of the completed historical time series data, intercept the completed historical time series data based on the shortest data length, and perform normalization calculation on the intercepted and completed historical time series data, determine the mean sequence of historical data, and determine the historical data sequence length of the mean sequence of historical data.
[0153] The historical time series data is intercepted, and a time series data after interception is randomly obtained as the historical time subsequence. Based on the earliest time point corresponding to the historical time subsequence, two time points are extended forward, and the first sequence sample is determined according to the extension result; based on the latest time point corresponding to the historical time subsequence, one time point is extended backward, and the second sequence sample is determined according to the extension result. The first sequence sample and the second sequence sample are used as data sequence samples. The first sequence sample in the data sequence sample is input into the deep learning model, and the first feature corresponding to the data sequence sample is determined according to the output data of the deep learning model. The second sequence sample in the data sequence sample is input into the deep learning model, and the second feature corresponding to the data sequence sample is determined according to the output data of the deep learning model. The first feature and the second feature are the feature data corresponding to the data sequence sample, and the feature data corresponding to the same timestamp of the data sequence sample is used as the positive sample feature of the data sequence sample. The feature data of the same data collection time of different data sequence samples in different historical time subsequences can be used as the negative sample feature of a certain data sequence sample. The feature data corresponding to the data sequence samples with different data collection times in a certain historical time subsequence can also be used as the negative sample feature of a certain data sequence sample. The positive sample features and the negative sample features corresponding to the positive sample features are combined to determine the target sample data, and the deep learning model is trained through the target sample data to determine the subsequence dimension loss and time dimension loss of the deep learning model. The subsequence dimension loss and the time dimension loss are weightedly summed to determine the contrastive learning loss. If the contrastive learning loss meets the preset loss condition, the deep learning model after training is determined to be a fault detection model.
[0154] The sensor parameters of the automation equipment are collected at a specific frequency, and real-time time series data is obtained according to the sensor parameters, and the obtained real-time time series data is used as the online time series data. The online time series data is intercepted according to the start interception position and the end interception position preset by the user, and the intercepted online time series data is used as the target window data, or the online time series data obtained in real time is used as the window data. If the window data length corresponding to the target window data is less than the length of the historical data sequence, the target window data is padded according to the historical data mean sequence to determine the target window data. If the window data length of the target window data is greater than the length of the historical data sequence, the target window data is intercepted, and the intercepted target window data is padded according to the historical data mean sequence to determine the target window data. The window data length of the target window data is equal to the length of the historical data sequence.
[0155] The target timestamp data in the target window data is masked by the fault detection model, that is, the target timestamp data is set to 0, the first mask data after the masking is determined, and the first mask data is encoded according to the fault detection model to determine the first overall encoding vector. The target window data is encoded by the fault detection model to determine the second overall encoding vector. The difference between the first overall encoding vector and the second overall encoding vector is used as the online data floating error.
[0156] The target timestamp data in the mean sequence of historical data is masked by the fault detection model, that is, the target timestamp data is set to 0, the second mask data after masking is determined, and the second mask data is encoded according to the fault detection model to determine the first historical encoding vector. The mean sequence of historical data is encoded by the fault detection model to determine the second historical encoding vector. The difference between the first historical encoding vector and the second historical encoding vector is used as the floating error of the training data. The floating error of the online data and the floating error of the training data are horizontally spliced to determine the floating error of the spliced data, and the floating error of the spliced data is moved averaged and the error is horizontally normalized to determine the floating error of the target data.
[0157] Based on the triple standard deviation rule, the mean of the online data floating error and the standard deviation of the online data floating error are calculated. The online data abnormality threshold is determined according to the mean of the online data floating error and the standard deviation of the online data floating error. If the target data of the target window data is greater than the online data abnormality threshold, the target data is determined to be abnormal, and a first abnormal array is generated. If the target data of the sub-target window data is greater than the target data abnormality threshold, the target data is determined to be abnormal, and a second abnormal array is generated. In the first abnormal array and the second abnormal array, normal time series data is marked as 0, and abnormal time series data is marked as 1. The staff can observe the operation of the automation equipment in real time according to the first abnormal array and the second abnormal array. If the target data of the target window data is greater than the online data abnormality threshold and greater than the target data abnormality threshold, the target data of the target window data is determined to be abnormal, and the abnormal time point of the automation equipment is determined according to the target data of the abnormal target window data, and the equipment failure information of the automation equipment is generated according to the abnormal time point of the automation equipment.
[0158] In the above fault detection method, multiple time series data of automation equipment are loaded, multiple historical time series data are generated and the mean sequence of historical data is determined; feature sampling is performed on multiple historical time series data to determine the target sample data, and the deep learning model is trained based on the target sample data to determine the fault detection model; the sensor parameters of the automation equipment are obtained, and the target window data is determined according to the length of the historical data sequence and the mean sequence of the historical data; the online data floating error and the target data floating error are determined according to the target window data, the mean sequence of historical data and the fault detection model; the abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feedback the equipment fault information of the automation equipment. It solves the problem that engineers need to build different fault detection models for different production process recipes. When the process recipe changes, it takes a lot of time to update the fault detection model, resulting in high fault detection cost and low feature extraction efficiency. The above scheme can train and deploy the deep learning model through the historical time series data collected by the sensors of the automation equipment, determine the fault detection model, and monitor the sensor parameter data flow of the automation equipment in the production process in real time, that is, the target window data, sort the target window data according to the length of the historical data sequence, and obtain the target window data. Based on the fault detection model, the data floating error is determined according to the target window data and the mean sequence of historical data, and the fault information of the automation equipment is determined according to the data floating error and the target window data. When an abnormality occurs during the operation of the automation equipment, the time point of the equipment abnormality can be marked to screen the produced products and improve the product yield. At the same time, there is no need to update the fault detection model according to the process recipe. The fault detection model can be iteratively trained according to the sensor parameters obtained in real time to achieve automatic update of the fault detection model, improve the fault detection efficiency of the automation equipment, and improve the accuracy of the fault detection results.
[0159] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0160] Based on the same inventive concept, the embodiment of the present application also provides a fault detection device for implementing the fault detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more fault detection device embodiments provided below can refer to the limitations of the fault detection method above, and will not be repeated here.
[0161] In one embodiment, Figure 6 As shown, a fault detection device is provided, comprising: a historical time series data determination module 601, a fault detection model determination module 602, a target window data determination module 603, a target floating error determination module 604 and an equipment fault information determination module 605, wherein:
[0162] The historical time series data determination module 601 is used to load multiple time series data of the automation equipment, generate multiple historical time series data and determine the mean sequence of the historical data;
[0163] A fault detection model determination module 602 is used to perform feature sampling on multiple historical time series data, determine target sample data, and perform model training on a deep learning model based on the target sample data to determine a fault detection model;
[0164] The target window data determination module 603 is used to obtain the sensor parameters of the automation equipment and determine the target window data according to the length of the historical data sequence and the historical data mean sequence;
[0165] A target floating error determination module 604 is used to determine the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model;
[0166] The device fault information determination module 605 is used to determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feed back the device fault information of the automation equipment.
[0167] Exemplarily, the target floating error determination module 604 is specifically used for:
[0168] Determine online data floating error based on target window data and fault detection model;
[0169] Determine the floating error of training data based on the historical data mean sequence and the fault detection model;
[0170] The target data floating error is determined based on the online data floating error and the training data floating error.
[0171] Furthermore, the target floating error determination module 604 is also specifically used for:
[0172] Performing mask processing on target timestamp data in target window data through a fault detection model to determine first mask data, and determining a first overall encoding vector through the fault detection model and the first mask data;
[0173] Inputting the target window data into the fault detection model to determine a second overall encoding vector;
[0174] The online data floating error is determined based on the first overall encoding vector and the second overall encoding vector.
[0175] Furthermore, the target floating error determination module 604 is also specifically used for:
[0176] Performing a mask operation on a random timestamp in the mean sequence of historical data to determine second mask data, and inputting the second mask data into a fault detection model to determine a first historical encoding vector;
[0177] Determine a second historical encoding vector according to the historical data mean sequence and the fault detection model;
[0178] The training data floating error at each timestamp is determined based on the first historical encoding vector and the second historical encoding vector.
[0179] Exemplarily, the device fault information determination module 605 is specifically used for:
[0180] Based on the triple standard deviation rule, the online data anomaly threshold is determined according to the online data floating error, and the target data anomaly threshold is determined according to the target data floating error;
[0181] The abnormal points of the target window data are jointly judged according to the online data abnormality threshold and the target data abnormality threshold to feedback the equipment failure information of the automation equipment.
[0182] Exemplarily, the device fault information determination module 605 is further specifically configured to:
[0183] Generate exception array 1 and exception array 2 to record the abnormal results of the target window data and the online data abnormal threshold and the target data abnormal threshold respectively, determine the abnormal points of the target window data based on the common abnormal results of exception array 1 and exception array 2, and mark the abnormal points in the time series data in real time in the visualization interface.
[0184] Exemplarily, the historical time series data determination module 601 is specifically used for:
[0185] Perform data preprocessing on multiple time series data, obtain multiple historical time series data with uniform length, and record the length of the historical data sequence;
[0186] Normalize multiple historical time series data and determine the mean sequence of the historical data after the normalization calculation.
[0187] Exemplarily, the historical time series data determination module 601 is further specifically used for:
[0188] Obtain historical data timestamps of multiple time series data, and determine the data collection period according to the timestamp interval of the historical data timestamps;
[0189] Determine adjacent timestamps of multiple time series data according to the timestamps of historical data, and determine supplementary data of the historical time series data according to the timestamp interval of adjacent timestamps and the data collection cycle;
[0190] The historical time series data is complemented based on the supplementary data to determine the complemented historical time series data.
[0191] Exemplarily, the historical time series data determination module 601 is further specifically used for:
[0192] Normalize the data with the same timestamp in multiple historical time series data to update the multiple historical time series data;
[0193] The mean of the updated multiple historical time series data with the same timestamp is calculated to determine the mean sequence of the historical data.
[0194] Exemplarily, the target window data determination module 603 is specifically used for:
[0195] Acquire real-time time series data of sensor parameters and determine the time series data to be processed according to the processing mode;
[0196] The length of the time series data to be processed is compared with the length of the historical data sequence. If the length is insufficient, it is supplemented according to the mean sequence of historical data, and data preprocessing and normalization calculations are performed.
[0197] Exemplarily, the fault detection model determination module 602 is specifically used for:
[0198] Each piece of historical time series data is intercepted to determine the historical time subsequence, and the historical time subsequence is subjected to time point extension processing to determine multiple data series samples;
[0199] Construct positive sample features and negative sample features from multiple data sequence samples according to the time dimension and / or subsequence dimension;
[0200] The target sample data is determined according to the positive sample features and the negative sample features, and the deep learning model is trained based on the target sample data to determine the fault detection model.
[0201] Each module in the above fault detection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0202] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a fault detection method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0203] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0204] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0205] Step 1: Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0206] Step 2: Feature sampling is performed on multiple historical time series data to determine target sample data, and a deep learning model is trained based on the target sample data to determine a fault detection model;
[0207] Step 3: Obtain the sensor parameters of the automation equipment and determine the target window data according to the length of the historical data sequence and the historical data mean sequence;
[0208] Step 4: Determine the online data floating error and the target data floating error based on the target window data, the historical data mean sequence and the fault detection model;
[0209] Step 5: Determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feedback the equipment failure information of the automation equipment.
[0210] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0211] Step 1: Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0212] Step 2: Feature sampling is performed on multiple historical time series data to determine target sample data, and a deep learning model is trained based on the target sample data to determine a fault detection model;
[0213] Step 3: Obtain the sensor parameters of the automation equipment and determine the target window data according to the length of the historical data sequence and the historical data mean sequence;
[0214] Step 4: Determine the online data floating error and the target data floating error based on the target window data, the historical data mean sequence and the fault detection model;
[0215] Step 5: Determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feedback the equipment failure information of the automation equipment.
[0216] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0217] Step 1: Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data;
[0218] Step 2: Feature sampling is performed on multiple historical time series data to determine target sample data, and a deep learning model is trained based on the target sample data to determine a fault detection model;
[0219] Step 3: Obtain the sensor parameters of the automation equipment and determine the target window data according to the length of the historical data sequence and the historical data mean sequence;
[0220] Step 4: Determine the online data floating error and the target data floating error based on the target window data, the historical data mean sequence and the fault detection model;
[0221] Step 5: Determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feedback the equipment failure information of the automation equipment.
[0222] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0223] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0224] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0225] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A fault detection method, It is characterized in that include: Load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data; Performing feature sampling on the plurality of historical time series data to determine target sample data, and performing model training on a deep learning model based on the target sample data to determine a fault detection model; Acquire sensor parameters of the automation equipment, and determine target window data according to the historical data sequence length of the historical time series data and the historical data mean sequence; Determine the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model; The step of determining the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model includes: Determine the floating error of online data based on the target window data and the fault detection model; determine the floating error of training data based on the historical data mean sequence and the fault detection model; determine the floating error of target data based on the floating error of online data and the floating error of training data; The determining of the online data floating error according to the target window data and the fault detection model includes: Performing mask processing on the target timestamp data in the target window data by using the fault detection model to determine first mask data, and determining a first overall encoding vector by using the fault detection model and the first mask data; Inputting the target window data into the fault detection model to determine a second overall encoding vector; Determine an online data floating error according to the first overall encoding vector and the second overall encoding vector; Determining the training data floating error according to the historical data mean sequence and the fault detection model includes: Determine a first historical coding vector according to a masked historical data mean sequence through a fault detection model, determine a second historical coding vector according to a masked historical data mean sequence through a fault detection model, and determine a training data floating error according to the first historical coding vector and the second historical coding vector; The abnormal point of the target window data is determined according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment.
2. The method according to claim 1, It is characterized in that The determining of the training data floating error according to the historical data mean sequence and the fault detection model comprises: Performing a mask operation on random timestamps in the mean sequence of the historical data to determine second mask data, and inputting the second mask data into the fault detection model to determine a first historical coding vector; Determine a second historical encoding vector according to the historical data mean sequence and the fault detection model; The training data floating error at each timestamp is determined according to the first historical encoding vector and the second historical encoding vector.
3. The method according to claim 1, It is characterized in that The determining the abnormal point of the target window data according to the online data floating error and the target data floating error to feed back the equipment failure information of the automation equipment includes: Based on the triple standard deviation rule, determining the online data abnormality threshold according to the online data floating error, and determining the target data abnormality threshold according to the target data floating error; The abnormal point of the target window data is jointly determined according to the online data abnormality threshold and the target data abnormality threshold to feed back the equipment failure information of the automation equipment.
4. The method according to claim 3, It is characterized in that Also includes: Generate exception array 1 and exception array 2 to record the abnormal results of the target window data and the online data abnormal threshold and the target data abnormal threshold respectively, determine the abnormal points of the target window data based on the common abnormal results of exception array 1 and exception array 2, and mark the abnormal points in the time series data in real time in the visualization interface.
5. The method according to claim 1, It is characterized in that The step of loading multiple time series data of the automation equipment, generating multiple historical time series data and determining the mean sequence of the historical data includes: Perform data preprocessing on multiple time series data, obtain multiple historical time series data with uniform length, and record the length of the historical data sequence; The plurality of historical time series data are normalized and calculated, and a mean value sequence of the historical data after the normalization calculation is determined.
6. The method according to claim 5, It is characterized in that The data preprocessing includes: Obtaining historical data timestamps of multiple time series data, and determining a data collection period according to the timestamp intervals of the historical data timestamps; Determine adjacent timestamps of the plurality of time series data according to the timestamps of the historical data, and determine supplementary data of the historical time series data according to the timestamp intervals of the adjacent timestamps and the data collection period; The historical time series data is complemented based on the supplementary data to determine the complemented historical time series data.
7. The method according to claim 5, It is characterized in that The performing normalization calculation on the plurality of historical time series data and determining a mean value sequence of the historical data after the normalization calculation includes: Performing normalization calculation on data with the same timestamp in multiple pieces of historical time series data to update the multiple pieces of historical time series data; The mean value of the historical data is calculated based on the updated multiple historical time series data with the same timestamp to determine the mean sequence of the historical data.
8. The method according to claim 1, It is characterized in that The step of acquiring sensor parameters of the automation equipment and determining target window data according to the length of the historical data sequence and the mean value sequence of the historical data includes: Acquire real-time time series data of the sensor parameters, and determine the time series data to be processed according to the processing mode; The length of the time series data to be processed is compared with the length of the historical data sequence. If the length is insufficient, it is supplemented according to the mean sequence of historical data, and data preprocessing and normalization calculations are performed.
9. The method according to claim 1, It is characterized in that The performing feature sampling on the plurality of historical time series data to determine target sample data, and performing model training on a deep learning model based on the target sample data to determine a fault detection model includes: Each piece of historical time series data is intercepted to determine a historical time subsequence, and the historical time subsequence is subjected to time point extension processing to determine multiple data sequence samples; Constructing positive sample features and negative sample features from the multiple data sequence samples according to the time dimension and / or the subsequence dimension; Target sample data is determined according to the positive sample features and the negative sample features, and a deep learning model is trained based on the target sample data to determine a fault detection model.
10. A fault detection device, It is characterized in that The fault detection device comprises: A historical time series data determination module is used to load multiple time series data of automation equipment, generate multiple historical time series data and determine the mean sequence of historical data; A fault detection model determination module is used to perform feature sampling on the multiple historical time series data to determine target sample data, and to perform model training on a deep learning model based on the target sample data to determine a fault detection model; A target window data determination module is used to obtain sensor parameters of the automation equipment and determine the target window data according to the historical data sequence length of the historical time series data and the historical data mean sequence; A target floating error determination module, used to determine an online data floating error and a target data floating error according to the target window data, the historical data mean sequence and the fault detection model; The step of determining the online data floating error and the target data floating error according to the target window data, the historical data mean sequence and the fault detection model includes: Determine the floating error of online data based on the target window data and the fault detection model; determine the floating error of training data based on the historical data mean sequence and the fault detection model; determine the floating error of target data based on the floating error of online data and the floating error of training data; The determining of the online data floating error according to the target window data and the fault detection model includes: Performing mask processing on the target timestamp data in the target window data by using the fault detection model to determine first mask data, and determining a first overall encoding vector by using the fault detection model and the first mask data; Inputting the target window data into the fault detection model to determine a second overall encoding vector; Determine an online data floating error according to the first overall encoding vector and the second overall encoding vector; Determining the training data floating error according to the historical data mean sequence and the fault detection model includes: Determine a first historical coding vector according to a masked historical data mean sequence through a fault detection model, determine a second historical coding vector according to a masked historical data mean sequence through a fault detection model, and determine a training data floating error according to the first historical coding vector and the second historical coding vector; The device fault information determination module is used to determine the abnormal point of the target window data according to the online data floating error and the target data floating error to feed back the device fault information of the automation equipment.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Multi-source time series data fault diagnosis method based on graph neural network and medium
CN112783940A
Active digital array radar real-time fault diagnosis method based on deep learning
CN114626482A
