A method for industrial process data augmentation and generation

By adopting the knowledge cross-fusion technology of contextual attention mechanism and conditional diffusion model in industrial processes, the problem of uneven data distribution and uncertainty is solved, virtual samples with high availability and high confidence are generated, and the diversity of data is improved. and model performance.

CN118332342BActive Publication Date: 2024-10-01HANGZHOU HAOQING TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749143.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-01
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Historical equipment health data and fault data obtained in industrial processes have problems such as high economic costs, difficulty in obtaining, data uncertainty and incompleteness, and uneven data distribution, leading to the problem of 'big data, small samples'. Existing data The enhanced algorithm fails to effectively integrate expert knowledge, and the reliability and completeness of data generation are insufficient.

Method used

Using knowledge cross-fusion technology based on contextual attention mechanism, combined with word embedding, gated recurrent unit encoding and decoding, and conditional diffusion model, it improves the diversity and effectiveness of data through knowledge feature extraction and data twins, and generates high availability and high confidence virtual sample.

Benefits of technology

It achieves the effective augmentation and generation of missing data in industrial processes, improves the diversity and reliability of data, solves the problem of uneven data distribution, and improves the overall performance and prediction capabilities of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332342B_ABST
    Figure CN118332342B_ABST
Patent Text Reader

Abstract

The present invention discloses an industrial process data augmentation and generation method, which collects original data in the industrial process, wherein the original data includes process data, historical data, empirical knowledge and mechanism knowledge; after extracting the features of the historical data, empirical knowledge and mechanism knowledge, cross-fusion of knowledge is performed based on a contextual attention mechanism to obtain contextual attention data; time series processing is performed on the process data, and the obtained time series data is encoded and then decoded together with the contextual attention data to obtain augmented data; for the missing industrial process data, the data of the upstream and downstream processes are fused and conditionally diffused to obtain the generated current process data, the generated current process data and the mechanism conditions of the upstream and downstream processes are conditionally diffused to obtain the generated upstream and downstream process data, and the validity of the generated current process data is judged based on the similarity between the original and generated upstream and downstream process data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical fields of deep learning, data augmentation, diffusion models, etc., and specifically relates to an industrial process data augmentation and generation method. Background Art

[0002] In actual industrial applications, obtaining typical data such as historical health data and fault data of certain equipment is usually economically expensive and difficult to obtain, or sometimes even impossible. Even if the system status data can be obtained, it is often highly uncertain and incomplete, and there is an obvious imbalance in the distribution of data in different categories or between categories. For example, in the data collected in the industrial field, there are too few fault samples and too many repeated normal data samples. Therefore, it is necessary to perform data augmentation and data generation on small sample data in different industrial scenarios, increase the number of data samples in low data domains with unbalanced data distribution, and solve the "big data, small sample" problem of data in industrial processes.

[0003] The current basic data augmentation algorithms all use data operations to generate new synthetic data samples from existing samples and transform the original samples, and then consider the event characteristics of the data to finally obtain trusted data. This type of method currently only starts from the perspective of statistical data and does not integrate existing expert knowledge. The reliability and completeness of data generation need to be further improved, which poses a challenge to data augmentation and generation technologies that cross-integrate mechanisms and data knowledge. Summary of the invention

[0004] In order to solve the shortcomings of the prior art, improve the diversity and effectiveness of data, and obtain the missing data in the industrial process, the present invention adopts the following technical solutions:

[0005] A method for augmenting and generating industrial process data comprises the following steps:

[0006] Step 1: Collect the original data in the industrial process and obtain the relevant knowledge base. The original data includes process data, historical data, experience knowledge and mechanism knowledge. The knowledge base includes experience knowledge and mechanism knowledge.

[0007] Step 2: After extracting the features of historical data, empirical knowledge, and mechanism knowledge, cross-integrate the knowledge based on the contextual attention mechanism to obtain contextual attention data; perform data preprocessing on the process data, encode the obtained time series data, and decode it together with the contextual attention data to obtain augmented data;

[0008] Step 3: For missing industrial process data , the data of its upstream and downstream processes After fusion, conditional diffusion is performed to obtain the generated current process data In order to ensure the high availability and high confidence of the generated data, it is necessary to evaluate the generated data and convert the generated current process data into Perform conditional diffusion with the mechanism conditions of the upstream and downstream processes A and C to obtain the generated upstream and downstream process data , , based on the similarity between the original and generated upstream and downstream process data, determine the generated current process data effectiveness.

