Linear contour process quality abnormality monitoring method and system based on DCGAN

Through the deep learning model based on DCGAN and convolutional neural network, it solves the problem of monitoring small fluctuations and change point positions in linear contour monitoring, achieves efficient monitoring of quality abnormalities in the linear contour process, improves monitoring efficiency and accuracy, and is suitable for high-speed applications. Real-time quality monitoring of the manufacturing process.

CN114417248BActive Publication Date: 2024-09-10ZHENGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210062233.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2024-09-10
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively monitor small fluctuations and change point positions in linear contour monitoring, and the control chart-based method requires the establishment of an accurate mathematical model, which cannot meet the needs of real-time quality monitoring and diagnosis of high-speed manufacturing processes. The use of intelligent methods is shallow. The layer model has the problems of limited manual extraction of features, insufficient classification accuracy and insufficient generalization ability.

Method used

Using deep convolutional generative adversarial networks and convolutional neural networks based on DCGAN, through gray-level mapping, sample amplification and training of linear contour process data, a deep learning model for anomaly detection is constructed to achieve quality control of the linear contour process. Abnormal real-time monitoring.

Benefits of technology

It improves the monitoring efficiency and accuracy of quality abnormalities in the linear contour process, effectively utilizes minority sample data, simplifies the data learning method, and can accurately identify abnormal states under unbalanced data sets, improving monitoring efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417248B
    Figure CN114417248B
Patent Text Reader

Abstract

The present invention relates to a method and system for monitoring abnormal quality of linear profile process based on DCGAN, including an offline training stage and an online monitoring stage. In the offline training stage, linear profile process data under historical normal operating state and abnormal state are collected respectively, and the samples are amplified. A convolutional neural network is trained based on the amplified samples. In the online monitoring stage, process abnormality detection is performed according to the trained convolutional neural network. By applying a deep convolutional generative adversarial network to the monitoring of abnormal quality of linear profile process, the problem of limited manually extracted features can be solved, and the monitoring efficiency of abnormal quality of linear profile process can be improved. Historical data can be trained in the case of an unbalanced data set, ensuring the recognition accuracy of abnormal processes with a small amount of sample data. The use of convolutional neural networks can also effectively improve the efficiency of monitoring abnormal quality of linear profile process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for monitoring abnormal quality of a linear profile process based on DCGAN. Background Art

[0002] Sensors used to measure equipment parameters and quality characteristics such as displacement, pressure, temperature, humidity, and size are installed in large numbers in modern production processes. The collected process data has gradually evolved from single numerical values ​​to complex time series or spatial series data. When these data representing the operating status of the process can be approximated by a linear model, they are called linear profiles. How to discover the inherent operating laws of the system from a large amount of linear profile data and build a real-time, intelligent quality monitoring model suitable for modern production processes has become a key issue to ensure enterprise safety production and reduce quality costs.

[0003] In the research related to linear profile monitoring, the monitoring methods based on control charts and intelligent models are the most common. Among them, the monitoring methods based on control charts usually use univariate or multivariate control charts to monitor the slope, intercept and root mean square error of the linear profile. The control charts used mainly include T 2 , EWMA, CUSUM, K, MEWMA control charts, etc., can effectively monitor process deviations, but it is difficult to estimate the change point position while alarming small fluctuations. In order to make up for its shortcomings, the change point model has also been widely used in linear profile monitoring. Since the automated production process needs to monitor many equipment parameters and quality characteristics, requires timely response, has a variety of data types and has strong uncertainty, the monitoring method based on the control chart needs to establish an accurate mathematical model, and usually assumes that the measurement values ​​within the group are independent of each other, etc., and cannot reflect the mutual mapping relationship between the state type and the abnormal cause. It is difficult to meet the needs of real-time quality monitoring and diagnosis of high-speed manufacturing processes.

[0004] With the development of computer and artificial intelligence technology, intelligent quality monitoring methods such as support vector machines and artificial neural networks have been widely studied because they can express process states more accurately. Compared with statistical methods such as control charts, intelligent methods have the characteristics of no need for modeling, self-learning, and no need to determine controlled parameters in profile monitoring, and are more practical. However, current studies on profile monitoring based on intelligent methods all use shallow models with no more than two layers of nonlinear feature transformation, and there are still problems such as limited artificially extracted features, insufficient classification accuracy and generalization ability. Summary of the invention

