Automatic peak dividing method and device for overlapped peak spectrogram and medium
Through the automatic peak division method, the spectrum is processed using Gaussian process regression model and Lagrangian equation, and the problems of low efficiency and high subjectivity of overlapping peak spectrum analysis in the existing technology are solved, and high-precision and efficient spectrum are achieved. analyze.
Patent Information
- Application Number
- CN202410796034.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-19
AI Technical Summary
The prior art is inefficient and subjective when processing overlapping peak spectra. It depends on manual operations of professionals and makes it difficult to accurately distinguish the properties of each peak and affect the accuracy of the analysis.
An automatic peak division method of overlapping peak spectra, including preprocessing, baseline correction, multi-order derivative operation and nonlinear fitting, using Gaussian process regression model and Lagrangian equation for automatic peak division fitting, through the objective function and limit conditions to solve the optimal value to achieve automatic peak division of multiple spectrums.
It improves the accuracy and speed of spectrum analysis, reduces the dependence on professional experience, obtains more objective and accurate analysis results, can effectively identify and resolve overlapping peaks, and improves the reliability of the analysis.
Smart Images

Figure CN118899042A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, device and medium for automatically separating overlapping peak spectra. Background Art
[0002] In material characterization spectra, there are often overlapping peaks, which increases the complexity of accurate spectrum analysis. There are three key factors that cause overlapping peaks:
[0003] (1) Material complexity: If the material to be analyzed contains multiple elements or the elements exist in different chemical states, especially materials with complex internal structures, peak overlap may occur in similar analysis areas. A representative example is X-ray photoelectron spectroscopy (XPS);
[0004] (2) Energy resolution of the instrument: When the energy resolution of the analytical equipment is not high enough, it may not be possible to distinguish very close energy levels, resulting in overlapping peaks in the spectrum;
[0005] (3) Influence of experimental conditions: For example, factors such as sample thickness, shape, type and energy of the light source, and even scanning speed may affect the spectrum and result in overlapping peaks.
[0006] At present, these overlapping peaks are mainly dependent on manual operation and interpretation by professionals. The manual peak separation method for dealing with overlapping peaks often requires considerable experience and in-depth understanding of the materials to identify the properties of each peak, which is quite inefficient and subjective. Even experienced professionals may make errors when interpreting and processing data, which will directly affect the accuracy of the analysis part.
[0007] The disclosure of the above background technology content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0008] The purpose of the present invention is to provide a method, device and medium for automatic peak separation of overlapping peak spectra, which can realize automatic peak separation and fitting of multiple energy spectra including overlapping peaks, and has high analysis and fitting accuracy and fast speed.
[0009] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0010] An automatic peak separation method for overlapping peak spectra comprises the following steps:
[0011] For the spectrum to be analyzed, an initial data set is obtained, wherein the initial data set includes discrete point data on the spectrum and background noise data;
[0012] Preprocessing the initial data set to obtain a first data set, wherein the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression;
[0013] Performing baseline correction on the first data set to obtain a second data set;
[0014] Performing multi-order derivative operations on the second data set using a derivative spectroscopy method based on Gaussian process regression to obtain a multi-order derivative spectrum, and determining each sub-peak and peak information according to the extreme values of the multi-order derivative spectrum, wherein the peak information includes peak position and peak intensity;
[0015] True and false peaks are identified for all sub-peaks and true peaks are screened out. Nonlinear fitting is performed on the second data set based on all true peaks and their corresponding peak information to obtain the optimal value, and the optimal value is the fitting spectrum obtained by automatic peak separation fitting.
[0016] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, nonlinear fitting is performed on the second data set based on all true peaks to solve the optimal value, and the optimal value is a fitting spectrum obtained by automatic peak fitting, including the following steps:
[0017] Construct an objective function, which is expressed as:
[0018]
[0019] Wherein, m represents the total number of discrete data points in the second data set after baseline correction, n represents the total number of sub-peaks screened out, j is the sequence number of the discrete data point, i represents the sequence number of the sub-peak, and I j,r is the ordinate of the jth discrete data point, x j is the horizontal coordinate of the jth discrete data point, ω i is the weight of the i-th sub-peak after fitting, A i is the peak intensity of the i-th sub-peak after fitting, x i,pos is the peak position of the i-th sub-peak after fitting, σ i is half the half-height width of the i-th sub-peak after fitting;
[0020] Determine the constraint condition of the objective function, wherein the constraint condition includes a peak position constraint, and the peak position constraint is expressed as:
[0021] Cα-(x i,pos -x i )≥0
[0022] Among them, x irepresents the peak position of the i-th sub-peak in the second data set after baseline correction, C is a positive integer not greater than 3, and α is a preset step size;
[0023] A Lagrangian equation is established based on the objective function and the constraint conditions, and the optimal value is solved.
[0024] Further, according to any one of the above technical solutions or a combination of multiple technical solutions, the spectrum to be analyzed is an X-ray photoelectron spectrum, and the restriction conditions further include peak parameter restriction and peak intensity restriction;
[0025] The peak parameter limit expression is: l1-|p i -p o |≥0, where l1 is the first restriction scale, p i is the peak parameter of the ith sub-peak, p o is the peak parameter of the sub-peak with the largest peak intensity, and the peak parameters include ω i and σ i ;
[0026] The peak intensity limit is expressed as: y(p op )≥0, where p op is the peak parameter condition of all sub-peaks after optimization, y(p op ) is the op The peak intensity of the sub-peak under the conditions.
[0027] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the spectrum to be analyzed is an X-ray photoelectron spectrum, and energy spectrum information of the X-ray photoelectron spectrum is obtained, and the energy spectrum information includes elements, orbitals, and binding energies corresponding to the orbitals;
[0028] Determining whether the orbit is an s orbital, and if the orbit is not an s orbital, determining a spin splitting peak;
[0029] According to the determined spin splitting peak, the restriction condition further includes a spin splitting peak area ratio restriction, and the spin splitting peak area ratio restriction is expressed as:
[0030]
[0031] Among them, l2 is the second limiting scale, y 1,i For op The peak intensity of the sub-peak under the condition, y 2,i for y 1,i The spin split peak of y 1,i Greater than y 2,i , α is the binding energy step length, r p is the physical area ratio limitation parameter.
[0032] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, a derivative spectroscopy method based on Gaussian process regression is used to perform multi-order derivative operations on the second data set and obtain a multi-order derivative spectrum, and each sub-peak is determined according to the extreme value of the multi-order derivative spectrum:
[0033] A basic Gaussian process regression model is selected, and all data points of the spectrum after baseline correction are used as a training set. The Gaussian process regression model is trained to obtain the trained Gaussian process regression model and use it as a derivative spectrum peak search model;
[0034] Inputting the second data set into the derivative spectrum peak-finding model to predict adjacent points and obtain first-order derivatives, and fitting again using Gaussian process regression based on the first-order derivatives to obtain a smooth first-order derivative spectrum;
[0035] The first-order derivative is input into the derivative spectrum peak-finding model again to predict adjacent points and obtain the second-order derivative, and Gaussian process regression is used again to fit the second-order derivative to obtain a smooth second-order derivative spectrum; repeat this step, input the latest derivative into the derivative spectrum peak-finding model again to predict adjacent points and use Gaussian process regression to fit, until the fourth-order derivative and the smooth fourth-order derivative spectrum are obtained;
[0036] Each minimum value in the second-order derivative spectrum and each maximum value in the fourth-order derivative spectrum are determined as the sub-peaks.
[0037] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, interpolation processing based on Gaussian process regression is performed on the initial data set after normalization, including:
[0038] Configure a basic Gaussian process regression model, wherein the kernel function of the basic Gaussian process regression model is the sum of the basic kernel function and the Gaussian white noise kernel function, and the basic kernel function is a radial basis function kernel, a Matern kernel, an RBF kernel, a polynomial kernel, or a Rational Quadratic kernel;
[0039] Obtain one or more spectrograms and their corresponding raw data, normalize the raw data and use the processed data as a training set, use the basic Gaussian process regression model to train the training set and obtain a trained Gaussian process regression model;
[0040] The initial data set corresponding to the spectrogram to be analyzed is input into the trained Gaussian process regression model and the original discrete point data of the spectrogram is predicted, and the prediction result is the first data set.
[0041] Further, according to any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the initial data set is interpolated based on Gaussian process regression, including using a sliding window evaluation method to evaluate the noise size and calculating the variance average of several continuous discrete points in the initial data set;
[0042] The corresponding kernel function is determined according to the variance mean value to perform interpolation fitting of Gaussian process regression on the initial data set after normalization, including: if the variance mean value is less than a first preset value, then the RationalQuadratic kernel function is used; if the variance mean value is not less than the first preset value, then the RBF kernel function is used.
[0043] Further, based on any one of the technical solutions or a combination of multiple technical solutions mentioned above, the first preset value is 0.45 to 0.55.
[0044] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the spectrum to be analyzed is an X-ray photoelectron spectrum, and one or more of Shirley background, Tougaard background and custom background are used to perform baseline correction processing on the first data set;
[0045] Performing baseline correction processing on the first data set using the custom background includes:
[0046] Finding a negative curvature peak in the spectrum corresponding to the first data set;
[0047] If there is a negative curvature peak, the peak position and peak intensity of the negative curvature peak with the largest peak intensity are used as the boundary to perform a zeroing operation on the first data set so that the peak intensity of the negative curvature peak is zero.
[0048] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the Shirley background and the custom background are used to perform baseline correction processing on the first data set, including the following steps:
[0049] The threshold peak search method is used to find one or more peaks with the largest peak intensity and use them as partition nodes;
[0050] Dividing the first data set into a plurality of continuous sub-regions based on the partitioning nodes, each of the partitioning nodes separating two adjacent sub-regions;
[0051] Dividing the plurality of sub-regions into a first region, a middle region and a last region in order, wherein the first region is the first one or more sub-regions, and the last region is the last one or more continuous sub-regions;
[0052] Performing baseline correction processing on the first data set using a custom background for the first region and the tail region;
[0053] A Shirley background is used to perform baseline correction processing on the first data set for the middle area.
[0054] Further, based on any one of the above-mentioned technical solutions or a combination of multiple technical solutions, the spectrum to be analyzed is an X-ray photoelectron spectrum, and each sub-peak of the X-ray photoelectron spectrum is obtained as a first sub-peak set; the first sub-peak set is subjected to true and false peak identification and true peaks are screened out, comprising the following steps:
[0055] Pre-acquire energy spectrum information of the X-ray photoelectron energy spectrum, wherein the energy spectrum information includes elements, orbitals, binding energy, and a relationship between peak intensity and binding energy;
[0056] Determine the peak position and peak intensity of each sub-peak in the first sub-peak set, wherein the peak position is the binding energy corresponding to the sub-peak on the spectrum after baseline correction;
[0057] For each sub-peak, if the error between its corresponding peak position and any one of the binding energies of each peak position corresponding to the track is within a preset error range, the peak position is a true peak; otherwise, the peak position is a false peak.
[0058] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, for the X-ray photoelectron energy spectrum, if the orbit is a non-s orbital, the first sub-peak set is identified as true and false peaks and true peaks are screened out, and it also includes: determining the spin splitting peak in the X-ray photoelectron energy spectrum, determining that the sub-peak that does not satisfy the spin splitting peak is a false peak, and determining that the sub-peak that satisfies the spin splitting peak is a true peak.
[0059] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the spectrum to be analyzed is other spectrum other than X-ray photoelectron spectrum, and the other spectrum includes Lorentzian line spectrum, Gaussian line spectrum and Lorentz-Gaussian line spectrum;
[0060] For the other spectra, one or more of a broken line background, a B-spline background and a polynomial background are used to perform baseline correction processing on the first data set.
[0061] According to another aspect of the present invention, the present invention provides an automatic peak separation device for overlapping peak spectra, comprising a baseline correction module, a derivative spectrum module and a peak processing module, wherein:
[0062] The baseline correction module is configured to receive an initial data set and preprocess the initial data set to obtain a first data set, and perform baseline correction processing on the first data set to obtain a second data set, wherein the initial data set includes discrete point data on the spectrogram and background noise data, and the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression;
[0063] The derivative spectrum module is configured to perform multi-order derivative operations on the second data set using a derivative spectrum method based on Gaussian process regression and obtain a multi-order derivative spectrum, and determine the peak position of each sub-peak according to the extreme value of the multi-order derivative spectrum;
[0064] The peak separation processing module is configured to identify true and false peaks for all sub-peaks and screen out true peaks, and to perform nonlinear fitting on all true peaks and the second data set to solve the optimal value, wherein the optimal value is a fitting spectrum obtained by automatic peak separation fitting.
[0065] According to another aspect of the present invention, the present invention provides a computer-readable storage medium for storing program instructions, wherein the program instructions are configured to call and execute the steps of the method described in any one of the technical solutions or a combination of multiple technical solutions as described above.
[0066] The beneficial effects brought by the technical solution provided by the present invention are as follows:
[0067] a. The automatic peak separation method for overlapping peak spectra proposed in the present invention performs preprocessing, baseline correction, true and false peak judgment and peak separation fitting on multiple spectra to be analyzed, and the established peak separation fitting objective function is applicable to multiple spectra, and can automatically separate and fit multiple energy spectra with overlapping peaks, and the analysis and fitting accuracy is high and the speed is fast. In addition, the automatic peak separation method for overlapping peak spectra can automatically analyze and fit multiple spectra, and the reliability and accuracy of the analysis results do not depend on human experience, and the characteristics of the substance are revealed more objectively and accurately;
[0068] b. The present invention proposes a variety of true and false peak identification methods for X-ray photoelectron energy spectra, including true and false peak identification using peak position and true and false peak identification using spin splitting peak characteristics, which can effectively screen out true peaks in the spectrum, and in the subsequent peak fitting process, peak position restriction conditions, peak parameter restriction, peak intensity restriction and spin splitting peak area ratio restriction are proposed for X-ray photoelectron energy spectra, which can obtain accurate X-ray photoelectron energy spectrum peak fitting analysis results;
[0069] c. The present invention proposes a smoothing algorithm based on machine learning noise estimation. By selecting different basic kernel functions according to the noise size and introducing Gaussian white noise kernel function as the kernel function applied to Gaussian process regression, it can more effectively remove noise and smooth the data, thereby improving the accuracy of subsequent spectrogram analysis.
[0070] d. The present invention divides the spectrum into the first region, the middle region and the tail region in sequence. The first region and the tail region use custom backgrounds for baseline correction, and the middle region uses Shirley background for baseline correction. This can achieve more accurate baseline correction and obtain a data set that is closer to the original data of the spectrum.
[0071] e. The present invention utilizes a derivative spectroscopy method based on Gaussian process regression to perform multi-order derivative operations on the second data set and obtain a multi-order derivative spectrum, and determines that each minimum value in the second-order derivative spectrum and each maximum value in the fourth-order derivative spectrum are sub-peaks, thereby achieving better amplification and higher resolution of hidden peaks, especially in terms of half-width, and can more accurately obtain difficult-to-identify hidden peaks. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] 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 recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0073] Figure 1 A flow chart of an automatic peak separation method for overlapping peak spectra provided by one embodiment of the present invention;
[0074] Figure 2 A schematic diagram of a process display interface of an automatic peak separation device for overlapping peak spectra provided by an embodiment of the present invention;
[0075] Figure 3 A comparison diagram of initial data before and after smoothing provided by an embodiment of the present invention;
[0076] Figure 4 A comparison diagram of baseline correction using different backgrounds provided by an embodiment of the present invention;
[0077] Figure 5 A comparison diagram of interpolation fitting results using different custom baselines provided by an embodiment of the present invention;
[0078] Figure 6 A schematic diagram of a multi-order derivative spectrum provided by an embodiment of the present invention;
[0079] Figure 7 A schematic diagram of an initial interface for s-orbital analysis of XPS provided in an application example of the present invention;
[0080] Figure 8 A schematic diagram of a manual peak selection interface for XPS s-orbital analysis provided in an application example of the present invention;
[0081] Fig. 9 A schematic diagram of a result interface for XPS s-orbital analysis provided in an application example of the present invention;
[0082] Fig.10 A schematic diagram of an initial interface for non-s orbital analysis of XPS provided in an application example of the present invention;
[0083] Fig.11 A schematic diagram of the analysis results of non-s orbitals of XPS provided for an application example of the present invention;
[0084] Fig.12 A schematic diagram of optimization results for non-s orbitals of XPS provided in an application example of the present invention;
[0085] Fig.13 A schematic diagram of an initial interface for solid nuclear magnetic resonance analysis provided by an application example of the present invention;
[0086] Fig.14 A schematic diagram of a solid nuclear magnetic resonance analysis result (unconstrained optimization) provided for an application example of the present invention;
[0087] Fig.15 A schematic diagram of a solid nuclear magnetic resonance analysis result (constrained optimization) provided for an application example of the present invention;
[0088] Fig.16 A schematic diagram of an initial interface for Raman spectroscopy analysis provided in an application example of the present invention;
[0089] Fig.17 A schematic diagram of analysis results of Raman spectroscopy provided in an application example of the present invention;
[0090] Fig.18 A comparison chart of XPS smoothing results using various methods provided in an application example of the present invention;
[0091] Fig.19 A comparison diagram of peak search results for the 2p orbit of the cobalt element using a five-point finite difference method, a wavelet analysis method, and a multi-order derivative spectroscopy method based on Gaussian process regression proposed by the present invention is provided as an application example of the present invention. DETAILED DESCRIPTION
[0092] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0093] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0094] In one embodiment of the present invention, a method for automatically separating overlapping peak spectra is provided. Figure 1 , the method comprises the following steps:
[0095] For the spectrum to be analyzed, an initial data set is obtained, wherein the initial data set includes discrete point data on the spectrum and background noise data;
[0096] Preprocessing the initial data set to obtain a first data set, wherein the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression to ensure that data in a subsequent analysis process is accurate and clean;
[0097] performing baseline correction processing on the first data set and obtaining a second data set, through baseline correction;
[0098] Using a derivative spectroscopy method based on Gaussian process regression to perform multi-order derivative operations on the second data set and obtain a multi-order derivative spectrum, determining each sub-peak and peak information corresponding to each peak according to the extreme value of the multi-order derivative spectrum, the peak information including peak position, peak intensity and half-peak width, etc., the abscissa of the peak point of the sub-peak on the spectrum is its corresponding peak position, and the ordinate of the peak point of the sub-peak on the spectrum is its corresponding peak intensity;
[0099] True and false peaks are identified for all sub-peaks and true peaks are screened out. Nonlinear fitting is performed on the second data set based on all true peaks and their corresponding peak information to obtain the optimal value, and the optimal value is the fitting spectrum obtained by automatic peak separation fitting.
[0100] It should be noted that, in the present invention, the true and false peaks of all sub-peaks are identified and the true peaks are screened out, including all the true peaks objectively existing on the spectrum and the true peaks after the number is limited. Specifically, when there is no requirement for the number of fitting peaks, the true and false peaks of all sub-peaks are identified and the true peaks are screened out, which are all the true peaks objectively existing on the spectrum. When there is a requirement for the number of fitting peaks, for example, the preset number of fitting peaks is z, then the true and false peaks of all sub-peaks are identified and the true peaks are screened out. First, the true peaks are identified and the true peaks are screened out, which are all the true peaks objectively existing on the spectrum, and then all the true peaks are sorted according to the peak intensity, and the peak intensity is determined from strong to weak. If the first z true peaks are sorted out, the true peaks are finally screened out and these z true peaks are used as the basis for subsequent peak fitting.
[0101] In this embodiment, nonlinear fitting is performed on the second data set based on all true peaks to solve the optimal value, and the optimal value is a fitting spectrum obtained by automatic peak fitting, including constructing an objective function, determining restriction conditions, and establishing a Lagrangian equation based on the objective function and the restriction conditions to iteratively solve the optimal value.
[0102] Wherein, the objective function is expressed as:
[0103]
[0104] Wherein, m represents the total number of discrete data points in the second data set after baseline correction, n represents the total number of sub-peaks screened out, j is the sequence number of the discrete data point, i represents the sequence number of the sub-peak, and I j,r is the peak intensity of the jth discrete data point, x j is the peak position of the jth discrete data point, ω i is the weight of the i-th sub-peak after fitting, A i is the peak intensity of the i-th sub-peak after fitting, x i,pos is the peak position of the i-th sub-peak after fitting, σ i is half the half-height width of the i-th sub-peak after fitting.
[0105] The restriction condition includes a peak position restriction, which is expressed as:
[0106] Cα-(x i,pos -x i )≥0
[0107] Among them, x irepresents the peak position of the i-th sub-peak in the second data set after baseline correction, C is a positive integer not greater than 3, and α is a preset step size.
[0108] The automatic peak separation method for overlapping peak spectra provided by the present invention is applicable to automatic peak separation and fitting of a variety of energy spectra including overlapping peaks, and has high analysis and fitting accuracy and fast speed. Applicable spectra include X-ray photoelectron spectroscopy (XPS) and other spectra, and the other spectra include nuclear magnetic resonance spectroscopy, Raman spectroscopy, infrared spectroscopy and laser induced breakdown spectroscopy.
[0109] In this embodiment, the method for automatically separating overlapping peak spectra also includes obtaining the spectrum type and spectrum information of the spectrum to be analyzed at the same time or after obtaining the spectrum to be analyzed. The spectrum types include X-ray photoelectron spectra and other spectra, and the other spectra include all spectra that exhibit Lorentzian line shape, Gaussian line shape, and mixed Lorentzian-Gaussian line shape characteristics, including nuclear magnetic resonance spectra, Raman spectra, and infrared spectra. For X-ray photoelectron spectra, the spectrum information includes elements, orbitals, binding energy, charge correction values, and the relationship between intensity and binding energy; for other spectra, only the data on the relationship between intensity and chemical shift / frequency need to be obtained.
[0110] Whether in XPS or other spectral analysis, background signals often appear. These background signals may come from instrument noise, irrelevant substances in the sample preparation process, or experimental conditions. Because of their existence, the original spectrum usually contains some signals that are not generated by the substance to be analyzed. In order to obtain analysis results that are closer to the truth, it is necessary to preprocess the acquired initial data and remove these background noises through baseline correction to improve the accuracy of obtaining and analyzing scientific information, so that the spectrum can more accurately reflect the actual properties of the sample.
[0111] In one embodiment of the present invention, the initial data is preprocessed in the following manner to obtain a first data set. In this embodiment, the preprocessing includes at least normalization processing and interpolation processing.
[0112] First, for the discrete initial data set, a deviation normalization process will be performed, which is a normalized linear transformation method used to map the data to a range of 0 to 1. This means that all discrete data points in the initial data set will be converted to values between 0 and 1 based on their relative positions, so that the normalized data is easier to analyze.
[0113] Then, these linearly transformed result values are interpolated. Interpolation is a commonly used data processing method, which aims to generate new data points within a certain range.
[0114] The occurrence of spurious peaks is usually attributed to the low signal-to-noise ratio (SNR) in the dataset. To mitigate this problem, various smoothing techniques have been extensively studied. These methods include time domain methods, frequency domain methods, time-frequency domain methods, and model-based methods, each of which is designed to address the challenge of low SNR.
[0115] Based on the experimental framework established by the present invention, a series of smoothing techniques are analyzed in detail. These techniques include moving average (MA) smoothing, Savitzky-Golay (SG) smoothing, fast Fourier transform (FFT) smoothing, wavelet transform (WT) smoothing, support vector regression (SVR) smoothing and Gaussian process regression (GPR) smoothing. Their efficiency in noise reduction and retaining the integrity of the original signal is evaluated through detailed analysis and verification. In one embodiment of the present invention, an X-ray photoelectron spectroscopy (XPS) data set with a low signal-to-noise ratio is used as the research object, and the differences between the above-mentioned smoothing techniques are clearly contrasted, such as Fig.18 As shown in a in the figure, WT, FFT, SVR, and GPR have better effectiveness values in noise reduction, while MA and SG fail to produce significant results during the optimization process. Fig.18 The distribution of noise energy shown in Figure c verifies this conclusion.
[0116] To further verify the robustness of the above smoothing algorithms, the same hyperparameters were used in the low noise case. It was found that FFT, MA, SG, and SVR performed poorly in effectively fitting the original curve, such as Fig.18 As shown in b, the sensitivity of the above smoothing algorithms to hyperparameters is shown. WT and GPR show the ability to map complex relationships in new data sets, but WT retains some unimportant information. In the corresponding noise energy distribution, GPR produces a trend of almost uniform intensity, while WT shows a slightly non-uniform area such as Fig.18 As shown in d in the figure. Through the above analysis and research, it is determined that GPR has excellent noise reduction ability and provides strong evidence for its robustness. Based on the above research, this embodiment aims to obtain smooth discrete data points by interpolating the initial data after normalization, and further proposes an improvement scheme based on the existing Gaussian process regression (GPR), which can better process spectra with low signal-to-noise ratio.
[0117] The present invention proposes a smoothing algorithm based on machine learning noise estimation. The specific implementation process is: Gaussian process regression is used to perform interpolation fitting on the initial data set after normalization to obtain smooth discrete data points.
[0118] Now assume that there are known (x, y) data, x is the independent variable of the spectrum such as binding energy / frequency / chemical shift, corresponding to the horizontal coordinate of the spectrum, and y is the peak intensity, corresponding to the vertical coordinate of the spectrum. The Gaussian process regression obeys the multivariate Gaussian distribution expression:
[0119] f(x)~N(μ(x),k(x,x′))
[0120] Among them, μ is the expectation of the distribution, k is the covariance matrix, and N represents the Gaussian distribution.
[0121] Now we have some observation data (x * ,y * ), based on the characteristics of Gaussian process regression, y * and f(x) obey a joint Gaussian distribution:
[0122]
[0123] Among them, K ff = k(x,x), K fy = k(x,x * ), K yy =κ(x * ,x * ), then:
[0124]
[0125] The complexity of Gaussian process regression is O(n 3 ), so when there are too many data points, it will cause storage problems and a sharp increase in computing costs. Therefore, in this embodiment, an equal-interval sampling strategy is adopted to control the number of spectrum data points exceeding 1000 to within 1000.
[0126] In the prior art, the spectrum analysis methods generally use moving average smoothing, Savitzky Golay (SG) smoothing, fast Fourier transform (FFT) smoothing and wavelet transform smoothing to perform denoising on the spectrum data to be analyzed. p ,x q ), and then the kernel function is applied to the analysis process of all spectra to be analyzed, without considering the influence of the noise itself on the selection of the kernel function and the analysis accuracy.
[0127] In this embodiment, the smoothing algorithm based on machine learning noise estimation includes:
[0128] Configure a basic Gaussian process regression model, wherein the kernel function of the basic Gaussian process regression model is the sum of the basic kernel function and the Gaussian white noise kernel function, and the basic kernel function is a radial basis function kernel, a Matern kernel, a polynomial kernel, or a Rational Quadratic kernel;
[0129] Obtain one or more spectrograms and their corresponding raw data, normalize the raw data and use the processed data as a training set, train the training set using the basic Gaussian process regression model, and obtain a trained Gaussian process regression model;
[0130] The initial data set corresponding to the spectrogram to be analyzed is output to complete the trained Gaussian process regression model and predict the discrete point data on the spectrogram, and the prediction result is the first data set.
[0131] However, the influence of noise in the process of spectrum data acquisition is not only related to the instrument, but also to the state, concentration and composition of the substance. For example, the signal-to-noise ratio of XPS is lower when the concentration of the substance is lower, and the influence of noise is significant. Therefore, even for XPS obtained by the same instrument for the same substance of different concentrations, the influence of noise may also vary greatly. For situations where the difference in noise influence is large, the same kernel function is used for denoising, and it is difficult to ensure the analytical accuracy of all analysis results. Therefore, in order to prevent the influence on subsequent analysis steps, the present invention proposes to effectively evaluate and process noise during the denoising process. Introduce Gaussian white noise kernel function in the kernel function to perform noise simulation. This method helps to carry out effective denoising, thereby improving the accuracy of analysis and the quality of data.
[0132] The Gaussian white noise kernel function is expressed as:
[0133] k noise (x p ,x q ) = noise_levelifx p = = x q else0
[0134] The Gaussian white noise kernel function formula is added to the basic kernel function k1(x p ,x q ) to form the total kernel function, which is expressed as:
[0135] k sum (x p ,x q )=k1(x p ,x q )+k noise (x p ,x q )
[0136] Among them, k1(x p ,x q ) is used as the basic kernel function. Common kernel functions include radial basis function (RBF) kernel, Matern kernel, polynomial kernel and rational quadratic kernel, etc. The basic kernel function selects one of RBF kernel, Matern kernel and polynomial kernel.
[0137] In one embodiment of the present invention, the noise level is first evaluated, and a corresponding basic kernel function is determined according to the evaluation result, which is used to add the Gaussian white noise kernel function.
[0138] In this embodiment, a sliding window evaluation method is used to evaluate the noise level, and the variance average of a plurality of continuous discrete points in the initial data set is calculated.
[0139] If the variance mean is less than the first preset value, the Rational Quadratic kernel function is used. After comparison and verification, based on normalized data, the first preset value is preferably 0.45 to 0.55; more preferably, the first preset value is 0.5.
[0140] For data with a mean variance less than 0.5, the Rational Quadratic kernel is used. The expression of the RationalQuadratic kernel function is:
[0141]
[0142] Among them, l0 is the length parameter, which represents the "width" of the kernel function; α is the scale mixing parameter, which represents the "shape" of the kernel function; d(x p ,x q ) represents x p and x q The advantage of the Rational Quadratic kernel is that it does not lose peak information due to excessive smoothing like the RBF kernel, which affects the subsequent false peak identification. When the average noise variance is less than 0.5, the use of the Rational Quadratic kernel can effectively improve the analysis accuracy.
[0143] If the variance mean is not less than the first preset value, the RBF kernel function is used. For data points with large noise, preferably when the variance mean of several consecutive data points is greater than or equal to 0.5, the RBF kernel is preferably used, and the RBF kernel expression is:
[0144]
[0145] Among them, l0 is the length parameter, which represents the "width" of the kernel function; α is the scale mixing parameter, which represents the "shape" of the kernel function; d(x p ,x q ) represents x p and x q The Euclidean distance. The curve obtained after RBF kernel fitting is very smooth, and its characteristics are used to discover the rules behind the low signal-to-noise ratio spectrum. When the noise is large, the use of RBF kernel can more effectively remove the noise and ensure the analysis accuracy.
[0146] By selecting different basic kernel functions and Gaussian white noise kernel functions and adding them as the total kernel function, and applying them to Gaussian process regression, multiple trained Gaussian process regression models suitable for different noise sizes are trained. In the application, for the spectrum to be analyzed, after determining its size, the corresponding trained Gaussian process regression model is selected to perform difference processing on the spectrum to obtain smooth discrete data points. By referencing the Gaussian white noise kernel function and selecting corresponding different basic kernel functions and the Gaussian white noise kernel function according to the noise size, and adding them to the Gaussian process regression, better denoising can be achieved, and more accurate target data can be obtained. In a specific embodiment of the present invention, the smoothing effect of the original data after normalization is as follows: Figure 3 As shown in the figure, the noise estimation smoothing algorithm based on Gaussian process regression appropriately eliminates the original noise of the data and obtains smooth target data.
[0147] In another embodiment of the present invention, the smoothing algorithm of noise estimation can also be directly applied to evaluate the spectrogram to be analyzed. For an initial spectrogram to be analyzed, after the data is standardized and preprocessed, the noise size is judged by evaluating the variance mean, and the corresponding kernel function (Rational Quadratic kernel or RBF kernel) is determined according to the variance mean to perform interpolation fitting of Gaussian process regression on the initial data set after normalization, and the specific method is the same as the above embodiment. Then, the first data set is baseline corrected in different ways.
[0148] If the spectrum to be analyzed is an X-ray photoelectron spectrum, the first data set is baseline corrected using one or more of the Shirley background, the Tougaard background, and the Smart background. Shirley considers that energy loss is a constant, and the background intensity S S The background caused by inelastic scattered electrons at any point on (E) comes only from the scattering of electrons with higher kinetic energy and is proportional to the integral of the main spectrum photoelectron intensity P(E′) with higher kinetic energy. Its expression is:
[0149]
[0150] Where k can be any constant, E represents the binding energy, and P(E′) represents the primary spectrum. In actual situations, the primary spectrum P(E′) is not available, so the measured spectrum m(E′) is used instead. In this case, P(E′) can be approximated as m(E′) plus the background S S (E), therefore, the formula for the Shirley background can be transformed into:
[0151]
[0152] Among them, S S,g (E) represents the background of point g. As an initial approximation, assume a constant background S S,0 , using iterative algorithm to solve convergence, in many cases, pure Shirley background is not suitable, and the background curve and the spectrum line will intersect. Therefore, the present invention makes some adjustments to the pure Shirley background, using Shirley background mixed with linear background:
[0153] S S,g (E)=S S,g-1 (E)(1-θ)+L(E)θ
[0154] Here, θ is a value between 0 and 1, and L(E) represents a linear function.
[0155] For the Tougaard background, it is assumed that electrons will lose some energy due to inelastic collisions, that is, the energy loss cross section is taken into account, so the convolution method is used to simulate the collision. T (E):
[0156]
[0157] Among them, S T,0 (E′) is the contribution of electrons from the higher kinetic energy peak, K(E′-E) is the differential inelastic scattering cross section, and K(E′-E) can be approximately expressed as In order to facilitate numerical calculation, the following formula is given based on Tougaard, the background of point g:
[0158]
[0159] Among them, B1 is an adjustable parameter, ΔE is the energy step, and C is 1643 eV 2 , m(h) is the measured spectrum.
[0160] The present invention proposes a Smart background. It should be noted that the Smart background in the present invention is a custom background. In the Smart background, the strategy for removing the baseline drift at the beginning and end is: using the threshold peak search to find a more obvious peak, and dividing all discrete data points into several regions. At this time, if a negative curvature peak appears in the beginning and end regions, the position of the negative curvature peak is used as the dividing line to re-divide the region and return the drifted part to zero. For other regions, Shirley background subtraction is performed, that is, in this embodiment, a combination of the custom Smart background and the Shirley background is used to perform baseline correction on the X-ray photoelectron energy spectrum.
[0161] The following is a detailed description of the method of using a combination of Smart background and Shirley background to perform baseline correction on an X-ray photoelectron spectrum proposed by the present invention. For the X-ray photoelectron spectrum, the first data set is subjected to baseline correction processing, including the following steps:
[0162] The threshold peak search method is used to find one or more peaks with the largest peak intensity and use them as partition nodes. Specifically, multiple peaks can be screened out according to whether the peak intensity increases first and then decreases or decreases first and then increases. The target requires t (t≥1) partition nodes, and the first t peaks are selected as partition nodes according to the order of peak intensity from strong to weak;
[0163] Based on the t partitioning nodes, the first data set is divided into a number of continuous t+1 sub-regions, each of which separates two adjacent sub-regions, wherein the first region is the region before the first partitioning node among the t partitioning nodes, and the fth region is the region between the f-1th partitioning node and the fth partitioning node;
[0164] Dividing the plurality of sub-regions into a first region, a middle region and a last region in order, wherein the first region is the first one or more continuous sub-regions, and the last region is the last one or more continuous sub-regions;
[0165] Performing baseline correction processing on the first data set using Shirley background for the middle area;
[0166] The first data set is baseline corrected using Smart background for the first region and the tail region, including: searching for negative curvature peaks in the first region and the tail region; if one of the first region and the tail region contains a negative curvature peak, the first data set is zeroed using the peak position and peak intensity of the negative curvature peak with the largest peak intensity as a dividing line, so that the peak intensity of the negative curvature peak is 0.
[0167] like Figure 4As shown in the figure, the layout and design of Smart background are more concise and beautiful than Shirley and Tougaard backgrounds. Although Shirley background may cross with the spectrum, its overall effect is still better than Tougaard, mainly because Tougaard background is more suitable for wide binding energy spectra.
[0168] For other spectra other than XPS, since the background signal of each spectrum is caused by different reasons, a custom point can be used to fit the first data set according to the needs. Custom points are added and relevant methods are used for fitting, including broken line, B-spline and polynomial fitting. Assume that there are two points (x1, y1) and (x2, y2). The broken line background is obtained by linear interpolation between the two points to obtain the fitting point (x, y):
[0169]
[0170] B-spline and polynomial backgrounds are obtained by fitting all the custom point coordinates (X,Y). The total equation of the B-spline curve is:
[0171]
[0172] Among them, P(t) represents the parametric curve, t is the parameterized form of all points, distributed in the interval [0,1]; P i represents the i-th control point, F i,k (t) represents the k-order B-spline basis function, and its specific form is:
[0173]
[0174] in, Represents factorial, j=-1,…,m+1.
[0175] The matrix form of the polynomial fit is:
[0176] Y=Xβ+ε
[0177] Where β is the polynomial coefficient matrix and ε is the error term matrix.
[0178] The effects of the three baselines are as follows Figure 5 As shown in the figure, the smoothness and fitting results of B-spline are the best. The broken line background is suitable for the case where the background signal is not obvious, while the polynomial requires appropriate custom points, otherwise the approximation effect is poor.
[0179] For the analysis of the spectrum, after completing the baseline correction process for the first data set and obtaining the second data set, it is necessary to perform a peak search operation on the spectrum to be analyzed. In spectral analysis, overlapping spectral peaks are a common complex situation. It involves the spectral peaks produced by multiple elements or elements in different chemical states that are close to or completely overlapped in energy position. This situation is particularly common in XPS analysis. Parsing and processing such overlapping spectral peaks is a relatively complicated task, but it is also very important because through this analysis, more in-depth information about the types of elements in the material, their chemical states, surface structures, etc. can be obtained.
[0180] In the process of peak identification, derivative spectroscopy is an effective method to detect hidden peaks by amplifying small changes caused by overlapping signals. For example, Chinese patent application number 2014100064395 proposes to use the first-order derivative to find peaks in the spectrum; Chinese patent application number 2023115880588 proposes to use the smoothed first-order derivative to find the peak area of the Raman spectrum. However, the present application has found through research that it is difficult to find some hidden peaks using only the first-order derivative. In addition, for discrete point problems, the finite difference method (FDM) is usually used, but the sparse data distribution may cause errors in the derivative results. In order to find all the peaks in the spectrum and ensure the accuracy of peak finding, the present invention proposes a multi-order derivative spectroscopy based on Gaussian process regression.
[0181] In one embodiment of the present invention, a derivative spectroscopy method based on Gaussian process regression is used to perform multi-order derivative operations on the second data set and obtain a multi-order derivative spectrum, and each sub-peak is determined according to the extreme values of the multi-order derivative spectrum. The specific process is as follows.
[0182] Select a basic Gaussian process regression model, and use the spectrum data as a training set, specifically use all the data points of the spectrum after baseline correction as a training set, train the Gaussian process regression model, obtain the trained Gaussian process regression model and use it as a derivative spectrum peak-finding model. At this stage, RBF kernel and Gaussian white noise kernel can still be used as the kernel function of the basic Gaussian process regression. However, unlike the previous noise estimation, the current noise is very weak, so it is necessary to adjust the Gaussian white noise kernel function to prevent the generation of outliers. The second data set is input into the derivative spectrum peak-finding model to predict adjacent points and obtain the first-order derivative. Based on the first-order derivative, Gaussian process regression is used again for fitting to obtain a smooth first-order derivative spectrum.
[0183] The first-order derivative is input into the derivative spectrum peak-finding model again to predict adjacent points and obtain the second-order derivative. Gaussian process regression is used again to fit the second-order derivative to obtain a smooth second-order derivative spectrum. This operation is repeated until the fourth-order derivative and the smooth fourth-order derivative spectrum are obtained.
[0184] Then, the minimum value (second-order derivative) or maximum value (fourth-order derivative) of each peak is found in each order derivative spectrum, and the peak position of each component peak, i.e., sub-peak, is determined accordingly. Specifically, each minimum value in the second-order derivative spectrum and each maximum value in the fourth-order derivative spectrum is determined to be the sub-peak.
[0185] Among them, applying two-point FDM to obtain the first-order derivative can be expressed as follows:
[0186]
[0187] Wherein, e is the difference between the predicted peak positions of adjacent points (for XPS, it is the binding energy). The present invention uses the derivative spectroscopy method based on Gaussian process regression to converge the half-peak width, and performs second-order and fourth-order derivative processing on the spectrum after baseline correction. This method can effectively extract deep information from the original data, such as Figure 6 As shown in the figure, the fourth-order derivative finds some peaks that are difficult to distinguish in the original data and the second-order derivative, significantly improving the accuracy of peak location and the signal-to-noise ratio, so the chemical state and valence information of the element can be analyzed more accurately. In a specific embodiment of the present invention, the derivative spectroscopy method based on Gaussian process regression provided in this embodiment is used to predict the neighboring points of a spectrum to be analyzed, and the determination coefficient R on the learning set is 2 The value reached 0.999994. The peak detection of the cobalt 2p orbital (Co 2p) smoothed XPS spectrum was compared with the five-point finite difference method (5-FDM) and continuous wavelet analysis (CWT) in the prior art. The comparison results are as follows: Fig.19 As shown in the figure, 5-FDM fails to capture the hidden peak and shows a significant shift on the main peak, while CWT using the Mexican Hat wavelet performs relatively well but not perfectly, especially in detecting the hidden peak when resolving another main peak. The proposed method shows superior performance, achieving better amplification and resolution of the hidden peak, especially in terms of half-height width.
[0188] In one embodiment of the present invention, the process of performing true and false peak identification on baseline-corrected XPS based on derivative spectroscopy using Gaussian process regression is as follows.
[0189] The energy spectrum information of the X-ray photoelectron spectrum is obtained in advance, and the energy spectrum information includes elements, orbitals, charge correction value information, binding energy of each peak position corresponding to the orbital, and the relationship between peak intensity and binding energy. Such energy spectrum information can be obtained through a pre-established database, for example, through the National Institute of Standards and Technology (NIST) database of the United States.
[0190] The peak position and peak intensity of each sub-peak in the first sub-peak set are determined, wherein the peak position is the binding energy corresponding to the sub-peak on the spectrum after baseline correction.
[0191] If the binding energy is greatly offset from the corresponding element and its orbital in the database, then these are considered as false peaks. Therefore, for each sub-peak, if the error between the corresponding peak position and any of the binding energies of the peak positions corresponding to the orbital is within the preset error range, then the peak position is a true peak; otherwise, the peak position is a false peak. Using peak position to identify true and false peaks is applicable to all spectra.
[0192] Taking XPS as an example, the specific judgment formula for preliminary screening of true and false peaks using peak positions is as follows:
[0193]
[0194] Where E is the element, O is the orbital, f(E,O) represents the truth or falsehood of the current sub-peak (the sub-peak currently being judged) of the O orbital of the E element, and x Pos is the binding energy of the current sub-peak, g(x) represents the binding energy corresponding to the O orbital of the E element in the database, ∈ is the error tolerance range, and is the preset value. Among them, the NIST database information was obtained by crawling the NIST website through the Playwright package.
[0195] For the X-ray photoelectron energy spectrum, for the peaks that have been preliminarily screened, the influence of spin-orbit coupling needs to be considered. Spin-orbit coupling is caused by the interaction between the nuclear electric field and the electron spin felt by the electron during its orbital motion. If it is an s orbital, it is not affected by this. But if it is a non-s orbital, spin splitting peaks will appear, which is mainly due to the influence of spin-orbit coupling. The energy difference between these spin splitting peaks is limited, usually an approximation. Based on this physical property, the present embodiment screens the true peak again on the basis of the preliminary true peak screening.
[0196] First, determine whether the orbit is an s orbital. If the orbit is not an s orbital, use the spin splitting peak to further screen the true peak, including determining the spin splitting peak in the X-ray photoelectron energy spectrum, and determining the sub-peak that does not satisfy the spin splitting peak as a false peak, and determining the sub-peak that satisfies the spin splitting peak as a true peak; if the orbit is an s orbital, this step does not need to be performed.
[0197] In this embodiment, the method for identifying true and false peaks using spin split peaks is as follows: for the sub-peak set after true and false peaks are screened using peak positions, the difference in binding energy between any two sub-peaks in the sub-peak set is calculated. If the difference in binding energy between the two sub-peaks meets the preset range, the two sub-peaks are judged to be spin split peaks and are used as true peaks; if the difference in binding energy between a sub-peak and any other sub-peak does not meet the preset range, the sub-peak is judged to be a false peak. The preset range is determined according to the characteristics of the spin split peak corresponding to the orbit. For an orbit, the difference in binding energy between the main peak and the split peak in its spin split peak is close to a fixed value. Based on the fixed value and the preset redundancy value, the preset range for judging the spin split peak is determined.
[0198] In one embodiment of the present invention, after the true peaks are screened out, all true peaks are sorted in descending order of peak intensity; and a true peak set is determined according to a preset number of true peaks, and the sub-peaks whose peak intensities are ranked from 1 to the preset number of true peaks from strong to weak are the true peak set. For example, in some analyses, only the first four true peaks need to be fitted, and the preset number of true peaks is 4, and the four sub-peaks ranked first in peak intensity are selected as the true peak set.
[0199] After determining all true peaks or the number of target true peaks in the spectrum, peak fitting is performed based on all true peaks to obtain a fitted spectrum. Peak fitting occupies a core position in spectral analysis, and its accuracy directly affects the credibility of the analysis results. Accurate processing of peak position, height and width is extremely important: the peak position characterizes the specific energy level of the element or compound, and its accuracy is the prerequisite for correctly analyzing the molecular structure or chemical environment; the peak height corresponds to the concentration of the substance in the sample. If the processing is inaccurate, it will lead to misunderstanding of the sample properties; and the peak width is of great significance for interpreting the distribution of the chemical environment or the proportion of elements in different chemical states. To this end, the careful study and precise quantification of peak processing will undoubtedly improve the accuracy of spectral analysis, thereby ensuring the validity of scientific research results.
[0200] The essence of peak processing is to use nonlinear programming algorithms to approximate functions. For nonlinear programming, the first goal is to construct the objective function.
[0201] As mentioned above, the objective function is constructed as follows:
[0202]
[0203] Wherein, m represents the total number of discrete data points in the second data set after baseline correction, n represents the total number of sub-peaks screened out, j is the sequence number of the discrete data point, i represents the sequence number of the sub-peak, and I j,r is the peak intensity of the jth discrete data point, x j is the peak position of the jth discrete data point, ω iis the weight of the i-th sub-peak after fitting, A i is the peak intensity of the i-th sub-peak after fitting, x i,pos is the peak position of the i-th sub-peak after fitting, σ i is half the half-height width of the i-th sub-peak after fitting; in this objective function, A i ,ω i 、x i,pos , σ i are all values to be optimized. The quadratic function is used due to its nonlinearity and convexity.
[0204] Since the peak position of the derivative spectroscopy algorithm will be offset to a certain extent compared with the original data, but the overall offset will not be large, a peak position restriction is added. The specific inequality is as follows:
[0205] Cα-(x i,pos -x i )≥0
[0206] Among them, x i represents the peak position of the i-th sub-peak in the second data set after baseline correction, C is a positive integer not greater than 3, and α is a preset peak position step size.
[0207] The above objective function and peak position constraints are applicable to the X-ray photoelectron spectrum and other spectra. Since there are many physical limitations in XPS, in this embodiment, the constraints on the values to be optimized in the nonlinear programming process also include peak parameter constraints, peak intensity constraints, and spin splitting peak area ratio constraints to improve the fitting accuracy.
[0208] For the peak of the same element, theoretically, the half-width σ of the XPS peak of the same element in different chemical environments i and the Gauss-Lorentz ratio ω i are close, therefore, the peak parameter limit expression is: l1-|p i -p o |≥0, where l1 is the first restriction scale, p i is the peak parameter of the ith sub-peak, p o is the peak parameter of the sub-peak with the largest peak intensity, and the peak parameter p i Including i and σ i .
[0209] Based on the fact that the peak intensity cannot be less than 0, the peak intensity limit is expressed as: y(p op )≥0, where p op is the peak parameter condition of all sub-peaks after optimization, y(p op ) is the op The peak intensity of the sub-peak under the conditions.
[0210] The spin splitting peak area ratio restriction is applied to non-s orbitals and is expressed as:
[0211]
[0212] Among them, l2 is the second limiting scale, y 1,i For op The peak intensity of the sub-peak under the condition, y 2,i for y 1,i The spin split peak of y 1,i Greater than y 2,i , α is the binding energy step length, r p is the physical area ratio limiting parameter, for p orbital r p Take 2; for d orbitals take r p 1.5; for f orbital r p Take 1.33.
[0213] At this point, the inequality constraints of nonlinear programming have been added. Next, it is necessary to select an optimization algorithm that is compatible with the constraints and fast, establish the Lagrangian equation based on the objective function and the constraints, and solve the optimal value.
[0214] Optimization algorithms can be divided into deterministic algorithms and heuristic algorithms. Deterministic algorithms are selected as the optimization algorithms of the present invention due to their accuracy and repeatability in solving problems, high efficiency, and mature theoretical basis. However, deterministic algorithms will fall into local optimal solutions, but for this method, the addition of constraints can make up for the local optimal dilemma to a certain extent. A typical nonlinear programming problem can be described as:
[0215]
[0216] Where x is an n-dimensional vector and f: h: g: is a function that is continuously differentiable at least twice, f is the objective function, h(x) = 0 is an equality constraint, and g(x) ≥ 0 is an inequality constraint.
[0217] In the present invention, the sequential least squares programming (SLSQP) method is used to solve the optimal value, which first establishes the Lagrange equation:
[0218] L(x,λ,σ)=f(x)+λh(x)+σg(x)
[0219] Where λ and σ are Lagrange multipliers. Use the standard Newton method to solve The problem is to iterate:
[0220]
[0221] in, is the Hessian matrix, and k is the kth step. However, due to Generally it is a singular matrix, Newton step cannot be calculated directly, the continuous least squares method defines a suitable search direction d k In an iteration (x k ,λ k ,σ k ), as a solution to the quadratic programming subproblem:
[0222]
[0223] Note that due to the independence of variables The relation between operators f(x k ) can be ignored. First, by using the initial values (x0,λ0,σ0), calculate and Based on the above calculation results, the parent problem [x k+1 ,λ k+1 ,σ k+1 ] T =[x k ,λ k ,σ k ] T +d k , where k = 0, 1, 2, … until the solution of the parent problem converges.
[0224] For other spectrum analysis, the peak position limit must be met. For peak value and peak width, you can choose whether to use the above peak parameter limits as needed.
[0225] In one embodiment of the present invention, see Figure 2 , provides an automatic peak separation device for overlapping peak spectra, including a baseline correction module, a derivative spectrum module, a peak processing module and a human-computer interaction module, wherein the baseline correction module includes a preprocessing submodule and a baseline correction submodule; the peak processing module includes a true and false peak identification submodule and a peak separation fitting submodule;
[0226] The preprocessing submodule in the preprocessing module is configured to receive an initial data set and preprocess the initial data set to obtain a first data set, wherein the initial data set includes discrete point data on the spectrogram and background noise data, and the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression; preferably, a plurality of pre-trained Gaussian process regression models are configured in the preprocessing submodule, and the Gaussian process regression model uses the sum of different kernel functions and Gaussian white noise as the kernel function of its basic model;
[0227] The baseline correction submodule is configured to receive the first data set, and perform baseline correction processing on the first data set to obtain a second data set;
[0228] The derivative spectrum module is configured to perform a peak search operation, which uses a derivative spectrum method based on Gaussian process regression to perform multi-order derivative operations on the second data set and obtain a multi-order derivative spectrum, and determines each sub-peak according to the extreme value of the multi-order derivative spectrum, wherein the sub-peak includes a peak position and a peak intensity;
[0229] The true and false peak identification submodule in the peak processing module is configured to perform true and false peak identification on all subpeaks and screen out true peaks;
[0230] The peak fitting submodule in the peak processing module is configured to perform nonlinear fitting on the second data set based on all true peaks to solve the optimal value, and the optimal value is the fitting spectrum and analysis result obtained by automatic peak fitting;
[0231] The human-computer interaction module is configured to input relevant parameters, such as spectrum information, and output and display analysis results, including fitting spectrum, analysis time, number of peaks, peak position and peak intensity of each sub-peak, etc.
[0232] In this embodiment, the front-end core is written by PySide6. The display interface of the human-computer interaction module is as follows Figure 7 The menu bar of the display interface includes "File" (load file, save file, close program), "Help" (help information), and "Reset" (reset information). There are two buttons "XPS" and "General" below the menu bar, which correspond to the parameters required for the analysis of XPS spectra and other spectra, respectively.
[0233] XPS interface Figure 7As shown in the figure, it includes options such as "Element", "Orbit", "Number" (the number of peaks required by the user), "Correction" (charge correction), and built-in "Background" (baseline correction method) and "Constraint" (limit degree). In addition, there are four buttons, "Start", "Screen", "Select" and "Cut off", which correspond to the functions of curve fitting, peak identification, analysis area selection and analysis area determination respectively.
[0234] Other spectrum interfaces: such as Fig.13 As shown in the figure, it includes "Spectra" (spectral type), "Number" (the number of peaks required by the user), and "Constraint" (constraint switch). In addition, there are 7 buttons, of which four buttons "Start", "Screen", "Select" and "Cut off" have the same functions as the XPS interface. Since the background is user-defined, "Add point", "Del point", "Fit bg" (interpolation based on the added points) and their interpolation methods are added on the basis of XPS.
[0235] Manual peak selection interface: In this interface, the peaks will be displayed as gray lines, so that users can fit the selected peaks as needed. For this purpose, a "FIT" button is provided to fit after selecting the peaks. In addition, the device will automatically identify false peaks according to the number of peaks selected by the user.
[0236] Results interface: In the results interface, users can see the results of the fitting and use commands such as "UPDATE", "UNLIMITOPT", "LIMITIOPT", "RECALL" to fine-tune the parameters. In addition, users can control the addition and deletion of peaks by using "ADDPEAK" and "DELETEPEAK".
[0237] See also Figure 5 , explore the front-end functions of this device from the perspective of user experience:
[0238] Automatic peak separation: Users only need to copy the data to a txt file, enter the required parameters (such as Element, Orbit, Number and Correction), and then click "START" to perform automatic peak separation. This process is highly automated, simplifies user operations, and greatly improves user experience.
[0239] Manual peak separation: If the user is not satisfied with the results of the automated peak separation, or wants to see the original data after correction, they can also choose to perform manual peak separation. In this process, the user needs to copy the data to a txt file, enter the required parameters, and then click "SCREEN" to select the peak. Then, the user can click "FIT" to fit, and then fine-tune the parameters according to the needs.
[0240] Finally, the options on the initial interface and manual peak selection interface are relatively simple, but the result interface is relatively complex. The function of each option will be explained in detail:
[0241] UPDATE: Update the fitting curve by changing the peak parameters in the table.
[0242] UNLIMITOPT: Unlimited automatic small adjustments to optimize the fitting results.
[0243] LIMITIOPT: Automatically make small adjustments to optimize the fitting results with limits (i.e., the parameters of the spin splitting peaks change together. This option is only applicable to double peak fitting).
[0244] RECALL: Return to the parameters before clicking UNLIMITOPT / LIMITIOPT.
[0245] ADDPEAK: User-defined peak addition. After pressing, a line will appear. Select the position and click UPDATE to add a peak.
[0246] DELETEPEAK: Delete a row of the table based on the cursor.
[0247] In general, the device focuses on user experience and friendliness in front-end design, striving to provide users with a smooth and comfortable operating experience. An excellent user interface design needs to consider and balance many factors, including ease of use, functionality, and aesthetics. The ultimate goal is to create a tool that can help users solve problems while allowing them to enjoy the process of using it.
[0248] In one embodiment of the present invention, a computer-readable storage medium is provided for storing program instructions, wherein the program instructions are configured to be called to execute the steps of the method described in any one of the above embodiments.
[0249] It should be noted that the above-mentioned embodiments of the automatic peak separation device for overlapping peak spectra and the computer-readable storage medium and the embodiment of the automatic peak separation method for overlapping peak spectra belong to the same inventive concept, and the entire content of the embodiment of the automatic peak separation method for overlapping peak spectra is incorporated into the embodiments of the automatic peak separation device for overlapping peak spectra and the computer-readable storage medium by reference.
[0250] In order to help a deeper and more intuitive understanding of the method and device for automatic peak separation of overlapping peak spectra provided by the present invention, the following multiple application examples are provided.
[0251] Application Example 1
[0252] In this example, the 1s orbital of oxygen is studied as the target.
[0253] First, see Figure 7 , by importing the txt file and entering the element symbol "O" (for oxygen), orbital "1s", charge correction value "284.38" (this value is obtained through testing) and other information in the relevant text boxes. Next, determine the number of peaks according to the manual peak selection interface, such as Figure 8 As shown, it can be inferred that the number of peaks is most likely 3. In this example, select "3" as the input. Also select "Smart-bg" as the background type and set the restriction level to "Strict". After completing these operations, click "START" to start the analysis.
[0254] The analysis process takes 1.26 seconds, and the user will see the result interface at the end. Fig. 9 As shown. At the top of the interface is a parameter table, which contains detailed parameter information of the three peaks (including Gauss-Lorentz ratio, half-height width, intensity, integrated area and label). Through analysis, it is found that from left to right are lattice oxygen peak, oxygen vacancy and hydroxyl peak. The result shows that there is a large amount of lattice oxygen in the material, and there are some oxygen vacancies and hydroxyl groups adsorbed on the surface. There are also six buttons on the right side of the table, which is a very important tool for fine-tuning parameters. Below the parameter table is a fitting curve graph, the horizontal axis represents the binding energy of the txt file, and the vertical axis is the normalization factor of the intensity; at the same time, there is also a curve graph showing the loss between the fitting curve and the original curve. This loss curve graph helps to determine which area has a poor fitting effect, thereby providing convenience for users to better fine-tune the peak parameters.
[0255] As can be seen from the example, for a computer equipped with AMD R5 3500x, the process of fitting three peaks from 201 data points only takes about 1 second. This clearly demonstrates the advantages of the automatic peak separation method and device for overlapping peak spectra provided by the present invention in terms of ease of use and efficiency, that is, users do not need too much professional ability and professional hardware to easily obtain accurate peak separation and fitting results.
[0256] Application Example 2
[0257] Taking the 3d orbital of Ce element, which is generally considered difficult to separate in the academic community, as an example, the effect of this device in analyzing non-s orbitals is explained. Fig.10As shown in the figure, first, import the TXT file and enter the element symbol "Ce" (representing cerium), orbital "3d", and charge correction value "284.38" (this value is obtained through instrument testing) in the text box on the right. Select the "Smart" baseline correction method and the "Strict" restriction level, and click "Start".
[0258] The AutoFit fast analysis process took 65 seconds, which is much slower than the non-s-orbital fitting due to the exponentially increased number of parameters. Fig.11 As shown in the figure, the overall interface is the same as before, except that there are twelve peaks here, and the peak fitting process needs to consider the spin split peak. The results of strict physical restriction nonlinear optimization lead to poor fitting in some places, such as the poor fitting around the light green peak. At this time, you need to click "LIMITOPT" to automatically optimize the spin split peak. After clicking the button several times, the result interface becomes as follows: Fig.12 As shown. The optimized result has reached a satisfactory level. Click the Save button on the initial interface to get the corresponding drawing file. Through this result analysis, it can be found that 916.64eV and 898.27eV are Ce. 4+ The spin splitting peaks of Ce are at 900.96eV and 882.36eV. 3+ The spin split peak.
[0259] Through these two application examples, we hope that users can have a clearer understanding of the core functions and operating procedures of this device when applied to XPS, and understand the convenience and efficiency of its actual application.
[0260] Application Example 3
[0261] Solid-state NMR spectroscopy is a powerful analytical tool in chemistry and materials science that can provide microscopic information about structure and dynamics. The anisotropy of the sample and the complex molecular environment lead to a narrow distribution of chemical shifts, resulting in overlapping peaks in the solid-state NMR spectrum. Therefore, the General spectrum analysis function is added to the AutoFit device. The following example introduces the application of the device in solid-state NMR.
[0262] First, import the file to be analyzed, select the spectrum type as SSNMR (Solid-State Nuclear Magnetic Resonance), enter the number of peaks to be fitted, and choose whether to add peak parameter restrictions during the peak separation process. Next, background removal is required. Fig.13As shown, the spectrum has a very flat baseline. You can either take a broken line (click "Fitbg" directly) or do not eliminate the background (click "Start" directly). Here we take the broken line. Finally, click "Start" to analyze.
[0263] The analysis of 1000 points and 3 peaks took 14 seconds and the following results were obtained: Fig.14 If you try to constrain the peak parameters, you will get the following result: Fig.15 The result interface shown is selected based on the user's needs. Fig.14 and Fig.15 , which can reflect the existence state of H atoms on the surface of the material. Specifically, the H atoms of free water are the most abundant species on the surface, followed by lattice hydroxyl hydrogen, and the least abundant is hydroxyl hydrogen.
[0264] Through this application example, we hope that users can have a clearer understanding of the operating procedures of this device for SSNMR.
[0265] Application Example 4
[0266] Raman spectroscopy is an important analytical technique that obtains detailed information about chemical substances by measuring the frequency changes of scattered light. However, if there are multiple substances in the sample, or the same substance exists in different chemical environments, their vibration frequencies may be close, resulting in overlapping peaks in the Raman spectrum. This situation may complicate the interpretation and analysis of Raman spectra. Similarly, AutoFit can handle this situation.
[0267] The steps are basically the same as those in Application Example 3, except that the spectrum type is RS (Raman Spectroscopy). Note that the baseline background drift needs to be removed by selecting reasonable points, such as Fig.16 As shown in the figure, after adding points by "Add point" and using B-spline fitting, a reasonable baseline is obtained. Here, select "On" for the limit degree and click "Start".
[0268] The analysis process takes 2 seconds and the results are as follows Fig.17 The result interface is shown. Fig.17 The results show that different interactions between materials and water cause water to exist in different states.
[0269] Through the above description of the embodiments and the demonstration of the application examples, it can be seen that the method and device for automatic peak separation of overlapping peak spectra provided by the present invention can not only greatly improve the accuracy of analysis, but also significantly improve the efficiency of analysis. For an XPS spectrum containing multiple overlapping peaks, such tools can help us more accurately extract information such as the surface chemical composition, chemical state, and electron distribution of the material, so that we can have a deeper and more comprehensive understanding of the properties of the material.
[0270] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0271] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for automatically separating overlapping peak spectra, characterized in that: The following steps are involved: For the spectrum to be analyzed, an initial data set is obtained, wherein the initial data set includes discrete point data on the spectrum and background noise data; Preprocessing the initial data set to obtain a first data set, wherein the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression; Performing baseline correction on the first data set to obtain a second data set; Performing multi-order derivative operations on the second data set and obtaining a multi-order derivative spectrum using a derivative spectroscopy method based on Gaussian process regression, and determining each sub-peak and peak information according to the extreme values of the multi-order derivative spectrum, wherein the peak information includes peak position and peak intensity; True and false peaks are identified for all sub-peaks and true peaks are screened out. Nonlinear fitting is performed on the second data set based on all true peaks and their corresponding peak information to obtain the optimal value, and the optimal value is the fitting spectrum obtained by automatic peak separation fitting.
2. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: Based on all true peaks, nonlinear fitting is performed on the second data set to obtain an optimal value, wherein the optimal value is a fitting spectrum obtained by automatic peak separation fitting, comprising the following steps: Construct an objective function, which is expressed as: Wherein, m represents the total number of discrete data points in the second data set after baseline correction, n represents the total number of sub-peaks screened out, j is the sequence number of the discrete data point, i represents the sequence number of the sub-peak, and I j,r is the ordinate of the jth discrete data point, x j is the horizontal coordinate of the jth discrete data point, ω i is the weight of the i-th sub-peak after fitting, A i is the peak intensity of the i-th sub-peak after fitting, x i,pos is the peak position of the i-th sub-peak after fitting, σ i is half the half-height width of the i-th sub-peak after fitting; Determine the constraint condition of the objective function, wherein the constraint condition includes a peak position constraint, and the peak position constraint is expressed as: Cα-(x i,pos -x i )≥0 Among them, x i represents the peak position of the i-th sub-peak in the second data set after baseline correction, C is a positive integer not greater than 3, and α is a preset step size; A Lagrangian equation is established based on the objective function and the constraint conditions, and the optimal value is solved.
3. The method for automatically separating overlapping peak spectra according to claim 2, characterized in that: The spectrum to be analyzed is an X-ray photoelectron spectrum, and the restriction conditions further include peak parameter restriction and peak intensity restriction; The peak parameter limit expression is: l1-|p i -p o |≥0, where l1 is the first restriction scale, p i is the peak parameter of the ith sub-peak, p o is the peak parameter of the sub-peak with the largest peak intensity, and the peak parameters include ω i and σ i ; The peak intensity limit is expressed as: y(p op )≥0, where p op is the peak parameter condition of all sub-peaks after optimization, y(p op ) is the op The peak intensity of the sub-peak under the conditions.
4. The method for automatically separating overlapping peak spectra according to claim 2, characterized in that: The spectrum to be analyzed is an X-ray photoelectron spectrum, and energy spectrum information of the X-ray photoelectron spectrum is obtained, wherein the energy spectrum information includes elements, orbitals, and binding energies corresponding to the orbitals; Determining whether the orbit is an s orbital, and if the orbit is not an s orbital, determining a spin splitting peak; According to the determined spin splitting peak, the restriction condition further includes a spin splitting peak area ratio restriction, and the spin splitting peak area ratio restriction is expressed as: Among them, l2 is the second limiting scale, y 1,i For op The peak intensity of the sub-peak under the condition, y 2,i for y 1,i The spin split peak of y 1,i Greater than y 2,i , α is the binding energy step length, r p is the physical area ratio limitation parameter.
5. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: Performing multi-order derivative operations on the second data set and obtaining a multi-order derivative spectrum using a derivative spectrum method based on Gaussian process regression in the following manner, and determining each sub-peak according to the extreme value of the multi-order derivative spectrum: A basic Gaussian process regression model is selected, and all data points of the spectrum after baseline correction are used as a training set. The Gaussian process regression model is trained to obtain the trained Gaussian process regression model and use it as a derivative spectrum peak search model; Inputting the second data set into the derivative spectrum peak-finding model to predict adjacent points and obtain first-order derivatives, and fitting again using Gaussian process regression based on the first-order derivatives to obtain a smooth first-order derivative spectrum; The first-order derivative is input into the derivative spectrum peak-finding model again to predict adjacent points and obtain the second-order derivative, and Gaussian process regression is used again to fit the second-order derivative to obtain a smooth second-order derivative spectrum. Repeat this step until the fourth-order derivative and the smoothed fourth-order derivative spectrum are obtained; Each minimum value in the second-order derivative spectrum and each maximum value in the fourth-order derivative spectrum are determined as the sub-peaks.
6. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: The initial data set after normalization is subjected to interpolation processing based on Gaussian process regression, including: Configure a basic Gaussian process regression model, wherein the kernel function of the basic Gaussian process regression model is the sum of a basic kernel function and a Gaussian white noise kernel function, and the basic kernel function is a radial basis function kernel, a Matern kernel, an RBF kernel, a polynomial kernel, or a Rational Quadratic kernel; Obtain one or more spectrograms and their corresponding raw data, normalize the raw data and use the processed data as a training set, use the basic Gaussian process regression model to train the training set and obtain a trained Gaussian process regression model; The initial data set corresponding to the spectrogram to be analyzed is input into the trained Gaussian process regression model and the original discrete point data of the spectrogram is predicted, and the prediction result is the first data set.
7. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: Performing interpolation processing based on Gaussian process regression on the initial data set, including evaluating the noise size by using a sliding window evaluation method, and calculating the variance average of a number of continuous discrete points in the initial data set; Determining a corresponding kernel function according to the variance mean value to perform interpolation fitting of Gaussian process regression on the initial data set after normalization, including: if the variance mean value is less than a first preset value, using a Rational Quadratic kernel function; If the variance mean value is not less than the first preset value, the RBF kernel function is adopted.
8. The method for automatically separating overlapping peak spectra according to claim 7, characterized in that: The first preset value is 0.45 to 0.
55.
9. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: The spectrum to be analyzed is an X-ray photoelectron spectrum, and one or more of a Shirley background, a Tougaard background, and a custom background are used to perform baseline correction processing on the first data set; Performing baseline correction processing on the first data set using the custom background includes: Finding a negative curvature peak in the spectrum corresponding to the first data set; If there is a negative curvature peak, the peak position and peak intensity of the negative curvature peak with the largest peak intensity are used as the boundary to perform a zeroing operation on the first data set so that the peak intensity of the negative curvature peak area is zero.
10. The method for automatically separating overlapping peak spectra according to claim 9, characterized in that: The Shirley background and the custom background are used to perform baseline correction on the first data set, including the following steps: The threshold peak search method is used to find one or more peaks with the largest peak intensity and use them as partition nodes; Dividing the first data set into a plurality of continuous sub-regions based on the partitioning nodes, each of the partitioning nodes separating two adjacent sub-regions; Dividing the plurality of sub-regions into a first region, a middle region and a last region in order, wherein the first region is the first one or more sub-regions, and the last region is the last one or more continuous sub-regions; Performing baseline correction processing on the first data set using a custom background for the first region and the tail region; A Shirley background is used to perform baseline correction processing on the first data set for the middle area.
11. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: The spectrum to be analyzed is an X-ray photoelectron spectrum, and each sub-peak of the X-ray photoelectron spectrum is obtained as a first sub-peak set; the first sub-peak set is subjected to true and false peak identification and true peaks are screened out, including the following steps: Pre-acquire energy spectrum information of the X-ray photoelectron energy spectrum, wherein the energy spectrum information includes elements, orbitals, binding energy, and a relationship between peak intensity and binding energy; Determine the peak position and peak intensity of each sub-peak in the first sub-peak set, wherein the peak position is the binding energy corresponding to the sub-peak on the spectrum after baseline correction; For each sub-peak, if the error between its corresponding peak position and any one of the binding energies of each peak position corresponding to the track is within a preset error range, the peak position is a true peak; otherwise, the peak position is a false peak.
12. The method for automatically separating overlapping peak spectra according to claim 11, characterized in that: For the X-ray photoelectron energy spectrum, if the orbit is a non-s orbital, the first sub-peak set is identified as true and false peaks and true peaks are screened out, which also includes: determining the spin splitting peak in the X-ray photoelectron energy spectrum, determining that the sub-peak that does not satisfy the spin splitting peak is a false peak, and determining that the sub-peak that satisfies the spin splitting peak is a true peak.
13. The method for automatically separating overlapping peak spectra according to claim 1, characterized in that: The spectrum to be analyzed is other spectrum other than X-ray photoelectron spectrum, and the other spectrum includes Lorentzian line spectrum, Gaussian line spectrum and Lorentz-Gaussian line spectrum; For the other spectra, one or more of a broken line background, a B-spline background and a polynomial background are used to perform baseline correction processing on the first data set.
14. An automatic peak separation device for overlapping peak spectra, characterized in that: It includes a baseline correction module, a derivative spectrum module and a peak processing module, wherein: The baseline correction module is configured to receive an initial data set and preprocess the initial data set to obtain a first data set, and perform baseline correction processing on the first data set to obtain a second data set, wherein the initial data set includes discrete point data on the spectrogram and background noise data, and the preprocessing includes normalization processing and interpolation processing based on Gaussian process regression; The derivative spectrum module is configured to perform multi-order derivative operations on the second data set using a derivative spectrum method based on Gaussian process regression and obtain a multi-order derivative spectrum, and determine the peak position of each sub-peak according to the extreme value of the multi-order derivative spectrum; The peak separation processing module is configured to identify true and false peaks for all sub-peaks and screen out true peaks, and to perform nonlinear fitting on all true peaks and the second data set to solve the optimal value, wherein the optimal value is a fitting spectrum obtained by automatic peak separation fitting.
15. A computer-readable storage medium for storing program instructions, characterized in that: The program instructions are configured to be called to execute the steps of the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Spectral base line correction method based on first-order derivative peak searching and spline fitting
CN103759827A
Asymmetric Raman spectrum baseline correction method and device and storage medium
CN117288739A
Overlapping peak treatment method and device applied to chromatographic analysis
CN111337606A
Method for separating EDXRF spectrum overlapping peak by combining quartic derivative with three-spline wavelet transform
CN111982949A
Mass spectrum overlapping peak splitting method and device and computer equipment
CN114118173A
Cited By
Analysis method and system for improving spectrum quality of mass spectrum
CN120121695A
Method for identifying overlapping peaks in spectroscopic measurement data, thickness measurement method and equipment
CN120234593A
Method for identifying multiple peaks in spectroscopic measurement data, thickness measurement method and equipment
CN120336829A
SFG spectrum advanced fitting analysis method and system
CN120950880A
