Literature DB >> 28546863

ECG signal analysis using modified S-transform.

Birendra Biswal1.   

Abstract

Accurate detection of QRS complexes is essential for the investigation of heart rate variability. Several transform techniques have been proposed and extensively used for the detection and analysis of QRS complexes. In this proposed work, the de-noised ECG signal is subjected to a modified S-transform for QRS complex detection.The performance analysis of the proposed work is evaluated using parameters such as sensitivity, positive predictivity and accuracy. The algorithm delivers sensitivity, positive predictivity and overall accuracy of 99.91, 99.91 and 99.77%, respectively. Furthermore, a search back mechanism is employed, which specifies the filtered electrocardiogram (ECG) segment, which was traced for the true R-peak locations. The modified S-transform based QRS complex detection algorithm provides an excellent search back range of only ±2 samples in comparison with other earlier proposed algorithms.

Entities:  

Keywords:  ECG signal analysis; FIR filters; QRS complex detection algorithm; electrocardiogram; electrocardiography; medical signal processing; modified S-transform; true R-peak locations

Year:  2017        PMID: 28546863      PMCID: PMC5437709          DOI: 10.1049/htl.2016.0078

Source DB:  PubMed          Journal:  Healthc Technol Lett        ISSN: 2053-3713


Introduction

Physical interpretation of the electrical movement of the heart is termed as electrocardiogram (ECG). It is a record of the bio-electric potentials, which commonly occurs due to polarisation and depolarisation activity of cardiac muscles acquired by placing the electrodes on the standardised locations of the skin. An ECG waveform is depicted in Fig. 1. Signal accuracy is of utmost importance for correct interpretation about heart condition. When the ECG signal is acquired, it encounters different kinds of artifacts. They are typically electrode contact noise, power line interference, motion artifacts, electromyography noise, instrumentation noise that are produced by electronic devices and so on, which have to be removed for accurate interpretation and analysis. In ECG signal, different wave sequences like P, QRS, T and U waves are interrelated with each beat. The most vital part of ECG signal processing is analysing and understanding the QRS complex waveform. In which, ‘R’-wave is a very important section of this complex and plays a pivotal role in the interpretation of heart rhythm anomalies. It also determines different relevant features of the heart.
Fig. 1

Normal ECG waveform

Normal ECG waveform Of late many well-known transforms have been applied for QRS complex detection. However, the recent advances in signal processing have given a new insight for analysing ECG signal called the modified S-transform, which is derived from S-transform proposed in 1996 by Stockwell [1, 2]. Recently S-transform and Shannon energy [3] based QRS complex detection has been proposed. In the proposed work, the modified S-transform is applied on filtered ECG signal to improve the presence of QRS complexes. The location of R-peak detection is carried out by setting a threshold of 30% on the maximum peak. The proposed method is validated and compared for different established parameters like positive predictivity, sensitivity and accuracy with earlier existing algorithm and it is found that it yields better results and also the search back range is only ±2 samples. In this Letter, we present modified S-transform based QRS complex detection algorithm. The main objective of this Letter is to study the application of modified S-transform for emphasising QRS complex portions and suppressing the other local waves in the ECG signal. The proposed method consists of three major stages: noise removal using median and finite impulse response (FIR) filters, enhancement of QRS complexes using modified S-transform and peak detection using amplitude-dependent thresholding. The rest of this Letter is organised as follows. Section 2 presents the existing QRS detection algorithms. Section 3 describes the proposed modified S-transform based QRS detection algorithm. Section 4 presents the evaluation results for the standard MIT-BIH arrhythmia ECG databases. Finally, conclusions are drawn in Section 5.

Related works

