A method and system for detecting impurities in sweet orange flower essential oil using spectrum
By calculating the spectral reflection characteristic coefficient and peak characteristic band in the Raman spectrum data of sweet orange blossom essential oil, and analyzing the impurity spectral characteristic offset, the problem of low detection accuracy of sweet orange blossom essential oil is solved, and more accurate impurity detection is achieved. .
Patent Information
- Application Number
- CN202410409631.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-07
AI Technical Summary
The spectral detection accuracy of sweet orange blossom essential oil is low, mainly because the spectral characteristics of impurities are similar to the spectral characteristics of essential oil components, causing the characteristic band to shift and affecting the detection accuracy.
By acquiring the Raman spectrum data of sweet orange blossom essential oil, calculating the spectral reflection characteristic coefficient and peak characteristic band, analyzing the impurity spectral characteristic offset, and calculating the detection abnormality coefficient to improve detection accuracy.
The accuracy of spectral detection of impurities in sweet orange blossom essential oil is improved, and more accurate detection results are obtained by considering the discrete distribution of impurities and the influence of spectral characteristic peaks.
Smart Images

Figure CN118294433B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of spectral feature analysis, and in particular to a method and system for spectral detection of impurities in sweet orange flower essential oil. Background Art
[0002] As a natural plant essential oil, sweet orange flower essential oil may be affected by many factors during the preparation and storage process, such as the growth environment, picking and extraction methods, etc. These factors may cause various impurities in sweet orange flower essential oil, such as other volatile organic compounds, microorganisms, heavy metals, etc. Therefore, it is of great significance to detect impurities in sweet orange flower essential oil. Impurity detection can be used to determine the purity and quality of essential oils and help ensure that they meet industry standards and regulatory requirements. In addition, impurity detection can also provide producers and consumers with safer and healthier products, avoiding the use of sweet orange flower essential oil containing harmful ingredients, thereby ensuring the health and safety of users.
[0003] At present, impurity detection is mainly achieved by physical and chemical analysis techniques. Common techniques include infrared spectroscopy, gas chromatography-mass spectrometry, high performance liquid chromatography, Raman spectroscopy, etc. These methods can perform qualitative and quantitative analysis of impurities in sweet orange flower essential oil and determine their types and concentrations. Based on the test results, appropriate measures can be taken to treat or remove impurities, thereby improving the quality and safety of sweet orange flower essential oil. Since sweet orange flower essential oil may contain impurities such as volatile organic compounds (such as acetone, valeraldehyde, acetone and ethyl acetate), phenolic compounds (such as phenol, p-cresol and m-cresol, etc.), miscellaneous phenols (p-cresol oxide and p-cresol phenol ether, etc.), hydrocarbons (such as n-heptane, n-decane, α-pinene and β-pinene, etc.), and oxidation products (aldehyde ketone oxides and alcohol oxides, etc.), the quality of sweet orange flower essential oil is reduced. When using traditional Raman spectroscopy feature analysis methods for quantitative analysis, the spectral characteristics of some impurities may be close to the spectral characteristics of the components in the sweet orange flower essential oil, thereby affecting the detection of impurities in the sweet orange flower essential oil and reducing the accuracy of impurity detection of the sweet orange flower essential oil. For example, when using Raman spectroscopy data to analyze the absorption characteristics of the characteristic bands of the flower essential oil, the acquired characteristic bands may be offset due to the influence of impurities, resulting in low spectral detection accuracy of the sweet orange flower essential oil. Summary of the invention
[0004] The present application provides a method and system for spectral detection of impurities in sweet orange flower essential oil to solve the problem of low spectral detection accuracy of sweet orange flower essential oil. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for spectral detection of impurities in sweet orange flower essential oil, the method comprising the following steps:
[0006] Obtain a Raman spectrum data detection set of sweet orange flower essential oil;
[0007] Obtaining a spectral reflectance characteristic coefficient of the sweet orange flower essential oil according to a change characteristic of the Raman scattering intensity value of the Raman spectral data of each sweet orange flower essential oil sample in the Raman spectral data detection set;
[0008] Obtain the Raman peak characteristic band of the Raman spectrum data of each sweet orange flower essential oil sample according to the sweet orange flower essential oil spectrum reflection characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set; calculate the sweet orange flower essential oil impurity spectrum characteristic offset between different sweet orange flower essential oil samples according to the data difference of the Raman peak characteristic band of the Raman spectrum data of different sweet orange flower essential oil samples;
[0009] The flower essential oil impurity spectral characteristic detection coefficient is calculated according to the sweet orange flower essential oil impurity spectral characteristic offset, and the sweet orange flower essential oil impurity spectral detection anomaly coefficient is obtained based on the flower essential oil impurity spectral characteristic detection coefficient; the sweet orange flower essential oil impurity spectral detection result is obtained according to the sweet orange flower essential oil impurity spectral detection anomaly coefficient.
[0010] Preferably, the method for obtaining the Raman spectrum data detection set of sweet orange flower essential oil is:
[0011] Sweet orange flower essential oil from the same production batch is sampled, each sample is taken as a sweet orange flower essential oil sample, Raman spectrum data of each sweet orange flower essential oil sample is obtained, the Raman spectrum data of each sweet orange flower essential oil sample is preprocessed by a filtering algorithm, and a set consisting of the preprocessed Raman spectrum data of all sweet orange flower essential oil samples is used as a Raman spectrum data detection set of sweet orange flower essential oil.
[0012] Preferably, the method for obtaining the spectral reflectance characteristic coefficient of the sweet orange flower essential oil according to the variation characteristics of the Raman scattering intensity value of the Raman spectral data of each sweet orange flower essential oil sample in the Raman spectral data detection set is:
[0013] For the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set, the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of the sweet orange flower essential oil is input, and the Raman spectrum data of each sweet orange flower essential oil sample is subjected to Gaussian peak fitting using a nonlinear least squares method, and the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil is output;
[0014] The input is the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil, the peak position of each Raman spectrum data of the sweet orange flower essential oil is marked by using the second-order derivative peak finding method, the wavelengths corresponding to all the marked peak positions in the Raman spectrum data are sequenced in ascending order as the Raman characteristic peak position sequence, and the kurtosis value and peak width of the peaks corresponding to all the marked peak positions in the Raman spectrum data are calculated;
[0015] The sweet orange flower essential oil spectral reflectance characteristic coefficient of each sweet orange flower essential oil sample is obtained according to the peak position distribution and kurtosis characteristics of the Raman spectrum data of each sweet orange flower essential oil.
[0016] Preferably, the method for obtaining the sweet orange flower essential oil spectral reflectance characteristic coefficient of each sweet orange flower essential oil sample according to the peak position distribution and kurtosis characteristics of the Raman spectrum data of each sweet orange flower essential oil is:
[0017]
[0018] Where h represents the spectral reflectance characteristic coefficient of sweet orange flower essential oil, l x and l x-1 They represent the xth and x-1th elements in the Raman characteristic peak sequence respectively; k x and k x-1 They represent the peak widths of the xth and x-1th elements in the Raman characteristic peak sequence respectively; Q x and Q x-1 They respectively represent the kurtosis values of the peak positions corresponding to the x-th and x-1-th elements in the Raman characteristic peak position sequence, exp() represents an exponential function with a natural constant as the base; x represents the accumulated index, and X represents the number of elements in the Raman characteristic peak position sequence.
[0019] Preferably, the method for obtaining the Raman peak characteristic band of the Raman spectrum data of each sweet orange flower essential oil sample according to the sweet orange flower essential oil spectrum reflectance characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set is:
[0020] A normalization algorithm is used to obtain a normalized result of the spectral reflectance characteristic coefficient of the sweet orange flower essential oil of each sweet orange flower essential oil sample in a Raman spectrum data detection set of the sweet orange flower essential oil, and the normalized result is used as the spectral reflectance characteristic division coefficient of each sweet orange flower essential oil sample;
[0021] Obtaining a differential sequence of the Raman characteristic peak position sequence corresponding to each sweet orange flower essential oil sample, and taking the product of the mean of all elements in the differential sequence and the spectral reflection characteristic partition coefficient corresponding to each sweet orange flower essential oil sample as the Raman peak position wavelength partition characteristic coefficient of the Raman spectrum data of each sweet orange flower essential oil sample;
[0022] For the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, a characteristic interval with a wavelength range of twice the Raman peak wavelength division characteristic coefficient is obtained with the wavelength corresponding to each marked peak in the Raman spectrum data as the center, and each characteristic interval is used as a Raman peak characteristic band of the Raman spectrum data.
[0023] Preferably, the method for calculating the spectral characteristic offset of the sweet orange flower essential oil impurities between different sweet orange flower essential oil samples according to the data difference of the Raman peak characteristic band of the Raman spectrum data of different sweet orange flower essential oil samples is:
[0024] For the Raman peak characteristic band corresponding to the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, a set composed of Raman scattering intensity values corresponding to each Raman peak characteristic band is used as the Raman scattering intensity feature set of each Raman peak characteristic band, a set composed of wavelengths corresponding to all elements in the Raman scattering intensity feature set is used as the Raman wavelength data set of each Raman peak characteristic band, a product of the peak width and the kurtosis value of each peak in each Raman peak characteristic band is used as the Raman scattering peak characteristic value of each peak, and a sequence composed of Raman scattering peak characteristic values of all peaks in each Raman peak characteristic band, which are arranged in ascending order according to the wavelengths corresponding to the peaks, is used as the Raman scattering peak characteristic value sequence of each Raman peak characteristic band;
[0025] The spectral characteristic offset of the impurities in the sweet orange flower essential oil is obtained according to the Raman scattering intensity characteristic set, Raman wavelength data set, Raman scattering peak characteristic value sequence and spectral reflection characteristic coefficient of the sweet orange flower essential oil corresponding to different sweet orange flower essential oil samples in the Raman spectral data detection set of the sweet orange flower essential oil.
[0026] Preferably, the specific method for obtaining the spectral characteristic offset of the impurities of the sweet orange flower essential oil according to the Raman scattering intensity characteristic set, the Raman wavelength data set, the Raman scattering peak characteristic value sequence and the spectral reflection characteristic coefficient of the sweet orange flower essential oil corresponding to different sweet orange flower essential oil samples in the Raman spectrum data detection set of the sweet orange flower essential oil is:
[0027]
[0028]
[0029] Where, L a,b represents the spectral characteristic offset of the sweet orange flower essential oil impurities between the ath and bth sweet orange flower essential oil samples; h a and h b represent the spectral reflectance characteristic coefficients of the sweet orange flower essential oil corresponding to the ath and bth sweet orange flower essential oil samples, respectively; p i,j represents the overlapping characteristic coefficient of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample and the j-th Raman peak characteristic band corresponding to the b-th sweet orange flower essential oil sample; d i represents the Raman wavelength data set of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, d jrepresents the Raman wavelength data set of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample, jac(d i ,d j ) means d i and d j Jaccard coefficient between i represents the Raman scattering peak characteristic value sequence of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, m j represents the Raman scattering peak characteristic value sequence of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample, dtw(m i ,m j ) represents m i and m j DTW distance between i represents the range of all elements in the Raman scattering intensity characteristic set of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, t j The range of all elements in the Raman scattering intensity characteristic set of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample; R a and R b Respectively represent the number of Raman peak characteristic bands corresponding to the a-th and b-th sweet orange flower essential oil samples.
[0030] Preferably, the method of calculating the flower essential oil impurity spectral characteristic detection coefficient according to the sweet orange flower essential oil impurity spectral characteristic offset and obtaining the sweet orange flower essential oil impurity spectral detection abnormality coefficient based on the flower essential oil impurity spectral characteristic detection coefficient is:
[0031] A normalization algorithm is used to obtain a normalized result of the spectral characteristic offset of the sweet orange flower essential oil impurities between different sweet orange flower essential oil samples in a Raman spectrum data detection set of the sweet orange flower essential oil, and the normalized result is used as a detection coefficient of the spectral characteristic of the flower essential oil impurities between different sweet orange flower essential oil samples;
[0032] The absolute value of the difference in the number of Raman peak characteristic bands corresponding to any two sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil and the product of the flower essential oil impurity spectrum characteristic detection coefficient between any two sweet orange flower essential oil samples are used as the numerator, and the sum of the range of the number of Raman peak characteristic bands corresponding to all sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil and 0.01 is used as the denominator, and the mean of the cumulative results of the ratio of the numerator to the denominator in the Raman spectrum data detection set of sweet orange flower essential oil is taken as the abnormal coefficient of the impurity spectrum detection of sweet orange flower essential oil.
[0033] Preferably, the method for obtaining the detection result of the sweet orange flower essential oil impurity spectrum according to the abnormal coefficient of the sweet orange flower essential oil impurity spectrum detection is:
[0034] An impurity spectrum detection judgment interval of sweet orange flower essential oil is set, and the sweet orange flower essential oil impurity spectrum detection anomaly coefficient corresponding to each batch of sweet orange flower essential oil is obtained. The sweet orange flower essential oil impurity spectrum detection result is obtained according to the comparison result of the sweet orange flower essential oil impurity spectrum detection anomaly coefficient and the impurity spectrum detection judgment interval.
[0035] In a second aspect, an embodiment of the present application further provides a sweet orange flower essential oil impurity spectral detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.
[0036] The beneficial effects of the present application are as follows: sampling is performed on each production batch of sweet orange flower essential oil, and Raman spectrum data of each sweet orange flower essential oil sample is obtained according to the sampling results. Since the impurities in the sweet orange flower essential oil are discretely distributed, and the existing impurities may appear as independent characteristic peaks in the sweet orange flower essential oil sample, or overlap with the characteristic peaks of some main components in the sweet orange flower essential oil, resulting in the appearance of common peaks, shoulder peaks and increased wavelength range of the characteristic peaks of the Raman spectrum data of the sweet orange flower essential oil sample. Therefore, the spectral reflectance characteristic coefficient of the sweet orange flower essential oil is constructed through the distribution and shape characteristics of the characteristic peaks of the sampled sweet orange flower essential oil samples. The Raman peak characteristic band of the Raman spectrum data of each sweet orange flower essential oil sample is obtained through the sweet orange flower essential oil spectral reflectance characteristic coefficient, the sweet orange flower essential oil impurity spectral characteristic offset is obtained through the deviation analysis of the spectral characteristics of the Raman peak characteristic bands of different sweet orange flower essential oil samples, and the impurities of the sweet orange flower essential oil are detected and analyzed based on the sweet orange flower essential oil impurity spectral characteristic offset. The beneficial effect is that the discrete distribution characteristics of impurities in the sweet orange flower essential oil and the distribution influence characteristics of the characteristic peaks in the Raman spectrum are considered, so as to improve the accuracy of the spectral characteristic analysis of the sweet orange flower essential oil impurities, and then obtain a more accurate sweet orange flower essential oil impurity spectrum detection result. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 A schematic diagram of a process for spectral detection of impurities in sweet orange flower essential oil provided in one embodiment of the present application;
[0039] Figure 2 A schematic diagram of the implementation process of obtaining the spectrum detection results of impurities in sweet orange flower essential oil provided in one embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] See also Figure 1 , which shows a flow chart of a method for spectral detection of impurities in sweet orange flower essential oil provided by an embodiment of the present application, the method comprising the following steps:
[0042] Step S001, obtaining a Raman spectrum data detection set of sweet orange flower essential oil.
[0043] Sampling is performed in the same batch of sweet orange flower essential oil. The number of samples is n (the empirical value is 100), so n samples of sweet orange flower essential oil can be obtained. Each sweet orange flower essential oil sample is placed in a nuclear magnetic resonance tube, and the Fourier Raman spectrometer test conditions are set, where the spectral range is 200cm -1 Up to 3500cm -1 , resolution 4cm -1 The cumulative number of scans is 32 to 128 times. After scanning, a Raman spectrum of each sweet orange flower essential oil sample can be obtained. Each data point in the Raman spectrum represents the Raman scattering intensity value at each wavelength. All data corresponding to the Raman spectrum of each sweet orange flower essential oil sample are used as the Raman spectrum data of each sweet orange flower essential oil sample. Since the Raman spectrum data may be affected by environmental noise during the collection process, resulting in inaccurate Raman spectrum data, the Savitzky-Golay filtering algorithm is used to perform noise reduction processing on the acquired Raman spectrum data to improve the signal-to-noise ratio of the Raman spectrum and reduce the influence of environmental noise on the quality analysis of conductive ink. The specific implementation process of the Savitzky-Golay filtering algorithm is a well-known technology and will not be repeated here. The set composed of the Raman spectrum data of n sweet orange flower essential oil samples is used as the Raman spectrum data detection set of sweet orange flower essential oil.
[0044] At this point, the Raman spectral data detection set of sweet orange flower essential oil has been obtained.
[0045] Step S002, constructing a spectral reflectance characteristic coefficient of sweet orange flower essential oil according to the variation characteristics of Raman scattering intensity values of different wavelengths of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil.
[0046] In the process of detecting whether there are impurities in sweet orange flower essential oil, the content characteristics of the impurities are analyzed based on the Raman scattering intensity characteristics of the impurities in the sweet orange flower essential oil, but the Raman reflection characteristics of the main components in the sweet orange flower essential oil may interfere with the content characteristics of the impurities, affecting the accuracy of the detection results of the impurities in the sweet orange flower essential oil. If the Raman spectrum characteristics of the impurities in the sweet orange flower essential oil are close to the Raman spectrum characteristics of some components in the sweet orange flower essential oil, it may increase the wavelength range in which the Raman scattering intensity value has significant fluctuations, or the Raman scattering intensity values of some components may have significant single-peak sharp characteristics. Therefore, the sweet orange flower essential oil is sampled and tested, and the impurity content characteristics in the sweet orange flower essential oil are analyzed by comparing and analyzing the change characteristics of the Raman scattering intensity values of the sweet orange flower essential oil samples.
[0047] Further, since the spectral characteristics of impurities in sweet orange flower essential oil are mainly manifested in some characteristic peaks, and there may be a common peak or shoulder peak with the characteristic peaks of some components in sweet orange flower essential oil, the characteristic peaks of the Raman spectrum data of sweet orange flower essential oil are analyzed, and the wavelength of the Raman spectrum data of each sweet orange flower essential oil is divided based on the analysis results. Specifically, the input is the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, and the nonlinear least squares method is used to perform Gaussian peak fitting on the Raman spectrum data of each sweet orange flower essential oil sample, and the output is the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil; further, the input is the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil, and the second-order derivative peak finding method is used to mark the peak position of the Raman spectrum data of each sweet orange flower essential oil, wherein the nonlinear least squares method and the second-order derivative peak finding method are both well-known technologies, and the specific implementation process is not repeated.
[0048] Further, for the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, the wavelengths corresponding to the peaks of all the marks in the Raman spectrum data are arranged in a sequence from small to large as the Raman characteristic peak peak sequence, and the kurtosis value and peak width of the peaks corresponding to all the marked peaks in the Raman spectrum data are calculated. The specific calculation process of the peak kurtosis value and peak width is a known technology and will not be repeated here. The spectral reflectance characteristic coefficient of the sweet orange flower essential oil is calculated according to the peak position distribution and kurtosis characteristics of the Raman spectrum data of each sweet orange flower essential oil, and the specific calculation formula is as follows:
[0049]
[0050] Where h represents the spectral reflectance characteristic coefficient of sweet orange flower essential oil, l x and l x-1 They represent the xth and x-1th elements in the Raman characteristic peak sequence respectively; k x and k x-1They represent the peak widths of the xth and x-1th elements in the Raman characteristic peak sequence respectively; Q x and Q x-1 They respectively represent the kurtosis values of the peak positions corresponding to the x-th and x-1-th elements in the Raman characteristic peak position sequence. exp() represents an exponential function with a natural constant as the base. x represents the accumulated index, and the value of x is [2,3,…,X]. X represents the number of elements in the Raman characteristic peak position sequence.
[0051] If the peak widths of adjacent characteristic peaks of the Raman spectrum data of the sweet orange flower essential oil sample are large, and the wavelength differences and kurtosis values between adjacent characteristic peaks are small, the calculated k x +k x-1 The larger the value of (l x -l x-1 ) and exp(Q x -Q x-1 ) is smaller, that is, the calculated The larger the value is, the closer the distance between adjacent characteristic peaks is, the closer the shapes of the characteristic peaks are, and the greater the possibility of mutual influence between adjacent characteristic peaks.
[0052] At this point, the spectral reflectance characteristic coefficient of sweet orange flower essential oil was obtained.
[0053] Step S003, dividing the overall wavelength of the sweet orange flower essential oil according to the spectral reflectance characteristic coefficient of the sweet orange flower essential oil, and calculating the spectral characteristic offset of the impurities of the sweet orange flower essential oil according to the wavelength division result.
[0054] The wavelength of the Raman spectrum data is divided according to the sweet orange flower essential oil spectral reflection characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil. Specifically, the set composed of the sweet orange flower essential oil spectral reflection characteristic coefficients of all sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil is used as a spectral reflection characteristic set, which is input as a spectral reflection characteristic set, and the normalized results of all elements of the spectral reflection characteristic set are obtained using a Z-score normalization algorithm. The specific calculation process of the Z-score normalization algorithm is a known technology and will not be repeated. Further, the normalized result of the sweet orange flower essential oil spectral reflection characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil is used as the spectral reflection characteristic division coefficient of each sweet orange flower essential oil sample.
[0055] Furthermore, a differential sequence of the Raman characteristic peak peak sequence corresponding to each sweet orange flower essential oil sample is obtained, and the product of the mean of all elements in the differential sequence and the spectral reflectance characteristic division coefficient corresponding to each sweet orange flower essential oil sample is used as the Raman peak wavelength division characteristic coefficient of the Raman spectrum data of each sweet orange flower essential oil sample; wherein, if the possibility of mutual influence between adjacent characteristic peaks of the Raman spectrum data of each sweet orange flower essential oil sample is large, the larger the calculated Raman peak wavelength division characteristic coefficient is, the larger the division range is, and the more accurate the analysis of the characteristic peaks that influence each other is.
[0056] Further, for the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, a characteristic interval with a wavelength range of 2 times the Raman peak wavelength division characteristic coefficient is constructed with the wavelength corresponding to the peak position of each mark in the Raman spectrum data as the center, and each characteristic interval is used as a Raman peak characteristic band of the Raman spectrum data; specifically, for example, the wavelength corresponding to the peak position of one of the marks is 300, and the Raman peak wavelength division characteristic coefficient is 50, then the wavelength range of the corresponding Raman peak characteristic band is 250-350; so far, the Raman peak characteristic band corresponding to each Raman spectrum data can be obtained. A band, a set of Raman scattering intensity values corresponding to the Raman peak characteristic band is used as the Raman scattering intensity feature set of the Raman peak characteristic band, a set of wavelengths corresponding to all elements in the Raman scattering intensity feature set is used as the Raman wavelength data set of the Raman peak characteristic band, the product of the peak width and the kurtosis value of each peak in the Raman peak characteristic band is used as the Raman scattering peak characteristic value of each peak, and a sequence composed of the Raman scattering peak characteristic values of all peaks in the Raman peak characteristic band arranged in ascending order according to the wavelengths corresponding to the peaks is used as the Raman scattering peak characteristic value sequence of the Raman peak characteristic band.
[0057] The impurity spectrum characteristic offset of the sweet orange flower essential oil is calculated based on the Raman peak characteristic band and Raman scattering intensity characteristic set corresponding to the Raman spectrum data of each sweet orange flower essential oil sample. The impurity spectrum characteristic offset of the sweet orange flower essential oil reflects the local scattering intensity difference of the Raman spectrum data of different sweet orange flower essential oils. The specific calculation formula is as follows:
[0058]
[0059]
[0060] Where, L a,b represents the spectral characteristic offset of the sweet orange flower essential oil impurities between the ath and bth sweet orange flower essential oil samples; h a and h b represent the spectral reflectance characteristic coefficients of the sweet orange flower essential oil corresponding to the ath and bth sweet orange flower essential oil samples, respectively; pi,j represents the overlapping characteristic coefficient of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample and the j-th Raman peak characteristic band corresponding to the b-th sweet orange flower essential oil sample; d i represents the Raman wavelength data set of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, d j represents the Raman wavelength data set of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample, jac(d i ,d j ) means d i and d j Jaccard coefficient between i represents the Raman scattering peak characteristic value sequence of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, m j represents the Raman scattering peak characteristic value sequence of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample, dtw(m i ,m j ) represents m i and m j DTW distance between i represents the range of all elements in the Raman scattering intensity characteristic set of the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample, t j The range of all elements in the Raman scattering intensity characteristic set of the jth Raman peak characteristic band corresponding to the bth sweet orange flower essential oil sample; R a and R b Respectively represent the number of Raman peak characteristic bands corresponding to the a-th and b-th sweet orange flower essential oil samples.
[0061] If the i-th Raman peak characteristic band corresponding to the a-th sweet orange flower essential oil sample and the j-th Raman peak characteristic band corresponding to the b-th sweet orange flower essential oil sample have overlapping wavelength intervals, and the overlapping intervals of the i-th Raman peak characteristic band and the j-th Raman peak characteristic band are small, that is, jac(d i ,d j ) is smaller, the difference between the characteristic peaks and the fluctuation of Raman scattering intensity values in the two bands is greater, that is, |t i -t j |×dtw(m i ,m j ) is larger, the calculated The larger the value of is, the greater the difference in the adjacent peak characteristics between the ath sweet orange flower essential oil sample and the bth sweet orange flower essential oil sample, that is, the difference in the spectral reflectance characteristic coefficients of the sweet orange flower essential oil corresponding to the ath and bth sweet orange flower essential oil samples. The larger the value of , the larger the calculated offset of the impurity spectrum characteristics of the sweet orange flower essential oil between the a-th and b-th sweet orange flower essential oil samples, indicating that through the comparison of the Raman spectral data characteristics of the a-th and b-th sweet orange flower essential oil samples, the possibility of the presence of impurities in the sweet orange flower essential oil is greater.
[0062] At this point, the characteristic offset of the impurity spectrum of sweet orange flower essential oil is obtained.
[0063] Step S004, calculating the flower essential oil impurity spectrum characteristic detection coefficient according to the sweet orange flower essential oil impurity spectrum characteristic offset, obtaining the sweet orange flower essential oil impurity spectrum detection anomaly coefficient based on the flower essential oil impurity spectrum characteristic detection coefficient, and obtaining the sweet orange flower essential oil impurity spectrum detection result through the sweet orange flower essential oil impurity spectrum detection anomaly coefficient.
[0064] The flower essential oil impurity spectral feature detection coefficient is obtained according to the sweet orange flower essential oil impurity spectral feature offset between the collected sweet orange flower essential oil samples; wherein the sweet orange flower essential oil impurity spectral feature offset reflects the characteristic peak difference of the overlapping bands between the sweet orange flower essential oil samples, and then reflects the degree of influence of impurities in the sweet orange flower essential oil, and the flower essential oil impurity spectral feature detection coefficient is obtained according to the spectral feature deviation characteristics between the sweet orange flower essential oil samples, and the flower essential oil impurity spectral feature detection coefficient reflects the influence characteristics of impurities in the sweet orange flower essential oil. Specifically, the Raman spectral data of the sweet orange flower essential oil are concentrated in the detection. A set consisting of the spectral characteristic offsets of the sweet orange flower essential oil impurities between all the sweet orange flower essential oil samples is used as the flower essential oil impurity detection data set, and the input is the flower essential oil impurity detection data set. The Z-score normalization algorithm is used to obtain the normalized results of all elements in the flower essential oil impurity detection data set, and the normalized results of the spectral characteristic offsets of the sweet orange flower essential oil impurities between the sweet orange flower essential oil samples in the Raman spectrum data detection set of the sweet orange flower essential oil are used as the flower essential oil impurity spectral characteristic detection coefficient. The specific calculation process of the Z-score normalization algorithm is a well-known technology and will not be repeated here.
[0065] According to the Raman spectrum data of sweet orange flower essential oil, the detection coefficient of the flower essential oil impurity spectrum between the sweet orange flower essential oil samples in the detection set is used to calculate the abnormal coefficient of the sweet orange flower essential oil impurity spectrum detection. The specific calculation formula is as follows:
[0066]
[0067] Where, δ represents the abnormal coefficient of the spectrum detection of impurities in sweet orange flower essential oil; R a and R b represents the number of Raman peak characteristic bands corresponding to the ath and bth sweet orange flower essential oil samples, R max and R minThey represent the maximum and minimum values of the number of Raman peak characteristic bands corresponding to the sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil; S a,b represents the detection coefficient of the spectral characteristics of the flower essential oil impurities between the a-th and b-th sweet orange flower essential oil samples; n represents the number of sweet orange flower essential oil samples in the Raman spectral data detection set of sweet orange flower essential oil.
[0068] If there is a large difference in the number of Raman peak characteristic bands corresponding to the ath and bth sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil, it means that the characteristic peaks of impurities may appear in the ath or bth sweet orange flower essential oil sample, that is, The larger the value, the greater the possibility that there are impurities in both the a-th and b-th sweet orange flower essential oil samples, that is, the flower essential oil impurity spectral characteristic detection coefficient S between the a-th and b-th sweet orange flower essential oil samples. a,b The larger the value of , the larger the value of the calculated abnormal coefficient δ of the impurity spectrum detection of sweet orange flower essential oil, indicating that according to the deviation analysis of the sampling spectral characteristics of sweet orange flower essential oil produced in the same batch, the degree of influence of impurities in the sweet orange flower essential oil is relatively large.
[0069] Furthermore, the impurity spectrum detection judgment interval of the sweet orange flower essential oil is set to [0,0.2], and a sampling spectral feature analysis is performed on each batch of sweet orange flower essential oil. The corresponding sweet orange flower essential oil impurity spectrum detection anomaly coefficient is obtained according to the analysis result. If the impurity spectrum detection anomaly coefficient of the sweet orange flower essential oil is within the impurity spectrum detection judgment interval, it means that the impurity influence degree of the batch of sweet orange flower essential oil is small, and the impurity spectrum detection result of the batch of sweet orange flower essential oil is qualified; if the impurity spectrum detection anomaly coefficient of the sweet orange flower essential oil is not within the impurity spectrum detection judgment interval, it means that the impurity influence degree of the batch of sweet orange flower essential oil is large, and the impurity spectrum detection result of the batch of sweet orange flower essential oil is unqualified, and the batch of sweet orange flower essential oil needs to be purified again. The specific implementation process of obtaining the impurity spectrum detection result of each batch of sweet orange flower essential oil is as follows. Figure 2 shown.
[0070] Based on the same inventive concept as the above method, an embodiment of the present application also provides a sweet orange flower essential oil impurity spectral detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned sweet orange flower essential oil impurity spectral detection methods when executing the computer program.
[0071] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting impurities in sweet orange flower essential oil by spectroscopy, characterized in that: The method comprises the following steps: Obtain a Raman spectrum data detection set of sweet orange flower essential oil; Obtaining a spectral reflectance characteristic coefficient of the sweet orange flower essential oil according to a change characteristic of the Raman scattering intensity value of the Raman spectral data of each sweet orange flower essential oil sample in the Raman spectral data detection set; Obtain the Raman peak characteristic band of the Raman spectrum data of each sweet orange flower essential oil sample according to the sweet orange flower essential oil spectrum reflection characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set; calculate the sweet orange flower essential oil impurity spectrum characteristic offset between different sweet orange flower essential oil samples according to the data difference of the Raman peak characteristic band of the Raman spectrum data of different sweet orange flower essential oil samples; Calculate the flower essential oil impurity spectrum characteristic detection coefficient according to the sweet orange flower essential oil impurity spectrum characteristic offset, obtain the sweet orange flower essential oil impurity spectrum detection anomaly coefficient based on the flower essential oil impurity spectrum characteristic detection coefficient; obtain the sweet orange flower essential oil impurity spectrum detection result according to the sweet orange flower essential oil impurity spectrum detection anomaly coefficient; The method for obtaining the spectral reflectance characteristic coefficient of the sweet orange flower essential oil according to the variation characteristics of the Raman scattering intensity value of the Raman spectral data of each sweet orange flower essential oil sample in the Raman spectral data detection set is: For the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set, the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of the sweet orange flower essential oil is input, and the Raman spectrum data of each sweet orange flower essential oil sample is subjected to Gaussian peak fitting using a nonlinear least squares method, and the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil is output; The input is the Gaussian peak fitting result of the Raman spectrum data of each sweet orange flower essential oil, the peak position of each Raman spectrum data of the sweet orange flower essential oil is marked by using the second-order derivative peak finding method, the wavelengths corresponding to all the marked peak positions in the Raman spectrum data are sequenced in ascending order as the Raman characteristic peak position sequence, and the kurtosis value and peak width of the peaks corresponding to all the marked peak positions in the Raman spectrum data are calculated; According to the peak position distribution and kurtosis characteristics of the Raman spectrum data of each sweet orange flower essential oil, the sweet orange flower essential oil spectrum reflectance characteristic coefficient of each sweet orange flower essential oil sample is obtained; The method for calculating the spectral characteristic offset of the sweet orange flower essential oil impurities between different sweet orange flower essential oil samples according to the data difference of the Raman peak characteristic band of the Raman spectrum data of different sweet orange flower essential oil samples is: For the Raman peak characteristic band corresponding to the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, a set composed of Raman scattering intensity values corresponding to each Raman peak characteristic band is used as the Raman scattering intensity feature set of each Raman peak characteristic band, a set composed of wavelengths corresponding to all elements in the Raman scattering intensity feature set is used as the Raman wavelength data set of each Raman peak characteristic band, a product of the peak width and the kurtosis value of each peak in each Raman peak characteristic band is used as the Raman scattering peak characteristic value of each peak, and a sequence composed of Raman scattering peak characteristic values of all peaks in each Raman peak characteristic band, which are arranged in ascending order according to the wavelengths corresponding to the peaks, is used as the Raman scattering peak characteristic value sequence of each Raman peak characteristic band; Obtain the spectral characteristic offset of the impurities of the sweet orange flower essential oil according to the Raman scattering intensity characteristic set, Raman wavelength data set, Raman scattering peak characteristic value sequence and spectral reflection characteristic coefficient of the sweet orange flower essential oil corresponding to different sweet orange flower essential oil samples in the Raman spectral data detection set of the sweet orange flower essential oil; The method for obtaining the sweet orange flower essential oil spectral reflectance characteristic coefficient of each sweet orange flower essential oil sample according to the peak position distribution and kurtosis characteristics of the Raman spectrum data of each sweet orange flower essential oil is: In the formula, Indicates the spectral reflectance characteristic coefficient of sweet orange flower essential oil, and They represent the first and elements; and They represent the first and The peak width of the peak corresponding to each element; and They represent the first and The kurtosis value of the peak position corresponding to the element, represents an exponential function with a natural constant as base; Indicates the accumulated index, Indicates the number of elements in the Raman characteristic peak position sequence; The specific method for obtaining the spectral characteristic offset of the impurities of the sweet orange flower essential oil according to the Raman scattering intensity characteristic set, the Raman wavelength data set, the Raman scattering peak characteristic value sequence and the spectral reflection characteristic coefficient of the sweet orange flower essential oil corresponding to different sweet orange flower essential oil samples in the Raman spectral data detection set of the sweet orange flower essential oil is: In the formula, Indicates and The offset of the spectral characteristics of sweet orange flower essential oil impurities between the sweet orange flower essential oil samples; and Respectively represent and The spectral reflectance characteristic coefficient of sweet orange flower essential oil corresponding to the sweet orange flower essential oil samples; Indicates The corresponding sweet orange blossom essential oil sample The Raman peak characteristic band and the The corresponding sweet orange blossom essential oil sample Overlapping characteristic coefficient of characteristic bands of Raman peaks; Indicates The corresponding sweet orange blossom essential oil sample A Raman wavelength data set of characteristic bands of Raman peak positions, Indicates The corresponding sweet orange blossom essential oil sample A Raman wavelength data set of characteristic bands of Raman peak positions, express and The Jaccard coefficient between Indicates The corresponding sweet orange blossom essential oil sample The Raman scattering peak characteristic value sequence of the Raman peak characteristic band, Indicates The corresponding sweet orange blossom essential oil sample The Raman scattering peak characteristic value sequence of the Raman peak characteristic band, express and The DTW distance between them; Indicates The corresponding sweet orange blossom essential oil sample The range of all elements in the Raman scattering intensity characteristic set of the Raman peak characteristic band, No. The corresponding sweet orange blossom essential oil sample The range of all elements in the Raman scattering intensity characteristic set of the Raman peak characteristic band; and Respectively represent and The number of Raman peak characteristic bands corresponding to the sweet orange flower essential oil samples.
2. A sweet orange flower essential oil impurity spectrum detection method according to claim 1, characterized in that, The method for obtaining the Raman spectrum data detection set of sweet orange flower essential oil is: Sweet orange flower essential oil from the same production batch is sampled, each sample is taken as a sweet orange flower essential oil sample, Raman spectrum data of each sweet orange flower essential oil sample is obtained, the Raman spectrum data of each sweet orange flower essential oil sample is preprocessed by a filtering algorithm, and a set consisting of the preprocessed Raman spectrum data of all sweet orange flower essential oil samples is used as a Raman spectrum data detection set of sweet orange flower essential oil.
3. A sweet orange flower essential oil impurity spectrum detection method according to claim 1, characterized in that, The method for obtaining the Raman peak characteristic band of the Raman spectrum data of each sweet orange flower essential oil sample according to the sweet orange flower essential oil spectrum reflection characteristic coefficient of each sweet orange flower essential oil sample in the Raman spectrum data detection set is: A normalization algorithm is used to obtain a normalized result of the spectral reflectance characteristic coefficient of the sweet orange flower essential oil of each sweet orange flower essential oil sample in a Raman spectrum data detection set of the sweet orange flower essential oil, and the normalized result is used as the spectral reflectance characteristic division coefficient of each sweet orange flower essential oil sample; Obtaining a differential sequence of the Raman characteristic peak position sequence corresponding to each sweet orange flower essential oil sample, and taking the product of the mean of all elements in the differential sequence and the spectral reflection characteristic partition coefficient corresponding to each sweet orange flower essential oil sample as the Raman peak position wavelength partition characteristic coefficient of the Raman spectrum data of each sweet orange flower essential oil sample; For the Raman spectrum data of each sweet orange flower essential oil sample in the Raman spectrum data detection set of sweet orange flower essential oil, a characteristic interval with a wavelength range of twice the Raman peak wavelength division characteristic coefficient is obtained with the wavelength corresponding to each marked peak in the Raman spectrum data as the center, and each characteristic interval is used as a Raman peak characteristic band of the Raman spectrum data.
4. A sweet orange flower essential oil impurity spectrum detection method according to claim 1, characterized in that, The method of calculating the flower essential oil impurity spectrum characteristic detection coefficient according to the sweet orange flower essential oil impurity spectrum characteristic offset and obtaining the sweet orange flower essential oil impurity spectrum detection abnormality coefficient based on the flower essential oil impurity spectrum characteristic detection coefficient is as follows: A normalization algorithm is used to obtain a normalized result of the spectral characteristic offset of the sweet orange flower essential oil impurities between different sweet orange flower essential oil samples in a Raman spectrum data detection set of the sweet orange flower essential oil, and the normalized result is used as a detection coefficient of the spectral characteristic of the flower essential oil impurities between different sweet orange flower essential oil samples; The absolute value of the difference in the number of Raman peak characteristic bands corresponding to any two sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil and the product of the flower essential oil impurity spectrum characteristic detection coefficient between any two sweet orange flower essential oil samples are used as the numerator, and the sum of the range of the number of Raman peak characteristic bands corresponding to all sweet orange flower essential oil samples in the Raman spectrum data detection set of sweet orange flower essential oil and 0.01 is used as the denominator, and the mean of the cumulative results of the ratio of the numerator to the denominator in the Raman spectrum data detection set of sweet orange flower essential oil is taken as the abnormal coefficient of the impurity spectrum detection of sweet orange flower essential oil.
5. A sweet orange flower essential oil impurity spectrum detection method according to claim 1, characterized in that, The method for obtaining the sweet orange flower essential oil impurity spectrum detection result according to the sweet orange flower essential oil impurity spectrum detection abnormality coefficient is: An impurity spectrum detection judgment interval of sweet orange flower essential oil is set, and the sweet orange flower essential oil impurity spectrum detection anomaly coefficient corresponding to each batch of sweet orange flower essential oil is obtained. The sweet orange flower essential oil impurity spectrum detection result is obtained according to the comparison result of the sweet orange flower essential oil impurity spectrum detection anomaly coefficient and the impurity spectrum detection judgment interval.
6. A sweet orange flower essential oil impurity spectrum detection system, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method for spectral detection of impurities in sweet orange flower essential oil as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Establishment method of lavender essential oil characteristic component quantitative analysis model based on near-infrared Raman spectrum fusion and quantitative analysis method
CN112595691A
Raman spectrum detection method, device and equipment and computer readable storage medium
CN116698812A
