Journal Home
Search for

Volume 42, Issue 6, Pages 517-521 (November 2009)


View previous. 10 of 83 View next.

Development of a toolbox for electrocardiogram-based interpretation of atrial fibrillation

Roger Abächerli, PhDaCorresponding Author Informationemail address, Remo Leber, MSEa, Mathieu Lemay, PhDb, Jean-Marc Vesin, PhDb, Adriaan van Oosterom, PhDb, Hans-Jakob Schmid, MSEa, Lukas Kappenberger, PhDb

Received 3 April 2009 published online 21 August 2009.

Abstract 

Background

Atrial fibrillation (AF) develops as a consequence of an underlying heart disease such as fibrosis, inflammation, hyperthyroidism, elevated intra-atrial pressures, and/or atrial dilatation. The arrhythmia is initiated by, or depends on, ectopic focal activity. Autonomic dysfunction may also play a role. However, in most patients, the actual cause of AF is difficult to establish, which hampers the selection of the optimal mode of treatment. This study aims to develop tools for assisting the physician's decision-making process.

Methods

Signal analytical methods have been developed for optimizing the assessment of the complexity of AF in all of the standard 12-lead signals. The development involved an evaluation of methods for reducing the signal components stemming from the electric activity of the ventricles (QRST suppression). The methods were tested on simulated recordings, on clinical recordings on patients in AF, and on patients exhibiting atrial flutter (AFL) and atrial tachycardia. The results have been published previously. Subsequently, the implementation of the algorithms in a commercially available electrocardiogram (ECG) recorder, an implementation referred to as its AF-Toolbox, has been carried out. The performance of this implementation was tested against those observed during the development stage. In addition, an improved visualization of the specific ECG components was implemented. This was enabled by providing a separate view on ventricular and atrial activity, which resulted from the steps implied in the QRST suppression. Furthermore, a search was initiated for identifying meaningful features in the cleaned up atrial signals.

Results

When testing the implementation of the previously developed methods in the Toolbox on simulated and clinical data, the suppression of ventricular activity in the ECG produced residuals down to the level of physiologic background noise, in agreement with those reported on previously. The QRST suppression resulted in a better visualization of the atrial signals in AF, atrial AFL, sinus rhythm in the presence of atrioventricular blocks, or ectopic beats. Classifiers for AF and AFL that have been defined so far include the distinct spectral components (multiple basic frequencies), exhibiting distinct dominance in specific leads. The annotations of ventricular and atrial activities, ventricular and atrial trigger, as well as ratio between atrial and ventricular rates were greatly facilitated. The time diagram of ventricular and atrial triggers provides an additional view on rhythm disturbances.

Conclusions

The AF-Toolbox that is currently developed for clinical applications has the potential of reliably detecting and classifying AF, as well as to correctly describe atrioventricular conduction, propagation blocks and/or ectopic beats. Based on the results obtained, a first industrial prototype has been built, which will be used to assess its performance in a routine clinical environment. The availability of this tool will facilitate the search for meaningful signal features for identifying the source of AF in individual patients.

Article Outline

Abstract

Introduction

Methods and materials

Algorithm transition/adaptation

Synthetic test signals

Clinical test signals

Test procedure

Results

Discussion

Conclusions

Acknowledgment

References

Copyright

Introduction 

return to Article Outline

Atrial fibrillation (AF) is the most common type of human cardiac arrhythmia. Its clinical importance is due to increasing risk of embolic complications, stroke, and heart failure. It is an important clinical entity because of the increasing risk of morbidity and mortality.1, 2 Atrial fibrillation health costs amount to around 442 million US dollars (around 961 million US dollars with nursing home care and secondary admissions) for a total of 601 000 individuals with AF in the UK. Statistics reveal some 2 500 000 strokes annually worldwide (United States: 500 000). In approximately 30% of these cases, AF is found. Its prevalence is expected to double in the next 50 years.