[0005] In view of this, in order to solve the above technical problems, the present invention provides a method and system for monitoring abnormal quality of linear profile process based on DCGAN.

[0006] The present invention adopts the following technical solutions:

[0007] A method for monitoring abnormal quality of a linear profile process based on DCGAN, comprising:

[0008] Collecting linear profile process data in historical normal operation state and abnormal state respectively, and marking corresponding label information on the linear profile process data;

[0009] Performing grayscale mapping on the linear profile process data to obtain an initial quality map;

[0010] Based on the deep convolutional generative adversarial network, the sample data of the linear contour process under abnormal conditions is amplified to obtain the amplification quality map;

[0011] Obtaining a target mass spectrum according to the initial mass spectrum and the amplified mass spectrum;

[0012] Training a convolutional neural network according to the target quality map;

[0013] Based on the trained convolutional neural network, process anomaly detection is performed on the actual collected data.

[0014] Furthermore, the grayscale mapping of the linear profile process data to obtain an initial quality map includes:

[0015] Normalizing the linear profile process data to obtain a normalized matrix;

[0016] Grayscale mapping is performed on the normalized matrix to obtain an initial quality spectrum.

[0017] Furthermore, the calculation process of the initial mass spectrum includes:

[0018] The linear profile process data is represented as the following data matrix:

[0019]

[0020] The calculation formula of the initial mass spectrum is as follows:

[0021]

[0022] Wherein, M represents the number of sensors, N represents the number of measurement values ​​collected by each sensor, j=1, 2, ..., N, k=1, 2, ..., M; round() represents the round function.

[0023] Furthermore, the deep convolutional generative adversarial network includes a generator and a discriminator. The generator is used to generate a false data set based on the linear contour process data under abnormal conditions. The false data set and the real data set are used as inputs of the discriminator. The discriminator outputs the probability that the data belongs to the real data set, thereby determining whether the sample is a real sample or a false sample.

[0024] Furthermore, the actually collected data is obtained by sliding window value taking.

[0025] Furthermore, the process anomaly detection is performed on the actually collected data based on the trained convolutional neural network, including:

[0026] Processing the actually collected data to obtain a process quality map;

[0027] The process quality map is input into the trained convolutional neural network to determine whether it is abnormal.

[0028] Furthermore, the process of determining whether it is abnormal includes:

[0029] When the process quality map is normal, the monitoring window continues to slide forward according to the set moving step length, and each slide generates a process quality map and identifies convolutional neural network anomalies for the data in the window; when the process quality map is abnormal, the convolutional neural network outputs the abnormal category.

[0030] A linear profile process quality abnormality monitoring system based on DCGAN includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the linear profile process quality abnormality monitoring method based on DCGAN are implemented.

[0031] The beneficial effects of the present invention are as follows: first, an initial quality map is obtained according to the collected historical normal operation state and the linear profile process data under the abnormal state, then based on the deep convolution generation adversarial network, sample amplification is performed to obtain samples for training the convolutional neural network, and finally, the process abnormality monitoring is performed according to the trained convolutional neural network, which can solve the problem of limited artificial feature extraction. Moreover, by applying the deep convolution generation adversarial network to the monitoring of the abnormal quality of the linear profile process, the minority class sample data information generated in the production process can be effectively utilized to provide beneficial and more data information for the construction of the subsequent monitoring model; the use of the deep convolution generation adversarial network and the convolutional neural network two deep learning models simplifies the learning method of the original data information, and can efficiently identify and distinguish various abnormal states and normal states occurring in the linear profile production process; according to the historical data of the linear profile production process, the operation process under the abnormal state can be effectively identified and the specific abnormal mode can be determined, thereby improving the monitoring efficiency of the abnormal quality of the linear profile process; the historical data can be trained in the case of an unbalanced data set, ensuring the recognition accuracy of the abnormal process with a small amount of sample data, and the use of the convolutional neural network can also effectively improve the efficiency of the abnormal quality monitoring of the linear profile process. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following briefly introduces the drawings required for use in the embodiment:

[0033] Figure 1 It is a schematic diagram of the overall process of the linear profile process quality abnormality monitoring method based on DCGAN provided in an embodiment of the present application;

[0034] Figure 2 It is a schematic diagram of a specific implementation of the DCGAN-based linear profile process quality abnormality monitoring method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0036] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0037] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0038] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0039] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0040] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0041] In order to illustrate the technical solution described in this application, a specific implementation method is provided below.

