Biological signal processing method and biological signal processing apparatus
10918302 ยท 2021-02-16
Assignee
Inventors
Cpc classification
A61B5/7271
HUMAN NECESSITIES
A61B5/352
HUMAN NECESSITIES
International classification
Abstract
There is provided a biological signal processing apparatus. The biological signal processing apparatus includes a biological signal extraction unit (2) configured to extract a biological signal from an electrocardiographic waveform measured by an electrocardiograph (1), an averaging processing unit (3) configured to calculate averaged data using time-series data of the biological signals extracted by the biological signal extraction unit (2), an abnormal value determination unit (4) configured to determine, for each data, whether the data of the biological signal extracted by the biological signal extraction unit (2) is appropriate, based on the averaged data calculated using the data of the biological signals that have occurred before the data, and an abnormal value processing unit (5) configured to perform one of deletion and interpolation of the data of the biological signal determined to be inappropriate by the abnormal value determination unit (4).
Claims
1. A biological signal processing method causing a central processing unit to perform: a first step of extracting biological signals from an electrocardiographic waveform of a living body; a second step of calculating averaged data using time-series data of the biological signals extracted in the first step, the second step including performing averaging processing for values based on reciprocals of values of the time-series data of the biological signals extracted in the first step, and calculating the averaged data from a reciprocal of a value obtained by the averaging processing; a third step of determining, for each of the time-series data, whether the time-series data of the biological signals extracted in the first step is appropriate, the third step including a step of setting a normal value range by adding a first predetermined value to the average data calculated using past time-series data of the biological signals that have been determined as appropriate or by multiplying a second predetermined value and the averaged data calculated using the past time-series data of the biological signals that have been determined as appropriate, and a step of determining the time-series data to be determined as inappropriate when the time-series data to be determined deviates from the normal value range; a fourth step of performing one of deletion and interpolation of the time-series data of the biological signals determined as inappropriate in the third step; a fifth step of calculating a first-order differential value and a second-order differential value of each of said biological signals having undergone the processing in the fourth step; and a sixth step of warning that variations in the biological signals are low, when a state in which both the first-order differential value and the second-order differential value fall in a predetermined range within 80 V centered on 0 continues for a predetermined period of three seconds or longer.
2. The biological signal processing method according to claim 1, wherein in the second step, when performing the averaging processing of the time-series data of the biological signals extracted in the first step, the time-series data of the biological signals falling outside the predetermined range centered on the value of the averaged data calculated using time-series data that has occurred before the time-series data of the biological signals, and the time-series data of the biological signals interpolated in the fourth step are not used to calculate the averaged data.
3. The biological signal processing method according to claim 2, wherein each of the biological signals is one of an R-R interval that is a time interval between an R wave, and an immediately preceding R wave and an RS amplitude from a peak value of an R wave to a peak value of an S wave.
4. The biological signal processing method according to claim 2, further comprising: a seventh step of obtaining a spectrum of the biological signals by performing, by one of fast Fourier transform and a maximum entropy method, frequency analysis for the biological signals after the processing in the fourth step.
5. The biological signal processing method according claim 1, wherein the each of said biological signals is one of an R-R interval that is a time interval between an R wave and an immediately preceding R wave, and an RS amplitude from a peak value of an R wave to a peak value of an S wave.
6. The biological signal processing method according to claim 5, further comprising: a seventh step of obtaining a spectrum of the biological signals by performing, by one of fast Fourier transform and a maximum entropy method, frequency analysis for the biological signals after the processing in the fourth step.
7. The biological signal processing method according to claim 1, further comprising: a seventh step of obtaining a spectrum of the biological signals by performing, by one of fast Fourier transform and a maximum entropy method, frequency analysis for the biological signals after the processing in the fourth step.
8. The biological signal processing method according to claim 1, wherein in the second step, when performing the averaging processing of the time-series data of the biological signals extracted in the first step, the time-series data of the biological signals falling outside the predetermined range centered on the value of the averaged data calculated using time-series data that has occurred before the time-series data of the biological signals, and the time-series data of the biological signals interpolated in the fourth step are not used to calculate the averaged data.
9. The biological signal processing method according to claim 8, wherein each of the biological signals is one of an R-R interval that is a time interval between an R wave, and an immediately preceding R wave and an RS amplitude from a peak value of an R wave to a peak value of an S wave.
10. The biological signal processing method according to claim 8, further comprising: a seventh step of obtaining a spectrum of the biological signals by performing, by one of fast Fourier transform and a maximum entropy method, frequency analysis for the biological signals after the processing in the fourth step.
11. The biological signal processing method according to claim 1, wherein each of the biological signals is one of an R-R interval that is a time interval between an R wave, and an immediately preceding R wave and an RS amplitude from a peak value of an R wave to a peak value of an S wave.
12. The biological signal processing method according to claim 1, further comprising: a seventh step of obtaining a spectrum of the biological signals by performing, by one of fast Fourier transform and a maximum entropy method, frequency analysis for the biological signals after the processing in the fourth step.
13. A biological signal processing apparatus including a memory storing programmed instructions, a processing unit for executing programmed instructions stored in said memory and an interface coupled to external devices and said processing unit, said apparatus comprising: biological signals extraction unit configured to extract a biological signal from an electrocardiographic waveform of a living body; an averaging processing unit configured to calculate averaged data using time-series data of the biological signals extracted by the biological signal extraction unit, the averaging processing unit including a reciprocal averaging processing unit configured to perform averaging processing for values based on reciprocals of values of the time-series data of the biological signals extracted by the biological signal extraction unit, and an averaged data calculation unit configured to calculate the averaged data from a reciprocal of a value obtained by the averaging processing of the reciprocal averaging processing unit; an abnormal value determination unit configured to determine, for each of said time-series data, whether the time-series data of the biological signals extracted by the biological signal extraction unit is appropriate, the abnormal value determination unit being configured to set a normal value range by adding a first predetermined value to the averaged data calculated using past time-series data of the biological signals that have been determined as appropriate or by multiplying a second predetermined value and the averaged data calculated using the past time-series data of the biological signals that have been determined as appropriate and determine the time-series data to be determined as inappropriate when the time-series data to be determined deviates from the normal value range; an abnormal value processing unit configured to perform one of deletion and interpolation of the time-series data of the biological signals determined as inappropriate by the abnormal value determination unit; a differentiating unit configured to calculate a first-order differential value and a second-order differential value of biological signals processed by the abnormal value processing unit; a change amount decrease determination unit configured to determine that variations in the biological signals are low, when a state in which both the first-order differential value and the second-order differential value fall in a predetermined range within 80 V centered on 0 continues for a predetermined period of three seconds or longer; and a display unit configured to display a result of the determination of the change amount decrease determination unit.
14. A biological signal processing method causing a central processing unit to perform: a first step of extracting abiological signals from an electrocardiographic waveform of a living body; a second step of calculating averaged data using time-series data of the biological signals extracted in the first step, the second step including: performing averaging processing for values based on reciprocals of values of the time-series data of the biological signals extracted in the first step, and calculating the averaged data from a reciprocal of a value obtained by the averaging processing; a third step of determining, for each of the time-series data, whether the time-series data of the biological signals extracted in the first step is appropriate, the third step including a step of setting a normal value range by multiplying a third predetermined value a variance obtained from the averaged data calculated using past time-series data of the biological signals that have been determined as appropriate, and a step of determining the time-series data to be determined as inappropriate when a variance obtained from the averaged data calculated using the time-series data to be determined and the past time-series data of the biological signals that have been determined as appropriate deviates from the normal value range; a fourth step of performing one of deletion and interpolation of the data of the time-series biological signals determined as inappropriate in the third step; a fifth step of calculating a first-order differential value and a second-order differential value of the biological signals having undergone the processing in the fourth step; and a sixth step of warning that variations in the biological signals are low, when a state in which both the first-order differential value and the second-order differential value fall in a predetermined range within 80 V centered on 0 continues for a predetermined period of three seconds of longer.
15. A biological signal processing apparatus including a memory storing programmed instructions, a processing unit for executing programmed instructions stored in said memory and an interface coupled to external devices and said processing unit, said apparatus comprising: biological signals extraction unit configured to extract a biological signal from an electrocardiographic waveform of a living body; an averaging processing unit configured to calculate averaged data using time-series data of the biological signals extracted by the biological signal extraction unit, the averaging processing unit including a reciprocal averaging processing unit configured to perform averaging processing for values based on reciprocals of values of the time-series data of the biological signals extracted by the biological signal extraction unit, and an averaged data calculation unit configured to calculate the averaged data from a reciprocal of a value obtained by the averaging processing of the reciprocal averaging processing unit; an abnormal value determination unit configured to determine, for each of the time-series data, whether the time-series data of the biological signals extracted by the biological signal extraction unit is appropriate, the abnormal value determination unit being configured to set a normal value range by multiplying a third predetermined value and a variance obtained from the averaged data calculated using past time-series data of the biological signals that have been determined as appropriate and determine the time-series data to be determined as inappropriate when a variance obtained from the averaged data calculated using the time-series data to be determined and the past time-series data of the biological signals that have been determined as appropriate deviates from the normal value range; an abnormal value processing unit configured to perform one of deletion and interpolation of the time-series data of the biological signals determined as inappropriate by the abnormal value determination unit; a differentiating unit configured to calculate a first-order differential value and a second-order differential value of biological signals having processed by the abnormal value processing unit; a change amount decrease determination unit configured to determine that variations in the biological signals are low, when a state in which both the first-order differential value and the second-order differential value fall in a predetermined range within 80 V centered on 0 continues for a predetermined period of three seconds or longer, and a display unit configured to display a result of the determination of the change amount decrease determination unit.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
BEST MODE FOR CARRYING OUT THE INVENTION
First Embodiment
(19) The first embodiment of the present invention will be described with reference to
(20) Although noise is superimposed on the electrocardiographic waveform, spikes corresponding to R waves can be confirmed and R-R intervals are extracted correctly. In (b) of
(21)
(22)
(23) The operation of the biological signal processing apparatus according to this embodiment will be described next with reference to
(24) The electrocardiograph 1 measures the electrocardiographic waveform of a subject (living body) (not shown). A practical method of measuring an electrocardiographic waveform is a well-known technique and a detailed description thereof will be omitted.
(25) The biological signal extraction unit 2 extracts a biological signal (an RS amplitude in this embodiment) from the electrocardiographic waveform measured by the electrocardiograph 1 (step S1 of
(26) Note that as a method of obtaining heartbeat time, for example, a technique disclosed in Japanese Patent Laid-Open No. 2015-156936 can be used. In the technique disclosed in this literature, sampling data of two points of the electrocardiographic waveform crossing a predetermined threshold between the representative point of an R wave and the representative point of an S wave existing after that point are detected, and time at which a straight line connecting the sampling data of the two points intersects the threshold is calculated as heartbeat time. This heartbeat time is set as time of the data of the RS amplitude.
(27) The abnormal value determination unit 4 compares the data of the biological signal (RS amplitude) extracted by the biological signal extraction unit 2 with averaged data calculated by the averaging processing unit 3 using the data of the biological signals (RS amplitudes) until immediately preceding time, and determines, for each data, whether the data of the biological signal extracted by the biological signal extraction unit 2 is appropriate (step S2 of
(28) More specifically, when a value X(i) of the data of the biological signal at given time falls within a predetermined normal value range centered on averaged data X(i1) of the biological signals until immediately preceding time, the abnormal value determination unit 4 determines that the data X(i) of the biological signal is appropriate; otherwise, the abnormal value determination unit 4 determines that the data X(i) is inappropriate. In this embodiment, a range of 30% of the averaged data X(i1) is set as a normal value range. Note that since the abnormal value determination unit 4 determines, using the averaged data X(i1) of the biological signals of the past times, whether the data X(i) of the biological signal is appropriate, no determination processing is performed for the data of the first biological signal extracted by the biological signal extraction unit 2. The abnormal value determination unit 4 performs the determination processing for the data of the second or subsequent biological signal extracted by the biological signal extraction unit 2.
(29) Next, the averaging processing unit 3 performs averaging processing for the time-series data of the biological signals (RS amplitudes) extracted by the biological signal extraction unit 2 (step S3 of
X(i)=rX(i)+(1r)X(i1)(1)
(30) In equation (1), r represents a predetermined coefficient. As the coefficient r has a smaller value, fine variations in values of the data string of the biological signals are suppressed more but it becomes more difficult to follow rough changes in the biological signals. In consideration of this point, for example, r=0.2 is set, thereby suppressing instantaneous variations in the biological signals, and obtaining an appropriately averaged data string of the biological signals.
(31) To prevent an erroneous value from being mixed in the averaging processing, the averaging processing unit 3 does not use, in the averaging processing, the data of the biological signal (RS amplitude) determined to be inappropriate by the abnormal value determination unit 4. When, for example, the data X(i) of the biological signal is determined to be inappropriate, the averaged data X(i1) of the biological signals until immediately preceding time is directly used as averaged data X(i) without using the data X(i). This can make transition of the value of the averaged data more stable.
(32) The abnormal value processing unit 5 performs interpolation by replacing, by appropriate data, the data of the biological signal (RS amplitude) determined to be inappropriate by the abnormal value determination unit 4 (step S4 of
(33) The biological signal extraction unit 2, the abnormal value determination unit 4, the averaging processing unit 3, and the abnormal value processing unit 5 perform the processes in steps S1 to S4 for every predetermined period (for example, for each sampling operation of the electrocardiograph 1) until, for example, the subject issues a measurement end instruction (YES in step S5 of
(34) The display unit 10 displays the time-series data of the biological signals (RS amplitudes) processed by the abnormal value processing unit 5 (step S6 of
(35)
(36) Note that the target of the averaging processing by the averaging processing unit 3 is the data of the biological signals extracted by the biological signal extraction unit 2, and not the data interpolated by the abnormal value processing unit 5, and thus the interpolated data is not used in the subsequent averaging processing. The reason why the interpolated data is not used for the averaging processing is that the interpolated data is data estimated based on the averaged data and thus it is inappropriate to include the interpolated value in the values used to derive the data itself.
(37) The resampling unit 8 samples, at a sampling frequency (for example, an interval of 1 sec) lower than that of the electrocardiograph 1, the time-series data of the biological signals (RS amplitudes) processed by the abnormal value processing unit 5 (step S7 of
(38)
(39) The frequency analysis unit 9 performs frequency analysis for the time-series data of the biological signals (RS amplitudes) acquired by the resampling unit 8 by fast Fourier transform or the maximum entropy method (MEM), thereby obtaining the spectrum of the biological signals (step S8 of
(40) The display unit 10 displays the spectrum of the frequency analysis result of the frequency analysis unit 9 (step S9 of
(41)
(42) The spectrum obtained from the data of the RS amplitudes before the interpolation processing is different in aspect from the spectrum obtained from the data of the RS amplitudes after interpolating the inappropriate data. It is obvious that the spectrum obtained from the data of the RS amplitudes before the interpolation processing includes components or a distribution (72, 73, and 74 of
(43) As described above, in this embodiment, it is possible to appropriately remove noise components mixed in the biological signals such as the RS amplitudes, and improve the analysis accuracy of the biological signals.
(44) Note that in this embodiment, interpolation is performed by replacing, by the plausible data, the data of the biological signal determined to be inappropriate by the abnormal value determination unit 4. However, the present invention is not limited to this. The abnormal value processing unit 5 may delete (data missing) the data of the biological signal determined to be inappropriate by the abnormal value determination unit 4.
Second Embodiment
(45) The second embodiment of the present invention will be described next.
(46) The operation of the biological signal processing apparatus according to this embodiment will be described next with reference to
(47) The abnormal value determination unit 4 compares data of the biological signal (R-R interval) extracted by the biological signal extraction unit 2 with averaged data calculated by the averaging processing unit 3a using data of the biological signals (R-R intervals) until immediately preceding time, and determines, for each data, whether the data of the biological signal extracted by the biological signal extraction unit 2 is appropriate (step S11 of
(48) When a value X(i) of the data of the biological signal at given time exceeds a value equal to a predetermined multiple (in this embodiment, 1.35) of averaged data X (i1) of the biological signals until immediately preceding time, the abnormal value determination unit 4 according to this embodiment determines that the data X(i) is inappropriate; otherwise, the abnormal value determination unit 4 determines that the data X(i) is appropriate. That is, in this embodiment, a range of the predetermined multiple of the averaged data X(i1) or less is set as a normal value range. As described in the first embodiment, the abnormal value determination unit 4 performs the determination processing for the data of the second or subsequent biological signal extracted by the biological signal extraction unit 2.
(49) Next, the averaging processing unit 3a performs averaging processing for the time-series data of the biological signals (R-R intervals) extracted by the biological signal extraction unit 2 (steps S12 and S13 of
(50) The abnormal value processing unit 5 performs interpolation by replacing, by appropriate data, the data of the biological signal (R-R interval) determined to be inappropriate by the abnormal value determination unit 4 (step S14 of
(51) The abnormal value processing unit 5 calculates, as a plausible value of the R-R interval to be inserted between times t.sub.2 and t.sub.1, a value obtained by equally dividing the time interval (t.sub.2-t.sub.1) between times t.sub.2 and t.sub.1 by the determined number N of data. Thus, the abnormal value processing unit 5 can interpolate the R-R interval by inserting the plausible value of the R-R interval the number N of times between time t.sub.2 when the inappropriate data is generated in the R-R interval and immediately preceding time t.sub.1.
(52) In
(53) In
(54) In the example shown in (b) of
(55) To solve this problem, when performing the averaging processing of the biological signals (R-R intervals) extracted by the biological signal extraction unit 2, the averaging processing unit 3a according to this embodiment performs, for each data, an operation of executing the averaging processing for values based on reciprocals of the R-R intervals, and calculating the averaged data of the R-R intervals from the reciprocal of a value obtained by the averaging processing. More specifically, C=60000/R-R interval=heart rate is used as a value (to be referred to as processing target data C hereinafter) based on the reciprocal of the R-R interval. When C(i) represents the ith processing target data, C(i1) represents a value obtained by averaging processing target data up to the (i1)th processing target data, and r represents a predetermined coefficient, a value C(i) can be obtained by averaging the processing target data up to the ith processing target data, similarly to equation (1), by:
C(i)=rC(i)+(1r)C(i1)(2)
(56) A reciprocal averaging processing unit 30 of the averaging processing unit 3a calculates C(i) by equation (2) above (step S12 of
(57) To prevent an erroneous value from being mixed in the averaging processing, when the processing target data C(i) at given time falls outside a predetermined normal value range centered on the value C(i1) obtained by averaging the processing target data until immediately preceding time, the averaging processing unit 3a determines that the processing target data C(i) is inappropriate, and does not use the data in the averaging processing. For example, when it is determined that the processing target data C(i) is inappropriate, the value C(i1) obtained by averaging the processing target data until immediately preceding time is directly set as C(i). A range of 30% of the averaged data C(i1) is set as the normal value range.
(58) Processes in steps S14, S15, S16, S17, S18, and S19 of
(59)
(60) While a variation range of the R-R interval in a portion where a variation is most abrupt is a range of about 650 ms.fwdarw.900 ms (variation amount: 42%), a variation range of the heart rate proportional to the reciprocal of the R-R interval is a range of about 92 bpm.fwdarw.67 bpm (variation amount: 27%). Therefore, in the method according to this embodiment, even in a portion where the R-R interval fluctuates, the fluctuations are included in the averaging processing, and thus the data of the R-R intervals having undergone the interpolation processing never deviate from the data of the R-R intervals before the interpolation processing. That is, since the scale of the variation is suppressed by using the heart rate, the averaging processing is stabilized to perform processing correctly for the data string of the biological signals.
(61) When the value of the data of the biological signal varies, in a given numerical value range, it is possible to suppress the variation width of the averaged data and stabilize the averaging processing by performing the averaging processing not for the values of the data but for values based on the reciprocals of the values of the data. According to this embodiment, it is possible to remove inappropriate data caused by noise or the like from the time-series data of the biological signals, and restore the data plausibly, leading to more correct analysis of the state of the living body.
Third Embodiment
(62) The third embodiment of the present invention will be described next. In this embodiment as well, the arrangement of a biological signal processing apparatus is the same as in the first embodiment and reference numerals in
(63) The operation of the biological signal processing apparatus according to this embodiment will be described with reference to
(64) The differential unit 6 calculates the first-order differential value and the second-order differential value of each biological signal (RS amplitude) processed by an abnormal value processing unit 5 (step S20 of
(65) When f(t.sub.k) represents an interpolated value of the biological signal (RS amplitude) at given time t.sub.k, a first-order differential value f(t.sub.k) is given by:
f(t.sub.k)={f(t.sub.k+1)f(t.sub.k)}/(t.sub.k+1t.sub.k)(3)
(66) Furthermore, a second-order differential value f(t.sub.k) is given by:
f(t.sub.k)={f(t.sub.k+1)2f(t.sub.k)+f(t.sub.k1)}/(t.sub.k+1t.sub.k).sup.2(4)
(67) Since a change in RS amplitude is caused by the respiratory motion, when the respiratory motion stops, for example, when breath is held, both the first-order differential value and the second-order differential value take values close to 0. When a state in which both the first-order differential value and the second-order differential value calculated by the differential unit 6 fall within a predetermined range centered on 0 continues for a predetermined time or longer, the change amount decrease determination unit 7 determines that variations in the biological signals are low (the respiratory motion stops). When at least one of the first-order differential value and the second-order differential value falls outside the predetermined range centered on 0 or the duration of the state in which both the first-order differential value and the second-order differential value fall within the predetermined range is shorter than the predetermined time, the change amount decrease determination unit 7 determines that variations in the biological signals are normal (the respiratory motion changes with time) (step S21 of
(68) A display unit 10 displays the determination result of the change amount decrease determination unit 7 (step S22 of
(69)
(70) In the example shown in
(71) In this embodiment, therefore, it is possible to determine whether the respiratory motion changes with time or stops, thus monitoring the respiratory motion of the living body.
(72) Note that this embodiment has explained the operations of the differential unit 6 and change amount decrease determination unit 7 of the biological signal processing apparatus shown in
Fourth Embodiment
(73) The fourth embodiment of the present invention will be described next. In this embodiment, the arrangement of a biological signal processing apparatus and the procedure of processing are the same as in the first embodiment and reference numerals and symbols in
(74) As described in the first embodiment, a frequency analysis unit 9 of the biological signal processing apparatus performs frequency analysis for time-series data of biological signals (RS amplitudes) acquired by a resampling unit 8 to obtain a spectrum of the biological signals (step S8 of
(75)
(76) In the example of
df=1/T(=1/6.4=1/(0.232)0.16)(5)
Thus, a plot interval on the abscissa is about 0.16 Hz (see Naoki Mikami, Introduction to Digital Filter and Fast Fourier Transform, CQ Publishing, pp. 135-137, 2005).
(77) Equation (5) means that the frequency resolution is uniquely determined by the measurement time. To set the frequency resolution to a value higher than 0.16 Hz, there is no way but to prolong the measurement time when the sampling rate of the resampling unit 8 is fixed.
(78)
(79) A respiratory cycle at ordinary times is 3 to 4 sec. When the measurement time is prolonged to improve the frequency resolution in fast Fourier transform, data for a plurality of cycles are included, an obtained frequency distribution is given by a statistic of the data, and thus information of a single respiratory motion is buried. However, a high resolution can be obtained within a short measurement time by using the maximum entropy method, thereby obtaining frequency information concerning a single respiratory motion, which is not a statistic.
(80) Referring to
(81) Calculation of a frequency by the maximum entropy method is performed using the following method (see Shigeo Minami, Waveform Data Processing for Scientific Measurement, CQ Publishing, pp. 173-174, 1986). The maximum entropy method includes the Burg method and Yule-Walker method. The Burg method will be exemplified here.
(82) A spectral energy density S() to be obtained is given by the following equation.
(83)
(84) t represents the sampling rate, which is 0.2 sec in the example shown in
(85) To obtain the spectral energy density S(), it is only necessary to know a coefficient a.sub.mi of an autoregressive model, a variance P.sub.m of prediction errors, and a model order m to be used. The model order m takes an arbitrary integer. In this example, as the maximum model order, 20 is selected from values equal to or larger than 16 (see Hiroshi Inoue, Cardiovascular Disease and Autonomic Nervous Function, Igaku-Shoin, pp. 85-86, 2010), and the order m takes a value between 1 and 20.
(86) To obtain the coefficient a.sub.mi of the autoregressive model, it is necessary to obtain a.sub.mm by equations (7) to (9) below.
(87)
(88) In equation (7), N represents the number of data of the RS amplitudes, which is 32 in this example. In equations (7) to (9), the initial values of coefficients b.sub.mi and b.sub.mi are given by the following equations. x.sub.i represents the ith data among the N data.
b.sub.0i=b.sub.0i=x.sub.i(10)
b.sub.1i=x.sub.i(11)
b.sub.1i=x.sub.i+1(12)
(89) The coefficient a.sub.mi of the autoregressive model and the variance P.sub.m of the prediction errors are obtained from the obtained a.sub.mm using recursion relations of equations (13) and (14).
a.sub.mi=a.sub.m1i+a.sub.mma.sub.m1mi(13)
P.sub.m=P.sub.m1(1a.sub.mm.sup.2)(14)
(90) P.sub.0 used in equation (14) is obtained by equation (15) below by setting x.sub.ave as the average value of the data of the RS amplitudes.
(91)
(92) A statistic Q.sub.m for determining the coefficient a.sub.mi to be substituted into equation (6) is calculated.
(93)
(94) Using equation (16), Q.sub.1 to Q.sub.20 are calculated for the statistic Q.sub.m. Among them, m that gives the smallest statistic Q.sub.m is set as the model order m to be used in equation (6). Calculation may be aborted when a minimum value of the statistic Q.sub.m appears first during calculation up to Q.sub.20 by incrementing m by one from m=1, and m when Q.sub.m has the minimum value may be used as the model order m in equation (6). When the minimum value of the statistic does not appear even after calculation up to Q.sub.20, the largest value (in this case, 20) of the candidates of the order is used.
(95) The coefficient a.sub.mi of the autoregressive model, the variance P.sub.m of the prediction errors, and the model order m can thus be obtained, thereby obtaining a frequency distribution by equation (6). In
Fifth Embodiment
(96) In each of the first to fourth embodiments, when data X(i) of the biological signal as a determination target falls outside the predetermined normal value range based on the averaged data X(i1) calculated using the data of the biological signals that have occurred before the data X(i), it is determined that the data X(i) of the biological signal as the determination target is inappropriate. However, the determination processing is not limited to this. For example, a range of the average data X(i1) ( is a predetermined value) may be set as a normal value range.
(97) Furthermore, the abnormal value determination unit 4 according to each of the first to fourth embodiments may calculate a variance .sup.2 obtained from the averaged data calculated using the data X(i) of the biological signal as a determination target and the data of the biological signals that have occurred before the data (the data of the biological signals until immediately preceding time). Then, when the variance .sup.2 falls outside a predetermined normal value range based on a variance .sub.p.sup.2 obtained from averaged data calculated using the data of the biological signals of the past times, the abnormal value determination unit 4 may determine that the data X(i) of the biological signal is inappropriate. For example, a range of 2.sub.p.sup.2 or less is set as a normal value range. When the variance .sup.2 exceeds 2.sub.p.sup.2, it is determined that the data X(i) of the biological signal is inappropriate.
Sixth Embodiment
(98) The biological signal processing apparatus explained in each of the first to fifth embodiments can be implemented by a computer including a CPU (Central Processing Unit), a storage device, and an interface, and a program for controlling these hardware resources.
INDUSTRIAL APPLICABILITY
(99) The present invention is applicable to a technique of analyzing biological signals obtained from an electrocardiographic waveform.
EXPLANATION OF THE REFERENCE NUMERALS AND SIGNS
(100) 1 . . . electrocardiograph, 2 . . . biological signal extraction unit, 3, 3a . . . averaging processing unit, 4 . . . abnormal value determination unit, 5 . . . abnormal value processing unit, 6 . . . differential unit, 7 . . . change amount decrease determination unit, 8 . . . resampling unit, 9 . . . frequency analysis unit, 10 . . . display unit, 30 . . . reciprocal averaging processing unit, 31 . . . averaged data calculation unit