A method for real-time detection of multiple substances in microbial culture process
Through genetic algorithm-semi-supervised convolutional neural network and transfer learning technology, the problem of inaccurate real-time detection of substances in microbial culture is solved, the robustness and accuracy of the model are improved, and the system is realized under multi-batch and non-linear data efficient detection.
Patent Information
- Application Number
- CN202311060781.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-08-22
AI Technical Summary
The existing technology is not accurate in real-time detection of substances during microbial cultivation, especially in multi-batch cultivation and non-linear data processing. It is difficult to improve the robustness and accuracy of the model at the same time, and uneven data distribution leads to wrong predictions.
Using genetic algorithm-semi-supervised convolutional neural network model, by establishing semi-supervised data sets, using labeled and unlabeled data sets to jointly train, extract characteristic bands and strengthen them, and combine transfer learning on the basis of deep convolutional neural networks to build Multiparameter regression models for microbial culture.
Significantly improves the real-time and robustness of substance detection during microbial cultivation. It can train a high-precision model with a small amount of data and accurately analyze the characteristic positions in the Raman spectrum. It is suitable for multi-parameter target detection and in biological detection. Provides scalable model solutions.
Smart Images

Figure CN117216724B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spectral detection and analysis, and in particular to a method for real-time detection of multiple substances in a microbial culture process. Background Art
[0002] In the biopharmaceutical field, process analytical technology (PAT) uses advanced analytical methods to monitor and control multiple parameters and indicators in the biopharmaceutical production process in real time. This ensures product quality, consistency and production efficiency, reduces product failure rate and reduces production costs. As a typical process analytical technology, Raman detection technology has a wide range of applications in drug production processes and quality analysis due to its non-invasive and high sensitivity.
[0003] In 2010, many scholars used Raman technology combined with chemometric methods to achieve rapid detection, separation and identification of Escherichia coli microorganisms. At the same time, they also tried to use more advanced Raman imaging technology to visualize the chemical composition of microorganisms, which promoted the application of this technology in the field of microbial research. In 2011, NR Abu-Absi, BM Kenty and others first realized the simultaneous monitoring of multiple parameters such as glucose, lactate, ammonium, glutamine and viable cell density in bioreactors. So far, more key indicators such as titer and concentration of 16 protein amino acids in the culture process have been proven to be able to be monitored in real time by Raman technology combined with chemometrics.
[0004] In 2018, Shuai He, Yi Mon Ei Kyaw and their research team proposed a new label-free quantitative measurement method for extracellular protein kinase A (PKA) activity. By performing principal component analysis (PCA) on the SERS spectrum, the research team successfully identified the 725 and 1395 cm -1 The two Raman peaks at , their ratio intensity changes reflect the degree of PKA phosphorylation of Kem, thus achieving quantitative measurement of PKA activity. This proves the feasibility of Raman spectroscopy in protein detection and lays the foundation for real-time quantitative research.
[0005] Partial least squares regression (PLSR) is the most commonly used chemometrics algorithm, commonly used in multivariate statistical analysis, to process the correlation and prediction between multivariate data. PLSR can reduce the data dimension, extract the linear relationship between multiple independent variables X and dependent variables Y while retaining the information of the original data, and use a small number of "latent variables" to map the regression relationship. PLSR performs well in linear regression models that satisfy the Lambert-Beer law, but recent studies have shown that the model generalization ability is poor when dealing with nonlinear problems and when multiple batches of data are applicable. Because the trained model is too dependent on the current input data, the model robustness does not achieve satisfactory results.
[0006] With the development of machine learning, combining other regression algorithms such as support vector regression (SVR), random forest regression (RFR) and neural network regression (ANNR) with Raman spectroscopy can better overcome the shortcomings of the above linear models.
[0007] Biological multi-batch culture has obvious specificity. Improving the robustness of the model requires using process data from different batches to train the model. To a certain extent, the richness of the data set will increase, and the robustness of the model will also increase accordingly, but too much data will make the accuracy of the model tend to be low saturation. In addition, due to data disasters caused by intermittent sampling, the data set has uneven distribution deviations. The excessive number of samples in some parts makes the model fitting inaccurate and leads to wrong prediction results.
[0008] The complex connections between neurons in deep networks and the ability of multiple layers of depth to accommodate massive amounts of data make them more ideal high-parameter regression models. In 2012, the convolutional neural network (CNN) structure AlexNet won first place in the ImageNet image classification competition. The local connection and weight sharing characteristics of CNN reduce the number of network parameters and computational complexity, while increasing the stability of the model. CNN has achieved good results in both classification and regression tasks.
[0009] All information at a certain moment in the bacterial culture process is distributed on the peaks of different wave numbers in the same Raman spectrum. Due to the coupling effect between biomacromolecules and the interference of biofluorescence, it is difficult to identify and locate characteristic peaks through conventional spectra. Summary of the invention
[0010] In view of the shortcomings of the prior art, the present invention provides a method for real-time detection of multiple substances in a microbial culture process, which solves the problem of inaccurate real-time detection of substances in microbial culture in the prior art.
[0011] In a first aspect, the present invention provides a method for real-time detection of multiple substances in a microbial culture process, comprising the following steps:
[0012] S0 ferments and cultures the microorganism to obtain a fermentation sample;
[0013] S1 establishes a data set: during the culture process, the Raman spectrum data of the fermentation sample is continuously collected to obtain a process data set; at the same time, the concentration of substances in the fermentation sample is intermittently sampled and detected to obtain an offline data set;
[0014] S2 labeled data set: According to the offline data set, the process data set is divided into a labeled process data set and an unlabeled process data set, and the unlabeled process data set is labeled to obtain an unlabeled process labeled data set;
[0015] S3 establishes a regression model: The labeled process data set and the unlabeled process label data set together constitute a semi-supervised data set, which is used to train the genetic algorithm-semi-supervised convolutional neural network model and establish a regression model between Raman spectra and substance concentration.
[0016] In one embodiment of the present invention, in step S1, the method for continuously collecting Raman spectral data of a fermentation sample includes: connecting a Raman spectrometer to the fermentation sample to detect the Raman spectral data of the fermentation sample in real time;
[0017] The method of intermittent sampling and detecting the concentration of a substance in a fermentation sample comprises: collecting a fermentation sample at a certain interval and detecting the absorbance value and the concentration of the substance;
[0018] The preferred interval is 1h;
[0019] Preferred substances include glucose, lactate, ammonium ions, OD600 and target protein.
[0020] In one embodiment of the present invention, in step S2, the method of dividing the process data set into a labeled process data set and an unlabeled process data set according to the offline data set includes: dividing the Raman spectrum data corresponding to the sampling time in the process data set into the labeled process data set, and dividing the remaining Raman spectrum data into the unlabeled process data set;
[0021] Preferably, the method for labeling the unlabeled process data set includes a model calculation method and an interpolation method;
[0022] More preferably, the model calculation method is to label the unlabeled process data set using a model trained with a labeled process data set;
[0023] More preferably, the interpolation method is to label the unlabeled process data set using a three-spline interpolation method.
[0024] In a specific embodiment of the present invention, a method for training a model using a labeled process data set includes: expanding and preprocessing the labeled process data set for training PLSR and SVR models; calculating regression parameters of the PLSR and SVR models by a model integration method, and obtaining a 1_Gen model by an iterative method of a boosting model;
[0025] Preferably, the expansion method includes: adding a baseline slope, introducing Gaussian noise and a proportional number method;
[0026] Preferably, the preprocessing method includes processing the Raman spectroscopy data using a baseline correction method, a Savitzky-Golay filtering method, a standard normal variable transformation method, and normalization;
[0027] Preferably, the three-spline interpolation method includes marking the process data using an interpolation function, and the interpolation function is shown in formula (1):
[0028]
[0029] Among them, S i represents the interpolation function value of the i-th point, X i represents the i-th sample point, y i represents the label value of the i-th sample point, S0 represents the function value of the left interval segment of the interpolation function, S n Represents the function value of the right interval segment point of the interpolation function.
[0030] In one embodiment of the present invention, in step S3, the method for training a genetic algorithm-semi-supervised convolutional neural network model includes: extracting characteristic bands of materials from a semi-supervised data set through a genetic algorithm and strengthening the characteristic bands; forming a training sample set for training a semi-supervised convolutional neural network model.
[0031] In a specific embodiment of the present invention, the method for extracting characteristic bands includes: extracting characteristic bands of a supervised process data set using a genetic algorithm by taking the inverse of the root mean square error (RMSE) of the objective function as a fitness function;
[0032] The method for strengthening the characteristic waveband includes: strengthening the characteristic waveband by using a transverse cubic spline interpolation method to restore it to the original spectrum length.
[0033] In one embodiment of the present invention, S4 transfer learning is also included: according to the deep convolutional neural network, on the basis of the trained genetic algorithm-semi-supervised convolutional neural network model, a small amount of Raman spectrum data and offline data of the target substance are introduced to obtain a semi-supervised convolutional neural network model of the target substance;
[0034] Preferably, the target substance is a target protein;
[0035] Preferably, based on the trained genetic algorithm-semi-supervised convolutional neural network model, the method of introducing a small amount of Raman spectrum data and offline data of the target substance includes: based on the pre-training SCNNR model of the semi-supervised data set of absorbance value, by adding a fully connected layer, introducing a small amount of target protein Raman spectrum data set and offline data set, the SCNNR of the target protein can be obtained;
[0036] Preferably, the pre-trained SCNNR model parameters are adjusted using the dataset of the target protein.
[0037] In a second aspect, the present invention provides a device for real-time detection of multiple substances in a microbial culture process, comprising: a data set labeling module, a regression model building module, and a transfer learning module;
[0038] The data set labeling module is used to label the process data set;
[0039] The regression model building module is used to build a regression model between Raman spectrum and substance concentration;
[0040] The transfer learning module is used to establish a semi-supervised convolutional neural network regression model for a small amount of target substances.
[0041] According to a third aspect of the present invention, there is provided a device for real-time detection of multiple substances in a microbial culture process, characterized in that it comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the method for real-time detection of multiple substances in a microbial culture process is implemented.
[0042] A fourth aspect of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned method for real-time detection of multiple substances in the microbial culture process.
[0043] The technical principle of the present invention is:
[0044] The invention aims to detect multiple substances in the process of Escherichia coli cultivation. Based on the deep learning model CNN, a more applicable genetic and semi-supervised convolutional neural network regression model (GA_SCNNR) is proposed for the establishment of Raman model of recombinant Escherichia coli cultivation.
[0045] The present invention uses a genetic algorithm associated regression model and takes the inverse of the root mean square error (RMSE) as a fitness function to achieve characteristic position division of different detection substances in the same spectrum and extract different optimal adaptation characteristic bands from 2048 input spectral variables (X1, X2, ..., X2048).
[0046] The network parameter training of CNN usually requires a large amount of data. In order to overcome the shortcomings of the sampled data set, the present invention uses a labeled offline data set and an unlabeled process data set, which together constitute a semi-supervised data set to train the model. Due to the scarcity of offline detection data, three one-dimensional data enhancement methods, namely, adding a baseline slope, introducing Gaussian noise, and interpolation calculation, are used to expand the labeled data set, thereby strengthening the correlation between the Raman spectral information and the content of the substance being measured. Because the process Raman spectrum acquisition of the bioreactor has a time series, the unlabeled data set can be marked by time series model regression, interpolation fitting, etc., so as to capture the continuous change process of the detected substance in a more detailed manner, which is consistent with the change characteristics of the substance content as a simulated quantity in actual situations.
[0047] At the same time, GA_SCNNR can enhance the actual adaptability of the model by means of transfer learning. Under the premise of retaining the model trained in the N-1 batch, an additional fully connected layer is added to form a new model of the N batch to adapt to new application scenarios and form a dynamic model structure of (training-application-training). Specifically, the present invention adds two blank fully connected layers on the basis of the trained SCNNR (OD600) model, respectively containing 128 and 64 neurons, to construct a transfer learning model. 20 items of protein reference data were collected, and the data set was expanded to 320 items by data enhancement technology, which was expanded by 16 times. Then, the pre-trained model was fine-tuned using the target protein data set, and further trained on the target task to adjust the parameters of the model to adapt to the task. Through the above method, a transfer learning model suitable for the target protein expression task was successfully constructed. The model utilizes the prior knowledge of the SCNNR (OD600) model, and through fine-tuning operations, better performance and adaptability are achieved on the target task. This method provides an effective solution to the problem of difficulty in obtaining offline reference values in the target protein expression task.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] (1) The present invention proposes a genetic semi-supervised convolutional neural network (GA_SCNNR) framework. Based on real-time Raman spectroscopy, a multi-parameter regression model is established in the process of recombinant Escherichia coli cultivation. A large amount of label-free process spectral data can be used for model training. The training set samples are expanded from 52 to 1302, which greatly improves the real-time and robustness of process detection.
[0050] (2) The present invention proposes a spectral labeling method, which uses a process spectrum labeling method to expand the training data set of the model, and utilizes a large amount of unlabeled process spectrum data, so that the model has a larger data set for training, and a high-precision model can be trained with a small amount of offline samples.
[0051] (3) The invention introduces genetic algorithms for different detection substances, which can accurately parse out the most suitable feature position in the same Raman spectrum data, thereby improving the accuracy of multi-parameter target detection.
[0052] (4) The present invention uses a deep convolutional neural network and utilizes transfer learning to train a high-precision model with a small amount of data, and successfully realizes the detection of target protein expression with a very small target protein data set.
[0053] (5) The practicability of the model prediction of the present invention has been verified and can be used to guide the yield and trend detection of the cultivation process.
[0054] Therefore, compared with the traditional chemometrics model, the GA_SCNNR framework has the following advantages: The unique convolutional structure of the CNN network can replace the spectral data preprocessing process and has higher accuracy. In the actual biological culture process, the detection parameters and culture system often change. The GA_SCNNR framework has the ability to be expanded through transfer learning. It can adapt to new detection tasks with a small number of samples while retaining the previously trained parameters, providing new ideas for the development of universal models for biological detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 The present invention is a flow chart of the method for real-time detection of multiple substances in the microbial culture process.
[0056] Figure 2 This is the case where the original spectrum in Example 4 of the present invention is enhanced by different technologies.
[0057] Figure 3 This is a flow chart of extracting characteristic bands using a genetic algorithm in Example 6 of the present invention.
[0058] Figure 4 This is the best adaptation band extracted in Invention Example 6.
[0059] Figure 5 This is a diagram of the 1_Gen Mode calculation process in Example 7 of the present invention.
[0060] Figure 6 This is the spectral labeling process and CNNR model training in Example 7 of the present invention.
[0061] Figure 7 This is the transfer learning of the SCNNR structure and the target protein in Example 7 of the present invention.
[0062] Figure 8 This is a diagram of the GA_SCNNR training process in Example 7 of the present invention.
[0063] Fig. 9 (a) is the three-dimensional PCA distribution at different target protein concentrations in Example 7 of the present invention, and 9(b) is the second and third dimensional perspectives.
[0064] Fig.10 (a) is the determination coefficient of the offline reference data set of the four culture products in Example 8 of the present invention on different models of PLSR, SVR and CNNR; 10(b) is 625 process labeling data of glucose concentration, which are added to the reference data set in different proportions to construct a semi-supervised data set.
[0065] Fig.11 The data set in Example 8 of the present invention is preprocessed (including Savitzky-Golay filtering (6, 21), AirPLS baseline correction and SNV), and the model determination coefficient is verified on the PLSR, SVR and CNNR models respectively compared with the unprocessed original data set.
[0066] Fig.12 This is the cross-validation performance of the two process labeling methods in Example 8 of the present invention in 1_Gen Mode.
[0067] Fig.13 It is a box plot of 10-fold cross validation of five substances in Example 8 of the present invention, and the red cross symbol represents the abnormal value of the determination coefficient during cross validation.
[0068] Fig.14 This is the multi-objective training process of the model in Example 8 of the present invention.
[0069] Fig.15 This is real-time detection of parameters during the recombinant protein culture process in Example 8 of the present invention.
[0070] Fig.16 To verify the accuracy of the real-time parameter detection process in Example 8 of the present invention, the blue curve is the real-time output value calculated by GA_SCNNR, the red curve is the polynomial smoothing based on the blue curve, and the black hollow circle is the true value of the parameter measured offline. DETAILED DESCRIPTION
[0071] The technical scheme of the present invention will be further described in detail below in conjunction with specific embodiments. It should be understood that the following embodiments are only exemplary descriptions and explanations of the present invention and should not be construed as limiting the scope of protection of the present invention. All technologies implemented based on the above content of the present invention are included in the scope that the present invention is intended to protect.
[0072] Unless otherwise specified, the raw materials and reagents used in the following examples are commercially available or can be prepared by known methods.
[0073] Definition of terms
[0074] "Labeled" and "supervised" mean the same thing, and "unlabeled" and "unsupervised" mean the same thing.
[0075] In the present invention, "substance" is not limited to glucose, lactic acid, ammonium ions, target proteins, and OD600. Any substance that can detect characteristic changes in the real-time Raman probe is applicable to this method. Usually, Raman probes can detect proteins, carbohydrates, lipids, and metabolites. The specific substance needs to be determined according to the actual hardware probe used.
[0076] Explanation of symbols
[0077]
[0078] The main instruments used in the present invention include: electronic balance (sartorius), high-speed refrigerated centrifuge (cence), constant temperature shaker (radobio), UV-visible spectrophotometer (ThermoFisher), automatic pressure steam sterilizer (Tianmei), clean bench (Sujing Antai), 5L fermenter (Halls), oven (bluepard), automatic biochemical analyzer (Silman), laser probe Raman spectrometer (MARQMETRIX).
[0079] Culture medium and reagents used in the present invention: Batch fermentation was carried out using conical flasks, and the effects of different culture medium components on the growth and biomass of recombinant E. coli were studied, and CD502 was determined as the main culture medium for fermentation tank culture. The following table shows the main materials used in the culture medium and feed.
[0080]
[0081] CD502 culture medium is composed of inorganic substances, and has the advantages of precise and clear composition, strong repeatability, and can achieve higher protein and biomass.
[0082] Example 1 High-density culture in a fermenter
[0083] 1. Primary seed culture: Inoculate the glycerol bacteria in LB into CD502 medium and culture at 37°C overnight.
[0084] 2. Secondary seed culture: Inoculate the bacterial solution adapted to CD502 into a 250 mL conical flask containing 50 mL of culture medium and culture at 37 °C overnight.
[0085] 3. 5L fully automatic fermentation tank: equipped with pH, dissolved oxygen and Raman electrodes. Inject 2.0L CD502 culture medium into the 5L fermentation tank, inoculate 50mL of overnight cultured bacterial solution, add kanamycin to 50mg / L, control the temperature to 37℃, use 30% ammonia water and 30% phosphoric acid to control pH6.8, the initial ventilation volume is 2L / min compressed air, and the initial stirring speed is 200r·min -1 During the fermentation process, the stirring speed is adjusted (the maximum speed is 800r·min -1 ) and ventilation (increase oxygen ventilation) to control the dissolved oxygen level in the fermenter to be above 30%. The exponential addition strategy is adopted. When the speed increases rapidly and the dissolved oxygen decreases rapidly, the medium is added. The sugar concentration is measured at any time using a biochemical analyzer. The feed formula for manually controlling the flow rate is shown in Formula 1. The glucose content after feeding is maintained in the range of 0.01g / L to 0.24g / L.
[0086]
[0087] Wherein, μ is the specific growth rate value, Pset is the set specific growth rate value; Xo and Vo are the cell dry weight (g / L) and fermentation broth volume (L) at the start of feeding; SF is the concentration of glucose in the feed medium (g / L); m is the maintenance coefficient [g / (gh)-0.025], and Yx / s is the output coefficient (g / g), that is, how many grams of cell dry weight can be produced by each gram of glucose.
[0088] 4. During the fermentation process, the bacterial liquid in the culture medium was sampled and the absorbance value at 600nm was measured. After a certain period of culture, IPTG induction (final concentration of 1mmol·L -1 ), reduce the flow rate of feeding, induction temperature is 37°C, culture for 5h, fermentation ends. Collect E. coli bacterial precipitate by centrifugation, speed 4000rpm, temperature 4°C.
[0089] Example 2 Offline analysis and detection
[0090] In the early stage of induction, offline samples were taken every hour to determine the offline analysis values for model establishment and verification.
[0091] Take 1mL of fermentation broth, dilute to an appropriate multiple, and measure the absorbance at a wavelength of 600nm. Wash the fermentation broth twice by centrifugation, collect the bacteria, freeze-dry to constant weight at -40℃, and measure the dry weight of bacteria. 1.0OD_600 is equivalent to 0.54g / L cell dry weight. Glucose, lactate, and ammonium ion concentrations were determined using a biochemical analyzer (Silman). The bacterial broth was centrifuged, the supernatant was collected, and diluted with water to an appropriate multiple for determination. Quantitative determination of the target protein concentration, BCA kit (Biyuntian). Octet one-step quantitative determination was used. Using HISK Sensor, the standard and sample were diluted to an appropriate multiple with the same dilution buffer (PBST (1X PBS + 0.02% Tween 20)) to determine the concentration of the target protein in the sample, and the sensor was regenerated using regeneration buffer (pH = 1.7 10mM glycine).
[0092] Example 3 Process Spectrum Collection
[0093] The laser probe Raman spectrometer has an excitation wavelength of 785nm. It uses an invasive stainless steel probe placed below the culture medium level of the bioreactor, and transmits the obtained scattering spectrum data through optical fiber transmission to transmit the signal to the Raman spectrometer. Using the local area network for communication, the spectrometer signal is transmitted to the terminal computer for spectral visualization and parameter setting. Signal transmission and hardware processes are as follows Figure 1 As shown in S1. The parameters were set as integration time 1000mS, Averages 50, Time between samples 0mS, Number of sample 1, and Laser power 300mW. A time series spectrum was obtained every 1.5min during the culture process, with a wave number range of (42.215-3288.678cm -1 ). Figure 1 The present invention is a flow chart of the method for real-time detection of multiple substances in the microbial culture process.
[0094] Example 4 Dataset Composition
[0095] The high accuracy and strong robustness of CNN rely on large-scale data training. Rich data sets enable the model to fully learn the regression relationship between the characteristic changes of Raman spectra and the concentration of substances. Large-scale data sets provide rich data distribution and more data samples, which can effectively promote the generalization performance of CNN models and avoid overfitting. At the same time, larger data sets help increase the amount of training and data diversity, so that the model can learn features more comprehensively and avoid underfitting problems. In addition, the lack of diversity in data sets will lead to unbalanced data distribution and data bias. In order to reduce this risk and error rate, large-scale data sets are used to provide a wider sample distribution, reduce data set bias, and reduce the risk of overfitting and misjudgment of the model under uneven data distribution, thereby improving model performance and accuracy.
[0096] The GA_SCNNR dataset is composed of a supervised dataset enhanced by one-dimensional data and an unlabeled time series process dataset.
[0097] 1. Supervised one-dimensional data enhancement
[0098] Continuous sampling during the cultivation of E. coli will affect the number and growth of colonies and cross-contamination. At the same time, the detection of offline samples will consume a lot of resources and time. It is not easy to obtain a large number of offline detection values under this constraint, which is inconsistent with the need for large-scale data sets for regression model training.
[0099] In this embodiment, a total of three batches of recombinant Escherichia coli were cultured, the data of the first two times were used for model training, and the data of the last batch were used to verify the model. Each batch can obtain 26 samples of glucose, ammonium ions, lactic acid, and OD_600, and 10 samples of recombinant protein content. As the offline reference value Yi for model regression prediction, 26 time series Raman spectral values corresponding to the sampling time were selected as Xi. The following three 1D Data Augmentation methods were used to expand the marked process spectra.
[0100] (1) In Raman spectroscopy, the baseline slope refers to the slope of a trend line or fitted line in the spectrum, which is used to remove or reduce the interference of background signals on sample signals. Polynomial fitting methods are usually used to draw a trend line similar to a slope of zero, also called a baseline. This baseline can be moved, increased, or decreased to better fit the sample signal and remove background noise. Based on the 26 sets of original Raman spectra, four different baseline slopes were applied to expand the data set. The Raman spectral data corresponding to the five types of test substances were expanded from 26 to 104, and the target protein was expanded to 40.
[0101] (2) Gaussian white noise is a random noise signal whose frequency range includes all measurable frequencies and whose spectral density is equal at all frequencies, hence the name "white noise". Gaussian white noise has its randomness and universality. By adding random Gaussian white noise of varying intensities to the Raman spectral data, the size of the original labeled spectral data set was quadrupled from 104 to 416, and the number of target proteins was expanded to 160.
[0102] (3) In the case of the Raman spectra corresponding to the discrete sample sequence, the adjacent spectra are multiplied by the weight coefficient whose sum is 1, and the 5 spectra contained in the sliding window are multiplied by the corresponding proportional coefficient and then added to obtain a new process spectrum. The corresponding label value is also multiplied by the corresponding proportional coefficient, so that the sequence change of the Raman spectrum is more continuous, thereby obtaining a more dense sequence spectrum. The data set is expanded again using the proportional number method, and the Raman spectrum expanded by random white noise is expanded by 2 times, the Raman spectrum is expanded to 832, and the target protein is expanded to 320.
[0103] The original spectrum is enhanced by different techniques such as Figure 2 As shown, (a) is the Raman spectrum corresponding to the original offline sample value, (b) is the Raman spectrum expanded four times by adding the baseline, (c) is the Raman spectrum expanded four times by adding Gaussian noise, and (d) is the Raman spectrum expanded twice by adding the proportional weight.
[0104] 2. Unsupervised Sequence Labeling
[0105] The relevant indicators of the recombinant Escherichia coli culture process have the characteristics of analog quantity changes, that is, except for the intervention of artificial external conditions, the content of various metabolic indicators will not undergo obvious instantaneous mutations. The content change of each parameter has a very obvious curve trend. Therefore, when designing the experiment, samples will be taken before and after each artificial intervention such as feeding, and the mutation value will be obtained on the normal smooth trend line. For this reason, the present invention designs two process spectrum labeling schemes so that the spectrum of the whole process can be used as the relationship of the detection value trend curve. On the basis of limited large-spacing offline detection values, a smooth interpolation function is constructed by interpolation fitting to approximate more dense actual data points, and a continuous label value curve corresponding to the time series spectrum of the whole process is obtained.
[0106] Cubic spline interpolation is a smooth interpolation method that expresses the interpolation function as a cubic polynomial in the interval [X0,X n ] is evenly divided into N small intervals. A cubic polynomial S is constructed on each small interval i (x) polynomial, each interpolation node has the same first-order derivative and second-order derivative, and the expression is shown in formula (2).
[0107] Solution 1: The spectrum of the whole process has a time series, and the concentration of the substance will also change with time. Therefore, the time variable is used as a link to establish the time series spectrum and the offline interpolation function.
[0108]
[0109] Formula (2) shows that the function value of the interpolation function at the interpolation point is equal to the function value of the original function at the point, the function values of two adjacent cubic polynomials are equal at the nodes, the first-order derivatives of two adjacent cubic polynomials are equal at the nodes, and the second-order derivative of the interpolation function at the first and last points of the interval is 0, which is the natural boundary condition.
[0110] Solution 2: Use the prediction model trained with the labeled original data set. Use the existing time series spectrum as input to obtain the label output. This mode is suitable for applications that require frequent interference, and can still maintain relatively reliable results under continuous feeding. Because the labeled data set is limited, the unlabeled data labeling of the GA_SCNNR model uses the results of two small sample prediction models, PLSR and SVR. The Boosting method is used to train two weak regression models to build a stronger and more robust prediction model to add metabolite concentration labels to the process data set.
[0111] Example 5 Spectral Preprocessing
[0112] Spectral preprocessing is an indispensable part of traditional models. The environment of Raman spectroscopy is complex and changeable during the acquisition process. It is easily affected by interference factors such as fluorescence background and environmental radiation. The collected Raman spectral signals have serious noise and baseline drift, which greatly affects the accuracy of Raman spectral analysis. Therefore, traditional regression algorithms need to preprocess the Raman spectrum before modeling and analyzing it, usually including smoothing filtering and baseline correction, so as to improve the accuracy of model prediction.
[0113] The baseline correction method of iterative adaptive reweighted penalized least squares (Adaptive Iteratively Reweighted Penalized Least Squares, AirPLS) is adopted. The core of the algorithm is to complete the adaptive adjustment of the weight of penalized least squares based on the weight of the fitted baseline of the previous iteration and the residual square sum of the original signal. Each iteration of the airPLS algorithm is to minimize the weighted penalized least squares function. The airPLS algorithm quickly and accurately finds the irregularly changing baseline and deducts it. The cost function is shown in formula (3).
[0114]
[0115] In formula (3), represents the coefficient of the nth weight update, x i represents the original Raman spectrum signal, z i represents the correction signal fitting value, and λ expresses the roughness coefficient.
[0116] The Savitzky-Golay filter method (window size 21, third-order polynomial) is used to remove the noise of the Raman spectrum. The data in the window is weighted filtered, and the weighted weight is obtained by least squares fitting of a high-order polynomial. The window fitting function is shown in formula (4)
[0117]
[0118] In formula (4), m is an odd number indicating the window size, a i represents the polynomial coefficient, e i Indicates deviation.
[0119] Standard Normal Variate Transformation (SNV) is used to eliminate the effects of bacterial volume size, surface scattering, and optical path length variation on NIR diffuse reflectance. SNV is performed based on the rows of the spectral array as shown in (5):
[0120]
[0121] In formula (5), x represents a sample point of the original spectral data, Represents the mean of all sample points. The spectrum after SNV processing can be used to eliminate diffuse reflection.
[0122] The reasons for the generation of Raman spectral baseline are very complicated, mainly including the following aspects: first, the impurities of the sample, the intensity of the light source, the wavelength and other factors may cause the generation of fluorescence, thereby interfering with the baseline of the spectrum; secondly, various scattering noises from the instrument, environment and sample will cover the Raman signal of the spectrum, thereby affecting the shape and position of the spectral baseline; in addition, the spectral background noise usually comes from various environmental factors, such as movement intensity, temperature change, humidity change, etc.; instrumental factors such as unstable light source intensity and inaccurate excitation wavelength may also affect the Raman spectral baseline. Noise is caused by the instability and wavelength drift of the light source, the noise of the detector and the mechanical vibration of the spectrometer, as well as the acquisition time, laser power and focal length, which may cause noise to the Raman spectrum.
[0123] The original Raman spectrum can eliminate the intensity difference between different spectra after SNV scattering processing method, while retaining the characteristic information of the scattering spectrum. Secondly, baseline correction can eliminate the influence of baseline drift and make the spectrum smoother and more continuous. Finally, SG filtering can smooth the noise in the spectrum while retaining the signal characteristics of the spectrum, thereby improving the signal-to-noise ratio of the spectrum. After spectral preprocessing, the obtained Raman spectral signal can enhance the signal peak of the sample and optimize the corresponding wavelength and intensity indicators, making the spectral data more accurate and reliable.
[0124] Example 6 Optimal Raman Band Extraction
[0125] The Raman spectrum data of this embodiment contains 2048 characteristic bands, but not all bands contribute to the target value. Therefore, it is necessary to extract characteristic bands from the spectrum during regression, and select characteristic bands with high correlation with the target variable to establish a prediction model. In this study, a variety of substances were predicted, and the characteristic peaks corresponding to different substances were also in different positions.
[0126] Genetic Algorithm (GA) is an optimization algorithm based on natural selection and genetic evolution. The evolution process is driven by the fitness evaluation of individuals in the population. The genetic algorithm represents the potential solution as a string of binary codes, which are crossover and mutation in a similar way to genes during the entire search process. In each generation, the algorithm calculates the "fitness" of individuals through a loop, then selects and replicates or crosses individuals with high fitness, and performs certain mutation operations to introduce diversity in the population, and iterates the evolution until the stopping condition is met.
[0127] Raman spectroscopy uses genetic algorithms for feature extraction, which is a process of repeatedly selecting different bands for regression operations to meet the maximum fitness. This paper performs binary encoding operations on 2048 Raman feature bands. 2048 binary bits are used to represent whether the Raman band is selected or not, and the interval range is [000...0000,111...1111]. 1 represents the selection of the band at this position, and 0 represents that the position is not selected. Figure 3 The process of extracting characteristic bands using genetic algorithm is shown.
[0128] The objective function of optimization is the RMSE of the PLS or SVR model. It should be noted that the objective function is to find the minimum value, while the fitness function is calculated according to the maximum value. The present invention uses the method of taking the inverse of RMSE to solve this problem. The best adaptation band is as follows: Figure 4As shown, the optimal band extracted when the original band length is 2048, the intersection of the gray line and the spectrum is the optimal adaptation band, including (a) the optimal band of glucose concentration, (b) the optimal band of lactic acid content, (c) the optimal band of ammonium ion content, and (d) the optimal band of OD_600 content.
[0129] Example 7 Establishment of regression model
[0130] 1. Model evaluation indicators
[0131] The training results of the regression prediction model are expressed using the root mean square error (RMSE) and the coefficient of determination (Coefficient of Determination, R 2 ) is used to describe the accuracy of the model, as shown in (6) and (7):
[0132]
[0133]
[0134] In formulas (6) and (7), is the value of the i-th true value, is the i-th predicted value of the model, is the mean of the true values, and m is the number of samples. RMSE provides a measure of the average size of the error in the predicted value. A smaller RMSE value indicates a higher prediction accuracy. is a value between 0 and 1, which is used to indicate the proportion of the variability of the dependent variable explained by the model. When the value is close to 1, it means that the model has a strong ability to explain the dependent variable and the fitting effect is good; when the value is close to 0, it means that the model has a weak ability to explain the dependent variable and the fitting effect is poor.
[0135] The robustness of the model is tested through cross-validation. The data set is divided into k non-overlapping subsets, and the model is trained and tested k times. Each time, one of the subsets is selected as the test set, and the remaining k-1 subsets are used as the training set for model training. This is repeated to obtain the evaluation results of the model k times. In this process, each subset can be used as a test set, thereby improving the utilization of data, and because the k evaluation results will be averaged, a more accurate model evaluation result can be obtained.
[0136] 2. Establishment of regression prediction model
[0137] 2.1 The first generation of Raman regression prediction model
[0138] According to the characteristics of the data structure, 26 sets of labeled glucose, lactate, and OD_600 data sets were first used, and all spectra were processed by the method of step 1 of Example 4, including adding baseline and Gaussian noise, and expanding the data set to 416 labeled data sets to increase the diversity and coverage of the data.
[0139] In order to eliminate the noise and scattering effects in the spectrum, the preprocessing method in the traditional model is used. For example, the preprocessing method such as Savitzky-Golay smoothing (window size is 17 data) in Example 5 is used to eliminate the influence of noise scattering. In addition, the spectral data is normalized and the spectral intensity is scaled to the range of 0-1 to eliminate the difference effect of different batches of data.
[0140] Through model integration, the regression parameters of the PLSR and SVR models were obtained, and a more accurate and adaptable 1_Gen model was obtained through the iterative method of the Boosting model. The trained 1_Gen model can be used in the 2_Gen model to mark the detection parameters of a larger amount of process spectral data.
[0141] Figure 5 The calculation process of 1_Gen Mode is shown. The PLSR model is developed based on the Plsregress() function of MTALAB R2020a, and the number of principal components of the PLSR model is set to 3. The SVR model is developed based on the Fitrsvm() function, using the normal radial basis kernel function (RBF) as the kernel function for nonlinear regression fitting.
[0142] 2.2 Second-generation Raman regression prediction model
[0143] The second generation model aims to label 625 unlabeled process spectral data sets for the training of the GA_SCNNR model. The trained 1_Gen Mode can "label" the process spectral data set. In order to add time series labels, the cubic spline interpolation method is used to densify the original 26 discrete label values into 625 points to represent the concentrations of four culture products (glucose, lactate, ammonium ions, OD_600). The labels added using the 1_Gen Model method are affected by the Raman spectral scattering error, resulting in the predicted parameter curve is not smooth, and there will be small intensity jagged data, such as Figure 6 As shown. In order to smooth the data, a polynomial fitting method can be used. By using these two label adding methods and multiplying by appropriate weight coefficients, reasonable labeled data can be obtained.
[0144] The genetic algorithm mentioned above was also used to process four different test substances (including glucose, lactate, ammonium ion, and OD_600) to extract the characteristic bands corresponding to each substance. Through the genetic algorithm, the characteristic positions corresponding to the substance concentration were extracted from the original spectrum length (2048 points). This operation reduced the spectrum length to features related to the substance concentration. In order to maintain the consistency of the model and enhance the spectral features, we used the transverse cubic spline interpolation method to restore the spectrum to the original length (2048 points). The changes in peak lengths of different substances are shown in Table 1. Figure 6 The calculation process of the 2_Gen model is shown.
[0145] Table 1 Characteristic bands of four substances, extractant characteristic enhancement
[0146]
[0147] The first batch of "labeled" data sets (625 items) and the labeled data sets (26 items) together constitute a semi-supervised data set (651 items) to train the SCNNR model for four culture substances. The sampling prediction of the entire Raman spectrum process is realized, and the model can better reflect the process data changes of the substance content.
[0148] 2.3 The third generation Raman regression prediction model
[0149] The third-generation model based on transfer learning is used to solve the problem of target protein expression detection. The expression of the target protein needs to be cultured in recombinant E. coli for 20 hours before the inducer is added. The protein expression cycle accounts for about 1 / 5 of the entire culture cycle. Due to the short expression time, it is more difficult to obtain a large number of offline common values of the target protein than the other four substances.
[0150] First, the SCNNR-based model is pre-trained using the semi-supervised dataset of OD_600. In the pre-training stage, the model as a feature extractor needs to fully capture the spectral features, so the genetic algorithm is not used for spectral feature extraction. Figure 7 Transfer learning is shown to solve the target protein content.
[0151] Secondly, the SCNNR (OD_600) model was frozen, and two fully connected layers were introduced based on this model, each containing 128 and 64 neurons respectively. Eight items of protein reference data were obtained from the first batch, and the data set was expanded 8 times to 64 items after data enhancement. Then, the pre-trained model was fine-tuned using the target protein data set, and the model parameters were adjusted according to the target task to improve the performance of the model on the target protein expression task.
[0152] A two-dimensional convolutional neural network framework is used to train one-dimensional Raman spectroscopy data. The convolutional network consists of a four-dimensional tensor layer, two convolutional layers, two pooling layers, two fully connected layers, and a dropout layer; the migration model adds two blank fully connected layers to the convolutional network.
[0153] Since the length of Raman spectrum data is 2048, in order to meet the input requirements of the two-dimensional convolutional network, the reshape function is used to convert the spectrum data into a four-dimensional tensor [x_transform,1,1,n], where 'x_transform' represents the number of rows of one-dimensional Raman spectrum data, the second parameter represents the number of columns as 1, the third parameter represents the number of channels as 1, and the fourth parameter represents the number of samples of input data. At this point, the one-dimensional spectrum data can be regarded as a two-dimensional grayscale image, and can be directly applied to the two-dimensional convolutional network for training.
[0154] The convolution layer is used for feature extraction. The first three layers have 64, 32 and 32 convolution kernels, and the convolution kernel sizes are (5*1), (3*1) and (3*1). The maximum pooling layer extracts the largest element from the feature map area covered by the filter. The size of the pooling kernel is (2*1). The scaling of the feature map improves the stability during training. The convolution kernel and the pooling kernel are flattened into filters with a width of 1. The features of the convolution layer and the pooling layer are received through a fully connected layer of 256 neurons. Through the combination and integration of weight parameters, the features are expressed in a more complex and high-dimensional manner. Dropout (0.7) is introduced to randomly close 70% of the neurons to prevent the model from overfitting.
[0155] In terms of training configuration, the gradient-based optimized Adam optimizer is selected. To reduce memory usage, the minimum batch size of each data 'MiniBatchSize' is set to 50, and all data are trained 100 times. The learning rate reduction cycle is 20 rounds, and the initial learning rate (0.01) will be reduced (0.001) in each specified cycle, and RMSE is used as the loss function. In the 50 rounds without training, 30% of the validation set is introduced for verification, and the under-fitting and over-fitting of the model can be intuitively observed. The development environment used is based on Python3.10 and "Deep Learning Toolbox" in MATLAB R2020a, and TensorFlow2.10.0 is used as the two-dimensional CNN development framework to complete CNNR and transfer learning. Figure 8 This is the GA_SCNNR training process.
[0156] From the training process diagram, we can see that when the data is iterated for 100 rounds, both the training set and the validation set can achieve a lower loss. By constructing one-dimensional data of a four-dimensional tensor and using a two-dimensional model framework to train the data, convergence can be achieved quickly.
[0157] 2.4. Raman detection of target protein expression
[0158] When Raman spectroscopy is used for real-time monitoring of the target protein content in recombinant Escherichia coli, the contradiction between the short expression cycle and the long sampling time each time is the fundamental reason why it is difficult to obtain a large amount of data. The limited number of offline samples makes it difficult to accurately fit the predicted labels. This study attempts to use the full spectrum to establish the OD600 CNNR model to train a small amount of target protein expression data sets in a transfer learning manner. At four moments when the target protein content was 0, 0.10, 0.52, and 1.20 mg / L, 5 spectra of similar time series were taken at each moment for principal component analysis (PCA) of the Raman spectra. Fig. 9 This indicates that laser probe Raman can be used for quantitative analysis of the target protein content.
[0159] The three principal components can distinguish the Raman spectra of four different target protein concentrations. The first dimension contains more than 90% of the information of the spectrum, which can basically make a qualitative distinction of the concentration. PCA proves the feasibility of Raman spectroscopy in the detection of target protein ProA-5m. Combined with the CNNR (OD_600) after migration, quantitative detection can be achieved.
[0160] Example 8 Application of prediction model
[0161] 1. Comparison of prediction models
[0162] In the first two batches of cultivation experiments, 26 offline reference data on glucose, lactate, ammonium ion and OD_600 concentrations were obtained each time. In order to verify the rationality of the 625 marked process spectra, five gradients of process spectrum data of 0%, 10%, 30%, 50% and 80% were added to the offline reference data of glucose for training PLSR, SVR and SCNNR prediction models. By calculating the mean of RMSEcv of each model, the results are shown in Fig.10 As shown in a. When the amount of process spectrum introduced is small, the performance of PLSR and SVR is better than SCNNR. However, as the amount of process data increases, the PLSR model reaches data saturation and the computational complexity of the SVR model also increases significantly. At this time, the SCNNR's ability to fit and process big data is reflected. The specific model performance is shown in Fig.10 As shown in b.
[0163] In order to verify the robustness of the model under different conditions, two batches of 52 offline datasets with glucose concentrations were used for model training. The offline datasets were preprocessed (including Savitzky-Golay filtering (6,21), AirPLS baseline correction and SNV), and the model determination coefficients were verified on the PLSR, SVR and CNNR models respectively with the unprocessed original datasets. The specific results are shown in Figure 2. Fig.11 As shown, (a) is the original spectrum; (b) is SG filtering; (c) is SNV scattering processing; (d) is air PLS baseline correction; (e) is normalization; and (f) is the impact of R2 preprocessing.
[0164] According to the above analysis, PLSR and SVR are very dependent on the preprocessing steps of the data when performing regression prediction on spectral data. Therefore, the spectrum needs to be preprocessed to extract effective features. However, using CNNR can automatically identify relevant features in the spectrum by learning feature extractors, thereby avoiding the preprocessing steps in traditional methods. In the convolution and pooling layers in CNNR, the network can automatically learn filters and feature maps to extract relevant features in spectral data. These operations are based on the pattern and structure of the data itself, reducing human intervention and preprocessing processes and simplifying the analysis process. The reason is that since the convolution kernel and pooling kernel in CNNR can act as filters themselves, they have little effect on the coefficient of determination of the model before and after preprocessing. Therefore, the CNNR convolutional network can be used as an alternative method for filtering, baseline correction and SNV (Standard Normal Variate) processing of spectral data.
[0165] 2. Semi-supervised Convolutional Neural Network
[0166] The main difference between SCNNR and CNNR is that the labeled process spectra are used in the dataset. A total of 1,250 labeled process spectra were obtained in the two batches of experiments. The labeled process spectra and the labeled spectra together constitute 1,302 semi-supervised datasets for convolutional neural network regression training, and the data of all analytes including the expression content of the target protein have been expanded and improved.
[0167] According to the two types of data labeling methods in Example 4, both the model calculation method and the interpolation method can be used to mark the process spectrum. Taking the concentration of glucose as an example, the reference value calculated by the 1_Gen Mode model calculation method is first used to calculate the regression parameters of the model of the marked spectrum, and then used to mark the process spectrum. The calculation method can reflect the real concentration change trend to a certain extent. The Raman spectra sampled before and after the adjacent moments fluctuate due to errors such as scattering noise, resulting in the calculated values at adjacent moments not being smooth. To solve this problem, a smooth and natural concentration change curve can be fitted based on the calculated concentration values using a polynomial fitting method. In addition, the three-spline interpolation method is used to add process values to the existing discrete points according to the number of process spectra, and the resulting concentration change curve is more natural. By combining the model calculation method and the interpolation method, noise fluctuations and discontinuities of the process spectrum can be better handled to obtain a relatively smooth and accurate concentration change curve. Fig.12 The cross-validation performance of the two process labeling methods in 1_Gen Mode is shown, (a) the labels of glucose concentration calculated by wi interpolation method and 1_Gen Mode, (b) the RMSE box plot of SCNNR of the datasets of the two labeling methods under 10_fold cross validation.
[0168] The labeling process spectra and labeling spectra labeled in two different ways were used as semi-supervised data sets to perform regression prediction of SCCNR. REMS was used to verify the accuracy of model fitting. In order to measure the robustness of the model, 10-fold cross-validation was repeated 5 times to generate 50 randomly divided data sets for training and testing. The figure shows the distribution of RESMcv of glucose content in two different labeled data sets. Fig.12 As shown in (b), no outliers appeared in the two labeling schemes in the 10-fold cross validation, and the box plot data distribution obtained by the model calculation method was more stable than that by the interpolation method. Under the objective law that the concentration of substances will show a stable change trend at any time in the cultivation process, the concentration value calculated by Raman spectroscopy should also be stable, so the stability of cross validation should not be considered alone. The model calculation method shows the real-time volatility of the concentration of substances, while the interpolation method highlights the stability of the concentration change. Therefore, different corresponding weights should be applied to mark more reliable process labels based on the characteristics of the two types of labeling methods.
[0169] 3. Model robustness
[0170] The same Raman spectrum corresponds to the regression labels of multiple substances. The present invention uses the classic spectral regression model PLSR (labeled spectral data set), CNNR (labeled spectral data set) regression model and GA_SCNNR (labeled spectral data + labeled process spectral data set) for comparison, and tests the model accuracy at glucose concentration, lactic acid content, ammonium ion concentration, and target protein expression content. Each type of data set is divided into a training set and a test set according to a ratio of 7:3, and the RMSEP mean is taken as the test result after 10 repetitions, as shown in Table 2.
[0171] Table 2 RMSEP mean detection results
[0172]
[0173] GA_SCNNR has a significant improvement over PLSR in the regression of the content labels of the five types of substances due to the addition of a large number of labeled process spectra in the data set. In parallel, the prediction of the expression content of the target protein is achieved through transfer learning based on the trained SCNNR (OD_600), solving the problem of accurately predicting the concentration of the target protein in a small data set. Fig.12 The cross-validation performance of different substances on GA_SCNNR is shown. The data set is divided into 10 parts and repeated 10 times. The coefficient of determination R2 is used as a unified measurement indicator for different test substances.
[0174] Each type of test substance represents a different property of the growth process of recombinant E. coli. The dimensions of each type of substance are inconsistent, so simply examining RMSEcv does not have an intuitive meaning. The determination coefficient ranges from 0 to 1, and the differences caused by the dimensions can be ignored. Analysis Fig.13 It can be seen from the central tendency and dispersion that, except for ammonium ions, GA_SCNNR has good stability in the detection of the other four substances and the determination coefficient is close to 1, especially in the OD_600 detection related to the density of E. coli. The data show that SCNNR has good accuracy and robustness and can be used to establish multivariate regression models for actual biological culture systems. In addition, the spectral characteristics of ammonium ions may overlap with the spectral characteristics of other substances, resulting in the inability to clearly identify the ammonium ion signal in the spectral spectrum.
[0175] 4. Real-time process detection
[0176] Real-time monitoring can help evaluate the stability of E. coli culture and detect abnormal conditions in a timely manner, such as mutations or poor growth characteristics. It helps to adjust the culture conditions in a timely manner to ensure the stability and consistency of the culture process, which is of great significance in stability assessment and process control. In addition, the present invention predicts the yield and trend of E. coli culture products. This helps to optimize the culture strategy and improve the yield and quality of the target product.
[0177] GA_SCNNR showed good accuracy and robustness in the above test results. The present invention carried out three batches of recombinant E. coli culture, and took the results of the first two batches as training sets to train the GA_SCNNR framework. The multi-objective training process of the model is as follows Fig.14 As shown in the figure, in the third experiment, the GA_SCNNR trained was used to guide the third training in real-time detection process, and offline sampling detection was also performed to verify the model results.
[0178] The GA_SCNNR multi-parameter regression model trained with the semi-supervised datasets obtained in the first two batches showed high accuracy and stability in the training of glucose, lactate, OD_600 and target protein. However, the performance of the model was relatively poor in the detection of ammonium ions.
[0179] The first two batches of data have completed the training of GA_SCNNR, and the third batch of data is used for verification. A Raman spectrum can be obtained every 1.5 minutes and calculated by the GA_SCNNR model. During the recombinant protein culture process, the calculated real-time parameter indicators can display the dynamic curves of multiple parameters online, such as Fig.15 As shown, it can be used for real-time detection of parameters during the recombinant protein cultivation process.
[0180] During the cultivation process, sampling and offline testing were also used to verify the accuracy of the model. Fig.16 As shown. Raman real-time detection will show oscillatory properties within the range of the field. The introduction of the fifth-order polynomial curve fitting method makes the curve smoother, while achieving the stable uniqueness of the field position parameter detection at the same time. More importantly, the recombinant protein prediction model through transfer learning also has a high accuracy, such as Fig.16 As shown in (e), before the 250th sample, the offline detection value of the recombinant protein without the addition of the inducer also approaches 0, and the actual prediction value is also relatively stable and approximately equal to 0. When the inducer is added at the 250th sample, the real-time value of the recombinant protein model can also respond quickly.
[0181] It can be seen that the combination of Raman spectroscopy detection technology and GA_SCNNR can accurately and quickly detect multi-parameter indicators in the culture process of recombinant E. coli, realize the detection of key parameters in the culture process, and detect the value of the content of the target product.
[0182] Finally, it should be noted that the above embodiments are used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the purpose and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for real-time detection of multiple substances in a microbial culture process, characterized in that: The following steps are involved: S0 ferments and cultures the microorganism to obtain a fermentation sample; S1 establishes a data set: during the culture process, the Raman spectral data of the fermentation samples are continuously collected to obtain an unlabeled process data set; at the same time, samples are intermittently taken and the concentration of substances in the fermentation samples is detected to obtain a labeled offline data set; S2 builds the first generation Raman regression prediction model: expands and preprocesses the labeled offline data set for training PLSR and SVR models; calculates the regression parameters of the PLSR and SVR models through model integration, and obtains the 1_Gen model through the iterative method of the boosting model; S3 establishes the second-generation Raman regression prediction model: the process data set is marked using the 1_Gen model and cubic spline interpolation method, and the characteristic bands of the marked process data set are extracted using a genetic algorithm to obtain a marked process data set; the marked offline data set and the marked process data set are combined into a semi-supervised data set to train a genetic semi-supervised convolutional network model; S4 established the third-generation Raman regression prediction model: first, the SCNNR-based model was pre-trained using the semi-supervised dataset of OD_600; second, the SCNNR (OD_600) model was frozen, and two fully connected layers were introduced based on this model, each containing 128 and 64 neurons respectively; then, the pre-trained model was fine-tuned using the dataset of the target protein, and the model parameters were adjusted according to the target task; The genetic algorithm uses the RMSE of the PLS or SVR model as the objective function, and takes the inverse of the root mean square error (RMSE) of the objective function as the fitness function; The substances include glucose, lactic acid, ammonium ions, OD600 and target protein.
2. The method for real-time detection of multiple substances in a microbial culture process according to claim 1, characterized in that: In step S1, the method for continuously collecting Raman spectrum data of the fermentation sample includes: connecting a Raman spectrometer to the fermentation sample to detect the Raman spectrum data of the fermentation sample in real time; The method for intermittent sampling and detecting the concentration of a substance in a fermentation sample comprises: collecting the fermentation sample at a certain interval and detecting the absorbance value and the concentration of the substance.
3. The method for real-time detection of multiple substances in a microbial culture process according to claim 2, characterized in that: The interval time is 1h.
4. The method for real-time detection of multiple substances in a microbial culture process according to claim 1, characterized in that: The labeled data set is expanded and preprocessed for training PLSR and SVR models. The expansion method includes: adding baseline slope, introducing Gaussian noise and proportional number method.
5. The method for real-time detection of multiple substances in a microbial culture process according to claim 4, characterized in that: The preprocessing method includes processing the Raman spectrum data using a baseline correction method, a Savitzky-Golay filtering method, a standard normal variable transformation method, and normalization.
6. The method for real-time detection of multiple substances in a microbial culture process according to claim 1, characterized in that: The cubic spline interpolation method includes marking the process data using an interpolation function, and the interpolation function is shown in formula (1): Among them, S i represents the interpolation function value of the i-th point, X i represents the i-th sample point, y i represents the label value of the i-th sample point, S0 represents the function value of the left interval segment of the interpolation function, S n Represents the function value of the right interval segment point of the interpolation function.
7. The method for real-time detection of multiple substances in a microbial culture process according to claim 1, characterized in that: After the characteristic band is extracted, the characteristic band is enhanced. The method for enhancing the characteristic band includes: enhancing the characteristic band by using a transverse cubic spline interpolation method to restore it to the original spectrum length.
8. A device for real-time detection of multiple substances in a microbial culture process, characterized in that: include: Dataset labeling module, regression model building module and transfer learning module; The data set labeling module is used to label the process data set: including expanding and preprocessing the labeled offline data set for training the PLSR and SVR models; calculating the regression parameters of the PLSR and SVR models by model integration, and obtaining the 1_Gen model by the iterative method of the boosting model; The regression model building module is used to establish a regression model between Raman spectrum and substance concentration: including using 1_Gen model and cubic spline interpolation method to mark the process data set, and using genetic algorithm to extract characteristic bands of the marked process data set to obtain the marked process data set; the marked offline data set and the marked process data set are combined into a semi-supervised data set to train the genetic semi-supervised convolutional network model; The transfer learning module is used to establish a semi-supervised convolutional neural network regression model for a small amount of target substances: first, pre-training a SCNNR-based model using a semi-supervised dataset of OD_600; second, freezing the SCNNR (OD_600) model, and then introducing two fully connected layers based on this model, each layer containing 128 and 64 neurons respectively; then, fine-tuning the pre-trained model using the dataset of the target protein, and adjusting the model parameters according to the target task.
9. A device for real-time detection of multiple substances in a microbial culture process, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for real-time detection of multiple substances in a microbial culture process according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for real-time detection of multiple substances in a microbial culture process according to any one of claims 1 to 7.