Various QRS detection methods have been presented in literature [3-23]. Zidelmala et al. [3] proposed an QRS detection method using S-transform and Shannon energy. Pan and Tompkins [5] proposed a real-time QRS detection algorithm based on the digital filters and sets of amplitude-dependent, duration-dependent thresholds. The thresholds are computed using the previous peak information detected by the algorithm [5]. Hamilton and Tompkins [6] investigated the QRS detection rule using the MIT/BIH arrhythmia database. Arzeno et al. studied the performance of first derivative based QRS detection algorithms with different kinds of detection rules. The limitations of four methods are studied using the MIT/BIH arrhythmia database [7]. Afonso et al. [8] presented ECG beat detection using filter banks. Okada [9] proposed a digital filter for the QRS complex detection. The method was tested on 1085 beats of ECG of the patient (605 normal and 480 abnormal). A combined high-pass and power-line interference rejection filter with averaging over 17 samples distanced by ten samples (filter 10 × 17) was proposed for QRS complex detection [10]. Benitez et al. [11] studied the use of the Hilbert transform for detecting the QRS complexes. The QRS detection is based on the first differential of the ECG signal and its Hilbert transformed data to locate the R-wave peaks in the ECG waveform. Abibullaev and Don Seo [13] proposed a QRS detection method using wavelets and artificial neural networks. Zidelmal et al. [15] presented QRS detection using wavelet coefficients. A real-time QRS method was reported based on moving-averaging incorporating with wavelet de-noising [16]. The QRS detector was proposed using continuous wavelet transform (WT) [17]. The dominant rescaled wavelet coefficients was applied to magnify QRS complex and reduce the effects of other peaks. Poli et al. [18] proposed genetic design of optimum linear and non-linear QRS detectors. Mehta and Ligayat [19] presented comparative study of QRS detection in single lead and 12-lead ECG based on entropy and combined entropy criteria using support vector machine. Meyer et al. [21] presented an approach to automatically combine different QRS complex detection algorithms, here the Pan–Tompkins and wavelet algorithms, to benefit from the strengths of both methods. Lewandowski et al. [23] proposed a simple real-time QRS detection algorithm utilising curve-length concept with combined adaptive threshold for ECG signal classification. The standard QRS detection algorithm composed of three stages: (i) pre-processing, (ii) detection and (iii) post-processing. The main objective of signal filtering is to eliminate artifacts in pre-processing stage. In the second stage, various transformation techniques are used to generate the feature signal form the filtered signal, in which the QRS occurrence is determined by using certain peak detection logic. Finally, the decision based rules are employed for reducing the detection of false positive (FP) and false negative (FN) in the post-processing stage.Considerably good performance of these algorithms is not entirely helpful in case of noisy ECG signals. Where the detection accuracy still remains an open problem and a promising solution to these problems is under progress. R-peak detection in this Letter is carried out using modified S-transform. The performance of the proposed work was compared with other published work by using MIT-BIH arrhythmia database (MITDB).

Algorithm overview

Fig. 2 describes the various steps involved for the detection of R peaks in the proposed QRS algorithm.The ECG signals shall be processed in four distinct stages as in filtering, R-peak detection, true R-peak locator and parameter calculation.
Fig. 2

Proposed QRS complex detection algorithm

Proposed QRS complex detection algorithm

Filtering

Most of the ECG signals available in MIT-BIH database are degraded with different artifacts like power line interference, muscle interference, composite noise and so on, on contrary to the baseline shift, which is low-frequency noise, i.e. <0.5 Hz, the power line interference is high-frequency noise above 50 Hz. Hence the initial step is to apply a median filter to the input ECG signal to remove the baseline drift using a window size of 200 ms. The median filter system function is given by The median filter usually depends on both past and future values for the prediction of the current point. In the next step, the presence of 60 Hz interference, muscle noise, T-wave interference and baseline wander are nullified by passing the ECG signal through a band-pass filter. The QRS energy is maximised by setting the pass band approximately to 5–15 Hz as it is a cumbersome task to design a band-pass filter directly for the desired band of 5–15 Hz. With this design specification the 3 dB pass band is achieved from about 5–12 Hz by cascading both low- and high-pass filters. This is fairly near to the design goal. The ECG signal is normalised for eliminating and regulating both DC offset and peak levels, respectively. Fig. 3 shows the plot of ECG signal before and after filtering.
Fig. 3

Plot of ECG signal before and after filtering

a Input ECG signal

b ECG signal after median filtering

Plot of ECG signal before and after filtering a Input ECG signal b ECG signal after median filtering

R-peak detection

The R-peak detection can be improved by using various kinds of transforms, which provides the correct location of R-peaks. Different transform techniques used in R-peak detection are as follows.

S-transform

