Publications‎ > ‎2011‎ > ‎

Automated ECG diagnostic P-wave analysis using wavelets

Reference: A Diery, D Rowlands, TRH Cutmore, D James, Automated ECG diagnostic P-wave Analysis using Wavelets, Computer methods and programs in biomedicine 101 (1), 33-43

Abstract: P-wave characteristics in the human ECG are an important source of information in the diagnosis of atrial conduction pathology. However, diagnosis by visual inspection is a difficult task since the P-wave is relatively small and noise masking is often present. This paper introduces novel wavelet characteristics derived from the continuous wavelet transform (CWT) which are shown to be potentially effective discriminators in an automated diagnostic process. Characteristics of the 12-lead ECG P-wave were derived using CWT and statistical methods. A normal control group and an abnormal (atrial conduction pathology) group were compared. The wavelet characteristics captured frequency, magnitude and variance components of the P-wave. The best individual characteristics (i.e. ones that significantly discriminated the groups) were entered into a linear discriminant analysis (LDA) for four different models: two-lead ECG, three-lead ECG, a derived three-lead ECG and a factor analysis solution consisting of wavelet characteristic loadings on the factors. A comparison was also made between wavelet characteristics derived form individual P-waves verses wavelet characteristics derived from a signal-averaged P-wave for each participant. These wavelet models were also compared to standard cardiological measures of duration, terminal force and duration divided by the PR segment. Results for the individual P-wave approach generally outperformed the standard cardiological measures and the signal-averaged P-wave approach. The best wavelet model on the basis of both classification performance and simplicity was the two-lead model that uses leads II and V1. It was concluded that the wavelet approach of automating classification is worth pursuing with larger samples to validate and extend the present study.

Discussion:
This study set out to determine whether characterisation of the P-wave with wavelet decomposition would result in useful classification of abnormality. The results clearly indicate that this has been achieved, particularly with the two-lead and three-lead subsets of the clinical 12-lead ECG configuration. In addition, the two-lead wavelet characterization showed a 10% improvement in classification rate over the typical cardiological parameters.

The results achieved using the signal-averaged P-waves were in general poorer than the individual P-wave characterization approach. This might be attributed to the signal average being more susceptible to variance in the P-wave morphology that “smears” during the averaging process losing some informative features. Fig. 7provides some support for this hypothesis in that patient individual P-wave scores do indeed show considerable variation.

Looking at the wavelet-based two- and three-lead models in greater detail, it can be noted that the characteristics with the best discriminant potential are the median frequency and the peak frequency energy value. The median frequency is the centre of the wavelet scale ‘energy’ distribution. This is defined in Eq. (1)and relates the magnitude of the wavelet coefficients (expressed as ‘energy’) to the wavelet scale. Fig. 5c shows that normal P-waves have a higher frequency than the abnormal P-waves. This reflects the more compact shape of the normal P-wave. The duration measure used by cardiologists is sensitive to this morphological difference in abnormal P-waves as well. It is underscored by the good performance achieved by the duration measure on its own (nearly as good as the composite of all the cardiological measures). The conduction of the pulse through the atria takes longer (i.e. extended in duration) due to atrial enlargement. It should be noted, however, that there are individual differences in the orientation of the long-axis of the heart. This would introduce variance in the lead II estimate of duration. One way to examine this influence would be to include an echo cardiogram measure of long-axis orientation in tandem with the P-wave measures used here, and correlate them.

Only one measure of variance appeared in the best lead models and this was the QV measure on avF and lead II (Table 1a) It is also apparent, that for the three-lead model, in Fig. 5e and f, the variance measures do not result in large group differences (only avF QV spans more than two SEMs). Although two of the variance measures did load on factor 3 of the factor analysis, this method did not perform quite as well as the models that did not include the IQR measure.

One wavelet method that did not perform as well as might be expected was the Frank lead XYZ method. The XYZ configuration did perform the best when the averaged P-wave was used as an input, though this performance was inferior to the single P-wave two- and three-lead wavelet methods and the classical ECG measures. Although the orthogonal set is similar to some extent to the avF, V2, V5 set, this is only approximate and indeed these derived leads may not have been completely orthogonal. A recorded Frank-lead trial may well show better performance than we have shown here. Finally, the best wavelet method predictor of all was the simplest one using only leads II and V1. Adding a third lead whether by a factor analytic method or a derived lead set does not appear to offer classification advantage and, in fact, may add noise. The two-lead set used II and V1. The lead II may be particularly important as it is sensitive to P-wave duration. Table 1a shows that four of the wavelet parameters were, in fact, based on this lead with median frequency capturing the duration information. The two-lead computational load for a modern PC is also quite practical, particularly once a sound discriminant equation is arrived at.

