CN114334030A - Method for evaluating high molecular polymerization reaction product based on quantum support vector machine - Google Patents
Method for evaluating high molecular polymerization reaction product based on quantum support vector machine Download PDFInfo
- Publication number
- CN114334030A CN114334030A CN202111565968.5A CN202111565968A CN114334030A CN 114334030 A CN114334030 A CN 114334030A CN 202111565968 A CN202111565968 A CN 202111565968A CN 114334030 A CN114334030 A CN 114334030A
- Authority
- CN
- China
- Prior art keywords
- polymerization reaction
- quantum
- reaction product
- data set
- optimal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000002954 polymerization reaction product Substances 0.000 title claims abstract description 98
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000012706 support-vector machine Methods 0.000 title claims abstract description 35
- 238000006243 chemical reaction Methods 0.000 claims abstract description 61
- 238000013210 evaluation model Methods 0.000 claims abstract description 57
- 238000001179 sorption measurement Methods 0.000 claims abstract description 42
- 230000003321 amplification Effects 0.000 claims abstract description 36
- 238000003199 nucleic acid amplification method Methods 0.000 claims abstract description 36
- 238000006116 polymerization reaction Methods 0.000 claims abstract description 31
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 28
- 230000002068 genetic effect Effects 0.000 claims abstract description 20
- 238000005457 optimization Methods 0.000 claims abstract description 20
- 239000000178 monomer Substances 0.000 claims abstract description 19
- 230000008569 process Effects 0.000 claims abstract description 18
- 239000003999 initiator Substances 0.000 claims abstract description 17
- 238000002835 absorbance Methods 0.000 claims abstract description 8
- 238000007781 pre-processing Methods 0.000 claims abstract description 4
- 238000012360 testing method Methods 0.000 claims description 56
- 239000013598 vector Substances 0.000 claims description 51
- 229920000642 polymer Polymers 0.000 claims description 45
- 238000012549 training Methods 0.000 claims description 44
- 238000011156 evaluation Methods 0.000 claims description 41
- 238000001035 drying Methods 0.000 claims description 28
- 230000003068 static effect Effects 0.000 claims description 24
- 239000007795 chemical reaction product Substances 0.000 claims description 18
- 239000000047 product Substances 0.000 claims description 18
- 239000002096 quantum dot Substances 0.000 claims description 17
- 238000005259 measurement Methods 0.000 claims description 15
- 230000035484 reaction time Effects 0.000 claims description 15
- 210000000349 chromosome Anatomy 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 12
- 239000006004 Quartz sand Substances 0.000 claims description 7
- VYPSYNLAJGMNEJ-UHFFFAOYSA-N Silicium dioxide Chemical compound O=[Si]=O VYPSYNLAJGMNEJ-UHFFFAOYSA-N 0.000 claims description 7
- FAPWRFPIFSIZLT-UHFFFAOYSA-M Sodium chloride Chemical compound [Na+].[Cl-] FAPWRFPIFSIZLT-UHFFFAOYSA-M 0.000 claims description 6
- 239000000843 powder Substances 0.000 claims description 6
- 239000011780 sodium chloride Substances 0.000 claims description 6
- 239000002904 solvent Substances 0.000 claims description 6
- 230000007614 genetic variation Effects 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims description 4
- 238000000926 separation method Methods 0.000 claims description 4
- 238000012937 correction Methods 0.000 claims description 3
- 239000000463 material Substances 0.000 abstract 1
- 230000006870 function Effects 0.000 description 16
- 239000000243 solution Substances 0.000 description 12
- 238000004364 calculation method Methods 0.000 description 9
- 239000011159 matrix material Substances 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 4
- 238000010801 machine learning Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 239000000126 substance Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000002861 polymer material Substances 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000003912 environmental pollution Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000005283 ground state Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 239000010865 sewage Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000003756 stirring Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000012085 test solution Substances 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Landscapes
- Polymerisation Methods In General (AREA)
Abstract
The invention provides a method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine, which comprises the steps of carrying out original data acquisition and data preprocessing on reaction variables such as different reaction monomer usage, initiator proportion and the like involved in the polymerization reaction process of an adsorption type high molecular material and absorbance data of a solution after adsorption, and carrying out data set amplification by adopting a quantum genetic optimization algorithm; a high-molecular polymerization reaction product evaluation model is constructed based on a quantum support vector machine, and the model is trained, tested and evaluated by using the amplified data set, so that the aim of efficiently and accurately evaluating the adsorption performance of the polymerization reaction product is fulfilled.
Description
Technical Field
The invention relates to a method for evaluating a high molecular polymerization reaction product, in particular to a method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine.
Background
The polymer chemical polymerization reaction process is complex, and has a plurality of influencing factors, including different reaction monomer concentrations and interaction relations, the proportion of the initiator in the monomer, the reaction temperature, the reaction time, the stirring speed, the drying time, the drying temperature and the like. The traditional research method is based on a large number of test process comparison and observation, direct or implicit complex interrelation exists between variable factors and data, certain influence is brought to analysis and optimization of test results, and the problems of long analysis period, complex test process, manual operation errors, chemical consumption, environmental pollution and the like exist.
The machine learning algorithm is utilized to evaluate the performance of the high molecular polymerization reaction product, the direct or indirect interaction relation among data variables can be fully considered, the influence of interference factors such as operation errors on the result is reduced to a certain extent, and the evaluation efficiency of the related test of the polymerization reaction product is improved.
Different from the traditional research method, the application of the machine learning algorithm to the performance evaluation of the high-molecular polymerization reaction product is a novel fast and efficient research mode. The mechanism process of the high-molecular polymerization reaction is clear, and the product performance is closely related to factors such as monomer concentration ratio, reaction temperature, time and the like, so the theoretical basis is solid.
In machine learning algorithms, the use of a support vector machine for property prediction is one of the actual scenarios, such as rice taste quality analysis, water source type determination, water quality chemical composition or gas concentration analysis, and sewage COD value prediction, but the application of a quantum support vector machine to the performance evaluation of high molecular polymerization reaction products has not been realized.
In order to solve the above problems, people are always seeking an ideal technical solution.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method for evaluating a high-molecular polymerization reaction product based on a quantum support vector machine.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine comprises the following steps:
setting different reaction conditions, preparing different reaction products by utilizing a high-molecular polymerization reaction, classifying and numbering the reaction products, treating the reaction products to be white powder, performing static adsorption capacity test by taking simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer, calculating a concentration value according to a standard curve, and finally outputting the static adsorption capacity of the product;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
sequentially carrying out standardization treatment on the original data sets for evaluating the high molecular polymerization reaction products to obtain a pre-amplification data set;
generating an optimal artificial data set in a sample space by adopting a quantum genetic optimization algorithm based on the pre-amplification data set;
repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, and combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set;
dividing the new manual sample data set into a training sample set and a testing sample set according to 80/20%;
step 4, verifying the correctness of the high molecular polymerization reaction product evaluation model based on the high molecular polymerization reaction product evaluation model trained in the step 3 and the test sample set in the step 2;
and 5, predicting and comprehensively analyzing the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, and correcting the evaluation model according to the feedback deviation condition.
The invention provides a high molecular polymerization reaction product evaluation system based on a quantum support vector machine, and a data acquisition module configured to acquire an original data set related to a high molecular polymerization reaction process
Setting different reaction conditions, preparing different reaction products by utilizing a high-molecular polymerization reaction, classifying and numbering the reaction products, treating the reaction products to be white powder, performing static adsorption capacity test by taking simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer, calculating a concentration value according to a standard curve, and finally outputting the static adsorption capacity of the product;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
the system comprises an original data set processing and classifying module, a pre-amplification data set and a pre-amplification data set, wherein the original data set processing and classifying module is configured to sequentially carry out standardization processing on a high molecular polymerization reaction product evaluation original data set to obtain a pre-amplification data set; generating an optimal artificial data set in a sample space by adopting a quantum genetic optimization algorithm based on the pre-amplification data set; repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, and combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set; dividing the new manual sample data set into a training sample set and a testing sample set according to 80/20%;
the polymer polymerization reaction product evaluation model training module is configured to construct a polymer polymerization reaction product evaluation model based on a quantum support vector machine, and obtain the polymer polymerization reaction product evaluation model according to the constructed training sample set;
the model testing module is configured to verify the correctness of the high polymer polymerization reaction product evaluation model based on the trained high polymer polymerization reaction product evaluation model and the testing sample set;
and the prediction and correction module is configured to predict and comprehensively analyze the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, and correct the evaluation model according to the feedback deviation condition.
Based on the above, generating an optimal artificial dataset in a sample space by using a quantum genetic optimization algorithm based on the pre-amplification dataset includes:
setting population scale, maximum genetic iteration times and chromosome length, wherein each population individual in the population corresponds to a model input vector, and the chromosome length is the total length of binary strings of all elements in the model input vector;
initializing a population, and randomly generating chromosomes with a certain quantity of quantum bit codes;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
performing decimal conversion on the binary array obtained by measurement according to the set variable range of each reaction, substituting the decimal conversion into a support vector machine model, and realizing fitness evaluation aiming at the measurement result, wherein the root mean square error is used as a fitness value function;
recording original optimal individuals and corresponding optimal fitness values;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
carrying out fitness evaluation on the measurement result;
updating the optimal fitness and the related index information;
updating the probability amplitude of the quantum bit by using a quantum revolving gate to realize individual genetic variation of the population and obtain new population individuals;
adding 1 to the iteration times, returning to execute and recording the original optimal individual and the corresponding optimal fitness value until all iterations are finished;
and finally outputting all the recorded optimal individuals and the optimal fitness value as an optimal artificial data set.
Compared with the prior art, the method has outstanding substantive characteristics and remarkable progress, and particularly, the method carries out original data acquisition and data pretreatment on reaction variables such as different reaction monomer usage, initiator proportion and the like involved in the polymerization reaction process of the adsorption type high polymer material and absorbance data of the solution after adsorption, and trains, tests and evaluates a model by utilizing the pretreated polymerization reaction data based on a quantum support vector machine algorithm so as to realize the purpose of efficiently and accurately evaluating the adsorption performance of the polymerization reaction product; aiming at the defects that a small sample data set is loose in data structure and discrete in distribution, information intervals exist among sample points, effective information cannot be obtained and the like, an optimal artificial data set meeting requirements is generated in a sample space based on the small sample data set by adopting a quantum genetic optimization algorithm, effective amplification of the data set is realized, and then the training and testing requirements of a subsequent evaluation model are met.
Drawings
FIG. 1 is a flow chart of the method for evaluating a polymer polymerization product of the present invention.
FIG. 2 is a diagram of a SWAP-test quantum wire.
FIG. 3 is a quantum circuit diagram for the HHL algorithm to solve the linear system of equations.
Detailed Description
The technical solution of the present invention is further described in detail by the following embodiments.
As shown in fig. 1, a method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine comprises the following steps:
the step of collecting the original test data is the key content of the invention, and the quality of the test data is about the training and testing of the subsequent model, so that the invention has important significance;
setting different reaction conditions aiming at the polymerization reaction process of a high polymer material, preparing different reaction products by utilizing high polymer polymerization reaction, classifying and numbering the reaction products, processing the reaction products into white powder, performing static adsorption quantity test by using simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer under the wavelength of 590nm, calculating a concentration value of the solution sample according to a standard curve, and finally outputting the static adsorption quantity of the product; the whole data acquisition process constructs original data influencing the performance of the polymerization reaction product comprehensively, and can be effectively used for training and testing a polymerization reaction product performance evaluation model;
wherein, the static adsorption capacity calculation formula is as follows: Γ ═ V (c)o-ce)/msWherein gamma is the static adsorption capacity, V is the volume of the test solution, msIs the mass of the quartz sand, coAnd ceRespectively showing the effective concentration of the solution before and after static adsorption;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
based on the problems of different dimensions, large dimension and the like of the related original data of the high molecular polymerization reaction process obtained in the step 1, the calculation speed is low, the calculation precision is low, and the subsequent training and testing of a support vector machine model are not facilitated, so that the evaluation original data set of the high molecular polymerization reaction product obtained in the step 1 needs to be sequentially subjected to standardization processing to obtain a pre-amplification data set;
in addition, due to the limitation of test conditions, the number of samples in the original polymer polymerization reaction product evaluation data set obtained in the step 1 is small, small sample data sets often have the defects of loose data structure, discrete distribution, information intervals among sample points, unavailable effective information and the like, so that a prediction model constructed based on the small sample data sets is often difficult to meet the precision requirement or has poor learning generalization capability, and an overfitting phenomenon is easy to occur;
therefore, after the pre-amplification data set is obtained, effective amplification of data is performed by using a quantum genetic optimization algorithm in a set condition, and an optimal individual and an optimal fitness value are finally output, wherein the optimal individual comprises an optimal monomer dosage, an initiator proportion, a reaction temperature, a reaction time, a drying temperature, a drying time and a fine granularity required by a model;
repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set, realizing effective amplification of the data sets and further meeting the training and testing requirements of a subsequent evaluation model;
dividing a new high-molecular polymerization reaction product evaluation original data set into a training sample set and a testing sample set according to the proportion of 80/20%;
step 4, verifying the correctness of the high molecular polymerization reaction product evaluation model based on the high molecular polymerization reaction product evaluation model trained in the step 3 and the test sample set in the step 2;
specifically, a static adsorption quantity value obtained by predicting a high molecular polymerization reaction product evaluation model and a static adsorption quantity value measured in an original test are calculated, a root mean square error evaluation index is solved, and the calculation formula is as follows:wherein XtAnd XoRespectively obtaining a predicted value and a real test value of a static adsorption capacity model of the polymerization reaction product, wherein N is the number of test samples so as to verify the accuracy of a high molecular polymerization reaction product evaluation model of the trained high molecular polymerization reaction product; if the root mean square error of the predicted value and the true value of the trained model is extremely small, the difference between the predicted value and the true value is small, and the stability of the evaluation model is good;
and 5, predicting and comprehensively analyzing the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, correcting the evaluation model according to the feedback deviation condition, and exploring the influence of different influence factors on the evaluation results to form a mature and stable polymer polymerization reaction product evaluation model.
Aiming at the problem that the evaluation original data set of the high molecular polymerization reaction product has less data, the method further introduces a quantum genetic optimization algorithm, generates new high molecular polymerization reaction test data in a reasonable range based on the evaluation original data set of the high molecular polymerization reaction product, and realizes effective amplification of the data set so as to avoid the defects of poor prediction precision or insufficient learning generalization capability of the constructed model caused by too small number of samples of the data set. Through the data processing operation process, on the basis of retaining data authenticity to the maximum extent, the influence of different dimensional variables and small sample data is considered, and an original data set is converted into a new high-molecular polymerization reaction data set.
Specifically, the final objective is to minimize the difference between the artificially generated data set and the actual test data set, so that the root mean square error is used as a fitness value function of the quantum genetic optimization algorithm to generate the optimal artificial data set, and a new artificial sample data set is obtained in a set condition frame, and the method specifically comprises the following steps:
setting parameters such as population scale, maximum genetic iteration times, chromosome length and the like;
initializing a population, and randomly generating chromosomes with a certain quantity of quantum bit codes;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
performing decimal conversion on the binary array obtained by measurement according to the set variable range of each reaction, and substituting the decimal array into a support vector machine model to realize fitness evaluation aiming at the measurement result; wherein, the fitness value function for fitness evaluation is root mean square error;
recording original optimal individuals and corresponding optimal fitness values;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
carrying out fitness evaluation on the measurement result;
updating the optimal fitness and the related index information;
updating the probability amplitude of the quantum bit by using a quantum revolving gate to realize individual genetic variation of the population and obtain new population individuals;
adding 1 to the iteration times, returning to execute and recording the original optimal individual and the corresponding optimal fitness value until all iterations are finished;
and finally outputting all the recorded optimal individuals and the optimal fitness value as an optimal artificial data set.
The quantum genetic optimization algorithm can find an optimal solution in a shorter time based on a small sample data set, the sample data size is small, the algorithm performance is not influenced, the individual diversity in a population can be kept, and in addition, the method has the advantages of higher search efficiency, good global search capability, strong adaptability and the like, and is very suitable for the amplification treatment of the small sample data set related to the polymerization reaction test.
Further, the specific steps of step 3 are as follows:
set training sample set asWhereinA jth model input vector composed of jth training samples; y isjOutputting a vector for a jth model formed by a jth training sample; n is the dimension of the model input vector andm is the number of model input vectors and corresponds to the total number of training samples;
the goal is to find the optimal classification lineEnsuring maximum separation of the sample points, whereinIs a weight vector, b is a bias constant, and the maximum classification interval is expressed asNamely, it isThe classification problem will therefore translate into the following optimization problem:
introducing an error variable ejUsed to indicate the amount of deviation of the allowed data points, the objective function is transformed into
Wherein gamma is a penalty coefficient;
wherein alpha isjNot less than 0 is corresponding toThe lagrange multiplier of (a) is,is [ alpha ]1,α2,…,αj,…,αM],Is an error vector;
obtaining linear equation set by solving partial derivatives of Lagrange function based on KKT condition
based on the training sample set, adopting HHL quantum algorithm to pair linear equation setSolving is carried out to obtain the parameters of the optimal hyperplaneWhereinIs alphajFinally obtaining a maximum interval hyperplane, and realizing the construction of a polymer polymerization reaction product evaluation model, wherein the function mathematical expression is as follows:
in specific implementation, SWAP-test is adopted to calculate kernel function k (x)j,xk) As shown in fig. 2:
the above formula is expressed by dirac notation,andare respectively asAndcorresponding quantum state, |0>And |1>Are all auxiliary qubit states;is composed of|0>,|1>The corresponding tensor product;<0|1>,<0|0>,are respectively as|0>,|1>Corresponding inner product of wherein Is the final target;
H1finger-to-first quantum state Hadamard gate conversion, Swap2,3Means that the second quantum state and the third quantum state are exchanged using a Swap gate; measure (Measure)1Refers to measuring the first quantum state.
In specific implementation, the specific steps of the HHL quantum algorithm circuit are shown in fig. 3, and include:
preparation of input Quantum statesWhereinIs input in a quantum state, and is setujAre auxiliary variables.
Transforming a matrix F into unitary operationThe unitary matrix after conversion should meet the unitary requirement of quantum computation on quantum gate, if the matrix isBeing s-sparse matrix, unitary matrixThe simulation time of (d) is O (log (N));
applying quantum phase estimation to clock registers and input registers, decomposition on eigenvector basisThe phase estimation module comprises a Hadamard gate, unitary operation and inverse quantum Fourier transform; after this operation, the clock register and the input register respectively obtain the matrix(equivalent to e)iFt) Characteristic value of (1) | λj>And feature vectorsWhen the phase estimation is accurate, entanglement will occur between the two registers, and the value will become
The clock register is used as a control quantum bit to rotate the auxiliary quantum bit and convert the auxiliary quantum bit into |0>And |1>The superposition state of (1); controlled rotation operation from ground state | λj>In each caseExtraction of lambdajTo a probability amplitudeAndwhereinThree register values will become In practical operation, the auxiliary qubit extraction ratio directly clocks the eigenvalues | λ in the register and the input registerj>And feature vectors
Restoring | λ using inverse phase estimationi>(i.e. | λ)i>→|0>) The inverse phase estimation includes a quantum Fourier transform, unitary operation, Hadamard gate, and then Amplitude Amplification (Amplitude Amplification) to increase the Amplitude to |1>;
Measuring the auxiliary register to obtain a result of |1>Then the result of the input register will be ANDProportional calculation results;
after all the above processes are finished, the input register will be startedBecome into WhereinThereby realizing the solution of the linear equation system, and the calculation complexity of the process is O (M)2) Becomes O (log (M)) on an optimum basisAre respectively obtainedAnd finally constructing a maximum interval hyperplane.
In the step, a quantum support vector machine QSVM algorithm is introduced to train a high-molecular polymerization reaction product evaluation model, two aspects of inner product kernel function calculation and linear equation system solving are emphasized, and the calculation complexity is represented by O (log (epsilon)-1) poly (N, M)) to O (log (N, M)), where M, N are the number of samples in the training set and the feature vector dimension, respectively; meanwhile, the influence of various complex variable factors such as reaction monomer ratio, initiator ratio, reaction temperature, reaction time and the like on the performance of an experimental product can be fully considered, the advantages of a quantum algorithm in a complex environment are exerted, the calculation complexity is reduced, and the prediction efficiency is improved.
The second aspect of the present invention provides a system for evaluating a polymer polymerization reaction product based on a quantum support vector machine, comprising:
a data acquisition module configured to acquire a raw data set related to a polymerization reaction process of a polymer
Setting different reaction conditions, preparing different reaction products by utilizing a high-molecular polymerization reaction, classifying and numbering the reaction products, treating the reaction products to be white powder, performing static adsorption capacity test by taking simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer, calculating a concentration value according to a standard curve, and finally outputting the static adsorption capacity of the product;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
the system comprises an original data set processing and classifying module, a pre-amplification data set and a pre-amplification data set, wherein the original data set processing and classifying module is configured to sequentially carry out standardization processing on a high molecular polymerization reaction product evaluation original data set to obtain a pre-amplification data set; generating an optimal artificial data set in a sample space by adopting a quantum genetic optimization algorithm based on the pre-amplification data set; repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, and combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set; dividing the new manual sample data set into a training sample set and a testing sample set according to 80/20%;
the polymer polymerization reaction product evaluation model training module is configured to construct a polymer polymerization reaction product evaluation model based on a quantum support vector machine, and obtain the polymer polymerization reaction product evaluation model according to the constructed training sample set;
the model testing module is configured to verify the correctness of the high polymer polymerization reaction product evaluation model based on the trained high polymer polymerization reaction product evaluation model and the testing sample set;
and the prediction and correction module is configured to predict and comprehensively analyze the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, and correct the evaluation model according to the feedback deviation condition.
In specific implementation, generating an optimal artificial dataset in a sample space by using a quantum genetic optimization algorithm based on the pre-amplification dataset comprises:
setting population scale, maximum genetic iteration times and chromosome length, wherein each population individual in the population corresponds to a model input vector, and the chromosome length is the total length of binary strings of all elements in the model input vector;
initializing a population, and randomly generating chromosomes with a certain quantity of quantum bit codes;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
performing decimal conversion on the binary array obtained by measurement according to the set variable range of each reaction, substituting the decimal conversion into a support vector machine model, and realizing fitness evaluation aiming at the measurement result, wherein the root mean square error is used as a fitness value function;
recording original optimal individuals and corresponding optimal fitness values;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
carrying out fitness evaluation on the measurement result;
updating the optimal fitness and the related index information;
updating the probability amplitude of the quantum bit by using a quantum revolving gate to realize individual genetic variation of the population and obtain new population individuals;
adding 1 to the iteration times, returning to execute and recording the original optimal individual and the corresponding optimal fitness value until all iterations are finished;
and finally outputting all the recorded optimal individuals and the optimal fitness value as an optimal artificial data set.
Further, a polymer polymerization product evaluation model is constructed based on a quantum support vector machine, and the polymer polymerization product evaluation model is obtained according to the constructed training sample set by the following specific steps:
set training sample set asWhereinA jth model input vector composed of jth training samples; y isjOutputting a vector for a jth model formed by a jth training sample; n is the model input directionDimension of quantity andm is the number of model input vectors and corresponds to the total number of training samples;
the goal is to find the optimal classification lineEnsuring maximum separation of the sample points, whereinIs a weight vector, b is a bias constant, and the maximum classification interval is expressed asNamely, it isThe classification problem will therefore translate into the following optimization problem:
introducing an error variable ejUsed to indicate the amount of deviation of the allowed data points, the objective function is transformed into
Wherein gamma is a penalty coefficient;
wherein alpha isjNot less than 0 is corresponding toThe lagrange multiplier of (a) is,is [ alpha ]1,α2,…,αj,…,αM],Is an error vector;
obtaining linear equation set by solving partial derivatives of Lagrange function based on KKT condition
based on the training sample set, adopting HHL quantum algorithm to pair linear equation setSolving is carried out to obtain the parameters of the optimal hyperplaneWhereinIs alphajFinally obtaining a maximum interval hyperplane, and realizing the construction of a polymer polymerization reaction product evaluation model, wherein the function mathematical expression is as follows:
finally, it should be noted that the above examples are only used to illustrate the technical solutions of the present invention and not to limit the same; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art will understand that: modifications to the specific embodiments of the invention or equivalent substitutions for parts of the technical features may be made; without departing from the spirit of the present invention, it is intended to cover all aspects of the invention as defined by the appended claims.
Claims (8)
1. A method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine is characterized by comprising the following steps:
step 1, obtaining a related original data set of a high molecular polymerization reaction process;
setting different reaction conditions, preparing different reaction products by utilizing a high-molecular polymerization reaction, classifying and numbering the reaction products, treating the reaction products to be white powder, performing static adsorption capacity test by taking simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer, calculating a concentration value according to a standard curve, and finally outputting the static adsorption capacity of the product;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
step 2, preprocessing and amplifying the original data set of the evaluation of the high molecular polymerization reaction product;
sequentially carrying out standardization treatment on the original data sets for evaluating the high molecular polymerization reaction products to obtain a pre-amplification data set;
generating an optimal artificial data set in a sample space by adopting a quantum genetic optimization algorithm based on the pre-amplification data set;
repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, and combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set;
dividing the new manual sample data set into a training sample set and a testing sample set according to 80/20%;
step 3, constructing a high molecular polymerization reaction product evaluation model based on a quantum support vector machine, and obtaining the high molecular polymerization reaction product evaluation model according to the constructed training sample set;
step 4, verifying the correctness of the high molecular polymerization reaction product evaluation model based on the high molecular polymerization reaction product evaluation model trained in the step 3 and the test sample set in the step 2;
and 5, predicting and comprehensively analyzing the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, and correcting the evaluation model according to the feedback deviation condition.
2. The method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine according to claim 1, wherein the specific steps of step 3 comprise:
set training sample set asWhereinA jth model input vector composed of jth training samples; y isjOutputting a vector for a jth model formed by a jth training sample; n is the dimension of the model input vector andm is the number of model input vectors and corresponds to the total number of training samples;
the goal is to find the optimal classification lineEnsuring maximum separation of the sample points, whereinIs a weight vector, b is a bias constant, and the maximum classification interval is expressed asNamely, it isThe classification problem will therefore translate into the following optimization problem:
introducing an error variable ejUsed to indicate the amount of deviation of the allowed data points, the objective function is transformed into
Wherein gamma is a penalty coefficient;
wherein alpha isjNot less than 0 is corresponding toThe lagrange multiplier of (a) is,is [ alpha ]1,α2,…,αj,…,αM],Is an error vector;
obtaining linear equation set by solving partial derivatives of Lagrange function based on KKT condition
based on the training sample set, adopting HHL quantum algorithm to pair linear equation setSolving is carried out to obtain the parameters of the optimal hyperplaneWhereinIs alphajFinally obtaining a maximum interval hyperplane, and realizing the construction of a polymer polymerization reaction product evaluation model, wherein the function mathematical expression is as follows:
3. the method for evaluating a high molecular weight polymerization reaction product based on a quantum support vector machine according to claim 2, wherein the SWAP-test is used to calculate a kernel function k (x)j,xk):
The above formula is expressed by dirac notation,andare respectively asAndcorresponding quantum state, |0>And |1>Are all auxiliary qubit states;is composed ofThe corresponding tensor product;are respectively asCorresponding inner product of wherein Is the final target;
H1finger-to-first quantum state Hadamard gate conversion, Swap2,3Means that the second quantum state and the third quantum state are exchanged using a Swap gate; measure (Measure)1Refers to measuring the first quantum state.
4. The method for evaluating a high molecular polymerization reaction product based on a quantum support vector machine according to claim 1, wherein the generating an optimal artificial data set in a sample space by using a quantum genetic optimization algorithm based on the pre-amplification data set comprises:
setting population scale, maximum genetic iteration times and chromosome length, wherein each population individual in the population corresponds to a model input vector, and the chromosome length is the total length of binary strings of all elements in the model input vector;
initializing a population, and randomly generating chromosomes with a certain quantity of quantum bit codes;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
performing decimal conversion on the binary array obtained by measurement according to the set variable range of each reaction, substituting the decimal conversion into a support vector machine model, and realizing fitness evaluation aiming at the measurement result, wherein the root mean square error is used as a fitness value function;
recording original optimal individuals and corresponding optimal fitness values;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
carrying out fitness evaluation on the measurement result;
updating the optimal fitness and the related index information;
updating the probability amplitude of the quantum bit by using a quantum revolving gate to realize individual genetic variation of the population and obtain new population individuals;
adding 1 to the iteration times, returning to execute and recording the original optimal individual and the corresponding optimal fitness value until all iterations are finished;
and finally outputting all the recorded optimal individuals and the optimal fitness value as an optimal artificial data set.
5. A high molecular polymerization reaction product evaluation system based on a quantum support vector machine is characterized by comprising:
a data acquisition module configured to acquire a raw data set related to a polymerization reaction process of a polymer
Setting different reaction conditions, preparing different reaction products by utilizing a high-molecular polymerization reaction, classifying and numbering the reaction products, treating the reaction products to be white powder, performing static adsorption capacity test by taking simulated saline as a solvent and quartz sand as an adsorption medium under the same solubility, temperature and time, taking solution samples before and after adsorption corresponding to different numbers, performing absorbance test by utilizing an ultraviolet spectrophotometer, calculating a concentration value according to a standard curve, and finally outputting the static adsorption capacity of the product;
wherein the different reaction conditions comprise monomer dosage, initiator proportion, reaction temperature, reaction time, drying temperature, drying time and fine granularity;
using the monomer amount, the initiator proportion, the reaction temperature, the reaction time, the drying temperature, the drying time and the fine granularity as model input vectors, and using the static adsorption capacity as a model output vector to form a high-molecular polymerization reaction product evaluation original data set;
the system comprises an original data set processing and classifying module, a pre-amplification data set and a pre-amplification data set, wherein the original data set processing and classifying module is configured to sequentially carry out standardization processing on a high molecular polymerization reaction product evaluation original data set to obtain a pre-amplification data set; generating an optimal artificial data set in a sample space by adopting a quantum genetic optimization algorithm based on the pre-amplification data set; repeating the steps for multiple times to generate a plurality of groups of different optimal artificial data sets, and combining the optimal artificial data sets with the pre-amplification data sets to generate a new high-molecular polymerization reaction product evaluation original data set; dividing the new manual sample data set into a training sample set and a testing sample set according to 80/20%;
the polymer polymerization reaction product evaluation model training module is configured to construct a polymer polymerization reaction product evaluation model based on a quantum support vector machine, and obtain the polymer polymerization reaction product evaluation model according to the constructed training sample set;
the model testing module is configured to verify the correctness of the high polymer polymerization reaction product evaluation model based on the trained high polymer polymerization reaction product evaluation model and the testing sample set;
and the prediction and correction module is configured to predict and comprehensively analyze the experimental results under more different types of reaction process variables by using the polymer polymerization reaction product evaluation model passing the test in a real polymer polymerization reaction experimental environment, and correct the evaluation model according to the feedback deviation condition.
6. The system for evaluating a high molecular polymerization reaction product based on a quantum support vector machine according to claim 5, wherein the generating an optimal artificial data set in a sample space by using a quantum genetic optimization algorithm based on the pre-amplification data set comprises:
setting population scale, maximum genetic iteration times and chromosome length, wherein each population individual in the population corresponds to a model input vector, and the chromosome length is the total length of binary strings of all elements in the model input vector;
initializing a population, and randomly generating chromosomes with a certain quantity of quantum bit codes;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
performing decimal conversion on the binary array obtained by measurement according to the set variable range of each reaction, substituting the decimal conversion into a support vector machine model, and realizing fitness evaluation aiming at the measurement result, wherein the root mean square error is used as a fitness value function;
recording original optimal individuals and corresponding optimal fitness values;
measuring the population individuals in sequence to obtain a determined state, namely binary codes;
carrying out fitness evaluation on the measurement result;
updating the optimal fitness and the related index information;
updating the probability amplitude of the quantum bit by using a quantum revolving gate to realize individual genetic variation of the population and obtain new population individuals;
adding 1 to the iteration times, returning to execute and recording the original optimal individual and the corresponding optimal fitness value until all iterations are finished;
and finally outputting all the recorded optimal individuals and the optimal fitness value as an optimal artificial data set.
7. The system for evaluating a polymer polymerization reaction product based on a quantum support vector machine according to claim 5, wherein the polymer polymerization reaction product evaluation model training module builds a polymer polymerization reaction product evaluation model based on the quantum support vector machine, and the specific steps of obtaining the polymer polymerization reaction product evaluation model according to the built training sample set include:
set training sample set asWhereinA jth model input vector composed of jth training samples; y isjOutputting a vector for a jth model formed by a jth training sample; n is the dimension of the model input vector andm is the number of model input vectors and corresponds to the total number of training samples;
the goal is to find the optimal classification lineEnsuring maximum separation of the sample points, whereinIs a weight vector, b is a bias constant, and the maximum classification interval is expressed asNamely, it isThe classification problem will therefore translate into the following optimization problem:
introducing an error variable ejUsed to indicate the amount of deviation of the allowed data points, the objective function is transformed into
Wherein gamma is a penalty coefficient;
wherein alpha isjNot less than 0 is corresponding toThe lagrange multiplier of (a) is,is [ alpha ]1,α2,…,αj,…,αM],Is an error vector;
obtaining linear equation set by solving partial derivatives of Lagrange function based on KKT condition
based on the training sample set, adopting HHL quantum algorithm to pair linear equation setSolving is carried out to obtain the parameters of the optimal hyperplaneWhereinIs alphajFinally obtaining a maximum interval hyperplane, and realizing the construction of a polymer polymerization reaction product evaluation model, wherein the function mathematical expression is as follows:
8. the quantum-based support vector of claim 7The system for evaluating the high-molecular polymerization reaction product is characterized in that a SWAP-test is adopted to calculate a kernel function k (x)i,xj):
The above formula is expressed by dirac notation,andare respectively asAndcorresponding quantum state, |0>And |1>Are all auxiliary qubit states;is composed ofThe corresponding tensor product;are respectively asCorresponding inner product of wherein Is the final target;
H1finger-to-first quantum state Hadamard gate conversion, Swap2,3Means that the second quantum state and the third quantum state are exchanged using a Swap gate; measure (Measure)1Refers to measuring the first quantum state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111565968.5A CN114334030A (en) | 2021-12-20 | 2021-12-20 | Method for evaluating high molecular polymerization reaction product based on quantum support vector machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111565968.5A CN114334030A (en) | 2021-12-20 | 2021-12-20 | Method for evaluating high molecular polymerization reaction product based on quantum support vector machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114334030A true CN114334030A (en) | 2022-04-12 |
Family
ID=81053575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111565968.5A Pending CN114334030A (en) | 2021-12-20 | 2021-12-20 | Method for evaluating high molecular polymerization reaction product based on quantum support vector machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114334030A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117556916A (en) * | 2024-01-12 | 2024-02-13 | 深圳量旋科技有限公司 | S N 2 reaction path simulation method and device, storage medium, and quantum computing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103675011A (en) * | 2013-09-22 | 2014-03-26 | 浙江大学 | Soft industrial melt index measurement instrument and method of optimal support vector machine |
US20150134315A1 (en) * | 2013-09-27 | 2015-05-14 | Codexis, Inc. | Structure based predictive modeling |
CN112687355A (en) * | 2020-12-04 | 2021-04-20 | 复旦大学 | Machine learning-assisted polymer synthesis inverse analysis method |
-
2021
- 2021-12-20 CN CN202111565968.5A patent/CN114334030A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103675011A (en) * | 2013-09-22 | 2014-03-26 | 浙江大学 | Soft industrial melt index measurement instrument and method of optimal support vector machine |
US20150134315A1 (en) * | 2013-09-27 | 2015-05-14 | Codexis, Inc. | Structure based predictive modeling |
CN105814573A (en) * | 2013-09-27 | 2016-07-27 | 科德克希思公司 | Structure based predictive modeling |
CN112687355A (en) * | 2020-12-04 | 2021-04-20 | 复旦大学 | Machine learning-assisted polymer synthesis inverse analysis method |
Non-Patent Citations (1)
Title |
---|
卢云许, 陆宝春, 张世琪: "切片平均分子量神经网络预测模型研究及应用", 南京理工大学学报, no. 02, 30 April 2000 (2000-04-30) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117556916A (en) * | 2024-01-12 | 2024-02-13 | 深圳量旋科技有限公司 | S N 2 reaction path simulation method and device, storage medium, and quantum computing device |
CN117556916B (en) * | 2024-01-12 | 2024-03-22 | 深圳量旋科技有限公司 | S N 2 reaction path simulation method and device, storage medium, and quantum computing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lu et al. | Efficient surrogate modeling methods for large-scale Earth system models based on machine-learning techniques | |
CN110726694A (en) | Characteristic wavelength selection method and system of spectral variable gradient integrated genetic algorithm | |
Hocalar et al. | Comparison of different estimation techniques for biomass concentration in large scale yeast fermentation | |
CN114239397A (en) | Soft measurement modeling method based on dynamic feature extraction and local weighted deep learning | |
Zhang et al. | An enhanced deep learning method for accurate and robust modelling of soil stress–strain response | |
Lu et al. | Quality-relevant feature extraction method based on teacher-student uncertainty autoencoder and its application to soft sensors | |
Zou et al. | Intelligent proximate analysis of coal based on near infrared spectroscopy and multi-output deep learning | |
Yao et al. | Variable selection for nonlinear soft sensor development with enhanced binary differential evolution algorithm | |
CN114334030A (en) | Method for evaluating high molecular polymerization reaction product based on quantum support vector machine | |
CN111766210B (en) | Near-shore complex seawater nitrate nitrogen multispectral measurement method | |
CN115015126B (en) | Method and system for judging activity of powdery biological particle material | |
Hajimohammadi et al. | Numerical learning approximation of time-fractional sub diffusion model on a semi-infinite domain | |
CN114330114B (en) | Beryllium bronze alloy corrosion rate prediction method based on quantum support vector machine | |
Mojgani et al. | Interpretable structural model error discovery from sparse assimilation increments using spectral bias‐reduced neural networks: A quasi‐geostrophic turbulence test case | |
CN115420707A (en) | Sewage near infrared spectrum chemical oxygen demand assessment method and system | |
CN114626304A (en) | Soft measurement modeling method for online prediction of copper grade in ore pulp | |
CN115165770B (en) | Water COD and turbidity simultaneous detection method based on broad spectrum and BPNN | |
CN111832748A (en) | Electronic nose width learning method for performing regression prediction on concentration of mixed gas | |
CN117686442A (en) | Method, system, medium and equipment for detecting diffusion concentration of chloride ions | |
CN113686810B (en) | Near infrared spectrum wavelength selection method based on convolutional neural network | |
Xie et al. | Calibration transfer via filter learning | |
Liu et al. | Near-infrared quality monitoring modeling with multi-scale CNN and temperature adaptive correction | |
CN114965425A (en) | Insulating oil Raman spectrum baseline deduction method and system based on iterative adaptive weighting algorithm | |
Yamauchi et al. | Normalizing Flows for Bayesian Posteriors: Reproducibility and Deployment | |
Wu et al. | Neural Frailty Machine: Beyond proportional hazard assumption in neural survival regressions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |