RR Interval Time Series Formulation in ECG Signals

Sautami Basu *  Yusuf U Khan **
* M.Tech. Student,Department of Electrical Engineering, Aligarh Muslim University,India
** Associate Professor, Department of Electrical Engineering, Z.H. College of Engineering & Technology, Aligarh Muslim University, Aligarh.

Abstract

The clinical importance of the ECG signal in cardiology is well established. Since noise is embedded with signal during acquisition it has to be filtered out in order to deliver accurate fast and reliable estimation of clinical parameters. The Rpeak is an important fiducial point. In the present paper an efficient and straight forward R-peak detection algorithm has been proposed. This leads to formulation of heart rate from accurate RR interval time series. The heart rate is calculated for various ECG records and then compared with original values. The records have been taken from MIT/BIH database to validate the efficiency of the proposed method. Simulation is carried out in MATLAB environment.

Keywords :

Introduction

There is growing demand for the systems capable of continuous and long term monitoring of people's biomedical signals as they go about their normal daily lives without obstructing or annoying them. Electro Cardio Gram (ECG) monitors provide particularly useful information on vital signs,and it being the most commonly recorded physiological signal.

An ECG is generated by a nerve impulse stimulus to heart. The most important ECG signal features in a single cardiac cycle are labeled as shown in the Figure 1.

Figure 1. Simplified Waveform of an ECG Signal

Abnormal patterns of ECG may be due to pathological states or occasionaly they may be due to various types of artifacts [7]. Among these artifacts the power line interference and the baseline wandering are the most significant and can strongly affect ECG signal analysis. Signal conditioning for base wander correction and noise suppression is typically the first step in the analysis of ECG signal.

Of the many morphological markers of the ECG, the QRS complex and the R-peak are the most significant ones with the contribution of R-peak to R to R interval being a driving factor. The number of R peaks in a specified time interval gets translates to the heart rate (in beats per minute).

 

Seema et al (2012) [8] have emphasized that filtering is the most important issue as the signal voltage level is as low as 0.5 to 5 mV and is susceptible to artifacts that are larger than it.

Literature Review

In 1986 Hamilton and Tompkins [1] examined QRS detection rules. They proposed and also implemented optimized QRS detection algorithm in real time in which RR interval estimator was used. Sachin et al (2010) [2] measured RR interval using Pan-Tompkins algorithm – a real time QRS detection algorithm. Choy & Leung (1988) [11] suggested in literature the real time microprocessor based 50 Hz notch filter for ECG. Chavan et al (2006) [12] have advised the use of Kaiser window to design digital filter for the removal of baseline wander, power line interference and encephalogram in ECG. Shayesteh & Mahdi (2009) [13] have developed a new window for designing FIR(Finite Impulse Response) filters. Mbachu et al (2011) [16] have discussed filtration of artifacts in ECG signal using rectangular window based digital filters. Ravindra Pratap et al (2013) [14] have used low pass filter with various window techniques for the reduction of noise from ECG signal. Sivakumar et al (2012) [15] have shown the way for the extraction of cardiac component like QRS complex by rejecting the background noise with the help of filtering techniques. Ashwini et al [9] have determined bradycardia and tachycardia from ECG signal using wavelet transform. One of the steps to be followed is the detection of RR intervals. Gautam et al [10] have opined that the most important interval to be used for the determination of cardiovascular abnormality condition is RR interval (normal value is 600-1200 ms). Sahil et al [5] have suggested efficient RR interval time series formulation for heart rate detection. Shogo Nakaya & Yuichi Nakamura [4] have improved adaptive sensing method for ECG signals by incorporating RR interval prediction. Prakruti et al [3] have developed a peak detector algorithm to detect the R-peaks of the smoothened ECG waveform which is free from baseline wandering.

Methodology

ECG signal processing can be roughly divided into two stages by functionality, that are pre-processing and feature extraction. The pre-processing stage removes or suppresses noise from the raw ECG signal and the feature extraction stage extracts diagnostic information from the ECG signal. The Figure 2 depicts the layout of the process.

Figure 2. Process Layout

High pass filter:

This filter reduces baseline wander in the ECG. The data is sampled at 128 Hz. A 9th-order high pass Butterworth filter with cut off frequency of 0.5 Hz is used to remove base line wander from all the five records. Figure 3 shows the zoomed view of Power Spectral Density(PSD) indicating the effectiveness of the filter.

Figure 3. Zoomed View of PSD around 0-2.5 Hz

Notch filter:

This filter reduces the power line interference. An IIR(Infinite Impulse Response) notch filter removes a 60 Hz component from a signal sampled at 128 Hz. Q(Quality) factor for the filter is set to 35 and it is used to specify the filter bandwidth. IIR notch filter (wo, BW) turns a digital notching filter with the notch located at wo, and with the bandwidth set at -3 dB. Figure 4 shows the zoomed view of the Power Spectral Density.

