Skip to main content
Log in

Optimal Delineation of Ambulatory Holter ECG Events via False-Alarm Bounded Segmentation of a Wavelet-Based Principal Components Analyzed Decision Statistic

  • Original Research
  • Published:
Cardiovascular Engineering

Abstract

The aim of this study is to develop and describe a new ambulatory holter electrocardiogram (ECG) events detection-delineation algorithm with the major focus on the bounded false-alarm probability (FAP) segmentation of an information-optimized decision statistic. After implementation of appropriate preprocessing methods to the discrete wavelet transform (DWT) of the original ECG data, a uniform length sliding window is applied to the obtained signal and in each slid, six feature vectors namely as summation of the nonlinearly amplified Hilbert transform, summation of absolute first order differentiation, summation of absolute second order differentiation, curve length, area and variance of the excerpted segment are calculated to construct a newly proposed principal components analyzed geometric index (PCAGI) by application of a linear orthonormal projection. In the next step, the α-level Neyman-Pearson classifier (which is a FAP controlled tester) is implemented to detect and delineate QRS complexes. The presented method was applied to MIT-BIH Arrhythmia Database, QT Database, and T-Wave Alternans Database and as a result, the average values of sensitivity and positive predictivity Se = 99.96% and P+ = 99.96% are obtained for the detection of QRS complexes, with the average maximum delineation error of 5.7, 3.8 and 6.1 m for P-wave, QRS complex and T-wave, respectively. Also, the proposed method was applied to DAY general hospital high resolution holter data (more than 1,500,000 beats including Bundle Branch Blocks-BBB, Premature Ventricular Complex-PVC and Premature Atrial Complex-PAC) and average values of Se = 99.98% and P+ = 99.97% are obtained for QRS detection. In summary, marginal performance improvement of ECG events detection-delineation process in a widespread values of signal to noise ratio (SNR), reliable robustness against strong noise, artifacts and probable severe arrhythmia(s) of high resolution holter data and the processing speed 155,000 samples/s can be mentioned as important merits and capabilities of the proposed algorithm.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Abbreviations

PCAGI:

Principal components analyzed geometrical index

GI:

Geometrical index

HT:

Hilbert transform

SVC:

Superior vena cava

IVC:

Inferior vena cava

AFW:

Atrial free wall

TVA:

Tricuspid valve annulus

FAP:

False alarm probability

Pdf:

Probability density function

LR:

Likelihood ratio

ECG:

Electrocardiogram

DWT:

Discrete wavelet transform

SNR:

Signal to noise ratio

QTDB:

QT database

MITDB:

MIT-BIH arrhythmia database

TWADB:

T-wave alternans database

FP:

False positive

FN:

False negative

PVC:

Premature ventricular contraction

AF:

Atrial fibrillation

AFL:

Atrial flutter

PAC:

Premature atrial contraction

RCA:

Retrograde conduction into atrium

FCP:

Full compensatory pause

BBB:

Bundle branch block

IAFDB:

Intracardiac atrial fibrillation database

TP:

True positive

P+:

Positive predictivity (%)

Se:

Sensitivity (%)

SMF:

Smoothing function

FIR:

Finite-duration impulse response

LE:

Location error

CHECK#0:

Procedure of evaluating obtained results using MIT-BIH annotation files

CHECK#1:

Procedure of evaluating obtained results consulting with a control cardiologist

CHECK#2:

Procedure of evaluating obtained results consulting with a control cardiologist and also at least with 3 residents

