Inverse Matrix Iterative Deconvolution Method for Spectral Resolution Enhancement

20200388013 ยท 2020-12-10

Assignee

Inventors

Cpc classification

International classification

Abstract

An inverse matrix iterative deconvolution method for spectral resolution enhancement comprises the following steps: step 1, sequence convolution and convolution square matrices; step 2, cumulative multiplication of convolution square matrices and convolution kernel function peak broadening; and step 3, peak resolution enhancement. The invention achieves the purpose of narrowing the peak width by multiplying primitive functions by deconvolution matrices. Further, the invention provides a method for constructing a deconvolution identity matrix to achieve the deconvolution effect with an expected precision. The calculation process is fast and controllable with stable and accurate results, and the application range is wide. The method can be used for resolution enhancement of molecular spectra such as Raman and infrared spectra, as well as other spectra with symmetrical peak patterns such as mass spectra, nuclear magnetic resonance, XRD and XRF.

Claims

1. An inverse matrix iterative deconvolution method for spectral resolution enhancement, comprising the following steps: step 1. sequence convolution and convolution square matrices convolution results of sequences f(n) and g(n) being:
F(n)=.sub.i=.sup.f(i)g(ni)=f(n)*g(n) (1) when the sequence f(n) is a spectral sequence containing m values, and the sequence g(n) is truncated to 2m1 elements, equation (1) is expressed as:
F(n)=.sub.i=m.sup.mf(i)g(ni) (2) rewritten in a matrix form as: [ F ( 1 ) .Math. .Math. .Math. .Math. .Math. F ( m - 1 ) .Math. .Math. F ( m ) .Math. .Math. .Math. .Math. .Math. F ( 2 .Math. m - 1 ) .Math. .Math. F ( 2 .Math. .Math. m ) .Math. .Math. .Math. .Math. .Math. F ( 3 .Math. .Math. m - 2 ) ] = [ .Math. f ( 1 ) .Math. .Math. .Math. .Math. .Math. f ( m ) ] [ .Math. g ( 1 ) .Math. g ( m ) .Math. g ( 2 .Math. .Math. m - 1 ) NaN .Math. .Math. NaN g ( 1 ) .Math. g ( m ) .Math. g ( 2 .Math. .Math. m - 1 ) ] ( 3 ) in equation (3), a computable part is reserved, namely: [ F ( m ) .Math. .Math. .Math. .Math. .Math. F ( 2 .Math. .Math. m - 1 ) ] = [ f ( 1 ) .Math. .Math. .Math. .Math. .Math. f ( m ) ] [ g ( m ) .Math. g ( 2 .Math. .Math. m - 1 ) .Math. .Math. g ( 1 ) .Math. g ( m ) ] ( 4 ) elements of F in equation (4) being renumbered as follows: [ F ( 1 ) .Math. .Math. .Math. .Math. .Math. F ( m ) ] = [ f ( 1 ) .Math. .Math. .Math. .Math. .Math. f ( m ) ] [ g ( m ) .Math. g ( 2 .Math. .Math. m - 1 ) .Math. .Math. g ( 1 ) .Math. g ( m ) ] ( 4 .Math. .Math. a ) considering equation (4a), if a convolution kernel g is a symmetric function with a finite peak width, where g(m) is a peak, and values of b elements before and after the peak tend to 0; and the values of a first and last b elements of the sequence f(n) also tend to zero; then, equation (4) completes a calculation, and a calculated result is equal to that obtained by equation (2); in other words, equation (4) is a method to complete convolution by constructing symmetric convolution kernel square matrices; wherein constructing the symmetric convolution kernel square matrices is expressed in a form of matrix multiplication as follows:
F=f.Math.G (5) further,
f=F.Math.inv(G) (6) a meaning of equation (6) being that a known sequence F is multiplied by an inverse of a convolution square matrix of the convolution square matrices to obtain a deconvolution result f; step 2. cumulative multiplication of the convolution square matrices and a convolution kernel function peak broadening taking a Gaussian function as an example, for g ( x ) = 1 2 .Math. .Math. .Math. .Math. exp ( - x 2 2 .Math. .Math. 2 ) ( 7 ) written as:
G.sup.(1)(y)=Convlve[g(x),g(x),x,y](8) then: G ( n ) ( y ) = Convlve [ G ( n - 1 ) ( x ) , g ( x ) , x , y ] = 1 2 .Math. ( n + 1 ) .Math. .Math. .Math. exp ( - x 2 2 .Math. ( n + 1 ) .Math. 2 ) ( 9 ) the Gaussian function is still the Gaussian function after convolution, and a peak width is increased to {square root over (n+1)} times of convolution number n; according to a conclusion, a matrix G-chain multiplication is written as: G ( n ) = G .Math. G .Math. .Math. .Math. G n + 1 ( 10 ) as long as the peak width of an identity G is small enough, the matrix G-chain multiplication only needs to adjust n to approximate to a plurality of convolution and deconvolution requirements with a required precision, and the matrix G-chain multiplication only required to replace the sequence g(n) in G for different convolution kernel functions; step 3. peak resolution enhancement the peak width is a main factor affecting a resolution, the resolution is enhanced by narrowing the peak width to identify a plurality of overlapping peaks; equation (9) indicates a forward convolution leads to peak broadening, while a reverse convolution achieves peak narrowing, corresponding deconvolution kernel function identity matrices are constructed according to equations (6) and (10), and deconvolution kernel function matrices with the required precision are obtained through an iterative calculation.