The diagnosis of AF as such has been based mainly on visual inspection of the surface electrocardiogram (ECG).3 Due to the much higher amplitude of the electrical ventricular activity (VA) on the surface ECG, suppression of the ventricular involvement is crucial in the noninvasive study of AF. This suppression has a direct influence on the quality of the subsequent signal processing leading to the interpretation of the view on the resulting ECG activity. A proper VA cancellation can improve the visual distinction between rhythms such as AF, atrial flutter, and different atrioventricular blocks by displaying separately the atrial and ventricular signal components, as well as in software-based decision procedures.

Two approaches are generally used to perform VA suppression: source separation algorithms and matched template subtraction. Source separation algorithms try to find uncorrelated components using principal component analysis, or to find independent components in an instantaneous linear mixture using independent component analysis. The principal component analysis has previously been used to monitor the effects of drugs4 and assess the effects of linear left atrial ablation.5 The independent component analysis has been applied to obtain ECG signals devoid of VA involvement.6 In these algorithms, the components obtained are not directly interpretable in terms of the electrophysiology involved and its expression in the signals generated at specific thorax locations (electrode positions). The other well-known approach is based on the subtraction of matched templates of the QRST complexes. This approach used the fact that in an individual patient, ventricular complexes generally exhibit a limited number of distinct waveforms only. Averages of such distinct complexes are used for building up templates, which are subsequently subtracted from the signals of the corresponding beats. This standard average beat subtraction method is labeled ABS. An adapted ABS method, published by Lemay et al7 in 2007, is referred to here as the ABS-EPFL procedure. In ABS methods, several beats are needed for each QRST morphology to create the templates. In clinical practice, where the standard ECG consists of 10-second recordings, high-quality templates may be difficult to create. A novel method for suppressing the ventricular signal, permitting shorter records, is the single beat algorithm, referred to here as SB-EPFL.7

In the work reported on in this article, we used the methods published by Lemay et al7 in 2007 and implemented the subtraction algorithm into an industrially applicable software package called the AF-Toolbox. The transition of the algorithmic part from a research tool, developed in Matlab (Mathworks, Natick, MA), to an implementation in American National Standards Institute (ANSI) C was the most demanding task. The results obtained by using the dynamic link library were compared with those based on the published research algorithms,7 aimed at testing for any loss in performance. In addition, the article reports on the implementation of some features, derived from these “cleaned up” signals, such as atrial and ventricular heart rate and the ratio between these 2 quantities.

Methods and materials 

return to Article Outline

Algorithm transition/adaptation 

The ABS-EPFL and SB-EPFL algorithms for QRST suppression7 needed to be adapted to be used in a clinical ECG recorder. The change in precision from double (64-bit floating point numbers) to integer precision had to be taken into account. Also, an ECG machine is not comparable with a standard personal computer from the point of view of available processing speed and memory. In addition, conversion of the algorithms from a Matlab script to an industrial applicable ANSI C code may easily give rise to performances loss. The latter obviously needed to be minimized.

The resulting AF-Toolbox algorithm is characterized by an optimized sequence of processing steps. The preprocessing comprises a baseline correction (using cubic splines).

The next unit reduces the F waves that are present in the case of atrial flutter. It aims at preventing any unintended subtraction of the F waves (if present) during the suppression of the QRST complexes.8 This step is essential because flutter waves represent atrial activity (AA) that is usually highly correlated with VA.

The main processing comprises units for either average beat or dominant T wave subtraction9 applied to the individual 8 independent leads: II, III, V1,…V6. In the ABS-EPFL procedure, up to 4 different beat classes/templates are used. In the SB-EPFL procedure, the signal of an individual beat after the QRST complex is fitted by a linear combination of 3 derivatives of the dominant T wave (the derivatives of orders 0, 1, and 2). The fitting is performed for each beat, applied to the intervals from the end of the QRS complexes until the onset of the next QRS complexes. The signals during QRS intervals are filled in by means of a Fourier interpolation of the “cleaned up” segments before and after these QRS intervals. The resulting features comprise atrial and ventricular rates, their ratio (Fig. 1), a suggested classification of the arrhythmia involved, and, in the case of atrial flutter, its characterization (direction of revolution: clockwise or anticlockwise).


View full-size image.

