The present invention relates to an RRI measurement device, an RRI measurement method, and an RRI measurement program that detect an RRI that is an interval between two adjacent R waves from an electrocardiogram signal.
An R-R interval (RRI) in an electrocardiogram (ECG) is used for analysis of heart rate variability, diagnosis of arrhythmia, detection of heart disease and disorder of the automatic nerve system, and the like. With recent development of technology, real-time ECG acquisition and RRI detection have become possible by using a wearable device (see Non Patent Literature 1).
For example, there has been proposed an application that acquires time-series data of an ECG signal while clothes are worn by using a wearable device attached to the clothes, calculates a heart rate and an RRI on the basis of the ECG signal, and wirelessly transmits obtained data group to an external terminal such as a smartphone (see Patent Literature 1).
In general, accuracy of detecting an RRI from an ECG signal depends on a sampling rate of the ECG signal, and the analysis of the heart rate variability requires the sampling rate of 2 msec. or more, that is, 500 samples/sec. or more.
Meanwhile, in a case where signal acquisition is performed at the above high sampling rate in the wearable device, a calculation throughput increases and power consumption of the device increases, which are problematic.
Patent Literature 1: JP 2016-24495 A
Non Patent Literature 1: M. Elgandi et al., “Revisiting QRS Detection Methodologies for Portable, Wearable, Battery-Operated, and Wireless ECG Systems”, PLOS ONE, Vol. 9, No. 1, e84018, 2014, DOI: 10.1371/journal. pone. 0084018
Embodiments of the present invention have been made to solve the above problems, and an object of embodiments of the present invention is to provide an RRI measurement device, an RRI measurement method, and an RRI measurement program capable of accurately measuring an RRI of a subject on the basis of sampling data of an electrocardiogram signal acquired at a low sampling rate.
An RRI measurement device according to embodiments of the present invention includes: a detection unit configured to detect a feature point derived from an RS wave from a sampling data sequence of an electrocardiogram signal of a subject; an estimation unit configured to search for two sampling points where a product of adjacent pieces of sampling data is zero or less in sampling data near the feature point and to estimate a time at which the electrocardiogram signal becomes zero using the two sampling points; and a calculation unit configured to calculate an RRI on the basis of time-series data of the time estimated by the estimation unit.
Further, an RRI measurement device according to embodiments of the present invention includes: a detection unit configured to detect a feature point derived from an RS wave from a sampling data sequence of an electrocardiogram signal of a subject; an estimation unit configured to search for two time difference values where a product of adjacent time difference values is zero or less among time difference values of sampling data near the feature point and to estimate a time at which the electrocardiogram signal becomes zero using the two time difference values; and a calculation unit configured to calculate an RRI on the basis of time-series data of the time estimated by the estimation unit.
An RRI measurement method according to embodiments of the present invention includes: a first step of detecting a feature point derived from an RS wave from a sampling data sequence of an electrocardiogram signal of a subject; a second step of searching for two sampling points where a product of adjacent pieces of sampling data is zero or less in sampling data near the feature point and estimating a time at which the electrocardiogram signal becomes zero using the two sampling points; and a third step of calculating an RRI on the basis of time-series data of the time estimated in the second step.
Further, an RRI measurement method according to embodiments of the present invention includes: a first step of detecting a feature point derived from an RS wave from a sampling data sequence of an electrocardiogram signal of a subject; a second step of searching for two time difference values where a product of adjacent time difference values is zero or less among time difference values of sampling data near the feature point and estimating a time at which the electrocardiogram signal becomes zero using the two time difference values; and a third step of calculating an RRI on the basis of time-series data of the time estimated in the second step.
Further, an RRI measurement program of embodiments of the present invention causes a computer to execute each of the above steps.
According to embodiments of the present invention, providing a detection unit, an estimation unit, and a calculation unit makes it possible to accurately measure an RRI of a subject on the basis of sampling data of an electrocardiogram signal acquired at a low sampling rate. In embodiments of the present invention, it is unnecessary to acquire an electrocardiogram signal at a high sampling rate, and thus it is possible to reduce power consumption of an RRI measurement device.
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
The signal processing unit 2 includes an analog front end (AFE) 20, an analog digital converter (ADC) 21, and a micro control unit (MCU) 22.
The sensor 1 detects an ECG signal of a subject. The AFE 20 amplifies a weak ECG signal detected by the sensor 1.
The ADC 21 converts the ECG signal amplified by the AFE 20 into digital data at a predetermined sampling rate. Examples of the sampling rate include 125 samples/sec. and 250 samples/sec.
The MCU 22 is a circuit that performs signal processing for calculating an RRI.
The storage unit 3 stores a program of the MCU 22, sampling data of an ECG signal output from the ADC 21, and data calculated by the MCU 22.
The data storage unit 220 of the MCU 22 adds sampling time information to each piece of sampling data of ECG signals output from the ADC 21 and stores the sampling data in the storage unit 3.
The communication unit 4 includes a circuit that wirelessly transmits the sampling data of the ECG signal and the data calculated by the MCU 22 to an external device (not illustrated) such as a smartphone.
The power supply unit 5 is a circuit that supplies power to the entire RRI measurement device.
The filtering unit 222 performs a filtering process by using an anti-aliasing filter or band-pass filter on the sampling data sequence acquired by the data acquisition unit 221 (step S101 in
The feature point detection unit 223 detects a feature point derived from an RS wave from the sampling data sequence subjected to the filtering process (step S102 in
In the present embodiment, a value (potential) of the sampling data of the ECG signal is denoted by ECG[n], and a sampling time is denoted by T[n]. The letter “n” is a number given to data of one sampling. It is needless to say that the sampling time is later as the number n is larger.
As a method of detecting the feature point, a method using a threshold is simple. The feature point detection unit 223 only needs to detect a section in which the sampling data ECG[n] exceeds a predetermined positive threshold for detecting the R wave as a section of the R wave and detect any one representative point of the sampling data ECG[n] in the section as the feature point. For example, a peak point having the highest potential may be used as the feature point, or a first sampling point exceeding the threshold may be used as the feature point. The feature point detection unit 223 detects such a feature point in each section of the R wave.
The feature point detection unit 223 may detect the feature point by another method. Another method is, for example, a method of using a time difference value (first derivative) of an ECG signal.
The feature point detection unit 223 calculates a time difference value dECG[n] of the sampling data ECG[n] as in the following expression by using the sampling data ECG[n] and data ECG[n−1] one sampling therebefore.
dECG[n] =ECG[n]−ECG[n−1] (1)
The feature point detection unit 223 calculates the time difference value dECG[n] at each sampling time (each piece of the sampling data). For the time difference value dECG[n], a peak caused by a steep change from the R wave to the S wave appears as a negative value.
The feature point detection unit 223 only needs to detect a section in which the time difference value dECG[n] is lower than a predetermined negative threshold for detecting the RS wave as a section from the R wave to the S wave and detect any one representative point of the time difference values dECG[n] in the section as the feature point. For example, a peak point having the lowest potential may be used as the feature point, or a first time difference value dECG[n] that becomes lower than the threshold may be used as the feature point. When detecting a negative peak point of the time difference value dECG[n], the feature point detection unit 223 may set a positive peak point immediately before the negative peak point as a peak point of the R wave and detect the peak point of the R wave as the feature point. The feature point detection unit 223 detects the feature point in each section from the R wave to the S wave.
The detection method described above is disclosed in Non Patent Literature 1. Further, the method of detecting the feature point is not limited to the method of the present embodiment, and the feature point may be detected by a method other than the method of the present embodiment.
Next, the time estimation unit 224 estimates a time at which the ECG signal becomes zero on the basis of the feature point detected by the feature point detection unit 223 and sampling data near the feature point.
Specifically, the time estimation unit 224 initializes a number i for specifying a base point of time calculation to a number n of the sampling data ECG[n] detected as the feature point by the feature point detection unit 223 and sets the sampling data ECG[n] as the base point of the time calculation (step S103 in
Then, the time estimation unit 224 determines whether or not sampling data ECG[i] of the base point is smaller than zero (step S104 in
In this way, a position of the base point is shifted forward by one sampling until the product ECG[i]×ECG[i−1] of the sampling data ECG[i] of the base point and the sampling data ECG[i−1] one sampling therebefore becomes zero or less. When the product is zero or less (YES in step S105), the time estimation unit 224 calculates a ratio Δi obtained by dividing a difference between a time T[i] of the base point and a time at which the ECG signal becomes zero by a sampling period Δt from the following expression (step S107 in
Δi=ECG[i]/(ECG[i−1]−ECG[i]) (2)
Then, the time estimation unit 224 sets a result of adding a value obtained by multiplying the ratio Δi by the sampling period Δt to the time T[i] of the base point as a time T0 at which the ECG signal becomes zero (step S108 in
T
0
=T[i]+Δi×Δt (3)
Meanwhile, when determining in step S104 that the sampling data ECG[i] of the base point is zero or more, the time estimation unit 224 determines whether or not a product of the sampling data ECG[i] and data ECG[i+1] one sampling thereafter is zero or less (step S109 in
In this way, the position of the base point is shifted backward by one sampling until the product ECG[i]×ECG[i+1] of the sampling data ECG[i] of the base point and the sampling data ECG[i+1] one sampling thereafter becomes zero or less. When the product is zero or less (YES in step S109), the time estimation unit 224 calculates the ratio Δi obtained by dividing the difference between the time T[i] of the base point and the time at which the ECG signal becomes zero by the sampling period Δt from the following expression (step S111 in
Δi=ECG[i]/(ECG[i]−ECG[i+1]) (4)
The process in step S108 is as described above. The time estimation unit 224 performs the processes in steps S103 to S111 for each feature point until the processes are completed for all the feature points detected by the feature point detection unit 223 (YES in step S112 in
For example, in a case where a peak point Dpeak of the R wave is detected as the feature point, the time estimation unit 224 searches for two sampling points where a product of adjacent pieces of the sampling data is zero or less in the sampling data near the feature point and calculates the time T0 at which the ECG signal becomes zero using the two sampling points. In the example of
Next, the RRI calculation unit 225 calculates a time interval between two adjacent times T0 as an RRI on the basis of the time-series data of the times T0 stored in the storage unit 3 (step S113 in
The heart rate calculation unit 226 calculates an instantaneous heart rate X (beats/min.) for each RRI on the basis of the RRIs calculated by the RRI calculation unit 225 (step S114 in
X=60000/RRI (5)
Time-series data of the calculated instantaneous heart rate X is stored in the storage unit 3. The heart rate calculation unit 226 may calculate not only the instantaneous heart rate X but also an average value of the instantaneous heart rate X.
The communication unit 4 wirelessly transmits the sampling data sequence of the ECG signal, the time-series data of the RRIs and the average value of the RRIs calculated by the RRI calculation unit 225, and the time-series data of the instantaneous heart rate X and the average value of the instantaneous heart rate X calculated by the heart rate calculation unit 226 to the external device such as a smartphone.
Therefore, in the present embodiment, it is possible to accurately measure the RRIs and the heart rate of the subject on the basis of the sampling data of the ECG signal acquired at a low sampling rate such as 125 samples/sec. or 250 samples/sec. In the present embodiment, it is unnecessary to acquire the ECG signal at a sampling rate higher than 500 samples/sec., and thus it is possible to reduce power consumption of the RRI measurement device.
Next, a second embodiment of the present invention will be described. Also in the present embodiment, a configuration of the entire RRI measurement device is similar to that of the first embodiment. Thus, the description will be made by using the reference signs of
The filtering unit 222 performs a filtering process by using an anti-aliasing filter or band-pass filter on the sampling data sequence acquired by the data acquisition unit 221 (step S201 in
As in the first embodiment, the feature point detection unit 223 detects a feature point derived from an RS wave from the sampling data sequence subjected to the filtering process (step S202 in
The time estimation unit 224a estimates a time at which the ECG signal becomes zero on the basis of a time difference value of sampling data of the feature point detected by the feature point detection unit 223 and a time difference value of sampling data near the feature point.
Specifically, the time estimation unit 224a initializes a number i for specifying a base point of time calculation to a number n of the sampling data ECG[n] detected as the feature point by the feature point detection unit 223 and sets a time difference value dECG[i] of the sampling data ECG[i] as the base point of the time calculation (step S203 in
dECG[i]=ECG[i]−ECG[i−1] (6)
Then, the time estimation unit 224a determines whether or not the time difference value dECG[i] of the sampling data ECG[i] of the base point is smaller than zero (step S204 in
In this way, a position of the base point is shifted forward by one sampling until the product dECG[i]×dECG[i−1] of the time difference value dECG[i] and the time difference value dECG[i−1] one sampling therebefore becomes zero or less. When the product is zero or less (YES in step S205), the time estimation unit 224a calculates the ratio Δi obtained by dividing the difference between the time T[i] of the base point and the time at which the ECG signal becomes zero by the sampling period Δt from the following expression (step S207 in
Δi=dECG[i]/(dECG[i−1]−dECG[i]) (7)
Then, the time estimation unit 224a sets a result of adding a value obtained by multiplying the ratio Δi by the sampling period Δt to the time T[i] of the base point as a time T0 at which the ECG signal becomes zero (step S208 in
Meanwhile, when determining in step S204 that the time difference value dECG[i] of the sampling data dECG[i] of the base point is zero or more, the time estimation unit 224a determines whether or not the product of the time difference value dECG[i] and the time difference value dECG[i+1] one sampling thereafter is zero or less (step S209 in
In this way, the position of the base point is shifted backward by one sampling until the product dECG[i]×dECG[i+1] of the time difference value dECG[i] and the time difference value dECG[i+1] one sampling thereafter becomes zero or less. When the product is zero or less (YES in step S209), the time estimation unit 224a calculates the ratio Δi obtained by dividing the difference between the time T[i] of the base point and the time at which the ECG signal becomes zero by the sampling period At from the following expression (step S211 in
Δi=dECG[i]/(dECG[i]−dECG[i+1]) (8)
The process in step S208 is as described above. The time estimation unit 224a performs the processes in steps S203 to S211 for each feature point until the processes are completed for all the feature points detected by the feature point detection unit 223 (YES in step S212 in
For example, when the peak point Dpeak of the R wave is detected as the feature point, dDpeak corresponds to feature points in
As in the first embodiment, the RRI calculation unit 225 calculates a time interval between two adjacent times T0 as an RRI from the time-series data of the times T0 stored in the storage unit 3 (step S213 in
A process of the heart rate calculation unit 226 (step S214 in
The communication unit 4 wirelessly transmits the sampling data sequence of the ECG signal, the time-series data of the RRIs and the average value of the RRIs calculated by the RRI calculation unit 225, and the time-series data of the instantaneous heart rate X and the average value of the instantaneous heart rate X calculated by the heart rate calculation unit 226 to the external device such as a smartphone.
Therefore, effects similar to those of the first embodiment can be obtained in the present embodiment. In the first and second embodiments, the feature point is detected after the sampling data sequence of the ECG signal is subjected to the filtering process, but the filtering unit 222 is not an essential component in the present invention.
The storage unit 3 and the MCU 22 described in the first and second embodiments can be implemented by a computer including a central processing unit (CPU), a storage device, and an interface and a program for controlling those hardware resources. A configuration example of the computer is illustrated in
Embodiments of the present invention can be applied to a technique for measuring an RRI.
1 Sensor
2 Signal processing unit
3 Storage unit
4 Communication unit
5 Power supply unit
20 AFE
21 ADC
22 MCU
220 Data storage unit
221 Data acquisition unit
222 Filtering unit
223 Feature point detection unit
224 Time estimation unit
225 RRI calculation unit
226 Heart rate calculation unit.
This application is a national phase entry of PCT Application No. PCT/JP2020/040202, filed on Oct. 27, 2020, which application is hereby incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/040202 | 10/27/2020 | WO |