[0009] Furthermore, in the step 2, after the empirical knowledge is converted into word vectors through word embedding, knowledge features are extracted, and the mechanism knowledge is decoded into text and / or symbols, so as to extract and filter the key information in the mechanism knowledge and remove redundant or irrelevant information, so as to make subsequent embedding and feature extraction more effective, which is used to guide the word embedding of empirical knowledge and convert different types of mechanism knowledge into a unified high-dimensional feature vector through digital twins. Data twins can improve the accuracy and effectiveness of feature extraction, and enhance the overall performance and predictive ability of the model. After alignment and standardization, the high-dimensional feature vector is subjected to feature extraction so that the vector after feature extraction contains mechanism knowledge information.

[0010] Furthermore, in step 2, the encoding of the time series data adopts a gated recurrent unit encoding module, which reads each input element according to the input sequence and uses it as a hidden layer variable , the word vector extracted from knowledge features and the hidden state at time t-1 Input the reset gate and update gate, and use the sigmoid activation function to control their activation values ​​in the interval [0,1]. The calculation formulas for the reset gate and update gate are:

[0011]

[0012]

[0013] in, Represents the reset gate, represents the update gate, h represents the number of hidden units, is the sigmoid activation function, , , , represents the weight parameter, , represents the bias parameter, the gated recurrent unit calculates the candidate hidden state to assist the calculation of the hidden state, and the candidate hidden state at time t The calculation formula is as follows:

[0014]

[0015] Among them, tanh represents the hyperbolic tangent activation function, represents the input at time t, represents the element-wise multiplication of vectors, and represents the weight parameter, Represents the bias parameter. If the reset gate value is 0, the past hidden state information will be completely discarded, indicating that the current memory content only has the new input word vector; if the reset gate value is 1, the past hidden state is completely retained, the result of element-wise multiplication is concatenated with the input of the current time step, and then the candidate hidden state is calculated through the tanh function, and the value range of all its elements is [-1,1];

[0016] Finally, use the update gate at time t to update the hidden state at time t-1 and the candidate hidden state at time t By combining them, we can get the hidden states at different times. The vector encoding process is:

[0017]

[0018] The overall semantic features of the output data after encoding .

[0019] Furthermore, the decoding in step 2 uses a gated recurrent unit network combined with an attention mechanism to jointly decode and generate augmented data at each decoding time step. , the GRU encoder reads the previous output vector , the previous eigenvector and the decoder hidden variables at the previous moment Calculate the new decoder hidden state together ; The calculation formula is as follows:

[0020]

[0021]

[0022] in, represents the decoder's initial input hidden state, represents the matrix weight, represents the bias vector;

[0023] In addition, for each word vector, the attention mechanism is used to obtain a vector of size T ,in The value of belongs to [0,1], and the vector is obtained by a scaling and translation layer:

[0024]

[0025] in, , q is the training parameter, and then the vector obtained by scaling and translating the layer and the previous output vector of the decoder Take the average and get the new output vector , that is, the augmented data.

[0026] Furthermore, the data generation in step 3 includes the following steps:

[0027] Step 3.1.1: Add missing data Data of upstream and downstream processes Input to the conditional diffusion model, use forward diffusion to gradually add step-wise Gaussian noise to disturb the original data. After multiple steps of diffusion, the real process data is converted into pure Gaussian noise samples. The real distribution is finally destroyed into a simple Gaussian distribution. Then, in order to generate sample data , perform progressive reverse generation, and inversely transform the Gaussian noise distribution into the current process data through a series of iterative denoising The true distribution of

[0028] Step 3.1.2: In order to improve the credibility of the generated data, a generated data evaluation module is designed. Only when the evaluation meets the requirements, the generated sample data is output. , by using the current process data generated in step 3.1 The mechanism conditions of the upstream and downstream processes A and C are input into the conditional diffusion model, and the conditional diffusion model is used to generate data for the upstream and downstream processes. , , and then use the real data of upstream and downstream processes , Instead of generating data Perform KL divergence calculation to obtain the distance between the two groups of sample distributions. The KL divergence calculation formula is as follows:

[0029]

[0030] in, Represent the distribution probabilities of real data and generated data respectively, and E represents the expected function;

[0031] Step 3.1.3: Set a KL divergence threshold to determine the generated data , If the distance is greater than the threshold, return to step 3.1.1 to generate new current process data. , and re-generate upstream and downstream process data in reverse , , and recalculate the threshold; otherwise, it means that the generated , and the original data , Similar enough to generate data It is also similar enough, and the current process data generated is output at this time .

[0032] Furthermore, the conditional diffusion in step three includes the following steps:

[0033] Step 3.2.1: In the forward diffusion process, the upstream process data with a data length of P is and downstream process data of length Q Add them together to get data X1 of length P+Q as the input of the conditional diffusion model. In the forward diffusion process of T steps, the index of each step is t. Starting from data X1, Gaussian noise is randomly generated at each step, and then the generated Gaussian noise is gradually added to the real data. When the number of steps T is large enough, data close to Gaussian noise is obtained. ;

