Quality correlation analysis method for industrial production data
By using the reversible neural network in industrial production data to convert the data distribution into a standard normal distribution, the problem of unknown parameter distribution and correlation is solved, the modeling process is simplified, the generalization and adaptability of the model are improved, and it is suitable for high-tech applications. Dimensional data.
Patent Information
- Application Number
- CN202410723938.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, in the quality correlation analysis of industrial production data, statistical methods have inconsistent assumptions about parameter distribution, and mechanism methods show problems of dimensionality disaster and poor generalization under high-dimensional data.
A reversible neural network is used to build a distribution conversion model, which converts the actual unknown data distribution into a standard normal distribution with independent components. The model is trained through an optimization algorithm to identify factors related to production quality.
It solves the problem of unknown parameter distribution and correlation, simplifies the modeling process, improves the generalization and adaptability of the model, and is suitable for high-dimensional industrial production data.
Smart Images

Figure CN118690135A
Abstract
Description
[Technical field]
[0001] The invention relates to a quality association analysis method, and in particular to a quality association analysis method for industrial production data. [Background Technology]
[0002] In the manufacturing industry, the importance of product quality is self-evident. For enterprises, product quality is the basis of their survival and development. Only high-quality products can win the favor of consumers in the fierce market competition and win market share. With the upgrading of industrial production automation and intelligence, more and more factories have realized unmanned production. The traditional method of judging production quality through artificial primitive senses and specific measuring devices has gradually been replaced by more and more sensors. Therefore, a large amount of data related to production quality will be generated in production activities. Then, when the production quality is abnormal, one or several related data causing this abnormality can be found by retrospective analysis of the data.
[0003] Quality correlation analysis methods are used to study and determine the relationships between various factors that affect product quality during industrial production processes. The purpose of this analysis is to identify and quantify how different production parameters (such as temperature, humidity, pressure, raw material quality, etc.) affect the quality of the final product individually and collectively. Through this analysis, companies can better understand and control the production process, thereby improving product quality and reducing defects and scrap rates.
[0004] Traditional quality correlation analysis can be roughly divided into statistical methods and mechanism methods.
[0005] Statistical methods usually require some assumptions, such as assuming that all parameters follow a normal distribution or uniform distribution under normal circumstances. When conducting correlation analysis, you only need to calculate the current parameters with the statistical mean and variance to get the difference between the parameters under normal and abnormal conditions. According to the size of the difference, you can sort the correlations and find several factors with a higher degree of correlation.
[0006] Mechanism-based methods are mainly based on known physical, chemical, and biological principles, and describe and explain phenomena by establishing equations and simulations. For example, chemical reaction rate equations, circuit equations, etc. Mechanism models can accurately describe and predict the behavior and response of the system. Specifically in the quality correlation analysis scenario, it is necessary to model the online production status of the product through physical and mathematical knowledge. When quality abnormalities occur, the influence weight of each parameter can be calculated based on the equations established in advance.
[0007] Statistical methods make two important assumptions. The first is that each parameter is assumed to follow a known common distribution such as a normal distribution. However, in the actual production process, the distribution of many parameters is actually unknown and does not conform to a simple common distribution at all, but rather to some unknown complex distribution. Second, statistical methods obviously do not consider the correlation between parameters. The premise is that each parameter is independent of each other, which is almost impossible to achieve in the actual production process.
[0008] Although mechanism-based methods are modeled through strict physical and mathematical knowledge, they are usually only used when the dimensions of the input variables are not large. If the dimensions are too large, dimensionality disaster will occur. In the field of industrial big data analysis, hundreds or thousands of dimensions are usually not suitable for this type of model. In addition, the modeling process of the mechanism model is relatively complicated, requiring the cooperation of very professional field engineers, mechanical designers, production industrial designers, etc. to carry out modeling, and a large amount of data is required to verify the model. The model is also sensitive to boundary data and has poor generalization. When boundary data is input, the model is prone to collapse. [Summary of the invention]
[0009] The technical problem to be solved by the present invention is to provide a quality correlation analysis method for industrial production data to overcome the problem that the distribution of parameter assumptions in statistical methods is inconsistent with the actual distribution, and can be applied to situations where the parameter distribution is unknown.
[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is a quality correlation analysis method for industrial production data, comprising the following steps:
[0011] 101) Data collection: Collect raw data from industrial production systems;
[0012] 102) Data preprocessing: Clean and format the collected data to ensure data quality;
[0013] 103) Data modeling: Use a reversible neural network to build a distribution conversion model to model production quality-related data and convert the actual, unknown data distribution into a standard normal distribution with independent components;
[0014] 104) Model training: Use optimization algorithms to train the constructed neural network model to learn the distribution characteristics and correlation of data;
[0015] 105) Data partitioning: Divide the preprocessed data into training set, test set and validation set to evaluate and verify the model.
[0016] The quality correlation analysis method described above,
[0017] 201) Step 102 includes a step of deleting outliers, a step of filling missing data, and a step of standardizing data format;
[0018] 202) The reversible neural network used in step 103 includes a plurality of reversible modules, wherein the reversible modules include a linear layer, an activation layer, a splitting layer, and a confusion layer;
[0019] 203) The optimization algorithm used in step 104 is an ADAM optimizer, and includes a learning rate setting step, a weight decay step, and a training parameter step;
[0020] 204) In step 105, the preprocessed data is divided into a training set of 50% to 70%, a validation set of 15% to 25%, and a test set of 15% to 25%.
[0021] In the quality association analysis method described above, the linear layer mainly performs linear mapping operations, inputs an m*n dimensional matrix, and outputs an m*k dimensional matrix after parameter w mapping, which is equivalent to mapping each row of the input matrix from n dimension to k dimension, and only addition and multiplication operations are performed in the mapping process; the role of the activation layer is mainly to add nonlinearity to the network. The activation layer can be expressed as an activation function, which maps the input variable to between 0 and 1 through negative exponential and reciprocal operations; the splitting layer and the confusion layer mainly perform variable splitting and combination work, including splitting a set of m*n variables into k*k (m / k)*(m / k) dimensional variables, or combining k*k (m / k)*(m / k) dimensional variables into a set of m*n variables.
[0022] In the above-mentioned quality correlation analysis method, step 103 comprises the following steps:
[0023] 401) According to the multidimensional random variable substitution theorem, let the random variable x obey p distribution and the random variable z obey q distribution, x = f(z), z = f -1 (x), we get
[0024] Introduce the above formula into the network model and let the input of the i-th reversible module be z i-1 , obey p i-1 Distribution; output is z i , obey p i Distribution; the operation performed by the i-th reversible module is represented by the function f i express;
[0025] 402) According to the above formula,
[0026] 403) According to the inverse function theorem and the properties of the inverse function Jacobian matrix, we can obtain:
[0027] 404) Take the logarithm of both sides of the equality sign in the above equation:
[0028] 405) Let the entire network be composed of K reversible modules stacked together, and we get:
[0029]
[0030] where z K , z0 can be input and output to each other. In the forward process, input z0 and output z K Similarly, in the reverse process, input z K Output z0, where z0 represents the collected raw data, which obeys a complex, unknown distribution. Let z K For a random variable that obeys a 0-1 normal distribution, the original data distribution is transformed into a 0-1 normal distribution.
[0031] In the above-mentioned quality correlation analysis method, step 103 comprises the following steps:
[0032] 501) The steps of vector splitting and merging are as follows:
[0033] x a , x b =split(x)
[0034] w=NN(x a )
[0035] w a , w b =split(w)
[0036] y b =exp(w a )*x b +w b
[0037] y = cat(x a ,y b )
[0038] y = s * y;
[0039] 502) Perform the inverse function operation steps according to the following inverse function formula:
[0040]
[0041] y a ,y b =split(y)
[0042] w=NN(y a )
[0043] w a , w b =split(w)
[0044] x b =(y a -w b )*exp(-w a )
[0045] x=cat(y a , x b );
[0046] 503) The calculation steps of Jacobi matrix determinant are as follows:
[0047] det=sum(log(|w a |));
[0048] Where split and cat represent vector splitting and merging, respectively; NN represents a linear module consisting of a linear layer and an activation layer; exp represents an exponential function with e as the base; sum represents vector summation; s represents a trainable scaling parameter; the s parameter of the last reversible module can be used as the weight of each dimension of the input vector for subsequent ranking of influencing factors; x represents input, and y represents output;
[0049] Each reversible module includes the operations of steps 501, 502 and 503. Stacking multiple reversible modules is equivalent to the result of step 405, thus constructing the final training model.
[0050] In the above-mentioned quality correlation analysis method, step 104 includes the following steps:
[0051] 601) According to step 405, the input variable is transformed into a normal distribution that satisfies the independence of each component. Assuming that the original data z obeys p distribution, the negative log-likelihood function is used as the optimization function:
[0052]
[0053] 602) The transformed output variable z0 should obey the 0-1 normal distribution, that is, the p0 distribution in the formula of step 403; the determinant in step 503 can be further transformed into the following formula:
[0054]
[0055] in, During the forward calculation, the final loss value can be obtained according to step 503, and the final loss value can be obtained through step 602; the smaller the loss value, the higher the degree of model convergence. When the loss value remains basically stable after a certain period of training, it means that the model has converged and the training can be ended.
[0056] The quality correlation analysis method described above includes model deployment and post-processing steps. The role of the model deployment and post-processing steps is to implement the trained model in the actual production environment, perform pre-processing, forward reasoning and abnormal component analysis on real-time data, so as to identify and explain the causes of production quality abnormalities.
[0057] The quality correlation analysis method described above, the model deployment and post-processing steps include input data preprocessing steps, forward reasoning steps and abnormal component analysis steps:
[0058] 801) Input data preprocessing step: preprocess the input data to eliminate abnormal data; when abnormal data appears, retrieve the data of T moments before this moment and input it into the analysis system to analyze the data of this time period; let the data of this time period be [X] T*d , T*d means that the data is a two-dimensional matrix with T rows and d columns; T represents the time, d represents the parameter dimension, and means that the data of d sensors are related to production quality and need to be analyzed;
[0059] 802) Forward reasoning step: The data of the above time period is sent to the model for forward reasoning, and the batch of data is converted to a 0-1 normal distribution space where each component is independent, which can be expressed as:
[0060] [Y] T*d =F([X] T*d )
[0061] Where F is the network model, [Y] T*d represents the output in the normal distribution space, with a total of d dimensions; find [Y] T*d The dimension with larger and more drastic changes in the time dimension; that is, the variance of each dimensional feature is calculated in the time dimension, and the variance threshold is set according to the needs. If the variance of a feature in T moments exceeds the threshold, it is considered to be a component with a greater impact on the current production quality, which is called an abnormal component; let the set of abnormal components to be analyzed be A = {a1, a2, a3, ...}, card (A) = l, where card represents the number of elements in the set A, that is, there are l components to be analyzed.
[0062] The above-mentioned quality correlation analysis method, abnormal component analysis includes the following steps:
[0063] 901) Construct a T*d dimension all-zero background matrix: [B] T*d ;
[0064] 902) From [Y] T*d Extract the first i dimensional vector, we get and copy it to [B] T*d Middle ai The maintenance department obtains:
[0065] 903) Send it into the model for reverse reasoning to get the output in the original space: That means when the component a i In the normal distribution space, When changes occur, the corresponding parameter changes in the original space;
[0066] 904) Analyze all the components in A = {a1, a2, a3, ...} according to steps 901 to 903, and obtain Adding them together gives [S] T*d , that is, the change of production quality parameters from normal to abnormal time period in the original space;
[0067] [S] T*d Accumulate according to the time dimension [s] 1*d , and sort them. The larger the change, the greater the weight. Taking the first k dimensions of actual concern, we can get the correlation factors that caused the abnormal production quality.
[0068] The quality association analysis method for industrial production data of the present invention does not rely on assumptions about data distribution, and therefore can be applied to situations where parameter distribution is unknown.
[0069] In addition, the method of the present invention solves the problem of correlation between parameters by converting data into a standard normal distribution space in which each component is independent of each other.
[0070] The method of the present invention is based on data modeling, simplifies the modeling process, and improves the generalization and adaptability of the model through big data training. [Drawings]
[0071] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0072] Figure 1 It is a flow chart of the quality association analysis method according to an embodiment of the present invention.
[0073] Figure 2 It is a schematic diagram of data collection and processing according to an embodiment of the present invention.
[0074] Figure 3 It is a schematic diagram of the abnormal factor analysis process of an embodiment of the present invention. [Specific implementation method]
[0075] The system adopted by this method includes three modules: data collection and processing module, model building and training module, and model deployment and post-processing module.
[0076] 1. Data collection and processing module:
[0077] The work of this module mainly includes three steps: data collection, data cleaning, and data division.
[0078] Data collection is a relatively important step. The quality of data directly affects the quality of the model. In order to ensure the reliability and universality of the data, the data collection process can be divided into different machines, different time periods and different varieties for collection. First, according to the implementation scope of the specific project, determine which machines' data to collect; then, through demand analysis, get the approximate production varieties and corresponding production cycles, and eliminate some short-term and temporary production data of products. From a statistical point of view, these data do not meet the sampling conditions of big data and may have a negative impact on the model; secondly, the data in the equipment debugging and proofing stages are also eliminated. This part of the data is generated during the debugging process and cannot reflect the data distribution status during normal production; finally, the obtained data is stored in csv or exec l table files according to different machines and in the order of data collection time for subsequent practical use.
[0079] Data cleaning mainly involves processing the collected csv and exec l files, including deleting empty records, filling None values, deleting data that does not meet the requirements (for example, when the machine runs slowly, the data is usually unavailable and needs to be deleted), data type conversion, retaining necessary columns according to project requirements, deleting other columns, and processing some columns according to the opinions of on-site experts (for example, some columns are cumulative values and need to be differentially operated to calculate the change value at the time of collection), etc. After the above operations, the remaining data is saved again as a new csv file as the final training data.
[0080] Data partitioning is to divide the processed training data into three data sets: training set, test set and validation set. The usual principle of partitioning is 60% for training set, 20% for validation set and 20% for test set. Specific projects can be adjusted dynamically according to specific circumstances. If the amount of data is too small, it can also be divided into training set and test set only. The general principle is that most of the data is used for training and a small part of the data is used for testing.
[0081] 2. Model building and training module:
[0082] The work of this module mainly includes two steps: model construction and training. The construction of the model mainly focuses on the overall reversibility of the model. Reversibility means that the model inputs A and outputs B, and it can also input B and output A in reverse. A and B satisfy the bijective relationship. The network model is composed of reversible modules stacked together, and the reversible module consists of a linear layer, an activation layer, a confusion layer, and a split layer.
[0083] The linear layer mainly performs linear mapping operations, which can be expressed as follows:
[0084] [output] m*k =[input] m*n *[w] n*k (1)
[0085] That is, input an m*n dimensional matrix, and after being mapped by parameter w, output an m*k dimensional matrix, which is equivalent to mapping each row of the input matrix from n dimension to k dimension, and only addition and multiplication operations are involved in the mapping process. In the network, the parameter that the linear layer needs to learn is the w matrix in the above formula.
[0086] The main function of the activation layer is to add nonlinearity to the network. If the entire network is simply stacked with linear layers, the nonlinear problem cannot be solved. The activation layer can be expressed as an activation function. Different activation functions can be selected according to needs. In the present invention, the activation function selected is the Sigmoid function, and its formula is expressed as follows:
[0087]
[0088] Its function is to map the input variable to between 0 and 1 through negative exponentiation and reciprocal operation. In the network, the activation layer simply transforms the input variable according to the above formula, so there are no parameters that need to be trained.
[0089] The split layer and confusion layer are mainly used to split and combine variables. For example, they split a set of m*n variables into k*k (m / k)*(m / k)-dimensional variables, or combine k*k (m / k)*(m / k)-dimensional variables into a set of m*n variables. Therefore, there are no trainable parameters.
[0090] The design ideas of the model building and training modules are as follows.
[0091] First, according to the multidimensional random variable substitution theorem, let the random variable x obey p distribution and the random variable z obey q distribution, x = f(z), z = f -1 (x), then we have:
[0092]
[0093] Introduce the above formula into the network model and let the input of the i-th reversible module be z i-1 , obey p i-1 Distribution; output is z i , obey p i Distribution; the operation performed by the i-th reversible module is represented by the function f i According to the above formula, we have:
[0094]
[0095] According to the inverse function theorem and the properties of the inverse function Jacobian matrix, we can get:
[0096]
[0097] Take the logarithm of both sides of the equality sign:
[0098]
[0099] Then, let the entire network be composed of K reversible modules stacked together, then we can get:
[0100]
[0101] where z K , z0 can be input and output to each other. In the forward process, input z0 and output z K Similarly, in the reverse process, input z K Output z0. As long as the inverse function of the model and the Jacobian matrix determinant can be obtained, the above reversible operation can be strictly guaranteed. Where z0 represents the collected raw data, which obeys a complex and unknown distribution. Let z K is a random variable that obeys a 0-1 normal distribution, thus achieving the purpose of converting the original data distribution into a 0-1 normal distribution.
[0102] In order to facilitate the inverse function and Jacobian matrix determinant of the network, the present invention adopts the vector splitting method to construct the input and output of the model, which mathematically ensures that the inverse function and the corresponding Jacobian matrix determinant can be obtained at each step. The specific operation can be expressed by the following formula:
[0103]
[0104] Its inverse function formula is as follows:
[0105]
[0106] The corresponding determinant is:
[0107] det=sum(log(|w a |)) (10)
[0108] Where split and cat represent vector splitting and merging, respectively. For example, a 20-dimensional vector can be split into two 10-dimensional vectors by using the split operation, and then the two split vectors can be merged into a 20-dimensional vector by using the cat operation. NN represents a linear module composed of a linear layer and an activation layer, which is mainly used to deepen the network and improve the network's expressiveness. exp represents an exponential function with base e. sum represents vector summation. s represents a trainable scaling parameter. The s parameter of the last reversible module can be used as the weight of each dimension of the input vector for subsequent ranking of influencing factors. x represents input and y represents output. Each reversible module contains all the operations in (8), (9), and (10). Stacking multiple reversible modules is equivalent to (7), thus constructing the final training model.
[0109] The training module mainly includes the design of training hyperparameters and model optimization functions. The hyperparameters are similar to general deep learning training parameters, and the ADAM optimization method is adopted. The specific configuration can be found in the content of the embodiment. Regarding the model optimization function and evaluation index, it is mainly designed according to formula (7). The purpose of this model is to convert the input variables into a normal distribution that satisfies the mutual independence of each component. According to formula (7), assuming that the original data z obeys the p distribution, the negative log-likelihood function is used as the optimization function:
[0110]
[0111] The transformed output variable z0 should obey the 0-1 normal distribution, which is the p0 distribution in equation (5). Then equation (11) can be further transformed into:
[0112]
[0113] in During the forward calculation, it can be obtained according to formula (10), so the final loss value can be easily obtained through formula (12). The smaller the loss value, the higher the degree of model convergence. Usually, after a certain period of training, the loss value will remain basically stable, which means that the model has converged and the training can be terminated.
[0114] 3. Model deployment and post-processing:
[0115] The model deployment and post-processing module includes three steps: input data preprocessing, forward reasoning, and abnormal component analysis.
[0116] Step 1: The input data needs to be preprocessed, because when deployed and used, the data comes from real-time production line data collection. Real-time data may produce incomplete sampling, null values, out-of-bounds values, duplicate values, etc., so the data needs to be preprocessed to eliminate the above abnormal data; in addition, the purpose of the present invention is to analyze the data under abnormal production quality conditions and find the influencing factors that cause the abnormalities. Therefore, it is also necessary to use quality-related indicators as a reference to find the time period when production quality changes from normal to abnormal. Because in the actual production process, indicators related to production quality are monitored in real time, and their normal range is subject to process requirements, so it is easy to use these indicators to determine whether the current production is abnormal. If it exceeds the normal range, it is considered abnormal. After the abnormality occurs, the data of T moments before this moment is retrieved and transmitted to the analysis system, and only the data of this time period is analyzed. Let the data of this time period be [X] T*d , T*d means that the data is a two-dimensional matrix with T rows and d columns; T represents the time. If the data acquisition system collects data in seconds, then it is T seconds of data. If it collects data in minutes, then it represents T minutes of data. d is the parameter dimension, indicating that the data of d sensors are closely related to the production quality and all need to be involved in the analysis.
[0117] Step 2: Send the data of the above time period into the model for forward reasoning, and convert the batch data into a 0-1 normal distribution space with each component independent, which can be expressed as:
[0118] [Y] T*d =F([X] T*d )
[0119] Where F is the network model, [Y] T*d represents the output in the normal distribution space, with a total of d dimensions. Like the dimensions of the original space, each dimension follows a 0-1 normal distribution, and the dimensions are independent of each other. However, the physical meanings of the d dimensions in the normal distribution space and the original space are not strictly corresponding. For example, in the original space, the first dimension is defined as temperature, the second dimension is humidity, and the third dimension is air pressure, but in the normal distribution space, the first, second, and third dimensions do not represent temperature, humidity, and air pressure. Next, find [Y] T*d Here, we can calculate the variance of each dimensional feature in the row direction, that is, the time dimension, and set the variance threshold according to the needs. If the variance of a feature in T moments exceeds the threshold, it indicates that the feature of this dimension has a large change, and it is considered to be a component that has a greater impact on the current production quality, which is called an abnormal component. Here, the set of abnormal components to be analyzed is A = {a1, a2, a3, ...}, card (A) = l, where card represents the number of elements in the set A, that is, there are l components to be analyzed.
[0120] Step 3: Analyze these abnormal components. The whole process includes 4 steps:
[0121] 1) Construct a T*d dimension all-zero background matrix: [B] T*d
[0122] 2) From [Y] T*d Extract the first i dimensional vector, we get and copy it to [B] T*d Middle a i The maintenance department obtains:
[0123] 3) Send it into the model for reverse reasoning to get the output in the original space: That means when the component a i In the normal distribution space, When changes occur, the corresponding parameter changes in the original space.
[0124] 4) Analyze all the components in A = {a1, a2, a3, ...} according to steps 1) 2) 3) to obtain Adding them together gives [S] T*d , that is, the change of production quality parameters from normal to abnormal time period in the original space; further [S] T*d Accumulate according to the time dimension [s] 1*d , and sort them. The larger the change, the greater the weight. Taking the first k dimensions of actual concern, we can get the correlation factors that caused the abnormal production quality.
[0125] Example:
[0126] The embodiment is a specific application case of the present invention in the production process of cigarettes, mainly for correlation analysis of abnormal weight of cut tobacco. The specific steps are generally consistent with the description in the technical solution.
[0127] First, data collection is performed. The data collection system on site collects data in seconds, so there are 60 data items per minute. This means that data for nearly a month has been collected. After preprocessing, there are about 1 million data items, of which about 900,000 items are of normal production quality and 100,000 items are of abnormal quality. All of this data is used as a training set for model training. In addition, based on the on-site production situation, data from about 50 quality abnormalities a few minutes before and after are collected in real time as a test set. Because each abnormal event needs to be analyzed manually based on experience and an approximate range of associated factors is given as a test label, the test set needs to be collected in real time and the associated candidate factors for each abnormal event are identified.
[0128] Then build a model for training. Each data in this project contains 48 parameters. The number of layers of reversible modules can be appropriately increased or decreased according to the dimension of the input data. The network model of this project is composed of 6 reversible modules. The ADAM optimization method is used during training, the learning rate is 0.001, the weight decay is 0.0005, and the learning rate decay strategy adopts the cosine annealing strategy. About 100 epochs were trained, and a test was performed every 10 epochs, that is, according to the "deployment and post-processing of the model" in the technical solution, 50 test sets with abnormal quality were analyzed. Starting from about the 20th epoch, the results of the analysis are mostly consistent with the manually selected candidate factors, indicating that the network has basically converged. The training steps are completed on the training workstation, and the configuration of the training workstation is as follows: CPU: Intel E5-2678, memory: 32G, graphics card: Geforce 3090, hard disk: 1T.
[0129] Finally, the trained model is copied to the site for deployment, and the site program calls it in time according to the production quality situation and gives the analysis results. The computing power of the machine deployed on site is weaker than that of the training workstation. The CPU: i7, memory 32G, no graphics card, so the algorithm runs entirely on the CPU, and the analysis takes about 2 seconds. This project has been running stably for three months. The analysis results are in line with manual expectations, and the correlation factors given in some abnormal situations exceed manual experience. Afterwards, it was manually confirmed that those parameters were indeed abnormal at the time. These situations were not paid attention to by humans in the past production process, or appeared in production for the first time. This further reflects that the stability and accuracy of this method have met the requirements of practical application and achieved the purpose of mining useful information from big data.
[0130] The quality correlation analysis method for industrial production data of the present invention converts the original parameter vector from the original space to a 0-1 normal distribution space in which each component is independent, and analyzes the components with more dramatic changes in the normal distribution space. Since each component in the normal distribution space is relatively independent, each component can be separated and analyzed separately. Compared with the method of directly analyzing in the original parameter space, the method adopted by the present invention eliminates the assumption of absolute independence of each parameter. In the original parameter space, each parameter can be relatively independent or not; it can be related to each other or some parameters can be related. Moreover, the present invention does not make any assumptions on the distribution of the original parameters. The original parameters can obey any simple or complex distribution, which solves the problem that the distribution of the parameter assumptions in the prior art statistical methods is inconsistent with the actual distribution, and achieves better results than the statistical methods.
[0131] In addition, the method of the present invention is based on big data modeling, which eliminates the cumbersome modeling and verification process of mechanism-based methods. It is concise and efficient during on-site implementation, and data collection and modeling can be completed without stopping. Moreover, the core module is mainly implemented by a neural network, which has good adaptability to boundary data. At the same time, through the participation of big data in training, the generalization of the model is greatly improved. It is not sensitive to boundary data and abnormal data, and avoids the sudden collapse of the model in the actual production process. Compared with the prior art, the applicable scenarios of this method are wider, the generalization is stronger, and the stability and adaptability are greatly improved compared with the prior art.
Claims
1. A quality association analysis method for industrial production data, characterized in that: The following steps are involved: 101) Data collection: Collect raw data from industrial production systems; 102) Data preprocessing: Clean and format the collected data to ensure data quality; 103) Data modeling: Use a reversible neural network to build a distribution conversion model to model production quality-related data and convert the actual, unknown data distribution into a standard normal distribution with independent components; 104) Model training: Use optimization algorithms to train the constructed neural network model to learn the distribution characteristics and correlation of data; 105) Data partitioning: Divide the preprocessed data into training set, test set and validation set to evaluate and verify the model.
2. The quality correlation analysis method according to claim 1, characterized in that: 201) Step 102 includes a step of deleting outliers, a step of filling missing data, and a step of standardizing data format; 202) The reversible neural network used in step 103 includes a plurality of reversible modules, wherein the reversible modules include a linear layer, an activation layer, a splitting layer, and a confusion layer; 203) The optimization algorithm used in step 104 is an ADAM optimizer, and includes a learning rate setting step, a weight decay step, and a training parameter step; 204) In step 105, the preprocessed data is divided into a training set of 50% to 70%, a validation set of 15% to 25%, and a test set of 15% to 25%.
3. The quality correlation analysis method according to claim 2, characterized in that: The linear layer mainly performs linear mapping operations, inputs an m*n dimensional matrix, and outputs an m*k dimensional matrix after parameter w mapping, which is equivalent to mapping each row of the input matrix from n dimension to k dimension, and only addition and multiplication operations are performed in the mapping process; the role of the activation layer is mainly to add nonlinearity to the network. The activation layer can be expressed as an activation function, which maps the input variable to between 0 and 1 through negative exponential and reciprocal operations; the splitting layer and the confusion layer mainly perform variable splitting and combination, including splitting a set of m*n variables into k*k (m / k)*(m / k) dimensional variables, or combining k*k (m / k)*(m / k) dimensional variables into a set of m*n variables.
4. The quality correlation analysis method according to claim 1, characterized in that: Step 103 includes the following steps: 401) According to the multidimensional random variable substitution theorem, let the random variable x obey p distribution and the random variable z obey q distribution, x = f(z), z = f -1 (x), we get Introduce the above formula into the network model and let the input of the i-th reversible module be z i-1 , obey p i-1 Distribution; output is z i , obey p i Distribution; the operation performed by the i-th reversible module is represented by the function f i express; 402) According to the above formula, 403) According to the inverse function theorem and the properties of the inverse function Jacobian matrix, we can obtain: 404) Take the logarithm of both sides of the equality sign in the above equation: 405) Let the entire network be composed of K reversible modules stacked together, and we get: where z K , z0 can be input and output to each other. In the forward process, input z0 and output z K Similarly, in the reverse process, input z K Output z0, where z0 represents the collected raw data, which obeys a complex, unknown distribution. Let z K For a random variable that obeys a 0-1 normal distribution, the original data distribution is transformed into a 0-1 normal distribution.
5. The quality correlation analysis method according to claim 4, characterized in that: Step 103 includes the following steps: 501) The steps of vector splitting and merging are as follows: x a ,c b =split(x) w=NN(x a ) In a ,In b =split(in) y b =exp(w a )*x b +w b y=cat(x a ,y b ) y = s * y; 502) Perform the inverse function operation steps according to the following inverse function formula: and a ,and b =split(y) in=NN(y a ) In a ,In b =split(in) x b =(y a -w b )*exp(-w a ) x=cat(y a ,x b ); 503) The calculation steps of Jacobi matrix determinant are as follows: it=sum(log(|w a |)); Where split and cat represent vector splitting and merging, respectively; NN represents a linear module consisting of a linear layer and an activation layer; exp represents an exponential function with e as the base; sum represents vector summation; s represents a trainable scaling parameter; the s parameter of the last reversible module can be used as the weight of each dimension of the input vector for subsequent ranking of influencing factors; x represents input, and y represents output; Each reversible module includes the operations of steps 501, 502 and 503. Stacking multiple reversible modules is equivalent to the result of step 405, thus constructing the final training model.
6. The quality correlation analysis method according to claim 5, characterized in that: Step 104 includes the following steps: 601) According to step 405, the input variable is transformed into a normal distribution that satisfies the independence of each component. Assuming that the original data z obeys p distribution, the negative log-likelihood function is used as the optimization function: 602) The transformed output variable z0 should obey the 0-1 normal distribution, that is, the p0 distribution in the formula of step 403; the determinant in step 503 can be further transformed into the following formula: in, During the forward calculation, the final loss value can be obtained according to step 503, and the final loss value can be obtained through step 602; the smaller the loss value, the higher the degree of model convergence. When the loss value remains basically stable after a certain period of training, it means that the model has converged and the training can be ended.
7. The quality correlation analysis method according to claim 1, characterized in that: It includes model deployment and post-processing steps. The role of the model deployment and post-processing steps is to implement the trained model in the actual production environment, perform pre-processing, forward reasoning and abnormal component analysis on real-time data to identify and explain the causes of production quality anomalies.
8. The quality correlation analysis method according to claim 7, characterized in that: The model deployment and post-processing steps include input data preprocessing, forward reasoning, and abnormal component analysis: 801) Input data preprocessing step: preprocess the input data to eliminate abnormal data; when abnormal data appears, retrieve the data of T moments before this moment and input it into the analysis system to analyze the data of this time period; let the data of this time period be [X] T*d , T*d means that the data is a two-dimensional matrix with T rows and d columns; T represents the time, d represents the parameter dimension, and means that the data of d sensors are related to production quality and need to be analyzed; 802) Forward reasoning step: The data of the above time period is sent to the model for forward reasoning, and the batch of data is converted to a 0-1 normal distribution space where each component is independent, which can be expressed as: [Y] T*d =F([X] T*d ) Where F is the network model, [Y] T*d represents the output in the normal distribution space, with a total of d dimensions; find [Y] T*d The dimension with larger and more drastic changes in the time dimension; that is, the variance of each dimensional feature is calculated in the time dimension, and the variance threshold is set according to the needs. If the variance of a feature in T moments exceeds the threshold, it is considered to be a component with a greater impact on the current production quality, which is called an abnormal component; let the set of abnormal components to be analyzed be A = {a1, a2, a3, ...}, card (A) = l, where card represents the number of elements in the set A, that is, there are l components to be analyzed.
9. The quality correlation analysis method according to claim 8, characterized in that: The abnormal component analysis includes the following steps: 901) Construct a T*d dimension all-zero background matrix: [B] T*d ; 902) From [Y] T*d Extract the first i dimensional vector, we get and copy it to [B] T*d Middle a i The maintenance department obtains: 903) Send it into the model for reverse reasoning to get the output in the original space: That means when the component a i In the normal distribution space, When changes occur, the corresponding parameter changes in the original space; 904) Analyze all the components in A = {a1, a2, a3, ...} according to steps 901 to 903, and obtain Adding them together gives [S] T*d , that is, the change of production quality parameters from normal to abnormal time period in the original space; 905) [S] T*d Accumulate according to the time dimension [s] 1*d , and sort them. The larger the change, the greater the weight. Taking the first k dimensions of actual concern, we can get the correlation factors that caused the abnormal production quality.
Citation Information
Patent Citations
Cross-unit product quality association analysis method for cold rolling production line
CN104415976A
Method for associate analysis of product quality data of manufacturing industry
CN109118079A
Controllable automobile image synthesis method based on causal flow model
CN112102156A
Motor bearing fault diagnosis method and system
CN113049249A
Monitoring method and device for high-speed rail maintenance
CN115439804A