[0042] See also Figure 1 , is a flow chart of a linear profile process quality abnormality monitoring method based on DCGAN provided in an embodiment of the present application. For ease of explanation, only the part related to the embodiment of the present application is shown.

[0043] The DCGAN-based linear contour process quality abnormality monitoring method provided in the embodiment of the present application includes two stages, namely an offline training stage and an online monitoring stage, wherein steps S1 to S5 belong to the offline training stage, and step S6 belongs to the online monitoring stage.

[0044] Step S1: Collect the linear profile process data under the historical normal operation state and abnormal state respectively, and mark the linear profile process data with corresponding label information:

[0045] The linear profile process data under historical normal operation state and abnormal state are collected respectively, and the linear profile process data are marked with corresponding label information, and the label information can be normal information and abnormal information.

[0046] Assume that M represents the number of sensors, and N represents the number of measurement values ​​collected by each sensor, then M sensors collect M×N measurement values.

[0047] The linear profile process data is represented as the following data matrix:

[0048]

[0049] Step S2: grayscale mapping is performed on the linear profile process data to obtain an initial quality map:

[0050] The linear profile process data obtained in step S1 is subjected to grayscale mapping to obtain an initial quality spectrum. As a specific implementation, the linear profile process data is first normalized, that is, the elements in the data matrix X are normalized to obtain a normalized matrix, and then grayscale mapping is performed on it according to the following formula (2) to obtain an initial quality spectrum.

[0051]

[0052] Among them, j=1, 2, ..., N, k=1, 2, ..., M; round() represents the round function.

[0053] Step S3: Based on the deep convolutional generative adversarial network, sample data amplification is performed on the linear contour process data under abnormal conditions to obtain an amplification quality map:

[0054] Due to the following situations in industrial production, abnormal production states rarely occur in actual production processes compared to normal production states, and the process data collected under abnormal production states is far less than the process data under normal states. The collected historical data is classified and numbered according to the abnormal causes in the production process. For the sample data of a few categories, the quality map is constructed according to the grayscale mapping method in step S2 and used as the input of the deep convolutional generative adversarial network. The linear contour process data under abnormal conditions is amplified according to the deep convolutional generative adversarial network, and the obtained quality map is defined as an amplified quality map. Sample amplification based on deep convolutional generative adversarial networks is a prior art. This embodiment provides a specific implementation process, as described below.

[0055] Deep convolutional generative adversarial network (DCGAN) is a generative model. Deep convolutional generative adversarial network includes generator and discriminator. The purpose of the generator is to generate false samples (pseudo samples) that approximately obey the distribution of real data, that is, to generate false data sets based on linear contour process data under abnormal conditions. The false data sets and real data sets are used as inputs of the discriminator. The task of the discriminator is to correctly distinguish between real data and false data, that is, the discriminator outputs the probability that the data belongs to the real data set and then determines whether the sample is a real sample or a false sample. By conducting adversarial training inside the model, the purpose of expanding the sample set is finally achieved. DCGAN is trained so that the distribution of the data generated by the generator in the network is similar to the original data. A random vector is generated using a uniform distribution function as the input of DCGAN, and the generated quality map is similar to the original quality map. The quality maps with less data in the categories of the data set are used as inputs of DCGAN respectively. Through continuous iterative learning, the distribution of the data generated by the generator in the network is similar to the input data.

[0056] The training process can be expressed as follows:

[0057]

[0058] During the training process of the model, the random variable z is used as the input of the generator. z is randomly sampled from a certain probability distribution. Using the complex network structure of the generator, the random variable is nonlinearly mapped and the data set G(z) of the required dimension is obtained. The false data set G(z) and the real data set x are used as the input of the discriminator, and the output is the probability that the data belongs to the real data set, thereby judging whether the sample is a real sample or a false sample.

[0059] The generator and discriminator parameter update process is as follows:

[0060] Sample m samples {z1, z2, z3, ..., z m}. Sample the same number of data {x1, x2, x3, ..., x m}.

[0061] Discriminator D loss function:

[0062]

[0063] Let the internal parameters of the discriminator be θ D , the parameter update direction is to increase the gradient ▽L of the corresponding parameter of formula (4) D .

[0064] Generator G loss function:

[0065]

[0066] Let the internal parameter of the generator be θ G , the parameter update direction is to reduce the gradient ▽L of the corresponding parameter of formula (5) G .

