Apparatus and method for processing spectrum
11550010 · 2023-01-10
Assignee
Inventors
Cpc classification
G01R33/4625
PHYSICS
G06F17/16
PHYSICS
G06N5/01
PHYSICS
G06N7/00
PHYSICS
International classification
G06N7/00
PHYSICS
Abstract
A spectrum y includes a waveform-of-interest component and a baseline component serving as a wide-band component. An optimum solution of a signal model x is determined according to a first condition to fit a corresponding portion S.sub.IFx of a baseline model Fx with respect to a representative portion y.sub.I of the baseline component, and a second condition to minimize an Lp norm (wherein p≤1) of the signal model x. An estimated baseline component determined from the optimum solution of the signal model x is subtracted from the spectrum y.
Claims
1. An apparatus for processing a spectrum, comprising: a processor that is programmed to: receive a spectrum which includes a baseline component, process the spectrum, wherein, when processing the spectrum, the processor is to: search for an optimum signal model according to: a first condition to fit a baseline model with respect to the baseline component, wherein the baseline model is a frequency space model, and a second condition to reduce an Lp norm (wherein p≤1) of a signal model which is another expression of the baseline model, wherein the signal model is a time space model in a predetermined space in which the baseline component is expressed as a sparse signal, wherein the predetermined space is a time space, and wherein the baseline model is defined by applying a transform matrix to the signal model, and generate an optimum baseline model corresponding to the optimum signal model, wherein the optimum baseline model is an estimated baseline component; and perform a spectrum analysis on the spectrum after subtracting the estimated baseline component from the spectrum.
2. The apparatus for processing the spectrum according to claim 1, wherein the processor is further to: subtract the estimated baseline component from the spectrum.
3. The apparatus for processing the spectrum according to claim 1, wherein the first condition is a condition to fit, with respect to a representative portion in the baseline component, a corresponding component in the baseline model.
4. The apparatus for processing the spectrum according to claim 1, wherein an evaluation value J is defined by an L2 norm of a residual determined from the baseline component and the baseline model and the Lp norm of the signal model, and a condition to minimize the evaluation value J forms the first condition and the second condition.
5. The apparatus for processing the spectrum according to claim 4, wherein the processor is further to: select a representative portion of the baseline component from the spectrum, and wherein the residual is a residual between the representative portion in the baseline component and a corresponding portion in the baseline model.
6. The apparatus for processing the spectrum according to claim 1, wherein the spectrum is an NMR spectrum.
7. An apparatus for processing a spectrum, comprising: a means for: receiving a spectrum which includes a baseline component; processing the spectrum; and performing a spectrum analysis on the spectrum after subtracting an estimated baseline component from the spectrum; wherein processing the spectrum comprises: searching for an optimum signal model according to: a first condition to fit a baseline model with respect to the baseline component, wherein the baseline model is a frequency space model, and a second condition to reduce an Lp norm (wherein p≤1) of a signal model which is another expression of the baseline model, wherein the signal model is a time space model in a predetermined space in which the baseline component is expressed as a sparse signal, wherein the predetermined space is a time space, and wherein the baseline model is defined by applying a transform matrix to the signal model, and generating an optimum baseline model corresponding to the optimum signal model, wherein the optimum baseline model is an estimated baseline component.
8. A method for processing a spectrum, comprising: receiving, with at least one processor, an NMR spectrum which includes a baseline component; and processing, with the at least one processor, the NMR spectrum, wherein processing the NMR spectrum comprises: searching for an optimum signal model according to: a first condition to fit a baseline model with respect to the baseline component, wherein the baseline model is a frequency space model, and a second condition to reduce an Lp norm (wherein p≤1) of a signal model which is another expression of the baseline model, wherein the signal model is a time space model in a time space, and wherein the baseline model is defined by applying a transform matrix to the signal model, and generating, with at least one processor, an optimum baseline model determined from the optimum signal model, wherein the optimum baseline model is an estimated baseline component; and performing a spectrum analysis on the spectrum after subtracting the estimated baseline component from the spectrum.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) Embodiment(s) of the present disclosure will be described by reference to the following figures, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DESCRIPTION OF EMBODIMENTS
(10) An embodiment of the present disclosure will now be described with reference to the drawings.
(11)
(12) The NMR measurement apparatus 10 comprises a spectrometer and a measurement unit. The measurement unit comprises a static magnetic field generator, a probe, or the like. The static magnetic field generator has a bore serving as a vertical through hole, and an insertion unit of a probe is inserted into the bore. In a head of the insertion unit, a detector circuit which detects an NMR signal from the sample is provided. The spectrometer comprises a controller, a transmission unit, a reception unit, and the like. The transmission unit generates a transmission signal according to a transmission pulse sequence, and the transmission signal is sent to the probe. With this process, an electromagnetic wave is irradiated onto the sample. Then, at the probe, the NMR signal from the sample is detected. A reception signal generated by the detection is sent to the reception unit. In the reception unit, an NMR spectrum is generated by an FFT computation with respect to the reception signal. The NMR spectrum is sent to the spectrum processing apparatus 12 as necessary. Alternatively, the spectrum processing apparatus 12 may be incorporated in the NMR measurement apparatus 10.
(13) In the embodiment, the spectrum processing apparatus 12 is formed by an information processor device such as a computer.
(14) In the following, with reference to
(15) In
(16)
(17) In
[Equation 1]
min∥x∥.sub.p.sup.p (1-1)
subject to y.sub.I=S.sub.IFx (1-2)
(18) Equation (1-2) described above shows that a baseline component is fitted by a baseline model, and more specifically, shows that the representative portion y.sub.I in the baseline component is fitted by a corresponding portion S.sub.IFx of the baseline model. The signal model x is another expression of the baseline model Fx, and is an expression of the baseline model Fx in the frequency space as a model in the time space. In other words, the baseline model Fx is another expression of the signal model x. F represents a transform matrix from the time space to the frequency space, and S.sub.I represents a sampling matrix in the frequency space which extracts a corresponding portion corresponding to the representative portion from the baseline model. In a specific configuration described later, in the search of the optimum solution of the signal model x, a condition for minimizing the L2 norm of a residual between the representative portion y.sub.I and the corresponding portion S.sub.IFx is taken into consideration.
(19) Equation (1-1) described above shows a condition to minimize the Lp norm (wherein p≤1) of the signal model x. It is known that, when the value of p is less than or equal to 1, the Lp norm functions to increase the sparsity of the solution which is the norm computation target, in the process of solving the problem of minimization of the Lp norm. The value of p is greater than or equal to 0 and less than or equal to 1. When p is 0, the solution may become unstable. Thus, desirably, the value of p is greater than 0 and less than or equal to 1. The spectrum processing apparatus 12 estimates the baseline component utilizing the two properties that the baseline component is a sparse signal on the time axis and that the Lp norm increases the sparsity of the solution in the process of searching the optimum solution.
(20) In general, p is 1, but when the sparsity of the baseline component is expected to be high, p may be set to, for example, 0.75 or 0.5. When the number of elements of the baseline component is N and the number of elements of the representative portion y.sub.I is M, the representative portion y.sub.I is a matrix of M rows and 1 column, and the sampling matrix S.sub.I is a matrix of M rows and N columns.
(21) With regard to the norm, generally, the following expressions represented by Equation (2-1) and Equation (2-2) are permitted. In the present disclosure, the “Lp norm” basically refers to the norm defined by Equation (2-2). The parameter n represent a number of elements of the vector.
[Equation 2]
∥x∥.sub.p=(|x.sub.1|.sup.p+|x.sub.2|.sup.p+ . . . +|x.sub.n|.sup.p).sup.1/p (2-1)
∥x∥.sub.p.sup.p=|x.sub.1|.sup.p+|x.sub.2|.sup.p+ . . . +|x.sub.n|.sup.p (2-2)
(22) In
(23) In the embodiment, an initial signal model x.sub.0 is generated from the representative portion y.sub.I. Specifically, the representative portion y.sub.I is transformed into a signal in the time space, to generate the initial signal model x.sub.0. A portion shown by reference numeral 22 is a portion where this function is realized. Alternatively, the initial signal model x.sub.0 may be generated by other conditions, or designated by the user.
(24)
(25) In
(26)
(27)
(28) The CPU 100 functions as the search unit, the selection unit, the subtraction unit, and the like. The inputter 106 is formed with a keyboard, a pointing device, or the like, and the representative portion is designated by the user using the inputter 106. The display 108 is formed with, for example, an LCD, and displays a spectrum before the processing. Alternatively, a range of the representative portion or a group of representative points may be designated on the displayed spectrum by the user. Alternatively, another processor which executes the spectrum processing program 104 may be provided. Alternatively, a plurality of processors which execute the spectrum processing program may be provided. The concept of the processor includes various computation devices which execute data computation.
(29) Next, with reference to
(30)
(31) A first term in Equation (3) is a term corresponding to the first condition, and is a portion where the L2 norm for a residual (y.sub.I-S.sub.IFx) between the representative portion y.sub.I of the baseline component and the corresponding portion S.sub.IFx of the baseline model in the frequency space is to be computed. A second term in Equation (3) is a term corresponding to the second condition, and is a portion where the L1 norm of the signal model x in the time space is to be computed. The term λ is a regularization weight.
(32) In general, solving the problem of minimizing the evaluation value requires differentiation of the evaluation value computation formula. While the first term is differentiable, differentiating the second term is difficult. Thus, according to the known IST (Iterative Soft Thresholding) method, the above-described problem is solved. Alternatively, the IRLS (Iterative Reweighted Least Squares) method, the SIFT (Spectroscopy by Integration of Frequency and Time domain) method, or the like may be used. When p=1, use of the IST method is desirable. When p is less than 1, use of the IRLS method is desirable. When a portion where the baseline component is dominant in the time space is known, use of the SIFT method is desirable. The second and third configurations to be described later are based on the IRLS method.
(33)
(34) In S22, a first completion condition is judged. Specifically, a judgment is made as to whether or not k, which represents a number of computations, is less than or equal to a maximum value k.sub.max. When k≤k.sub.max, S24 and S26 are executed. The computation formula shown in S24 and the computation formula shown in S26 update the signal model x in two stages. The computation formula shown in S24 is determined by once differentiating the first term in Equation (4), and updates the signal model x to minimize the L2 norm of the first term. The computation formula shown in S26 corresponds to the second term of Equation (4). Because it is difficult to differentiate the second term, a soft threshold function soft( ) is used. The function re-forms, based on a computation result X.sub.k+1 of S24, the value of X.sub.k+1 as follows.
[Equation 4]
If λ/L.sub.f<x.sub.k+1 Then x.sub.k+1=x−λ/L.sub.f (4-1)
If −λ/Lf≤x.sub.k+1≤λ/Lf Then x.sub.k+1=0 (4-2)
If x.sub.k+1<−λ/L.sub.f Then x.sub.k+1=x+λ/L.sub.f (4-3)
(35) With the use of the soft threshold function soft( ) the signal model x is updated to minimize the L1 norm. In S28, k is incremented. A signal model X.sub.k+1 at the time when the first completion condition described above is satisfied is output as the optimum signal model.
(36) Alternatively, a second completion condition may be added to the above-described algorithm. For example, immediately after S26, an index e defined by Equation (5) may be computed, and the algorithm may be completed when the index e becomes a certain value or less.
(37)
(38) The denominator in Equation (5) is the L2 norm of the signal model X.sub.k+1 after the update, and the numerator in Equation (5) is the L2 norm of a difference between signal models X.sub.k and X.sub.k+1 before and after the update. Alternatively, another condition may be set as the second completion condition.
(39) Next, with reference to
(40) In
(41) An NMR spectrum 42 shown by a solid line includes a baseline component which is artificially added at a later timing. A result of estimation according to the first configuration for this spectrum is an estimated baseline component 44 shown by a broken line and serving as an optimum baseline model. A result of subtraction of the estimated baseline component 44 from the NMR spectrum 42 is an NMR spectrum 46 after the pre-process.
(42) In
(43) In both the first and second estimation and removal results, the baseline component which changes with a relatively long period on the frequency axis is almost completely removed. This is due to the use of the L1 norm in the model fitting for the baseline component, under a presumption that the baseline component has the sparsity on the time axis. In addition, in both the first and second estimation and removal results, the waveform-of-interest is maintained.
(44)
(45)
(46) The second term in Equation (6) described above is a computation formula of the L2 norm, which can be once differentiated and twice differentiated.
(47) In
(48) In S32, according to the IRLS method, a plurality of weight elements w.sub.i are defined. In S34, a weight matrix W is defined in which the plurality of weight elements are employed as diagonal elements, and all other elements are set to zero. A computation formula shown in S36 is an updating formula of the signal model x. The formula is determined by once differentiating and twice differentiating Equation (6) described above. By repeatedly executing the computation formula shown in S36, an optimum solution of the signal model x which satisfies the condition to minimize the evaluation value J is determined.
(49)
(50) Equations (1-1) and (1-2) described above are respectively rewritten as Equations (7-1) and (7-2) based on the IRLS method and using the weight matrix W. Equation (7-2) is identical to Equation (1-2).
[Equation 7]
min∥Wx∥.sub.2.sup.2 (7-1)
subject to y.sub.I=S.sub.IFx (7-2)
(51) When the matrix S.sub.IF described above is a wide-width matrix (that is, underdetermined), Equations (7-1) and (7-2) described above can be rewritten into the following equivalent equations based on the underdetermined IRLS method.
(52)
(53) A solution which satisfies this equation is computed by Equation (9).
[Equation 9]
x=W.sup.−1B.sup.H(BW.sup.−1W.sup.−1B.sup.H).sup.−1y.sub.I (9)
(54) The algorithm shown in
(55) In S10a, the spectrum y and the coordinate array I are input, and then, in S30a, a predetermined value is given to ε. The processes of S12˜S22, S32, and S34 are identical to the processes already described. The computation formula shown in S38 is an updating formula of the signal model x, and is the same as Equation (9).
(56) According to the embodiment described above, the baseline component included in the spectrum can be precisely estimated. In this process, designation of functions and designation of parameters to be given to the function are not necessary. Thus, the baseline component can be precisely estimated without causing a heavy burden for the user. The spectrum analysis can be accurately executed on the spectrum from which the baseline component is removed. The spectrum process described above may be applied to spectra other than the NMR spectrum.