FILTERING APPARATUS, METHOD, PROGRAM, AND RECORDING MEDIUM
20230018890 · 2023-01-19
Assignee
Inventors
Cpc classification
A61B5/243
HUMAN NECESSITIES
A61B5/725
HUMAN NECESSITIES
International classification
Abstract
According to the present invention, a filtering apparatus includes an FIR filter that has multipliers arranged to multiply input digital data having their respective different input time points by respective variable tap coefficients. The variable tap coefficients are each switched from a first tap coefficient to a second tap coefficient sequentially for the input digital data from later to earlier input time points. The first tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a first frequency. The second tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a second frequency different from the first frequency.
Claims
1. A filtering apparatus comprising an FIR filter that has multipliers arranged to multiply input digital data having their respective different input time points by respective variable tap coefficients, wherein the variable tap coefficients are each switched from a first tap coefficient to a second tap coefficient sequentially for the input digital data from later to earlier input time points, the first tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a first frequency, and the second tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a second frequency different from the first frequency.
2. The filtering apparatus according to claim 1, wherein the variable tap coefficients are switched for each multiplication by one of the multipliers.
3. The filtering apparatus according to claim 2, further comprising a delay summing section arranged to sum outputs from the multipliers while delaying to the input time point of the latest input digital data.
4. The filtering apparatus according to claim 3, wherein the variable tap coefficients are recorded in the respective multipliers, and the variable tap coefficients recorded in the respective multipliers are each switched completely from the first tap coefficient to the second tap coefficient at a predetermined time point.
5. The filtering apparatus according to claim 2, further comprising: a delaying section arranged to delay inputs into the multipliers to the input time point of the latest input digital data; and a summing section arranged to sum outputs from the multipliers.
6. The filtering apparatus according to claim 1, wherein the first frequency is lower than the second frequency.
7. The filtering apparatus according to claim 6, wherein the input digital data include data representing magnetocardiographic P-wave and QRS-wave.
8. The filtering apparatus according to claim 7, wherein the variable tap coefficients start to be switched at the time point when the QRS-wave starts in the magnetocardiographic waveform.
9. The filtering apparatus according to claim 8, wherein the input digital data are acquired by a plurality of magnetocardiographic sensors, and the QRS-wave starts at the time point when the square average of the differences between outputs from the plurality of magnetocardiographic sensors and the average value thereof reaches the first local minimum value in the vicinity of the QRS-wave.
10. The filtering apparatus according to claim 1, wherein the first frequency is higher than the second frequency.
11. The filtering apparatus according to claim 10, wherein the input digital data include data representing magnetocardiographic P-wave, QRS-wave, and T-wave.
12. The filtering apparatus according to claim 11, wherein the variable tap coefficients start to be switched at the time point when the QRS-wave ends in the magnetocardiographic waveform.
13. The filtering apparatus according to claim 12, wherein the input digital data are acquired by a plurality of magnetocardiographic sensors, and the QRS-wave ends at the time point when the square average of the differences between outputs from the plurality of magnetocardiographic sensors and the average value thereof reaches the second local minimum value in the vicinity of the QRS-wave.
14. A filtering method with using an FIR filter that has multipliers arranged to multiply input digital data having their respective different input time points by respective variable tap coefficients, comprising switching the respective variable tap coefficients from a first tap coefficient to a second tap coefficient sequentially for the input digital data from later to earlier input time points, wherein the first tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a first frequency, and the second tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a second frequency different from the first frequency.
15. (canceled)
16. A non-transitory computer-readable medium including a program of instructions for execution by a computer to perform a filtering process with using an FIR filter that has multipliers arranged to multiply input digital data having their respective different input time points by respective variable tap coefficients, said filtering process comprising switching the respective variable tap coefficients from a first tap coefficient to a second tap coefficient sequentially for the input digital data from later to earlier input time points, wherein the first tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a first frequency, and the second tap coefficient is arranged to cause the FIR filter to serve as a low-pass filter with the cut-off frequency set at a second frequency different from the first frequency.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
MODES FOR CARRYING OUT THE INVENTION
[0041] A description will now be given of embodiments of the present invention referring to drawings.
First Embodiment
[0042]
[0043] The magnetic sensor group 10 has magnetic sensors D1 to D25. The magnetic sensors D1 to D25 are magnetic measuring digital sensors arranged to output the magnetic flux density [pT] correspondingly to the sampling order n (=0, 1, 2, . . . ) by the magnetic sensors D1 to D25. It is noted that since the sampling time point [ms] =(sampling period)×n, there is a correspondence between the sampling time point and n. It can therefore be said that the magnetic sensors D1 to D25 output the magnetic flux density [pT], as a measurement result, correspondingly to the sampling time point. In addition, the sampling order n is used as the sampling time point for the purpose of illustration because the sampling time point can be derived uniquely from the sampling order n.
[0044] It is noted that the magnetic sensors D1 to D25 are arranged in 5 rows×5 columns. D1, D2, . . . , D5 are arranged in the first row. D6, D7, . . . , D10 are arranged in the second row. D11, D12, . . . , D15 are arranged in the third row. D16, D17, . . . , D20 are arranged in the fourth row. D21, D22, . . . , D25 are arranged in the fifth row. It is noted that the number and arrangement of the magnetic sensors is merely an example. For example, 64 magnetic sensors may be arranged in 8 rows×8 columns.
[0045] In addition, the measurement results by the magnetic sensors D1 to D25, which correspond to the sampling order (sampling time points) n, are represented as D1(n), D2(n), D24(n), D25(n).
[0046] The magnetic sensor group 10 is attached to, for example, the subject's chest. In this case, the magnetic sensors D1 to D25 are magnetocardiographic sensors arranged to detect the magnetic field from the heart.
[0047] The filtering apparatus 20 is arranged to receive the measurement results from the respective magnetic sensors D1 to D25 and filter out environmental noise (e.g. air-conditioning noise) for output.
[0048]
[0049]
[0050] The measurement results D1(n), D2(n), D24(n), D25(n) acquired by the multiple magnetocardiographic sensors D1 to D25 are referred to as input digital data. The multiple magnetocardiographic sensors D1 to D25 are arranged to output the measurement results D1(n), D2(n), D24(n), D25(n).
[0051] The average value deriving section 242 is arranged to receive outputs from the multiple magnetocardiographic sensors D1 to D25 and output the average value D(n)ave of the outputs D1(n) to D25(n) from the multiple magnetocardiographic sensors. The average value D(n)ave is obtained by the following formula (1).
D(n)ave=( 1/25)×(D1(n)+D2(n)+ . . . +D24(n)+D25(n)) (1)
[0052] The variance value deriving section 244 is arranged to receive outputs D1(n) to D25(n) from the multiple magnetocardiographic sensors D1 to D25 and further receive the average value D(n)ave from the average value deriving section 242. The variance value deriving section 244 is further arranged to derive the square average (i.e. variance value V(n)) of the differences between the outputs D1(n) to D25(n) from the multiple magnetocardiographic sensors D1 to D25 and the average value D(n)ave thereof. The square average (variance value V(n))is obtained by the following formula (2). That is, the variance value V(n) is the square average of Dp(n)−D(n)ave (where p=1, 2, . . . , 24, 25).
V(n)=( 1/25)×((D1(n)−D(n)ave).sup.2+(D2(n)−D(n)ave).sup.2+. . . +(D24(n)−D(n)ave).sup.2+(D25(n)−D(n)ave).sup.2) (2)
[0053] The local minimum time point deriving section 246 is arranged to derive the time point when the variance value V(n) reaches a local minimum.
[0054]
[0055] Referring to
[0056] Referring to
[0057] Referring to
[0058] The local minimum time point deriving section 246 of the replacement time point specifying section 24 is arranged to provide the time point n1 when the QRS-wave starts to the FIR filter 22.
[0059] Input digital data Dm(0), Dm(1), Dm(2), . . . are input to the FIR filter 22, where m=1, 2, . . . , or 25. For example, input digital data D1(0), D1(1), D1(2), . . . are input to the FIR filter 22. Note here that D2(0), D2(1), D2(2), . . . or D25(0), D25(1), D25(2), . . . may be input to the FIR filter 22.
[0060] The FIR filter 22 may be provided for each of the magnetic sensors D1 to D25 if needed. In this case, there are provided an FIR filter 22 to which input digital data D1(0), D1(1), D1(2), . . . are input, an FIR filter 22 to which input digital data D2(0), D2(1), D2(2), . . . are input, . . . , and an FIR filter 22 to which input digital data D25(0), D25(1), D25(2), . . . are input (25 FIR filters 22 are provided).
[0061] The input digital data may be considered to be sampled by the magnetic sensors D1 to D25 and, at the same time, provided to the FIR filter 22. It can therefore be said that the time point n when sampled by the magnetic sensors D1 to D25 is the time point (input time point) when input to the FIR filter 22.
[0062]
[0063] Note here that in
[0064] Referring to
[0065] While input digital data x[2] is input to the FIR filter 22, input digital data x[1], x[0] that have not been processed through the FIR filter 22 are also processed.
[0066] The multipliers 222p, 222q, 222r are arranged to multiply input digital data x[0], x[1], x[2] having their respective different input time points n by respective variable tap coefficients. The variable tap coefficients have a0 (by which x[2] is multiplied), a1 (by which x[1] is multiplied), and a2 (by which x[0] is multiplied). The variable tap coefficients (a0, a1, a2) (first tap coefficients) are arranged to cause the FIR filter 22 to serve as a low-pass filter with the cut-off frequency set at a first frequency (20 Hz).
[0067] The FIR filter 22, if arranged to serve as a low-pass filter with the cut-off frequency set at a first frequency (20 Hz), is suited for cutting off environmental noise (e.g. 20 Hz component of air-conditioning noise) from magnetocardiographic P-wave (0 to 10 Hz) (see
[0068] The delay summing section 220 has delayers 224p, 224q and adders 226q, 226r. The delayer 224p is arranged to delay the output from the multiplier 222p by time equal to one sampling period for output. The adder 226q is arranged to add the output from the delayer 224p and the output from the multiplier 222q for output. The delayer 224q is arranged to delay the output from the adder 226q by time equal to one sampling period for output. The adder 226r is arranged to add the output from the delayer 224q and the output from the multiplier 222r for output. The output from the adder 226r is the output y[n] from the FIR filter 22 (y[2] in
[0069] The output (a2x[0]) from the multiplier 222p is delayed through the delayers 224p and 224q by time equal to two sampling periods to the input time point n (=2) of the latest input digital data x[2], while summed through the adders 226q and 226r with the outputs from the multipliers 222q and 222r.
[0070] The output (a1x[1]) from the multiplier 222q is delayed through the delayer 224q by time equal to one sampling period to the input time point n (=2) of the latest input digital data x[2], while summed through the adder 226r with the output from the multiplier 222r.
[0071] The delay summing section 220 is thus arranged to sum the outputs from the multipliers 222p, 222q while delaying to the input time point n (=2) of the latest input digital data x[2]. Accordingly, the FIR filter 22 outputs y[2]=a0x[2]+a1x[1]+a2x[0].
[0072] It is noted that referring to
[0073] It is noted that the first frequency (20 Hz) is lower than the second frequency (50 Hz).
[0074] The FIR filter 22, if arranged to serve as a low-pass filter with the cut-off frequency set at a second frequency (50 Hz), is suited for cutting off environmental noise (e.g. 20 Hz component of air-conditioning noise) from magnetocardiographic QRS-wave (0 to 50 Hz) (see
[0075] However, switching the variable tap coefficients from the first tap coefficients (a0, a1, a2) to the second tap coefficients (b0, b1, b2) immediately when the QRS-wave starts may cause discontinuity between the P-wave and the QRS-wave in the output from the FIR filter 22.
[0076] Hence, the variable tap coefficients are switched gradually from the first tap coefficients (a0, a1, a2) to the second tap coefficients (b0, b1, b2) when the QRS-wave starts to smoothly switch the characteristics of the FIR filter 22 serving as a low-pass filter.
[0077] Here assume that the time point n1 when the QRS-wave starts is at the input time point n=3.
[0078] The variable tap coefficients start to be switched at the time point n=3 when the QRS-wave starts in the magnetocardiographic waveform (see
[0079] The switching is under the following procedure: the variable tap coefficients are each switched from the first tap coefficient (a2, a1, a0) to the second tap coefficient (b2, b1, b0) sequentially for the input digital data from later to earlier input time points n. Note here that the variable tap coefficients are switched for each multiplication by the multiplier 222r.
[0080] First, the variable tap coefficients have the first tap coefficients (a2, a1, a0) at the input time point n=2 (see
[0081] The first tap coefficients (a0, a1, a2) are thus switched in the order of a0, a1, and a2 to the second tap coefficients (b0, b1, b2). That is, the variable tap coefficients have (a0, a1, a2) (see
[0082] The variable tap coefficients have (a0, a1, a2) after multiplication by the multiplier 222r in
[0083] In order to achieve such variable tap coefficient switching, the variable tap coefficients are recorded in the respective multipliers 222p, 222q, 222r. Then, the variable tap coefficients recorded in the respective multipliers 222p, 222q, 222r are switched completely from the first tap coefficient (a2, a1, a0) to the second tap coefficient (b2, b1, b0) at a predetermined time point (e.g. at the time point n=3 when the QRS-wave starts).
[0084] Referring to
[0085] Accordingly, the FIR filter 22 outputs y[3]=b0x[3]+a1x[2]+a2x[1]. The variable tap coefficients then have (b0, a1, a2).
[0086] Next, referring to
[0087] Accordingly, the FIR filter 22 outputs y[4]=b0x[4]+b1x[3]+a2x[2]. The variable tap coefficients then have (b0, b1, a2).
[0088] Finally, referring to
[0089] Accordingly, the FIR filter 22 outputs y[5]=b0x[5]+b1x[4]+b2x[3]. The variable tap coefficients then have (b0, b1, b2).
[0090] Next will be described an operation according to the first embodiment.
[0091] First, when the magnetic sensor group 10 (see
[0092] The outputs D1(n), D2(n), . . . , D24(n), D25(n) from the magnetic sensors D1 to D25 are provided to the replacement time point specifying section 24 of the filtering apparatus 20. The replacement time point specifying section 24 provides the FIR filter 22 with the time point n1 (see
[0093] The variable tap coefficients in the FIR filter 22 initially have the first tap coefficients (a0, a1, a2) (see
[0094] The variable tap coefficients recorded in the respective multipliers 222p, 222q, 222r are then switched completely from the first tap coefficient (a2, a1, a0) to the second tap coefficient (b2, b1, b0) at the time point n=3 (see
[0095] The variable tap coefficients are then switched gradually from the first tap coefficient (a0, a1, a2) to the second tap coefficient (b0, b1, b2) such that the FIR filter 22 outputs y[3]=b0x[3]+a1x[2]+a2x[1] (variable tap coefficients b0, a1, a2; see
[0096] The variable tap coefficients in the FIR filter 22 are thus switched to the second tap coefficients (b0, b1, b2) (see
[0097] In accordance with the first embodiment, it is possible to smoothly switch the characteristics of the low-pass filter (FIR filter 22) during denoising (e.g. removal of environmental noise from magnetocardiographic and other measurement results).
Variation
[0098] It is noted that the FIR filter 22 may not be a transposed FIR filter as long as the first tap coefficients (a0, a1, a2) can be switched in the order of a0, a1, and a2 to the second tap coefficients (b0, b1, b2), though has been described as a transposed FIR filter in the first embodiment. For example, the FIR filter 22 may be a direct FIR filter.
[0099]
[0100] Referring to
[0101] The delaying section 227q is arranged to delay the input to the multiplier 222p by time equal to one sampling period for output. The delaying section 227r is arranged to delay the input to the multiplier 222q by time equal to one sampling period for output.
[0102] The adder 228q is arranged to add the output from the multiplier 222p and the output from the multiplier 222q for output. The adder 228r is arranged to add the output from the adder 228q and the output from the multiplier 222r for output. The adders 228q and 228r form a summing section arranged to sum outputs from the multipliers 222p, 222q, 222r.
[0103] The multipliers 222p, 222q, 222r are arranged to multiply input digital data x[2], x[1], x[0] having their respective different input time points n by respective variable tap coefficients a0, a1, a2.
[0104] The delaying section 227q is arranged to delay the input x[1] to the multiplier 222q by time equal to one sampling period to the input time point n (=2) of the latest input digital data x[2].
[0105] The delaying sections 227q and 227r are arranged to delay the input x[0] to the multiplier 222r by time equal to two sampling periods to the input time point n (=2) of the latest input digital data x[2].
[0106] Accordingly, the FIR filter 22 outputs y[2]=a0x[2]+a1x[1]+a2x[0].
[0107] Next, referring to
[0108] Accordingly, the FIR filter 22 outputs y[3]=b0x[3]+a1x[2]+a2x[1]. The variable tap coefficients then have (b0, a1, a2).
[0109] Next, referring to
[0110] Accordingly, the FIR filter 22 outputs y[4]=b0x[4]+b1x[3]+a2x[2]. The variable tap coefficients then have (b0, b1, a2).
[0111] Finally, referring to
[0112] Accordingly, the FIR filter 22 outputs y[5]=b0x[5]+b1x[4]+b2x[3]. The variable tap coefficients then have (b0, b1, b2).
Second Embodiment
[0113] In a second embodiment, the variable tap coefficients start to be switched when the QRS-wave ends, which is different from the first embodiment in which the variable tap coefficients start to be switched when the QRS-wave starts.
[0114] The configuration of the magnetic measuring apparatus according to the second embodiment is identical to that of the first embodiment and will not be described (see
[0115] Since the configuration of the filtering apparatus 20 according to the second embodiment is almost the same as in the first embodiment (see
[0116] The filtering apparatus 20 according to the second embodiment includes an FIR filter 22 and a replacement time point specifying section 24 (see
[0117] The local minimum time point deriving section 246 is arranged to derive the time point when the variance value V(n) reaches a local minimum.
[0118] Referring to
[0119] The local minimum time point deriving section 246 of the replacement time point specifying section 24 is arranged to provide the time point n2 when the QRS-wave ends to the FIR filter 22.
[0120] The configuration of the FIR filter 22 is identical to that of the first embodiment (see
[0121] That is, the first tap coefficients (a0, a1, a2) are arranged to cause the FIR filter 22 to serve as a low-pass filter with the cut-off frequency set at a first frequency (50 Hz). The FIR filter 22, if arranged to serve as a low-pass filter with the cut-off frequency set at a first frequency (50 Hz), is suited for cutting off environmental noise (e.g. 20 Hz component of air-conditioning noise) from magnetocardiographic QRS-wave (0 to 50 Hz) (see
[0122] On the other hand, the second tap coefficients (b0, b1, b2) are arranged to cause the FIR filter 22 to serve as a low-pass filter with the cut-off frequency set at a second frequency (20 Hz). The FIR filter 22, if arranged to serve as a low-pass filter with the cut-off frequency set at a second frequency (20 Hz), is suited for cutting off environmental noise (e.g. 20 Hz component of air-conditioning noise) from magnetocardiographic T-wave (0 to 10 Hz) (see
[0123] Here assume that the time point n2 when the QRS-wave ends is at the input time point n=3. The variable tap coefficients start to be switched at the time point n=3 when the QRS-wave ends in the magnetocardiographic waveform (see
[0124] Next will be described an operation according to the second embodiment.
[0125] First, when the magnetic sensor group 10 (see
[0126] The outputs D1(n), D2(n), . . . , D24(n), D25(n) from the magnetic sensors D1 to D25 are provided to the replacement time point specifying section 24 of the filtering apparatus 20. The replacement time point specifying section 24 provides the FIR filter 22 with the time point n2 (see
[0127] The variable tap coefficients in the FIR filter 22 initially have the first tap coefficients (a0, a1, a2) (see
[0128] The variable tap coefficients recorded in the respective multipliers 222p, 222q, 222r are then switched completely from the first tap coefficient (a2, a1, a0) to the second tap coefficient (b2, b1, b0) at the time point n=3 (see
[0129] The variable tap coefficients are then switched gradually from the first tap coefficient (a0, a1, a2) to the second tap coefficient (b0, b1, b2) such that the FIR filter 22 outputs y[3]=b0x[3]+a1x[2]+a2x[1] (variable tap coefficients b0, a1, a2; see
[0130] The variable tap coefficients in the FIR filter 22 are thus switched to the second tap coefficients (b0, b1, b2) (see
[0131] In accordance with the second embodiment, it is possible to smoothly switch the characteristics of the low-pass filter (FIR filter 22) during denoising (e.g. removal of environmental noise from magnetocardiographic and other measurement results).
Variation
[0132] It is noted that the FIR filter 22 may not be a transposed FIR filter as long as the first tap coefficients (a0, a1, a2) can be switched in the order of a0, a1, and a2 to the second tap coefficients (b0, b1, b2), though has been described as a transposed FIR filter in the second embodiment. For example, the FIR filter 22 may be a direct FIR filter.
[0133] The configuration of the FIR filter 22 according to the variation of the second embodiment is identical to that of the variation of the first embodiment (see
[0134] Incidentally, the above-described embodiments may be achieved as follows. A computer including a CPU, a hard disk, and a medium (USB memory, CD-ROM, or the like) reading device is caused to read a medium with a program recorded thereon that achieves the above-described components (e.g. the FIR filter 22, the replacement time point specifying section 24) and install the program in the hard disk. The above-described features can also be achieved in this manner.
DESCRIPTION OF REFERENCE NUMERAL
[0135] 10 Magnetic Sensor Group
[0136] 20 Filtering Apparatus
[0137] 22 FIR Filter
[0138] 220 Delay Summing Section
[0139] 224p, 224q Delayers
[0140] 226q, 226r Adders
[0141] 222p, 222q, 222r Multipliers
[0142] 227q, 227r Delaying Sections
[0143] 228q, 228r Adders (Summing Section)
[0144] 24 Replacement Time Point Specifying Section
[0145] 242 Average Value Deriving Section
[0146] 244 Variance Value Deriving Section
[0147] 246 Local Minimum Time Point Deriving Section
[0148] D1 to D25 Magnetic Sensors
[0149] n Input Time Point (Sampling Time Point)
[0150] D1(n), D2(n), . . . , D24(n), D25(n) Input Digital Data
[0151] D(n)ave Average Value
[0152] V(n) Variance Value
[0153] n1 Time Point when QRS-wave starts
[0154] n2 Time Point when QRS-wave ends
[0155] a0, a1, a2 First Tap Coefficients
[0156] b0, b1, b2 Second Tap Coefficients