[0067] In the above steps, the parameters of the discriminator can be updated multiple times or once, and then the parameters of the generator can be updated once. z (z) is randomly sampled and input into the generator to generate an approximate P data (x) samples.

[0068] The learning process of DCGAN is completed by comprehensively considering the convergence of the loss values ​​in the generator and discriminator and the quality of the generated images. Finally, the random vector generated by random distribution is used as the input of DCGAN to obtain the generated quality map.

[0069] Step S4: Obtain a target mass spectrum according to the initial mass spectrum and the amplified mass spectrum:

[0070] The initial quality map is the sample obtained initially, and the amplified quality map is the sample obtained by amplification. The generated quality map is added to the original data set to obtain a new data set, completing the amplification of the sample data of the minority category. That is, the initial quality map and the amplified quality map are integrated together to obtain the quality map used for subsequent training, which is defined as the target quality map.

[0071] Step S5: training the convolutional neural network according to the target quality map:

[0072] According to the target quality map and the corresponding label information, the convolutional neural network is trained. Among them, the convolutional neural network (CNN) is a feedforward neural network, and its basic structure consists of an input layer, a convolutional layer, a pooling layer, a fully connected layer, and an output layer. The update process of the model parameters in the convolutional neural network is as follows:

[0073] 1) Convolutional layer:

[0074] The convolutional layer is composed of multiple feature maps. Each pixel value in the feature map represents a neuron, and each neuron is connected to the M×M square area in the feature map of the previous layer. The local square area of ​​the previous layer is subjected to a two-dimensional convolution operation with the convolution kernel, and the value obtained by the weighted sum is passed to the activation function to obtain the output feature matrix. The calculation formula is as follows:

[0075]

[0076] Among them, l is the current layer number; w a,b is the weight in the convolution kernel; b is the bias; f is the activation function. ReLU (Rectified Linear Units) activation function is often used in CNN.

[0077] 2) Pooling layer:

[0078] The pooling layer, also known as the down-sampling layer, divides the input feature surface into non-overlapping 2×2 rectangular areas, and performs pooling operations on each area. Each feature surface output by the pooling layer corresponds to the feature surface output by the convolutional layer of the previous layer, and their number will not change. Further dimensionality reduction of the feature surface through the pooling layer can reduce the parameters of the network and improve the robustness of the model. Commonly used pooling methods include average pooling, maximum pooling, and stochastic pooling. After pooling, the size of the feature surface is reduced to 1 / 2 of that before pooling, and the training parameters of the network are not increased, which can effectively avoid the occurrence of overfitting.

[0079] 3) Fully connected layer:

[0080] After repeated convolution and downsampling, the fully connected layer expands the pixel values ​​of all feature maps in sequence and arranges them in a row to form a feature vector. Each neuron in the fully connected layer is fully connected to the neurons in the next layer, which can integrate the features extracted by the convolution layer and the downsampling layer to extract more discriminative features. The last layer of the fully connected layer is the output layer, which usually uses softmax logistic regression to achieve classification and output the probability value of belonging to each category.

[0081]

[0082]

[0083] Formula (7) and Formula (8) are the middle layer and softmax output layer of the fully connected layer respectively. In Formula (7), x* is the feature vector output by the last pooling layer, k ij is the connection weight between the jth input and the i-th intermediate layer neuron, b * is the bias, and f is the activation function. In formula (8), P j is the probability value that the input data belongs to the jth class, W j is the weight vector connecting the j-th output layer node to the previous layer.

[0084] 4) Error back propagation:

[0085] The convolutional neural network uses a back propagation algorithm similar to the traditional neural network, so the loss function of the pth training sample can be defined as:

[0086]

[0087] In the formula, y pj is the actual probability that the pth training sample belongs to the jth class, S pj is the predicted probability that the pth training sample belongs to the jth class. Formula (9) consists of cross entropy and regularization terms. The back propagation algorithm minimizes the loss function by optimizing the weights and parameters to achieve the purpose of training the model. The key to the BP algorithm is to find the partial derivative of the loss function with respect to the weight and bias. For a single training sample, the calculation process of the partial derivative of the weight is:

[0088]

[0089] in, It can be calculated by the chain rule:

[0090]

[0091] Similarly, the error is propagated to the previous layer in the same way:

[0092]

[0093] The calculation process of the partial derivative of the bias is the same as that of the weight. The adjustment directions of the weight and bias are:

[0094]

[0095]

[0096] Where η is the learning rate.