The present study used a modest sample size and has demonstrated the utility in using an automated P-wave classifier, showing it to outperform the usual duration and other cardiological measures by at least 10%. It is important however to extend the confidence in this analytic approach by conducting these analyses on a much larger data set. This can be a very costly enterprise if new data is collected, however online databases with ECG recordings are slowly becoming available [34]. While the effects of age on cardiological measures taken from normal subjects does not appear to change much beyond the mid 50s [21] it would inspire greater confidence to have a larger control sample – particularly for getting a measure of specificity. Clearly these findings, with a modest sample size, warrant further study to extend the generality to other laboratory and clinical settings. Furthermore, our suggestions of the relationship of P-wave anomalies to underlying atrial structure should be followed up in a replication ECG study that also includes echo cardiogram to more directly validate, on a case by cases basis, possible structural abnormalities that correlate to wavelet-based P-wave morphology. This work is now underway in our laboratory in collaboration with a cardiology clinic.

To be useful to practicing cardiologists and GPs with ECG recording capabilities, the present system could be incorporated into current ECG software. This would be as a third-party plug in, for example to Cardioview™. A large set of cases should be compiled (future work on this is needed) to provide a robust LDA-trained and classified reference set. An interface could be easily added that allows the user to specify the patient, the database of LDA-trained cases and the form of the output, such as the distance scores for each of the diagnostics groups in the selected database as well as an interpretation of the P-wave morphology based on the wavelet parameter analysis.

In conclusion, the success of this wavelet-based approach may prove advantageous in the diagnosis of low amplitude and dispersed P-waves, which are commonly observed in elderly participants [11]. This can make diagnosis by visual inspection of the ECG a difficult task. Furthermore, the results of the wavelet methods described here compare favourably to the higher order system modelling approach [16] and are significantly better than the DFT method. One advantage of the present approach is that it does not rely on any initial assumptions about the generation of the P-wave and could therefore have wide applicability.