Fig. 1. Picture of the AF-Toolbox. The calculating part of the AF-Toolbox is programmed in C (DLL, or dynamic link library); for research and development phase, Matlab was used as GUI (graphic user interface) and will be replaced by the ECG machine's corresponding GUI. This is a typical AF case.


Synthetic test signals 

As reported by Lemay et al,7 a 3-dimensional model of the geometry of the human atria was constructed from magnetic resonance images, while taking into account the openings at the sites of the entries and exits of the vessels as well as at the locations of the valves connecting the atria to the ventricles10 where propagation of AA is absent.

Substrates for AF, for example, patchy heterogeneities in action potential duration, were introduced by modifying the local membrane properties. Simulated AFs induced by rapid pacing in the left atrium appendage were observed as multiple reentrant wave fronts propagating and interacting in a random fashion over the atrial surface. Nine different simulated AF types were created by modifying the pacing protocol and the heterogeneities. The durations of the AF episodes ranged from 11.3 to 23.9 seconds.

Body surface potentials associated with the AA were computed by using a compartmental torso model based on magnetic resonance images,11 including the atria, the blood-filled cavities of atria and ventricles, and the lungs. The 9 ECG episodes of simulated AF were replicated, and the replicas were lined up to span 5 minutes. These nine 5-minute ECG episodes of pure simulated AA were added to those of 2 different clinical 5-minute standard 12-lead ECG records of patients in sinus rhythm from which the P waves had been removed. In this manner, 18 realistic episodes of simulated 5-minute AF, sampled at 500 Hz, were created in the signals of the standard 12-lead ECG.

Clinical test signals 

A clinical database, composed of 5-minute standard ECGs of 180 patients in sustained AF, was used. The signals were recorded and stored using a commercial recording system (CardioLaptop AT-110; SCHILLER AG, Baar, Switzerland). The specification of the recording system was as follows: band-pass filtering (0.05-150 Hz); dynamic range: ±10 mV (resolution: 5 μV/bit); sampling rate of 500 sps.

Test procedure 

The normalized mean square error (NMSE) between the original and the estimated AAs was used to compare the performance on the simulated test signals of the ABS (standard average subtraction), the ABS-EPFL, and the SB-EPFL with those of the AF-Toolbox algorithms. Subsequently, we used the approach described in Lemay et al7 for testing the algorithm's performance when applied to the clinical data, based on a quantification of the magnitude of QRS residuals.

Results 

return to Article Outline

The separation algorithm was implemented in ANSI C (as dynamic link library) and called by a graphic user interface (Matlab-GUI). This is used during the development phase only; it will be replaced by an ECG device corresponding GUI. An example of a typical AF case as viewed from the interface is shown in Fig. 1.

On the synthetic signals, the performance of the AF-Toolbox algorithm can be quantified as follows: NMSE of 0.75 ± 0.11 (mean ± SD) during the QRS intervals. The standard ABS yielded a mean NMSE of 2.99 ± 2.60, the ABS-EPFL of 1.31 ± 0.32, and the SB-EPFL NMSE of 1.16 ± 0.12 (Table 1). Outside the QRS complexes (JQ intervals), the AF-Toolbox algorithm yielded a mean NMSE of 0.27 ± 0.08, the standard ABS of 0.32 ± 0.22, the ABS-EPFL of 0.18 ± 0.08, and the SB-EPFL of 0.65 ± 0.29 (Table 2). The percentage of significant QRS residuals detected on the 180 clinical 5-minute ECG signals is 5.7% for the AF-Toolbox, 53.8% for the standard ABS, 12.0% for the ABS-EPFL, and 3.9% for the SB-EPFL (Table 3). A typical example of a 10-second ECG signal from the simulated test set is shown in Fig. 2. In the latter, the AA signal was magnified to provide a better view of the differences between the original and the estimated AA.

Table 1.

NMSE of the QRS intervals for each lead of the 18 simulated ECGs

