Next Article in Journal
Comparison of Six Sensor Fusion Algorithms with Electrogoniometer Estimation of Wrist Angle in Simulated Work Tasks
Previous Article in Journal
Performance Studies of Aluminium-Based Gas Electron Multiplier Detector
Previous Article in Special Issue
Light and Displacement Compensation-Based iPPG for Heart-Rate Measurement in Complex Detection Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Higher-Order Spectral Analysis Combined with a Convolution Neural Network for Atrial Fibrillation Detection-Preliminary Study

by
Barbara Mika
*,† and
Dariusz Komorowski
Faculty of Biomedical Engineering, Department of Medical Informatics and Artificial Intelligence, Silesian University of Technology, Roosevelt 40, 41-800 Zabrze, Poland
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Sensors 2024, 24(13), 4171; https://doi.org/10.3390/s24134171
Submission received: 28 May 2024 / Revised: 19 June 2024 / Accepted: 25 June 2024 / Published: 27 June 2024
(This article belongs to the Special Issue Biomedical Signals, Images and Healthcare Data Analysis)

Abstract

:
The global burden of atrial fibrillation (AFIB) is constantly increasing, and its early detection is still a challenge for public health and motivates researchers to improve methods for automatic AFIB prediction and management. This work proposes higher-order spectra analysis, especially the bispectrum of electrocardiogram (ECG) signals combined with the convolution neural network (CNN) for AFIB detection. Like other biomedical signals, ECG is non-stationary, non-linear, and non-Gaussian in nature, so the spectra of higher-order cumulants, in this case, bispectra, preserve valuable features. The two-dimensional (2D) bispectrum images were applied as input for the two CNN architectures with the output AFIB vs. no-AFIB: the pre-trained modified GoogLeNet and the proposed CNN called AFIB-NET. The MIT-BIH Atrial Fibrillation Database (AFDB) was used to evaluate the performance of the proposed methodology. AFIB-NET detected atrial fibrillation with a sensitivity of 95.3%, a specificity of 93.7%, and an area under the receiver operating characteristic (ROC) of 98.3%, while for GoogLeNet results for sensitivity and specificity were equal to 96.7%, 82%, respectively, and the area under ROC was equal to 96.7%. According to preliminary studies, bispectrum images as input to 2D CNN can be successfully used for AFIB rhythm detection.

1. Introduction

Atrial fibrillation (AFIB) is the most common persistent cardiac arrhythmia that poses a challenge in clinical practice and public health [1]. AFIB can lead to severe complications and typically reduce patients’ quality of life and increase mortality as well as the cost to healthcare systems [2]. Scientific reports [3] show that the number of persons with atrial fibrillation in the United States in 2050 will exceed 10 million, while in the European Union, from 2010 to 2060, the number of adults 55 years and over with AFIB will more than double [1,4]. Estimates of current and future incidence and prevalence of atrial fibrillation are worrying and force the constant search for effective screening methods for AFIB detection.
Unlike other arrhythmias, the mechanisms of atrial fibrillation are more complex and have not yet been fully understood [5]. Modern theories link the underlying mechanism of atrial fibrillation with the reentry mechanism, which is not a disorder of impulse generation but its propagation; that is, the movement of an electrical impulse around an abnormal circuit repetitively. The depolarizing wave of the action potential leaves cells in the refractory state, unresponsive to further stimulation; hence, repeated stimulation of the same area requires a time-planned delay so that the next action potential can reenter the circuit and will not encounter cells unable to respond to the stimulation. In anatomic reentry, the boundaries of the circuit are physical cardiac structures [6]. Basic AFIB-maintaining mechanisms can be pointing out local ectopic firing, single-circuit reentry, and multiple-circuit reentry [7]. According to the literature [2], AFIB is definite as “A supraventricular tachyarrhythmia with uncoordinated atrial electrical activation and consequently ineffective atrial contraction”.
Pathological features characteristic of AFIB diagnosis based on electrocardiogram documentation include [2,8]: “lirregularly irregular R-R intervals (when atrioventricular conduction is not impaired), absence of distinct repeating P waves, and irregular atrial activations”. In compliance with [9], any arrhythmia recorded by a standard 12-lead ECG or a single-lead ECG tracing of at least 30 s of heart rhythm with AFIB characteristics, by convention, is diagnostic of clinical AFIB.
Although AFIB is not a fatal disease in itself if left untreated, it can result in serious health complications and, after some time, may cause stroke, heart failure, heart attack, and premature death [10]. Manual screening of AFIB on electrocardiogram is time-consuming and depends on the experience of the interpreting physician which can lead both to delay and differences in diagnosis and also mistakes and omissions [11]. Artificial intelligence (AI) with machine learning and deep learning techniques using electrocardiography (ECG) are powerful tools for detecting, classifying, and predicting AFIB seem to be a remedy for the above-mentioned human limitations.
Among the deep learning models developed for automatic AFIB detection and classification, we can find deep neural network (DNN) [12,13]; convolution neural network (CNN) [14,15]; recurrent neural network (RNN) [16,17]; long short-term memory network (LSTM) [18,19]; and hybrid (CNN + LSTM) network [20,21,22,23]. Their descriptions with advantages and disadvantages are widely presented and discussed in the work of Murat et al. [20], and Ebrahimi et al. [24]. The main advantage of CNN architectures pointed out in [20] is its strength in obtaining representative properties, so in our studies, CNN with bispectrum input was designed. CNNs can automatically learn representative features directly from the data itself, thus eliminating the need to extract distinctive features manually.
This paper focuses on AFIB detection based on convolution neural networks (CNNs) and higher-order statistics analysis (HOSA). Although many models have been developed using deep learning (DL) [25] to extract information from ECG signals, in this publication, we propose a new approach to detect atrial fibrillation based on higher-order cumulants. In our study, third-order spectra called bispectra are calculated for ECG signals from the MIT-BIH Atrial Fibrillation database and serve as an input to CNN. To our knowledge, such an approach has not yet been described and analyzed in the literature and may contribute to supporting the diagnosis of atrial fibrillation.
This work is organized as follows: in Section 2.1, the theoretical basis for higher-order spectral analysis is presented, and the concept of bispectrum is discussed. Section 2.2 is devoted to the MIT-BIH Atrial Fibrillation database, data preparation, feature extraction, and construction of convolution neural networks used for the AFIB classification and statistic measure. The following Section 3, Section 4 and Section 5 present the results, discussion, and conclusions.

2. Materials and Methods

2.1. Background on Higher-Order Spectral Analysis

Most biomedical signals present non-linear, non-stationary, and non-Gaussian characteristics [26]. These features cause the widely used primary tools of biomedical signal processing, such as correlation and spectral analysis, to quantify only some of the information available in the biomedical signals. Generally, higher-order spectra are Fourier transforms of higher-order statistics (HOS), moments, or cumulants. Moments are instead used for deterministic signals, while cumulants are for stochastic signals [27].
There are some reasons for using HOS to process biomedical signals to capture the desirable information [26]. Higher-order statistics of the Gaussian process are zero [28], so if the no-Gaussian signal is corrupted by the additive Gaussian noise, the transformation to the higher-order spectra (polyspectra) domain suppresses the Gaussian noise and, in consequence, return the signal with a higher signal-to-noise ratio (SNR) [27]. Because the polyspectra provide high noise immunity, they can be treated as a measure of no-Gaussianity. The Fourier transform, the primary tool of power spectral analysis, transforms the signal from the time domain to the frequency domain. It quantifies the power distribution as a function of frequency but does not provide enough information about the phase relation between harmonic components. Hence, the degree of interaction, that is, phase coupling, usually originating from the non-linear source, cannot be assessed based on the power spectrum [29]. Due to polyspectra’s ability to preserve amplitude and phase information, applying HOSA to process the biomedical signal is natural. Many scientists have applied HOSA with success to various biosignals, such as electroencephalogram (EEG) [30,31], electromyogram (EMG) [32], electrocardiogram (ECG) [33,34,35], heart rate variability (HRV) signals [36], image processing [37], and others.
This paper applied the HOSA technique to reveal hidden information from ECG signals. In particular, the third-order spectrum called the bispectrum was used to capture the impact of atrial fibrillation on ECG and served as an input to CNN.