The S-transform is derived from both the short-time Fourier transform (STFT) and the continuous WT. Hence, it can be realised as a frequency-dependent STFT or as a phase-corrected WT. According to Stockwell et al. [1], the S-transform of a continuous time series signal is given by Here the window function considered is a Gaussian function given as In which f represents frequency, ‘t’ and ‘’ are the time variables, ‘k’ is a scaling factor and is responsible for controlling the number of oscillations in the window. However, the Fourier transform of a Gaussian function is also a Gaussian; the above equation may be further written as where the dimensions of α and frequency are same.

Modified S-transform

The window width varies inversely with frequency along with two additional positive constants termed as modified S-transform [24] which improves the position of R-peak detection with better time and frequency resolution. The S-transform for a time series is defined as [1] The standard deviation in (5) is represented as follows For the representation of the modified Gaussian window, we have selected the standard deviation to be where are positive constants, f is the signal fundamental frequency and . In (5), as the chosen window is Gaussian, the standard deviation of the earlier Gaussian function is changed in accordance with frequency to produce a new modified Gaussian window In this both ‘t’and ‘’ are the time variables. However both ‘k’ and ‘q’ are the scaling factors that controls the number of oscillations in the window. f is a frequency variable and p stands for a constant. It is found that the window broadens in the time domain as k value is increased; subsequently in frequency domain the frequency resolution is increased. While, by setting and the STFT can be obtained. As a result, the generalised S-transform with modified Gaussian window can be effectively represented as The S-transform of a signal in discrete form is obtained as Finally, the discrete Fourier transform of is shifted by n in order to get being given by Further S-transform of signal and noise is From (11), it is evident that the noise can be filtered out from the S-transform with modified Gaussian window by a simple thresholding technique [25].

R-peak detection and correction

After extracting the QRS complex candidate signal, the amplitude-dependent threshold rule is employed for detecting the peaks. Then, the detected peaks are further processed to find true R-peak locations. The location of maximum peak within window of ±25 ms centred at the location of detected peak by the algorithm is validated for the window position with same duration in a ground-truth annotation file. Otherwise, detected peaks are considered as FPs if there are no peaks in the annotation record within the specified search window or as the FP and the FN detection.

Results and discussion

The S-transform with modified Gaussian window based QRS complex detection algorithm is calculated by using the MIT-BIH arrhythmia database [26]. The database contains 48 half hour length records from two channels of ECG data, which are sampled at a frequency of 360 Hz. Total 48 subjects are considered for testing. In the simulation study, the most abnormal record 107 has been considered, as shown in Fig. 4a, it is an original ECG of a 63-year old man characterised by the presence of muscle noise. It is evident that the muscle artefacts are influencing the original ECG signal. Although the artefacts amplitude is higher than the R-peaks previously, it is significantly attenuated using modified S-transform as evident from the normalised frequency contour in Fig. 4b. Thus R-peaks are detected accurately as shown in Fig. 4c. Fig. 5a depicts multiform premature ventricular contractions (PCVs), tiny R-waves with substantial baseline drift, for the segment of record 228 (a woman of 80 years old). The modified S-transform sharply localises and detects all the R-peaks illustrated in Figs. 5b and c, respectively. Thus, S-transform with modified Gaussian window is an effective tool for the localisation and detection of R-peaks by controlling parameter. The search back range is only ±2 samples for R-peak detection.
Fig. 4

ECG waveform having segment of record 107 and detected R-peaks

a ECG waveform having segment of record 107

b R-peak detection using modified S-transform frequency contour

c Detected R-peaks

Fig. 5

ECG waveform having segment of record 228 and detected R-peaks

a ECG waveform having segment of record 228

b R-peak detection using modified S-transform frequency contour

c Detected R-peaks

ECG waveform having segment of record 107 and detected R-peaks a ECG waveform having segment of record 107 b R-peak detection using modified S-transform frequency contour c Detected R-peaks ECG waveform having segment of record 228 and detected R-peaks a ECG waveform having segment of record 228 b R-peak detection using modified S-transform frequency contour c Detected R-peaks

Performance assessment

