A method for determining characteristic spectrum in rapid oil testing and an octane content detection system

Through the method of determining characteristic spectrum segments based on statistical methods, the problems of long detection cycle and false correlation in oil quality supervision are solved, the accuracy and universal applicability of rapid oil detection are achieved, and the accuracy of detection and interpretation of the model are improved. ability.

CN116660207BActive Publication Date: 2024-09-13BEIJING YIXINGYUAN PETROCHEMICAL TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310736869.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2024-09-13
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

The existing technology has problems in oil quality supervision, such as long detection cycle, large investment in administrative resources, and weak deterrent effect. Moreover, the traditional variable importance projection method may introduce the problem of 'false correlation', resulting in poor rapid analysis of oil products.

Method used

A method for determining characteristic spectrum segments based on statistical methods is adopted, including spectral preprocessing of the near-infrared spectrum, calculation of VIP values, derivative processing, and selecting the top 10% parts as characteristic spectrum segments in order of derivative values ​​to reduce the technical level of operators. requirements to improve detection accuracy.

Benefits of technology

Screening characteristic spectrum segments through statistical methods reduces the dependence of detection results on operators, improves the accuracy and universal applicability of rapid oil detection, and enhances the model's explanation ability and modeling analysis accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116660207B
    Figure CN116660207B
Patent Text Reader

Abstract

The present invention discloses a method for determining characteristic spectrum segments in rapid oil inspection and an octane content detection system, which relates to the fields of chemometrics and analytical chemistry, uses a variable importance projection algorithm to screen characteristic spectrum segments that determine the physical and chemical property indicators of gasoline and diesel, performs first-order derivative processing on spectrum points with VIP values ​​greater than 1, selects the spectrum with derivative values ​​in the first 10% as the characteristic spectrum segments determined by the present invention, and then performs modeling analysis to calculate the content of the indicator to be measured. The present invention collects and analyzes near-infrared spectra and determines characteristic spectrum segments only by statistical methods, thereby reducing the requirements for the technical level and background knowledge of operators, making the entire operation process more convenient and more universally applicable; and the process is a determined step and calculation method, and when the near-infrared spectra are determined, different operators will also obtain the same analysis results, without involving the influence of human factors, thereby improving the accuracy of blind sample prediction analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the fields of chemometrics and analytical chemistry, and in particular to a method and system for determining characteristic spectrum segments in rapid oil product testing. Background Art

[0002] For many years, conventional laboratory testing of refined oil products has been the main quality testing method of market supervision departments, and has played an important role in the quality supervision of refined oil products. However, with the continuous changes in environmental protection policies and the frequent upgrades of refined oil standards, conventional laboratory testing has gradually exposed prominent problems such as long testing cycles, large administrative resource investment, and weak deterrence, which has restricted the improvement of oil quality supervision efficiency and requires further improvement of oil quality testing capabilities.

[0003] Wavelength selection is a key step in the use of near-infrared spectroscopy for oil testing. Appropriate wavelength selection can remove invalid information and interfering variables in the spectrum, obtain better model prediction performance, and improve model interpretation capabilities.

[0004] So far, a variety of near-infrared wavelength selection methods have been developed. For example, interval partial least squares method, continuous projection algorithm, variable importance projection algorithm and competitive adaptive sampling method, etc. These technologies use statistical screening methods to obtain spectral variables with greater correlation with property indicators, which can improve the stability and accuracy of data models to a certain extent. However, these methods cannot solve the problem of "false correlation" between spectral variables and property indicators caused by environmental factors or instrument performance factors. Therefore, the above methods have not been widely used in the rapid analysis of oil products.

[0005] The traditional variable importance projection method only screens specific variables based on the VIP index, which may introduce "misselected" irrelevant variables due to factors such as instruments or environment.

[0006] The application document with the publication number CN115372309A discloses a method for selecting an associated effective characteristic spectrum segment and a method for rapid detection of oil product index content. The characteristic spectrum segment selection method comprises the steps of selecting characteristic spectrum segments according to a near-infrared spectrum, and then using a variable importance projection algorithm to screen out characteristic spectrum segments with a VIP value greater than 1. The intersection of the characteristic spectrum segments selected by the two methods is used as the characteristic spectrum segment selected as a seed, which can effectively improve the accuracy of blind sample prediction analysis. However, this method requires the analysis of the near-infrared spectrum, which requires the operator to have certain basic theoretical knowledge of chemistry and a full understanding of the chemical structure of the oil product. Moreover, for the same near-infrared spectrum, different operators will screen out different characteristic spectrum segments, and the detection results are easily affected by the subjective influence of the operator.