NMSE
ABS
ABS-EPFL
SB-EPFL
AF-Toolbox
VR1.58 ± 1.451.31 ± 0.191.12 ± 0.090.76 ± 0.11
VL1.90 ± 1.191.43 ± 0.221.28 ± 0.170.81 ± 0.10
V11.06 ± 0.361.09 ± 0.191.13 ± 0.120.71 ± 0.09
V21.96 ± 0.821.17 ± 0.221.17 ± 0.090.74 ± 0.11
V34.16 ± 3.581.46 ± 0.541.14 ± 0.110.75 ± 0.11
V46.08 ± 7.791.41 ± 0.601.16 ± 0.170.75 ± 0.11
V54.33 ± 3.901.30 ± 0.361.18 ± 0.140.75 ± 0.12
V62.82 ± 1.671.32 ± 0.231.13 ± 0.120.76 ± 0.11
Average2.99 ± 2.601.31 ± 0.321.16 ± 0.120.75 ± 0.11

NMSE indicates normalized mean square error.

Table 2.

NMSE of the JQ intervals for each lead of the 18 simulated ECGs

MSE
ABS
ABS-EPFL
SB-EPFL
AF-Toolbox
VR0.30 ± 0.210.16 ± 0.040.60 ± 0.280.24 ± 0.07
VL0.35 ± 0.210.27 ± 0.121.08 ± 0.910.34 ± 0.08
V10.27 ± 0.230.12 ± 0.040.45 ± 0.100.23 ± 0.07
V20.31 ± 0.220.16 ± 0.040.80 ± 0.220.26 ± 0.09
V30.35 ± 0.240.22 ± 0.130.62 ± 0.210.26 ± 0.09
V40.32 ± 0.240.20 ± 0.150.61 ± 0.350.26 ± 0.10
V50.31 ± 0.210.16 ± 0.070.48 ± 0.150.25 ± 0.08
V60.35 ± 0.210.18 ± 0.060.55 ± 0.110.28 ± 0.08
Average0.32 ± 0.220.18 ± 0.080.65 ± 0.290.27 ± 0.08

MSE indicates mean square error.

Table 3.

Percentage of significant QRS residuals detected on 180 clinical 5-minute ECG results

% of QRS
ABS
ABS-EPFL
SB-EPFL
AF-Toolbox
VR33.5%5.8%3.4%11.9%
VL44.6%6.8%5.5%9.8%
V134.0%4.6%3.1%3.9%
V259.4%12.2%4.8%4.5%
V359.0%12.4%2.7%3.7%
V458.7%14.2%3.7%4.9%
V555.4%12.3%3.5%3.3%
V650.9%8.8%4.2%3.9%
Average53.8%12.0%3.9%5.7%

The percentage is calculated for each lead.


View full-size image.

Fig. 2. A, A clinical 10-second ECG signal on V2, where P waves were removed. B, ECG signal obtained by the addition of ventricle activity (VA) ECG signal (A) and AA signal (C). C, Original 10-second ECG simulated AA on V2. D, Estimated AA with the AF-Toolbox after applying the same high-pass filter. E, Original AA of amplified 4 times (C). F, Estimated AA of amplified 4 times (D); NMSE of 0.21 during the QRS complexes and of 0.17 during the JQ intervals.


Discussion 

return to Article Outline

Generally, when an algorithm is translated from research into industrial code, the performance of the algorithm suffers. In our case, the AF-Toolbox was found to outperform the other algorithm tested on the signals of the QRS intervals. The NMSE is only 0.75 ± 0.11, which is approximately 30% better than the best method tested in this study. The AF-Toolbox performed less well during the JQ intervals (outside the QRS complexes). However, the standard deviation is small, which indicates that the method used in the AF-Toolbox is more stable than the ABS and SB-EPFL methods. The AF-Toolbox is as stable as the ABS-EPFL (best method within this study on the signal part outside the QRS intervals). Finally, during the JQ intervals the AF-Toolbox performed as well as the SB-EPFL method (Table 2).

Therefore, we did not find the substantial performance loss initially feared for. The observed small loss in performance outside the QRS intervals is probably due to the higher noise floor caused by the integer arithmetic.

The overall performance of the AF-Toolbox is better than expected. The quality of the results is similar to the best one among the other algorithms tested despite being an industrially focused algorithm. The collaboration between the EPFL signal processing laboratory, in charge of the research part of the study and the biomedical research, and signal processing group from SCHILLER AG, performing the transition and implementation into a clinical device, has clearly been beneficial.