References

  • Arzeno NM, Zhi-De Deng CSP. Analysis of first-derivative based QRS detection algorithms. IEEE Trans Biomed Eng. 2008;55(2):478–84.

    Article  PubMed  Google Scholar 

  • Benitez D, Gaydecki PA, Zaidi A, Fitzpatrick AP. The use of the Hilbert transform in ECG signal analysis. Comput Biol Med. 2001;31:399–406.

    Article  CAS  PubMed  Google Scholar 

  • Bishop CM. Pattern recognition and machine learning. Berlin: Springer; 2006.

    Google Scholar 

  • Chiarugi F, Varanini M, Cantini F, Conforti F, Vrouchos G. Noninvasive ECG as a tool for predicting termination of Paroxysmal Atrial fibrillation. IEEE Trans Biomed Eng. 2007;54(8):1399–406.

    Article  PubMed  Google Scholar 

  • Christov I, Simova I. Q-onset and T-end delineation: assessment of the performance of an automated method with the use of a reference database. Physiol Meas. 2007;28:213–21.

    Article  CAS  PubMed  Google Scholar 

  • de Lannoy G, Frenay B, Verleysen M, Delbeke J. Supervised ECG delineation using the wavelet transform and hidden Markov models. IFMBE Proc. 2008;22:22–5.

    Article  Google Scholar 

  • Ghaffari A, Homaeinezhad MR, Atarod M, Ahmady Y, Rahmani R. Detecting and quantifying T-wave alternans using the correlation method and comparison with the FFT-based Method. In: 34th Annual conference of computers in cardiology (CinC). Italy: Bologna. 2008;14–7.

  • Ghaffari A, Homaeinezhad MR, Akraminia M, Atarod M, Daevaeiha M. Detecting and discriminating premature atrial and ventricular contractions: application to prediction of Paroxysmal Atrial fibrillation. In: 35th Annual conference of computers in cardiology (CinC), USA: Lake City-Utah. 2009a;13–6.

  • Ghaffari A, Homaeinezhad MR, Akraminia M, Atarod M, Daevaeiha M. Detecting and quantifying T-Wave alternans in patients with heart failure and Non-Ischemic Cardiomyopathy via modified spectral method. In: 35th Annual conference of computers in cardiology (CinC), USA: Lake City-Utah. 2009b;13–6.

  • Ghaffari A, Homaeinezhad MR, Akraminia M, Atarod M, Daevaeiha M. A robust wavelet-based multi-lead electrocardiogram delineation algorithm. Med Eng Phys. 2009c;31(10):1219–27.

    Article  CAS  PubMed  Google Scholar 

  • Ghaffari A, Homaeinezhad MR, Akraminia M, Daevaeiha M. Finding events of electrocardiogram and arterial blood pressure signals via discrete wavelet transform with modified scales. Imeche proceedings, Part H: engineering in medicine (in-press) 2009d.

  • Ghaffari A, Homaeinezhad MR, Akraminia M, Atarod M. A methodology for prediction of acute hypotensive episodes in ICU via a risk scoring model including analysis of ST-Segment Variations. Cardiovascular engineering (in-press) 2010a.

  • Ghaffari A, Homaeinezhad MR, Khazraee M, Daevaeiha M. Segmentation of Holter ECG Waves via analysis of a discrete wavelet-derived multiple Skewness-Kurtosis based metric. Annals of biomedical engineering, Springer Publishing (in-press) 2010b.

  • Guyton AC. Text book of physiology, vol. I. Philadelphia: W.B. Saunders; 1996.

    Google Scholar 

  • Hamilton PS, Tompkins W. Quantitative investigation of QRS detection rules using the MIT/BIH arrhythmia database. IEEE Trans Biomed Eng. 1986;33:1157–65.

    Article  CAS  PubMed  Google Scholar 

  • Kannathal N, Lim CM, Acharya UR, Sadasivan PK. Cardiac state diagnosis using adaptive neuro fuzzy technique. Med Eng Phys. 2006;28:809–15.

    Article  CAS  PubMed  Google Scholar 

  • Kay SM. Fundamentals of statistical signal processing: estimation theory. New Jersey: Prentice-Hall Inc; 1979.

    Google Scholar 

  • Laguna P, Mark R, Goldenberger A, Moody GB. A database for evaluation of algorithms for measurement of QT and other waveform intervals in ECG. Proc Comput Cardiol. 1997;673–6.

  • Laguna P, Jane R, Caminal P. Automatic detection of wave boundaries in multi lead ECG signals: validation with the CSE database. Comput Biomed Res. 1994;27(1):45–60.

    Article  CAS  PubMed  Google Scholar 

  • Li C, Zheng C, Tai C. Detection of ECG characteristic points using wavelet transforms. IEEE Trans Biomed Eng. 1995;42:21–8.

    Article  CAS  PubMed  Google Scholar 

  • Lin CH, Du YC, Chen T. Adaptive wavelet network for multiple cardiac arrhythmias recognition. Expert Syst Appl. 2008;34:2601–11.

    Article  Google Scholar 

  • Martinez JP, Almeida R, Olmos S, Rocha AP, Laguna P. A wavelet-based ECG delineator: evaluation on standard databases. IEEE Trans Biomed Eng. 2004;51(4):570–81.

    Article  PubMed  Google Scholar 

  • Minhas FAA, Arif M. Robust electrocardiogram (ECG) beat classification using discrete wavelet transform. Physiol Meas. 2008;29:555–70.

    Article  PubMed  Google Scholar 

  • Mitra M, Mitra S. A software based approach for detection of QRS vector of ECG signal. IFMBE Proc. 2007;15:348–51.

    Article  Google Scholar 

  • Montgomery DC, Runger GC. Applied statistics and probability for engineers. 3rd ed. New Jersey: Wiley; 2003.

    Google Scholar 

  • Moody GB. The physionet/computers in cardiology challenge 2008: T-wave alternans. Proc Comput Cardiol. 2008;35:505–8.

    Google Scholar 

  • Moody GB, Mark RG. Development and evaluation of a 2-Lead ECG analysis program. Comput Cardiol. 1982;39–44.

  • Moody GB, Mark RG. The MIT-BIH Arrhythmia databaseon CD-Rom and software for it. Comput Cardiol. 1990;185–188.

  • Moody GB. WFDB applications guide, Tenth Edition, Harvard-MIT Division of Health Sciences and Technology, 2006. (http://www.physionet.org/physiotools/wag/).

  • Pan J, Tompkins WJ. A real-time QRS detection algorithm. IEEE Trans Biomed Eng. 1985;32:230–6.

    Article  CAS  PubMed  Google Scholar 

  • Poor HV. An introduction to signal detection and estimation, vol. 1–3. 2nd ed. Berlin: Springer-Verlag; 1994.

    Google Scholar 

  • Sayadi O, Shamsollahi MB. A model-based Bayesian framework for ECG beat segmentation. Physiol Meas. 2009;30:335–52.

    Article  CAS  PubMed  Google Scholar 

  • Vila J, Gang Y, Presedo J, Fernandez-Delgado M, Malik M. A new approach for TU complex characterization. IEEE Trans Biomed Eng. 2000;47:764–72.

    Article  CAS  PubMed  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to M. R. Homaeinezhad.

Appendix

Appendix

Discrete Wavelet Transform Using à Trous Method

Generally, it can be stated that the wavelet transform is a quasi-convolution of the hypothetical signal x(t) and the wavelet function ψ(t) with the dilation parameter a and translation parameter b, as follows

$$ W_{{a^{x} }} (b) = {\frac{1}{\sqrt a }}\int\limits_{ - \infty }^{ + \infty } {x(t)\psi \left( {{{(t - b)} \mathord{\left/ {\vphantom {{(t - b)} a}} \right. \kern-\nulldelimiterspace} a}} \right)dt,\;a > 0} $$
(33)

The parameter a can be used to adjust the wideness of the basis function and therefore the transform can be adjusted in temporal resolutions. Suppose that the function \( Y_{{a^{x} }} (b) \) is obtained based on a quasi-convolution of signal x(t) and function θ(t), as follows

$$ Y_{{a^{x} }} (b) = \int\limits_{ - \infty }^{ + \infty } {x(t)\theta \left( {{{(t - b)} \mathord{\left/ {\vphantom {{(t - b)} a}} \right. \kern-\nulldelimiterspace} a}} \right)dt} $$
(34)

If the derivative of \( Y_{{a^{x} }} (b) \) is calculated relative to b, then

$$ {\frac{{\partial Y_{{a^{x} }} (b)}}{\partial b}} = - \frac{1}{a}\int\limits_{ - \infty }^{ + \infty } {x(t)\theta^{\prime}\left( {{{(t - b)} \mathord{\left/ {\vphantom {{(t - b)} a}} \right. \kern-\nulldelimiterspace} a}} \right)} dt $$
(35)

On the other hand, if ψ(t) is the derivative of a smoothing function θ(t), i.e. ψ(t) = θ′(t), then

$$ W_{{a^{x} }} (b) = -\frac{1}{\sqrt a} \frac{\partial Y_{a^{x}} (b)}{\partial b} $$
(36)

Accordingly, it can be concluded that wavelet transform at the scale a is proportional to the quasi-convolution derivative of the signal x(t) and the smoothing function θ(t). Therefore, if wavelet transform of the signal crosses of zero, it will be an indicative of local extremum(s) existence in the smoothed signal and the absolute maximum value of the wavelet transform in different scales represents a maximum slope in the filtered signal. Thus, useful information can be obtained using wavelet transform in different scales.

In Eq. 33, for dilation parameter “a” and translation parameter “b”, the values a = q k and \( b = q^{k} lT \) can be used in which q is the discretization parameter, l is a positive constant, k is the discrete scale power and T is the sampling period. By substituting the new values of the parameters “a” and “b” into Eq. 33, the following result is obtained

$$ \psi_{k,l} (t) = q^{ - k/2} \psi (q^{ - k} t - lT);k,l \in Z^{ + } $$
(37)

The scale index k determines the width of wavelet function, while the parameter l provides translation of the wavelet function.If the scale factor a and the translation parameter b are chosen as q = 2 i.e., a = 2 k and b = 2k l, the dyadic wavelet with the following basis function will be resulted (Martinez et al. 2004)

$$ \psi_{k,l} (t) = 2^{ - k/2} \psi (2^{ - k} t - lT);k,l \in Z^{ + } $$
(38)

To implement the à trous wavelet transform algorithm, filters H(z) and G(z) should be used according to the block diagram represented in Fig. 14a (Martinez et al. 2004). According to this block diagram, each smoothing function (SMF) is obtained by sequential low-pass filtering (convolving with G(z) filters), while after high-pass filtering of a SMF (convolving with H(z) filters), the corresponding DWT at appropriate scale is generated. In order to decompose the input signal x(t) into different frequency passbands, according to the block diagram of Fig. 14b, sequential high-pass low-pass filtering including down-sampling should be implemented. The filter outputs x H (t) and x L (t) can be obtained by convolving the input signal x(t) with corresponding high-pass and low-pass FIRs and contributing the down-sampling as

$$ \begin{gathered} \left\{ {\begin{array}{*{20}c} {x_{L} (t) = \sum\limits_{k = - \infty }^{k = + \infty } {g(k)x(2t - k)} } \\ {x_{H} (t) = \sum\limits_{k = - \infty }^{k = + \infty } {h(k)x(2t - k)} } \\ \end{array} } \right. \hfill \\ t = 0,1, \ldots ,N - 1 \hfill \\ \end{gathered} $$
(39)

On the other hand, to reconstruct the transformed signal, the obtained signals x H (t) and x L (t) should be first be up-sampled by following simple operation

$$ \begin{gathered} \left\{ {\begin{array}{*{20}c} {x_{L}^{*} (2t) = x_{L} (t)} & , & {x_{L}^{*} (2t + 1) = 0} \\ {x_{H}^{*} (2t) = x_{H} (t)} & , & {x_{H}^{*} (2t + 1) = 0} \\ \end{array} } \right. \hfill \\ t = 0,1, \ldots ,N - 1 \hfill \\ \end{gathered} $$
(40)

If the FIR lengths of the H(z) and G(z) filters are represented by L H and L G , respectively, then the reconstructing high-pass and low-pass filters are obtained as

$$ \left\{ \begin{gathered} g^{*} (t) = g(L_{G} - 1 - t) \hfill \\ h^{*} (t) = h(L_{H} - 1 - t) \hfill \\ \end{gathered} \right. $$
(41)
Fig. 14
figure 14

FIR filter-bank implementation to generate discrete wavelet dyadic scales and smoothing functions transform based on à trous algorithm. a one-step generation of detail coefficient scales and reconstruction of the input signal, b four-step implementation of DWT for extraction of dyadic scales

Then the reconstructed signal x R (t) is obtained by superposition of the up-sampled signals convolution with their appropriately flipped FIR filters as follow

$$ x_{R} (t) = \sum\limits_{k = - \infty }^{k = + \infty } {h^{*} (k)x_{H}^{*} (t - k)} + \sum\limits_{k = - \infty }^{k = + \infty } {g^{*} (k)x_{G}^{*} (t - k)} $$
(42)

For a prototype wavelet ψ(t) with the following quadratic spline Fourier transform,

$$ {\varvec{\Uppsi}}(\Upomega ) = j\Upomega \left( {{\frac{{\sin ({\Upomega \mathord{\left/ {\vphantom {\Upomega 4}} \right. \kern-\nulldelimiterspace} 4})}}{{{\Upomega \mathord{\left/ {\vphantom {\Upomega 4}} \right. \kern-\nulldelimiterspace} 4}}}}} \right)^{4} $$
(43)

the transfer functions H(z) and G(z) can be obtained from the following equation

$$ \begin{aligned} H(e^{j\omega } ) & =\,& e^{{{{j\omega } \mathord{\left/ {\vphantom {{j\omega } 2}} \right. \kern-\nulldelimiterspace} 2}}} \left( {\cos ({\omega \mathord{\left/ {\vphantom {\omega 2}} \right. \kern-\nulldelimiterspace} 2})} \right)^{3} \\ G(e^{j\omega } ) & =\,& 4je^{{{{j\omega } \mathord{\left/ {\vphantom {{j\omega } 2}} \right. \kern-\nulldelimiterspace} 2}}} \left( {\sin ({\omega \mathord{\left/ {\vphantom {\omega 2}} \right. \kern-\nulldelimiterspace} 2})} \right) \\ \end{aligned} $$
(44)

and therefore,

$$ \begin{aligned} h[n] & =\,& \left( {{1 \mathord{\left/ {\vphantom {1 8}} \right. \kern-\nulldelimiterspace} 8}} \right)\{ \delta [n + 2] + 3\delta [n + 1] + 3\delta [n] + \delta [n - 1]\} \\ g[n] & =\,& 2\{ \delta [n + 1] - \delta [n]\} \\ \end{aligned} $$
(45)

It should be noted that for frequency contents of up to 50 Hz, the à trous algorithm can be used in different sampling frequencies. Therefore, one of the most prominent advantages of the à trous algorithm is the approximate independency of its results from sampling frequency. This is because of the main frequency contents of the ECG signal concentrate on the range less than 20 Hz (Martinez et al. 2004; Ghaffari et al. (2009c). After examination of various databases with different sampling frequencies (range between 136–10 kHz), it has been concluded that in low sampling frequencies (less than 750 Hz), scales 2λ (λ = 1,2,…,5) are usable while for sampling frequencies more than 1,000 Hz, scales 2λ (λ = 1,2,…,8) contain profitable information that can be used for the purpose of wave detection, delineation and classification.

In Fig. 15, several dyadic scales obtained via application of à trous DWT to an arbitrary holter record belonging to the DAY general hospital database are illustrated. As it can be seen, by increment of the dyadic dilation parameter 2λ, the high-frequency fluctuations of the transform induced by measurement noises are diminished. The pseudo code associated with Eqs. 3345 can be written in Matlab format as follows

Fig. 15
figure 15

Illustration of several DWT dyadic scales 2λ obtained from application of a trous filter bank to an arbitrary record of high-resolution holter data for a λ = 1, b λ = 2, c λ = 3, d λ = 4, e λ = 5, f λ = 6, g λ = 7, h λ = 8

Rights and permissions

Reprints and permissions

About this article

Cite this article

Homaeinezhad, M.R., Ghaffari, A., Toosi, H.N. et al. Optimal Delineation of Ambulatory Holter ECG Events via False-Alarm Bounded Segmentation of a Wavelet-Based Principal Components Analyzed Decision Statistic. Cardiovasc Eng 10, 136–156 (2010). https://doi.org/10.1007/s10558-010-9103-2

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10558-010-9103-2

Keywords

Navigation