[0034] Step 3.2.2: In the backward generation process, from the noise First, through the denoising network, reversely predict the noise added in each previous step, and then gradually filter out the noise, according to the current process data to be generated The data length R is used to adjust the generation steps and structure, and the generated data is converted to the target length through interpolation method or the dimension of the data is adjusted through dimensionality reduction or dimensionality increase technology (such as convolution or deconvolution operation) to obtain the final generated data.

[0035] Furthermore, the denoising comprises the following steps:

[0036] Step 3.3.1: The reverse generation process extracts the characteristics of noise through the long short-term memory network, whose long short-term memory network unit is composed of forget gate , Input Gate and output gate composition;

[0037] The long short-term memory network is constructed by passing the n-dimensional output forget gate Each value of is maintained between (0,1) to maintain the ability to remember important information for a long time, the forget gate The closer the value is to 0, the more information is forgotten. The closer the value is to 1, the more information is retained;

[0038] Input Gate Integrate the previous moment and the current moment information as new input, and selectively retain the current state. The long short-term memory network uses the input gate Short-term memory of important information and continuous updating of current status;

[0039] Output Gate According to the input at the current time t The state of the hidden layer at the previous moment t-1 And the latest cell status Determine the output at time t , and generate the output at the current moment;

[0040] Step 3.3.2: By adding a broadcast layer architecture to the denoising process, the diffusion model relies on the reverse generation process to generate sample data for new scenarios. Position embedding is used in the broadcast layer to introduce sequence information into the model. Standard neural networks are insensitive to the position of sequence data, while the order of sequence data is very important for the model's understanding. Through position embedding, position information is added to each input data, so that the model can recognize and utilize the sequential characteristics of the sequence. The mechanism knowledge conditions corresponding to different processes are then embedded as additional inputs. The mechanism conditions of process B are used to introduce specific process information into the model. In practical applications, different processes may have different effects on the way data is processed. By introducing the mechanism conditions of process B, the model can use this additional information to better understand and process data. This mechanism helps the model improve the denoising effect under specific process conditions and ultimately achieve the generation of conditional scenarios.

[0041] Step 3.3.3: By introducing a multi-head attention mechanism to dynamically obtain information about the part that needs attention, the convolutional network can more effectively obtain useful information from the input data and improve the output quality of the model's dynamic structure. The attention mechanism highlights the impact of a key input on the output by calculating the probability distribution of attention.

[0042] Step 3.3.4: Capture the local pattern of noise features through convolution, thereby removing the noise and finally generating missing samples for different process data.

[0043] Furthermore, the forget gate operation logic in step 3.3.1 is:

[0044]

[0045] Where x is the input, is the activation function, is the hidden layer state at time t-1, and is the weight coefficient of the forget gate; is the bias term of the forget gate;

[0046] The input gate operation logic is:

[0047]

[0048]

[0049] Among them, tanh is the hyperbolic tangent activation function, For alternative cell states, and for The weight coefficient of for The bias term, and is the weight coefficient of the input gate, is the bias vector of the input gate;

[0050] The output gate operation logic is:

[0051]

[0052]

[0053]

[0054] in, and is the weight coefficient of the output gate, is the bias vector of the output gate, is the cell state at the previous moment, The current latest cell status.

[0055] Furthermore, in step 3.3.3, firstly, multiple linear mappings are performed on q, K, and V in the attention mechanism, and the mapping results are input into the scaled dot product attention. The scaled dot product attention is a vector set and query vector As input, and with 3 parameter matrices , , Will , Projected into different spaces, where n represents the number of elements in the vector set, and d represents the input word embedding dimension. is a hyperparameter, and the scaled dot product attention calculation formula is:

[0056]

[0057]

[0058] The query vector Used to represent the target to be queried, key vector Represents features related to the query, value vector Represents the value associated with each key;

[0059] The result of scaling dot product attention each time is called a head, and the calculation formula for multi-head attention is:

[0060]

[0061]

[0062] Among them, h represents the number of heads in the scaled dot product, Represents the output weight matrix;

[0063] Multi-head self-attention performs different linear transformations on the same input by stacking multiple attention layers in parallel, thereby focusing on information from different representation subspaces. Different heads extract different features to further extract noise features.

[0064] Furthermore, the convolution in step 3.3.4 is a one-dimensional convolution, and its calculation formula is as follows:

[0065]

[0066] in, Represents the weight of each position of the convolution kernel, Corresponding to the value of each position in the convolution area, y represents the output value of each convolution area after convolution, and b represents the offset.

[0067] The advantages and beneficial effects of the present invention are:

