A method for predicting gasoline octane number
Through the Gaussian mixture model and PCA dimensionality reduction processing, combined with the dPLS correction model, the problem of the nonlinear relationship between the near-infrared spectrum and the octane number in the gasoline blending process is solved, and higher prediction accuracy is achieved.
Patent Information
- Application Number
- CN202110767663.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-07
AI Technical Summary
In the gasoline blending process, there is a nonlinear relationship between near-infrared spectrum and octane number. It is difficult for the existing linear model to accurately predict the octane number, resulting in low prediction accuracy.
The Gaussian mixture model combined with PCA dimensionality reduction processing was used to perform unsupervised fine clustering, and a dPLS correction model was established. A subclass model was constructed under optimal clustering conditions through the classification modeling method to predict the octane number of the sample to be tested.
It improves the accuracy of gasoline octane number prediction, can better alleviate the nonlinear dynamic characteristics in the blending process, and enhances the prediction accuracy.
Smart Images

Figure CN115656095B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of octane number detection, and in particular, to a method for predicting the octane number of gasoline. Background Art
[0002] Gasoline is one of the most important profitable products of a refinery, accounting for 60% to 70% of the total profit. Gasoline production involves two main links, namely the production and storage of component oils and their blending. Generally speaking, gasoline blending is the last stage before gasoline product delivery. The process is very complicated, but the profit margin is huge, so it was once considered a key process for the successful operation of a refinery. In the gasoline blending process, octane number is the most important quality indicator of gasoline. Therefore, rapid measurement of octane number is of great significance to the optimization and control of the entire blending process.
[0003] Near infrared spectroscopy analysis technology has attracted much attention due to its advantages of rapid and non-destructive analysis. The determination of gasoline octane number by near infrared spectroscopy is the most extensive and in-depth test item in the petrochemical field. Since the octane number has a good correspondence with the molecular structure of gasoline, for example, the increase in the number of CH of methyl, olefin and aromatic hydrocarbons increases the octane number, and the increase in the number of CH of methylene decreases the octane number. Therefore, there is a good linear relationship between the absorbance of near infrared spectroscopy and the octane number, and a more practical analysis model can be established through the partial least squares method.
[0004] Gasoline blending is the process of mixing several different components from the refinery to produce a blended gasoline that meets the specifications to meet the final product requirements. However, during the blending process, the proportion of different types of gasoline components (such as reforming components, cracking components, alkylation components, etc.) or the proportion of anti-knock agents such as MTBE will cause the octane number of the finished gasoline to change continuously as the blending process proceeds, making the process show obvious nonlinear dynamic characteristics. At this time, if a general linear model (such as partial least squares) is used to approximate this process, satisfactory results are often not obtained. For such problems, the current method of approximating this nonlinear dynamic process by establishing a local single model is more commonly used.
[0005] The advantage of the local model is that it can only establish a correction model for unknown samples, that is, one local model for one unknown sample, and the local model is discarded after the prediction is completed. Compared with the model method of predicting by directly identifying unknown samples, this type of method is still relatively time-consuming. In addition, in the process of establishing a local model, the selection of local samples is also a very critical step. Especially for the blending process with complex components, the composition of the sample will change greatly. The most similar selection principle of local samples may fail or the prediction results may be poor in accuracy due to the low similarity of the selected local samples. It is worth noting that the classification modeling method has also received widespread attention in recent years, especially the probabilistic model method based on the data generation mechanism. The essence of this type of method is to establish multiple linear correction sub-models for specific production processes to alleviate nonlinear dynamic processes. When predicting the properties of unknown samples, the unknown samples can be classified into corresponding categories through pattern recognition technology or the maximum a posteriori probability principle, and then the properties of the unknown samples can be predicted based on the pre-established correction sub-model. The key to the success of this type of method lies in how to reasonably and correctly divide (cluster) the production process data, so that the correction sub-model established based on the classified data is reliable. Of course, for the classification model method, the method of establishing the correction sub-model is also very important. The traditional linear partial least squares method has limited correction ability. Summary of the invention
[0006] The purpose of the present invention is to provide a method for predicting the octane number of gasoline. The method is based on near-infrared spectroscopy testing and fully considers the distribution characteristics of sample data in the gasoline blending process in the time series. The idea of clustering and classification modeling is used to approach the nonlinear dynamic characteristics of the gasoline blending process to the greatest extent. The nonlinearity between the near-infrared spectrum of the blended gasoline and the octane number can be better alleviated, and the prediction accuracy is higher.
[0007] In order to achieve the above object, the present disclosure provides a method for predicting gasoline octane number, comprising the following steps:
[0008] Acquire a first near infrared spectrum of a plurality of blended gasoline samples of known standard octane numbers;
[0009] Obtain the absorbance of each characteristic wavenumber interval in the first near-infrared spectrum to obtain a first characteristic spectrum, wherein the characteristic wavenumber interval is 5204-7518cm -1 ;
[0010] Performing PCA dimensionality reduction processing on the first characteristic spectra of all blended gasoline samples to obtain load vectors and principal component scores;
[0011] Taking the principal component scores as characteristic variables, constructing a Gaussian mixture model for all the first characteristic spectra, and determining an optimal number of clusters;
[0012] Under the condition of the optimal number of clusters, for each subclass:
[0013] -- performing difference processing to obtain a spectrum difference set and an octane number difference set; wherein the difference processing comprises: respectively subtracting the first characteristic spectra of any two blended gasoline samples in the subclass to obtain spectrum differences, and constructing all spectrum differences into the spectrum difference set; respectively subtracting the standard octane numbers of any two blended gasoline samples in the subclass to obtain octane number differences, and constructing all octane number differences into the octane number difference set;
[0014] --Performing partial least squares multiple regression analysis on the spectral difference set and the octane number difference set to obtain the dPLS correction model of the subclass;
[0015] Acquire a second near infrared spectrum of the gasoline sample to be tested, acquire the absorbance of the second near infrared spectrum in the characteristic spectrum region, and obtain a second characteristic spectrum;
[0016] Obtaining a principal component score of the sample to be tested according to the product of the absorbance of the second characteristic spectrum and the load vector obtained by the PCA dimensionality reduction process; determining a target subclass to which the sample to be tested belongs according to the principal component score of the sample to be tested and the Gaussian mixture model;
[0017] Selecting the most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline sample included in the target subclass; determining the standard octane number of the blended gasoline sample corresponding to the most similar spectrum; subtracting the second characteristic spectrum of the sample to be tested from the first characteristic spectrum of the blended gasoline sample corresponding to the most similar spectrum to obtain a spectrum difference of the sample to be tested;
[0018] The octane number difference prediction value is determined according to the spectral difference value of the sample to be tested and the dPLS correction model of the target subclass; the predicted octane number of the sample to be tested is determined according to a linear combination of the octane difference prediction value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum.
[0019] Optionally, the difference processing includes:
[0020] -- Calculate the spectrum difference G according to the following formula (1), and use all the spectrum differences G as the spectrum difference set:
[0021] G=G k1 -G k2 (1), where G k1 is the first characteristic spectrum of the k1th blended gasoline sample, G k2is the first characteristic spectrum of the k2th blended gasoline sample, k1 and k2 are integers, 2≤k1≤n, 1≤k2<k1, and n is the number of blended gasoline samples included in the current subclass;
[0022] -- The octane number difference Q is calculated according to the following formula (2), and all the octane number differences Q are used as the octane number difference set:
[0023] Q=Q k1 -Q k2 (2), where Q k1 is the standard octane number of the k1th blended gasoline sample, Q k2 is the standard octane number of the k2th blended gasoline sample.
[0024] Optionally, selecting the most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline sample included in the target subclass includes:
[0025] Performing a standard normal variable transformation process on the first characteristic spectrum of the blended gasoline sample included in the target subclass to obtain a transformed first characteristic spectrum, and performing a standard normal variable transformation process on the second characteristic spectrum of the sample to be tested to obtain a transformed second characteristic spectrum;
[0026] The moving window correlation coefficient method is used to compare the transformed first characteristic spectrum contained in the target subclass with the transformed second characteristic spectrum, and then the most similar spectrum of the transformed second characteristic spectrum is selected; wherein the moving window width of the moving window correlation coefficient method is 7.
[0027] Optionally, the step of selecting the most similar spectrum includes:
[0028] The average correlation coefficient between each of the transformed first characteristic spectrum and the transformed second characteristic spectrum in the target subclass is calculated according to the following formula (3): in, is the average correlation coefficient between the first characteristic spectrum after transformation and the second characteristic spectrum after transformation in the target subclass to which the sample to be tested belongs, m is the number of moving windows, R i is the correlation coefficient between the zth transformed first characteristic spectrum and the zth transformed second characteristic spectrum under the i-th moving window condition, where i is an integer between 1 and m;
[0029] Select the average correlation coefficient The largest transformed first characteristic spectrum is taken as the most similar spectrum.
[0030] Optionally, determining the target subclass to which the sample to be tested belongs according to the principal component score of the sample to be tested and the Gaussian mixture model includes:
[0031] According to the principal component scores of the sample to be tested and the Gaussian mixture model under the optimal clustering number condition, the posterior probability of the sample to be tested in each subclass is calculated respectively, and the subclass with the largest posterior probability is selected as the target subclass to which the sample to be tested belongs.
[0032] Optionally, the step of determining the optimal number of clusters includes:
[0033] Determining the optimal number of clusters according to the sum of squares of intra-cluster distances and the DBI clustering effectiveness index;
[0034] Preferably, the cluster number with the smallest DBI and the sum of squared distances within the cluster at the inflection point is selected as the optimal cluster number.
[0035] Optionally, the method further comprises:
[0036] Performing a first preprocessing on each of the first near-infrared spectra, and obtaining a first characteristic spectrum in the characteristic wavenumber interval according to the preprocessed first near-infrared spectra; and
[0037] Performing a second preprocessing on the second near-infrared spectrum of the gasoline sample to be tested, and obtaining a second characteristic spectrum in the characteristic wavenumber interval according to the preprocessed second near-infrared spectrum;
[0038] Optionally, the first preprocessing and the second preprocessing are second-order differential processing respectively, and the second-order differential processing adopts SG convolution derivation method with a window width of 25.
[0039] Optionally, the method further comprises:
[0040] The spectral difference set and octane number difference set of each subclass are sampled at equal intervals;
[0041] The spectrum difference values obtained by sampling are used to construct a spectrum difference matrix, and the octane number difference values obtained by sampling are used to construct an octane number difference matrix; the spectrum difference matrix and the octane number difference matrix are subjected to the partial least squares multiple regression analysis to obtain the dPLS correction model for each subclass;
[0042] Preferably, the number of spectrum differences and octane number differences sampled in each subclass is less than 1500.
[0043] Optionally, the step of determining the predicted octane number of the sample to be tested according to a linear combination of the octane difference predicted value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum comprises:
[0044] The predicted octane value is obtained by linearly adding the predicted octane value to the standard octane value of the blended gasoline sample corresponding to the most similar spectrum.
[0045] Optionally, the method further comprises:
[0046] Collecting blended gasoline, then selecting the blended gasoline sample from the collected blended gasoline, and determining the standard octane number of the blended gasoline sample;
[0047] Optionally, the blended gasoline sample is selected using the KS method;
[0048] Optionally, the standard octane number of the blended gasoline sample is determined according to the GB / T5487 method;
[0049] Optionally, the blended gasoline sample includes one or more of reformed gasoline, cracked gasoline and alkylated gasoline.
[0050] Optionally, the characteristic wave number interval is 5558-6122cm -1 .
[0051] Through the above technical scheme, the present disclosure provides a method for predicting the octane number of gasoline. The method adopts a Gaussian mixture model algorithm and extracts the near-infrared spectral features (principal component scores) of the blended gasoline samples based on PCA dimensionality reduction processing, performs unsupervised fine clustering on the blended gasoline samples, and then models the spectral difference set and octane number difference set calculated for each subclass under the optimal clustering condition to obtain a dPLS correction model corresponding to each subclass. The classification modeling method can make the dPLS correction model corresponding to each subclass more accurate. In the process of predicting the octane number of the sample to be tested, the present disclosure uses the second near-infrared spectrum of the sample to be tested to predict the octane number of the sample to be tested. The rows are classified, and then the most similar spectrum is searched in the target subclass to which it is assigned, and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum is determined, and the dPLS correction model of the target subclass to which it is assigned is used to predict the octane number difference, and finally the predicted octane number of the sample to be tested is obtained according to the standard octane number and the predicted octane number difference. The distribution characteristics of the sample data in the gasoline blending process in the time series can be fully considered, and clustering and classification modeling can be used to maximize the nonlinear dynamic characteristics in the gasoline blending process, which can better alleviate the nonlinearity between the near-infrared spectrum of the blended gasoline and the octane number, and has higher prediction accuracy.
[0052] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0054] Figure 1 A schematic flow chart of a method for predicting gasoline octane number provided in the present invention.
[0055] Figure 2 The diagram shows the optimal number of GMM clusters and its clustering effect determined by using the intra-cluster distance sum of squares (WSS) and DBI clustering effectiveness index in Example 1.
[0056] Figure 3 The optimal number of clusters of the K-means method and its clustering effect diagram determined by using the intra-cluster distance square sum (WSS) and DBI clustering effectiveness index in Comparative Example 1.
[0057] Figure 4 It is the prediction scatter plot during the verification process of Example 1 (GMM+dPLS), Comparative Example 2 (Global-dPLS) and Comparative Example 4 (Global-PLS). DETAILED DESCRIPTION
[0058] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0059] The present disclosure provides a method for predicting gasoline octane number, comprising the following steps S1-S9:
[0060] S1, obtaining first near infrared spectra of a plurality of blended gasoline samples with known standard octane numbers;
[0061] S2. Obtain the absorbance of each characteristic wavenumber interval in the first near-infrared spectrum to obtain a first characteristic spectrum, wherein the characteristic wavenumber interval is 5204-7518 cm -1 ;
[0062] S3, performing PCA dimensionality reduction processing on the first characteristic spectra of all blended gasoline samples to obtain load vectors and principal component scores;
[0063] S4, using the principal component score as a characteristic variable, constructing a Gaussian mixture model for all the first characteristic spectra, and determining an optimal number of clusters;
[0064] S5. Under the condition of the optimal number of clusters, for each subclass:
[0065] -- performing difference processing to obtain a spectrum difference set and an octane number difference set; wherein the difference processing comprises: respectively subtracting the first characteristic spectra of any two blended gasoline samples in the subclass to obtain spectrum differences, and constructing all spectrum differences into the spectrum difference set; respectively subtracting the standard octane numbers of any two blended gasoline samples in the subclass to obtain octane number differences, and constructing all octane number differences into the octane number difference set;
[0066] --Performing partial least squares multiple regression analysis on the spectral difference set and the octane number difference set to obtain the dPLS correction model of the subclass;
[0067] S6, obtaining a second near-infrared spectrum of the gasoline sample to be tested, obtaining the absorbance of the second near-infrared spectrum in the characteristic spectrum region, and obtaining a second characteristic spectrum;
[0068] S7, obtaining the principal component score of the sample to be tested according to the product of the absorbance of the second characteristic spectrum and the load vector obtained by the PCA dimensionality reduction process; determining the target subclass to which the sample to be tested belongs according to the principal component score of the sample to be tested and the Gaussian mixture model;
[0069] S8. Select the most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline sample included in the target subclass; determine the standard octane number of the blended gasoline sample corresponding to the most similar spectrum; subtract the second characteristic spectrum of the sample to be tested from the first characteristic spectrum of the blended gasoline sample corresponding to the most similar spectrum to obtain a spectrum difference of the sample to be tested;
[0070] S9. Determine an octane number difference prediction value based on the spectral difference of the sample to be tested and the dPLS correction model of the target subclass; determine the predicted octane number of the sample to be tested based on a linear combination of the octane difference prediction value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum.
[0071] The present invention provides a method for predicting the octane number of gasoline. The method adopts a Gaussian mixture model algorithm and extracts near-infrared spectral features (principal component scores) of blended gasoline samples based on PCA dimensionality reduction processing, performs unsupervised fine clustering on the blended gasoline samples, and then models the spectral difference set and octane number difference set calculated for each subclass under the optimal clustering condition to obtain a dPLS correction model corresponding to each subclass. The classification modeling method can make the dPLS correction model corresponding to each subclass more accurate. In the process of predicting the octane number of the sample to be tested, the present invention first classifies the second near-infrared spectrum of the sample to be tested into categories. The target subclass is then classified into the most similar spectrum and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum is determined. The dPLS correction model of the target subclass is used to predict the octane number difference. Finally, the predicted octane number of the sample to be tested is obtained according to the standard octane number and the predicted octane number difference. The distribution characteristics of the sample data in the gasoline blending process in the time series can be fully considered. Clustering and classification modeling are used to maximize the nonlinear dynamic characteristics in the gasoline blending process, which can better alleviate the nonlinearity between the near-infrared spectrum of the blended gasoline and the octane number, and has higher prediction accuracy.
[0072] In the present disclosure, "standard octane number" refers to the octane number of a blended gasoline sample measured by a conventional method selected in the art, specifically, the octane number of a blended gasoline sample measured by the standard method GB / T5487. Principal Component Analysis (PCA) is a statistical method. A set of variables that may be correlated is converted into a set of linearly uncorrelated variables through an orthogonal transformation. The converted set of variables is called the principal component (referred to as the "load vector" in the present disclosure). The "load vector" (or "principal component") is the weighted combination of the original independent variables.
[0073] “Principal component score” refers to the weight of each principal component obtained by PCA dimensionality reduction processing.
[0074] In the present disclosure, a Gaussian mixture model (GMM) is a mixture model composed of multiple Gaussian models (which can be understood as a linear combination of multiple Gaussian distribution functions, and in theory, a Gaussian mixture model can fit any type of distribution). GMM is the fastest learning probability model, and its principle is to build a suitable mixed multidimensional Gaussian distribution model by fitting the input data set. Studies have shown that most data sets are actually distributed as Gaussian distributions, even if the original data set distribution is non-Gaussian, but as the sample size increases, according to the central limit theorem, its distribution will tend to Gaussian distribution, so the larger the data set size, the better the GMM fitting effect. In addition, by increasing the number of models, GMM can approximate any continuous probability density distribution, so GMM is suitable for more flexible cluster shapes.
[0075] The expectation-maximization algorithm (EM) is an effective method for learning GMM. The basic idea of the EM algorithm is to introduce implicit variables to solve the maximum likelihood estimate of the parameters of the model distribution, and then repeatedly iterate the implicit variable expectation formula and the model distribution parameter re-estimation formula until the likelihood function value converges.
[0076] In the present disclosure, the specific operation process of using the EM algorithm to construct a Gaussian mixture model and cluster the blended gasoline samples is well known to those skilled in the art.
[0077] Specifically, the steps of constructing a Gaussian mixture model using the EM algorithm in the present disclosure include:
[0078] Setting initial model parameters of a Gaussian mixture model (GMM). In the present disclosure, the number of clusters is set to K, and the initial parameters of the GMM model are determined using a K-means clustering method;
[0079] Then, the existing model is corrected using the EM algorithm (i.e., a process of adjusting model parameters so that the corrected model is suitable for practical applications of the present disclosure), including step E and step M:
[0080] Step E: Calculate the posterior probability of the hidden variable based on the initial value of the parameter or the model parameter of the previous iteration, which is actually the expectation of the hidden variable as the current estimated value of the hidden variable;
[0081] Step M: Calculate the model parameters for a new round of iteration.
[0082] Repeat steps E and M until the algorithm converges.
[0083] In a specific embodiment, the method also includes: performing PCA dimensionality reduction processing on the first characteristic spectra of all blended gasoline samples, extracting the principal component (i.e., load vector) corresponding to the cumulative contribution rate of 99.9%, and using its score as the principal component score and as the input variable of the GMM algorithm to cluster all the first characteristic spectra.
[0084] In the present disclosure, the "subclass" refers to one of the multiple classes obtained by clustering, and each subclass may contain multiple samples. The number of samples in different subclasses is independent of each other, and may be the same or different. For example, in the present disclosure, the first characteristic spectrum is clustered, and the best number of clusters obtained is 5, that is, 5 subclasses are obtained, each of which contains multiple first characteristic spectra, and the number of first characteristic spectra in different subclasses is the same or different. In the present disclosure, the "dPLS correction submodel" refers to the dPLS correction model corresponding to a subclass after clustering.
[0085] In one implementation, the difference processing includes:
[0086] -- Calculate the spectrum difference G according to the following formula (1), and use all the spectrum differences G as the spectrum difference set:
[0087] G=G k1 -G k2 (1), where G k1 is the first characteristic spectrum of the k1th blended gasoline sample, G k2 is the first characteristic spectrum of the k2th blended gasoline sample, k1 and k2 are integers, 2≤k1≤n, 1≤k2<k1, and n is the number of blended gasoline samples included in the current subclass;
[0088] -- The octane number difference Q is calculated according to the following formula (2), and all the octane number differences Q are used as the octane number difference set:
[0089] Q=Q k1 -Q k2 (2), where Qk1 is the standard octane number of the k1th blended gasoline sample, Q k2 is the standard octane number of the k2th blended gasoline sample.
[0090] In the present disclosure, under the condition of the optimal number of clusters, the spectrum difference calculation and the octane number difference calculation are performed in each subclass respectively. Specifically, the first characteristic spectrum and the standard octane number of the k1th blended gasoline sample are subtracted from the first characteristic spectrum and the standard octane number of the blended gasoline sample (k2) numbered before k1. Assuming that there are 5 blended gasoline samples in a subclass, numbered 1 to 5, the first characteristic spectrum and the standard octane number of the blended gasoline samples represented by the two numbers in the brackets are subtracted according to the following subtraction rules: (5-4), (5-3), (5-2), (5-1); (4-3), (4-2), (4-1); (3-2), (3-1); (2-1), where each number represents the blended gasoline sample corresponding to the number.
[0091] In a specific implementation, the samples in each class are numbered (1, 2, 3, ..., n), and the spectral data and the octane number data are subjected to difference processing, wherein the difference processing method is performed in the following form:
[0092]
[0093] In the present disclosure, the blended gasoline samples in each subcategory may be numbered according to any rule, such as random numbering.
[0094] In a specific embodiment, the method further comprises:
[0095] The spectral difference set and octane number difference set of each subclass are sampled at equal intervals;
[0096] The spectrum difference values obtained by sampling are used to construct a spectrum difference matrix, and the octane number difference values obtained by sampling are used to construct an octane number difference matrix; the spectrum difference matrix and the octane number difference matrix are subjected to the partial least squares multiple regression analysis to obtain the dPLS correction model for each subclass;
[0097] Preferably, the number of spectrum differences and octane number differences sampled in each subclass is less than 1500.
[0098] In the present disclosure, the spectral difference set and octane number difference set calculated in each subclass are sampled at equal intervals, and the sampling interval in the spectral difference set is the same as the sampling interval in the octane number difference set, so as to ensure that the sampled spectral difference and octane number difference are obtained by subtracting two blended samples with the same number, thereby ensuring a one-to-one correspondence between the spectral difference and octane number difference used for modeling.
[0099] In this disclosure, the intra-cluster distance sum of squares (WSS) and DBI indicators are used as indicators to evaluate the GMM clustering quality. Specifically, the smaller the WSS, the closer the objects in the cluster are; DBI Smaller values indicate better clustering results.
[0100] In a specific implementation, the step of determining the optimal number of clusters includes: determining the optimal number of clusters according to the sum of squared distances within the cluster and the DBI clustering effectiveness index;
[0101] Preferably, the cluster number with the smallest DBI and the sum of squared distances within the cluster at the inflection point is selected as the optimal cluster number.
[0102] In a specific embodiment, the method for determining the optimal number of clusters of GMM disclosed herein includes: performing a nested loop on the GMM algorithm, obtaining a series of WSS values and DBI values corresponding to the number of clusters and plotting them, and selecting the number of clusters with the smallest DBI and the WSS at the inflection point as the optimal clustering result. In the present disclosure, performing a nested loop on the GMM algorithm is an operation well known to those skilled in the art.
[0103] In a specific embodiment, the present disclosure, in the process of performing partial least squares multivariate regression analysis on each subclass and constructing a dPLS correction model for each subclass, also includes: optimizing the optimal number of principal factors of the dPLS correction model based on the decrease in the predicted residual sum of squares (PRESS) of the leave-one-out interaction test as the number of principal factors increases; a large decrease in the predicted residual sum of squares indicates that the principal component contributes greatly to the model and is retained; if the decrease is very small, it indicates that the principal component contributes little to the model and is eliminated to further improve the accuracy of the dPLS correction model.
[0104] In one embodiment, determining the target subclass to which the sample to be tested belongs according to the principal component score of the sample to be tested and the Gaussian mixture model includes:
[0105] According to the principal component score of the sample to be tested and the Gaussian mixture model under the optimal clustering number condition, the posterior probability of the sample to be tested in each subclass is calculated respectively, and the subclass with the largest posterior probability is selected as the target subclass to which the sample to be tested belongs. The method for calculating the posterior probability is well known to those skilled in the art and will not be described in detail here.
[0106] Specifically, in the clustering process of the present disclosure, the model output parameters of the GMM of each subclass obtained have been determined and saved; in the process of determining the target subclass to which the sample to be tested belongs, the absorbance of the second characteristic spectrum of the sample to be tested is multiplied by the load vector obtained by the PCA dimensionality reduction process to obtain the PCA score (the principal component score of the sample to be tested), and then the saved GMM output parameters are called to solve the responsiveness (posterior probability) of the PCA score of the sample to be tested to each GMM subclass, and then the subclass with the largest posterior probability is selected as the target subclass to which the sample to be tested belongs. In the present disclosure, Bayes' theorem is used to calculate the posterior probability of the sample to be tested in each subclass, which is an operation well known in the art.
[0107] In one embodiment, selecting the most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline sample included in the target subclass includes:
[0108] Performing a standard normal variable transformation process on the first characteristic spectrum of the blended gasoline sample included in the target subclass to obtain a transformed first characteristic spectrum, and performing a standard normal variable transformation process on the second characteristic spectrum of the sample to be tested to obtain a transformed second characteristic spectrum;
[0109] The moving window correlation coefficient method is used to compare the transformed first characteristic spectrum contained in the target subclass with the transformed second characteristic spectrum, and then the most similar spectrum of the transformed second characteristic spectrum is selected; wherein the moving window width of the moving window correlation coefficient method is 7. The present invention performs standard normal variable transformation processing on the first characteristic spectrum and the second characteristic spectrum respectively to correct the near-infrared spectrum and eliminate the deviation, and then selects the most similar spectrum in the corresponding target subclass to improve the accuracy.
[0110] The moving window correlation coefficient method used in the present disclosure is an operation well known in the art.
[0111] In a specific implementation manner, the step of selecting the most similar spectrum includes: calculating the average correlation coefficient between each of the transformed first characteristic spectrum and the transformed second characteristic spectrum in the target subclass according to the following formula (3): in, is the average correlation coefficient between the first characteristic spectrum after transformation and the second characteristic spectrum after transformation in the target subclass to which the sample to be tested belongs, m is the number of moving windows, R i is the correlation coefficient between the zth transformed first characteristic spectrum and the zth transformed second characteristic spectrum under the i-th moving window condition, where i is an integer between 1 and m;
[0112] The transformed first characteristic spectrum with the largest average correlation coefficient is selected as the most similar spectrum.
[0113] In a specific implementation, the method further includes:
[0114] Performing a first preprocessing on each of the first near-infrared spectra, and obtaining a first characteristic spectrum in the characteristic wavenumber interval according to the preprocessed first near-infrared spectra; and
[0115] Performing a second preprocessing on the second near-infrared spectrum of the gasoline sample to be tested, and obtaining a second characteristic spectrum in the characteristic wavenumber interval according to the preprocessed second near-infrared spectrum;
[0116] Optionally, the first preprocessing and the second preprocessing are second-order differential processing. In a specific implementation, the window width of the second-order differential processing is 25. In the present disclosure, the second-order differential processing method can be derived using SG (Savitzky-Golay).
[0117] In one embodiment, the method of determining the predicted octane number of the sample to be tested based on a linear combination of the octane difference predicted value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum includes:
[0118] The predicted octane value is obtained by linearly adding the predicted octane value to the standard octane value of the blended gasoline sample corresponding to the most similar spectrum.
[0119] In a preferred embodiment, the characteristic wave number interval is 5558-6122cm -1 .
[0120] In a preferred embodiment, the wavenumber comparison interval in the step of selecting the most similar spectrum using the moving window correlation coefficient method is 5558-6122 cm -1 .
[0121] In a specific embodiment, the characteristic wavenumber interval used in the process of constructing the dPLS correction model can be the same as or different from the wavenumber comparison interval in the step of selecting the most similar spectrum of the sample to be tested. Specifically, the characteristic wavenumber interval used in the process of constructing the dPLS correction model is 5204-7518cm -1 The wave number comparison interval is 5558-6122cm -1 .
[0122] In one embodiment, the blended gasoline sample includes one or more of reformed gasoline, cracked gasoline and alkylated gasoline.
[0123] In one embodiment, the method further comprises: collecting blended gasoline, then selecting the blended gasoline sample from the collected blended gasoline, and determining the standard octane number of the blended gasoline sample; optionally, the blended gasoline sample is selected using the KS method.
[0124] In a specific embodiment, the blended gasoline samples used in the present disclosure are blended gasoline samples collected over a period of time, so that the collected blended gasoline samples are different in time distribution. For example, blended gasoline samples are collected over a period of time (preferably representative gasoline samples for a whole year, and the annual samples basically include all changes in gasoline components in four quarters), and their standard octane numbers are determined using standard methods (such as GB / T5487). The more gasoline samples are selected, the more accurate and reliable the model built is. In actual operation, in order to reduce the workload, an appropriate number of blended gasoline samples that can cover all possible prediction values are generally selected. In the present disclosure, the octane number range that may be predicted for the blended gasoline samples is 88 to 100.
[0125] In a specific implementation, the KS method is used to select representative samples from all the blended gasoline samples collected, and then a certain number of samples are selected at equal intervals as separate validation sets, and the remaining samples are used as training sets for model construction.
[0126] In a specific embodiment, the present disclosure provides a method for predicting the octane number of gasoline, comprising the following steps S101-S108, wherein steps S101-S104 are steps of constructing a dPLS correction model for each subclass, and steps S105-S108 are steps of determining the predicted octane number of the sample to be tested:
[0127] S101, collecting blended gasoline samples over a period of time, determining the standard octane number of each blended gasoline sample according to a standard method, and determining the first near infrared spectrum of each blended gasoline sample;
[0128] S102, perform second-order differential processing on the first near-infrared spectrum of each blended gasoline sample (window width is 25), and then intercept the characteristic wavenumber interval 5204-7518cm -1 The absorbance in the spectral region is used to obtain the first characteristic spectrum;
[0129] S103, performing PCA dimensionality reduction (compression) processing on the first characteristic spectra of all blended gasoline samples to obtain a load vector (also called a principal component, which is the principal component corresponding to a cumulative contribution rate of 99.9%) and a principal component score; then using the principal component score after dimensionality reduction as an input variable of a Gaussian mixture model (GMM) to construct a GMM, and clustering all the first characteristic spectra;
[0130] Then, the sum of squared distances within the cluster and the DBI clustering effectiveness index are used to screen multiple subclasses obtained by clustering, and the number of clusters with the minimum DBI and the sum of squared distances within the cluster at the inflection point is selected as the best clustering result, and the best number of clusters is obtained;
[0131] S104. Under the condition of the optimal number of clusters, each subclass contains n blended gasoline samples, and the samples in each class are numbered (1, 2, 3, ..., n). The spectral data and the octane number data are subjected to difference processing respectively to obtain a spectral difference set and an octane number difference set, wherein the difference processing method is performed in the following form:
[0132]
[0133] The data in the spectral difference set and the octane number difference set are sampled at equal intervals to obtain a suitable number of modeling data sets (the spectral difference and the octane number difference correspond one to one, and the data of the spectral difference and the octane number difference do not exceed 1500 respectively);
[0134] The spectrum difference values obtained by sampling are used to construct a spectrum difference matrix, and the octane number difference values obtained by sampling are used to construct an octane number difference matrix; the spectrum difference matrix and the octane number difference matrix are subjected to the partial least squares multiple regression analysis to obtain a dPLS correction model for each subclass; wherein the number of principal factors of the correction model is optimized by the decrease of the predicted residual sum of squares (PRESS) of the leave-one-out interaction test as the number of principal factors increases;
[0135] S105, measure the second near infrared spectrum of the gasoline sample to be tested, and perform second-order differential processing (SG convolution derivative method, window width is 25); then obtain the second near infrared spectrum after the second-order differential processing in the characteristic wave number range of 5204-7518cm -1 The absorbance in the spectral region is used to obtain a second characteristic spectrum; and the absorbance of the second characteristic spectrum is multiplied by the load vector obtained by the PCA dimensionality reduction process in step S103 to obtain the principal component score of the sample to be tested;
[0136] S106, combining the output parameters of the Gaussian mixture model under the optimal cluster number condition, using the Bayesian theorem to calculate the posterior probability of the sample to be tested in each subclass, and selecting the subclass with the largest posterior probability as the target subclass to which the sample to be tested finally belongs;
[0137] S107. After the classification of the sample to be tested is completed, the second characteristic spectrum of the sample to be tested is subjected to a standard normal variable transformation (SNV) to obtain the transformed second characteristic spectrum, and the first characteristic spectrum contained in the target subclass is subjected to a standard normal variable transformation to obtain the transformed first characteristic spectrum; then, the moving window correlation coefficient method (moving window width is 7) is used to select the most similar spectrum of the transformed second characteristic spectrum with the largest average correlation coefficient from the transformed first characteristic spectrum contained in the assigned target subclass, wherein the wave number comparison interval is 5558-6122cm -1 (Assuming the dPLS correction model is highly accurate, the more similar the spectra are, the more accurate the final prediction result will be);
[0138] Subtracting the second characteristic spectrum of the sample to be tested from the first characteristic spectrum of the blended gasoline sample corresponding to the selected most similar spectrum to obtain a spectrum difference of the sample to be tested;
[0139] S108, substituting the spectrum difference of the sample to be tested into the dPLS correction model of the target subclass to which the sample to be tested belongs, to obtain the predicted octane number difference; then linearly adding the predicted octane number difference with the standard octane number of the blended gasoline sample corresponding to the most similar spectrum, to determine the predicted octane number of the sample to be tested. The specific operation and principle of each step in this embodiment have been described in the above content, and will not be repeated here.
[0140] The present invention is further described in detail below by examples, but the present invention is not limited thereto.
[0141] In the following examples and comparative examples, the near infrared spectroscopy detection involved all adopted the same test conditions: the scanning range of the instrument was 4000-1000cm -1 , resolution 8cm -1 .
[0142] Example 1
[0143] (1) 459 samples of blended gasoline from a certain factory were collected and their research octane number (RON) was measured using the GB / T5487 method to obtain the standard octane number of all blended gasoline samples. 453 representative blended gasoline samples were selected for modeling and evaluation using the KS method, 151 samples were equally spaced as a separate validation set, and the rest were used as a training set (302 blended gasoline samples).
[0144] (2) The above steps S101 to S104 are used to construct the dPLS correction model (GMM+dPLS) corresponding to each subclass under the optimal number of clusters. The relevant statistical results used for clustering are shown in Table 1 (the optimal number of clusters is 5). The optimal number of clusters is determined by WSS and DBI plots, see Figure 2The relevant statistical parameters used to construct the dPLS correction model are shown in Table 2. In this embodiment, 5 sub-models are constructed.
[0145] (3) The above steps S105 to S108 are used to predict the octane number of each sample to be tested in the validation set. The relevant statistical parameters of the validation set are shown in Table 1 and Table 2. The prediction scatter plot of the validation set of this embodiment is shown in Figure 4 .
[0146] Among them, the statistical parameters SEP (standard deviation of prediction) and R 2 The calculation formula of (coefficient of determination) is shown in the following equations (4) and (5):
[0147]
[0148] Among them, y i,predicted is the predicted octane number of the i-th sample of a subclass in the validation set, y i,actual is the true value (standard octane number) of the i-th sample of this subclass in the validation set, n is the number of samples contained in this subclass in the validation set, and i is an integer between 1 and n.
[0149] Table 1
[0150]
[0151] Table 2
[0152]
[0153] In the above table, after the validation set samples are processed for the target subclass attribution, the number of samples belonging to the second cluster number (submodel 2) is 3. The error (SD) calculation is performed on the 3 validation set samples to obtain the corresponding SD1, SD2 and SD3 values (as shown in Table 2 above), where
[0154] In the above table, SEP_OVERALL and R 2 _OVERALL is calculated by summing up the predicted values and true values of all validation set samples. The calculation method is the same as SEP and R in a single sub-model. 2 The calculation method is the same.
[0155] Comparative Example 1
[0156] According to the process of Example 1, the gasoline octane number near infrared spectroscopy calibration model was established and verified. The difference is that the clustering method is replaced by the traditional K-means clustering method, and then the corresponding dPLS calibration sub-model is established according to the clustering results obtained by this method. The relevant statistical parameters of the clustering process, training process and verification process are shown in Table 3 and Table 4. The clusters are determined by WSS and DBI plots, see Figure 3.
[0157] K-means clustering uses K-Means algorithm, and the specific process is an operation well known in the art.
[0158] Table 3
[0159]
[0160] Table 4
[0161]
[0162]
[0163] Comparative Example 2
[0164] According to the process of Example 1, a gasoline octane number near-infrared spectroscopy correction model is established and verified. The difference from Example 1 is that Comparative Example 2 directly establishes a global difference partial least squares correction model (Global-dPLS) for the blended gasoline sample, specifically: all spectral differences collected from all subclasses are used to construct a spectral difference matrix, all octane number differences collected from all subclasses are used to construct an octane number difference matrix, and then partial least squares multivariate regression analysis is performed to obtain a global dPLS correction model (Global-dPLS), without performing the step of constructing a dPLS sub-model for each subclass separately;
[0165] In the process of predicting the samples to be tested in the validation set, the spectral difference of the samples to be tested is substituted into the global dPLS correction model to obtain the octane difference prediction value. Other steps, such as the most similar spectrum screening step, are the same as in Example 1. The statistical parameters related to the correction process and the validation process are shown in Table 5. The prediction scatter plot of the validation set of this comparative example is shown in Figure 4 .
[0166] Table 5
[0167]
[0168]
[0169] Comparative Example 3
[0170] A gasoline octane number near-infrared spectral correction model was established and verified according to the process of Example 1. The difference is that, in Example 3, a correction sub-model was established directly using the traditional partial least squares algorithm (PLS) based on the optimal clustering number of GMM, that is, the first characteristic spectrum of the blended gasoline sample in each subclass was used to construct a spectral matrix, and the standard octane number was used to construct an octane number matrix. Then, partial least squares algorithm regression analysis was performed to obtain the PLS correction model corresponding to each subclass, and the spectral difference and octane number difference calculation steps were not performed.
[0171] In the process of predicting the samples in the validation set, after determining the target subclass to which the samples belong, the second characteristic spectrum of the samples is directly substituted into the PLS correction submodel corresponding to the target subclass to obtain the corresponding octane number prediction value without performing other steps such as selecting the most similar spectrum. The relevant statistical parameters of the GMM clustering process are shown in Table 1, and the relevant statistical parameters of the correction process and the validation process are shown in Table 6.
[0172] Table 6
[0173]
[0174]
[0175] Comparative Example 4
[0176] According to the process of Example 1, a gasoline octane number near-infrared spectroscopy calibration model was established and verified. The difference is that in Example 4, the traditional partial least squares algorithm (PLS) was directly used to establish a global calibration model (Global-PLS) for the blended gasoline sample. During the verification process, the second characteristic spectrum of the sample to be tested was directly substituted into the global calibration model to obtain the octane number prediction value. The statistical parameters related to the calibration process and the verification process are shown in Table 7. The prediction scatter plot of the verification set of this comparative example is shown in Figure 4 .
[0177] Table 7
[0178]
[0179] According to Tables 1-7 above, compared with Comparative Examples 1-4, the overall SEP of the predicted octane number of the blended gasoline sample determined by the method provided by the present disclosure is 0.2267, and the overall R 2 is 0.9883; in Comparative Examples 1-4, the overall SEP is 0.2310-0.3481, and the overall R 2 The predicted standard deviation (SEP) of the method provided by the present disclosure is smaller and the overall R 2 (coefficient of determination) is larger, indicating that the method provided by the present disclosure has higher prediction accuracy.
[0180] according to Figure 4 It can be seen from the prediction scatter plot that, compared with comparative examples 2 and 4, the discrete degree of Example 1 of the present disclosure is smaller, indicating that the method provided by the present disclosure has smaller deviation and higher accuracy.
[0181] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0182] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0183] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for predicting gasoline octane number, comprising the following steps: acquiring first near-infrared spectra of a plurality of blended gasoline samples of known standard octane numbers; Obtain the absorbance of each characteristic wavenumber interval in the first near-infrared spectrum to obtain a first characteristic spectrum, wherein the characteristic wavenumber interval is 5204-7518 cm -1 ; Performing PCA dimensionality reduction processing on the first characteristic spectra of all blended gasoline samples to obtain load vectors and principal component scores; Using the principal component scores as characteristic variables, constructing a Gaussian mixture model for all the first characteristic spectra, and determining an optimal number of clusters; Under the condition of the optimal number of clusters, for each subclass: --Perform difference processing to obtain spectrum difference set and octane number difference set; The difference processing includes: subtracting the first characteristic spectra of any two blended gasoline samples in the subclass to obtain a spectrum difference, and constructing all the spectrum differences into the spectrum difference set; subtracting the standard octane values of any two blended gasoline samples in the subclass to obtain an octane value difference, and constructing all the octane value differences into the octane value difference set; --Performing partial least squares multiple regression analysis on the spectral difference set and the octane number difference set to obtain the dPLS correction model of the subclass; Obtaining a second near-infrared spectrum of the gasoline sample to be tested, and obtaining the absorbance of the second near-infrared spectrum in the characteristic spectrum region to obtain a second characteristic spectrum; Obtaining a principal component score of the gasoline sample to be tested based on the product of the absorbance of the second characteristic spectrum and the load vector obtained by the PCA dimensionality reduction process; determining a target subclass to which the gasoline sample to be tested belongs based on the principal component score of the gasoline sample to be tested and the Gaussian mixture model; Selecting a most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline samples included in the target subclass; determining the standard octane number of the blended gasoline sample corresponding to the most similar spectrum; and subtracting the second characteristic spectrum of the gasoline sample to be tested from the first characteristic spectrum of the blended gasoline sample corresponding to the most similar spectrum to obtain a spectral difference of the gasoline sample to be tested; The octane number difference prediction value is determined based on the spectral difference value of the gasoline sample to be tested and the dPLS correction model of the target subclass; the predicted octane number of the gasoline sample to be tested is determined based on a linear combination of the octane number difference prediction value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum.
2. The method according to claim 1, wherein The difference processing includes: --Calculate the spectral difference G according to the following formula (1), and use all the spectral differences G as the spectral difference set: G=G k1 -G k2 (1), where G k1 is the first characteristic spectrum of the k1th blended gasoline sample, G k2 is the first characteristic spectrum of the k2th blended gasoline sample, k1 and k2 are integers, 2≤k1≤n, 1≤k2<k1, and n is the number of blended gasoline samples included in the current subclass; --Calculate the octane number difference Q according to the following formula (2), and use all the octane number differences Q as the octane number difference set: Q=Q k1 -Q k2 (2), where Q k1 is the standard octane number of the k1th blended gasoline sample, Q k2 is the standard octane number of the k2th blended gasoline sample.
3. The method according to claim 1, wherein The selecting of the most similar spectrum corresponding to the second characteristic spectrum from the first characteristic spectrum of the blended gasoline sample included in the target subclass includes: Performing a standard normal variable transformation on a first characteristic spectrum of the blended gasoline sample included in the target subclass to obtain a transformed first characteristic spectrum, and performing a standard normal variable transformation on a second characteristic spectrum of the gasoline sample to be tested to obtain a transformed second characteristic spectrum; The transformed first characteristic spectrum contained in the target subclass is compared with the transformed second characteristic spectrum using a moving window correlation coefficient method, and then the most similar spectrum to the transformed second characteristic spectrum is selected; wherein the moving window width of the moving window correlation coefficient method is 7.
4. The method according to claim 3, wherein: The step of selecting the most similar spectrum comprises: The average correlation coefficient between each of the transformed first characteristic spectrum and the transformed second characteristic spectrum in the target subclass is calculated according to the following formula (3): (3); among them, is the average correlation coefficient between the first characteristic spectrum after transformation and the second characteristic spectrum after transformation in the target subclass to which the gasoline sample to be tested belongs, m is the number of moving windows, R i is the correlation coefficient between the zth transformed first characteristic spectrum and the zth transformed second characteristic spectrum under the i-th moving window condition, where i is an integer between 1 and m; The first characteristic spectrum after transformation with the largest average correlation coefficient is selected as the most similar spectrum.
5. The method according to claim 1, wherein The step of determining the target subclass to which the gasoline sample to be tested belongs based on the principal component score of the gasoline sample to be tested and the Gaussian mixture model includes: According to the principal component scores of the gasoline sample to be tested and the Gaussian mixture model under the optimal cluster number condition, the posterior probability of the gasoline sample to be tested in each subclass is calculated respectively, and the subclass with the largest posterior probability is selected as the target subclass to which the gasoline sample to be tested belongs.
6. The method according to claim 1, wherein The steps to determine the optimal number of clusters include: The optimal number of clusters is determined based on the sum of squared distances within the cluster and the DBI clustering effectiveness index.
7. The method according to claim 6, wherein: The method includes: The cluster number with the smallest DBI and the sum of squared distances within the cluster at the inflection point is selected as the optimal cluster number.
8. The method according to claim 1, wherein The method further includes: performing a first preprocessing on each of the first near-infrared spectra, and obtaining a first characteristic spectrum in the characteristic wavenumber interval based on the preprocessed first near-infrared spectra; and A second preprocessing is performed on the second near-infrared spectrum of the gasoline sample to be tested, and a second characteristic spectrum in the characteristic wavenumber interval is obtained based on the preprocessed second near-infrared spectrum.
9. The method according to claim 8, wherein The first preprocessing and the second preprocessing are second-order differential processing respectively, and the second-order differential processing adopts the SG convolution derivation method with a window width of 25.
10. The method according to claim 1, wherein The method further includes: The spectral difference set and octane number difference set of each subclass are sampled at equal intervals; The spectral differences obtained by sampling are used to construct a spectral difference matrix, and the octane number differences obtained by sampling are used to construct an octane number difference matrix; the spectral difference matrix and the octane number difference matrix are subjected to the partial least squares multiple regression analysis to obtain the dPLS correction model for each subclass.
11. The method according to claim 10, wherein: The number of spectral differences and octane number differences sampled in each subclass is less than 1500.
12. The method according to claim 1, wherein The method of determining the predicted octane number of the gasoline sample to be tested based on a linear combination of the predicted octane number difference value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum includes: The predicted octane number difference value and the standard octane number of the blended gasoline sample corresponding to the most similar spectrum are linearly added to obtain the predicted octane number.
13. The method according to claim 1, wherein The method further includes: The blended gasoline is collected, and then the blended gasoline sample is selected from the collected blended gasoline, and the standard octane number of the blended gasoline sample is measured.
14. The method according to claim 13, wherein The blended gasoline sample is selected using the KS method; Determine the standard octane number of the blended gasoline sample according to the GB / T5487 method; The blended gasoline sample includes one or more of reformed gasoline, cracked gasoline and alkylated gasoline.
15. The method according to any one of claims 1 to 14, wherein: The characteristic wave number range is 5558-6122 cm -1 .