2. The method according to claim 1, wherein the method comprises the following specific steps: step 1. generating identity convolution and deconvolution matrices 1) entering a spectral sequence value peak f(n) to be processed, with a plurality of flat data points without peaks reserved or added in front and back; 2) determining a distribution function for deconvolution according to a number m of elements in the spectral sequence value peak f(n) and a nature of peaks in f; 3) determining the peak width (full width at half maximum) of the distribution function according to a plurality of requirements of calculating precision, wherein the peak width is selected from 0.1 to 1; 4) generating the sequence g(n), wherein a number of elements is 2m1, and the peak is located at an mth element; placing a g(n) sequence value in line 1, and sequentially translating backward to generate line 2, . . . , until line m, and replacing missing elements in a translation by 0 or NaN to obtain a matrix M with a size of m(3m2); 5) cutting out a column m through a column 2m1 from M to obtain an mm square matrix, wherein the mm square matrix is an identity convolution matrix G; and 6) inversing the identity convolution matrix G to obtain an identity deconvolution matrix IG; wherein generated identity convolution and deconvolution matrices are diagonally symmetric matrices, for spectral sequences with different number of elements, the identity convolution and deconvolution matrices are not necessary to be generated every time, an identity matrix with a large number of elements is generated first, and a plurality of square matrices with corresponding sizes are intercepted from a large matrix when required later; step 2. enhancing spectral resolution by using a deconvolution matrix 1) selecting a plurality of spectral peaks that require resolution enhancement; for a Raman or infrared spectrum, as a result of inconsistent peak broadening at different wave numbers, selecting a part that requires the resolution enhancement from a complete spectrogram and reserving a portion of head-and-tail baseline as much as possible to ensure stable and accurate resolution enhancement; 2) selecting a type of the deconvolution kernel function; judging and selecting main factors affecting broadening according to a peak pattern and the peak width; and checking a resolution enhancement result by random or enumeration trials when impossible to make judgment or without prior knowledge; 3) defining a sequence peak width of the identity convolution matrix according to a requirement of peak splitting precision to generate the identity deconvolution matrix; 4) for an entered parent peak F, according to f=F.Math.inv(G.sup.(n)) or f=F.Math.IG.sup.(n), where IG(n) is similar to G(n), that is: IG ( n ) = IG .Math. IG .Math. .Math. .Math. IG n + 1 , calculating a resolution enhancement peak f after deconvolution; 5) increasing n for iteration, stopping calculation when the peak width is narrowed to an overlapping peak to meet a plurality of identification requirements, or continuing calculation until a signal-to-noise ratio of a signal reaches a tolerable limit of a plurality of users; the resolution is related to the signal-to-noise ratio of the signal, and the resolution enhancement is actually a conversion of a signal frequency from a low frequency to a high frequency, due to the resolution enhancement, a low frequency noise originally hidden in the signal will also manifests as a significant high frequency noise, resulting in deterioration of the signal-to-noise ratio; in order to lower a limit of the signal-to-noise ratio, a signal with a good signal-to-noise ratio is selected for the resolution enhancement; a deconvolution resolution enhancement of the inverse matrix iterative deconvolution method for spectral resolution enhancement is a gradual process, thus smooth noise reduction is interspersed in the process as appropriate to improve the signal-to-noise ratio of an output result.

3. The method according to claim 2, wherein in step 1) of the step 1, more than 10 data points are reserved in front and back respectively so as to be discarded in a final result.

4. The method according to claim 2, wherein in step 2) of the step 1, the distribution function is specifically a Gaussian distribution and a Lorentz distribution.