References:
        • [1]
        • G.S. WagnerMarriot's Practical Electrocardiography Lippincott Williams & Wilkins, Philadelphia (2001) pp. 48–51 (chapter 3)
        • [2]
        • V. Ariyarajah, K. Mercado, S. Apiyasawat, P. Puri, D.H. Spodick Correlation of left atrial size with P-wave duration in interatrial block Chest, 28 (4) (2005), pp. 2615–2618
        • [3]
        • A. Dogan, G. Acar, O. Gedikli, M. Ozaydin, C. Nazli, A. Altinbas, O. Ergene A comparison of P-wave duration and dispersion in participants with short-term and long-term atrial fibrillation Journal of Electrocardiology, 36 (3) (2003), pp. 251–255
        • [4]
        • M. Budeus, O. Felix, M. Hennersdorf, H. Wieneke, R. Erbel, S. Sack Prediction of conversion from paroxysmal to permanent atrial fibrillation Pacing and Clinical Electrophysiology, 30 (2007), pp. 243–252
        • [5]
        • M. Lorbar, R. Levrault, J.G. Phadke, D.H. Spodick Interatrial block as a predictor of embolic stroke
        • The American Journal of Cardiology, 95 (2005), pp. 667–668

        • [6]
        • K.S. Lee, C.P. Appleton, S.J. Lester, T.J. Adam, R.T. Hurst, C.A. Moreno, G.T. Altemose Relation of electrocardiographic criteria for left atrial enlargement to two-dimensional echocardiographic left atrial volume measurements
        • American Journal of Cardiology, 99 (2007), pp. 113–118

        • [7]
        • A.D. Waggoner, A.V. Adyanthaya, M.A. Quinones, J.K. Alexander Left atrial enlargement: echocardiographic assessment of electrocardiographic criteria Circulation, 54 (1976), pp. 553–557
        • [8]
        • J.P. Birkbeck, D.B. Wilson, M.A. Hall, D.G. Meyers P-wave morphology correlation with left atrial volumes assessed by 2 dimensional echocardiography Journal of Electrocardiography, 39 (2006), pp. 225–229
        • [9]
        • J. Boineau The prolonged P wave and interatrial block: time to consider a broader concept and different terminology
        • Journal of Electrocardiology, 38 (2005), pp. 327–329

        • [10]
        • P.E. Dilaveris, J.E. Gialafos Future concepts in P wave morphological analyses
        • Cardiac Electrophysiology Review, 6 (3) (2002), pp. 221–224

        • [11]
        • R. Parameswaran, A.R. Maniet, S.E. Goldberg, H. Goldberg Low electrocardiographic voltage in pericardial effusion
        • Chest, 85 (1984), pp. 631–634

        • [12]
        • M. Fukunami et al. Detection of participants at risk of paroxysmal atrial fibrillation during sinus rhythm by P wave-triggered signal-averaged electrocardiogram
        • Circulation, 83 (1) (1991), pp. 162–169

        • [13]
        • A. Dogan, A. Avsar, M. Ozturk P-wave dispersion for prediction maintenance of sinus rhythm after cardioversion of atrial fibrillation
        • American Journal of Cardiology, 93 (2003), pp. 368–371

        • [14]
        • S. Petrutiu, J. Ng, G.M. Nijm, H. Al-Angari, S. Swiryn, A.V. Sahakian Atrial fibrillation and waveform characterization
        • IEEE Engineering in Medicine and Biology Magazine, 25 (6) (2006), pp. 24–30

        • [15]
        • E. De Azevedo-Botter, C.L. Nascimento Jr., T.I. Yoneyama A neural network with asymmetric basis functions for feature extraction of ECG waves IEEE Transactions on Neural Networks, 12 (5) (2001), pp. 1252–1255
        • [16]
        • J. Carlson, R. Johansson, S.B. Olsson Classification of electrocardiographic P-wave morphology
        • IEEE Transactions on Biomedical Engineering, 48 (4) (2001), pp. 401–405

        • [17]
        • Z. Dokur, T. Ölmez, E. Yazgan Comparison of discrete wavelet and Fourier transforms for ECG beat classification
        • Electronics Letters, 35 (18) (1999), pp. 1502–1503 

        • [18]
        • K. Vajarian, R. Splinter Biomedical Signal and Image Processing
        • CRC Press, Boca Raton, FL (2006) (chapters 6, 9)

        • [19]
        • P.S. Addison Wavelet transforms and the ECG: a review
        • Physiological Measurement, 26 (2005), pp. R155–R199

        • [20]
        • V. Vassilikos, G. Dakos, I. Chouvarda, L. Karagounis, H. Karvounis, N. Maglaveras, S. Mochlas, P. Spanos, G. Louridas
        • Can P wave wavelet analysis predict atrial fibrillation after coronary artery bypass grafting?

        • PACE, 26 (2003), pp. 305–309

        • [21]
        • N. Asad, D.H. Spodick Prevalence of interatrial block in a general hospital population
        • The American Journal of Cardiology, 91 (5) (2003), pp. 609–610

        • [22]
        • D.E. Rumelhart Parallel Distributed Processing: Explorations in the Microstructure of Cognition
        • MIT Press, Cambridge, MA (1986)

        • [23]
        • GammaHealth International, http://www.gammahealth.com/products/hospital/cardiac/cardioview-3000.php, IL, USA.
        • [24]
        • C. Li, C. Zheng, C. Tai Detection of ECG characteristic points using wavelet transforms
        • IEEE Transactions on Biomedical Engineering, 42 (1) (1995), pp. 21–28

        • [25]
        • B.U. Köhler, C. Hennig, R. Orglmeister The principles of software QRS detection
        • IEEE Engineering in Medicine and Biology Magazine, 21 (1) (2002), pp. 42–57

        • [26]
        • A. Diery, D. Rowlands, D. James, T. Cutmore Wavelet based analysis of atrial activity
        • WSEAS Transactions on Systems, 3 (10) (2004), pp. 3189–3192

        • [27]
        • S. Poli, V. Barbaro, P. Bartolini, G. Calcagnini, F. Censi Prediction of atrial fibrillation from surface ECG: review of methods and algorithms Annals of Ist Super Sanità, 39 (2) (2003), pp. 195–203
        • [28]
        • O.A. Rosso Wavelet entropy: a new tool for analysis of short duration brain electrical signals
        • Journal of Neuroscience Methods, 105 (2001), pp. 65–75

        • [29]
        • J. Malmivuo, R. Plonsey Bioelectromagnetism: Principles and Applications of Bioelectric and Biomagnetic Fields
        • Oxford University Press, Oxford (1995) (chapter 15.7)

        • [30]
        • J. Carlson, R. Havmöller, A. Herreros, P. Platonov, R. Johansson, B. Olsson Can orthogonal lead indicators of propensity to atrial fibrillation be accurately assessed from the 12-lead ECG
        • Europace, 7 (2005), pp. s39–s48

        • [31]
        • E.E. Cureton, R.B. D’Agostino Factor Analysis: An Applied Approach Lawrence Erlbaum Associates, New Jersey (1983)
        • [32]
        • R.A. Johnson, D.W. Wichern Applied Multivariate Statistical Analysis (5th ed.)Pearson Education International, New Jersey (2002) (chapter 11)
        • [33]
        • B.G. Tabachnick, L.S. Fidell Using Multivariate Statistics (5th ed.)Pearson Education Inc., Sydney (2007)
        • [34]
        • A.L. Goldberger, L.A.N. Amaral, L. Glass, J.M. Hausdorff, P.C.H. Ivanov, R.G. Mark, J.E. Mietus, G.B. Moody, C.K. Peng, H.E. Stanley PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals Circulation, 101 (23) (2000), pp. e215–e220 [Circulation Electronic Pages; http://circ.ahajournals.org/cgi/content/full/101/23/e215]; June 13
Comments