Conclusions 

return to Article Outline

We have shown that the AF-Toolbox algorithm, an industrial software application, can have a performance comparable to that found in previous studies. This was made possible by the close interaction between the 2 groups involved, each focusing on its specific expertise. We found that the proper signal separation of AA and VA is the key part of the procedure. When this separation performs correctly, the diagnostic part of the AF-Toolbox has great potential for clinical applications aimed at reliably detecting AF, which will elicit new approaches for its classification. The implemented visualization of the timing of the ventricular and atrial triggers provides a fresh look at the ECG. The AF-Toolbox will facilitate the search for meaningful signal features that may be used to identify the source of AF in individual patients.

Acknowledgments 

return to Article Outline

This work was partially supported by the Commission of Technology and Innovation (CTI), Switzerland (project number CTI-8199-2).

References 

return to Article Outline

1. 1Kannel WB, Abbott RD, Savage DD, McNamara PM. Epidemiologic features of chronic atrial fibrillation: the Framingham study. N Engl J Med. 1982;306:1018. MEDLINE | CrossRef

2. 2Onundarson PT, Thorgeirsson G, Jonmundsson E, Sigfusson N, Hardarson T. Chronic atrial fibrillation—epidemiologic features and 14 year follow-up: a case control study. Eur Heart J. 1987;8:521.

3. 3Fuster V, Ryden LE, Cannom DS, et al. ACC/AHA/ESC 2006 guidelines for the management of patients with atrial fibrillation—executive summary. Rev Port Cardiol. 2007;26:383.

4. 4Raine D, Langley P, Murray A, Dunuwille A, Bourke JP. Surface atrial frequency analysis in patients with atrial fibrillation: a tool for evaluating the effects of intervention. J Cardiovasc Electrophysiol. 2004;15:1021. MEDLINE | CrossRef

5. 5Raine D, Langley P, Murray A, Furniss SS, Bourke JP. Surface atrial frequency analysis in patients with atrial fibrillation: assessing the effects of linear left atrial ablation. J Cardiovasc Electrophysiol. 2005;16:838. MEDLINE | CrossRef

6. 6Castells F, Rieta JJ, Millet J, Zarzoso V. Associate. Spatiotemporal blind source separation approach to atrial activity estimation in atrial tachyarrhythmias. IEEE Trans Biomed Eng. 2005;52:258. MEDLINE | CrossRef

7. 7Lemay M, Vesin JM, van Oosterom A, Jacquemet V, Kappenberger L. Cancellation of ventricular activity in the ECG: evaluation of novel and existing methods. IEEE Trans Biomed Eng. 2007;54:542. MEDLINE | CrossRef

8. 8Stridh M, Sornmo L. Spatiotemporal QRST cancellation techniques for analysis of atrial fibrillation. IEEE Trans Biomed Eng. 2001;48:105. MEDLINE | CrossRef

9. 9van Oosterom A. The dominant T wave and its significance. J Cardiovasc Electrophysiol. 2003;14(10 Suppl):S180. MEDLINE | CrossRef

10. 10Jacquemet V, van Oosterom A, Vesin JM, Kappenberger L. Analysis of electrocardiograms during atrial fibrillation. A biophysical model approach. IEEE Eng Med Biol Mag. 2006;25:79. MEDLINE | CrossRef

11. 11van Oosterom A, Jacquemet V. Genesis of the P wave: atrial signals as generated by the equivalent double layer source model. Europace. 2005;7(Suppl 2):21. CrossRef

a SCHILLER AG, Biomed. Research and Signal Processing, Baar, Switzerland

b Signal Processing Laboratory 1, EPFL and Lausanne Heart Group, Switzerland

Corresponding Author InformationCorresponding author. SCHILLER AG, Altgasse 68, Biomed. Research and Signal Processing, 6341 Baar, Switzerland.

PII: S0022-0736(09)00278-7

doi:10.1016/j.jelectrocard.2009.07.006


View previous. 10 of 83 View next.