[0097] The data set corresponding to the target quality map is used as the input of the convolutional neural network. The learning process of the model on the data set is completed according to the recognition accuracy of the convolutional neural network model and the convergence of the loss function value. The grid search method is used to compare the recognition effects of the convolutional neural network model under different hyperparameter combinations, and then determine the final model structure to be used. The adjustment process is as follows: set different levels and combinations for the structure of the convolutional neural network model (number of layers, number of hidden points) and the parameters of the convolutional neural network model (learning rate, optimizer, and activation function, etc.); train the convolutional neural network model under different combinations and obtain the corresponding recognition accuracy; select the convolutional neural network model with the highest recognition accuracy as the final model and save it.

[0098] Step S6: Based on the trained convolutional neural network, process anomaly detection is performed on the actually collected data:

[0099] In this embodiment, the data actually collected by the sensor is obtained by sliding window value acquisition. The actually collected data is first processed to obtain a process quality spectrum. The conversion method of the quality spectrum has been described in detail above and will not be repeated here.

[0100] The process quality map is input into the trained convolutional neural network, and the process quality map is identified online to determine whether the process is abnormal. The convolutional neural network determines the state category of the process quality map and outputs the mode category with the highest probability, corresponding to the normal mode and abnormal mode in the training data set, so as to obtain the real-time operation status of the production process. When the process is normal, the monitoring window continues to slide forward according to the set moving step length, and each slide generates a quality map and convolutional neural network identification for the data in the window; when the process is abnormal, the convolutional neural network model outputs the abnormal category, thereby realizing the monitoring of linear contour process abnormalities. Figure 2 It is a schematic diagram of a specific implementation of the DCGAN-based linear profile process quality abnormality monitoring method provided in an embodiment of the present application.

[0101] This embodiment also provides a linear profile process quality abnormality monitoring system based on DCGAN, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned linear profile process quality abnormality monitoring method based on DCGAN are implemented.

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

Claims

1. A method for monitoring abnormal quality of linear contour process based on DCGAN, characterized in that: include: Collecting linear profile process data in historical normal operation state and abnormal state respectively, and marking corresponding label information on the linear profile process data; Performing grayscale mapping on the linear profile process data to obtain an initial quality map; Based on the deep convolutional generative adversarial network, the sample data of the linear contour process under abnormal conditions is amplified to obtain the amplification quality map; Obtaining a target mass spectrum according to the initial mass spectrum and the amplified mass spectrum; Training a convolutional neural network according to the target quality map; Based on the trained convolutional neural network, process anomaly detection is performed on the actual collected data; The calculation process of the initial mass spectrum includes: The linear profile process data is represented as the following data matrix: The calculation formula of the initial mass spectrum is as follows: Wherein, M represents the number of sensors, N represents the number of measurement values ​​collected by each sensor, j=1, 2, ..., N, k=1, 2, ..., M; round() represents the round function; The process of performing process anomaly detection on the actually collected data based on the trained convolutional neural network includes: Processing the actually collected data to obtain a process quality map; Inputting the process quality map into the trained convolutional neural network to determine whether it is abnormal; The process of determining whether there is an abnormality includes: When the process quality map is normal, the monitoring window continues to slide forward according to the set moving step length, and each slide generates a process quality map and identifies convolutional neural network anomalies for the data in the window; when the process quality map is abnormal, the convolutional neural network outputs the abnormal category.

2. The DCGAN-based linear profile process quality abnormality monitoring method according to claim 1 is characterized in that: The grayscale mapping of the linear profile process data to obtain an initial quality map includes: Normalizing the linear profile process data to obtain a normalized matrix; Grayscale mapping is performed on the normalized matrix to obtain an initial quality spectrum.

3. The method for monitoring abnormal quality of linear profile process based on DCGAN according to claim 1, characterized in that: The deep convolutional generative adversarial network includes a generator and a discriminator. The generator is used to generate a false data set based on the linear contour process data under abnormal conditions. The false data set and the real data set are used as inputs of the discriminator. The discriminator outputs the probability that the data belongs to the real data set, thereby determining whether the sample is a real sample or a false sample.

4. The method for monitoring abnormal quality of linear profile process based on DCGAN according to claim 1, characterized in that: The actually collected data is obtained by sliding window value taking.

5. A linear profile process quality abnormality monitoring system based on DCGAN, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the DCGAN-based linear profile process quality abnormality monitoring method as described in any one of claims 1 to 4 are implemented.