Three statistical parameters have been considered to test the performance of the QRS complex detection algorithm. The sensitivity, the positive predictivity and the accuracy are defined, respectively, as where the correctly detected heart beats signify the true positive (TP). Incorrectly detected heart beats indicate FP and the undetected heart beats specify FN. The simulation results reported in Table 1 summarises S-transform with modified Gaussian window with a total of 87 FNs, and 91 FPs. For all the annotated beats the overall sensitivity and positive predictivity are 99.91 and 99.91%, respectively. However, the overall accuracy is 99.88%. Although the Hilbert transform shows very little better sensitivity and positive predictivity as given in Table 2, but the parameters were not calculated for all the segments of ECG records as in the case for modified S-transform shown in Table 1. On the other hand, the individual ECG records detection accuracies vary from 99.32 to 100%, sensitivity vary from 99.25 to 100%, positive predictivity vary from 99.04 to 100%.
Table 1

Experimental results of modified S-transform based R-peak detection algorithm for MIT/BIH database

Rec. no.Total beatsTPFPFNSe, %+P, %Acc, %
1002273227300100100100
1011865186500100100100
102218721863199.9599.8699.81
1032084208400100100100
104222922289199.9599.6099.55
1052572256201099.6010099.60
106202720252299.9099.9099.80
107213721352299.9099.9099.81
10817631753101099.4399.4398.87
109253225300299.9210099.92
111212421230199.9510099.95
1122539253900100100100
1131795179500100100100
114187918782199.9599.8999.84
1151953195300100100100
11624122394231899.2599.0498.32
1171535153500100100100
118227822740499.82100100
1191987198710010099.4999.49
1211863186300100100100
1222476247600100100100
1231518151800100100100
1241619161900100100100
200260125990299.9210099.92
201196319612299.8999.8999.80
202213621351199.9599.9599.91
203298029766499.8699.8099.66
205265626530399.8910099.89
207186018592199.9499.8999.84
208295529522399.9099.9399.83
209300530041199.9799.9799.93
210265026491199.9699.9699.92
2122748274800100100100
2133251325100100100100
214226222612199.9699.9199.87
215236323631010099.9699.96
217220822072199.9599.9199.86
2192154215400100100100
220204820481010099.9599.95
221242724241399.8799.9699.84
2222483248300100100100
2232605260500100100100
228205320504399.8599.8099.66
230225622553199.9699.8799.82
2311571157100100100100
232178017790199.9410099.94
233307930760399.9010099.9
234275327491499.8599.9699.82
All108,494108,407918799.9199.9199.77
Table 2

Comparison of proposed algorithm

Sl. no.MethodSensitivityPredictivity
1the proposed method99.9199.91
2Pan–Tompkins [5]99.7599.54
3Hilbert transform [11]99.9499.93
4curve-length transform [23]99.8699.84
5S-transform [3]99.8499.89
Experimental results of modified S-transform based R-peak detection algorithm for MIT/BIH database Comparison of proposed algorithm In general, any kind of problem records are illustrated by artifacts, baseline shifts and the intensity of noise. ECG segment of record 108 has abnormally tall, spiky P-waves quite unusual in morphology of usual P-waves. On account of their high slopes these P-waves are classified as QRS complexes at the beginning and end of this record. This amounts a high FP count on this record. Similarly, ECG segment of record 116 will be containing some non-QRS waves with severe unusual morphologies leading to FPs. However, the earlier results of other QRS detection algorithm published are compared with the proposed algorithm for R-peak detection. It is found that the proposed algorithm performs better than the existing algorithm. Table 2 gives a comparison of proposed algorithm with earlier algorithm. Even in the presence of prominent muscular noise and base line artifacts, the proposed method shows better performance for signal affected with noise. From Table 2, it is evident that the Hilbert transform based algorithm delivers better sensitivity and positive predictivity in comparison to both Pan–Tompkins and curve-length transform based algorithm. However, the proposed modified S-transform based algorithm shows significant improvement in terms of sensitivity and positive predictivity considering all segments of ECG records than all earlier existing algorithm even better than S-transform based algorithm due to the parameter and . The exact location of R-peak is precisely calculated by the search back range in a proposed ECG segment. If the search back range is low, then the algorithm is more precise in detecting the location of the R-peaks. Table 3 shows the search back range for different algorithms. For Hilbert and curve-length transform based algorithms, search back range is ±10 and ±15 samples, respectively, whereas for the modified S-transform based algorithm has the search back range of ±2 samples.
Table 3

