JP2018025971A - Data smoothing method and program for implementing the same - Google Patents

Data smoothing method and program for implementing the same Download PDF

Info

Publication number
JP2018025971A
JP2018025971A JP2016157494A JP2016157494A JP2018025971A JP 2018025971 A JP2018025971 A JP 2018025971A JP 2016157494 A JP2016157494 A JP 2016157494A JP 2016157494 A JP2016157494 A JP 2016157494A JP 2018025971 A JP2018025971 A JP 2018025971A
Authority
JP
Japan
Prior art keywords
smoothing
data
standard error
width
data acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016157494A
Other languages
Japanese (ja)
Other versions
JP6680139B2 (en
Inventor
亨 原田
Toru Harada
亨 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shimadzu Corp
Original Assignee
Shimadzu Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP2016157494A priority Critical patent/JP6680139B2/en
Publication of JP2018025971A publication Critical patent/JP2018025971A/en
Application granted granted Critical
Publication of JP6680139B2 publication Critical patent/JP6680139B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a data smoothing method that offers better repeatability than conventional methods.SOLUTION: A data smoothing method of the present invention involves computing standard error of numerical data or data based thereon at each data acquisition point, and determining a smoothing width based on the standard error such that the greater the standard error of data acquisition points, the smaller the smoothing width. The numerical data or data based thereon at each data acquisition point is smoothed using the determined smoothing width.SELECTED DRAWING: Figure 1

Description

本発明は、例えば分析装置の検出器で取得される測定データなど、一定周期で取得されるデータの平滑化処理に関するものである。   The present invention relates to a smoothing process of data acquired at a constant period, such as measurement data acquired by a detector of an analyzer.

例えば液体クロマトグラフやガスクロマトグラフなどで用いられる検出器では、一定時間ごとの信号強度が数値データとして得られ、それをグラフ化することによって試料のクロマトグラムが得られる。検出器で得られる信号の数値データには種々のノイズが含まれているため、信号波形の傾向をより正確に把握するために、数値データを平滑化してノイズの影響を小さくする平滑化処理がなされることが多い(例えば、特許文献1参照。)。   For example, in a detector used in a liquid chromatograph, a gas chromatograph or the like, a signal intensity for each fixed time is obtained as numerical data, and a chromatogram of a sample is obtained by graphing it. Since the numerical data of the signal obtained by the detector contains various types of noise, a smoothing process that smoothes the numerical data and reduces the influence of noise is used to more accurately grasp the trend of the signal waveform. This is often done (for example, see Patent Document 1).

そのような離散データの平滑化処理では、1つの点の平滑値を、その点の両側近傍のデータと重み関数との畳み込み演算によって計算する方法がよく用いられる。重み関数には、単純平均する関数やガウス関数など様々な関数が存在する。同種の方法として、近傍データを多項式で近似し平滑値を求める方法(Savitzky-Golay法)や適応化平滑化法などがある。   In such smoothing processing of discrete data, a method is often used in which a smooth value of one point is calculated by a convolution operation between data near both sides of the point and a weight function. There are various weighting functions such as a simple averaging function and a Gaussian function. As a similar method, there are a method of approximating neighboring data with a polynomial to obtain a smooth value (Savitzky-Golay method) and an adaptive smoothing method.

特開2006−242750号公報JP 2006-242750 A

平滑化に用いる両側近傍のデータ数(以下、平滑化幅という。)は、データがベースラインとピークからなるような場合、ベースライン付近のノイズ成分を抑制するのに十分な平滑化幅をもたせる必要がある。通常、平滑化幅は平滑化対象領域で固定であるため、平滑化幅に近い幅をもつピークや、平滑化幅より狭い幅をもつピーク部分のデータに対して平滑化処理を行なうと、ピーク頂点付近のデータに歪み(元データより値が小さくなる)が発生する。この歪みは、ピーク高さやピーク面積の計算に影響を与えるといったことのほか、ピークが近接する場合にそれらのピーク同士が分離しなくなる可能性がある。すなわち、従来の平滑化方法では、データの種類によってもデータの再現性に問題を生じることがあった。   The number of data near the both sides used for smoothing (hereinafter referred to as smoothing width) has a smoothing width sufficient to suppress noise components near the baseline when the data consists of a baseline and a peak. There is a need. Since the smoothing width is usually fixed in the smoothing target area, if smoothing processing is performed on the peak data having a width close to the smoothing width or the peak portion having a width narrower than the smoothing width, Distortion (a value smaller than the original data) occurs in the data near the vertex. In addition to affecting the calculation of the peak height and peak area, this distortion may not separate the peaks when the peaks are close to each other. That is, with the conventional smoothing method, there may be a problem in data reproducibility depending on the type of data.

そこで、本発明は、従来の方法よりも再現性が向上したデータ平滑化方法を提供することを目的とするものである。   Therefore, an object of the present invention is to provide a data smoothing method with improved reproducibility compared with a conventional method.

本発明に係るデータ平滑化方法は、複数のデータ取得ポイントで取得された数値データ又はそれに基づくデータを、各数値データが取得されたデータ取得ポイントを含む平滑化幅内にあるデータ取得ポイントの数値データ又はそれに基づくデータを用いて平滑化するデータ平滑化方法である。
このデータ平滑化方法は、
前記各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差を算出する標準誤差算出ステップと、
前記標準誤差算出ステップの後、数値データ又はそれに基づくデータの標準誤差が大きいデータ取得ポイントほど前記平滑化幅が狭くなるように、前記各データ取得ポイントの前記平滑化幅を前記各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差に基づいて決定する平滑化幅決定ステップと、
前記平滑化幅決定ステップで決定した平滑化幅内にあるデータ取得ポイントの数値データ又はそれに基づくデータを用いて、前記各データ取得ポイントの数値データ又はそれに基づくデータの平滑化処理を行なう平滑化ステップと、を備えている。
In the data smoothing method according to the present invention, the numerical data acquired at a plurality of data acquisition points or the data based thereon is the numerical value of the data acquisition points within the smoothing width including the data acquisition point at which each numerical data is acquired. This is a data smoothing method for smoothing using data or data based thereon.
This data smoothing method is
A standard error calculating step for calculating a standard error of the numerical data of each data acquisition point or data based thereon; and
After the standard error calculation step, the smoothing width of each data acquisition point is set so that the smoothing width becomes narrower as the data acquisition point has a larger standard error of numerical data or data based thereon. A smoothing width determining step for determining based on the standard error of the numerical data or data based thereon;
A smoothing step of performing a smoothing process of the numerical data of each data acquisition point or data based thereon using the numerical data of the data acquisition point within the smoothing width determined in the smoothing width determination step or data based thereon And.

「データ取得ポイント」とは、数値データを取得した点を意味し、例えば一定時間ごとに取得されたデータであれば、数値データを取得した各時間を意味する。   The “data acquisition point” means a point at which numerical data is acquired. For example, in the case of data acquired at regular intervals, it means each time at which numerical data is acquired.

「標準誤差」の詳細については後述するが、各データ取得ポイントの数値データ又はそれに基づくデータの「標準誤差」を求めることにより、そのデータ取得ポイントのデータの変動の大きさ(データの傾きの変化の大きさ)を知ることができる。したがって、標準誤差を求めることで、そのデータ系列におけるベースライン部分とピーク等のデータの傾きの変化が大きい(二次微分の絶対値が大きい)領域とを数値によって判断することが可能となる。   The details of the “standard error” will be described later, but by obtaining the “standard error” of the numerical data of each data acquisition point or the data based on it, the magnitude of the fluctuation of the data at that data acquisition point (change in the slope of the data ). Therefore, by obtaining the standard error, it is possible to numerically determine the base line portion in the data series and the region where the change in the slope of data such as a peak is large (the absolute value of the second derivative is large).

本発明のデータ平滑化方法は、前記平滑化幅決定ステップで、前記標準誤差算出ステップで算出した標準誤差と予め用意された平滑化幅テーブルに基づいて前記各データ取得ポイントの前記平滑化幅を決定するようにしてもよい。そうすれば、平滑化幅の決定が容易である。   In the data smoothing method of the present invention, in the smoothing width determination step, the smoothing width of each data acquisition point is calculated based on the standard error calculated in the standard error calculation step and a smoothing width table prepared in advance. It may be determined. Then, it is easy to determine the smoothing width.

さらに、前記標準誤差算出ステップの後で前記平滑化幅決定ステップの前に、前記標準誤差算出ステップで算出した標準誤差を所定の演算方法によって正規化する正規化ステップを備え、前記平滑化幅決定ステップで、前記正規化ステップで正規化した標準誤差と予め用意された平滑化幅テーブルに基づいて前記各データ取得ポイントの前記平滑化幅を決定するようにしてもよい。   And a normalizing step for normalizing the standard error calculated in the standard error calculating step by a predetermined calculation method after the standard error calculating step and before the smoothing width determining step. In the step, the smoothing width of each data acquisition point may be determined based on the standard error normalized in the normalizing step and a smoothing width table prepared in advance.

本発明に係るプログラムは、コンピュータで実行されることにより上記のデータ平滑化方法を実施するように構成されたものである。   The program according to the present invention is configured to execute the above-described data smoothing method by being executed by a computer.

本発明に係るデータ平滑化方法では、各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差を算出し、その標準誤差が大きいデータ取得ポイントほど平滑化幅が狭くなるように標準誤差に基づいて平滑化幅を決定するので、ベースライン部分等のようにデータの傾きの変化が小さい(二次微分の絶対値が小さい)領域では平滑化幅が大きく、ピーク部分等のようにデータの傾きの変化が大きい(二次微分の絶対値が大きい)領域では平滑化幅が小さくなる。これにより、元のデータに近い平滑化データを得ることが可能になり、従来の平滑化処理よりも再現性が向上する。   In the data smoothing method according to the present invention, the standard error of the numerical data of each data acquisition point or data based thereon is calculated, and based on the standard error so that the smoothing width becomes narrower as the data acquisition point has a larger standard error. Since the smoothing width is determined, the smoothing width is large in areas where the change in the slope of the data is small (the absolute value of the second derivative is small), such as in the baseline portion, and the slope of the data, such as in the peak portion, is large. In the region where the change is large (the absolute value of the second derivative is large), the smoothing width is small. Thereby, it becomes possible to obtain smoothed data close to the original data, and the reproducibility is improved as compared with the conventional smoothing process.

本発明に係るプログラムは、上記の平滑化方法を実行するように構成されているので、再現性の高い平滑化処理をコンピュータ上で実行することができる。   Since the program according to the present invention is configured to execute the smoothing method described above, smoothing processing with high reproducibility can be executed on a computer.

データ平滑化方法の一実施例を示すフローチャートである。It is a flowchart which shows one Example of the data smoothing method. 平滑化処理を行なう前の信号波形の一例を示すグラフである。It is a graph which shows an example of the signal waveform before performing a smoothing process. 同信号波形の各数値データの標準誤差の波形を元の波形と重ねて示すグラフである。It is a graph which shows the waveform of the standard error of each numerical data of the same signal waveform superimposed on the original waveform. 同信号波形の各数値データの平滑化処理を行なった後の波形を元の波形と重ねて示すグラフである。It is a graph which shows the waveform after performing the smoothing process of each numerical data of the same signal waveform, and the original waveform. 平滑化処理を行なう前の信号波形の一例として融解曲線の一次微分値の波形と各一次微分値の標準誤差の波形を重ねて示すグラフである。It is a graph which shows the waveform of the primary differential value of a melting curve, and the waveform of the standard error of each primary differential value as an example of the signal waveform before performing a smoothing process. 同一次微分値の平滑化処理を行なった波形を示すグラフである。It is a graph which shows the waveform which performed the smoothing process of the same-order differential value. 平滑化プログラムが導入されたコンピュータの構成の一例を示すブロック図である。It is a block diagram which shows an example of a structure of the computer by which the smoothing program was introduce | transduced.

以下、本発明に係るデータ平滑化方法の一実施例、及びその方法を実行するプログラムについて説明する。   Hereinafter, an embodiment of a data smoothing method according to the present invention and a program for executing the method will be described.

まず、図1のフローチャートを用いて、この実施例の平滑化方法の概要について説明する。   First, the outline of the smoothing method of this embodiment will be described with reference to the flowchart of FIG.

分析装置の検出器から一定周期ごとの各データ取得ポイントで取得された数値データ又はそれに基づくデータの標準誤差を算出する。標準誤差は、例えば回帰直線に対する残差平方和を自由度で除し、平方根をとることによって求めることができる。数値データから計算された回帰直線がY=ax+bで表わされるとすると、標準誤差SEは、次式(1)により求めることができる。

Figure 2018025971
ここで、yiはデータ取得ポイントiにおける数値データ、Yiはデータ取得ポイントiにおける回帰直線による予測値、nは予め決められた標準誤差計算幅である。標準誤差計算幅とは、そのデータ取得ポイントの±Aの範囲内のデータ取得ポイントの数値データを用いて標準誤差の計算を行なうということを意味する。すなわち、n=2A+1と表わすことができる。したがって、データ取得ポイントiの標準誤差を計算するためには、(i−A)から(i+A)までのデータ取得ポイントの数値データが用いられる。 The standard error of the numerical data acquired at each data acquisition point for every fixed period from the detector of the analyzer or data based thereon is calculated. The standard error can be obtained, for example, by dividing the residual sum of squares with respect to the regression line by the degree of freedom and taking the square root. If the regression line calculated from the numerical data is represented by Y = ax + b, the standard error SE can be obtained by the following equation (1).
Figure 2018025971
Here, y i is numerical data at the data acquisition point i, Y i is a predicted value by a regression line at the data acquisition point i, and n is a predetermined standard error calculation width. The standard error calculation width means that the standard error is calculated using the numerical data of the data acquisition point within the range of ± A of the data acquisition point. That is, it can be expressed as n = 2A + 1. Therefore, in order to calculate the standard error of the data acquisition point i, the numerical data of the data acquisition points from (i−A) to (i + A) is used.

各データ取得ポイントの標準誤差を算出した後、その標準誤差の正規化を行なう。標準誤差の正規化とは、予め用意された平滑化幅決定用のテーブルに標準誤差を適用して平滑化幅を決定することができるように、標準誤差を予め用意された係数等を用いて所定のスケールに補正することである。そのようにして正規化された標準誤差を、以下において「正規化標準誤差」と称する。   After calculating the standard error of each data acquisition point, the standard error is normalized. The standard error normalization is performed by using a coefficient or the like prepared in advance so that the smoothing width can be determined by applying the standard error to a table for smoothing width determination prepared in advance. It is to correct to a predetermined scale. The standard error thus normalized is hereinafter referred to as “normalized standard error”.

標準誤差を正規化した後、後に示す表2や表3のような平滑化幅決定用のテーブル(以下、平滑化幅テーブルという。)にその正規化標準誤差を適用して、各データ取得ポイントの平滑化処理に適用する平滑化幅を決定する。平滑化幅とは、データ取得ポイントiの平滑化処理を実行するために、そのデータ取得ポイントiの±Bの範囲内、すなわち(i−B)から(i+B)までのデータ取得ポイントの数値データを用いることを意味する。以下において、平滑化幅の前後幅を示す「B」を平滑化半幅と称する。   After normalizing the standard error, the normalized standard error is applied to a smoothing width determination table (hereinafter referred to as a smoothing width table) as shown in Tables 2 and 3 below, and each data acquisition point The smoothing width to be applied to the smoothing process is determined. The smoothing width is the numerical data of the data acquisition points within the range of ± B of the data acquisition point i, that is, from (i−B) to (i + B) in order to execute the smoothing process of the data acquisition point i. Means to use. Hereinafter, “B” indicating the width before and after the smoothing width is referred to as a smoothing half width.

表2や表3を見れば明らかなように、標準誤差(正規化標準誤差)が大きいほど平滑化幅は小さく設定されるようになっている。標準誤差が大きいデータ取得ポイントというのは、その前後のデータ取得ポイントに対して数値データの傾きの変動幅が大きいため、そのようなデータ取得ポイントの数値データに対して狭い平滑化幅で平滑化処理を行なうことによって、平滑化されたデータとして元のデータに近い値が得られる。   As apparent from Tables 2 and 3, the smoothing width is set smaller as the standard error (normalized standard error) is larger. A data acquisition point with a large standard error has a large fluctuation range of the slope of numerical data with respect to the data acquisition points before and after that, and smoothing with a smoothing width narrower than the numerical data of such data acquisition points By performing the processing, a value close to the original data is obtained as the smoothed data.

上記のように平滑化幅を決定した後、その平滑化幅を用いて各データ取得ポイントの数値データの平滑化処理を行なう。平滑化処理の方法として種々のものがあり、そのいずれを用いてもよいが、その一例としてSavitzky-Golay法が挙げられる。Savitzky-Golay法による平滑化では、次の表1に示された係数を用いて平滑化の計算を行なう。   After determining the smoothing width as described above, smoothing processing is performed on the numerical data at each data acquisition point using the smoothing width. There are various smoothing methods, any of which may be used, but one example is the Savitzky-Golay method. In the smoothing by the Savitzky-Golay method, the smoothing calculation is performed using the coefficients shown in the following Table 1.

Figure 2018025971
Figure 2018025971

表1において、最上段の数値は平滑化幅(Width)であり、2段目の数値は平滑化半幅(Half width)である。3段目以下の数値は平滑化の計算に用いる係数を示している。例えば平滑化幅が7と決定されたデータ取得ポイントに対する平滑化では、左から4列目に列挙された係数が用いられ、次式(2)が形成される。この式(2)を用いて数値データの平滑化を行ない、平滑化後データY’を算出する。

Figure 2018025971
In Table 1, the uppermost numerical value is the smoothing width (Width), and the second numerical value is the smoothing half width (Half width). Numerical values in the third and lower stages indicate coefficients used for smoothing calculation. For example, in the smoothing for the data acquisition point whose smoothing width is determined to be 7, the coefficients listed in the fourth column from the left are used, and the following expression (2) is formed. Using this equation (2), the numerical data is smoothed, and the smoothed data Y ′ i is calculated.
Figure 2018025971

[実施例1]
分析装置の検出器で得られた図2の信号値波形の平滑化処理を上記の平滑化方法により行なった例について説明する。
[Example 1]
An example in which the smoothing process of the signal value waveform of FIG. 2 obtained by the detector of the analyzer is performed by the above smoothing method will be described.

(標準誤差の算出)
まず、検出器で得られた元の数値データの標準誤差SEを算出した。ここでの標準誤差SEは、近傍2A+1点の回帰直線による予測値に対する標準誤差であり、上述の式(1)を用いて算出する。標準誤差SEを元の数値データと重ねて表示すると図3のようになる。図3からわかるように、各データ取得ポイントにおける標準誤差SEは、前後のデータ取得ポイントの数値データに対する数値データの傾きの変化量を表わしている。
(Calculation of standard error)
First, the standard error SE of the original numerical data obtained by the detector was calculated. The standard error SE here is a standard error with respect to a predicted value based on a regression line of 2A + 1 points in the vicinity, and is calculated using the above equation (1). When the standard error SE is displayed superimposed on the original numerical data, it is as shown in FIG. As can be seen from FIG. 3, the standard error SE at each data acquisition point represents the amount of change in the slope of the numerical data relative to the numerical data at the preceding and subsequent data acquisition points.

(標準誤差の正規化)
各データ取得ポイントの数値データの標準誤差SEを、予め用意した表2の平滑化幅テーブルに適用することができるように正規化し、正規化標準誤差SE’を求めた。
(Standard error normalization)
The standard error SE of the numerical data at each data acquisition point was normalized so that it could be applied to the smoothing width table of Table 2 prepared in advance, and the normalized standard error SE ′ was obtained.

(平滑化幅の決定)
その後、予め決められたベースライン領域における正規化標準誤差SE’の標準偏差Sと平均Mを求めた。この実施例では、標準偏差Sと平均Mを平滑化幅の決定の基準として用いている。表2の平滑化幅テーブルに示されたレベルの中から、各正規化標準誤差SE’が当てはまるレベルを抽出し、平滑化半幅を決定した。ここで、Cは平滑化幅調整レベルであり、平滑化半幅Bよりも小さい値である。dは平滑化幅調整定数であり、0よりも大きい値である。

Figure 2018025971
(Determination of smoothing width)
Thereafter, a standard deviation S and an average M of the normalized standard error SE ′ in a predetermined baseline region were obtained. In this embodiment, the standard deviation S and the average M are used as criteria for determining the smoothing width. From the levels shown in the smoothing width table of Table 2, the level to which each normalized standard error SE ′ applies is extracted, and the smoothing half width is determined. Here, C is a smoothing width adjustment level, which is a value smaller than the smoothing half width B. d is a smoothing width adjustment constant, and is a value larger than zero.
Figure 2018025971

(平滑化処理)
正規化標準誤差SE’と上記表2に基づいて決定された平滑化半幅を用いて、上述のSavitzky-Golay法により各データ取得ポイントの数値データの平滑化を行なった。その結果が図4である。この図4は図2に示された波形から特定ピークの頂点部分を抜き出して拡大したものであり、元の信号値波形、標準誤差に基づいて平滑化幅を調整して平滑化した波形、平滑化幅を21点に固定して平滑化した波形を重ねて示している。
(Smoothing process)
Using the normalized standard error SE ′ and the smoothing half width determined based on Table 2 above, the numerical data at each data acquisition point was smoothed by the Savitzky-Golay method described above. The result is shown in FIG. FIG. 4 is an enlarged view of the peak portion of the specific peak extracted from the waveform shown in FIG. 2. The original signal value waveform, the waveform smoothed by adjusting the smoothing width based on the standard error, the smoothing Waveforms obtained by smoothing with a fixed width fixed at 21 points are shown superimposed.

図4から明らかなように、平滑化幅を21点に固定して平滑化処理を行なうと、ピーク波形の高さが元の信号値波形よりも低くなっているが、標準誤差を用いて平滑化幅を調整することによりピーク波形の高さの低下が抑制され、元のピーク波形に近い波形を得ることができている。   As is clear from FIG. 4, when the smoothing width is fixed at 21 points and the smoothing process is performed, the peak waveform height is lower than the original signal value waveform, but smoothing is performed using the standard error. By adjusting the width, the reduction of the peak waveform height is suppressed, and a waveform close to the original peak waveform can be obtained.

[実施例2]
ある物質について測定された融解曲線を平滑化処理した実施例について説明する。
[Example 2]
An example in which a melting curve measured for a substance is smoothed will be described.

(標準誤差の算出)
図5はある物質について測定された融解曲線の一次微分値の符号を反転した値(元の数値データに基づくデータ)の波形と、その標準誤差SEの波形を重ねて示している。ここでの標準誤差SEは、各データ取得ポイントの近傍2A+1点の回帰直線による予測値に対する標準誤差であり、上述の式(1)を用いて算出した。
(Calculation of standard error)
FIG. 5 shows the waveform of the value obtained by inverting the sign of the first derivative of the melting curve measured for a certain substance (data based on the original numerical data) and the waveform of its standard error SE. The standard error SE here is a standard error with respect to a predicted value based on a regression line of 2A + 1 points in the vicinity of each data acquisition point, and was calculated using the above equation (1).

(標準誤差の正規化)
各データ取得ポイントの数値データの標準誤差SEを、予め用意した表3の平滑化幅テーブルに適用することができるように正規化し、正規化標準誤差SE’を求めた。
(Standard error normalization)
The standard error SE of the numerical data at each data acquisition point was normalized so that it could be applied to the smoothing width table of Table 3 prepared in advance, and the normalized standard error SE ′ was obtained.

(平滑化幅の決定)
表3の平滑化幅テーブルに示されたレベルの中から、各正規化標準誤差SE’が当てはまるレベルを抽出し、平滑化半幅を決定した。ここで、Cは平滑化幅調整レベルであり、平滑化半幅Bよりも小さい値である。dは平滑化幅調整定数であり、(−1/C)よりも大きく(1/C)よりも小さい値である。

Figure 2018025971
(Determination of smoothing width)
From the levels shown in the smoothing width table of Table 3, the level to which each normalized standard error SE ′ applies is extracted, and the smoothing half width is determined. Here, C is a smoothing width adjustment level, which is a value smaller than the smoothing half width B. d is a smoothing width adjustment constant, which is larger than (−1 / C) and smaller than (1 / C).
Figure 2018025971

(平滑化処理)
正規化標準誤差SE’と上記表3に基づいて決定された平滑化半幅を用いて、上述のSavitzky-Golay法により各データ取得ポイントの数値データの平滑化を行なった。その結果が図6である。この図6では、標準誤差に基づいて平滑化幅を調整して平滑化した波形、平滑化幅を21点に固定して平滑化した波形を重ねて示している。
(Smoothing process)
Using the normalized standard error SE ′ and the smoothing half width determined based on Table 3 above, the numerical data at each data acquisition point was smoothed by the Savitzky-Golay method described above. The result is shown in FIG. In FIG. 6, a waveform smoothed by adjusting the smoothing width based on the standard error and a waveform smoothed by fixing the smoothing width to 21 points are superimposed.

図6から明らかなように、標準誤差を用いて平滑化幅を調整することにより、平滑化幅を21点に固定して平滑化処理を行なった場合よりも、ピーク部分では頂点高さが高くなり、ピークとピークの間の谷部では凹みが大きくなる。したがって、標準誤差を用いて平滑化幅を調整することで、平滑化幅を21点に固定した場合よりも、隣接するピークの分離がよくなる。   As is clear from FIG. 6, the peak height is higher at the peak portion than when the smoothing process is performed by fixing the smoothing width to 21 points by adjusting the smoothing width using the standard error. Therefore, the dent becomes large in the valley between the peaks. Therefore, by adjusting the smoothing width using the standard error, separation of adjacent peaks is improved as compared with the case where the smoothing width is fixed at 21 points.

ここで、以上において説明した実施例では、平滑化幅を決定する前に標準誤差SEを正規化して正規化標準誤差SE’を求め、その正規化標準誤差SE’に基づいて平滑化幅を決定しているが、本発明はこれに限定されるものではなく、標準誤差SEに基づいて平滑化幅を決定することができるように平滑化幅テーブルを用意しておき、その平滑化幅テーブルに標準誤差SEを適用することで平滑化幅を決定してもよい。   In the embodiment described above, the standard error SE is normalized to determine the normalized standard error SE ′ before the smoothing width is determined, and the smoothing width is determined based on the normalized standard error SE ′. However, the present invention is not limited to this, and a smoothing width table is prepared so that the smoothing width can be determined based on the standard error SE. The smoothing width may be determined by applying the standard error SE.

次に、図7を用いて、上述の平滑化方法を実行する平滑化プログラムが導入されたコンピュータの一実施例について説明する。   Next, an example of a computer in which a smoothing program for executing the above-described smoothing method is introduced will be described with reference to FIG.

分析装置2に演算処理装置4が電気的に接続されている。演算処理装置4は、例えば汎用のパーソナルコンピュータ(PC)によって実現されるが、分析装置2専用のコンピュータであってもよい。演算処理装置4には、分析装置2において一定周期で取得された検出器信号が数値データとして入力される。演算処理装置4内には、分析装置2から出力された数値データの平滑化を実行するための平滑化プログラム6が格納されている。   An arithmetic processing unit 4 is electrically connected to the analyzer 2. The arithmetic processing device 4 is realized by, for example, a general-purpose personal computer (PC), but may be a computer dedicated to the analysis device 2. A detector signal acquired at a constant period in the analysis device 2 is input to the arithmetic processing device 4 as numerical data. The arithmetic processing unit 4 stores a smoothing program 6 for performing smoothing of numerical data output from the analysis unit 2.

平滑化プログラム6は、標準誤差算出部8、標準誤差正規化部10、平滑化幅決定部12及び平滑化処理部14によって構成されている。演算処理装置4は、予め作成された平滑化幅テーブル(例えば、表2や表3)を保持する平滑化幅テーブル保持部16を備えている。平滑化幅テーブル保持部16は演算処理装置4内に設けられたデータ記憶装置の一領域によって実現される。   The smoothing program 6 includes a standard error calculation unit 8, a standard error normalization unit 10, a smoothing width determination unit 12, and a smoothing processing unit 14. The arithmetic processing unit 4 includes a smoothed width table holding unit 16 that holds a smoothed width table (for example, Table 2 or Table 3) created in advance. The smoothing width table holding unit 16 is realized by an area of the data storage device provided in the arithmetic processing device 4.

標準誤差算出部8は、各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差SEを、例えば上述の式(1)を用いて算出するように構成されている。   The standard error calculation unit 8 is configured to calculate the numerical data SE of each data acquisition point or the standard error SE of the data based thereon using, for example, the above equation (1).

標準誤差正規化部10は、標準誤差SEを平滑化幅テーブルに適用することができるように正規化して正規化標準誤差SE’を求めるように構成されている。なお、この標準誤差正規化部10は必須の構成要件ではなく、平滑化幅の決定に標準誤差SEそのものを用いる場合には不要である。   The standard error normalization unit 10 is configured to normalize the standard error SE so that the standard error SE can be applied to the smoothing width table to obtain the normalized standard error SE '. The standard error normalization unit 10 is not an essential component, and is not necessary when the standard error SE itself is used to determine the smoothing width.

平滑化幅決定部12は、正規化標準誤差SE’又は標準誤差SEを平滑化幅テーブルに適用することにより平滑化幅を決定するように構成されている。   The smoothing width determination unit 12 is configured to determine the smoothing width by applying the normalized standard error SE ′ or the standard error SE to the smoothing width table.

平滑化処理部14は、平滑化幅決定部12により決定された平滑化幅を用いて、例えばSavitzky-Golay法などの平滑化処理方法を用いて各データ取得ポイントの数値データ又はそれに基づくデータの平滑化処理を行なうように構成されている。   The smoothing processing unit 14 uses the smoothing width determined by the smoothing width determining unit 12 and uses, for example, a smoothing processing method such as the Savitzky-Golay method to calculate numerical data at each data acquisition point or data based on the data. A smoothing process is performed.

2 分析装置
4 演算処理装置
6 平滑化プログラム
8 標準誤差算出部
10 標準誤差正規化部
12 平滑化幅決定部
14 平滑化処理部
16 平滑化幅テーブル保持部
2 Analyzing device 4 Arithmetic processing device 6 Smoothing program 8 Standard error calculation unit 10 Standard error normalization unit 12 Smoothing width determination unit 14 Smoothing processing unit 16 Smoothing width table holding unit

Claims (4)

複数のデータ取得ポイントで取得された数値データ又はそれに基づくデータを、各数値データが取得されたデータ取得ポイントを含む平滑化幅内にあるデータ取得ポイントの数値データ又はそれに基づくデータを用いて平滑化するデータ平滑化方法であって、
前記各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差を算出する標準誤差算出ステップと、
前記標準誤差算出ステップの後、数値データ又はそれに基づくデータの標準誤差が大きいデータ取得ポイントほど前記平滑化幅が狭くなるように、前記各データ取得ポイントの前記平滑化幅を前記各データ取得ポイントの数値データ又はそれに基づくデータの標準誤差に基づいて決定する平滑化幅決定ステップと、
前記平滑化幅決定ステップで決定した平滑化幅内にあるデータ取得ポイントの数値データ又はそれに基づくデータを用いて、前記各データ取得ポイントの数値データ又はそれに基づくデータの平滑化処理を行なう平滑化ステップと、を備えたデータ平滑化方法。
Smoothing numerical data acquired at multiple data acquisition points or data based on it using numerical data of data acquisition points within the smoothing width including the data acquisition points from which each numerical data was acquired or data based on it A data smoothing method for
A standard error calculating step for calculating a standard error of the numerical data of each data acquisition point or data based thereon; and
After the standard error calculation step, the smoothing width of each data acquisition point is set so that the smoothing width becomes narrower as the data acquisition point has a larger standard error of numerical data or data based thereon. A smoothing width determining step for determining based on the standard error of the numerical data or data based thereon;
A smoothing step of performing a smoothing process of the numerical data of each data acquisition point or data based thereon using the numerical data of the data acquisition point within the smoothing width determined in the smoothing width determination step or data based thereon And a data smoothing method.
前記平滑化幅決定ステップでは、前記標準誤差算出ステップで算出した前記標準誤差と予め用意された平滑化幅テーブルに基づいて前記各データ取得ポイントの前記平滑化幅を決定する請求項1に記載のデータ平滑化方法。   2. The smoothing width determination step according to claim 1, wherein the smoothing width of each data acquisition point is determined based on the standard error calculated in the standard error calculation step and a smoothing width table prepared in advance. Data smoothing method. 前記標準誤差算出ステップの後で前記平滑化幅決定ステップの前に、前記標準誤差算出ステップで算出した標準誤差を所定の演算方法によって正規化する正規化ステップをさらに備え、
前記平滑化幅決定ステップでは、前記正規化ステップで正規化した標準誤差と予め用意された平滑化幅テーブルに基づいて前記各データ取得ポイントの前記平滑化幅を決定する請求項2に記載のデータ平滑化方法。
A normalization step of normalizing the standard error calculated in the standard error calculation step by a predetermined calculation method after the standard error calculation step and before the smoothing width determination step;
The data according to claim 2, wherein in the smoothing width determination step, the smoothing width of each data acquisition point is determined based on the standard error normalized in the normalization step and a smoothing width table prepared in advance. Smoothing method.
コンピュータで実行されることにより請求項1から3のいずれか一項に記載のデータ平滑化方法を実施するように構成されたプログラム。   A program configured to execute the data smoothing method according to any one of claims 1 to 3 by being executed by a computer.
JP2016157494A 2016-08-10 2016-08-10 Data smoothing method and program for executing the method Active JP6680139B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016157494A JP6680139B2 (en) 2016-08-10 2016-08-10 Data smoothing method and program for executing the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016157494A JP6680139B2 (en) 2016-08-10 2016-08-10 Data smoothing method and program for executing the method

Publications (2)

Publication Number Publication Date
JP2018025971A true JP2018025971A (en) 2018-02-15
JP6680139B2 JP6680139B2 (en) 2020-04-15

Family

ID=61193849

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016157494A Active JP6680139B2 (en) 2016-08-10 2016-08-10 Data smoothing method and program for executing the method

Country Status (1)

Country Link
JP (1) JP6680139B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0469541A (en) * 1990-07-10 1992-03-04 Anritsu Corp Smoothing processing method, noise removal device by smoothing processing, light pulse testing device using same
JPH05242267A (en) * 1992-03-03 1993-09-21 Mitsubishi Electric Corp Data smoothing processing method
JPH11153588A (en) * 1997-09-17 1999-06-08 Hewlett Packard Co <Hp> Signal analysis method and program-recording medium and data-analyzing system
JP2009513985A (en) * 2005-10-25 2009-04-02 ウオーターズ・インベストメンツ・リミテツド Baseline modeling in chromatography

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0469541A (en) * 1990-07-10 1992-03-04 Anritsu Corp Smoothing processing method, noise removal device by smoothing processing, light pulse testing device using same
JPH05242267A (en) * 1992-03-03 1993-09-21 Mitsubishi Electric Corp Data smoothing processing method
JPH11153588A (en) * 1997-09-17 1999-06-08 Hewlett Packard Co <Hp> Signal analysis method and program-recording medium and data-analyzing system
JP2009513985A (en) * 2005-10-25 2009-04-02 ウオーターズ・インベストメンツ・リミテツド Baseline modeling in chromatography

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"FTIRでのデータ処理のアルゴリズムについて", FTIR TALK LETTER VOL.10(2008), JPN6019046555, 2008, JP, pages 1 - 5, ISSN: 0004164063 *
南 茂夫、他5名: "演算処理による雑音除去法", 科学計測のための波形データ処理, vol. 第17版, JPN6019046550, 20 December 1998 (1998-12-20), JP, pages 84 - 110, ISSN: 0004164061 *
原 精一郎: "フィルタリング2・雑音除去", 計測情報の数理処理, JPN6019046553, 21 November 2003 (2003-11-21), JP, pages 1 - 5, ISSN: 0004164062 *
秋月 影雄、他2名: "Blackman-Tukey法によるパワスペクトル密度の推定", C言語/ディジタル信号処理, vol. 初版, JPN6019046558, 20 July 1989 (1989-07-20), JP, pages 63 - 68, ISSN: 0004164064 *

Also Published As

Publication number Publication date
JP6680139B2 (en) 2020-04-15

Similar Documents

Publication Publication Date Title
JP6094684B2 (en) Method and apparatus for detecting peak end point in waveform
US11499950B2 (en) Peak detection method and data processing device
WO2015029254A1 (en) Data processing device for chromatograph, and method
WO2015132861A1 (en) Data processing device and program for chromatograph mass spectrometer
WO2012039061A1 (en) Data processing method and device
JP5712255B2 (en) Frequency measuring method and frequency measuring apparatus by Fourier analysis
US9971936B2 (en) Adaptive signal detection and synthesis on trace data
JP6680139B2 (en) Data smoothing method and program for executing the method
JP6256162B2 (en) Signal waveform data processing device
US20190302070A1 (en) Chromatographic Data System, Processing Apparatus, Chromatographic Data System Processing Method, and Chromatograph
JP2006317198A (en) Data processor for analyzer
Li et al. A novel signal enhancement method for overlapped peaks with noise immunity
CN110455902B (en) Method for rapidly calibrating multiple standard samples in environment detection
JP5363050B2 (en) Baseline setting method
EP3486641B1 (en) Data processing apparatus and data processing method
US20200265109A1 (en) Data smoothing method, and program for performing the method
Korifi et al. Comparative study of the alignment method on experimental and simulated chromatographic data
JP6048373B2 (en) Chromatograph data processing apparatus and data processing method
JP6610782B2 (en) Peak detection method and data processing apparatus
JP2007020594A (en) Apparatus for measuring brain function
JP2020153864A (en) Chromatograph data processing device, data processing method and chromatography
US20230280318A1 (en) Learning data producing method, waveform analysis device, waveform analysis method, and recording medium
JP2005091024A (en) Quantity determination method and spectrum measuring instrument
US20220107294A1 (en) Waveform processing device for chromatogram and waveform processing method for chromatogram
JP2023062596A (en) Peak area display device and method, and peak area calculation device and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200129

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200302

R151 Written notification of patent or utility model registration

Ref document number: 6680139

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151