[0068] The present invention discloses a method for augmenting and generating industrial process data. The method takes into account the problem that some production intervals in complex industrial scenarios have less production data, uses data augmentation technology based on knowledge cross-fusion, and performs knowledge cross-fusion through word embedding modules, multi-layer perceptrons, and contextual attention mechanism modules to obtain multi-dimensional knowledge fusion feature vectors and perform data augmentation; then, based on the conditional diffusion model, the high-dimensional and complex distribution characteristics of multimodal data are learned, and a bidirectional long short-term memory network model is used to generate highly available virtual samples in unknown production spaces where production data is missing, thereby realizing data augmentation and generation based on knowledge cross-fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 4 is a flow chart of a method for augmenting and generating industrial process data in an embodiment of the present invention.

[0070] Figure 2 4 is a flow chart of data augmentation in an embodiment of the present invention.

[0071] Figure 3 4 is a flow chart of data generation in an embodiment of the present invention.

[0072] Figure 4 It is a flow chart of generating data evaluation in an embodiment of the present invention.

[0073] Figure 5 Schematic diagram of the structure of the denoising network in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0075] like Figure 1 As shown, a method for augmenting and generating industrial process data includes the following steps:

[0076] Step 1: Collect the original data in the industrial production process and input the data into the data augmentation module and data generation module to realize data augmentation and production;

[0077] Step 2: Preprocess the process data of the industrial process to be augmented to obtain time series data, and encode it through the gated recurrent unit encoding module. Perform data preprocessing operations on the historical data of the industrial process and further extract data features. Input the empirical knowledge into the word embedding module and extract knowledge features. The extracted features further guide the feature extraction of the historical data of the industrial process. Decode the mechanism knowledge first, then perform word embedding operations and convert it into word vectors to guide the word embedding and data twinning of the empirical knowledge, and then extract features from the vector data after the data twinning. Finally, input the data of the encoding module into the decoding module, and input the extracted features of the historical data of the industrial process, empirical knowledge and mechanism knowledge into the contextual attention mechanism, and then input them into the gated recurrent unit of the decoding module. After the decoding module, the augmented data is obtained.

[0078] like Figure 2 As shown, data augmentation includes the following steps:

[0079] Step 2.1: Perform data preprocessing operations on the industrial process data that needs to be augmented to achieve data cleaning and denoising. Data cleaning requires the establishment of data cleaning indicators to remove duplicate data and process missing data. Data denoising uses outlier detection methods to formulate rules for identifying and processing noise for abnormal data, and uses Gaussian filtering to filter out abnormal noise in the data, and finally obtains preprocessed time series data;

[0080] Step 2.2: The complete historical data of industrial processes are also preprocessed. In order to improve the efficiency of data utilization, the cleaned and denoised data are subjected to feature extraction and input into the contextual attention mechanism module.

[0081] In order to correctly augment the desired data, in addition to the historical data of the industrial process, the auxiliary augmentation of empirical knowledge and mechanism knowledge is also required. The empirical knowledge including procedures, process parameters and equipment parameters is input into the word embedding module to obtain the word vector, and then the word vector is further input into the knowledge feature extraction module to further extract the important features of the knowledge, and the extracted features are used to guide the feature extraction of the industrial historical process data. The mechanism knowledge including the physical property library, chemical equations and the law of conservation of heat is input into the decoding module, which decodes these complex forms of mechanism knowledge into more general text or symbolic representations, for example, converting a chemical reaction equation into a text description of reactants and products, or converting a physical law formula into a description of the corresponding physical quantities and relationships. It is also possible to extract and filter key information in the mechanism knowledge, remove redundant or irrelevant information, and make subsequent embedding and feature extraction more effective.

[0082] After the mechanism knowledge is decoded, it needs to be converted into word vectors through the word embedding module. The word vectors are used to guide the word embedding of empirical knowledge and input into the data twin module. The twin module can convert different types of mechanism knowledge into unified high-dimensional feature vectors through a shared network structure. These feature vectors contain deep mechanism knowledge information. In addition, it can also ensure that different types of mechanism knowledge features are in a consistent representation space before entering the feature extraction module through alignment and standardization. Data twins can improve the accuracy and effectiveness of feature extraction, and enhance the overall performance and prediction capabilities of the model. Then the twinned data is input into the feature extraction module for feature extraction, so that the vector after feature extraction contains mechanism knowledge information.

[0083] Finally, the features extracted from the industrial process historical data, experience knowledge and mechanism knowledge are input into the contextual attention mechanism module to achieve cross-integration of knowledge.