2.1.1. Moments and Cumulants

Let X R N represent the random variable. If the probability density function f ( t ) of the variable X is Gaussian, the random variable X is fully characterized by the mean (first-order statistic) and the covariance (second-order statistic). For the continuous random variable X with the probability density function f ( t ) the characteristic function ϕ ( t ) is defined as (1)
ϕ ( t ) = E ( e j X t ) ϕ ( t ) = f ( t ) · e j x t d t ,
where E ( · ) denotes the expectation value, f ( t ) the probability density function of the random variable X. The function ϕ ( t ) is called the characteristic function or the moment-generating function. The characteristic function ϕ ( t ) can be expressed as a Maclaurin series expansion (2)
ϕ ( t ) = 1 + k = 1 m k k ! ( j t ) k ,
with the coefficients m k = 1 j k ϕ ( k ) ( 0 ) = E ( X k ) of k-order (for k { 1 , 2 , 3 , } ) moments of random variable X where (k) denotes the k-order derivative of the function ϕ ( t ) . Higher-order moments are usually used to define the distribution more precisely [38].
Because the higher-order moments of Gaussian distribution are constant but not zero, the natural logarithm of characteristic function is used. The coefficients of expansion of the function g ( t ) = l n ( ϕ ( t ) ) , where ϕ ( t ) is a characteristic function (i.e., moment-generating function), in the Maclaurin series (3) are known as cumulants ( c k ).
g ( t ) = k = 1 c k k ! ( j t ) k ,
where c k = 1 j k g ( k ) ( 0 ) is a k-order cumulant, and (k) denotes the k-order derivative of the function g ( t ) . The function g ( t ) is called a cumulant-generating function. Based on successive derivation of function g(t), the first three cumulants are equal to
c 1 = E X c 2 = E ( X E X ) 2 c 3 = E ( X E X ) 3 ,
that is,
c 1 = m 1 c 2 = m 2 ( m 1 ) 2 c 3 = m 3 3 m 2 m 1 + 2 ( m 1 ) 3 ,
so the first cumulant is expected value (mean) of random variable X and the second and third cumulants are central moments of the second (variance) and third order, respectively. Cumulants on a higher order than two are zero for the Gaussian distribution [28].
Let X = [ X 1 , X 2 , X 3 , , X p ] T be p-dimensional random variable X R p x 1 . The characteristic function of X is then definite as (4)
Φ ( t ) = E ( e j ( X , t ) ) Φ ( t ) = E ( k = 1 p e j X k t k ) ,
where t = [ t 1 , t 2 , , t p ] T , (t,X) is a scalar product of vectors X, and t. It is said that the vector X admits moments of order n if E ( | X | n ) < , where | X | = i = 1 p x i 2 denotes the norm in the R p space. In such a case, the Φ function is n-time differentiable and the k-order ( k n ) moments ( M ( k ) ) exist and they are definite as (5) [39]
( i 1 , , i k ) A M ( k ) ( X i 1 , , X i k ) = E ( X i 1 · X i 2 · · X i k ) ( i 1 , , i k ) A M ( k ) ( X i 1 , , X i k ) = 1 j k k Φ t i 1 t i k ( 0 ) ,
where the set A contains all the k-element sequences created from the elements of the set { 1 , 2 , , p } . In addition, the function Φ is continuous and Φ ( 0 ) = 1 with non-zero values in the neighborhood of 0 R p so the function-generating cumulants can be written as (6)
Ψ ( t ) = l n ( E ( e j ( X , t ) ) ) .
Because of E ( | X | n ) < , function Ψ is n-time differentiable and the joint cumulants of k-order ( k n ) ( C ( k ) ) are definite by (7)
( i 1 , , i k ) A C ( k ) ( X i 1 , , X i k ) = 1 j k k Ψ t i 1 t i k ( 0 ) .
For multiple dimensional random variables X R p , ( X = [ X 1 , X 2 , X 3 , , X p ] T ) the relationship between its cumulants and moments of k-order ( k p ) could be established by the Leonov and Shiryaev formula [39] (8)
C ( k ) ( X i 1 , , X i k ) = = π P r ( { 1 , , k } ) ( 1 ) | π | 1 ( | π | 1 ) ! B π E ( i B X i ) ,
where set P r ( { 1 , , k } ) includes all the blocks of k-order partitions, π runs through all blocks of set P r ( { 1 , , k } ) , | π | denotes the order (number of parts) for partition in the set π , and B π the partition from the set π .
Below, we present an example of P r ( { 1 , 2 } ) for k = 2 (9) and P r ( { 1 , 2 , 3 } ) for k = 3 (10), where ( | π i | = i for i { 1 , 2 , 3 } ).
P r ( { 1 , 2 } ) = { { 1 , 2 } B 1 π 1 ; { { 1 } B 1 , { 2 } B 2 } π 2 }
P r ( { 1 , 2 , 3 } ) = { { 1 , 2 , 3 } π 1 B 1 ; { { { 1 } , { 2 , 3 } } B 1 ; { { 2 } , { 1 , 3 } } B 2 ; { { 3 } , { 1 , 2 } } B 3 } π 2 ; { { 1 } B 1 , { 2 } B 2 , { 3 } B 3 } π 3 } .
Based on (8)–(10) for X = [ X 1 , X 2 ] , the second-order cumulant can be expressed by (11)
C ( X 1 , X 2 ) = E ( X 1 X 2 ) E ( X 1 ) E ( X 2 ) ,
while the third-order cumulant is given by (12)
C ( X 1 , X 2 , X 3 ) = E ( X 1 X 2 X 3 ) E ( X 1 ) E ( X 2 X 3 ) E ( X 2 ) E ( X 1 X 3 ) E ( X 3 ) E ( X 1 X 3 ) + 2 E ( X 1 ) E ( X 2 ) E ( X 3 ) .
If we assume that E X i = 0 for i { 1 , 2 , 3 } , then the Formulas (11) and (12) simplify to
C ( X 1 , X 2 ) = E ( X 1 X 2 ) a n d C ( X 1 , X 2 , X 3 ) = E ( X 1 X 2 X 3 ) .
For time-dependent, real-valued stationary p-dimensional random process X = [ X ( t ) , X ( t + τ 1 ) , X ( t + τ 2 ) , , X ( t + τ p 1 ) ] , with the time shift τ 1 , τ 2 , , τ p 1 , respectively. The i-th shift for ( i { 1 , 2 , , p 1 } ) is equal to i · T s where T s denotes the sampling period. Hence, the p-order cumulant ( C p , X ) is defined as the p-order joint cumulant of X ( t ) , X ( t + τ 1 ) , X ( t + τ 2 ) , , X ( t + τ p 1 ) , given by (14) [40]
C p , X = C ( X ( t ) , X ( t + τ 1 ) , X ( t + τ 2 ) , , X ( t + τ p 1 ) ) .
The second- and third-order cumulants of zero-mean random variable X can be expressed as follows:
C 2 , X ( τ ) = E ( X ( t ) X ( t + τ ) ) C 3 , X ( τ 1 , τ 2 ) = E ( X ( t ) X ( t + τ 1 ) X ( t + τ 2 ) ) .
If the process X is Gaussian, all the cumulants are zero [28], so the cumulants are also a measure of the deviation from the Gaussian distribution.

2.1.2. Bispectrum

