Abstract
This work introduces a novel approach to the detection of brief episodes of paroxysmal atrial fibrillation (PAF). The proposed detector is based on four parameters which characterize RR interval irregularity, P-wave absence, f-wave presence, and noise level, of which the latter three are determined from a signal produced by an echo state network. The parameters are used for fuzzy logic classification where the decisions involve information on prevailing signal quality; no training is required. The performance is evaluated on a large set of test signals with brief episodes of PAF. The results show that episodes with as few as five beats can be reliably detected with an accuracy of 0.88, compared to 0.82 for a detector based on rhythm information only (the coefficient of sample entropy); this difference in accuracy increases when atrial premature beats are present. The results also show that the performance remains essentially unchanged at noise levels up to \(100\,\upmu \hbox {V}\) RMS. It is concluded that the combination of information on ventricular activity, atrial activity, and noise leads to substantial improvement when detecting brief episodes of PAF.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
The significance of brief episodes (<30 s) of paroxysmal atrial fibrillation (PAF), also referred to as occult PAF, is currently receiving considerable attention in clinical research [30]. Recent results from prolonged rhythm monitoring support independent association between brief episodes and future risk of stroke. It has been suggested that brief episodes may be coupled to the formation of atrial thrombus, and that brief episodes may be viewed as biomarkers of prolonged episodes occurring outside of the monitoring period [30].
The impact of brief PAF episodes on thrombus formation is a recent ongoing debate, see, e.g., [14, 27], which prompts the need for detection techniques that could help to establish the clinical value of such episodes. Long-term, continuous noninvasive monitoring is likely to improve the AF detection rate [6], but considering the often poor signal quality, it is important to develop robust detectors which minimize the time for manual review of the data.
Both noninvasive and invasive recording technology have been employed for prolonged rhythm monitoring, exemplified by the following two clinical studies. Using mobile cardiac outpatient telemetry, 56 patients with presumed cryptogenic ischemic stroke were monitored [34]. In 23 % of the patients with atrial fibrillation (AF), 85 % of all episodes were brief. Using implantable cardiac monitoring, 11 % of all patients with cryptogenic ischemic stroke had new onset PAF with 5-s episodes or longer [10]. The authors argued that subsequent strokes may be prevented whether patients are monitored during their first month after stroke.
The poor agreement between methods for AF detection has recently been pointed out as an important limitation of clinical studies [30]. Although monitoring devices have been on the market for some time, no information is available on their accuracy to detect occult PAF. Thus, there is not only a need for validation of commercial devices, but also to develop methods for detection of occult PAF.
The vast majority of AF detectors explore RR interval irregularity through parameters which reflect randomness, variability, and complexity, e.g., [9, 12, 20, 29, 33]. While the detectors offer satisfactory performance with respect to longer episodes, occult PAF is precluded since a window length of at least 30 s is usually needed. An interesting RR-based detector was recently proposed where the coefficient of sample entropy was employed to find episodes with as few as 12 beats [18]. When evaluating the performance of this coefficient on short duration ECGs, an area under the receiver operating characteristic (ROC) of 90.2 % was achieved when a 5-s window was used [19].
It is well known that AF detectors relying on information on RR irregularity are prone to produce false alarms in rhythms with atrial premature beats (APBs) [1, 18]. In order to reduce the number of false alarms, information on P-wave absence and f-wave presence appears natural to include in the decision process. However, very few detectors have been described in the scientific literature which explores atrial information: One of the few combining information on RR irregularity with PR interval variability and P-wave morphology [1]. The performance was only slightly better than that achieved by the same detector but without use of atrial information; all episodes shorter than 1 min were excluded.
The AF detector proposed by Carvalho et al. [4, 8] appears to be the first with an architecture that jointly processes information on RR irregularity, P-wave absence, and f-wave presence. An artificial neural network (ANN) was used as classifier, first trained on a huge dataset and then used with fixed values for detection. Similar to other detectors, this detector requires that ventricular premature beats (VPBs) are first located and excluded. Using the MIT–BIH AF database, the performance was not better than that achieved by the RR-based detector in [33]. A possible explanation to this result is that the decision process did not account for the prevailing noise level.
In the present study, a novel AF detector is proposed that embraces four parameters which characterize RR irregularity, P-wave absence, f-wave presence, and noise level. All parameters, except for RR irregularity, are determined from a signal produced by the echo state network (ESN) described in [26]. This type of network offers a unified solution to the problem of QRST cancelation in the presence of VPBs and large variation in normal beat morphology; thus, no dedicated algorithm is needed for the handling of VPBs. The four parameters constitute the total information fed to the classifier based on fuzzy logic. Detector performance is studied on a large set of ECG test signals whose properties are easily controlled, e.g., with respect to episode duration, percentage of APBs, and noise level.
The paper is organized as follows. The detector is described in Sect. 2, followed by a description of the ECG database and the performance measures in Sect. 3. The results characterizing performance are presented in Sect. 4 and compared to a detector which explores RR irregularity. The generation of test signals is described in the “Appendix”.
2 Methods
The main processing steps of the proposed detector are shown in Fig. 1. The detector requires two ECG leads as input of which one needs to be positioned away from the atria, e.g., \(\hbox {V}_6\). A sliding window approach is taken to PAF detection: The window length is defined by the number of beats \(M\), rather than by a time period, since a beat-based definition seems more natural when detecting brief episodes.
2.1 Atrial activity characterization
Similar to other techniques for atrial activity extraction during AF, the ESN-based technique was developed under the assumption that AF is present and, accordingly, a signal with f-waves is fed to the ESN [26]. That assumption is not valid here since the input signal may just as well contain P-waves. However, preliminary tests showed that the ESN is not only suited for cancelation of QRST complexes but also for P-waves. Therefore, the ESN is briefly described below, followed by the parameters characterizing P-wave absence and f-wave presence, both computed from the ESN output.
In the present application, the ESN can be viewed as an adaptive filter which produces an output signal \(\hat{s}(n)\) with the f-waves from the target signal \(x(n)\) when AF is present, whereas \(\hat{s}(n)\) mostly contains the noise of \(x(n)\) and PQRST residuals when AF is absent. The reference signal \(x_r(n)\) is filtered by a time-variable transfer function, see Fig. 1. The output signal \(\hat{s}(n)\) is defined as the error \(e(n)\) between the target signal \(x(n)\) and the ESN output \(\hat{y}(n)\), being an estimate of the PQRST or the QRST complex, i.e.,
The estimate \(\hat{y}(n)\) is obtained by
where \(g_o(\cdot )\) denotes the output neuron activation function and \(\mathbf {w}_{\mathrm{out}}(n-1)\) the \(N\times 1\) time-varying output weight vector. The number of neurons in the reservoir is denoted \(N.\) The vector \(\mathbf {z}(n)\) is the concatenation of the \(N\times 1\) reservoir state vector \(\mathbf {r}(n)\) with the reference signal \(x_r(n)\), its first derivative \(x_r^{\prime }(n),\) and an impulse-like signal \(x_r^{s}(n)\),
The signal \(x_r^{s}(n)\) is identical to \(x(n)\) in a short interval of length \(2D\) centered around the fiducial point \(n_i\) of the \(i\)th beat; outside this interval \(x_r^{s}(n)\) is set to 0 (the fiducial point is here defined by the QRS center-of-mass). Thus, \(x_r^{s}(n)\) can be viewed as a variant of the impulse correlated reference input to the adaptive filter [16]. It should be noted that the definition in (3) differs from the one in [26] since the second derivative of \(x_r(n)\) is replaced with \(x_r^{s}(n)\) in order to achieve better noise immunity.
The output weights \(\mathbf {w}_{\mathrm{out}}(n)\) of the ESN are updated using the recursive least squares (RLS) algorithm in combination with least squares prewhitening. Prewhitening is defined by
where \(\mathbf {P}(n)\) denotes the inverse of the correlation matrix of \(\mathbf {z}(n)\). The update of \(\mathbf {P}(n)\) is given by the following two equations:
where \(\mathbf {P}(0) = \delta ^{-1} \mathbf {I}, \delta\) is a small positive constant, \(\mathbf {I}\) the identity matrix, and \(\lambda\) a forgetting factor. The RLS part of the algorithm produces an update of the output weights,
where \(\mathbf {w}_{\mathrm{out}}(0) = \mathbf {0}\). The vector \(\mathbf {r}(n)\) is updated by
where \(\mathbf {W}_{\mathrm{in}}\) is a \(3\times N\) input weight matrix, \(\mathbf {W}\) an \(N\times N\) weight matrix of the internal network connections, \(g_r(\cdot )\) a reservoir neuron activation function, and \(\alpha\) a forgetting factor. The recursion in (9) is initialized with \(\mathbf {r}(0) = \mathbf {0}\).
P-wave absence \(({{\mathcal {P}}})\) is quantified by first computing the squared error between two different PR intervals,
where \(n_P\) and \(n_R\) denote the onset and end of the PR interval, respectively, both located at fixed distances from the fiducial points \(n_i\) and \(n_j, i\ne j\). Then, the squared error is averaged for all pairwise combinations of the \(M\) beats in the detection window,
The parameter \({{\mathcal {P}}}\) is close to 0 in rhythms with P-waves, but increases when f-waves are present. Since the F-waves of atrial flutter are largely canceled by the ESN, thanks to their much more stable pattern than the f-waves, the corresponding value of \({{\mathcal {P}}}\) is close to 0. In contrast to [4], this approach to characterizing P-wave absence requires no P-wave template, neither is it sensitive to variations in morphology since P-waves have already been canceled by the ESN.
f-wave presence \(({{\mathcal {F}}})\) is quantified by the parameter known as spectral concentration [5, 21],
where \(P_{\hat{s}}(\omega )\) and \(E_{\hat{s}}\) denote the power spectrum and energy, respectively, of \(\hat{s}(n)\) in the \(M\) beat long detection window. The integration interval \(\varOmega _p\) is centered around the dominant spectral peak located within the interval \([\omega _{a,0},\omega _{a,1}]\) [5]. When f-waves are present, the dominant peak reflects AF frequency and \({{\mathcal {F}}}\) becomes closer to 1, whereas it is closer to 0 for sinus rhythm (SR). The power spectrum \(P_{\hat{s}}(\omega )\) is obtained using Welch’s method (1-s cosine window with 50 % segment overlap).
2.2 Ventricular activity characterization
RR interval irregularity \(({{\mathcal {R}}})\) is quantified by the coefficient of sample entropy, defined by
where \(A\) and \(B\) denote the total number of RR interval patterns of length \(m+1\) and \(m\), respectively, that match within a certain tolerance \(r\); for details, see the PAF detector described in [18]. The mean length of the RR intervals in the detection window is denoted \(\bar{m}_{r}\).
2.3 Noise level estimation
The noise level is estimated by the root mean square (RMS) value \(R_{\hat{s}}\) of \(\hat{s}(n)\), weighted by a ratio of spectral entropies. The numerator and denominator are computed in spectral bands dominated by noise and f-waves, respectively, defined by the respective frequencies \(\omega _{n}\) and \(\omega _{a}\). The noise parameter \({{\mathcal {N}}}\), defined by
is small when \(P_{\hat{s}}(\omega )\) reflects AF, whereas it is large when motion artifacts and/or electromyographic (EMG) noise is present. The properties of \({{\mathcal {N}}}\) are further investigated in Sect. 4.
2.4 AF detection based on fuzzy logic
A Mamdani-type fuzzy inference method is employed for AF detection [22]. With fuzzy logic, numerical and linguistic knowledge are combined, which makes it particularly useful in applications where subjective knowledge is available about the process. The present design comes with four inputs, i.e., \({{\mathcal {P}}}, {{\mathcal {F}}}, {{\mathcal {R}}}, {{\mathcal {N}}}\), a set of “if–then” rules, and one output \({{\mathcal {O}}}\). By means of an input membership function, each input value is mapped (“fuzzified”) to a value that indicates the degree of belonging to a certain fuzzy set. For \({{\mathcal {P}}}, {{\mathcal {F}}}\), and \({{\mathcal {R}}}\), the fuzzy sets relate to SR and AF, and the following two input membership functions are employed:
and
The shape of \(\mu _{\mathrm{SR}}(x)\) and \(\mu _{\mathrm{AF}}(x)\) is defined by the parameters \(a\) and \(b\). For \({{\mathcal {N}}}\), the same type of input membership function is employed, but the fuzzy set relates instead to the noise level which is judged either to be low or high.
The set of if–then rules are then activated: In each rule, the antecedent is the fuzzified input value and the consequent is the linguistic output that reflects the degree of confidence of SR and AF. Each rule is composed of the four fuzzified parameters and combined with the AND operator. The output of each rule is defined by the Gaussian membership function,
where \(c_k\) and \(\sigma ^2\) determine location (output specific) and width, respectively, and \(C\) is the number of linguistic outputs. For each rule, the degree of activated output is determined by the minimum value of each member. For simplicity, all rules are assigned a weight equal to 1.
The inference of a fuzzy block is based on all rules, and therefore the output of the individual rules \(\mu _k(y)\) is combined using the maximum method for accumulation to produce the overall fuzzy output \(\mu _o(y)\). The output value is obtained using the centroid defuzzification method, defined by
where \(y_{\mathrm{min}}\) and \(y_{\mathrm{max}}\) are the lower and upper limits, respectively, of the overall fuzzy output. The output \({{\mathcal {O}}}\) is a value between 0 and 1 which reflects the likelihood that the detection window contains AF.
2.5 Detection threshold
Since a short detection window is likely to cause more false alarms, median filtering (whose length is equal to that of the sliding window, i.e., \(M\)) is applied to the output \({{\mathcal {O}}}\) for the purpose of suppressing outlier values (it is recalled that \({{\mathcal {O}}}\) is a signal that results from the sliding window computation). Paroxysmal AF is detected whenever the output of the median filter exceeds a fixed threshold \(\eta\) \((0<\eta <1)\).
2.6 Parameter settings
All parameter values of the detector were determined through experimentation on ECG data which were not part of the performance evaluation. In some case, the parameter values were identical to those used in previous studies.
Since the goal of the present study is to detect occult PAF, the length of the sliding window was set to only \(M=5\) beats. The ESN was implemented using \(N=100, \lambda =0.999, \alpha =0.8\), and \(D=50\) ms. The PR interval was set to \((n_R, n_P)=(50,250)\) ms when computing \({{\mathcal {P}}}\). The parameters \({{\mathcal {F}}}\) and \({{\mathcal {R}}}\) were computed using the values given in [5] and [18], respectively. The parameter \({{\mathcal {N}}}\) was computed with the integration interval \([\omega _{a,0},\omega _{a,1}]\) set to \([3,12]\,\hbox {Hz}\), reflecting that the AF frequency is usually contained in this interval [28], whereas the noise interval \((\omega _{n,0},\omega _{n,1}]\) was disjunct and set to \((12,125]\,\hbox {Hz}\).
A total of 16 fuzzy rules were used. The input membership functions in (15) and (16) are defined by the parameters \(a\) and \(b\), determining the extreme values of the functions. The following values were used: \((a,b)=(-3,0.2)\) for \({{\mathcal {R}}}, (a,b) =(0,0.6)\) for \({{\mathcal {S}}}, (a,b)=(0,0.015)\) for \({{\mathcal {P}}}\), and \((a,b)=(0,2)\) for \({{\mathcal {N}}}\). Equidistant locations were assigned to the Gaussian output membership functions in (17): \(c_k=c_0+k\varDelta c, c_0=0, \varDelta c=0.143\), and \(C=8\); the motivation for choosing \(C\) is presented below. The set of linguistic outputs was defined by four values of SR and four values of AF, i.e., \(\{0,1,2, 3\}\) that reflect the likelihood of SR or AF. For example, the output is labeled SR0 when SR is present with low likelihood, and AF2 when AF is present with rather high likelihood. The width \(\sigma\) was set to 0.061. The integration interval in (18) was set to \((y_{\mathrm{min}}, y_{\mathrm{max}}) =(-0.2,1.2)\). The complete set of fuzzy rules is presented in Table 1. It should be noted that the guiding star when designing the fuzzy rules is simple: More weight is assigned to \({{\mathcal {R}}}\) and less weight to \({{\mathcal {P}}}\) and \({{\mathcal {F}}}\) when the noise level \({{\mathcal {N}}}\) is high, and vice versa when low.
The detection threshold \(\eta\) was fixed and set to 0.5, a choice based on the distributions of \({{\mathcal {O}}}\) for SR and AF, see the results below.
3 Performance evaluation
3.1 Development and test datasets
The dataset used for developing the proposed detector was a database previously described in [32], with standard 12-lead ECGs from 211 patients clinically diagnosed with paroxysmal or persistent AF.
Due to the lack of annotated databases with occult PAF, test signals were generated for performance evaluation. The starting point was a set of 100 ECGs selected from the PTB Diagnostic ECG Database [3, 11], containing signals from 50 healthy subjects and 50 patients with myocardial infarction, all with SR, and lasting for about 2 min. The original sampling rate of 1,000 Hz was decimated to 250 Hz to alleviate the computational demands of the ESN [26]. Leads \(\hbox {V}_{1}\) and \(\hbox {V}_{6}\) were selected as target and reference signals, respectively. The original ECG was then subjected to repeated concatenation until at least 1,000 beats were included.
In order to generate signals with PAF episodes, the concatenated ECGs were altered with respect to rhythm and morphology. In PAF episodes, the signal was produced by adding the ventricular activity of the ECG and synthetic f-waves produced by a sawtooth model (once P-waves had been blanked). During SR, the original P-waves were modified to produce a more challenging test signal with larger morphologic beat-to-beat variability. The original RR interval series was replaced by a series produced by a model of either SR or AF. Finally, EMG noise was added at different RMS values to produce the test signal. The “Appendix” provides more information on signal generation.
The capability of \({{\mathcal {N}}}\) to characterize noise, but not f-waves, was investigated using 100 5-s segments each of f-waves extracted from the AF database in [32], and EMG noise extracted from the MIT–BIH Noise Stress Test Database [24]. All 5-s segments were normalized with respect to their RMS value.
3.2 Performance measures
In the present study, the principal performance measure is detection accuracy, denoted \(A\), defined as the number of correctly detected AF and SR episodes divided by the total number of episodes in a signal. Sensitivity is the number of correctly detected AF episodes divided by the total number of AF episodes, whereas specificity is the number of correctly detected SR “episodes” divided by the total number of SR episodes. An episode is considered to be correctly detected whether the overlap between annotation and detector output is at least 50 %. The statistical results are expressed as mean \(\pm\) two-sided confidence interval (95 %). All statistical results are based on 100 test signals.
4 Results
Figure 2 illustrates the performance of the proposed detector: The two AF episodes are correctly detected, including the second episode immediately preceded by APBs and corrupted with EMG noise that drown the f-waves. It can be noted that \({{\mathcal {N}}}\) is large when noise is present, while it is close to zero when PQRST residuals and f-waves are present (as is the case during the first 15 s of the example).
To shed further light on how noise is characterized by the parameter \({{\mathcal {N}}}\), it was not only computed for EMG noise but also for f-waves to determine the extent by which f-waves influence \({{\mathcal {N}}}\). Figure 3 shows that \({{\mathcal {N}}}\) is proportional to the noise level, while it is essentially independent of f-wave amplitude.
The range of each input membership function was determined by the distributions displayed in Fig. 4a–d, obtained from the AF database in [32]. While none of the parameters \({{\mathcal {R}}}, {{\mathcal {F}}}\), and \({{\mathcal {P}}}\) can individually discriminate AF from SR, Fig. 4f shows that their combination into \({{\mathcal {O}}}\), with \({{\mathcal {N}}}\) taken into account, offers excellent discrimination for \(\eta =0.5\). Figure 4e indicates that the detection accuracy \(A\) is only mildly dependent on the number of linguistic outputs. Eight outputs were used since no further improvement was obtained with additional outputs.
Figure 5a displays \(A\) as a function of noise level when episodes with random length are analyzed. In order to show the added value of different features, the following combinations were compared: \({{\mathcal {R}}}, ({{\mathcal {R}}},{{\mathcal {P}}}), ({{\mathcal {R}}},{{\mathcal {P}}},{{\mathcal {F}}})\), and \(({{\mathcal {R}}},{{\mathcal {P}}},{{\mathcal {F}}}, {{\mathcal {N}}})\), i.e., \({{\mathcal {O}}}\).
The results show that the decrease in \(A\) for \({{\mathcal {O}}}\) is just 0.01 when the noise level increases from 20 to \(100\,\upmu \hbox {V}\), and \({{\mathcal {O}}}\) performs better than \({{\mathcal {R}}}\) for all noise levels. The accuracy of \({{\mathcal {R}}}\) is constant because the noise does not influence the RR interval pattern through falsely detected or missed heartbeats. While \({{\mathcal {P}}}\) improves detection performance only for low noise levels (<30 μV), the contribution of \({{\mathcal {F}}}\) remains significant up to a noise level of 90 \(\upmu \hbox {V}\). Figure 5b presents \(A\) as a function of noise level, but with 5 % of all beats being APBs. When comparing to the results in Fig. 5a, it is obvious that the performance of all detectors deteriorate when APBs are present; however, the deterioration is more pronounced for \({{\mathcal {R}}}\) as \(A\) drops from 0.97 to 0.88. The performance of \({{\mathcal {O}}}\) remains superior to \({{\mathcal {R}}}\), especially at low noise levels.
The requirement of a reference lead with negligible f-waves may seem as a major limitation of the proposed method. The results in Fig. 5c indicate though that increased f-wave amplitude in the reference lead \(\hbox {V}_{6}\) does not deteriorate \(A\) when the amplitude in the target lead \(\hbox {V}_{1}\) is \(30\,\upmu \hbox {V}\). When the amplitude in \(\hbox {V}_1\) is very small, i.e., \(10\,\upmu \hbox {V}, A\) drops from 0.99 to 0.94.
Table 2 displays the performance of the proposed detector for an increasing number of beats in the PAF episodes. The proposed detector was compared to the RR-based detector in [18], using the coefficient of sample entropy as decision parameter, here denoted \({{\mathcal {O}}}_{R}\); the detection threshold used in [18] was also used here. The results of Table 2 show that both \({{\mathcal {O}}}\) and \(\mathcal {O_{R}}\) are capable of detecting all AF episodes for the chosen threshold settings since the sensitivity is equal to 1. When no APBs are present, the accuracy of \({{\mathcal {O}}}\) remains high (0.88) also for episodes with as few beats as 5. When APBs are present, \(\mathcal {O_{R}}\) has much lower specificity than \({{\mathcal {O}}}\).
The above results, obtained from a large set of test signals, are complemented by a number of ECG examples. Figure 6a illustrates that \({{\mathcal {O}}}\) has a shorter delay than \({{\mathcal {O}}}_{R}\) when detecting an AF episode. Figure 6b, c illustrate that \({{\mathcal {O}}}\) is more robust to false alarms caused by sudden changes in the RR interval series, here associated with either APBs or respiratory sinus arrhythmia.
5 Discussion
The goal of this work is to develop a reliable method for detection of occult PAF. With such a detector in long-term monitoring, information on episode pattern can be produced which may help to shed light on clinical challenges such as cryptogenic ischemic stroke. The synergy of the four parameters and the a priori knowledge built into the decision model (cf. Table 1) is the main reason to why the proposed detector performs well. Yet, the structure of the present detector is simple since RR irregularity, P-waves, and f-waves are characterized by just one parameter each.
Both the detector in [4] and the proposed detector make use of atrial information, though in quite different ways. Firstly, an f-wave signal can be extracted with the ESN when physiological disturbances such as VPBs are present, thereby precluding the need for ectopic beat detection. Secondly, the inclusion of noise level in the decision process allows the proposed detector to determine whether \({{\mathcal {P}}}\) and \({{\mathcal {F}}}\) can be relied on. The detection of brief episodes was not addressed in [4] since most episodes of the MIT–BIH AF database are much longer than 30 beats, nor was the performance evaluated at different noise levels.
The proposed detector assumes that P-wave absence, f-wave presence, and noise can be quantified from \(\hat{s}(n)\). The feasibility of this assumption is illustrated by the following two examples. Noise appearing in the target signal is not canceled by the ESN, but remains in \(\hat{s}(n)\), see Fig. 7a. On the other hand, noise present in the reference lead does not deteriorate f-wave extraction, see Fig. 7b. Other techniques than the ESN may be considered for PVCs, e.g., averaged beat subtraction or spatiotemporal QRST cancelation. These cancelation techniques suffer, however, from the disadvantage of requiring many beats for averaging, and therefore do not perform well when occasional PVCs occur. For this reason, we promote the ESN for PQRST cancelation since accurate f-wave extraction is required when the feature \({{\mathcal {F}}}\) is used.
The results show that the proposed detector is robust to noise (Fig. 5a), performs well in the presence of APBs (Fig. 5b), and can detect occult PAF reliably (Table 2). The example in Fig. 2 suggests that the delay in detection is about three beats, and that an episode length of at least five beats is needed for detection. This example also suggests that the detector is operational already after five beats after the onset of the recording, and thus a lengthy initialization period is not required.
In recent, interesting paper on ECG signal quality during arrhythmias, Behar et al. [2] explore skewness and kurtosis for noise quantification. These two parameters are not suitable though for signals with canceled ventricular activity, and therefore a novel noise parameter \({{\mathcal {N}}}\) was proposed and tested. Still, the main insight of [2] is valid also here, namely that signal quality parameters should be rhythm-specific.
The use of fuzzy logic is attractive since basic knowledge on AF can be easily translated to a set of linguistic rules. The Mamdani-type fuzzy logic does not require training, and its implementation is easily reproduced. On the other hand, the performance of an ANN-based detector depends on the training dataset and, as a consequence, its performance is likely dropping when noisy data is fed to the ANN. The main challenge with fuzzy logic is the selection of appropriate membership functions and rules. Although the present choice of membership functions and rules was heuristic, the performance of \({{\mathcal {O}}}\) was still superior to that of \({{\mathcal {O}}}_{R}\). The number of linguistic outputs \(C\) and the detection threshold \(\eta\) are crucial parameters and were given special attention, cf. Fig. 4e, f; the remaining parameters were determined heuristically from the development dataset.
Other decision techniques may be employed as well, e.g., linear discriminant analysis or artificial neural networks. However, a much larger dataset must then be used for training, especially when the noise level constitutes one of the input parameters, and therefore such techniques were not considered.
A limitation of the present study is that the proposed detector is not evaluated on an ECG database with occult PAF. Since the database must also have at least two ECG leads (one with negligible atrial activity, and the other containing atrial activity), and no such database is yet available with annotations, an approach with test signals has been pursued which still provides valuable insight on performance. For example, the influence of noise can be investigated in situations when the noise level exceeds the f- and P-wave amplitudes. Although noise immunity is a central aspect in long-term monitoring of AF, it has not received much attention in the literature. It should be noted that the present type of test signals preserve the morphologic QRST variability of the original ECG and the relationship between different leads. An alternative approach to performance evaluation may be to consider a database with PAF and manually “edit” all signals so that shorter (occult) episodes are created. However, the present approach offers better control of different signal properties and can produce signals with very challenging properties.
It is obviously desirable to involve more than two detectors in a performance comparison; however, detectors in the literature use window lengths of at least 30 s and are thus unsuitable for occult PAF. The detector by Dash et al. employed a window of 128 beats, implying that PAF episodes shorter than 64 beats could not be detected [9]. A similar observation applies to the detector developed by Huang et al. [12] which employed a window of 100 beats. Hence, a comparison of performance with these two detectors, not designed to detect brief PAF episodes, would be unfair and favor the present detector.
Furthermore, it should be noted that the proposed detector is developed exclusively for analysis of ECG signals. It is not applicable to PAF detection in intracardiac signals, e.g., studied in [25], since P- and f-wave information is explored.
6 Conclusions
This study shows that the combination of parameters characterizing atrial activity, ventricular activity, and prevailing noise level offers reliable detection of occult PAF. The results show that AF episodes as short as five beats can be detected, and the performance is essentially unchanged for noise levels up to \(100\,\upmu \hbox {V}\) RMS.
The detector is expected to have clinical relevance since brief AF episodes can be reliably detected in asymptomatic cases and trigger an event recorder. The detector should also be suitable for integration in eHealth services where analysis of long-term recordings is offered.
Notes
Note: the code for test signal generation will be made available at Physionet (or similar) upon manuscript publication.
References
Babaeizadeh S, Gregg RE, Helfenbein ED, Lindauer JM, Zhou SH (2009) Improvements in atrial fibrillation detection for real-time monitoring. J Electrocardiol 42(6):522–526
Behar J, Oster J, Li Q, Clifford G (2013) ECG signal quality during arrhythmia and its application to false alarm reduction. IEEE Trans Biomed Eng 60(6):1660–1666
Bousseljot R, Kreiseler D, Schnabel A (1995) Nutzung der EKG-Signaldatenbank CARDIODAT der PTB über das Internet. Biomedizinische Technik 40:317
Carvalho P, Henriques J, Couceiro R, Harris M, Antunes M, Habetha J (2012) Model-based atrial fibrillation detection. In: Gacek A, Pedrycz W (eds) ECG signal processing, classification and interpretation. Springer, London, pp 99–133
Castells F, Rieta JJ, Millet J, Zarzoso V (2005) Spatiotemporal blind source separation approach to atrial activity estimation in atrial tachyarrhythmias. IEEE Trans Biomed Eng 52(2):258–267
Charitos EI, Stierle U, Ziegler PD, Baldewig M, Robinson DR, Sievers HH, Hanke T (2012) A comprehensive evaluation of rhythm monitoring strategies for the detection of atrial fibrillation recurrence: insights from 647 continuously monitored patients and implications for monitoring after therapeutic interventions. Circulation 126(7):806–814
Corino VDA, Sandberg F, Mainardi LT, Sörnmo L (2011) An atrioventricular node model for analysis of the ventricular response during atrial fibrillation. IEEE Trans Biomed Eng 58(12):3386–3395
Couceiro R, Carvalho P, Henriques J, Antunes M, Harris M, Habertha J (2008) Detection of atrial fibrillation using model-based ECG analysis. In: Proceedings of international conference pattern recognition (ICPR), 19, pp 1–5
Dash S, Chon K, Lu S, Raeder E (2009) Automatic real time detection of atrial fibrillation. Ann Biomed Eng 37:1701–1709
Flint AC, Banki NM, Ren X, Rao VA, Go AS (2012) Detection of paroxysmal atrial fibrillation by 30-day event monitoring in cryptogenic ischemic stroke: the stroke and monitoring for PAF in real time (SMART) registry. Stroke 43(10):2788–2790
Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng CK, Stanley HE (2000) PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101:E215–E220
Huang C, Ye S, Chen H, Li D, He F, Tu Y (2011) A novel method for detection of the transition between atrial fibrillation and sinus rhythm. IEEE Trans Biomed Eng 58(4):1113–1119
Jané R, Olmos S, Laguna P, Caminal P (1993) Adaptive Hermite models for ECG data compression: performance and evaluation with automatic wave detection. In: Comput. Cardiol., IEEE Computer Society Press, 20, pp 389–392
Kishore A, Vail A, Majid A, Dawson J, Lees KR, Tyrrell PJ, Smith CJ (2014) Detection of atrial fibrillation after ischemic stroke or transient ischemic attack: a systematic review and meta-analysis. Stroke 45(2):520–526
Kuo JY, Tai CT, Tsao HM, Hsieh MH, Tsai CF, Lin WS, Lin YK, Ding YA, Tsai CH, Chen SA (2003) P wave polarities of an arrhythmogenic focus in patients with paroxysmal atrial fibrillation originating from superior vena cava or right superior pulmonary vein. J Cardiovasc Electrophysiol 14(4):350–357
Laguna P, Jané R, Meste O, Poon PW, Caminal P, Rix H, Thakor NV (1992) Adaptive filter for event-related bioelectric signals using an impulse correlated reference input: comparison with signal averaging techniques. IEEE Trans Biomed Eng 39(10):1032–1044
Laguna P, Jané R, Caminal P (1994) Automatic detection of wave boundaries in multilead ECG signals: validation with the CSE database. Comput Biomed Res 27:45–60
Lake DE, Moorman JR (2011) Accurate estimation of entropy in very short physiological time series: the problem of atrial fibrillation detection in implanted ventricular devices. Am J Physiol (Heart Circ Physiol) 300(1):H319–H325
Langley P, Dewhurst M, Marco LD, Adams P, Dewhurst F, Mwita J, Walker R, Murray A (2012) Accuracy of algorithms for detection of atrial fibrillation from short duration beat interval recordings. Med Eng Phys 34(10):1441–1447
Lian J, Wang L, Muessig D (2011) A simple method to detect atrial fibrillation using RR intervals. Am J Cardiol 107:1494–1497
Llinares R, Igual J, Miró-Borrás J (2010) A fixed point algorithm for extracting the atrial activity in the frequency domain. Comput Biol Med 40:943–949
Mamdani E, Assilian S (1975) An experiment in linguistic synthesis with a fuzzy logic controller. Int J Man-Machine Stud 7(1):1–13
McSharry P, Clifford G, Tarassenko L, Smith L (2003) A dynamical model for generating synthetic electrocardiogram signals. IEEE Trans Biomed Eng 50(3):289–294
Moody GB, Muldrow WK, Mark RG (1984) A noise stress test for arrhythmia detectors. In: Comput. Cardiol., IEEE Computer Society Press, 11, pp 381–384
Pagana G, Galleani L, Gross S, Ruo Roch M, Pastore E, Poggio M, Quaranta G (2012) Time-frequency analysis of the endocavitarian signal in paroxysmal atrial fibrillation. IEEE Trans Biomed Eng 59(10):2838–2844
Petrenas A, Marozas V, Sörnmo L, Lukosevicius A (2012) An echo state neural network for QRST cancellation during atrial fibrillation. IEEE Trans Biomed Eng 59(10):2950–2957
Rabinstein AA, Fugate JE, Mandrekar J, Burns JD, Seet RC, Dupont SA, Kauffman TJ, Asirvatham SJ, Friedman PA (2013) Paroxysmal atrial fibrillation in cryptogenic stroke: a case control study. J Stroke Cerebrovasc Dis 22(8):1405–1411
Sandberg F, Stridh M, Sörnmo L (2008) Time-frequency analysis of atrial fibrillation. In: Mainardi L, Sörnmo L, Cerutti S (eds) Understanding atrial fibrillation: the signal processing contribution, Morgan Claypool, chap 4, pp 81–102
Sarkar S, Ritscher D, Mehra R (2008) A detector for a chronic implantable atrial tachyarrhythmia monitor. IEEE Trans Biomed Eng 55(3):1219–1224
Seet RCS, Friedman PA, Rabinstein AA (2011) Prolonged rhythm monitoring for the detection of occult paroxysmal atrial fibrillation in ischemic stroke of unknown cause. Circulation 124:477–486
Sörnmo L, Börjesson PO, Nygårds ME, Pahlm O (1981) A method for evaluation of QRS shape features using a mathematical model for the ECG. IEEE Trans Biomed Eng 28(10):713–717
Stridh M, Sörnmo L, Meurling CJ, Olsson SB (2004) Sequential characterization of atrial tachyarrhythmias based on ECG time-frequency analysis. IEEE Trans Biomed Eng 51(1):100–114
Tateno K, Glass L (2001) Automatic detection of atrial fibrillation using the coefficient of variation and density histograms of RR and deltaRR intervals. Med Biol Eng Comput 39:664–671
Tayal AH, Tian M, Kelly KM, Jones SC, Wright DG, Singh D, Jarouse J, Brillman J, Murali S, Gupta R (2008) Atrial fibrillation detected by mobile cardiac outpatient telemetry in cryptogenic TIA or stroke. Neurology 71:1696–1701
Thong T, McNames J, Aboy M, Goldstein B (2004) Prediction of paroxysmal atrial fibrillation by analysis of atrial premature complexes. IEEE Trans Biomed Eng 51(4):561–569
Acknowledgments
This work was partially supported by the Swedish Institute (00923/2011), and by the European Social Fund (Agreement No. VP1-3.1-SMM-10-V-02-004.
Author information
Authors and Affiliations
Corresponding author
Appendix
Appendix
This appendix describes the steps required for generating test signals with occult PAF; the interested reader is referred to the publications cited below for more information on each of the steps.Footnote 1 The ECGs of the PTB database, which served as the starting point for test signal generation, were first subjected to baseline removal and QRST delineation [17].
1.1 Ventricular rhythm
The number of beats in SR and AF episodes was uniformly distributed in the interval [5, 30], unless otherwise stated, and thus the test signals contained about the same number of episodes of SR and AF.
The model in [23] was used to generate RR intervals during SR. The mean heart rate was set to 60 bpm and the standard deviation to 2 bpm, the respiratory rate to 0.25 Hz, and the low-frequency/high-frequency ratio to 1. During AF, an atrioventricular node model was used to generate RR intervals [7]. The mean arrival rate of atrial impulses was set to 6 Hz, the minimal refractory period to 0.25 s, the probability of an impulse to take the slower pathway to 0.6, the maximal refractory period prolongation to 0.1 s (identical for both pathways), and the difference between the two refractory periods to 0.2 s.
1.2 Ventricular morphology
The original T-waves were first resampled to a fixed width, and then, depending on type of rhythm, width-adjusted to match prevailing heart rate. During SR, the T-wave was resampled relative the current RR interval using Bazett’s formula, where the corrected QT interval was set to 420 ms. During AF, the QT interval was shorter than during SR, and set to a fixed value (250 ms). After an AF episode terminated, the T-wave duration was gradually increased over the five next beats so as to produce a smooth transition from AF to SR. When needed, the TQ interval was padded with zeros.
Since APBs occur quite commonly in AF patients [35], a certain percentage of APBs was introduced in the test signal. The occurrence of an APB caused the preceding RR interval to be 25 % shorter and the following 25 % longer.
1.3 P-waves and f-waves
In lead \(\hbox {V}_6\), P-waves are usually monophasic in shape and therefore reasonably well modeled by the first Hermite function [13, 31]. The second and third Hermite functions, being biphasic and triphasic, respectively, were added with random weights (normal distribution, zero-mean, variance 0.1) to make the morphology vary over time. Since P-waves in \(\hbox {V}_1\) are often biphasic in patients with PAF [15], they were modeled by simply differentiating the corresponding P-wave in \(\hbox {V}_6\). The peak-to-peak P-wave amplitude was set to \(50\,\upmu \hbox {V}\) in both \(\hbox {V}_1\) and \(\hbox {V}_6\). The PR interval length was uniformly distributed within the interval [175,185] ms.
The extended f-wave sawtooth model was used together with the parameter values in [26]. The amplitude in \(\hbox {V}_{1}\) was taken to be 5 times larger than that in \(\hbox {V}_6\) to reflect the fact that f-waves have much larger amplitude in \(\hbox {V}_{1}\) than in \(\hbox {V}_{6}\). This difference in amplitude was caused by the longer distance from the heart to the electrode site and an electrical vector that is much more scattered during AF.
1.4 Noise
Following summation of ventricular and atrial activities, EMG noise taken from the MIT–BIH Noise Stress Test Database [24] was added to produce the final test signal (the noise first rescaled to the desired RMS value). A number of test signals with different noise levels are displayed in Fig. 8.
Rights and permissions
About this article
Cite this article
Petrėnas, A., Sörnmo, L., Lukoševičius, A. et al. Detection of occult paroxysmal atrial fibrillation. Med Biol Eng Comput 53, 287–297 (2015). https://doi.org/10.1007/s11517-014-1234-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11517-014-1234-y