[0084] Step 2.3: Input the preprocessed time series data in step 2.1 into the gated recurrent unit encoding module, and input it into the decoding module together with the contextual attention data after knowledge cross-fusion in step 2.2 to achieve data augmentation. The gated recurrent unit encoder reads each input element according to the input sequence and uses it as a hidden layer variable . Extract the word vector of knowledge features and the hidden state at time t-1 Input the reset gate and update gate, and use the sigmoid activation function to control their activation values ​​in the interval [0,1]. The calculation formulas for the reset gate and update gate are:

[0085]

[0086]

[0087] in, Represents the reset gate, represents the update gate, h represents the number of hidden units, is the sigmoid activation function, , , , is the weight parameter, , is the bias parameter. The gated recurrent unit calculates the candidate hidden state to assist the calculation of the hidden state. The candidate hidden state at time t is The calculation formula is as follows:

[0088]

[0089] Among them, tanh is the hyperbolic tangent activation function, is the input at time t, is the element-wise multiplication of vectors, and is the weight parameter, is the bias parameter. If the reset gate value is 0, the past hidden state information will be completely discarded, indicating that the current memory content only has the new input word vector; if the reset gate value is 1, the past hidden state is completely retained. The result of element-wise multiplication is concatenated with the input of the current time step, and then the candidate hidden state is calculated through the tanh function, and the value range of all its elements is [-1,1].

[0090] Finally, use the update gate at time t to update the hidden state at time t-1 and the candidate hidden state at time t By combining the hidden states at different times, the vector encoding process can be simplified as follows:

[0091]

[0092] The overall semantic features of the output data after encoding .

[0093] The decoding part uses a gated recurrent unit network combined with an attention mechanism to jointly decode and generate augmented data. , GRU reads the previous output vector , the previous eigenvector and the decoder hidden variables at the previous moment Calculate the new decoder hidden state together . The calculation formula is as follows:

[0094]

[0095]

[0096] in, is the decoder initial input hidden state, is the matrix weight, is the bias vector.

[0097] In addition, for each word vector, the attention mechanism is used to obtain a vector of size T ,in The value of belongs to [0,1], and the vector is obtained by a scaling and translation layer:

[0098]

[0099] in, , q is the training parameter, and then the vector obtained by scaling and translating the layer and the previous output vector of the decoder Take the average and get the new output vector , that is, the augmented data.

[0100] Step 3: Missing industrial process data Sample data of upstream and downstream processes , After fusion, it is input into the conditional diffusion model. In the forward diffusion and reverse generation process, the generated process data is obtained by first adding Gaussian noise and then filtering out the noise with a denoising network. In order to ensure high availability and high confidence of the generated data, it is necessary to evaluate the generated data. The mechanism conditions of processes A and C are input into the conditional diffusion model to obtain the generated process data , , and then generate , and original , KL divergence calculations are performed separately to determine the validity of the generated data. The generated process data can only be output when the KL divergence of the generated data is less than the set threshold. ;

[0101] Data generation includes the following steps:

[0102] Step 3.1.1: Figure 3 As shown, the data to be generated Sample data of upstream and downstream processes Input to the conditional diffusion model, use forward diffusion to gradually add step-wise Gaussian noise to disturb the original data. After multiple steps of diffusion, the real process data is converted into pure Gaussian noise samples, and the real distribution is finally destroyed into a simple Gaussian distribution. Then, in order to generate sample data , design a progressive inverse process to inversely transform a simple Gaussian distribution into sample data through a series of iterative denoising processes The true distribution of

[0103] Step 3.1.2: If Figure 4 As shown in Figure 1, in order to improve the credibility of the generated data, a generated data evaluation module is designed. Only when the evaluation meets the requirements, the generated sample data is output. By converting the process sample data generated in step 3.1 The mechanism conditions of process A and process C are input into the conditional diffusion model together, and the conditional diffusion model is used to generate data for upstream and downstream processes. , , and then use the real data of upstream and downstream processes , Instead of generating data The KL divergence calculation is performed to obtain the distance between the two groups of sample distributions. The KL divergence calculation formula is as follows:

[0104]

[0105] in, represent the distribution probabilities of real data and generated data respectively.

[0106] Step 3.1.3: Set a KL divergence threshold to determine the generated data , If the distance is greater than the threshold, repeat step 3.1.1 to generate new sample data. , and then redo the reverse generation process to generate the data , , and recalculate the threshold; otherwise, it means that the generated , and the original data , Similar enough to generate data It is also similar enough, and the output generates sample data .

[0107] Conditional diffusion includes the following steps:

[0108] Step 3.2.1: Set the process data with a data length of P and process data of length Q The lengths are added to obtain data X1 with a length of P+Q as the input of the conditional diffusion model. In the forward diffusion process of T steps, the index of each step is t. Starting from the data X1, Gaussian noise is randomly generated at each step, and then the generated Gaussian noise is gradually added to the real data. When the number of steps T is large enough, data close to Gaussian noise is obtained;

