1. Field of the Invention
The present invention relates to baseline setting methods, and more specifically, to an improvement of a baseline estimation method.
2. Description of the Related Art
In spectrum measurement by an infrared spectrophotometer or the like, the wavelength or wavenumber is indicated on the reference axis (X-axis), and the absorbance, reflectance, or the like is indicated on the Y-axis, in usual cases. Then, measured values are plotted with respect to points on the reference axis.
While the absorbance, reflectance, or the like is plotted when the wavelength is changed, a narrow mountain, known as a peak, appears in the spectrum. This occurs because the atom or molecule has the property of emitting or absorbing light at a specific wavelength.
However, the baseline of the spectrum depends on the characteristics of the instrument used to take the spectrum or the environment in which the spectrum measurement is being carried out. Sometimes, the occurrence of fluorescence and the like may also influence the baseline.
Therefore, the baseline setting for the spectrum and spectrum data correction based on the set baseline are essential techniques in spectrum data processing.
In particular, in infrared transmission spectrum measurement of a specimen having a rough surface or a specimen containing a pulverized inorganic compound, dispersion occurs on the surface of the specimen or in the specimen. This has a great influence on light with a short wavelength and can lower the transmission spectrum (% T) in the high wavenumber region. The ATR spectrum (% T) in the low wavenumber region of a specimen containing carbon black has a falling tendency.
Since these spectra have a large overall height, the peaks become relatively small, making it difficult to conduct a library search.
It is difficult to measure changes in the baseline directly, so that those changes in the baseline must be estimated.
For example, in Japanese Unexamined Patent Application Publication No. Hei-05-60614, a circle having a diameter not smaller than twice the full width at half maximum of a peak, an ellipse, or the like is moved in contact with but not intersecting the actually measured spectrum, and a part of the track is used as the baseline.
Although conventional methods related to baseline correction such as that described above have advantages, there are many problems in actual use, such as high computational load and a wide range of parameters to be specified, such as the shape and size of the figure.
A simple, low-computational-load baseline setting method that can be used for any shape of spectrum, rising toward the right, rising toward the left, rising in the middle, falling in the middle, or being wavy, has been desired.
In view of the related art, it is an object of the present invention to provide a simple, high-accuracy baseline setting method with low computational load.
If peaks are seen in the positive Y direction, a baseline can be specified by using a semicircle or a semi-ellipse, as described below.
A baseline setting method for a measured curve plotted on a reference axis X and a measured value axis Y extending in a direction orthogonal to the reference axis X, the measured curve having a single measured value yi identified with respect to a point xi on the reference axis X, the baseline setting method including the steps of:
specifying a semicircle or semi-ellipse Cxi; centered on the reference axis X and an
X radius R, expressed by
x
2
+a
2
y
2
=r
2
y≧0
f
Xi(x)={(r2−x2)1/2}/a
if peaks of the measured curve are seen in the positive Y direction;
comparing individual points (xi−r, fxi(xi−r)) to (xi+r, fxi(xi+r)) of the semicircle or semi-ellipse CXi, centered at (xi, 0) with the corresponding points (xi−r, yXi−r) to (xi+r, yXi+r) on the measured curve to calculate
and to specify the minimum value of to 1Xi−r to 1Xi+r as 1(Xi)min;
specifying the maximum value of
obtained with respect to each of semicircles or semi-ellipses CXi−r to CXi+r centered at (xi−r, 0) to (xi+r, 0), as L(xi);
setting a baseline point (xi, L(xi)) corresponding to a specific point (xi, yi) on the measured curve; and
connecting the baseline points corresponding to the individual points on the measured curve, to form a baseline.
If peaks are seen in the negative Y direction, a baseline can be specified as described below.
A baseline setting method for a measured curve plotted on a reference axis X and a measured value axis Y extending in a direction orthogonal to the reference axis X, the measured curve having a single measured value yi identified with respect to each point xi on the reference axis X, the baseline setting method including the steps of:
specifying a semicircle or semi-ellipse Cxi centered on the reference axis X and an X radius, expressed by
x
2
+a
2
y
2
=r
2
y≦0
f
Xi(x)={(r2−x2)1/2}/a
if peaks of the measured curve are seen in the negative Y direction;
comparing individual points (xi−r, fXi(xi−r)) to (xi+r, fXi(xi+r)) of the semicircle or semi-ellipse CXi centered at (xi, 0) with the corresponding points (xi−r, yXi−r) to (xi+r, yXi+r) on the measured curve to calculate
and to specify the minimum value of 1Xi−r to 1Xi+r as 1(Xi)min;
specifying the minimum value of
obtained with respect to each of semicircles or semi-ellipses CXi−r to CXi+r centered at (xi−r, 0) to (xi+r, 0), as L(xi);
setting a baseline point (xi, L(xi)) corresponding to a specific point (xi, yi) on the measured curve; and
connecting the baseline points corresponding to the individual points on the measured curve, to form a baseline.
If peaks are seen in the positive Y direction, a baseline can be specified by using a quadratic curve, as described below.
A baseline setting method for a measured curve plotted on a reference axis X and a measured value axis Y extending in a direction orthogonal to the reference axis X, the measured curve having a single measured value yi identified with respect to each point xi on the reference axis X, the baseline setting method including the steps of:
specifying a quadratic curve DXi centered on the reference axis X, expressed by
y=a(x−b)2+c
under the conditions:
b−M≦x≦b+M
M≧W
a<0
f(x)=a(x−b)2+c
where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks seen in the measured curve, if the peaks of the measured curve are seen in the positive Y direction;
comparing individual points (xi−M, fXi(xi−M)) to (xi+M, fXi(xi+M)) of the quadratic curve DXi having its vertex at (xi, c) (xi=b at the beginning of the measurement) with the corresponding points (xi−M, yXi−M) to (xi+M, yXi+M) on the measured curve to calculate
and to specify the minimum value of 1Xi−M to 1Xi+M as 1(Xi)min;
specifying the maximum value of
obtained with respect to each of quadratic curves DXi−m to DXi+M having their vertices at (xi−M, c) to (xi+M, c), as L(xi);
setting a baseline point (xi, L(xi) corresponding to a specific point (xi, yi) on the measured curve;
setting baseline points corresponding to the individual points on the measured curve by moving the vertex in the X direction; and
connecting the baseline points to form a baseline.
If peaks are seen in the negative Y direction, a baseline can be specified as described below.
A baseline setting method for a measured curve plotted on a reference axis X and a measured value axis Y extending in a direction orthogonal to the reference axis X, the measured curve having a single measured value yi identified with respect to each point xi on the reference axis X, the baseline setting method including the steps of:
specifying a quadratic curve DXi centered on the reference axis X, expressed by
y=a(x−b)2+c
under the conditions
b−M≦x≦b+M
M≧W
a>0
f(x)=a(x−b)2+c
where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks seen in the measured curve, if the peaks of the measured curve are seen in the negative Y direction;
comparing individual points (xi−M, fXi(xi−M)) to (xi+M, fXi(xi+M)) of the quadratic curve DXi having its vertex at (xi, c) (xi=b at the beginning of the measurement) with the corresponding points (xi−M, yXi−M) to (xi+M, yXi+M) on the measured curve to calculate
and to specify the minimum value of 1Xi−M to 1Xi+M as 1(xi)min;
specifying the minimum value of
obtained with respect to each of quadratic curves DXi−M to DXi+M with their vertices at (xi−M, c) to (xi+M, c), as L(xi);
setting a baseline point (xi, L(xi) corresponding to a specific point (xi, yi) on the measured curve;
setting baseline points corresponding to the individual points on the measured curve by moving the vertex in the X direction; and
connecting the baseline points to form a baseline.
The track of a baseline is calculated by using a circle or ellipse, as described below.
First, in a plane having a reference axis X and a measured value axis Y extending orthogonally to the reference axis X, a semicircle or semi-ellipse C centered on the reference axis X, expressed by
x
2
+a
2
y
2
=r
2
(f(x)={(r2−x2)1/2}/a)
is specified, where y≧0 if peaks are seen in the positive Y direction or y≦0 if peaks are seen in the negative Y direction.
The values of “a” and “r” of the semicircle or semi-ellipse C are specified empirically.
If the X radius R of the semicircle or semi-ellipse is too small, the baseline is set at a high position in a peak and becomes too close to the spectrum in the peak.
Therefore, it is preferable to set the X radius R of the semicircle or semi-ellipse C to twice the full width at half maximum, W, or greater, where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks appearing in the measurement curve.
Optimum values of curvature “a” and radius “r” should be specified with the shape and inclination of the base of the measured curve and the peak width taken into account.
If peaks are seen in the positive Y direction, points (xi−r, fXi(xi−r)) to (xi+r, fXi(xi+r)) on the semicircle or semi-ellipse Cxi centered at point (xi, 0) are compared with points (xi−r, yXi−r) to (xi+r, yXi+r) on the spectrum. Differences 1Xi−r to 1Xi+r corresponding to the individual points on the reference axis X are obtained as follows:
(If peaks are seen in the negative Y direction,
are calculated.) The minimum value among to is specified as 1Xi(xi)min.
Then, even when the measured curve has its peak on point (xi, 0) on the X-axis, corresponding to the center of the semicircle or semi-ellipse, if the X radius of the semicircle or semi-ellipse is greater than the maximum peak width appearing in the spectrum, 1Xi(xi)min is calculated at an off-peak position on the X-axis.
Semicircles or semi-ellipses CXi−r to CXi+r are moved in the range of (xi−r, 0) to (xi+r, 0), 1Xi−r(xi)min to 1Xi+r(xi)min are obtained, by following the procedure described above, and
are calculated. (If peaks are seen in the negative Y direction,
are calculated.)
The maximum value (or the minimum value, if peaks are seen in the negative Y direction) among those values is specified as L(xi).
Then, a point (xi, L(xi)) is set as a baseline point.
As has been described above, by specifying appropriate values of curvature “a” and radius “r” for f(x), a natural baseline can be set for any type of spectrum having a measured curve rising toward the right, rising toward the left, rising in the middle, falling in the middle, or being wavy.
The point (xi, 0) is moved in the X direction, L(x(i+1)) is calculated by following the procedure described above, and a baseline point corresponding to a specific point (x(i+1), yx(i+1) on the measured curve is set as (x(i+1), L(x(i+1))).
The baseline points corresponding to individual points on the measured curve are calculated in the same way.
By connecting these baseline points, the baseline of the measured curve can be specified.
The procedure for the baseline setting method using a quadratic curve is almost the same as the procedure for the baseline setting method using a semicircle or semi-ellipse. If peaks are seen in the positive Y direction, a quadratic curve expressed by
f(x)=a(x−b)2+c
a<0
is specified in the range of
b−M≦x≦b+M.
If peaks are seen in the negative Y direction, the quadratic curve is expressed by
f(x)=a(x−b)2+c
a>0.
First, a quadratic curve D centered at a point on the reference axis X, represented by
y=a(x−b)2+c
(f(x)=a(x−b)2+c)
is specified, under the following conditions:
b−M≦x≦b+M
M≧W
The value of M should not be smaller than the full width at half maximum, W, of the peak having the greatest peak width among the plurality of peaks appearing in the measured curve. If the value of M is smaller, the baseline is specified at a high in a peak and becomes too close to the spectrum in the peak.
An optimum value of “a” should be specified empirically with the shape and inclination of the base of the measured curve and the peak width taken into account.
If peaks are seen in the positive Y direction, individual points (xi−r, fXi(xi−r)) to (xi+r, fXi(xi+r)) on the quadratic curve DXi having its vertex at point (xi, c) (xi=b at the beginning of measurement) are compared with points (xi−r, yXi−r) to (xi+r, yXi+r) on the spectrum. Differences 1Xi−r to 1Xi+r corresponding to the individual points on the reference axis X are obtained as follows:
(If peaks are seen in the negative Y direction,
are calculated.) The minimum value among 1Xi−r to 1Xi+r is specified as 1Xi(xi)min.
Then, even when the measured curve has a peak at point (xi, 0) on the X-axis, corresponding to the vertex of the quadratic curve, if the value of “a” is specified to set the baseline to an appropriate height with respect to the peak and if the width (=2M) of the quadratic curve is greater than the maximum peak width appearing on the spectrum, 1Xi(xi)min is calculated at an off-peak position on the X-axis.
Quadratic curves DXi−r to DXi+r are moved in the range of (xi−r, 0) to (xi+r, 0), 1Xi−r(xi)min to 1Xi+r(xi)min are obtained by following the procedure as described above, and
are calculated. (If peaks are seen in the negative Y direction,
are calculated.)
The maximum value (or the minimum value, if peaks are seen in the negative Y direction) among those values is specified as L(xi).
Then, a point (xi, L(xi) is set as a baseline point.
As has been described above, by specifying an appropriate value of “a” for f(x), a natural baseline can be set for any type of spectrum having a measured curve rising toward the right, rising toward the left, rising in the middle, falling in the middle, or being wavy.
The vertex is moved in the X direction, L(x(i+1)) is calculated by following the procedure described above, and a baseline point corresponding to a specific point (x(x+1), yx(i+1)) on the measured curve is set as (x(i+1), L(x(i+1))).
The baseline points corresponding to the individual points on the measured curve are calculated in the same way.
By connecting these baseline points, the baseline of the measured curve can be specified.
As has been described above, if peaks are seen in the positive Y direction, by scanning a semicircle or semi-ellipse at any position on the X-axis about the reference point (xi, 0), the minimum values 1Xi−r(xi)min to 1Xi+r(xi)min of difference in height between the spectrum and the figure at individual positions of the figure (having its center in the range of (xi−r) to (xi+r)) are added to the height fXi+r(xi) to fXi+r(xi) at the reference point (xi, 0) of the individual positions of the figure, and
are obtained. The maximum value L(xi) of the sum is obtained as a baseline value. The reference point is moved in the X direction, and the other baseline values are obtained by following the procedure as described above. By this simple method, a highly accurate baseline can be created automatically. Here, the figure should be moved in the X direction alone. Since complicated movements are not required, the computational load is low.
By adjusting the value of “r” to make the X radius R of the semicircle twice the full width at half maximum of a peak having the greatest peak width or greater, even if there is a peak at point (xi, 0) on the X-axis, where the baseline point is going to be specified, the difference in height between the spectrum and the figure is calculated as the minimum value 1(xi)min at an off-peak X-axis position. Then, the figure is moved as described above, 1Xi−r(xi)min to 1Xi+r(xi)min are calculated, and the values are incorporated in the following calculation:
Since the values of 1Xi−r(xi)min to 1Xi+r(xi)min are the differences in height between the spectrum and the figure at off-peak positions, they do not become too large, and L(xi) is set to an appropriate value.
If the spectrum rises toward the right, rises toward the left, rises in the middle, falls in the middle, or is wavy, an appropriate baseline can be obtained by adjusting the values of curvature “a” and radius “r” in accordance with the shape and inclination of the entire spectrum and the width of the peak.
When a quadratic curve is used, a quadratic curve D having its vertex at point (xi, c) (xi=b at the beginning of the measurement) is formed under the following conditions
f(x)=a(x−b)2+c
b−M≦x≦b+M
M≧W
The values of “b” and “c” are specified as the initial position (b, c) of the quadratic curve.
The figure should be moved in the X direction alone. Since complicated movements are not required, the computational load is low.
If the figure such as a semicircle is moved along the spectrum, the complicated movement of the figure would require manual intervention. According to the present invention, the figure should be moved in the X direction alone. The baseline can be set through a very simple operation. After the initial parameters are specified, the baseline is set almost automatically without any other manual intervention.
With reference to
With reference to
With reference to
As a first embodiment of the present invention, a procedure for setting a baseline by using a semicircle when peaks are seen in the positive Y direction will be described with reference to
The operator first specifies a circle or ellipse with its center at point (Xi, 0).
The circle or ellipse is expressed by
X
2
+a
2
Y
2
=r
2
(f(x)={(r2−x2)1/2}/a)
and set by specifying the values of curvature “a” and radius “r”.
The values of “a” and “r” of the circle or ellipse are specified empirically. It is preferable to set the X radius R of the semicircle or semi-ellipse C to twice the full width at half maximum, W, or greater, where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks appearing in the measured curve, so that baseline points are set in an appropriate height.
From the spectrum S at each point in the horizontal axis region containing the figure, a measured value S at (x, 0) in the range of (Xi−r, 0) to (Xi+r, 0) is compared with {(r2−x2)1/2}/a (y≧0) to calculate the difference Y between them:
Y=(S−{(r2−x2)1/2}/a).
Then, the minimum value Ymint of Y is calculated.
The calculated Ymint is added to the height fxi(Xi) of the figure at point (Xi, 0) to obtain (see
Ymint+fxi(Xi).
The figure is moved by “d” parallel to the X-axis within a range including point (Xi, 0).
From the spectrum at each point in the horizontal axis region containing the figure, a measured value “S” in the range of (Xi+d−r, 0) to (Xi+d+r, 0) is compared with {(r2−x2)1/2}/a (y≧0) to calculate the difference Y between them:
Y=(S−{(r2−x2)1/2}/a).
Then, the minimum value Ymin(t+1) of Y is calculated.
The calculated Ymin(t+1) is added to the height fXi+d(Xi) of the figure at point (Xi, 0) to obtain (see
Ymin(t+1)+fxi+d(Xi).
By repeating this step while moving the figure within the range of (X−r, 0) to (X+r, 0), the following are calculated:
From the results, the maximum value P1 is selected. A baseline point (Xi, P1) at (Xi, 0) is specified (
In
and selecting the maximum value P1, the baseline point (Xi, P1) is set to an appropriate height.
By moving the point (Xi, 0) in the X direction and repeating the same steps for point (X(i+1), 0), the maximum value P2 is set as a baseline point at point (X(i+1), 0).
The same procedure is repeated to calculate baseline points P at (Xi, 0), (X(i+1), 0), to (X(i+n−1), 0). By connecting those points, a baseline BL is obtained (
The present invention can also be used when peaks are seen in the negative Y direction. The procedure differs from the procedure when peaks are seen in the positive Y direction, and a supplementary description will be added.
When peaks are shown in the negative Y direction, a semicircle must be specified in the range of y≦0, as shown in
Moreover, Ymin should be taken from a position where the absolute value of the distance between the circumference of the circle and the spectrum is the greatest. So, Ymin is set to f(x)−S, where f(x) is the value of height of the figure, and S is a measured value.
The height of the figure at (Xi, 0) is expressed as f(xi), as shown in
In
If the specimen emits light in absorbance measurement with an FT-IR or ultraviolet-visible photometer, the amount of light reaching the detector increases, decreasing the absorbance. In Raman scattering intensity measurement using a Raman spectrometer, if the specimen emits light, the spectrum can be raised.
In those cases, baseline correction using a circle, as shown in
For the comparison,
(1)
The spectra shown in
That is because the baseline in
The baseline-corrected spectrum seen in the range of 2800 to 3000 (cm−1) in
(2)
The baseline shown in
Like the spectrum shown in
The upper graph in
When peaks are seen in the positive Y direction, if f(x)(={(r2−x2)1/2}/a)(y≧0) is greater than a specific point yi on the measured curve, 1(xi)min [=yi−f(x)] becomes a negative value. Even in that case, the maximum value of
is selected as L(xi), and a baseline point (xi, L(xi)) can be calculated normally in the same procedure.
As a second embodiment of the present invention, a procedure for setting a baseline by using a quadratic curve will be described with reference to
If peaks are seen in the positive Y direction, the operator first specifies a quadratic curve having its vertex at point (Xi, 0), under the following conditions:
f(x)=a(x−b)2+c
b−M≦x≦b+M
M≧W
a<0
where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks appearing in the measured curve.
The quadratic curve expressed by
y=a(x−b)2+c
(f(x)=a(x−b)2+c)
is set by specifying the values of “a”, “b”, and “c”.
The parameter “a” of the quadratic curve is set empirically, with the width of the peak taken into account. If peaks are seen in the positive Y direction, however, the value of “a” should be negative. The value of M is specified to satisfy W≦M, where W is the full width at half maximum of a peak having the greatest peak width among a plurality of peaks appearing in the measured curve. The range of the quadratic curve must be specified by setting the following:
b−M≦x≦b+M
The initial position (b, c) of the vertex of the quadratic curve is also specified.
In the second embodiment, “c” is set to zero (hereafter f(x)=a(x−b)2), but “c” is not confined to zero.
If peaks of the measured curve are seen in the negative Y direction, the value of “a” should be positive.
From the spectrum at each point in the horizontal axis region containing the figure, the measured value S in the range of (Xi−M, 0) to (Xi+M, 0) and the height a(x−b)2 of the figure in that position are obtained to calculate the difference Y between them:
Y={S−a(x−b)2}.
The minimum value Ymin1 of Y is calculated next.
The height fXi(Xi) of the figure at point (Xi, 0) is added to Ymin1 to obtain (see
Ymin1+fXi(Xi).
If peaks are seen in the negative Y direction,
Y={a(x−b)2−S}
is obtained, and the minimum value of Y should be set as Ymin1.
The figure is moved by “d” parallel to the X-axis within the range including point (Xi, 0).
From the spectrum at each point in the horizontal axis region including the figure, a measured value S in the range of (Xi+d−M, 0) to (Xi+d+M, 0) is compared with the height a(x−b)2 of the figure in that position to calculate the difference Y between them:
Y={S−a(x−b)2}.
The minimum value of Y is calculated as Ymin2.
The height fXi+d(Xi) of the figure at point (Xi, 0) and Ymin2 are added to obtain (see
Ymin2+fXi+d(Xi).
By repeating this step,
are calculated. The maximum value of those values is selected as P1, and a baseline point (Xi, P1) at point (Xi, 0) is specified.
The maximum value P1 corresponds to the vertex (Xi, 0) of the figure in
Ymin1+fxi(Xi)
becomes the maximum value P1.
If peaks of the measured curve are seen in the negative Y direction, the minimum value of
should be set as P1.
Point (Xi, 0) is moved in the X direction, the same operation is performed at point (X(i+1), 0), and the maximum value P2 is specified as a baseline point at point (X(i+1), 0).
By repeating this operation, baseline points P at points (Xi, 0) through (X(i+1), 0) to (X(i+n−1), 0), 0) are calculated. By connecting those points, a baseline BL is obtained (
If f(x) (=a(x−b)2+c) is greater than a specific point yi on the measured curve, the value of 1(xi)min [=yXi−f(x)] becomes negative. Even in that case, the maximum value of
is specified as L(xi), and a baseline point (xi, L(xi)) can be calculated normally in the same procedure.
Number | Date | Country | Kind |
---|---|---|---|
2009-129494 | May 2009 | JP | national |