Comparison of search back range for different methods

MethodsCondition for R-peak detectionSearch back range
curve-length transform\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{upgreek} \usepackage{mathrsfs} \setlength{\oddsidemargin}{-69pt} \begin{document} }{}$L\left(n \right)- M\lpar n\rpar \; \gt S\lpar n\rpar $\end{document}LnM(n)>S(n)±15 samples
Hilbert transformbased on RMS of segment±10 samples
S-transform30% of the maximum peak±10 samples
modified S-transform30% of the maximum peak±2 samples
Comparison of search back range for different methods

Conclusions

In the proposed work, a new approach of S-transform with modified Gaussian window is considered for R-peak detection and the same is demonstrated with MIT-BIH arrhythmia database. S-transform with modified Gaussian window is applied first time and is compared with several other transform along with the recently published S-transform. The statistical indices of the algorithm are higher than other earlier proposed algorithms. The QRS complex detection and localisation is exact and highly accurate with the proposed method. Primarily, the ECG signal is subjected to median and FIR filtering for noise reduction, thereby improving the results of later processing. In the second stage, the R-peaks are detected using modified S-transform which employs a scalable localising Gaussian window to detect the position of R-peaks in both time and frequency axis. Then, the locations of true R-peaks are detected by setting a threshold value of 30% of the maximum value. The proposed algorithm outperforms the earlier reported algorithms with a sensitivity of 99.91%, positive predictivity of 99.91% and an accuracy of 99.77%. In addition to this, the search back range is significantly low which is only ±2 samples than the earlier method.

Funding and declaration of interests

Conflict of interest: none declared.
  15 in total

1.  The use of the Hilbert transform in ECG signal analysis.

Authors:  D Benitez; P A Gaydecki; A Zaidi; A P Fitzpatrick
Journal:  Comput Biol Med       Date:  2001-09       Impact factor: 4.589

2.  QRS detection based on wavelet coefficients.

Authors:  Zahia Zidelmal; Ahmed Amirou; Mourad Adnane; Adel Belouchrani
Journal:  Comput Methods Programs Biomed       Date:  2012-01-31       Impact factor: 5.428

3.  A new QRS detection method using wavelets and artificial neural networks.

Authors:  Berdakh Abibullaev; Hee Don Seo
Journal:  J Med Syst       Date:  2010-01-20       Impact factor: 4.460

4.  Combining algorithms in automatic detection of QRS complexes in ECG signals.

Authors:  Carsten Meyer; José Fernández Gavela; Matthew Harris
Journal:  IEEE Trans Inf Technol Biomed       Date:  2006-07

5.  Analysis of first-derivative based QRS detection algorithms.

Authors:  Natalia M Arzeno; Zhi-De Deng; Chi-Sang Poon
Journal:  IEEE Trans Biomed Eng       Date:  2008-02       Impact factor: 4.538

6.  Online digital filter and QRS detector applicable in low resource ECG monitoring systems.

Authors:  Serafim Tabakov; Ivo Iliev; Vessela Krasteva
Journal:  Ann Biomed Eng       Date:  2008-08-28       Impact factor: 3.934

7.  ECG beat detection using filter banks.

Authors:  V X Afonso; W J Tompkins; T Q Nguyen; S Luo
Journal:  IEEE Trans Biomed Eng       Date:  1999-02       Impact factor: 4.538

8.  Quantitative investigation of QRS detection rules using the MIT/BIH arrhythmia database.

Authors:  P S Hamilton; W J Tompkins
Journal:  IEEE Trans Biomed Eng       Date:  1986-12       Impact factor: 4.538

9.  A digital filter for the QRS complex detection.

Authors:  M Okada
Journal:  IEEE Trans Biomed Eng       Date:  1979-12       Impact factor: 4.538

10.  An approach to cardiac arrhythmia analysis using hidden Markov models.

Authors:  D A Coast; R M Stern; G G Cano; S A Briller
Journal:  IEEE Trans Biomed Eng       Date:  1990-09       Impact factor: 4.538

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.