Higher-order spectra are defined with the aid of higher-order moments or cumulants. They are Fourier transforms of higher-order statistics. Applying the Fourier transform for the first three cumulants, we obtain the power spectrum, bispectrum, and trispectrum, respectively [27].
Assuming that the cumulant sequences are absolutely summable (16)
τ 1 = + · · · τ p 1 = + | C p , X ( τ 1 , τ 2 , , τ p 1 ) | < +
the pth-order polyspectrum ( S p , X ) is definite as (p − 1)-order-dimensional discrete-time Fourier transform ( DTFT ) of the pth-order cumulant as follows (17):
S p , X ( f 1 , f 2 , , f p 1 ) = DTFT ( C p , X ( τ 1 , τ 2 , , τ p 1 ) ) = = τ 1 = + · · · τ p 1 = + C p , X ( τ 1 , τ 2 , , τ p 1 ) · e j i = 1 p 1 2 π f i τ i .
For p = 3, we obtain the bispectrum ( S 3 , X ( f 1 , f 2 ) = B ( f 1 , f 2 ) ) as the double DTFT of the third-order cumulant C 3 , X (18)
B ( f 1 , f 2 ) = τ 1 = + τ 2 = + C 3 , X ( τ 1 , τ 2 ) · e j i = 1 2 2 π f i τ i .
A bispectrum is a function of two frequencies f 1 , f 2 , and their couple ( f 1 , f 2 ) is called a bi-frequency. Because of the symmetry relationships in the cumulants graph, only those bi-frequencies inside the triangular region (19) are considered non-redundant.
f 2 0 f 1 f 2 ( f 1 + f 2 ) 1 2 F s
where F s is the sampling frequency.

2.2. AFIB Detection Stage

The proposed method for detecting AFIB rhythms in the ECG signal consists of the following steps: data preparation, feature extraction, and AFIB classification. Feature extraction is based on HOSA, and two architectures of neural networks are proposed for classification: a serial CNN network (further referred to as AFIB-NET) and a pre-trained GoogLeNet network (GNN) [41] with some modifications. The details of each stage are provided in the following subsections. To evaluate the performance of the proposed method, the MIT-BIH Atrial Fibrillation Database (AFDB) (https://physionet.org/content/afdb/1.0.0/ (accessed on 24 June 2024)) was used [42].

2.2.1. MIT-BIH Database

The AFDB database includes 25 long-term ECG recordings of human subjects with atrial fibrillation. Of these, 23 (two of the ECG signals are not provided) records were used in our studies. Each record (of 23) contained two ECG signals sampled at 250 samples per second with 12-bit resolution over a range of ±10 millivolts. Each recording is about 10 h long and has a bandwidth of approximately 0.1 to 40 Hz. AFDB provides the rhythm annotations files, which include 605 annotated episodes, with rhythm annotations of types AFIB (atrial fibrillation), AFL (atrial flutter), J (Nodal (junctional) rhythm), and N used for all other rhythms. AFDB contains a total of 1,686,797.776 (468 h) s of ECG signals (843,398.888 s (234 h) for one ECG lead). The details about time duration for the four available rhythms are included in Table 1.

2.2.2. Data Preparation

In the first stage of data preparation, ECG fragments annotated as AFIB and N (used to indicate all other rhythms) were extracted from each signal of the AFIB MIT-BIH database. Each AFIB and N of the ECG fragment was divided into 5 s segments because it is a long enough time to detect the change in heart rhythm. ECG fragments with AFIB and N rhythms that were less than 5 s long were omitted. As a result of such division, we obtained 134,212 5 s ECG fragments with the AFIB rhythm and, simultaneously, 200,092 5 s fragments with N (all other) rhythms. Fragments of ECG signals with less than 5 s, 582 for AFIB and 574 for N rhythms, were omitted. The bispectrum was then calculated for each 5 s segment of the ECG signals. Bispectra were calculated using the Higher-Order Spectral Analysis (HOSA) MATLAB Toolbox [43]. The HOSA Matlab toolbox proposes two non-parametric methods to estimate the higher-order spectrum (in our case, bispectrum): direct (based on fast Fourier transform (FFT)) and indirect. We checked both methods. The FFT length for computing the bispectrum was set to 512. We chose the direct method for bispectrum estimation based on the preliminary results. The details of algorithms and implementation of direct and indirect methods for bispectrum estimation can be found in the literature [43].

2.2.3. Feature Extraction

In line with a review of the literature in which the frequency range of atrial activities was examined, it is concluded that it is not precisely defined but belongs to the range of approximately 3 to 12 Hz [44,45,46,47,48,49,50]; therefore, for further analysis, we used fragments of bispectra from 0.5 to 12 Hz. The examples of ECG signal and their spectra and bispectra for both AFIB and N rhythms are depicted in Figure 1 and Figure 2, respectively. The absolute value and phase of the bispectrum are presented as a contour obtained for the level equal to 20.
Both the absolute value and the phase of bispectra in the 0.5 to 12 Hz range were normalized into the range between 0 and 1, corresponding to a conversion into a gray image. The min–max normalization method was applied in the area corresponding to the analyzed frequency range. The two-dimensional images representing the absolute value of bispectra size 24 × 24 were used as the input for AFIB-NET. The sample images corresponded to bispectra in the absolute frequency range of 0 to 40 Hz are shown in the Figure 3 and Figure 4. The fragments marked by the red rectangle (after normalization in the zone of interest) were used to train the AFIB-NET network. Figure 5 shows the histograms of pixel value for the normalized data (gray image) corresponding to the amplitude of the bispectrum of the ECG signals with AFIB and N rhythms (for ECG in Figure 1a and Figure 2a).
Since the GNN uses the three color channels (RGB) image with a size of 224 × 224 × 3, the input image preparation was made as follows: we used the fragments of bispectra from 0.5 to 14 Hz (the range of the frequencies was extended to 14 Hz because of GNN input layer size), which corresponds to the image of size 28 × 28 × 1; this image was replicated 64 times (8 × 8), and copied to each of the RGB layers.

2.2.4. Classification

Two different architectures of deep neural networks were used for the classification. The first approach used the series AFIB-NET, whose detailed structure is presented in Table 2, and the second used modified GNN. The modification considered a change in the number of classes and the adaptation of the network output layer for the classification task being performed. The proposed method was evaluated using the bispectrum images corresponding to the ECG signals with AFIB and N rhythms obtained by the methods mentioned above. We considered about 2000 to 18,000 images (half and half AFIB and N class) randomly chosen from all datasets (134,212 images corresponded to AFIB and 200,092 to N (other) rhythms)). The 70% of the obtained bispectra (images) were used to train the AFIB-NET, the 10% was used to validate the network, and the remaining 20% was used to test the networks.
The AFIB-NET was trained for 40 epochs with a mini-batch size (MBS) equal to 32. The initial learning rate (ILR) was calculated using the following formula: I L R = 0.1 · m i n i B a t c h S i z e / 128 , resulting in an ILR value equal to 0.25. The GNN was trained for 60 epochs with the initial learning rate equal to 0.0001. The code was written in MATLAB 2022a and ran in the workstation equipment with processor Intel(R) Core(TM) i9-10980XE 3.00 GHz, 128 GB RAM, and graphics card NVIDIA Quadro RTX 5000 with 16 GB memory.

2.3. Statistical Measures Applied for the Classifiers Assessment

Several statistical measures were applied for the proposed AFIB-NET and modified GoogLeNet network to evaluate the power of the proposed method dedicated to AFIB detection.
Sensitivity (also known as recall, or true positive rate (TPR)):
T P R = T P T P + F N .
Specificity (true negative rate (TNR)) understood as:
T N R = T N T N + F P .
The precision of positive predictive value:
P P V = T P T P + F P .
The precision of negative predictive value:
N P V = T N T N + F N .
Prevalence:
P V = T P + F N T P + T N + F N + F P .
Accuracy
A C C = T P + T N T P + F N + F P + T N = s e n s i t i v i t y · P V + s p e c i f i c i t y · ( 1 P V ) .
The likelihood ratio of positive values:
L R + = s e n s i t i v i t y 1 s p e c i f i c i t y
and the likelihood ratio of negative values:
L R = 1 s e n s i t i v i t y s p e c i f i c i t y .
Area (AUC) under receiver operating characteristic (ROC), and F1-score
F 1 = 2 · p e c i s i o n · s e n s i t i v i t y p e c i s i o n + s e n s i t i v i t y ,
for rhythm classes AFIB ( F 1 A F I B , f o r p r e c i s i o n = P P V ) and N ( F 1 N , f o r p r e c i s i o n = N P V ). T P t r u e p o s i t i v e , F N f a l s e n e g a t i v e , F P f a l s e n e g a t i v e , T N t r u e p o s i t i v e parameters referred to the confusion matrix obtained for the process of classification.