[0007] Therefore, continuous research and analysis are still needed to solve the problem of "false correlation" between spectral variables and property indicators caused by environmental factors or instrument performance factors. Summary of the invention

[0008] In view of the above problems, the present invention proposes to establish a method for screening characteristic spectrum segments according to statistical methods, and apply the method to the rapid detection of oil products.

[0009] The present invention proposes a method for determining characteristic spectrum segments in rapid oil testing, comprising the following steps:

[0010] Step S1: adding a predetermined amount of the substance to be tested into the oil product to prepare a sample;

[0011] Step S2: collecting a near infrared spectrum of the sample;

[0012] Step S3: performing spectral preprocessing on the near-infrared spectrum;

[0013] Step S4: Calculate the VIP values ​​of all spectral points after spectral preprocessing;

[0014] Step S5: performing derivative processing on the spectral points whose VIP values ​​are greater than 1;

[0015] Step S6: Determine a characteristic spectrum segment according to the result of the derivative processing.

[0016] Furthermore, the spectrum preprocessing method in step S3 is a first-order derivative filter fitting method.

[0017] Furthermore, the step S6 specifically includes: sorting the derivative values ​​from large to small, selecting the part with the derivative values ​​in the first 10%, and the spectrum corresponding to the part is the determined characteristic spectrum segment.

[0018] A system for detecting octane content in oil products, using the method for determining characteristic spectrum in rapid oil product testing as described in any one of the above items, comprises the following modules:

[0019] Sample preparation module: used to add a predetermined amount of octane into oil products to prepare samples;

[0020] Near infrared spectrum acquisition module: connected to the sample preparation module, used for acquiring the near infrared spectrum of the sample;

[0021] Spectrum preprocessing module: connected to the near-infrared spectrum acquisition module, used for performing spectrum preprocessing on the near-infrared spectrum;

[0022] Characteristic spectrum segment determination module: connected to the spectrum preprocessing module, used to calculate the VIP values ​​of all spectrum points after spectrum preprocessing, perform derivative processing on the spectrum points with VIP values ​​greater than 1, and determine the characteristic spectrum segment according to the results of the derivative processing;

[0023] Sample detection module: connected to the characteristic spectrum determination module, used to detect the octane number in the oil product according to the characteristic spectrum.

[0024] Furthermore, the spectral preprocessing method is a first-order derivative filter fitting method.

[0025] Furthermore, the characteristic spectrum segments are subjected to derivative processing, sorted from large to small according to the derivative values, and the portion with the derivative values ​​in the first 10% is selected, and the spectrum corresponding to the portion is the determined characteristic spectrum segment.

[0026] Furthermore, the characteristic spectrum was determined to be 4003.497-4666.890 cm -1 、5397.779~5970.533cm -1 、8167.057~8392.688cm -1 .

[0027] Compared with the prior art, the beneficial effects of the present invention are:

[0028] Firstly, the present invention collects near-infrared spectra of samples and determines characteristic spectrum segments only by statistical methods when analyzing the near-infrared spectra, thereby reducing the requirements on the technical level and background knowledge of operators and making the whole operation process more convenient and more universally applicable.

[0029] Secondly, when processing the near-infrared spectrum, the present invention only calculates and derives the VIP value. This process is a definite step and calculation method. When the near-infrared spectrum is determined, different operators will obtain the same analysis result without involving the influence of human factors, thereby improving the accuracy of blind sample prediction analysis.

[0030] Thirdly, the present invention further extracts the VIP index range of the characteristic spectrum segment screened by the traditional variable importance projection algorithm, which greatly improves the accuracy of modeling and analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 This is a flow chart of the method for determining characteristic spectrum in rapid oil testing;

[0033] Figure 2 It is a flow chart of the system for detecting the octane content in oil products. DETAILED DESCRIPTION

