A soft sensing method for fermentation process based on deep graph network analysis
Through the fermentation graph convolutional neural network model based on the deep graph network, the problem of online analysis of key product quality during the fermentation process is solved, the accurate prediction of the penicillin fermentation process is achieved, and the control and optimization capabilities of the fermentation process are improved.
Patent Information
- Application Number
- CN202110999583.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-29
AI Technical Summary
The lack of suitable online sensors to analyze key product quality online during the fermentation process limits the control and optimization of the fermentation process. Especially in the penicillin fermentation process, it is difficult to effectively predict product quality with existing technology.
A fermentation process soft measurement method based on a deep graph network is used to measure the key product quality of the penicillin fermentation process through a fermentation graph convolutional neural network (FGCN) model that combines a graph convolutional network (GCN) and a temporal convolutional network (TCN). For prediction, the maximum mutual information criterion is used to select data features, and the data is acquired and integrated through the simulation platform for training.
It improves the prediction accuracy and model generalization of key product quality in the fermentation process, can extract features in the time and space dimensions, and achieve accurate measurement of different fermentation processes, which is better than traditional prediction models.
Smart Images

Figure CN113642247B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fermentation process soft measurement, and in particular to a fermentation process soft measurement method based on deep graph network analysis. Background Art
[0002] The fermentation process is a process in which biological organisms participate and produce target products under appropriate fermentation conditions such as pH, temperature, and stirring. It is widely present in various industrial processes and has inherent strong nonlinearity and complexity of the mechanism process. There are great difficulties in its theoretical modeling and process control, especially the lack of suitable online sensors to analyze the quality of key products online. For example, the quality of key products in the penicillin fermentation process can only be analyzed occasionally in an offline manner, which greatly limits the control and optimization of the fermentation process.
[0003] As data-driven modeling methods have shown great advantages in industrial processes, in order to overcome the problem of difficulty in analyzing key product quality, more and more people use data-driven modeling methods to estimate key product quality from other variables that can be measured online. Due to the strong nonlinearity between product quality and operating variables in the fermentation process, the data-driven modeling methods based on the fermentation process are mainly divided into statistical methods, shallow machine learning methods and deep learning methods. Among them, statistical methods mainly include principal component analysis (PCA) and partial least squares (PLS). Shallow machine learning methods refer to traditional machine learning models other than deep learning, including shallow artificial neural networks (ANN), support vector machines (SVM), and Gaussian process models (GPM). Deep learning mainly includes various deep neural networks (DNN) with more than three layers. Deep neural networks have been proven to be able to approximate any nonlinear system and are widely used in process modeling.
[0004] Since its proposal, graph neural networks have developed rapidly and have shown satisfactory learning capabilities in many fields. On the other hand, methods based on graph neural networks (GNN) can process non-grid data, so they can capture the relationship between features. This software proposes a fermentation graph convolution neural network (FGCN) based on a graph convolution network (GCN). FGCN takes all features of the fermentation process as input to predict key product quality. In addition, during the training phase, the relationship matrix between features, the time correlation matrix and other parameters are optimized together. In this way, the network can learn and determine the relationship between features based on the given training data, thereby giving more accurate prediction results. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a reasonably designed soft sensing method for a fermentation process based on deep graph network analysis.
[0006] The technical solution of the present invention is as follows:
[0007] A fermentation process soft sensing method based on deep graph network analysis comprises the following steps:
[0008] 1) Data acquisition and integration:
[0009] The simulation platform pensim was used to obtain the penicillin fermentation process under different working conditions, and the data was divided, collected and integrated in batches of four hours.
[0010] 2) Data selection:
[0011] The data is selected according to the Maximum Mutual Information (MMI) criterion to remove redundant and useless data.
[0012] 3) Modeling training:
[0013] An algorithm model FGCN of the soft-sensing method for fermentation process based on graph network is constructed. The input of the model is the selected and retained data. Then the FGCN model is used to learn and train the integrated data.
[0014] 4) Model prediction:
[0015] The trained FGCN model is used to predict the outlet concentration of penicillin fermentation products, and the prediction results are given.
[0016] Further, the process of step 1) is:
[0017] Step 1.1: Set up the pensim simulation process and obtain the output data of the simulation platform variables;
[0018] Step 1.2: Divide the data into training set, validation set and test set according to the set ratio;
[0019] Step 1.3: Since the data differences between different feature variables are large, it is necessary to standardize the data to facilitate model processing and calculation. The specific formula is as follows:
[0020]
[0021] Among them, X' is the data after standardization, X is the original data without standardization, μ is the mean of the data, and σ is the standard deviation of the data.
[0022] Further, the process of step 2) is:
[0023] Step 2.1: Use the maximum mutual information principle to select data features. The maximum mutual information is based on mutual information. The following is the mutual information formula:
[0024]
[0025] Where p(X,Y) represents the joint probability distribution between random variables X and Y; the required mutual information is calculated according to the mutual information formula;
[0026] Step 2.2: The formula for the maximum mutual information coefficient can be derived from the mutual information (MI):
[0027]
[0028] Where B = N 0.55~0.6 , N is the size of the sample set, and the calculated mutual information is substituted into the formula to determine the maximum mutual information;
[0029] Step 2.3: Sort the features according to the maximum mutual information, select the top k features, and complete the feature selection process.
[0030] Further, the process of step 3) is:
[0031] Step 3.1: FGCN is based on relevant algorithms to build a prediction model for the outlet concentration of the fermentation process; FGCN is mainly based on graph convolutional network (GCN) and temporal convolutional network (TCN); GCN is an algorithm that convolves data in non-Euclidean space. GCN can be expressed as:
[0032]
[0033] Where H is the feature vector of the current layer, let H (0) =X in , X in represents input data, l represents the number of layers, W is the weight matrix, σ(.) is the activation function, represents the input adjacency matrix, where represents the convolution kernel, represents the degree matrix of the adjacency matrix A;
[0034] TCN is an algorithm for extracting features from time series data across time steps. It can extract features from the input data x at time t. t Given a corresponding y t ;The TCN algorithm can be expressed as:
[0035]
[0036] X represents input data, Y represents output data, and TCN(.) represents temporal convolutional network. The process of temporal convolutional network is as follows Figure 1 As shown;
[0037] Step 3.2: Combining GCN and TCN is called Spatio-Temporal Convolution Network (STGCN), stacking three layers of STGCN, and finally combining the feature selection part to form FGCN. FGCN is used to accurately predict the outlet concentration of penicillin fermentation products. Figure 2 It is the FGCN framework;
[0038] Step 3.3: Use the training data to train FGCN, use the validation data to select hyperparameters for FGCN, and finally obtain a trained FGCN model.
[0039] Further, the process of step (4) is:
[0040] Step 4.1: Input the test data into the trained FGCN model. Use the mean square error RMSE as the evaluation indicator, and the calculation formula is as follows:
[0041]
[0042] in, represents the real data, y i represents the output of the model, and n represents the number of samples in the test set. Generally speaking, the smaller the RMSE, the closer the predicted value of the model is to the true value, that is, the better the prediction effect of the model.
[0043] Beneficial effects of the invention: The invention proposes a soft measurement method for the fermentation process based on deep graph network analysis, which can accurately predict the quality of key products in the fermentation process. The method uses graph convolutional networks and time convolutional networks to extract data in time and space dimensions, which increases the generalization of the model. The method can accurately measure the quality of key products in different fermentation processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a structural diagram of the temporal convolution layer of the present invention;
[0045] Figure 2 It is a model framework diagram of the present invention;
[0046] Figure 3 It is a comparison diagram of the predicted results and the actual results of the present invention. DETAILED DESCRIPTION
[0047] The present invention will be further described below in conjunction with the accompanying drawings.
[0048] Reference Figure 1-3 , a soft sensing method for fermentation process based on deep graph network analysis, the specific steps are as follows:
[0049] 1) Obtain penicillin fermentation process data set:
[0050] Step 1.1: Set up the pensim simulation platform, measure variables once every hour, set 10 groups of different working conditions, repeat the simulation process 10 times, and finally obtain 10×16×400 data of 16 variables and 400 moments under 10 working conditions;
[0051] Step 1.2: According to the division criteria, the data is divided into three parts: 6×16×400, 2×16×400 and 2×16×400, which are training set, validation set and test set respectively.
[0052] Step 1.3: Process each data according to the standardized formula.
[0053] 2) Data selection for the penicillin fermentation process data set is performed as follows:
[0054] Step 2.1: Calculate the mutual information value of each variable according to the mutual information formula.
[0055] Step 2.2: Calculate the maximum mutual information value based on the mutual information value.
[0056] Step 2.3: Sort the variables according to the maximum mutual information value and keep the top 5 variables: Basis feed rate (V SF ), biomass concentration (E B ), dissolved oxygen concentration (E DO), carbon dioxide concentration (E CO2 ), heat generation (T G ).
[0057] 3) Perform FGCN model training. The process is as follows:
[0058] Step 3.1: Input the training set into the model to obtain the first prediction value of the model.
[0059] Step 3.2: According to the difference between the predicted value and the output value, adjust the parameters of the model so that the difference between the predicted value and the true value is reduced.
[0060] Step 3.3: Input the validation set into the model and obtain the output of the model for the validation set.
[0061] Step 3.4: Re-adjust the model's hyperparameters based on the model's output results on the validation set.
[0062] Step 3.5: Repeat steps 3.1 to 3.4 until the difference between the model's predicted value and the true value is within the allowable error.
[0063] 4) Use the test data to test the model. The process is as follows:
[0064] Step 4.1: Use graph convolutional network (GCN), support vector machine (SVM) and least squares method (PLS) for control experiments. SVM and PLS are commonly used models for time series data. Input the training data into the trained model and obtain the prediction values of FGCN, GCN, SVM and PLS on the test set.
[0065] Step 4.2: Calculate the RMSE between the predicted value and the true value of the test set to evaluate the performance of FGCN, GCN, SVM, and the evaluation results are shown in Table 1:
[0066] Table 1 RMSE comparison between FGCN and GCN
[0067]
[0068] It can be seen from the above comparison results that the prediction effect of the present invention on the key product quality of penicillin fermentation process is better than the traditional prediction model. Figure 3 Comparison between the predicted results and the actual results of the present invention.
[0069] The method of the invention adopts a soft measurement model of the fermentation process based on a graph network, improves the prediction effect of the quality of key products in the fermentation process, and has universality and generality.
[0070] The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.
Claims
1. A soft sensing method for fermentation process based on deep graph network analysis, characterized in that: The method comprises the following steps: 1) Data acquisition and integration: Use the simulation platform pensim to obtain the penicillin fermentation process under different working conditions, and divide, collect and integrate the data; The process of step 1) is: Step 1.1) Set up the pensim simulation process and obtain the output data of the simulation platform variables; Step 1.2) Divide the data into training set, validation set and test set according to the set ratio; Step 1.3) Since the data differences between different feature variables are large, the data needs to be standardized to facilitate model processing and calculation. The specific formula is as follows: Among them, X' is the data after standardization, X is the original data without standardization, μ is the mean of the data, and σ is the standard deviation of the data; 2) Data selection: Select data according to the maximum mutual information criterion MMI to remove redundant and useless data; The process of step 2) is: Step 2.1) Use the maximum mutual information criterion to select data features. The maximum mutual information is based on mutual information. The following is the mutual information formula: Where p(X,Y) represents the joint probability distribution between random variables X and Y, and the required mutual information is calculated according to the mutual information formula; p(X) represents the probability distribution of random variable X, and p(Y) represents the probability distribution of random variable Y; Step 2.2) The formula for deriving the maximum mutual information coefficient from the mutual information MI is: Where B = N 0.55~0.6 , N is the size of the sample set; the calculated mutual information is substituted into the formula to determine the maximum mutual information; Step 2.3) Sort the features according to the maximum mutual information, select the top five variables: substrate feed rate VSF, biomass concentration EB, dissolved oxygen concentration EDO, carbon dioxide concentration ECO2, and heat of generation TG, and complete the feature selection process; 3) Modeling training: An algorithm model FGCN of the soft-sensing method of fermentation process based on graph network is constructed. The input of the model is the selected and retained data. Then the FGCN model is used to learn and train the integrated data. The process of step 3) is: Step 3.1) FGCN is based on relevant algorithms to build a prediction model for the outlet concentration of the fermentation process; FGCN is mainly based on graph convolutional network GCN and temporal convolutional network TCN; graph convolutional network GCN is an algorithm that convolves data in non-Euclidean space, and graph convolutional network GCN is expressed as: Where H is the feature vector of the current layer, let H (0) =X, X represents input data, l represents the number of layers, W is the weight matrix, σ(.) is the activation function, represents the input adjacency matrix, where Denotes the convolution kernel, D = ∑A ij represents the degree matrix of the adjacency matrix A; The temporal convolutional network (TCN) is an algorithm that extracts features from time series data across time steps. t Given a corresponding y t ; The algorithm of the temporal convolutional network TCN is expressed as: X represents input data, Y represents output data, and TCN(.) represents temporal convolutional network; Step 3.2) The graph convolutional network GCN and the temporal convolutional network TCN are combined to form a spatiotemporal convolutional network STGCN. Three layers of spatiotemporal convolutional networks STGCN are stacked and finally combined with the feature selection part to form FGCN. The outlet concentration of the product in the penicillin fermentation process is accurately predicted by FGCN. Step 3.3) Use the training data to train the constructed FGCN, use the verification data to select the hyperparameters of FGCN, and finally obtain a trained FGCN model; 4) Model prediction: The trained FGCN model is used to predict the outlet concentration of penicillin fermentation products, and the prediction results are given. The model performance is evaluated based on RMSE.
2. A fermentation process soft sensing method based on deep graph network analysis as claimed in claim 1, characterized in that: The process of step 4) is: Step 4.1: Input the test data into the trained FGCN model and use the mean square error RMSE as the evaluation indicator. The calculation formula is as follows: in, represents the real data, y i Represents the output of the model, n represents the number of samples in the test set; the smaller the RMSE, the closer the predicted value of the model is to the true value, that is, the better the prediction effect of the model.
Citation Information
Patent Citations
Wind power prediction method and system based on graph convolutional neural network
CN111784041A
Penicillin fermentation process soft measurement method based on dynamic Bayesian network
CN111933220A
Soft measurement modeling method of semi-supervised dynamic soft measurement network
CN112001115A
Incremental social event detection method of graph neural network
CN112949281A
Penicillin fermentation process fault prediction method based on Attention-LSTM of multivariate time series
CN113011102A