[0109] Step 3.2.2: In the backward generation process, from the noise First, through the denoising network, reversely predict the noise added in each step before, and then gradually filter out the noise. The model will The generated data is converted to the target length through interpolation method or the dimension of the data is adjusted through dimensionality reduction or dimensionality increase technology (such as convolution or deconvolution operation) to obtain the final generated data.

[0110] like Figure 5 As shown in Figure 1, the denoising process includes the following steps:

[0111] Step 3.3.1: Long Short-Term Memory Network: The reverse generation process extracts the characteristics of noise through the long short-term memory network. Its long short-term memory network unit consists of a forget gate , Input Gate and output gate composition.

[0112] The operation logic of the forget gate is:

[0113]

[0114] Where x is the input, is the activation function, is the hidden layer state at time t-1, and is the weight coefficient of the forget gate; is the bias term of the forget gate. The long short-term memory network is transformed into an n-dimensional output Each value of is maintained between (0,1) to maintain the ability to remember important information for a long time. The closer the value is to 0, the more information is forgotten. The closer the value is to 1, the more information is retained.

[0115] The input gate operation logic is:

[0116]

[0117]

[0118] Among them, tanh is the hyperbolic tangent activation function, For alternative cell states, and for The weight coefficient of for The bias term, and is the weight coefficient of the input gate, is the bias vector of the input gate.

[0119] The input gate integrates the information of the previous moment and the current moment as the new input, and selectively retains the current state. The long short-term memory network uses the input gate to memorize important information in the short term and continuously updates the current state.

[0120] The output gate operation logic is:

[0121]

[0122]

[0123]

[0124] in, and is the weight coefficient of the output gate, is the bias vector of the output gate, is the cell state at the previous moment, The current latest cell status.

[0125] The output gate is input according to the current time t The state of the hidden layer at the previous moment t-1 And the latest cell status Determine the output at time t , and generate the output at the current moment;

[0126] Step 3.3.2: Broadcast layer: By adding a broadcast layer architecture to the denoising network, the diffusion model relies on the reverse generation process to generate sample data for new scenarios. Position embedding is used in the broadcast layer to introduce sequence information into the model. Standard neural networks are insensitive to the position of sequence data, while the order of sequence data is very important for the model's understanding. Through position embedding, position information can be added to each input data, allowing the model to recognize and utilize the sequential characteristics of the sequence. The mechanism knowledge conditions corresponding to different processes are then embedded as additional inputs. The mechanism conditions of process B are used to introduce specific process information into the model. In practical applications, different processes may have different effects on the way data is processed. By introducing the mechanism conditions of process B, the model can use this additional information to better understand and process the data. This mechanism helps the model improve the denoising effect under specific process conditions and ultimately achieve the generation of conditional scenarios;

[0127] Step 3.3.3: Multi-head self-attention: By introducing a multi-head attention mechanism to dynamically obtain information about the part that needs attention, the convolutional network can more effectively obtain useful information from the input data and improve the output quality of the model's dynamic structure. The attention mechanism highlights the impact of a key input on the output by calculating the probability distribution of attention. First, multiple linear mappings are performed on q, K, and V in the attention mechanism, and the mapping results are input into the scaled dot product attention. The scaled dot product attention is a vector set. and query vector As input, and with 3 parameter matrices , , Will , Projected into different spaces. Where n represents the number of elements in the vector set, d represents the input word embedding dimension, is a hyperparameter. The calculation formula for scaled dot product attention is:

[0128]

[0129]

[0130] The query vector Used to represent the target to be queried, key vector Represents features related to the query, value vector Represents the value associated with each key.

[0131] The result of scaling dot product attention each time is called a head, and the calculation formula for multi-head attention is:

[0132] ,

[0133] ,

[0134] Where h is the number of heads in the scaled dot product, Represents the output weight matrix.

[0135] Multi-head self-attention performs different linear transformations on the same input by stacking multiple attention layers in parallel, thereby focusing on information from different representation subspaces. Different heads extract different features to further extract noise features.

[0136] Step 3.3.4: 1D convolution: 1D convolution is used to finally extract noise features, thereby removing noise. The calculation formula of 1D convolution is as follows:

[0137]

[0138] in, is the weight of each position of the convolution kernel, Corresponding to the value of each position in the convolution area, y is the output value after convolution of each convolution area, and b is the offset. 1D convolution is used to capture the local pattern of noise features in step 3, and finally realize the generation of missing samples for different process data.