Figure 4. Zoomed view of PSD

Threshold:

An appropriate threshold is selected by empirical search to detect R-peaks successfully.

Steps followed in the proposed algorithm

Results

The detection algorithm is applied to ECG records from MIT/BIH (Massachusetts Institute of Technology/Beth Israel Hospital) database [6] in order to verify its efficacy. Five ECG records (number 16272, 16420, 16483, 16773 &16786) have been chosen. The R-R interval and the heart rate have been determined for each record-once without filtering the ECG signal and then denoising the signal. The results have been compared against the values as cited in the reference [5].

Normal Sinus Rhythm Database

Table 1 and Table 2 show the comparison of RR interval and heart rate respectively determined by the algorithm suggested by Verma & Vashistha and the proposed algorithm against the original values [5]. The results in the form of histogram shown in Figure 5 and Figure 6 validate both the algorithms. As it is evident the results will improve with better filtering techniques. Furthermore, the results obtained by the proposed algorithm, though simple, straight forward and easy to implement, match closely with the results obtained by the algorithm suggested by Verma & Vashistha.

Table 1. R-R Interval as determined by different algorithms for five records

Table 2. Heart rate as determined by different algorithms for five records

Figure 5. Histogram of R-R interval

Figure 6. Histogram of heart rate

Conclusion

The analysis of ECG as a diagnostic tool is relatively an old field and it is therefore often assumed that the ECG is a simple signal that has been fully explored. But the ECG signal processing in an embedded platform is a challenge which has to deal with several issues. There is no denying that the care must be taken to nullify the artifacts which corrupt the original ECG signal that may lead to wrong diagnosis. As it is evident from Table 2 showing the results, there is scope of improvement, so that more accurate and reliable prediction of the heart rate can be made. The aim is to find an efficient method for the analysis of ECG signal which is simple and has good accuracy and less computational time. For better extraction of features in ECG signals focus is to be given towards independent component analysis, adaptive filtering and empirical mode decomposition method. Moreover Labview may be employed as an effective tool for the study and analysis of ECG signal.

References

[1]. Hamilton, P.S. and Tompkins, W.J. (1986). Quantitative Investigation of QRS detection rules using the MIT/BIH Arrhythmia Database, IEEE Trans on Biomedical Engineering BME-33, 1157.
[2]. Singh, S. and Netala, N.G. (2010). Pattern analysis of different ECG signal using Pan-Tompkins algorithm, International Journal on Computer Science and Engineering, 2, 2502.
[3]. Joshi, P.J et al. (2013). ECG denoising using MATLAB, Int. Journal of Scientific & Engineering Research, 4, 1401.
[4]. Nakaya, S. and Nakamura, y. (2013). Adaptive sensing of ECG signals using R-R Interval prediction, 35th Annual International Conference of the IEEE EMBS, Japan.
[5]. Verma, S. and Vashistha, R., Efficient RR – interval time series formulation for heart rate detection DSP Research group, Jammu.
[6]. http:/ /www. Physionet.org/ physiobank /database /mghdb/.
[7]. Kumar. N et al. (2012). Signal Processing of ECG using Matlab, Int. Journal of Scientific & Research publications, 2,1.
[8]. Nayak,S et al. (2012). Filtering techniques for ECG signal processing , Int. Journal of Research in Engineering & Applied Science, 2, 671.
[9]. Kulkarni, A.V & Patil, H.T. (2012). Determination of Bradycardia & Tachycardia from ECG signal using wavelet transform, Int. Journal of Electronics Signals & Systems, 1, 68.
[10]. Sahoo, G.k et al, ECG Signal analysis for detection of cardiovascular abnormalities and Ischemic episodes, NIT Rourkela.
[11]. Choy, T.T & Leung, P.M. (1988). Real time microprocessor based 50 Hz notch filter for ECG, Journal of Biomedical Engineering, 3, 285.
[12]. Chavan, S.M et al. (2006). Use of Kaiser window for ECG processing, Proceedings of the 5th WSEAS International Conference on Signal Processing , Robotics & Automation, Spain, 285.
[13]. Shayesteh, G.M & Mahdi, NK. (2009). FIR filter design using a new window function, 16th IEEE International Conference on Digital Signal Processing, 1.
[14]. Narwaria, R.P et al. (2013). Reduction of noise from ECG signal using FIR low pass filter with various window techniques, Current Research in Engineering Science & Technology Journal, 1, 117.
[15]. Sivakumar, R. et al. (2012). Noise analysis & QRS detection in ECG signals, International conference on Computer Technology & Science, Singapore, 47, 141.
[16]. Mbachu, C.B et al. (2011). Filtration of artifacts in ECG signal using rectangular window based digital filters, Int. Journal of Computer Science, 8, 279.