5. The method according to claim 2, wherein in step 6) of the step 1, specifically: a large matrix G(mm) with mm elements has been generated, interception of G(pp) from G(mm) is only required when pp elements (p<m) are required; and the large matrix G and subsets of the large matrix is written as: [ g ( m ) .Math. g ( m - p + 1 ) .Math. g ( 1 ) .Math. .Math. .Math. g ( m - p + 1 ) .Math. p p g ( m ) .Math. .Math. .Math. g ( 1 ) .Math. .Math. .Math. .Math. .Math. g ( m ) m m ] . ( 11 )

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0049] FIG. 1 is a Raman spectrum of toluene.

[0050] FIG. 2 is a Raman spectrum of toluene at 900-1100cm.sup.1 wave numbers.

[0051] FIG. 3 is an effect diagram of matrix iterative deconvolution for spectral resolution enhancement using Lorentz kernel functions.

[0052] FIG. 4 is an effect diagram of matrix iterative deconvolution for spectral resolution enhancement using Gaussian kernel functions.

[0053] FIG. 5 shows the contrast between the parent peak of CCl.sub.4 and the peak after resolution enhancement.

[0054] FIG. 6 shows the measurement results of a large long-focus Raman spectrometer.

DETAILED DESCRIPTION OF THE EMBODIMENTS

[0055] The technical solution of the invention will be further described in combination with accompanying drawings and preferred embodiments.

Implementation Steps

1. Generating Identity Convolution and Deconvolution Matrices

[0056] 1) entering the spectral sequence value peak f(n) to be processed, with a plurality of flat data without peaks reserved or added in front and back, generally more than 10 data points reserved in front and back respectively so as to be discarded in the final result;

[0057] 2) determining a distribution function for deconvolution according to the number m of elements in f(n) and the nature of peaks in f, such as Gaussian distribution and Lorentz distribution;

[0058] 3) determining the peak width (full width at half maximum) of the distribution function according to the requirements of calculating precision, which can be selected from 0.1 to 1;

[0059] 4) generating a sequence g(n), wherein the number of elements is 2m-1, and the peak is located at the mth element; placing the g(n) sequence value in line 1, and sequentially translating backward to generate line 2, . . . , until line m, and replacing missing elements in the translation by 0 or NaN to obtain a matrix M with a size of m(3m2);

[0060] 5) cutting out column m through column 2m1 from M to obtain an mm square matrix which is an identity convolution matrix G; and

[0061] 6) inversing G to obtain an identity deconvolution matrix IG.

[0062] It should be noted that the generated identity convolution and deconvolution matrices are diagonally symmetric matrices. That is, for spectral sequences with different number of elements, it is not necessary to generate the matrices every time, an identity matrix with a large number of elements is generated first, and square matrices with the corresponding sizes are intercepted from the large matrix when required later.

[0063] For example, a large matrix G(mm) with mm elements has been generated, it is only required to intercept G(pp) from G(mm) .sup.if pp elements (p<m) are required. The matrix G and subsets thereof can be written as:

[00009] [ g ( m ) .Math. g ( m - p + 1 ) .Math. g ( 1 ) .Math. .Math. .Math. g ( m - p + 1 ) .Math. p p g ( m ) .Math. .Math. .Math. g ( 1 ) .Math. .Math. .Math. .Math. .Math. g ( m ) m m ] ( 11 )

2. Enhancing Spectral Resolution by Using the Deconvolution Matrix

[0064] 1) Selecting spectral peaks that require resolution enhancement. For a Raman or infrared spectrum, as a result of inconsistent peak broadening at different wave numbers, selecting the part that requires resolution enhancement from a complete spectrogram and reserving a portion of head-and-tail baseline as much as possible to ensure stable and accurate resolution enhancement.

[0065] 2) Selecting the type of the deconvolution kernel function. Judging and selecting main factors affecting broadening according to peak pattern and width. Checking the resolution enhancement result by random or enumeration trials if it is impossible to make judgment or without prior knowledge.

[0066] 3) Defining the sequence peak width of the identity convolution matrix according to the requirement of peak splitting precision to generate the identity deconvolution matrix.

[0067] 4) For the entered parent peak F, according to f=F.Math.inv(G.sup.(n)) or f=F.Math.IG.sup.(n), where IG(n) is similar to G(n), that is:

[00010] IG ( n ) = IG .Math. IG .Math. .Math. .Math. IG n + 1 ,

calculating the resolution enhancement peak f after deconvolution.