[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.

[0035] Aiming at the problem of "false correlation" between spectral variables and property indicators caused by environmental factors or instrument performance factors, the present invention proposes a method for rapid detection of oil products based on statistical methods to screen characteristic spectrum segments of near-infrared spectra, including sample preparation, near-infrared spectrum collection, preliminary screening of characteristic spectrum segments based on statistical methods, spectrum preprocessing, determining characteristic spectrum segments, dividing calibration sets and prediction sets, building calibration models, detecting prediction set samples, using variable importance projection algorithm to screen characteristic spectrum segments that determine the physical and chemical property indicators of gasoline and diesel, performing first-order derivative processing on spectral points with VIP values ​​greater than 1, selecting the spectrum with derivative values ​​in the first 10% as the characteristic spectrum segments determined by the present invention, and then performing modeling analysis to calculate the content of the indicator to be measured. The present invention can screen out the most relevant characteristic spectrum segments that determine the physical and chemical property indicators of gasoline and diesel, and improve the accuracy of blind sample prediction analysis.

[0036] Example 1

[0037] like Figure 1 As shown, the present invention proposes a method for determining characteristic spectrum in oil rapid detection, taking the measurement of octane content in oil as an example, which specifically includes the following steps:

[0038] Step S1: Add a predetermined amount of octane to the oil product to prepare a sample.

[0039] Step S2: collecting a near-infrared spectrum of the sample.

[0040] At room temperature and 40% humidity, a near infrared spectrometer was used to collect the near infrared spectrum of the octane sample. Specifically:

[0041] (1) Set the number of scans to 32 in transmission mode;

[0042] (2) The spectral scanning range is 4000~10000cm -1 , wave number resolution is 4cm -1 ;

[0043] (3) Each sample was tested three times in a 1 mm pathlength cuvette and the average spectrum was taken to reduce the error.

[0044] Step S3: performing spectral preprocessing on the near-infrared spectrum.

[0045] The spectral preprocessing method is the first-order derivative filter fitting method.

[0046] Import the spectral data into the modeling analysis software, select the first-order derivative preprocessing method, and directly complete the data preprocessing process through the selected method.

[0047] Existing spectrum preprocessing methods, such as smoothing filter fitting method SGM, first-order derivative filter fitting method SGD, multivariate scatter correction MSC, vector normalization VN and standard normal variable SNV, can all be used in the spectrum and processing of this embodiment. The first-order derivative filter fitting method SGD preprocessing method used in the present invention can reduce the drift of the near-infrared spectrum and the interference of certain background signals, so that the model has higher accuracy.

[0048] Step S4: Calculate the VIP values ​​of all spectral points after spectral preprocessing.

[0049] The variable projection importance (VIP) algorithm is mainly used for variable screening. Based on the advantages of partial least squares regression, VIP technology can be used in situations where the sample is small and the correlation between several independent variables is strong.

[0050] Assume there is a dependent variable y, and independent variables x1, x2, ... k , x is the absorbance or transmittance value at each wavelength / wave number point, k is the number of independent variables x, and a VIP value can be obtained by calculation for each independent variable x. For the jth independent variable, the calculation formula of its variable importance projection value VIP is:

[0051]

[0052] in,

[0053] y is the dependent variable, which refers to the octane property parameter value in the oil;

[0054] m is the number of principal components;

[0055] c h is the hth principal component;

[0056] r(y,c h ) is the correlation coefficient between the dependent variable and the principal component, indicating the explanatory power of the principal component on y;

[0057] w hj is the weight of the j-th independent variable on the h-th principal component;

[0058] k is the number of independent variables.

[0059] The VIP values ​​of all spectral points were calculated using formula (1), and the variables with VIP values ​​greater than 1 (VIP spectra) were screened out.

[0060] Step S5: performing derivative processing on the spectral points whose VIP values ​​are greater than 1.

[0061] Step S6: Determine a characteristic spectrum segment according to the result of the derivative processing.

[0062] The spectral points processed by the first-order derivative in step S5 are sorted from large to small according to the derivative values, and the part with the derivative values ​​in the first 10% is selected. The spectral segment corresponding to this part is the selected characteristic spectral segment.

[0063] This method can screen out more "important" variables, and the selected characteristic spectrum segments are more "characteristic" of property indicators.

[0064] Example 2

[0065] like Figure 2 As shown, the present invention also proposes a system for detecting octane content in oil products, using the method for determining characteristic spectrum segments in rapid oil product testing described in any one of Embodiment 1, specifically comprising the following modules:

[0066] Sample preparation module: used to add a predetermined amount of octane into oil products to prepare samples;

[0067] Near infrared spectrum acquisition module: connected to the sample preparation module, used for acquiring the near infrared spectrum of the sample;

[0068] Spectrum preprocessing module: connected to the near-infrared spectrum acquisition module, used for performing spectrum preprocessing on the near-infrared spectrum;

[0069] Characteristic spectrum segment determination module: connected to the spectrum preprocessing module, used to calculate the VIP values ​​of all spectrum points after spectrum preprocessing, perform derivative processing on the spectrum points with VIP values ​​greater than 1, and determine the characteristic spectrum segment according to the results of the derivative processing;

[0070] Sample detection module: connected to the characteristic spectrum determination module, used to detect the octane number in the oil product according to the characteristic spectrum.

[0071] The octane content is calculated by the selected characteristic spectrum through the above method and system, and the selected wave number is 4003.497~4666.890cm -1 、5397.779~5970.533cm -1 、8167.057~8392.688cm -1 The near-infrared spectrum segment is used as the characteristic spectrum segment determined in this embodiment.

[0072] The prediction results of the two characteristic spectrum modeling schemes for 10 prediction samples are shown in Table 1:

[0073] Table 1 Comparison of the application of different characteristic spectrum selection methods in octane number measurement modeling parameters

[0074]

[0075] By comparing the two characteristic spectrum selection methods, it can be seen that the method of selecting characteristic spectrum segments by variable importance projection has fewer principal components for modeling, the selected variables are more correlated, and the explanatory power for samples is stronger. The root mean square error of the calibration set cross-validation is small, and the root mean square error of the validation set prediction (RESEP) is 7.3% better than the full wavelength modeling method, indicating that the accuracy of this method is higher than 7.3%. In terms of overall deviation, the modeling method using characteristic spectrum segments is one order of magnitude better than the full wavelength. Therefore, the modeling method of selecting characteristic spectrum segments by variable importance projection is better than the full wavelength modeling method.

[0076] Table 2. Improvement of octane number measurement accuracy by different characteristic spectrum selection methods

[0077] Serial number Full wavelength VIP Reference value Accuracy multiple 1 94.1 94.1 94.2 1.0 2 92.9 92.2 92.1 8.0 3 94.1 95.4 95.6 7.5 4 92.1 92.9 93.1 5.0 5 94.0 94.5 94.8 2.7 6 94.5 94.0 94.1 5.0 7 97.8 95.9 96.0 18.0 8 94.8 95.0 95.2 2.0 9 95.8 96.9 96.6 2.7 10 93.9 93.1 93.3 3.0

[0078] It can be seen from Table 2 that compared with the full-wavelength modeling method, the accuracy of the model established by statistically screening characteristic spectrum bands has been improved, and the accuracy multiple is between 1-18 times.

[0079] In summary, the model established by the characteristic spectrum segments screened by the present invention has the best prediction performance.

[0080] The characteristic spectrum screening method of the present invention has been applied to the analysis of more than ten indicators such as gasoline octane number, olefin aromatic content, and more than ten indicators such as diesel cetane index and cold filter plugging point, and has achieved good prediction results.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A system for detecting octane content in oil products, characterized in that: Includes the following modules: Sample preparation module: used to add a predetermined amount of octane into oil products to prepare samples; Near infrared spectrum acquisition module: connected to the sample preparation module, used for acquiring the near infrared spectrum of the sample; Spectral preprocessing module: connected to the near-infrared spectrum acquisition module, used for performing spectral preprocessing on the near-infrared spectrum; the spectral preprocessing method is a first-order derivative filter fitting method; Characteristic spectrum determination module: connected to the spectrum preprocessing module, used to calculate the VIP values ​​of all spectrum points after spectrum preprocessing, and perform derivative processing on the spectrum points with VIP values ​​greater than 1. The derivative processing method is first-order derivative processing. According to the result of the derivative processing, the derivative values ​​are sorted from large to small, and the part with the derivative value in the first 10% is selected. The spectrum corresponding to this part is the determined characteristic spectrum; the determined characteristic spectrum is 4003.497-4666.890cm -1 、5397.779~5970.533cm -1 、8167.057~8392.688cm -1 ; Sample detection module: connected to the characteristic spectrum determination module, used to detect the octane number in the oil product according to the characteristic spectrum.