3. Results

The statistical measures definite in Section 2.3 were calculated for AFIB-NET and GNN and are summarized in Table 3. The confusion matrices for the proposed AFIB-NET and the modified GNN in the AFIB classification are presented in Figure 6 and Figure 7, respectively. Next to the confusion matrix, we can see vertically (in the blue boxes) the sensitivity and specificity values expressed in percentage. The precision of positive (PPV) and negative (NPV) predictive values are presented in the horizontal blue boxes under the confusion matrix. The values of these parameters are also summarized in Table 3.
In addition, Figure 8 presents ROC curve plots with the mark of the net model operating point and the calculated area under the ROC curve for the AFIB class for both AFIB-NET and GoogLeNet.

4. Discussion

4.1. Main Findings of the Study

A good classification model is one that minimizes the number of errors (FP and FN in the confusion matrix). However, the cost of these errors is not always the same, that is, not in all applications. From the medical point of view, it is safer to treat a healthy person as sick (FP) and perform further diagnostic tests to exclude the disease than to treat a sick person as healthy (FN) and not undertake any treatment. Therefore, when analyzing both confusion matrices for AFIB detection, the FP>FN situation is acceptable, which, in turn, views lower precision in favor of higher sensitivity. Such a situation occurs for both analyzed networks (Table 3). However, for GNN, the difference is much higher in the benefit of sensitivity, especially for the precision of positive predictive value (PPV).
If we assume that both precision and sensitivity are essential, we can use the F1 metric, which is the harmonic mean of sensitivity and precision and provides information about the balance between sensitivity and precision maintained by the model. A higher F1 score suggests a better balance between sensitivity and precision, indicating a more effective model. After analyzing the results obtained in this context, we found that the AFIB-NET model is more effective than GNN. F 1 A F I B and F 1 N for AFIB-NET differ by only 0.007, so the model presents a good high balance. At the same time, GNN is a better-balanced model in terms of sensitivity and precision for class N ( F 1 N = 0.964 ) than for class AFIB ( F 1 A F I B = 0.902 ), which means that GNN more often classified the person with N rhythm as a person with AFIB, and such feature from a medical point of view can be acceptable.
Based on the sensitivity and specificity measures, we can determine the likelihood ratio of positive and negative predicting values, that is, AFIB or N rhythms detection, respectively. Assuming, in accordance with the literature [53,54], that the results obtained from the model have a real diagnostic value for LR+, about 10 and more, and LR-, about 0.1 and less, the results (LR+ = 15.127 and LR- = 0.050) obtained for AFIB-NET would indicate a greater diagnostic value in relation to GNN. In this case, the results obtained for GNN would classify this model only as applicable.
Sensitivity and specificity are the measures that are the basis for the construction of ROC curves. A good decision rule is one that maximizes both of these measures. We can use ROC curves to find the optimal cut-off model operating point for a given model, that is, the point at which both of these measures reach their maximum value simultaneously. ROC curves illustrate the relationship between the sensitivity and specificity of a given model and allow for a comprehensive assessment of the decision rule of the constructed model [55]. In Figure 8 we can compare the ROC curves for AFIB-NET and GNN. The model operating point for AFIB-NET is closer to point (0,1), which means the maximum values for sensitivity and specificity.
A widely used approach is to calculate the area under the ROC curve (AUC) and treat it not only as a measure of the goodness and rightness of a given model but also as a tool for assessing and comparing classification models. The AUC parameter takes a value in the range [0, 1]. The higher the AUC value, the better the model. For the models considered in this work, the AUC parameter was also determined (Table 3), and its value is equal to 0.983 for AFIB-NET and 0.967 for GNN, so it could be concluded that both models are correct, but the AFIB-NET is slightly better.
The results confirm the potential of the bispectral analysis of ECG signals and the convolution neural networks applied to AFIB detection. One of the problems in automatic ECG analysis is the significant difference in ECG signal morphology between patients or groups of patients and even within the same person [26,56]. For this reason, higher-order spectra, as the spectral representation of higher-order cumulants or moments of the given signal, in our case, bispectrum seems to be a good choice. Bispectrum extracts the no-Gaussian, non-linearity characteristics from ECG signals and reduces the variation in morphology changes. In addition, the bispectrum preserves the phase relationships between harmonic components.
Based on frequency ranges reported to the AFIB rhythm [44,45,46,47,48,49,50], we present the preliminary results of AFIB detection for the bispectrum frequency band 0.5–12 Hz, which are promising, but still, in the future, we would like to check if or how the frequency band influences the analysis’s effectiveness. In the future, we are planning to repeat the proposed methodology for the bispectrum with a higher resolution. In this study, we also tested not only the amplitude bispectrum as the input to the CNN but also the phase bispectrum images and the combined amplitude and phase bispectrum images. However, the obtained results were not satisfactory, and this approach demands further investigation. The conducted learning and testing processes of CNNs were time-consuming and lasted from some to several dozen hours for one set of parameters and one network architecture.

4.2. Comparison to Other Algorithms

In line with the summaries and results, which can be found in [57,58,59] and other literature (Table 4), we present a comparison of the classification by the proposed technique with the chosen machine learning, deep learning-based methods, and other algorithms developed for detecting the AFIB rhythm using the MIT-BIH Atrial Fibrillation database. Nevertheless, it should be noted that such a comparison is quite difficult to interpret. A very substantive comparison of AFIB detection results and an interesting discussion on the difficulties and interpretation of comparing the quality of atrial fibrillation detection results for different algorithms are presented in the 2023 Yang et al. [59].
The effectiveness of the proposed procedure for AFIB detection based on the bispectrum images corresponds to those presented in Table 4, in terms of the most often presented measures: sensitivity and specificity. However, the other measures presented in Table 3, discussed earlier are in favor of the bispectrum, which, used as the input to the CNN, has a large potential for automated detection of atrial fibrillation.

4.3. Strength and Limitations

This research’s novelty is using bispectrum images as input to CNN to automate AFIB detection. In favor of bispectrum compared to other techniques is bispectrum’s ability to capture the no-Gaussian, non-linear nature of ECG signals. Moreover, bispectrum can identify the phase coupling, usually originating from the non-linear source, and reduce the variation in morphology changes in ECG. The presented preliminary studies confirm that bispectrum images are a good choice for input to the CNN classifier for AFIB detection, but further investigations are required.
The main limitation of this study is that only one ECG database, including two-lead ECG, was used to test the performance of the proposed method. In this work, we tested the ECG signals of the MIT-BIH Atrial Fibrillation database. It is a very good database that is widely used and allows for the comparison of results, but there is a possibility that the signals are somehow correlated. Although the classification was performed with the good practice of using the teaching, validation, and testing set as the next stage of our studies, we also intend to test the proposed methodology on new data from other ECG databases.

5. Conclusions

To the best of our knowledge, this is the first study that combines the methodology of higher-order spectrum (bispectrum) and convolution neural network for the automated detection of AFIB in ECG signals. During the classic assessment of the occurrence of AFIB, these three main features “irregularly irregular R-R intervals (when atrioventricular conduction is not impaired), absence of distinct repeating P waves, and irregular atrial activations” are taken into account. As the bispectrum suppresses the observed features caused by the morphological changes in ECG, it gives the opportunity to catch the variability contributed by the AFIB. The proposed model uses a bispectrum of ECG signal as an input for the proposed convolution neural network AFIB-NET and detects atrial fibrillation with a sensitivity of 0.953, specificity of 0.937, and AUC equal to 0.983. The obtained results for AFIB-NET confirm the effectiveness of the use of bispectra in combination with CNN for detecting AFiB. As the future direction of our studies, we plan to test other bands of frequency and resolution for bispectra images and to test the proposed method for additional ECG databases. We also intend to extend the AFIB-NET classifier for more ECG rhythms.