[0068] 5) Increasing n for iteration, stopping calculation when the peak width is narrowed to the overlapping peak to meet the identification requirements, or continuing calculation until the signal-to-noise ratio of a signal reaches the tolerable limit of users.

[0069] It should be noted that the resolution is closely related to the signal-to-noise ratio of the signal, and the resolution enhancement is actually the conversion of signal frequency from a low frequency to a high frequency, due to resolution enhancement, low frequency noise originally hidden in the signal will also manifests as significant high frequency noise, resulting in deterioration of the signal-to-noise ratio. In order to lower the limit of the signal-to-noise ratio, a signal with good signal-to-noise ratio should be selected for resolution enhancement. The deconvolution resolution enhancement of the invention is a gradual process, thus smooth noise reduction can be interspersed in the process as appropriate to improve the signal-to-noise ratio of the output result

Example

[0070] Taking a Raman spectrum of toluene as an example.

[0071] FIG. 1 is a Raman spectrum of toluene.

[0072] 1. The Raman spectrum F of toluene at 900-1100cm.sup.1 wave numbers is taken as an example of resolution enhancement by deconvolution, as shown in FIG. 2.

[0073] 2. The number of pixels in the spectral band is 121, i.e., the number m of elements in f(n) is 121. The contribution of a Lorentz function in the Voigt peak can be eliminated by deconvolution of the Lorentz function.

[0074] 3. The unit peak width of Lorentz peak is determined to be 0.1 according to the requirements of calculation precision.

[0075] 4. A sequence g(n) is generated according to the Lorentz function, in which the number of elements is 2m1 and the peak center is located at the mth element. The g(n) sequence value is placed in line 1, and sequentially translated backward to generate line 2, . . . , until line m, and missing elements in the translation are replaced by 0 or NaN to obtain a matrix M with a size of m(3m2).

[0076] 5. Column m through column 2m1 are cut out from M to obtain an mm square matrix which is an identity convolution matrix G.

[0077] 6. G is inversed to obtain the identity deconvolution matrix IG.

[0078] 7. For the entered parent peak F, according to f=F.Math.inv(G.sup.(n)) or f=F.Math.IG.sup.(n), where IG(n) is similar to G ( ), that is,

[00011] IG ( n ) = IG .Math. IG .Math. .Math. .Math. IG n + 1 ,

the resolution enhancement peak f after deconvolution is calculated. The n is increasing for iteration.

[0079] FIG. 3 shows the effects of the parent peak, 110 iterations, 200 iterations and 400 iterations respectively. The parent peak at 999 wave numbers and the full width at half maximum (FWHM) after Lorentz deconvolution for 110 times are 6.09 and 4.79 respectively, and the parent peak at 1027 wave numbers and the FWHM after processing are 6.51 and 5.13 respectively.

[0080] In FIG. 3, there is no distortion of the peak pattern after 110 iterations. Continuous deconvolution of the Lorentz peak will distort the peak pattern, indicating that the Lorentz peak has been eliminated in 110 iterations.

[0081] 8. Deconvolution kernel functions are further selected as Gaussian functions for deconvolution for spectral resolution enhancement. The steps of generating a Gaussian deconvolution matrix are the same as previous steps 3-7, in which relevant parameters are changed as follows, g(n) is changed to a Gaussian function, the unit peak width is 0.5, 65,000 iterations are performed, and the resolution enhancement result is shown in FIG. 4. The FWHM of two main peaks in the figure are 2.63 and 3.07 respectively, which is cut by more than half compared with the parent peak. More importantly, the weak peak originally overlapped in the main peak at 999 wave numbers is clearly identified.

[0082] The resolution enhancement proposed by the invention can keep the nature of peaks well, and obviously enhance the identification ability of overlapping peaks.

[0083] Overlapping multiple peaks in CCl.sub.4 spectra measured by an ordinary Raman spectrometer with a resolution of 6 cm.sup.1 are also identified to verify the accuracy and effectiveness of the method. Parameters used for deconvolution are as follows: select the Lorentz peak width 0.1 for 100 iterations, and then select the Gaussian peak width 0.5 for 35,000 iterations.

[0084] FIG. 5 shows the contrast between the parent peak of CCl.sub.4 and the peak after resolution enhancement. FIG. 6 shows the measurement results of a large long-focus Raman spectrometer.

[0085] The above example is only a preferred embodiment of the invention, and the protection scope of the invention is not limited to this. Any changes or replacements without creative labor shall fall within the protection scope of the invention. Therefore, the protection scope of the invention should be subject to the protection scope defined by the claims.