Background
3,3', 5' -Tetramethyl benzidine (TMB) as a high-efficiency and safe chromogenic substrate of horseradish peroxidase (HRP) has been widely used in various biological analysis and clinical diagnosis fields such as enzyme-linked immunosorbent assay (ELISA), immunoblotting (Western Blot) and Immunohistochemistry (IHC). The performance of TMB color development liquid, especially the detection sensitivity (usually expressed in terms of absorbance OD value) and long-term storage stability, directly determine the reliability, accuracy and detection lower limit of the whole analytical detection method, so that the development of TMB color development liquid formula with higher sensitivity and better stability has important significance for improving the quality and market competitiveness of In Vitro Diagnostic (IVD) reagents.
The traditional TMB color development liquid formula optimization process is seriously dependent on experience of experiment scientists and labor-intensive error testing methods. One typical method is the One-Variable-at-a-Time (OVAT), i.e., the concentration of all other components is fixed, and only the concentration of a single component is changed to find its optimum. This approach, while intuitive, has the fatal disadvantage of completely ignoring complex synergistic effects (SYNERGISTIC EFFECT) or antagonistic effects (Antagonistic Effect) between chemical components. For example, changes in the concentration of the stabilizing agent PVP may affect the optimum pH, while the presence of the chelating agent EDTA may interact with the metal ions in the buffer system. The OVAT method cannot capture these cross effects, is very prone to be trapped in a locally optimal solution, and is difficult to find high performance formulations that are truly produced by multicomponent synergy.
To overcome the limitations of OVAT, those skilled in the art began to employ some more systematic experimental design (Design of Experiments, doE) methods, such as the response surface method (Response Surface Methodology, RSM) and Taguchi methods. These methods allow to study the interaction of multiple variables to some extent by designing a smaller, orthogonal experimental matrix. However, these conventional DOE methods also require a large number of experimental samples as the number of variable components in the recipe increases further, creating a high dimensional (e.g., over 8-10 variables) recipe space. Therefore, in order to reduce the trial-and-error cost, some machine learning auxiliary means are introduced into the fields of analytical chemistry, biological agent research and development and the like, and are used for realizing low-cost, rapid and efficient agent model driven (Surrogate assisted) experimental result prediction. The Bayesian optimization (Bayesian Optimization, BO) is one of the representative global optimization methods capable of establishing a proxy model for an expensive chemical experiment under a small experiment sample size, and has great application potential.
The core essence of bayesian optimization is its "proxy model driven intelligent exploration" paradigm. The agent model is used as a core driving algorithm of the method to directly determine global optimization precision of the BO. Gaussian process regression (Gaussian Process Regression, GPR) is recognized by its unique theoretical advantages as the most natural and powerful "golden partner" in combination with bayesian optimization frameworks. This is mainly due to the fact that the GPR model not only fits the relationships between existing experimental data points as other models (such as neural networks or random forests) and gives a predicted mean (μ) for unknown points, it also provides each predicted point with its "uncertainty" or confidence interval (i.e., predicted variance σ2) of its predicted value.
It is this ability to provide both "predictors" and "uncertainties" that makes the GPR model a most representative combination in bayesian optimization in conjunction with the desired improvement (Expected Improvement, EI) approach. However, despite the fact that the binding of GPR to BO is very mature in theory, when applied directly in real, high-dimensional chemical formulation optimization practices, there are still two major technical challenges arising from the inherent properties of GPR models themselves:
First, model degradation under high-dimensional, sparse data. For the reagent optimization problem driven by data, under the condition of as few experimental samples as possible, the establishment of the agent model with as high accuracy as possible has very important engineering significance, and can greatly reduce the research and development cost. However, when dimension D >10 of the recipe design, expensive and rare samples of real experimental data fall in "similarity" in Gao Weijie spaces, resulting in a decrease in the GPR proxy model's ability to describe chemical space, leading to an increase in prediction error.
And secondly, contradiction between sequential decision and parallel requirements. The standard Bayesian optimization flow is sequential, namely after the GPR model is updated, an optimal sample to be added is found through an EI function, and after an experiment is completed, the next iteration is performed. The mode of recommending only one point at a time causes that other available experimental resources are in idle waiting state in the sequential decision process, so that the efficiency of the whole optimization flow is greatly limited.
Therefore, although GPR is an ideal proxy model for realizing high-efficiency Bayesian optimization, how to overcome the vulnerability of GPR under high-dimensional and sparse data and extend the vulnerability from sequential decision to high-efficiency parallel decision becomes an important difficulty for restricting the Bayesian optimization effect in the field of the existing complex TMB color development liquid formula.
Disclosure of Invention
In view of the above, the invention provides a TMB color development liquid formula optimization method, a system, a computer device and a storage medium, which can meet the requirement of parallel experiments, and can enable a research and development team to obtain richer and more complementary information in one experiment period, thereby greatly shortening the research and development period of the whole optimization project.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
a TMB color development liquid formula optimization method comprises the following steps:
step 1, acquiring an experimental data set of a formula sample to obtain an N-dimensional formula space;
Step 2, constructing a forward mapping relation from an N-dimensional formula space to an M-dimensional hidden space;
Step 3, constructing a Gaussian process regression proxy model, and training the Gaussian process regression proxy model based on an initial experimental data set;
step 4, calculating EI values of candidate points in the M-dimensional hidden space by using an expected improvement point adding strategy based on a trained Gaussian process regression proxy model to obtain optimal hidden space points;
Step 5, reversely mapping the optimal hidden space point through the forward mapping relation of PCA to obtain a new N-dimensional suggested formula;
And 6, performing experimental verification on the new N-dimensional suggested formula, adding a verification result as a new experimental data point into an experimental data set, returning to the model training process for iterative optimization until a preset convergence condition is met, and outputting the optimized suggested formula.
Preferably, the experimental data set includes a plurality of initial formula samples and training data sets of corresponding performance indexes, each initial formula sample is defined by concentration values of N chemical components, the performance indexes are absorbance maximum values of TMB color reaction under specific wavelength, and an N-dimensional formula space is formed by the concentration values of N chemical components.
Preferably, in the step 2, the principal component analysis method is adopted to process the N-dimensional formula space, so as to construct a forward mapping relationship from the N-dimensional formula space to an M-dimensional hidden space, where M < N.
Preferably, the step 4 calculates the EI value of the candidate point by using the expected improved point adding strategy, and performs k-Means clustering on a preset number of candidate points with high EI value to obtain the optimal hidden space point.
Preferably, before the step 1 of obtaining the experimental data set of the recipe sample, an experimental constraint defining step is further included, and according to the chemical priori knowledge or the preliminary experimental observation, components that can cause adverse reactions of precipitation are identified and fixed from the N chemical components, so as to reduce the dimension N of actual optimization.
Preferably, the N chemical components comprise at least 8 of TMB, hydrogen peroxide, a pH regulator, sodium acetate, polyvinylpyrrolidone, EDTA, dimethyl sulfoxide, trehalose, glycerol, citric acid, sodium thiosulfate and 1,2, 6-hexanetriol, wherein N is more than or equal to 10.
Preferably, a TMB color development liquid formula optimization system comprises:
the data acquisition module is used for acquiring an experimental data set of the formula sample to obtain an N-dimensional formula space;
The mapping module is used for constructing a forward mapping relation from the N-dimensional formula space to the M-dimensional hidden space;
The model training module is used for constructing a Gaussian process regression proxy model and training the Gaussian process regression proxy model based on an initial experimental data set;
the optimal hidden space calculation module is used for calculating EI values of candidate points in the M-dimensional hidden space by using an expected improvement point adding strategy based on a trained Gaussian process regression proxy model to obtain optimal hidden space points;
the reverse mapping module is used for carrying out reverse mapping on the optimal hidden space point through the forward mapping relation of PCA to obtain a new N-dimensional suggested formula;
And the optimization module is used for carrying out experimental verification on the new N-dimensional suggested formula, adding a verification result as a new experimental data point into an experimental data set, returning to the model training process for iterative optimization until a preset convergence condition is met, and outputting the optimized suggested formula.
Preferably, a computer device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the TMB color development solution formulation optimization method when executing the computer program.
Preferably, a computer readable storage medium has stored thereon a computer program which when executed by a processor performs the steps of a TMB color development solution formulation optimization method.
Compared with the prior art, the invention discloses and provides a TMB color development liquid formula optimization method, a system, computer equipment and a storage medium, which have one or more of the following remarkable beneficial effects:
1. The dimension disaster is effectively overcome, and the dimension optimization performance and robustness are obviously improved. The present invention innovatively introduces a "hidden space exploration" strategy based on Principal Component Analysis (PCA). By intelligently mapping the original high-dimensional (e.g., 12-dimensional or more) chemical formulation space into a low-dimensional hidden space that retains the primary change information, the invention enables the core GPR proxy model to be trained and predicted in a lower-dimensional space that is more data-intensive and more structurally-distinct. The method and the device fundamentally solve the problem that in the prior art, when the standard Bayesian optimization is used for processing high-dimensional sparse data, optimization is stagnated or failed due to the overfitting of a GPR model, training failure or covariance matrix morbidity. Therefore, the invention can perform more stable, more accurate and more reliable global optimization on the high-dimensional complex formula which is difficult to process by the traditional method.
The real parallel optimization is realized, and the research and development period is greatly shortened. The invention provides a high-efficiency 'batch dotting strategy' based on k-Means clustering, which aims to solve the contradiction between the sequential decision mode of 'one point at a time' of standard Bayesian optimization and the modern parallel experiment requirement. The strategy can generate a group of suggested formulas with both high potential and high diversity at one time by intelligently dividing all candidate points with high potential (high EI value). The development team can fully utilize parallel experimental equipment such as 96-well plates, automatic workstations and the like to acquire maximized experimental data with complementary information in one experimental period. Compared with sequential optimization in the prior art, the method upgrades the single-thread decision into multi-thread exploration, greatly reduces resource idling caused by algorithm waiting, and shortens the research and development period of the whole formula optimization project by several times.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1:
As shown in fig. 4, the embodiment of the invention discloses a method for optimizing a formula of a TMB color developing solution, which comprises the following steps:
step 1, acquiring an experimental data set of a formula sample to obtain an N-dimensional formula space;
Step 2, constructing a forward mapping relation from an N-dimensional formula space to an M-dimensional hidden space;
Step 3, constructing a Gaussian process regression proxy model, and training the Gaussian process regression proxy model based on an initial experimental data set;
step 4, calculating EI values of candidate points in the M-dimensional hidden space by using an expected improvement point adding strategy based on a trained Gaussian process regression proxy model to obtain optimal hidden space points;
Step 5, reversely mapping the optimal hidden space point through the forward mapping relation of PCA to obtain a new N-dimensional suggested formula;
And 6, performing experimental verification on the new N-dimensional suggested formula, adding a verification result as a new experimental data point into an experimental data set, returning to the model training process for iterative optimization until a preset convergence condition is met, and outputting the optimized suggested formula.
Specifically, the experimental data set includes a plurality of initial formula samples and training data sets of corresponding performance indexes thereof, each initial formula sample is defined by concentration values of N chemical components, the performance indexes are absorbance maximum values of TMB color development reaction under specific wavelength, and an N-dimensional formula space is formed by the concentration values of N chemical components.
Specifically, in the step 2, the N-dimensional formula space is processed by adopting a principal component analysis method, so as to construct a forward mapping relationship from the N-dimensional formula space to an M-dimensional hidden space, wherein M < N.
Specifically, in the step 4, the expected improvement point adding strategy is utilized, the EI value of the candidate points is calculated, and k-Means clustering is performed on a preset number of candidate points with high EI values, so that the optimal hidden space points are obtained.
Specifically, before the step 1 of obtaining the experimental data set of the formula sample, an experimental constraint defining step is further included, and according to the chemical priori knowledge or the preliminary experimental observation, components which can cause adverse reactions of precipitation are identified and fixed from the N chemical components, so as to reduce the dimension N of actual optimization.
Specifically, the N chemical components comprise at least 8 of TMB, hydrogen peroxide, a pH regulator, sodium acetate, polyvinylpyrrolidone, EDTA, dimethyl sulfoxide, trehalose, glycerol, citric acid, sodium thiosulfate and 1,2, 6-hexanetriol, wherein N is more than or equal to 10.
In one embodiment of the present invention, the data preparing step comprises obtaining a training data set comprising a plurality of initial recipe samples and their corresponding performance indicators (e.g., OD max);
The dimension-reducing mapping step is to process the N dimension formula space by adopting a Principal Component Analysis (PCA) method to construct a forward mapping relation from the N dimension formula space to an M dimension (M < N) hidden space;
(1)
Wherein X is original formula data of N dimension, Z is hidden space coordinate of M dimension, mu X is mean value of X, W is N X M projection matrix obtained by PCA calculation;
The agent model construction step, training a Gaussian Process Regression (GPR) agent model based on a training data set D train in an M-dimensional hidden space;
(2)
Wherein D train is the training dataset, μ (z ) To predict the mean, σ 2 (z) To predict variance.
Calculating EI values of a large number of candidate points by using an Expected Improvement (EI) point adding strategy in an M-dimensional hidden space based on a GPR model, and carrying out k-Means clustering on the candidate points with high EI values to obtain a group of optimal hidden space points with diversity;
(3)
Wherein y (z) = (μ (z) -y best)/σ(z),ybest is the best performance index currently known, Φ and A cumulative distribution function and a probability density function of the standard normal distribution, respectively.
Reversely mapping the set of optimal hidden space points to obtain a set of newly-built N-dimensional proposal formula through PCA reversely mapping;
(4)
Where Z new is the set of best points newly found in hidden space and W' is the transpose of the projection matrix W.
And (c) an iterative optimization step, namely adding the experimental result of the new formula into the training data set, and returning to the step b) for iteration until the convergence condition is met.
Specifically, a TMB color development liquid formula optimizing system includes:
the data acquisition module is used for acquiring an experimental data set of the formula sample to obtain an N-dimensional formula space;
The mapping module is used for constructing a forward mapping relation from the N-dimensional formula space to the M-dimensional hidden space;
The model training module is used for constructing a Gaussian process regression proxy model and training the Gaussian process regression proxy model based on an initial experimental data set;
the optimal hidden space calculation module is used for calculating EI values of candidate points in the M-dimensional hidden space by using an expected improvement point adding strategy based on a trained Gaussian process regression proxy model to obtain optimal hidden space points;
the reverse mapping module is used for carrying out reverse mapping on the optimal hidden space point through the forward mapping relation of PCA to obtain a new N-dimensional suggested formula;
And the optimization module is used for carrying out experimental verification on the new N-dimensional suggested formula, adding a verification result as a new experimental data point into an experimental data set, returning to the model training process for iterative optimization until a preset convergence condition is met, and outputting the optimized suggested formula.
Specifically, the computer equipment comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the TMB color development liquid formula optimization method when executing the computer program.
In particular, a computer readable storage medium has stored thereon a computer program which when executed by a processor performs the steps of a TMB color development solution formulation optimization method.
In conclusion, the method and the device effectively solve the problem that the proxy model training is difficult under high-dimensional sparse data by optimizing in a low-dimensional hidden space, improve model prediction precision and optimization stability, meet the requirement of parallel experiments in modern chemical research and development through a batch dotting strategy, greatly shorten the research and development period, and efficiently and steadily find the globally optimal solution of the high-dimensional complex TMB color development liquid formula.
Example 2:
as shown in fig. 1, in a specific embodiment of the present invention, the method includes the following steps:
Step 100, data preparation.
An initial experimental data set is collected or designed. For example, 18 sets of initial TMB formula samples were designed by Latin Hypercube Sampling (LHS) or based on chemical experience. Each sample is a 12-dimensional vector. Experiments were performed on these 18 sets of formulations, whose OD max values under specific conditions were measured, to construct an 18X 12 input matrix X orig and an 18X 1 output vector Y OD.
Step 200, dimension reduction mapping.
The input matrix X orig of 18×12 is normalized to obtain X scaled, and then a Principal Component Analysis (PCA) method is employed. The method obtains a projection matrix coeff by carrying out eigenvalue decomposition on a covariance matrix of X scaled. The coordinates X latent of the sample in hidden space are obtained by the following transformation:
(5)
Wherein coeff M is the first M columns of the projection matrix coeff corresponding to the maximum M eigenvalues. In the present embodiment, m=5 is set.
And 300, constructing a proxy model.
In 5-dimensional hidden space, a GPR proxy model was trained using X latent and normalized Y OD_scaled. The model uses an anisotropic square-index kernel function and optimizes its super-parameters (such as length scale and signal variance) by maximizing the edge likelihood function.
And 400, searching points in batches.
Within the boundaries of the 5-dimensional hidden space, a large number (e.g., 50000) of candidate points are generated by Latin hypercube sampling.
Using the trained GPR model, the OD mean and variance of these 50000 candidate points were predicted.
Based on the prediction result and the currently known optimal OD value f best, a desired improvement (EI) value for each candidate point is calculated. The EI value calculating method is that
(6)
Where y= (μ (z cand)-ybest_scaled)/σ(zcand).
Note that all calculations herein are performed on a normalized scale.
The 1000 candidate points with the highest EI values are screened out, and the points form a 'high potential area'.
The k-Means clustering algorithm is run for these 1000 points (in 5-dimensional hidden space), setting the number of clusters to 10. The algorithm will output 10 cluster center points, which are the best exploration point for our proposed batch with diversity. This process can be seen in the visual illustration of fig. 2.
Step 500, reverse mapping. The 10 5-dimensional hidden space center points C latent obtained in the step 400 are reversely mapped back to the 12-dimensional real chemical formula space through the inverse transformation of PCA, and 10 groups of new suggested formulas C real are obtained. The inverse transformation process includes two steps, first coordinate inversion and then inverse normalization.
(7)
(8)
Where coeff M' is the transpose of the 5-dimensional projection matrix, σ X and μ X are the standard deviation and mean of the original 12-dimensional data calculated in step 200.
Step 600, iterative optimization. Parallel experiments were performed on these 10 new formulations to obtain their true OD max values. These 10 new { recipe-OD } data points are added to the initial data set to form a larger, more informative new data set. Returning to step 200, the next round of dimension reduction, model training and dotting recommendation is started with the new dataset. This process is repeated until the found recipe performance is no longer significantly improved or a preset experimental budget is reached.
Further, FIG. 3 illustrates the prediction of the GPR model along the most important hidden spatial dimension in a certain iteration. The predicted mean of the model, the 95% confidence interval, and how the EI plus point function directs the next exploration direction are clearly shown.
Furthermore, the PCA dimension reduction is utilized in the embodiment, the original high-dimension optimization problem is converted into the low-dimension hidden space for carrying out, the negative influence of the similarity of the high-dimension data on the GPR model training is greatly relieved, and the agent model can learn the performance characteristics of the chemical space more robustly and accurately under sparse data. This avoids optimization stalls or falls into local optima due to model failure, as compared to the prior art.
In addition, the invention innovatively introduces the k-Means clustering algorithm into the Bayesian optimized dotting link, thereby forming an efficient batch dotting strategy. The strategy ensures that a batch of recommended experimental points are spatially separated from each other while having high potential by clustering all candidate points with high potential (high EI value) and selecting the center point of each cluster as a recommended sample. Compared with a sequential mode of 'one point at a time' in the prior art, the invention meets the requirement of parallel experiments, and can lead a research and development team to obtain richer and more complementary information in one experiment period, thereby greatly shortening the research and development period of the whole optimization project.
In summary, the invention provides a complete set of systematic solutions which can efficiently and robustly solve the difficult problem of optimizing the high-dimensional complex chemical formula by combining the hidden space exploration with the batch dotting strategy.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.