Author Contributions

Conceptualization, B.M. and D.K.; methodology, B.M. and D.K.; software, D.K.; validation, B.M. and D.K.; formal analysis, B.M. and D.K.; investigation, B.M. and D.K.; writing—original draft preparation, B.M. and D.K.; writing—review and editing, B.M. and D.K.; visualization, D.K.; supervision, B.M. and D.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Silesian University of Technology statutory financial support No. BK: 07/010/BK_24/1034 (BK-289/RIB1/2024).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

To evaluate the performance of the proposed method, the MIT-BIH Atrial Fibrillation Database was used [42] https://physionet.org/content/afdb/1.0.0/ (accessed on 24 June 2024).

Conflicts of Interest

The authors declare that they have no competing interests.

Abbreviations

The following abbreviations are used in this manuscript:
AFIBAtrial Fibrillation
ECGElectrocardiography/Electrocardiogram
CNNConvolution Neural Network
AFIB-NETCNN for AFIB Detection
AFDBMIT-BIH Atrial Fibrillation Database
ROCReceiver Operating Characteristic
AIArtificial Intelligence
HOSAHigher-Order Statistics Analysis
DLDeep Learning
DNNDeep Neural Network
RNNRecurrent Neural Network
LSTMLong Short-Term Memory Network
CNN + LSTMHybrid (CNN+LSTM) Network
HOSHigher-Order Statistics
SRNSignal-To-Noise Ratio
EEGElectroencephalogram
EMGElectromyogram
GNNGoogLeNet Network
AFLAtrial Flutter
JNodal (Junctional) Rhythm
FFTFast Fourier Transform
MBSMiniBatch Size
ILRInitial Learning Rate
TPRTrue Positive Rate (Sensitivity, Recall)
TNRTrue Negative Rate (Specificity)
PPVPrecision of Positive Predictive Value
NPVPrecision of Negative Predictive Value
PVPrevalence
ACCAccuracy
LR+Likelihood Ratio of Positive Value
LR-Likelihood Ratio of Negative Value
AUCArea Under Receiver Operating Characteristic (ROC)
TPTrue Positive
FNFalse Negative
FPFalse Positive
TNTrue Negative