[0139] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for augmenting and generating industrial process data, Features The steps include: Step 1: Collect the original data in the industrial process and obtain the relevant knowledge base. The original data includes process data and historical data, and the knowledge base includes empirical knowledge and mechanism knowledge; Empirical knowledge includes procedures, process parameters and equipment parameters, while mechanistic knowledge includes physical property library, chemical equations and the law of conservation of heat; Step 2: After extracting the features of historical data, empirical knowledge, and mechanism knowledge, cross-integrate the knowledge based on the contextual attention mechanism to obtain contextual attention data; Preprocess the process data, encode the obtained time series data, and decode it together with the context attention data to obtain augmented data; After converting the experiential knowledge into word vectors through word embedding, the knowledge features are extracted and the mechanism knowledge is decoded to guide the word embedding of the experiential knowledge. Different types of mechanism knowledge are converted into unified high-dimensional feature vectors through digital twins. After alignment and standardization, feature extraction is performed. The encoding of time series data uses a gated recurrent unit encoding module, which reads each input element according to the input sequence and uses it as a hidden layer variable H t , extract the word vector x from knowledge features t and the hidden state H at time t-1 t-1 Input the reset gate and update gate, where the calculation formulas of the reset gate and update gate are: R t =σ(x t W xr +H t-1 W hr +b r ) Z t =σ(x t W xz +H t-1 W hz +b z ) Among them, R t Represents the reset gate, Z t represents the update gate, σ is the activation function, W xr , W hr , W xz , W hz represents the weight parameter, b r 、b z represents the bias parameter, the gated recurrent unit calculates the candidate hidden state to assist the calculation of the hidden state, and the candidate hidden state at time t The calculation formula is as follows: Among them, tanh represents the hyperbolic tangent activation function, x t represents the input at time t, Represents the element-wise multiplication between vectors, W xh and W hh represents the weight parameter, b h Represents the bias parameter. If the reset gate value is 0, the past hidden state information will be completely discarded, indicating that the current memory content only has the new input word vector; if the reset gate value is 1, the past hidden state is completely retained, the result of element-wise multiplication is concatenated with the input of the current time step, and the candidate hidden state is calculated through the tanh function; Finally, use the update gate at time t to update the hidden state H at time t-1 t-1 and the candidate hidden state at time t By combining them, we can get the hidden states at different times. The vector encoding process is: The overall semantic feature H after output data encoding t ; The decoding is that at each decoding time step t′, the GRU encoder reads the previous output vector y t′-1 , the previous eigenvector C t′-1 and the decoder hidden variable S at the previous moment t′-1 Calculate the new decoder hidden state S together t′ ; S t′ The calculation formula is as follows: S t′ =GRU(y t′-1 ,C t′-1 ,S t′-1 ) S 0 =tanh(W d ,H t +b d ) Among them, S 0 represents the decoder initial input hidden state, W d represents the matrix weight, b d represents the bias vector; In addition, for each word vector, the attention mechanism is used to obtain a vector of size T χ = (χ 1 , χ 2 … T ), and pass the vector through a scaling and translation layer to get: z=g×χ+q=(g 1 χ 1 +q 1 ,g 2 χ 2 +q 2 ,…,g T χ T +q T ) Among them, g and q are training parameters, and then the vector z obtained by the scaling and translation layer and the previous output vector y of the decoder are t′-1 Take the average and get the new output vector That is, the augmented data; Step 3: For the missing industrial process data, the data of the upstream and downstream processes are fused and conditionally diffused to obtain the generated current process data. The generated current process data is conditionally diffused with the mechanism conditions of the upstream and downstream processes to obtain the generated upstream and downstream process data. Based on the similarity between the original and generated upstream and downstream process data, the validity of the generated current process data is judged.

2. The method for augmenting and generating industrial process data according to claim 1, Features: The data generation in step 3 includes the following steps: Step 3.1.1: Replace the missing data X B Data of upstream and downstream processes X A , X C Input to the conditional diffusion model, use forward diffusion to gradually add step-wise Gaussian noise, after multiple steps of diffusion, the real process data is converted into pure Gaussian noise, and then progressive reverse generation is performed. Through a series of iterative denoising, the Gaussian noise distribution is inversely transformed into the current process data The true distribution of Step 3.1.2: Generate the current process data that the data evaluation module will generate The mechanism conditions of the upstream and downstream processes are input into the conditional diffusion model to generate data for the upstream and downstream processes. Then use the real data of upstream and downstream processes X A , X C Instead of generating data Perform KL divergence calculation to obtain the distance between the two groups of sample distributions. The KL divergence calculation formula is as follows: Among them, P(X) and Q(X) represent the distribution probabilities of real data and generated data respectively, and E represents the expected function; Step 3.1.3: Set a KL divergence threshold to determine the generated data If the distance is greater than the threshold, return to step 3.1.1, otherwise, output the generated current process data 3. The industrial process data augmentation and generation method according to claim 1, Features: The conditional diffusion in step 3 includes the following steps: Step 3.2.1: In the forward diffusion process, the upstream process data X with a data length of P is A and downstream process data X of length Q C Add together to get data X with a length of P+Q 1 As the input of the conditional diffusion model, in the T-step forward diffusion process, the index of each step is t, from the data X 1 At the beginning, Gaussian noise is randomly generated at each step, and then the generated Gaussian noise is gradually added to the real data. When the number of steps T is large enough, data G close to Gaussian noise is obtained. t ; Step 3.2.2: In the backward generation process, from the noise G t First, through the denoising network, reversely predict the noise added in each previous step, and then gradually filter out the noise, according to the current process data to be generated The data length R is used to adjust the generated steps and structure, and the dimension of the data is adjusted to obtain the final generated data.

