A method for identifying target components from SERS spectra of mixtures
By using continuous wavelet transform and Lorentz function fitting, combined with the Pearson correlation coefficient to calculate the similarity, the problem of difficult identification of target components in the SERS spectrum is solved, achieving fast and accurate identification effects, and is suitable for complex spectral environments.
Patent Information
- Application Number
- CN202210589616.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Existing SERS spectral identification methods are difficult to accurately identify target components in mixtures. They are affected by problems such as interference from debris and overlapping spectral peaks, resulting in insufficient model generalization capabilities and inability to effectively extract the characteristics of target components.
Continuous wavelet transform is used to find the characteristic peaks of the SERS spectrum, and the Lorentz function is used to fit, combined with the Pearson correlation coefficient to calculate the similarity, to achieve the identification of target components, reduce the influence of noise signals and improve the identification accuracy.
This method can quickly and accurately identify target components from complex mixture SERS spectra, has anti-interference ability, is suitable for the identification of complex Raman spectra, and achieves a rapid identification process without manual participation.
Smart Images

Figure CN114878544B
Abstract
Description
Technical Field
[0001] The invention relates to Raman spectrum recognition, in particular to a method for identifying target components from a mixture SERS spectrum. Background Art
[0002] Surface enhanced Raman scattering (SERS) spectroscopy is widely used in trace substance identification, biosensors, and food safety testing due to its advantages such as rich molecular "fingerprint" information and convenience for on-site qualitative analysis. As a molecular vibration signal, the characteristic peak of Raman spectroscopy is essentially a Lorentz peak, and fitting with a Lorentz function can more accurately reflect the characteristics of the characteristic peak of a substance.
[0003] The current SERS spectrum recognition methods are mostly used for the identification of pure substances. However, due to changes in measuring instruments and detection conditions, the actual collected SERS spectra are very likely to be mixed with spectra of other impurities. In theory, when a substance is added with other components, the characteristic peak parameters of its SERS spectrum (such as peak position, peak width, and peak intensity) will change. In addition, the mixed spectrum has characteristic peaks of other components, as well as peak overlap and spectrum distortion, which makes it difficult to identify the target component, and the method that relies on human eye discrimination analysis is time-consuming and laborious. Due to the uncertainty of the interfering substances, the collected SERS spectra vary widely. Algorithms such as support vector machines (SVM) and random forests based on deep learning cannot effectively extract the characteristics of the target components because they cannot obtain data from all samples for learning and training, resulting in the lack of generalization ability of the model and no longer applicable when the test environment changes. Summary of the invention
[0004] The purpose of the present invention is to provide a method for identifying a target component from a mixture SERS spectrum, so as to solve the problem of difficulty in identifying a target in an existing complex SERS spectrum.
[0005] The object of the present invention is achieved in that:
[0006] A method for identifying a target component from a mixture SERS spectrum comprises the following steps:
[0007] S1, collect the SERS spectrum of the target object and perform preprocessing and deconvolution operations. The result is used as the reference spectrum, and then continuous wavelet transform is used to find the characteristic peaks of the reference spectrum. The characteristic peaks are sorted according to their peak values, and the Lorentz function is used to fit the curve of each characteristic peak.
[0008] S2, collect the SERS spectrum of the analyte to be identified and perform preprocessing and deconvolution operations. The result is used as the analysis spectrum, and then the characteristic peaks of the analysis spectrum are found by continuous wavelet transform to form a vector containing n characteristic peak displacements, which is expressed as: [ω1,ω2,...,ω n], where each value corresponds to the displacement of a characteristic peak.
[0009] S3, according to each characteristic peak i in the reference spectrum, search in the characteristic peak displacement vector of the analysis spectrum to see if there is a peak position matching it, perform curve fitting of the Lorentz function on the successfully matched characteristic peak j of the analysis spectrum, and then calculate the similarity between the Lorentz function of the reference spectrum characteristic peak i and the Lorentz function of the analysis spectrum characteristic peak j.
[0010] S4, according to the Raman spectrum intensity of the characteristic peak i in the reference spectrum, calculate the weight p(I i )for:
[0011]
[0012] Where m is the number of characteristic peaks in the reference spectrum.
[0013] S5, according to the matching similarity of the Lorentz function of each characteristic peak in the reference spectrum, combined with the characteristic peak weight p(I i ), calculate the comprehensive similarity between the reference spectrum and the analytical spectrum, and then determine whether the target component exists in the analyte to be identified.
[0014] Furthermore, the deconvolution operation in step S1 and step S2 includes the following steps:
[0015] a-1, the characteristic peak of SERS spectrum is essentially the Lorentz peak, which can be expressed by the Lorentz function (Lorentz):
[0016]
[0017] Where ν is the Raman shift (wave number), ω l is the central wave number of the Lorentz function, γ l is the half-width of the Lorentz function.
[0018] a-2, the broadening response of the system is represented by the Gaussian function G(ν):
[0019]
[0020] Among them, ω g is the central wave number of the Gaussian function, γ g is the half-width of the Gaussian function.
[0021] a-3, the actual collected Raman spectrum is expressed as the result of the convolution of the Lorentz function L(ν) and the Gaussian function G(ν):
[0022]
[0023] Where V(ν) is the actually collected Raman spectrum, ν is the Raman shift, and * represents the convolution operation.
[0024] a-4, obtain the Gaussian function G(ν) of the system broadening response, and use the Gaussian function G(ν) as the kernel to perform a deconvolution operation on the SERS spectrum; the deconvolved SERS spectrum can be expressed as:
[0025]
[0026] Where Deconv(ν) is the SERS spectrum after deconvolution, L i (ν) is the Lorentzian function of the i-th characteristic peak, m is the number of characteristic peaks, and r(ν) is the residual.
[0027] Furthermore, the continuous wavelet transform in step S1 and step S2 searches for characteristic peaks, using the Mexican hat wavelet as the mother wavelet function:
[0028]
[0029] Among them, ψ(ν) is the wavelet function, ν is the Raman shift, and δ is the scale.
[0030] Furthermore, the method of performing curve fitting on the characteristic peak of the analysis spectrum using the Lorentz function in step S3 includes the following steps:
[0031] b-1, according to the characteristic peak displacement of the analysis spectrum obtained in step S2, the analysis spectrum is segmented to determine the characteristic peak fitting range:
[0032]
[0033]
[0034] Among them, ω left is the left boundary displacement of the i-th characteristic peak curve, ω right is the right boundary displacement of the i-th characteristic peak curve, ω i ,ω i-1 and ω i+1 All of them are characteristic peak shifts.
[0035] b-2, according to the characteristic peak fitting range, the Levenberg-Marquardt algorithm is used to fit the curve to obtain the parameters of the Lorentz fitting function; finally, a vector group including m Lorentz functions is formed, which is expressed as:
[0036] [ω1,I1,γ1,bia1,left1,right1;ω2,I2,γ2,bia2,left2,right2;...;ω m ,I m ,γm ,bia m ,left m ,right m ]
[0037] Each Lorentz vector corresponds to a characteristic peak of the reference spectrum. The Lorentz function corresponding to the i-th characteristic peak includes the Raman shift, Raman relative intensity, half-height width, baseline shift, left boundary and right boundary of the i-th characteristic peak, and i is a variable parameter.
[0038] Furthermore, the displacement matching method of the characteristic peak in step S5 is:
[0039] c-1, based on the displacement difference of two characteristic peaks, determine whether they may be vibration peaks of the same substance. The peak position matching rule is:
[0040]
[0041] Among them, ||v||1 is a norm, which is expressed as the displacement difference between two characteristic peaks, and Vω is the displacement difference threshold set according to the test environment.
[0042] c-2, let ||v||1=0, and search in the analysis spectrum whether there is a characteristic peak whose displacement difference with characteristic peak i is ||v||1; if it exists, the match is successful; if not, let ||v||1=||v||1+1, and continue searching; until ||v||1=Vω.
[0043] Furthermore, the Lorentz function similarity determination method in step S5 is:
[0044] d-1, align the center displacement of the Lorentz function, and then perform a linear transformation on the Lorentz function of the analysis spectrum to further eliminate the influence of different Raman intensities:
[0045] L ref (ν)=a+b×L test (ν)+r(ν)
[0046] L test->ref (ν)=a+b×L test (v)
[0047] Among them, L test (ν) is the Lorentz fitting function of the characteristic peak of the analysis spectrum, L ref (ν) is the Lorentz fitting function of the characteristic peak of the reference spectrum, L test->ref (ν) is the result of linear transformation of the analytical spectral Lorentz function.
[0048] d-2, use the Pearson correlation coefficient to express the similarity of two Lorentz functions:
[0049]
[0050] Among them, CORR(L ref (ν),L test (ν)) represents the Pearson correlation coefficient of the two Lorentz fitting functions of the reference spectrum characteristic peak and the analysis spectrum characteristic peak, L ref (ν) is the Lorentzian function of the characteristic peak of the reference spectrum, is the average value of the Lorentzian function of the characteristic peak of the reference spectrum, L test->ref (ν) is the result of linear transformation of the Lorentzian function of the characteristic peak of the analysis spectrum, It is the average value of the linear transformation results of the Lorentz function of the characteristic peak of the analysis spectrum.
[0051] Furthermore, the calculation formula for the comprehensive similarity S between the reference spectrum of the target object and the analytical spectrum of the analyte to be identified in step S5 is:
[0052]
[0053] Where m is the number of characteristic peaks in the reference spectrum, is the weight of successful matching of the i-th characteristic peak in the reference spectrum.
[0054] The beneficial technical effects of the present invention are:
[0055] The present invention provides a method for identifying a target component from a mixture SERS spectrum. The method collects SERS spectra of a target object and an analyte, uses continuous wavelet transform to find characteristic peaks of a reference spectrum, and uses a Lorentz function for fitting. Compared with Gaussian function and Voigt function, the method can better reflect the essential characteristics of molecular vibration and is more accurate in matching characteristic peaks. The method divides the entire spectrum into spectral segments according to the characteristic peaks, further reducing the influence of fluorescence and other irrelevant signals. The entire identification process does not require human intervention, and can quickly and effectively identify whether a target component exists in the mixture SERS spectrum, and has the characteristics of being fast and non-destructive, simple to implement, and accurate in identification results.
[0056] The identification method of the present invention has the advantages of strong anti-interference ability, accurate discrimination, etc., and is particularly suitable for identifying target components from complex Raman spectra. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a flow chart of the method for identifying target components from the SERS spectrum of a mixture of the present invention.
[0058] Figure 2 It is the flow chart of the Lorentzian function fitting of the characteristic peak.
[0059] Figure 3 It is the wavelet coefficient diagram of SERS spectrum of pyrrole.
[0060] Figure 4 This is the result of searching for the characteristic peaks of the SERS spectrum of pyrrole.
[0061] Figure 5 , Figure 6 , Figure 7 This is the Lorentzian function fitting diagram of the characteristic peak of the SERS spectrum of pyrrole.
[0062] Figure 8 It is the Lorentz function fitting diagram of the characteristic peaks of pyrrole SERS spectrum (reference spectrum) and pyrrole and acetonitrile mixture SERS spectrum (analysis spectrum). DETAILED DESCRIPTION
[0063] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0064] like Figure 1 As shown, the method for identifying a target component from a mixture SERS spectrum of the present invention comprises the following steps:
[0065] S1, collect the SERS spectrum of the target pyrrole.
[0066] S1.1, preprocessing of SERS spectra, including baseline correction, filtering and denoising, and Raman intensity normalization.
[0067] S1.2, the SERS spectrum is expressed by the Lorentz function:
[0068]
[0069] Where ν is the Raman shift (wave number), ω l is the central wave number of the Lorentz function, γ l is the half-width of the Lorentz function.
[0070] S1.3, obtain the Gaussian function G(ν) representing the broadening response of the system:
[0071]
[0072] Among them, ω g is the central wave number of the Gaussian function, γ g is the half-width of the Gaussian function.
[0073] S1.4, the actual collected Raman spectrum is approximately the result of the convolution of the Lorentz function and the Gaussian function:
[0074]
[0075] Where V(ν) is the actually collected Raman spectrum, ν is the Raman shift, and * represents the convolution operation.
[0076] S1.5, using the Gaussian function G(ν) of S1.3 as the kernel, the SERS spectrum is deconvolved. The obtained signal can be theoretically approximated by the Lorentz function:
[0077]
[0078] Where Deconv(ν) is the SERS spectrum after deconvolution, L i (ν) is the Lorentzian function of the ith characteristic peak, m is the number of characteristic peaks, r(ν) is the residual; and:
[0079]
[0080] The reference spectrum used subsequently in the present invention is the spectrum after deconvolution.
[0081] S1.6, using the Mexican hat wavelet as the mother function, using continuous wavelet transform to find the characteristic peaks of the reference spectrum, and sorting them according to the peak values of the characteristic peaks, such as Figure 3 and Figure 4 As shown. The Mexican hat wavelet form is:
[0082]
[0083] S1.7, use the Lorentz function of S1.2 to perform curve fitting on each characteristic peak of S1.6. The fitting process is as follows: Figure 2 As shown, a vector group of m Lorentz functions is finally formed, which is expressed as:
[0084] [ω1,I1,γ1,bia1,left1,right1;ω2,I2,γ2,bia2,left2,right2;...;ω m ,I m ,γ m ,bia m ,left m ,right m ],
[0085] Each Lorentz vector corresponds to a characteristic peak of the reference spectrum, and corresponds to the Lorentz function of the i-th characteristic peak, including the Raman frequency shift, Raman intensity, half-height width, baseline offset, left boundary and right boundary of the i-th characteristic peak, where i is a variable parameter.
[0086] The Lorentzian function fitting results of the characteristic peaks are as follows: Figure 5 , Figure 6 and Figure 7 The parameters of the Lorentz function are shown in Table 1.
[0087] Table 1: Lorentzian function fitting results of pyrrole characteristic peak curve
[0088] Characteristic peak Figure 5 Figure 6 Figure 7 <![CDATA[Central displacement ω (cm -1 )]]> 1142 1379 1466 Baseline shift -0.00928 -0.01778 -0.00975 Strength coefficient I 1.046677 0.221997 0.170103 <![CDATA[Full width at half maximum γ (cm -1 )]]> 9.277012 16.73977 12.53363 <![CDATA[Left boundary (cm -1 )]]> 1021 1334 1422 <![CDATA[Right boundary (cm -1 )]]> 1259 1422 1510
[0089] S2, using a mixed solution of pyrrole and acetonitrile as the analyte to be tested, collecting the SERS spectrum of the mixture, performing preprocessing and peak searching, and forming a vector containing n characteristic peak displacements as the analytical spectrum, expressed as: [ω1,ω2,...,ω n ], each value corresponds to the displacement of a characteristic peak.
[0090] S3, perform characteristic peak displacement matching, the peak position matching rule is:
[0091]
[0092] Among them: ||v||1 is a norm, which is expressed as the displacement difference between two characteristic peaks, Vω is the displacement difference threshold set according to the test environment. If the displacement difference between the two characteristic peaks is less than the displacement difference threshold, they may be vibration peaks of the same substance.
[0093] For each characteristic peak i in the reference spectrum, find out whether there is a peak position matching it in the characteristic peak displacement vector of the analysis spectrum. Let ||v||1=0, and find out whether there is a characteristic peak in the analysis spectrum with a displacement difference of ||v||1 from characteristic peak i; if it exists, the match is successful; if not, let ||v||1=||v||1+1, and continue searching; until ||v||1=Vω.
[0094] S4, calculation of the similarity of the Lorentz function. If the peak position of the characteristic peak j in the analysis spectrum matches the peak position of the characteristic peak i in the reference spectrum, the similarity of the Lorentz function of the two characteristic peaks is further calculated, such as Figure 8 shown.
[0095] S4.1, first align the center displacements of the two Lorentz functions, and then transform the line shape of the Lorentz function of the analytical spectrum:
[0096] L ref (ν)=a+b×L test (ν)+r(ν)
[0097] L test->ref (ν)=a+b×L test (v)
[0098] Among them, L test (ν) and L ref (ν) are the characteristic peak Lorentz fitting functions of the analytical spectrum and the reference spectrum, L test->ref (ν) is the result of linear transformation of the analytical spectral Lorentz function.
[0099] S4.2, use the Pearson correlation coefficient to calculate the similarity of two Lorentz functions:
[0100]
[0101] Among them, CORR(L ref (ν),L test (ν)) represents the Pearson correlation coefficient of the two Lorentz fitting functions of the reference spectrum characteristic peak and the analysis spectrum characteristic peak, L ref (ν) is the Lorentzian function of the characteristic peak of the reference spectrum, is the average value of the Lorentzian function of the characteristic peak of the reference spectrum, L test->ref (ν) is the result of linear transformation of the Lorentzian function of the characteristic peak of the analysis spectrum, It is the average value of the linear transformation results of the Lorentz function of the characteristic peak of the analysis spectrum.
[0102] S5, calculate the comprehensive similarity S between the reference spectrum and the spectrum to be analyzed, and determine whether the target component exists in the analyte:
[0103]
[0104] Where m is the number of characteristic peaks in the reference spectrum, is the weight of the successful matching of the i-th characteristic peak in the reference spectrum, CORR(L ref (ν i ),L test (ν j )) is the Pearson correlation coefficient of the Lorentz function between the i-th characteristic peak in the reference spectrum and the j-th characteristic peak in the analysis spectrum.
[0105] In this example, the comprehensive similarity calculation result is 0.986. If the similarity threshold is 0.9, it is considered that the target component pyrrole exists in the analyte if it is greater than 0.9.
Claims
1. A method for identifying a target component from a mixture SERS spectrum, characterized in that: The following steps are involved: S1, collect the SERS spectrum of the target object and perform preprocessing and deconvolution operations. The result is used as the reference spectrum, and then the characteristic peaks of the reference spectrum are found by continuous wavelet transform. The characteristic peaks are sorted according to their peak values, and the Lorentz function is used to perform curve fitting for each characteristic peak; S2, collect the SERS spectrum of the analyte to be identified and perform preprocessing and deconvolution operations. The result is used as the analysis spectrum, and then the characteristic peaks of the analysis spectrum are found by continuous wavelet transform to form a vector containing n characteristic peak displacements, which is expressed as: [ω1,ω2,...,ω n ], where each value corresponds to the displacement of a characteristic peak; S3, according to each characteristic peak i in the reference spectrum, searching in the characteristic peak displacement vector of the analysis spectrum whether there is a peak position matching it, performing curve fitting of the Lorentz function on the characteristic peak j of the analysis spectrum that successfully matches, and then calculating the similarity between the Lorentz function of the characteristic peak i of the reference spectrum and the Lorentz function of the characteristic peak j of the analysis spectrum; S4, according to the Raman spectrum intensity of the characteristic peak i in the reference spectrum, calculate the weight p(I i )for: Wherein, m is the number of characteristic peaks of the reference spectrum; S5, according to the matching similarity of the Lorentz function of each characteristic peak in the reference spectrum, combined with the characteristic peak weight p(I i ), calculate the comprehensive similarity between the reference spectrum and the analytical spectrum, and then determine whether the target component exists in the analyte to be identified; The method of using the Lorentz function to perform curve fitting on the characteristic peak of the analysis spectrum in step S3 includes the following steps: b-1, according to the characteristic peak displacement of the analysis spectrum obtained in step S2, the analysis spectrum is segmented to determine the characteristic peak fitting range: Among them, ω left is the left boundary displacement of the i-th characteristic peak curve, ω right is the right boundary displacement of the i-th characteristic peak curve, ω i ,ω i-1 and ω i+1 All are characteristic peak shifts; b-2, according to the characteristic peak fitting range, the Levenberg-Marquardt algorithm is used to fit the curve to obtain the parameters of the Lorentz fitting function; finally, a vector group including m Lorentz functions is formed, which is expressed as: [ω1,I1,γ1,bia1,left1,right1;ω2,I2,γ2,bia2,left2,right2;...;ω m ,I m ,c m ,bia m ,left m ,right m ] Each Lorentz vector corresponds to a characteristic peak of the reference spectrum, and the Lorentz function corresponding to the ith characteristic peak includes the Raman shift, Raman relative intensity, half-height width, baseline shift, left boundary and right boundary of the ith characteristic peak.
2. The method for identifying a target component from a mixture SERS spectrum according to claim 1, characterized in that: The deconvolution operation in step S1 and step S2 includes the following steps: a-1, the SERS spectrum is expressed by the Lorentz function: Where ν is the Raman shift, ω l is the central wave number of the Lorentz function, γ l is the half-height width of the Lorentz function; a-2, the broadening response of the system is represented by the Gaussian function G(ν): Among them, ω g is the central wave number of the Gaussian function, γ g is the half-height width of the Gaussian function; a-3, the actual collected Raman spectrum is expressed as the result of the convolution of the Lorentz function L(ν) and the Gaussian function G(ν): Where V(ν) is the actual collected Raman spectrum, ν is the Raman shift, and * represents the convolution operation; a-4, obtain the Gaussian function G(ν) of the system broadening response, and use the Gaussian function G(ν) as the kernel to perform a deconvolution operation on the SERS spectrum; the deconvolved SERS spectrum is expressed as: Where Deconv(ν) is the SERS spectrum after deconvolution, L i (ν) is the Lorentzian function of the i-th characteristic peak, m is the number of characteristic peaks, and r(ν) is the residual.
3. The method for identifying a target component from a mixture SERS spectrum according to claim 1, characterized in that: The continuous wavelet transform in step S1 and step S2 searches for characteristic peaks, using the Mexican Hat wavelet as the mother wavelet function: Among them, ψ(ν) is the wavelet function, ν is the Raman shift, and δ is the scale.
4. The method for identifying a target component from a mixture SERS spectrum according to claim 1, characterized in that: The displacement matching method of the characteristic peak in step S5 is: c-1, based on the displacement difference of two characteristic peaks, determine whether they may be vibration peaks of the same substance. The peak position matching rule is: Among them, ||v||1 is a norm, which is expressed as the displacement difference between two characteristic peaks, and Vω is the displacement difference threshold set according to the test environment; c-2, let ||v||1=0, and search in the analysis spectrum whether there is a characteristic peak whose displacement difference with characteristic peak i is ||v||1; if it exists, the match is successful; if not, let ||v||1=||v||1+1, and continue searching; until ||v||1=Vω.
5. The method for identifying a target component from a mixture SERS spectrum according to claim 1, characterized in that: The Lorentz function similarity determination method in step S5 is: d-1, align the center displacement of the Lorentz function, and then perform a linear transformation on the Lorentz function of the analytical spectrum: L ref (n)=a+b×L test (n)+r(n) L test->ref (n)=a+b×L test (n) Among them, L test (ν) is the Lorentz fitting function of the characteristic peak of the analysis spectrum, L ref (ν) is the Lorentz fitting function of the characteristic peak of the reference spectrum, L test->ref (ν) is the result of linear transformation of the spectral Lorentz function; d-2, use the Pearson correlation coefficient to express the similarity of two Lorentz functions: Among them, CORR(L ref (ν),L test (ν)) represents the Pearson correlation coefficient of the two Lorentz fitting functions of the reference spectrum characteristic peak and the analysis spectrum characteristic peak, L ref (ν) is the Lorentzian function of the characteristic peak of the reference spectrum, is the average value of the Lorentzian function of the characteristic peak of the reference spectrum, L test->ref (ν) is the result of linear transformation of the Lorentzian function of the characteristic peak of the analysis spectrum, It is the average value of the linear transformation results of the Lorentz function of the characteristic peak of the analysis spectrum.
6. The method for identifying a target component from a mixture SERS spectrum according to claim 1, characterized in that: The calculation formula for the comprehensive similarity S between the reference spectrum of the target object and the analytical spectrum of the analyte to be identified in step S5 is: Where m is the number of characteristic peaks in the reference spectrum, is the weight of the successful matching of the i-th characteristic peak in the reference spectrum, CORR(L ref (ν i ),L test (ν j )) is the Pearson correlation coefficient of the Lorentz function between the ith characteristic peak in the reference spectrum and the jth characteristic peak in the analysis spectrum.