References

  1. Kornej, J.; Börschel, C.S.; Benjamin, E.J.; Schnabel, R.B. Epidemiology of Atrial Fibrillation in the 21st Century. Circ. Res. 2020, 127, 4–20. [Google Scholar] [CrossRef]
  2. Hindricks, G.; Potpara, T.; Dagres, N.; Arbelo, E.; Bax, J.J.; Blomström-Lundqvist, C.; Boriani, G.; Castella, M.; Dan, G.A.; Dilaveris, P.E.; et al. 2020 ESC Guidelines for the diagnosis and management of atrial fibrillation developed in collaboration with the European Association for Cardio-Thoracic Surgery (EACTS): The Task Force for the diagnosis and management of atrial fibrillation of the European Society of Cardiology (ESC) Developed with the special contribution of the European Heart Rhythm Association (EHRA) of the ESC. Eur. Heart J. 2020, 42, 373–498. [Google Scholar] [CrossRef]
  3. Miyasaka, Y.; Barnes, M.E.; Gersh, B.J.; Cha, S.S.; Bailey, K.R.; Abhayaratna, W.P.; Seward, J.B.; Tsang, T.S. Secular Trends in Incidence of Atrial Fibrillation in Olmsted County, Minnesota, 1980 to 2000, and Implications on the Projections for Future Prevalence. Circulation 2006, 114, 119–125. [Google Scholar] [CrossRef]
  4. Krijthe, B.P.; Kunst, A.; Benjamin, E.J.; Lip, G.Y.H.; Franco, O.H.; Hofman, A.; Witteman, J.C.M.; Stricker, B.H.; Heeringa, J. Projections on the number of individuals with atrial fibrillation in the European Union, from 2000 to 2060. Eur. Heart J. 2013, 34, 2746–2751. [Google Scholar] [CrossRef]
  5. Cheniti, G.; Vlachos, K.; Pambrun, T.; Hooks, D.; Frontera, A.; Takigawa, M.; Bourier, F.; Kitamura, T.; Lam, A.; Martin, C.; et al. Atrial Fibrillation Mechanisms and Implications for Catheter Ablation. Front. Physiol. 2018, 9, 1458. [Google Scholar] [CrossRef]
  6. Veenhuyzen, G.D. Atrial fibrillation. Can. Med. Assoc. J. 2004, 171, 755–760. [Google Scholar] [CrossRef]
  7. Iwasaki, Y.K.; Nishida, K.; Kato, T.; Nattel, S. Atrial Fibrillation Pathophysiology. Circulation 2011, 124, 2264–2274. [Google Scholar] [CrossRef]
  8. Jekova, I.; Christov, I.; Krasteva, V. Atrioventricular Synchronization for Detection of Atrial Fibrillation and Flutter in One to Twelve ECG Leads Using a Dense Neural Network Classifier. Sensors 2022, 22, 6071. [Google Scholar] [CrossRef]
  9. Steinberg, J.S.; O’Connell, H.; Li, S.; Ziegler, P.D. Thirty-Second Gold Standard Definition of Atrial Fibrillation and Its Relationship With Subsequent Arrhythmia Patterns. Circ. Arrhythmia Electrophysiol. 2018, 11, 522. [Google Scholar] [CrossRef]
  10. Odutayo, A.; Wong, C.X.; Hsiao, A.J.; Hopewell, S.; Altman, D.G.; Emdin, C.A. Atrial fibrillation and risks of cardiovascular disease, renal disease, and death: Systematic review and meta-analysis. BMJ 2016, 354, i4482. [Google Scholar] [CrossRef]
  11. Wathen, J.E.; Rewers, A.B.; Yetman, A.T.; Schaffer, M.S. Accuracy of ECG interpretation in the pediatric emergency department. Ann. Emerg. Med. 2005, 46, 507–511. [Google Scholar] [CrossRef] [PubMed]
  12. Raghunath, S.; Pfeifer, J.M.; Ulloa-Cerna, A.E.; Nemani, A.; Carbonati, T.; Jing, L.; vanMaanen, D.P.; Hartzel, D.N.; Ruhl, J.A.; Lagerman, B.F.; et al. Deep Neural Networks Can Predict New-Onset Atrial Fibrillation From the 12-Lead ECG and Help Identify Those at Risk of Atrial Fibrillation–Related Stroke. Circulation 2021, 143, 1287–1298. [Google Scholar] [CrossRef] [PubMed]
  13. Ghosh, S.K.; Tripathy, R.K.; Paternina, M.R.A.; Arrieta, J.J.; Zamora-Mendez, A.; Naik, G.R. Detection of Atrial Fibrillation from Single Lead ECG Signal Using Multirate Cosine Filter Bank and Deep Neural Network. J. Med. Syst. 2020, 44, 2370. [Google Scholar] [CrossRef] [PubMed]
  14. Xia, Y.; Wulan, N.; Wang, K.; Zhang, H. Detecting atrial fibrillation by deep convolutional neural networks. Comput. Biol. Med. 2018, 93, 84–92. [Google Scholar] [CrossRef] [PubMed]
  15. Nurmaini, S.; Tondas, A.E.; Darmawahyuni, A.; Rachmatullah, M.N.; Partan, R.U.; Firdaus, F.; Tutuko, B.; Pratiwi, F.; Juliano, A.H.; Khoirani, R. Robust detection of atrial fibrillation from short-term electrocardiogram using convolutional neural networks. Future Gener. Comput. Syst. 2020, 113, 304–317. [Google Scholar] [CrossRef]
  16. Sun, Y.; Shen, J.; Jiang, Y.; Huang, Z.; Hao, M.; Zhang, X. MMA-RNN: A multi-level multi-task attention-based recurrent neural network for discrimination and localization of atrial fibrillation. Biomed. Signal Process. Control 2024, 89, 105747. [Google Scholar] [CrossRef]
  17. Sujadevi, V.G.; Soman, K.P.; Vinayakumar, R. Real-Time Detection of Atrial Fibrillation from Short Time Single Lead ECG Traces Using Recurrent Neural Networks. In Intelligent Systems Technologies and Applications, Proceedings of the Third International Symposium on Intelligent Systems Technologies and Applications (ISTA’17), Manipal, India, 13–16 September 2017; Thampi, S.M., Mitra, S., Mukhopadhyay, J., Li, K.C., James, A.P., Berretti, S., Eds.; Springer: Cham, Switzerland, 2018; pp. 212–221. [Google Scholar]
  18. Gündüz, A.F.; Talu, M.F. Atrial fibrillation classification and detection from ECG recordings. Biomed. Signal Process. Control 2023, 82, 104531. [Google Scholar] [CrossRef]
  19. Faust, O.; Shenfield, A.; Kareem, M.; San, T.R.; Fujita, H.; Acharya, U.R. Automated detection of atrial fibrillation using long short-term memory network with RR interval signals. Comput. Biol. Med. 2018, 102, 327–335. [Google Scholar] [CrossRef] [PubMed]
  20. Murat, F.; Sadak, F.; Yildirim, O.; Talo, M.; Murat, E.; Karabatak, M.; Demir, Y.; Tan, R.S.; Acharya, U.R. Review of Deep Learning-Based Atrial Fibrillation Detection Studies. Int. J. Environ. Res. Public Health 2021, 18, 11302. [Google Scholar] [CrossRef]
  21. Iftene, A.; Burlacu, A.; Gifu, D. Atrial Fibrillation Detection Based on Deep Learning Models. Procedia Comput. Sci. 2022, 207, 3752–3760. [Google Scholar] [CrossRef]
  22. Subramanyan, L.; Ganesan, U. A novel deep neural network for detection of Atrial Fibrillation using ECG signals. Knowl.-Based Syst. 2022, 258, 109926. [Google Scholar] [CrossRef]
  23. Petmezas, G.; Haris, K.; Stefanopoulos, L.; Kilintzis, V.; Tzavelis, A.; Rogers, J.A.; Katsaggelos, A.K.; Maglaveras, N. Automated Atrial Fibrillation Detection using a Hybrid CNN-LSTM Network on Imbalanced ECG Datasets. Biomed. Signal Process. Control 2021, 63, 102194. [Google Scholar] [CrossRef]
  24. Ebrahimi, Z.; Loni, M.; Daneshtalab, M.; Gharehbaghi, A. A review on deep learning methods for ECG arrhythmia classification. Expert Syst. Appl. X 2020, 7, 100033. [Google Scholar] [CrossRef]
  25. Ansari, Y.; Mourad, O.; Qaraqe, K.; Serpedin, E. Deep learning for ECG Arrhythmia detection and classification: An overview of progress for period 2017–2023. Front. Physiol. 2023, 14, 1246746. [Google Scholar] [CrossRef]
  26. Chua, K.C.; Chandran, V.; Acharya, U.R.; Lim, C.M. Application of higher order statistics/spectra in biomedical signals—A review. Med. Eng. Phys. 2010, 32, 679–689. [Google Scholar] [CrossRef]
  27. Nikias, C.; Mendel, J. Signal processing with higher-order spectra. IEEE Signal Process. Mag. 1993, 10, 10–37. [Google Scholar] [CrossRef]
  28. Mendel, J. Tutorial on higher-order statistics (spectra) in signal processing and system theory: Theoretical results and some applications. Proc. IEEE 1991, 79, 278–305. [Google Scholar] [CrossRef]
  29. Sigl, J.C.; Chamoun, N.G. An introduction to bispectral analysis for the electroencephalogram. J. Clin. Monit. 1994, 10, 392–404. [Google Scholar] [CrossRef]
  30. Khoshnevis, S.A.; Sankar, R. Applications of Higher Order Statistics in Electroencephalography Signal Processing: A Comprehensive Survey. IEEE Rev. Biomed. Eng. 2020, 13, 169–183. [Google Scholar] [CrossRef]
  31. Mahmoodian, N.; Haddadnia, J.; Illanes, A.; Boese, A.; Friebe, M. Seizure prediction with cross-higher-order spectral analysis of EEG signals. Signal Image Video Process. 2020, 14, 821–828. [Google Scholar] [CrossRef]
  32. Sezgin, N. Analysis of EMG Signals in Aggressive and Normal Activities by Using Higher-Order Spectra. Sci. World J. 2012, 2012, 478952. [Google Scholar] [CrossRef]
  33. Kotriwar, Y.; Kachhara, S.; Harikrishnan, K.P.; Ambika, G. Higher order spectral analysis of ECG signals. arXiv 2018, arXiv:1809.08451. [Google Scholar]
  34. Martis, R.J.; Acharya, U.R.; Prasad, H.; Chua, C.K.; Lim, C.M.; Suri, J.S. Application of higher order statistics for atrial arrhythmia classification. Biomed. Signal Process. Control 2013, 8, 888–900. [Google Scholar] [CrossRef]
  35. Liu, S.; Shao, J.; Kong, T.; Malekian, R. ECG Arrhythmia Classification using High Order Spectrum and 2D Graph Fourier Transform. Appl. Sci. 2020, 10, 4741. [Google Scholar] [CrossRef]
  36. Deka, B.; Deka, D. Nonlinear analysis of heart rate variability signals in meditative state: A review and perspective. Biomed. Eng. Online 2023, 22, 35. [Google Scholar] [CrossRef]
  37. Xu, J.; Ye, P.; Li, Q.; Du, H.; Liu, Y.; Doermann, D. Blind Image Quality Assessment Based on High Order Statistics Aggregation. IEEE Trans. Image Process. 2016, 25, 4444–4457. [Google Scholar] [CrossRef]
  38. Sanaullah, M. A Review of Higher Order Statistics and Spectra in Communication Systems. Glob. J. Sci. Front. Res. 2013, 31–50. [Google Scholar] [CrossRef]
  39. Ould-Baba, H.; Robin, V.; Antoni, J. Concise formulae for the cumulant matrices of a random vector. Linear Algebra Its Appl. 2015, 485, 392–416. [Google Scholar] [CrossRef]
  40. La Rosa, J.J.G.d.; Agüera-Pérez, A.; Palomares-Salas, J.C.; Moreno-Muñoz, A. Higher-order statistics: Discussion and interpretation. Measurement 2013, 46, 2816–2827. [Google Scholar] [CrossRef]
  41. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going Deeper with Convolutions. arXiv 2014, arXiv:1409.4842. [Google Scholar] [CrossRef]
  42. Goldberger, A.L.; Amaral, L.A.N.; Glass, L.; Hausdorff, J.M.; Ivanov, P.C.; Mark, R.G.; Mietus, J.E.; Moody, G.B.; Peng, C.K.; Stanley, H.E. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals. Circulation 2000, 101, e215–e220. [Google Scholar] [CrossRef] [PubMed]
  43. Swami, A. HOSA—Higher Order Spectral Analysis Toolbox. MATLAB Central File Exchange. 2023. Available online: https://www.mathworks.com/matlabcentral/fileexchange/3013-hosa-higher-order-spectral-analysis-toolbox (accessed on 19 December 2023).
  44. Alcaraz, R.; Rieta, J.J. Surface ECG organization analysis to predict paroxysmal atrial fibrillation termination. Comput. Biol. Med. 2009, 39, 697–706. [Google Scholar] [CrossRef]
  45. Castells, F.; Rieta, J.J.; Millet, J.; Zarzoso, V. Spatiotemporal Blind Source Separation Approach to Atrial Activity Estimation in Atrial Tachyarrhythmias. IEEE Trans. Biomed. Eng. 2005, 52, 258–267. [Google Scholar] [CrossRef]
  46. Diaz, J.; Escalona, O.; Castro, N.; Anderson, J.; Glover, B.; Manoharan, G. Predicting transthoracic defibrillation shocks outcome in the cardioversion of atrial fibrillation employing support vector machines. In Proceedings of the 2010 Computing in Cardiology, Belfast, UK, 26–29 September 2010; pp. 741–744. [Google Scholar]
  47. Llinares, R.; Igual, J. Exploiting periodicity to extract the atrial activity in atrial arrhythmias. EURASIP J. Adv. Signal Process. 2011, 2011, 1176. [Google Scholar] [CrossRef]
  48. Petrutiu, S.; Ng, J.; Nijm, G.M.; Al-Angari, H.; Swiryn, S.; Sahakian, A.V. Atrial fibrillation and waveform characterization. IEEE Eng. Med. Biol. Mag. 2006, 25, 24–30. [Google Scholar] [CrossRef]
  49. Stridh, M.; Sornmo, L.; Meurling, C.J.; Olsson, S.B. Sequential Characterization of Atrial Tachyarrhythmias Based on ECG Time-Frequency Analysis. IEEE Trans. Biomed. Eng. 2004, 51, 100–114. [Google Scholar] [CrossRef]
  50. Stridh, M.; Bollmann, A.; Olsson, S.B.; Sornmo, L. Detection and feature extraction of atrial tachyarrhythmias. IEEE Eng. Med. Biol. Mag. 2006, 25, 31–39. [Google Scholar] [CrossRef]
  51. Hayes, M.H. Statistical Digital Signal Processing and Modeling, 1st ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 1996. [Google Scholar]
  52. Stoica, P.; Moses, R.L. Spectral Analysis of Signals/Petre Stoica and Randolph Moses; Pearson/Prentice Hall: Upper Saddle River, NJ, USA, 2005. [Google Scholar]
  53. Grimes, D.A.; Schulz, K.F. Refining clinical diagnosis with likelihood ratios. Lancet 2005, 365, 1500–1505. [Google Scholar] [CrossRef]
  54. Peng, P.; Coyle, A.; Newgard, C.D. Likelihood Ratios for the Emergency Physician. Acad. Emerg. Med. 2018, 25, 958–965. [Google Scholar] [CrossRef]
  55. Junge, M.R.J.; Dettori, J.R. ROC Solid: Receiver Operator Characteristic (ROC) Curves as a Foundation for Better Diagnostic Tests. Glob. Spine J. 2017, 8, 424–429. [Google Scholar] [CrossRef]
  56. Osowski, S.; Hoai, L.T.; Markiewicz, T. Support Vector Machine-Based Expert System for Reliable Heartbeat Recognition. IEEE Trans. Biomed. Eng. 2004, 51, 582–589. [Google Scholar] [CrossRef]
  57. Mousavi, S.; Afghah, F.; Razi, A.; Acharya, U.R. ECGNET: Learning Where to Attend for Detection of Atrial Fibrillation with Deep Visual Attention. In Proceedings of the 2019 IEEE EMBS International Conference on Biomedical & Health Informatics (BHI), Chicago, IL, USA, 19–22 May 2019; pp. 1–4. [Google Scholar] [CrossRef]
  58. Radhakrishnan, T.; Karhade, J.; Ghosh, S.; Muduli, P.; Tripathy, R.; Acharya, U.R. AFCNNet: Automated detection of AF using chirplet transform and deep convolutional bidirectional long short term memory network with ECG signals. Comput. Biol. Med. 2021, 137, 104783. [Google Scholar] [CrossRef]
  59. Yang, W.; Wang, D.; Fan, W.; Zhang, G.; Li, C.; Liu, T. Automated atrial fibrillation and ventricular fibrillation recognition using a multi-angle dual-channel fusion network. Artif. Intell. Med. 2023, 145, 102680. [Google Scholar] [CrossRef]
  60. Marsanova, L.; Nemcova, A.; Smisek, R.; Vitek, M.; Smital, L. Single-Feature Method for Fast Atrial Fibrillation Detection in ECG Signals. In Proceedings of the 2020 Computing in Cardiology, Rimini, Italy, 13–16 September 2020; pp. 1–4. [Google Scholar] [CrossRef]
  61. Wang, J.; Wang, P.; Wang, S. Automated detection of atrial fibrillation in ECG signals based on wavelet packet transform and correlation function of random process. Biomed. Signal Process. Control 2020, 55, 101662. [Google Scholar] [CrossRef]
  62. Kumar, M.; Pachori, R.B.; Rajendra Acharya, U. Automated diagnosis of atrial fibrillation ECG signals using entropy features extracted from flexible analytic wavelet transform. Biocybern. Biomed. Eng. 2018, 38, 564–573. [Google Scholar] [CrossRef]
  63. Tripathy, R.K.; Paternina, M.R.A.; Arrieta, J.G.; Pattanaik, P. Automated Detection Of Atrial Fibrillation Ecg Signals Using Two Stage Vmd And Atrial Fibrillation Diagnosis Index. J. Mech. Med. Biol. 2017, 17, 1740044. [Google Scholar] [CrossRef]
  64. Asgari, S.; Mehrnia, A.; Moussavi, M. Automatic detection of atrial fibrillation using stationary wavelet transform and support vector machine. Comput. Biol. Med. 2015, 60, 132–142. [Google Scholar] [CrossRef]
  65. Lee, J.; Reyes, B.A.; McManus, D.D.; Maitas, O.; Chon, K.H. Atrial Fibrillation Detection Using an iPhone 4S. IEEE Trans. Biomed. Eng. 2013, 60, 203–206. [Google Scholar] [CrossRef]
  66. Huang, C.; Ye, S.; Chen, H.; Li, D.; He, F.; Tu, Y. A Novel Method for Detection of the Transition Between Atrial Fibrillation and Sinus Rhythm. IEEE Trans. Biomed. Eng. 2011, 58, 1113–1119. [Google Scholar] [CrossRef]
  67. Tateno, K.; Glass, L. Automatic detection of atrial fibrillation using the coefficient of variation and density histograms of RR and dRR intervals. Med. Biol. Eng. Comput. 2001, 39, 664–671. [Google Scholar] [CrossRef]