4. A method for augmenting and generating industrial process data according to claim 2 or 3, Features: The denoising comprises the following steps: Step 3.3.1: The reverse generation process extracts the characteristics of noise through the long short-term memory network, whose long short-term memory network unit is composed of a forget gate f t , input gate i t and output gate o t composition; The LSTM network is constructed by passing the n-dimensional output forget gate f t Each value of is maintained between (0, 1) to maintain the ability to remember important information for a long time, and the forget gate f t The closer the value is to 0, the more information is forgotten. t The closer the value is to 1, the more information is retained; Input Gate i t Integrate the previous moment and the current moment information as new input, and selectively retain the current state. The long short-term memory network uses the input gate i t Short-term memory of important information and continuous updating of current status; Output gate o t According to the input x at the current time t t The state h of the hidden layer at the previous moment t-1 t-1 and the latest cell state c t Determine the output h at time t t , and generate the output at the current moment; Step 3.3.2: By adding a broadcast layer architecture in the denoising process, the diffusion model relies on the reverse generation process to generate sample data for new scenarios. Position embedding is used in the broadcast layer to introduce sequence information into the model. Through position embedding, position information is added to each input data, and the mechanism knowledge conditions corresponding to different processes are embedded in it as additional input; Step 3.3.3: Dynamically obtain the information that needs to be paid attention to by introducing a multi-head attention mechanism. The attention mechanism highlights the impact of a key input on the output by calculating the probability distribution of attention; Step 3.3.4: The noise is removed by capturing the local pattern of noise features through convolution.

5. The method for augmenting and generating industrial process data according to claim 4, Features: The forget gate operation logic in step 3.3.1 is: f t =σ(w xf x+w hf h t-1 +b f ) Among them, x is the input, σ is the activation function, and h t-1 is the hidden layer state at time t-1, w xf and w hf is the weight coefficient of the forget gate; b f is the bias term of the forget gate; The input gate operation logic is: i t =σ(w xi x t +w hi h t-1 +b i ) Among them, tanh is the hyperbolic tangent activation function, is the alternative cell state, w xc and w hc for The weight coefficient, b c for The bias term, w xi and w hi is the weight coefficient of the input gate, b i is the bias vector of the input gate; The output gate operation logic is: o t =σ(w xo x t +w ho h t-1 +b o ) h t =o t ×tanh(c t ) Among them, w xo and w ho is the weight coefficient of the output gate, b o is the bias vector of the output gate, c t-1 is the cell state at the previous moment, c t The current latest cell status.

6. The method for augmenting and generating industrial process data according to claim 4, Features: In step 3.3.3, firstly, multiple linear mappings are performed on q, K, and V in the attention mechanism, and the mapping results are input into the scaled dot product attention. The scaled dot product attention is a vector set H∈R n×d and query vector As input, and with 3 parameter matrices H. Projected into different spaces, where n represents the number of elements in the vector set, d represents the input word embedding dimension, and d k is a hyperparameter, and the scaled dot product attention calculation formula is: Among them, the query vector q is used to represent the target to be queried, the key vector K represents the features related to the query, and the value vector V represents the value associated with each key; The result of scaling dot product attention each time is called a head, and the calculation formula for multi-head attention is: Where h represents the number of heads in the scaled dot product, W o Represents the output weight matrix; Multi-head self-attention performs different linear transformations on the same input by stacking multiple attention layers in parallel, thereby focusing on information from different representation subspaces, and different heads extract different features.

7. The method for augmenting and generating industrial process data according to claim 4, Features: The convolution in step 3.3.4 is a one-dimensional convolution, and its calculation formula is as follows: Among them, w ij Represents the weight of each position of the convolution kernel, x ij Corresponding to the value of each position in the convolution area, y represents the output value of each convolution area after convolution, and b represents the offset.