Figure 1. The 5 s length fragment of ECG with AFIB rhythms (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm) (a). The spectrum (calculated by Welch method [51,52]) (b). The absolute value (c) and phase (d) of bispectrum. The red rectangle indicates the frequencies in the range 0.5 to 12 Hz.
Figure 1. The 5 s length fragment of ECG with AFIB rhythms (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm) (a). The spectrum (calculated by Welch method [51,52]) (b). The absolute value (c) and phase (d) of bispectrum. The red rectangle indicates the frequencies in the range 0.5 to 12 Hz.
Sensors 24 04171 g001
Figure 2. The 5 s length fragment of ECG with N rhythms (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm) (a). The spectrum (calculated by Welch method [51,52]) (b). The absolute value (c) and phase (d) of bispectrum. The red rectangle indicates the frequencies in the range 0.5 to 12 Hz.
Figure 2. The 5 s length fragment of ECG with N rhythms (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm) (a). The spectrum (calculated by Welch method [51,52]) (b). The absolute value (c) and phase (d) of bispectrum. The red rectangle indicates the frequencies in the range 0.5 to 12 Hz.
Sensors 24 04171 g002
Figure 3. The gray images (absolute value (a) and phase (b)) obtained after converting the bispectrum of the fragment of ECG with the AFIB rhythm. The red rectangle (a) marks the area used as the input of the AFIB-NET. The size of images corresponds to the absolute frequency range of 0 to 40 Hz (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm).
Figure 3. The gray images (absolute value (a) and phase (b)) obtained after converting the bispectrum of the fragment of ECG with the AFIB rhythm. The red rectangle (a) marks the area used as the input of the AFIB-NET. The size of images corresponds to the absolute frequency range of 0 to 40 Hz (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm).
Sensors 24 04171 g003
Figure 4. The gray images (absolute value (a) and phase (b)) obtained after converting the bispectrum of the fragment of ECG with N rhythm. The red rectangle (a) marks the area used as the input of the AFIB-NET. The size of images corresponds to the absolute frequency range of 0 to 40 Hz (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm).
Figure 4. The gray images (absolute value (a) and phase (b)) obtained after converting the bispectrum of the fragment of ECG with N rhythm. The red rectangle (a) marks the area used as the input of the AFIB-NET. The size of images corresponds to the absolute frequency range of 0 to 40 Hz (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm).
Sensors 24 04171 g004
Figure 5. The histograms of the images correspond to the absolute value of the bispectrum of the ECG signal with the AFIB rhythm (a) (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm) and the N rhythm (b) (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm), respectively.
Figure 5. The histograms of the images correspond to the absolute value of the bispectrum of the ECG signal with the AFIB rhythm (a) (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing AFIB rhythm) and the N rhythm (b) (signal: 04048 AFDB, channel 1, the first 5 s of the signal containing N rhythm), respectively.
Sensors 24 04171 g005
Figure 6. Confusion matrix for the proposed AFIB-NET in AFIB classification. The vertical blue boxes next to the confusion matrix present the sensitivity (TPR) and specificity (TNR) values, while the horizontal blue boxes below the confusion matrix state the precision of the positive (PPV) and negative (NPV) predictive values, respectively.
Figure 6. Confusion matrix for the proposed AFIB-NET in AFIB classification. The vertical blue boxes next to the confusion matrix present the sensitivity (TPR) and specificity (TNR) values, while the horizontal blue boxes below the confusion matrix state the precision of the positive (PPV) and negative (NPV) predictive values, respectively.
Sensors 24 04171 g006
Figure 7. Confusion matrix for modified GNN in AFIB classification. The vertical blue boxes next to the confusion matrix present the sensitivity (TPR) and specificity (TNR) values, while the horizontal blue boxes below the confusion matrix state the precision of the positive (PPV) and negative (NPV) predictive values, respectively.
Figure 7. Confusion matrix for modified GNN in AFIB classification. The vertical blue boxes next to the confusion matrix present the sensitivity (TPR) and specificity (TNR) values, while the horizontal blue boxes below the confusion matrix state the precision of the positive (PPV) and negative (NPV) predictive values, respectively.
Sensors 24 04171 g007
Figure 8. Receiver operating characteristic (ROC) curves of AFIB class for AFIB-NET and GNN, with marked net model operating points and areas under ROC (AUC) value. True Positive Rate means sensitivity, while False Positive Rate states 1-specificity.
Figure 8. Receiver operating characteristic (ROC) curves of AFIB class for AFIB-NET and GNN, with marked net model operating points and areas under ROC (AUC) value. True Positive Rate means sensitivity, while False Positive Rate states 1-specificity.
Sensors 24 04171 g008
Table 1. Time duration of the AFIB, AFL, Nodal, N (other) rhythms for analyzed ECG signals from MIT-BIH Atrial Fibrillation database.
Table 1. Time duration of the AFIB, AFL, Nodal, N (other) rhythms for analyzed ECG signals from MIT-BIH Atrial Fibrillation database.
EpisodeMinMaxMeanTotal
[s] [s] [s] [s]
AFIB2911.68436,822.8641155.436336,231.984
AFL143.5323390.912419.7945877.116
Nodal121.52486.01627.582330.980
N (other)2884.25230,981.3721739.440500,958.808
Table 2. The AFIB-NET neural network architecture. The activation dimension (Activations) is given in the following format: S × S × C × B, where labels mean: S-spatial, C-channel, and B-batch observation.
Table 2. The AFIB-NET neural network architecture. The activation dimension (Activations) is given in the following format: S × S × C × B, where labels mean: S-spatial, C-channel, and B-batch observation.
LayerTypeFilter
Size
Number
of Filters
StrideActivationsNumber
of Learnables
1Image Input---24 × 24 × 1 × 10
2Convolution3 × 38[1 1]24 × 24 × 8 × 180
3Batch Normalization---24 × 24 × 8 × 116
4ReLu---24 × 24 × 8 × 10
5Max Pooling--[1 1]23 × 23 × 8 × 10
6Convolution3 × 316[1 1]23 × 23 × 16 × 11168
7Batch Normalization---23 × 23 × 16 × 132
8ReLu---23 × 23 × 16 × 10
9Ma × Pooling--[1 1]22 × 22 × 16 × 10
10Convolution3 × 332[1 1]22 × 22 × 32 × 14640
11Batch Normalization---22 × 22 × 32 × 164
12ReLu---22 × 22 × 32 × 10
13Max Pooling--[1 1]11 × 11 × 32 × 10
14Convolution3 × 364[2 2]11 × 11 × 64 × 118,496
15Batch Normalization---11 × 11 × 64 × 1128
16ReLu---11 × 11 × 64 × 10
17Max Pooling--[1 1]5 × 5 × 64 × 10
18Convolution3 × 3128[2 2]5 × 5 × 128 × 173,856
19Batch Normalization---5 × 5 × 128 × 1256
20ReLu---5 × 5 × 128 × 10
21Fully Connected---1 × 1 × 2 × 16402
22Softmax---1 × 1 × 2 × 10
23Classification Output---1 × 1 × 2 × 10
Table 3. Classifier evaluation parameters: sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), prevalence (PV), accuracy (ACC), the likelihood ratio of positive value (LR+), the likelihood ratio of negative value (LR-), the area under ROC curve (AUC), and F-score for AFIB and N class for both the AFIB-NET and GNN.
Table 3. Classifier evaluation parameters: sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), prevalence (PV), accuracy (ACC), the likelihood ratio of positive value (LR+), the likelihood ratio of negative value (LR-), the area under ROC curve (AUC), and F-score for AFIB and N class for both the AFIB-NET and GNN.
MeasureAFIB-NETGooLeNet (GNN)
Sensitivity (TPR)0.9530.967
Specificity (TNR)0.9370.824
PPV0.9380.846
NPV0.9520.961
PV0.5000.500
ACC0.9450.896
LR+15.1275.494
LR-0.0500.040
AUC0.9830.967
F 1 A F I B 0.9450.902
F 1 N 0.9520.964
Table 4. Comparison of sensitivity and specificity of chosen deep learning-based methods and other algorithms for AFIB rhythm detection for ECG signals using the MIT-BIH Atrial Fibrillation database.
Table 4. Comparison of sensitivity and specificity of chosen deep learning-based methods and other algorithms for AFIB rhythm detection for ECG signals using the MIT-BIH Atrial Fibrillation database.
Method Proposed bySensitivity (%)Specificity (%)
RADHAKRISHNAN et al. (2021) [58]99.1798.90
Marsanova et al. (2020) [60]96.3298.61
Wang et al. (2020) [61]98.7098.90
Mousavi et al. (2019) [57]99.5399.26
Xia et al. (2018) (STFT) [14]98.3498.24
Xia et al. (2018) (SWT) [14]98.7997.87
Kumar et al. (2018) [62]95.8097.60
Tripathy et al. (2017) [63]97.7798.67
Asgari et al. (2015) [64]97.0097.10
Lee et al. (2013) (RMSSD) [65]90.4994.17
Lee et al. (2013) (ShE) [65]74.1596.81
Lee et al. (2013) (SamE) [65]97.2699.61
Huang et al. (2011) [66]96.1098.10
Tateno et al. (2001) [67]94.4097.20
AFIB (Proposed work)95.3096.70
GNN (Proposed work)93.7082.00
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mika, B.; Komorowski, D. Higher-Order Spectral Analysis Combined with a Convolution Neural Network for Atrial Fibrillation Detection-Preliminary Study. Sensors 2024, 24, 4171. https://doi.org/10.3390/s24134171

AMA Style

Mika B, Komorowski D. Higher-Order Spectral Analysis Combined with a Convolution Neural Network for Atrial Fibrillation Detection-Preliminary Study. Sensors. 2024; 24(13):4171. https://doi.org/10.3390/s24134171

Chicago/Turabian Style

Mika, Barbara, and Dariusz Komorowski. 2024. "Higher-Order Spectral Analysis Combined with a Convolution Neural Network for Atrial Fibrillation Detection-Preliminary Study" Sensors 24, no. 13: 4171. https://doi.org/10.3390/s24134171

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop