Next Article in Journal
Impact of Virtual Reality-Based Design Review System on User’s Performance and Cognitive Behavior for Building Design Review Tasks
Previous Article in Journal
Cold Atmospheric Pressure Plasma Is Effective against P. gingivalis (HW24D-1) Mature Biofilms and Non-Genotoxic to Oral Cells
Previous Article in Special Issue
A Machine-Learning Model Based on Morphogeometric Parameters for RETICS Disease Classification and GUI Development
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ventricular Fibrillation and Tachycardia Detection Using Features Derived from Topological Data Analysis

by
Azeddine Mjahad
*,
Jose V. Frances-Villora
,
Manuel Bataller-Mompean
and
Alfredo Rosado-Muñoz
Processing and Digital Design Group, Department of Electronic Engineering, University of Valencia, 46100 Burjassot, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(14), 7248; https://doi.org/10.3390/app12147248
Submission received: 4 April 2022 / Revised: 6 July 2022 / Accepted: 10 July 2022 / Published: 19 July 2022

Abstract

:

Featured Application

Automated External Defibrillation (AED) and Implantable Cardioverter Defibrillators (ICD) require accurate algorithms to detect arrhythmias and discriminate among them. This work proposes specific features for algorithms implemented in such devices.

Abstract

A rapid and accurate detection of ventricular arrhythmias is essential to take appropriate therapeutic actions when cardiac arrhythmias occur. Furthermore, the accurate discrimination between arrhythmias is also important, provided that the required shocking therapy would not be the same. In this work, the main novelty is the use of the mathematical method known as Topological Data Analysis (TDA) to generate new types of features which can contribute to the improvement of the detection and classification performance of cardiac arrhythmias such as Ventricular Fibrillation (VF) and Ventricular Tachycardia (VT). The electrocardiographic (ECG) signals used for this evaluation were obtained from the standard MIT-BIH and AHA databases. Two input data to the classify are evaluated: TDA features, and Persistence Diagram Image (PDI). Using the reduced TDA-obtained features, a high average accuracy near 99% was observed when discriminating four types of rhythms (98.68% to VF; 99.05% to VT; 98.76% to normal sinus; and 99.09% to Other rhythms) with specificity values higher than 97.16% in all cases. In addition, a higher accuracy of 99.51% was obtained when discriminating between shockable (VT/VF) and non-shockable rhythms (99.03% sensitivity and 99.67% specificity). These results show that the use of TDA-derived geometric features, combined in this case this the k-Nearest Neighbor (kNN) classifier, raises the classification performance above results in previous works. Considering that these results have been achieved without preselection of ECG episodes, it can be concluded that these features may be successfully introduced in Automated External Defibrillation (AED) and Implantable Cardioverter Defibrillation (ICD) therapies.

1. Introduction

A rapid and accurate detection of ventricular arrhythmias is essential to taking appropriate therapeutic actions. These pathologies are very common, being considered one of the main causes of death in developed countries, given that even weak episodes of Ventricular Fibrillation (VF) eventually cause sudden death.
Although arrhythmias have different origins, they can be considered a consequence of changes in cellular electrophysiology of the heart. Moreover, in most cases of sudden cardiac death, arrhythmogenic cardiac disorders appear as the main causes of death without showing evidence of pathological abnormalities of the heart.
To revert VF, the current protocol is the electrical defibrillation of the heart using an Automatic External Defibrillator (AED) [1], which can be commonly found nowadays in public places such as airports, shopping centers, sports arenas, etc. This process involves an external application of a high-energy electrical shock through the chest wall of the patient to allow the reinstatement of the normal rhythm. Some studies [2,3,4] have established that defibrillation success is conversely proportional to the time interval between the start of the Ventricular Fibrillation episode and the time when the electrical discharge is applied.
However, similar pathologies exist, like Ventricular Tachycardia (VT), requiring a different treatment than VF. In these cases, the signal may share some characteristics (lack of organization, irregularity, etc.) with VF, but the administration of an electrical shock to a patient not suffering VF could result in serious injuries or even bring about VF itself. This is why an accurate detection and classification of ventricular arrhythmias is so relevant.
The electrocardiogram (ECG) is an inexpensive and noninvasive tool used in the diagnosis of cardiac conduction disorders. It enables the analysis of the heart rate and morphology of different cardiac electrical waves, which, in turn, may permit the identification of various types of heart diseases. Because of this, ECG signals are considered an important and reliable source of information [5,6].
Many statistical methods have been applied to detect VF or VT using ECG data. However, following these manual methods, it is difficult to make a feature extraction capable of capturing the deep characteristics of ventricular arrhythmias. This is the reason why machine learning techniques have been effectively applied for the recognition of cardiac arrhythmias. In this sense, Orozco et al. [7] used the Wavelet method to detect ECG arrhythmias with three types of episodes (Normal, VT, and VF). In [8], Pooyan et al. used an SVM with Gaussian Kernel to detect ventricular abnormalities with morphological features. Tripathy et al. [9] detected and classified shockable (VF/VT) arrhythmias using Variational Mode Decomposition with Random Forest (RF) decision trees. In [10], Jekova et al. used fixed thresholds to implement a real-time detection of shockable episodes (VF/VT). In addition, in the same manner, other works harnessed other machine learning techniques for the detection and recognition of ventricular arrhythmias, as in Mohanty et al. [11], who used a C4.5 classifier; Jothiramalingam et al. [12], who employed a k-Nearest Neighbor (kNN) classifier; Tang et al. [13], who used Bayesian decision; or Kuzilez et al. [14], who employed Independent Component Analysis (ICA) and Decision Trees.
Over the last few years, there has been a general surge in the use of algebraic topology to analyze statistical data. Using this method, complicated data shapes can be categorized. Specifically, a commonly used topological method very used to extract features from a Point Cloud (a set of data points in space) is the Topological Data Analysis (TDA). TDA employs tools from algebraic and combinational topology to draw out properties that express data shapes. It can be considered a key method in attempting to interpret and comprehend characteristics that are otherwise unattainable through the use of other practices due to noise, dimension, or incompletion. It is so unique in its nature that TDA bridges the way between geometry and topology.
Successful and remarkable applications have been made in a varied selection of fields, and the range of applications continues to expand. Some of these applications include neuroscience [15], materials science [16], detection and quantification of periodic patterns in data [17,18], analysis of turbulent flows [19], natural language processing [20], or even detection and classification of breast cancers [21]. However, it has been used in image processing [22], computer vision [23], or signal and time series analysis [24,25].
Specifically, over the past few years, researchers have also begun to use TDA along with Machine Learning methods [26,27].
Within TDA, there is an important method called Persistence Homology that can be considered the main tool of TDA. As well as being a modification of the representation of homology using Point Cloud data, this method computes the homological characteristics of datasets.
In addition, TDA uses Persistence Diagrams and Persistence Barcodes to represent the abundant homological information about the shape of data. However, note that the use of algorithms of Machine Learning along with Persistence Diagrams or Barcodes is an area of TDA under research, looking for a way to alter these diagrams to be adaptable and congruous with Machine Learning methods. An alternative approach to these two diagrams is Persistence Landscapes.
In this work, we hypothesized that using Topological Data Analysis (TDA), some geometric features condensing relevant information about the ‘shape of data’ can be very valuable for the detection and discrimination of VF and VT rhythms, even in noisy and complex signals. Extracted features can then be applied to machine learning classifiers.
Thus, the goal of this work is to assess the improvement of the classification performance to detect and discriminate VF and VT episodes, when incorporating a set of TDA-derived geometric features in the feature extraction and selection stage. Note that the main difference with previous works is that these kinds of features have been never applied before in the analysis and classification of ventricular arrhythmias.
The main contributions of this work are
  • The proposal of a novel classification procedure using features derived from Topological Data Analysis (TDA).
  • The application of the proposed classification procedure to the detection and discrimination of VF and VT. Specifically, an accuracy near 99% is obtained.
  • The application of the proposed classification procedure to the detection of shockable (VF/VT) and non-shockable rhythms. In this case, a 99.5% accuracy is obtained, the highest in the bibliography.
  • The evidence that features derived from Topological Data Analysis can overcome conventional feature selection limitations by providing information about the ‘shape of data’ to the classifier.
  • The high performance obtained without preselection of episodes shows that geometric features are good candidates to be incorporated into Automated External Defibrillator (AED) and Implantable Cardioverter Defibrillation (ICD) devices.
The paper is organized as follows. Section 2 is dedicated to the description of fundamental TDA. Section 3 introduces the dataset, explains the proposed methodology and details the used classification procedure. The results of the analysis and a discussion of these are presented in Section 4 and Section 5, respectively. Finally, Section 6 concludes the paper.

2. Fundamental Concepts of TDA

This section outlines a simplified description of the mathematics behind Homology and Persistent Homology (PH). In TDA, cloud data are frequently seen as a simplicial complex, which is a set of points, lines, segments, triangles, and its n-dimensional counterparts. This allows one to use the methods from simplicial homology to quantify the shape of the data in terms of connections [28] and enables us to make a topological feature extraction. The process of topological feature extraction using PH can be summarized in the following steps:
  • Data Point Cloud χ R n is employed as an input.
  • For each data point (or vertex) v i χ , make B( v i ) a ball of radius ϵ centered at each v i , where ϵ R + .
  • Raise the value of ϵ .
  • A simplicial complex is built for each ϵ using Vietoris Rips and filtration.
  • Measure PH and take note of its appearance and disappearance.
  • Plot the ( ϵ b i r t h , ϵ d e a t h ) appearance and disappearance coordinates for each PH on an extended real plane R 2 { ± } . The Persistence Diagram comes as an output.
  • Lastly, the topological features are extracted.
In terms of mathematics, the input to a PH are the Point Cloud data. In the case of ECG, the input data are the time series. Taken’s Delay Embedding Theorem can be used in the conversion of time series data to point cloud data without losing topological properties. The approach consists of transforming a time series x t , where t { 1 , 2 , , T } , into its phase space representation. A point cloud or a set of points is obtained according to the following equation where i = ( 1 , 2 , , T + n τ ) and τ is a delay parameter and n specifies the dimension of the point cloud [29]:
v i = x i , x i + τ , , x i + n τ
Simplicial complexes are essential in the extraction of topological features from point cloud data. A single data point may define 0-Simplex. A line between two points denotes 1-Simplex. A triangle is a 2-Simplex. Tetrahedra represent 3-simplices (see Figure 1). Finally, a combination of simplices gives way to a Simplicial Complex called Vietoris Rips Complex [30,31,32].
A simplicial complex can be taken from a dataset using the V i e t o r i s R i p s construction. Being X = ( x 1 , , x n ) a point cloud in an euclidean space R n , for each distance ϵ > 0 , represented by V R ( X ; ϵ ) , there is a simplicial complex with vertex set in X where x 0 , x 1 , , x k spreads a k s i m p l e x if the reciprocal distance between any pair of its varieties is smaller than ϵ , where d ( x , x ) ϵ , for all 0 i , j k .
When building a Simplicial Complex with Point Cloud data, it is needed to follow a set of rules. Firstly, a circle should be drawn with radius ϵ for each point in a point cloud. Then, when two circles intersect with each other and the radius is increased, a line is drawn to link the two points, which can be seen in Figure 2.
As ϵ gets longer, the Vietoris-Rips complex of a Point Cloud does, too. This is a filtration of simplicial complexes, i.e., a nested sequence of simplicial complexes, where V R ( X ; ϵ ) , ϵ 0 satisfying V R ( X ; ϵ 1 ) V R ( X ; ϵ 2 ) if ϵ 1 ϵ 2 . To represent the distance between them, balls are drawn around each point. If two balls with radius ϵ intersect with each other, the two points are at a distance at most 2 ϵ .
The Persistence Diagram representation (PDR) is a standard way to represent PH [33,34]. K-dimensional features consist of persistence diagrams; 0-dimensional features represent components that are connected, 1-dimensional features represent holes, 2-dimensional features voids, etc. [35]. Concurrently, a PDR W m is made of n features, W m i = ( b i , d i ) , with i = ( 1 , 2 , , n ) . Each point corresponds to the lifespan of one topological feature, where b i and d i are its birth time and death time, respectively (birth time indicates when the geometrical structure appears, while death time indicates when the geometrical structure disappears). Points are entirely located in the half-plane above the diagonal [36] (Figure 3).
When it comes to machine learning and statistics, a Persistence Landscapes Representation (LR) is more straightforward to work with than PDR and can be considered an alternative representation [37]. The approach takes the topological information that was previously encoded on a PDR and presents it as elements of a Hilbert space. Statistical learning methods can then be applied directly. Additionally, Persistence Silhouette representation (SR) [38] are constructed by mapping each point z = ( d , b ) of a PDR to a piecewise linear function, namely the ‘triangle’ function T z , which can be defined as follows:
T z ( y ) = ( y b + d ) l b d , b ( y ) + ( b + d y ) l b , b + d ( y )
where l A ( x ) is the standard indicator function: l A ( x ) = 1 if x A and l A ( x ) = 0 , otherwise. A triangle function binds the points of the diagram to the diagonal, with segments parallel to the axes, and later they are rotated by 45 degrees. The triangles T z can be merged together in various manners, and if we take their k A m a x , i.e., the k t h largest value in the set T z ( y ) , the k t h persistence landscape λ k = k m a x z g D T z ( y ) , k N + results. The Persistence Landscape λ D is the gathering of functions λ k ( y ) . Finally, the Power Weighted Silhouette representation Ψ p ( t ) (later named SR) is obtained by taking the weighted average of the functions T z ( y ) , as the following equation shows.
S R = Ψ p ( t ) = z g D ω p T z ( y ) z g D ω p Z
In Figure 4 we can see a representation of the PDR and the LR.
Another means of persistence diagram transformation is Persistence Images (PI) [23]. This allows for representations to be simply vectorized. Persistence images can be informally considered as a type of heatmap coming from a Calculate Gaussian KDE [39], which can be defined as follows:
f ^ ( x ) = α i k ( x x i )
where k is kernel function centered at the data points x i with i = ( 0 , , n ), and α i are the weighting coefficients.

3. Materials and Methods

To use the topological data features described above, the classification procedure proposed in Figure 5 is used.
To provide a clear and detailed explanation of data processing, this section has been divided into different parts: Section 3.1 describes the used dataset; Section 3.2 details the noise cancellation, baseline removal, and segmentation is done as preprocessing; Section 3.3 describes the feature extraction and selection, and Section 3.4 outlines the classification procedure and parameters used to evaluate the performance of the classification.

3.1. Materials

Data records from two standard databases were used: MIT-BIH Malignant Arrhythmia Database [40,41] and AHA (American Heart Association) 2000 series [42]. It is important to note that no preselection of ECG episodes was done, i.e., all annotated segments from the database were used. Thus, 24 patients were analyzed (i.e., 24 records), 22 of which were from the MIT-BIH database and two additional patients from the AHA Database. Each record contained half an hour of continuous ECG recordings. According to the database annotation, each segment was assigned to a class. Four classes of rhythms were established: Ventricular Fibrillation (named VF), including Ventricular Fibrillation or Ventricular Flutter episodes, Ventricular Tachycardia as VT class, sinus rhythms were assigned to the Normal class, and lastly, any signal not labeled within the above classes (e.g., other non-ventricular arrhythmias, noise, etc.) was assigned to class Others.

3.2. E C G Signal Preprocessing

The performance of machine learning algorithms can be brought down due to errors that may appear due to noise interruption or other input data corruption leading to improper feature values. Thus, a signal preprocessing is required to remove unwanted data corruption of the ECG signals: breathing, skin interference, baseline wander, powerline interference, motion artifact due to electrodes, muscle artifact, white Gaussian noise, etc. [43]. Since this work proposes the full data flow analysis from acquisition to classification as in a real scenario, we add this data preprocessing step, too. The steps used in the preprocessing stage to prepare signals for later processes are:
  • Reduction of the baseline wandering, aiming to provide better quality and definition of the temporal signal, which will later result in better feature extraction. This stage involves the introduction of an 8th order infinite impulse response filter (IIR) with a Butterworth bandpass type ranging from 1 Hz to 45 Hz [44,45]. Figure 6 shows the effect of applying this bandpass filter, resulting in a reduction of the baseline.
  • Later, a Window Reference Marks (WRM) and a time window ( t w ) are obtained. The mark indicates the start of each time window from which the features will be extracted. Consecutive time windows are obtained to analyze all ECG data. As the values between 50 and 120 beats per minute (bpm) can be considered a normal heart rate range [46], the minimum and maximum distance values between any two consecutive WRMs were established in 0.5 s and 1.2 s, respectively. Next, an algorithm already developed by the authors in [47] was used to obtain the calculation of WRM reference marks. A time window t w of 1.2 s (150 samples) in length was obtained, starting at each WRM reference mark, as the following equation shows, with { j = 1 , 2 , , N L M C } where N L M C is the number of local maxima LM marks existing in the ECG signal:
    t w i = [ W R M j , W R M j + 1.2 s ]
  • For each time window, the Taken’s Delay Embedding Theorem is applied to convert the ECG data (a time series) to a Representation of Point Cloud data (RPC), a Persistence Diagram Representation (PDR), a Persistence Landscape (LR) and a weighted Silhouette Representation (SR).

3.3. Feature Extraction and Reduction

The feature extraction stage can be regarded as the most essential stage in the detection of ventricular arrhythmias. Within the methodology proposed, several discriminatory features from TDA were extracted. The temporal signal in each window was first transformed into Point Clouds using delay embedding. Then, topological representations were extracted: Persistence Diagram (PDR), Persistence Landscape (LR), and Power Weighted Silhouettes (SR) (Table 1 and Table 2).
Table 1 illustrates the data point clouds (Representation of Point Cloud - RPC) and the persistence diagram (Persistence Diagram Representation - PDR) for each class (Normal, Other, VT, and VF). As seen, those representations provide a clear difference among classes. Regarding Normal class, the points in RPC have a focused distribution with respect to the rest of the arrhythmias where the points are scattered. Moreover, the point distribution differs between VT and VF as a very heterogeneous cloud is observed in VF, in contrast with VT. In the case of PDR, more points are located in a high birth-death ratio for VF, showing a clear difference with the rest of the rhythms. In Table 2, Persistence Diagrams (PDR) are compared with Persistence Landscapes Representation (LR) and Weighted Silhouettes Representation (SR). For each class, LR and SR show different shapes.
From each representation, a number of parameters are calculated, which will become the input features to the classifier. Initially, 79 parameters are evaluated, combining the most commonly used features in the bibliography with the proposed topological features. However, a feature reduction stage was performed. This stage allows the removal of any potentially redundant features existing, as well as reducing the computational complexity of the data analysis. In addition, we combined these features with other usual time-domain features representing statistical characteristics, such as variance, skewness, and kurtosis.
The feature selection was achieved using the Sequential Forward Selection (SFS) method, an iterative method that adds the best feature iteratively to the model until new additions do not improve the performance of the model. This method enables the selection of the most relevant features. Finally, a total of 27 features from all representations (time domain, RPC, PDR, LR, and SR) were selected amongst the 79 initial features. The extracted features are detailed in Table 3. This selection allows to improve the computational efficiency and reduce the generalization error of the model by removing irrelevant features or noise.
In addition, another input feature set was obtained. In this case, the Calculate Gaussian KDE was applied to the Persistence Diagram, and then an image-like was obtained (Table 3). The obtained image will be used as a direct input to the classifier, in a similar form as in [47]. Table 4 shows the resulting Gaussian KDE from a PDR.

3.4. Classification Procedure and Performance Evaluation

This work used supervised learning. The input to the classifier was formed by a feature vector linking together all the selected features calculated from consecutive ECG time windows. The only classifier used in this work was the k-Nearest Neighbor (kNN) algorithm, which is commonly used in the bibliography [12,67]. And the used distance is the Euclidean distance. In addition, two different input sets are evaluated. The first input set corresponds to the features described in Table 3, named the TDA method. The second input set is based on the Gaussian KDE bidimensional representation, named Persistence Diagram Image - PDI.
It has been used as a repeated random sub-sampling validation technique. Thus, for each class, 67% of data was randomly selected for training and the remaining 33% for testing. The kNN training process was done, and then the testing dataset was used to evaluate the classification performance by measuring the Sensibility (Sen), Specificity (Spe), and Accuracy (Acc). This cross-validation approach was repeated five times at random, and the performance of the classifiers was evaluated overall by taking this five iterations average. This number of iterations was chosen after some trials as it showed the lowest generalization error.
Standard statistical parameters were followed to assess the performance in accurate classification of the ECG signal into the VF, VT, Normal, or Others classes. These include the Sensitivity (Sen), Specificity (Spe), and Accuracy (Acc), which are calculated using the following equations where TP, TN, FP, and FN represent the number of true positives, true negatives, false positives, and false negatives, respectively:
S e n s i t i v i t y = T P T P + F N × 100 %
S p e c i f i c i t y = T N T N + F P × 100 %
A c c u r a c y = T P + T N T P + F P + T N + F N × 100 %

4. Results

The experiments were carried out using signals from the MIT-BIH and AHA standard databases, Section 3.1. They were divided into four classes, namely VF, VT, Normal and Others. The preprocessing stage carries out an 8th order bandpass (1 Hz to 45 Hz) Butterworth IIR filter to denoise and reduce the baseline variation, Section 3.2, and calculates the window reference marks (WRM) of the signal, marks indicating the beginning and end of the 1.2 s time window from the temporal signals.
At the feature extraction, we have proposed two different topological techniques to extract the parameters feeding the classifier: Topological Data Analysis (TDA) and Persistence Diagrams (PDI). In the case of the TDA method, each window of temporal signals were converted first into a Point Clouds representation, using delay embedding, and then into Persistence Diagrams, Persistence Landscapes, and Power Weighted Silhouettes. Finally, some parameters were extracted from these diagrams, Section 3.3, and then combined to create the features vector feeding the input of the classifier. Concerning the PDI method, the gaussian KDE was applied to the Persistence Diagram and the whole resulting image was used as a direct input to the classifier.
The k-Nearest Neighbor (kNN) classifier was the only classifier used for both proposals.
For each class, 67% of data was randomly selected for training and the remaining 33% for testing. The kNN training process was calculated and then the testing dataset was used to evaluate the classification performance by measuring the Sensibility (Se), Specificity (Sp), and Accuracy (Acc). This approach was repeated five times at random, and the performance of the classifiers was evaluated overall by taking this five iterations average. This number of iterations was chosen after some trials because it showed the lowest generalization error.
Table 5 shows the confusion matrix for one of these iterations. It shows a great classification performance. Nevertheless, the values represented in the following tables (Table 6, Table 7, Table 8 and Table 9) indicate the average performance values obtained from the repeated random validation used in this work.
Thus, Table 6, Table 7, Table 8 and Table 9 show the testing classification results for TDA and PDI feature selection methods. As it can be seen, the TDA method shows better classification results than the PDI. On the one hand, the PDI method results in values of accuracy above 92% for all classes, having better accuracy values for VT and Other classes (97.38% and 96.19%, respectively), but curiously falling to 92.65% for the detection of Normal sinus rhythms. The sensitivity widely varies depending on the case, ranging from 82.25% for VT to 93.09% for the Normal classes, being more sensitive to Normal and Others classes (around 93%) than to VT and VF (around 84%). Except for the Normal case, the global specificity (Spe) becomes greater than sensitivity, reaching the value of 98.53% for the VT class.
On the other hand, the TDA method results in very high results of accuracy, around 99% for all classes, with little differences between them. The sensitivity remains above 97% except for the VT class, falling to 92.72% and getting the maximum sensitivity value for the Normal case (99.05%), with 97.07% for the VF class. Finally, the global specificity achieves high values: near 99% for the Normal class and above 99% for the rest of the classes, hitting a maximum of 99.53% for the VT class.

5. Discussion

The same as with any other classification problem, the detection of ventricular arrhythmias normally uses a feature extraction and selection stage to optimize the class separation capabilities of the classifier. This feature selection stage aims at gathering the relevant aspects of the ECG signal based on TDA. Among a wide set of features, a reduction stage is done to lower the number of features used as input to the classifier.
In this work, we hypothesized that, by using Topological Data Analysis (TDA), some geometric features containing information about the ‘shape of data’ could be extracted. This method condenses the relevant information about the shape of the data, resulting in very valuable for the detection and discrimination between shockable VF and VT rhythms, even in noise and complex signals cases.
The obtained results (Table 6, Table 7, Table 8 and Table 9) use the kNN classifier with the input features obtained by using two topological methods (TDA and PDI). Results show that the TDA features provide better results. For this reason, the TDA method is compared with other works in the bibliography. We have used the kNN classifier, given that it is enough to prove the improvement in classification results compared to other works. Nevertheless, using other classifiers is an open topic, which may lead to reach even better classification results.
As it can be seen from Table 6, Table 7, Table 8 and Table 9, the use of the proposed TDA method provides an average accuracy of 98.9% for multiclass discrimination, which differentiates VF and VT ventricular arrhythmias but also Normal and Other types of rhythms. On the other hand, Table 10 shows a two-class classification approach to show that the proposed TDA method provides an accuracy of 99.5% when used to discriminate shockable (VT or VF) and non-shockable rhythms (rest of cardiac rhythms).
Thus, it can be established that the TDA method provides a very high classification performance. Nevertheless, we show a comparison of results with other works in the bibliography. Note, however, that this comparison is difficult due to the differences in the source signals used by different works; or even in the type of discrimination, they carry out: some works discriminate between ventricular arrhythmias and non-ventricular rhythms, others between ventricular fibrillation rhythms and non-ventricular fibrillation, others between shockable rhythms and non-shockable rhythms (considering as shockable both VT and VF).
For this reason, we divide the comparison into two separate blocks: the first block focuses on the comparison with works performing rhythm discrimination, while the second focus on the comparison with those works performing shockable vs. non-shockable signal discrimination.
Table 11 shows a group of works distinguishing between VF and non-VF rhythms. In this group, Roopaei et al. [68] obtained an accuracy of 88.60% using chaotic-based reconstructed phase space features to detect VF episodes. Arafat et al. [69] achieved a high value in the specificity of detecting VF episodes (Sp = 98.51%) using an improved version of the Threshold Crossing Interval (TCI) algorithm, called TCSC, and the MIT-BIH and CUDB databases. However, this detection was carried out with a sensitivity as low as 80.97%. Later, Alonso-Atienza et al. [70] obtained high values of specificity and accuracy (Spe = 97.10% and Acc = 96.80%) for the discrimination of VF episodes, with their specific feature selection and SVM classifiers. In their case, the sensitivity got a moderate value of 91.90%. Further, Li and Rajagopalan [71] used a genetic algorithm to make the feature selection for classifying VF episodes, achieving high-performance values: Sen = 98.40%, Spe = 98.00%, and Acc = 96.30%. Next, Acharya et al. [72] obtained high-performance values of specificity (Spe = 98.19%) and accuracy (Acc = 97.88%) using a Convolutional Neural Network (CNN) for the detection of VF. However, they achieved an extremely low value of sensitivity (Sen = 56.44%). Finally, in 2019 Ibtehaz et al. [73] got the highest results in this group, using a scheme of incorporating Empirical Mode Decomposition (EMD) and SVM classifiers (Sen = 99.99%, Spe = 98.40%, Acc = 99.19%) for the classification of VF and non-VF episodes.
As it can be seen, the results of the TDA proposal in this work achieve one of the best results (Sen = 97.07%, Spe = 99.25%, and Acc = 98.68%) compared with other works of the VF-discriminating group, with the only exception of Ibtehaz [73], that obtained better results. However, to establish a fair comparison, note that Ibtehaz obtained slightly higher results (i.e., a difference of 0.51% in Accuracy) at the expense of preselecting and rejecting the noise episodes, while in this work, there was not any preselection of ECG episodes.
Furthermore, another group of works in the bibliography can be compared, distinguishing between VT and VF rhythms (Table 11). In this group, Xie et al. [74] proposed a fuzzy similarity-based approximate entropy approach, distinguishing between VT and VF and obtaining high-performance ratios (Sen = 97.98% and Spe = 97.03% to VF and Sen = 97.03% and Spe = 97.98% to VT). However, to establish a fair comparison, it must be considered that Xie was selected as input data representative and clean episodes of VF and VT, while our work was done without preselection of ECG episodes. This kind of preselection is usual in the literature, as in Kaur and Singh [75], that used a selection of VF and VT episodes from the MIT-BIH database, using Empirical Mode Decomposition (EMD) and Approximate Entropy. Kaur and Singh obtaining moderate values for classification performance (Sen = 90.47%, Spe= 91.66%, and Acc = 91.17%). Later, Xia et al. [76] obtained high performance values (Sen = 98.15% and Spe = 96.01% to VF, and Sen = 96.01% and Spe = 96.01% and Spe = 98.15% to VT) using Lempel-Ziv and Empirical Mode Decomposition (EMD). In this case, a selection of clean episodes of VT and VF was made too. Finally, the authors of the present work achieved high values of classification performance [47] feeding the complete time-frequency image as the input of different classifiers (e.g., Sen = 92.8% and Spe = 97.0% to VF and Sen = 91.8% and Spe = 98.7% to VF, using an Artificial Neural Network Classifier, ANNC).
In any case, the results of the TDA method in this work achieve the best results when compared with the rest of the works in the bibliography aiming to discriminate between VF and VT rhythms (despite the preselection of ECG episodes done by some works).
Table 10 shows a comparison focused on detecting VT/VF episodes, i.e., shockable and non-shockable. This set of works usually targets its implementation on external defibrillators (AED) and implantable cardioverter defibrillators (ICD). Thus, these works distinguish between shockable and non-shockable rhythms (considering shockable both VT and VF). In this group, Li et al. [71] achieved an Accuracy of Acc = 98.1% (Sen = 98.4% and Spe = 98.0%) using a Genetic Algorithm (GA) for feature selection and a SVM classifier. The same year, Alonso-Atienza et al. [70] also achieved high classification performance values (Acc = 98.6, Sen = 95.0%, and Spe = 99.0%) using a selection of features and a Support Vector Machine (SVM) classifier. This work obtained one of the highest accuracy and specificity values in this group. In 2016, Tripathy et al. [9] used the Variational Mode Decomposition (VMD) and the Random Forest (RF) classifier to detect and classify shockable and non-shockable ECG episodes, achieving high values of accuracy, sensitivity, and specificity of 97.23%, 96.54%, and 97.97%, respectively. Later, in 2018, Mohanty et al. [11] detected and classified ventricular arrhythmias using cubic support vector machine (SVM) and C4.5 classifiers and achieving an Accuracy of Acc = 97.02% (Sen = 90.97% and Spe = 97.86%). Acharya et al. [77] brought forward an eleven-layer Convolutional Neural Network (CNN) for the classification of shockable and non-shockable arrhythmias. They obtained a 93.18% accuracy (Sen = 91.04% and Spe = 95.32%). Finally, Mohanty et al. [11] detected and classified ventricular arrhythmia using cubic support vector machine (SVM) and C4.5 classifiers, achieving high accuracy of Acc = 97.02% (Sen = 90.97% and Spe = 97.86%).
As it can be seen, the results of the TDA proposal in this work show the highest performance values also in this group of works, achieving an accuracy of 99.51%, 99.03% sensitivity, and 99.67% specificity.
Thus, the benefits of using the geometric features extracted from Topological Data Analysis (TDA) in the classification procedure are clear. Then, we can state that TDA, and the geometric features derived from it, can be successfully used both in the detection and classification of ventricular arrhythmias and in the classification of shockable episodes. It proves that the geometric features derived from Topological Data Analysis provides a good description of the signal. Moreover, it also foresees a successful application of these features in both Automated External Defibrillation (AED) and Implantable Cardioverter Defibrillation (ICD) therapies.
It should be taken into account that these good results occur even in the absence of preselected ECG episodes. This work performs data classification in the same form as an Automated External Defibrillator (AED) operating in an emergency situation, following the AHA recommendations for Automated External Defibrillator (AED) algorithm performance [79]. That is, data can be continuously analyzed in time windows as they are received from the electrocardiograph.
To conclude, the success of using the TDA-derived geometric features suggests that this method may overcome conventional feature selection limitations by better describing the ‘shape of data’ and, thus, enabling us to build better performance arrhythmia detectors.

6. Conclusions

The rapid and reliable detection of VT and VF is fundamental in patient monitoring, but also in Automated External Defibrillation (AED) or Implantable Cardioverter Defibrillation (ICD) therapies. Any incorrect interpretation of a ventricular arrhythmia, or even the confusion between VF and VT, can be dangerous for the life of the patient.
In this paper, we propose a feature extraction method based on Topological Data Analysis (TDA) that provides near 99% accuracy in the discrimination of ventricular arrhythmias, normal and other rhythms (98.68% to VF; 99.05% to VT; 99.09% to Other; and 98.76% to Normal episodes). It also provides very high accuracy of 99.5% when discriminating between shockable (VT/VF) and non-shockable rhythms.
The novelty of this work is the incorporation of geometric features proceeding from Topological Data Analysis to the detection and classification of ventricular arrhythmias. Note also that these powerful results were obtained without preselection of episodes. Taking into consideration the obtained results, we can conclude that TDA, and the geometric features derived from it, can be successfully used both in the detection and classification of ventricular arrhythmias and in the classification of shockable rhythms. Moreover, it proves that the geometric features derived from Topological Data Analysis (TDA) provide valuable features easing the task of the classifier. Finally, we can conclude that TDA features can be beneficial in other classification tasks.

Author Contributions

Individual contributions: conceptualization, A.M., and A.R.-M.; methodology, A.M., A.R.-M., and M.B.-M.; software, A.M.; formal analysis, A.M., A.R.-M., and J.V.F.-V.; writing—original draft preparation, A.M., and J.V.F.-V.; writing—review and editing, A.M., J.V.F.-V., A.R.-M., and M.B.-M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Informed Consent Statement

Patient consent was waived due to the use of publicly available Physionet databse.

Data Availability Statement

Data can be publicly obtained from MIT and AHA databases, described in the references section.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
TDA   Topological Data Analysis
PH   Persistent Homology
VF   Ventricular Fibrillation
VT   Ventricular Tachycardia
AED   Automated External Defibrillator
ICD   Implantable Cardioverter Defibrillator
ECG   Electrocardiogram
RF   Random Forest
kNN   k-Nearest Neighbor
ICA   Independent Component Analysis
DT   Decision Tree
PC   Point Cloud
RPC   Representation of Point Cloud
PD   Persistence Diagram
PDI   Persistence Diagram Image
KDE   Kernel Density Estimation
PI   Persistence Images
WRM   Window Reference Mark
TR   Time Representation
PDR   Persistence Diagram Representation
SFS   Sequential Forward Selection
AHAAmerican Heart Association
CUDBCreighton University Ventricular Tachyarrhythmia Database
CCUCoronary Care Unit
TCIThreshold Crossing Interval
CNNConvolutional Neural Network
EMDEmpirical Mode Decomposition
VMDVariational mode decomposition
SVMSupport Vector Machine
ANNCArtificial Neural Network Classifier
GAGenetic Algorithm

References

  1. Yu, M.; Zhang, G.; Wu, T.; Li, C.; Wan, Z.; Li, L.; Wang, C.; Wang, Y.; Lu, H.; Chen, F. A new method without reference channels used for ventricular fibrillation detection during cardiopulmonary resuscitation. Australas. Phys. Eng. Sci. Med. 2016, 39, 391–401. [Google Scholar] [CrossRef] [PubMed]
  2. Jin, D.; Dai, C.; Gong, Y.; Lu, Y.; Zhang, L.; Quan, W.; Li, Y. Does the choice of definition for defibrillation and CPR success impact the predictability of ventricular fibrillation waveform analysis? Resuscitation 2017, 111, 48–54. [Google Scholar] [CrossRef] [PubMed]
  3. Amann, A.; Tratnig, R.; Unterkofler, K. Reliability of old and new ventricular fibrillation detection algorithms for automated external defibrillators. Biomed. Eng. Online 2005, 4, 1–15. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Pourmand, A.; Galvis, J.; Yamane, D. The controversial role of dual sequential defibrillation in shockable cardiac arrest. Am. J. Emerg. Med. 2018, 36, 1674–1679. [Google Scholar] [CrossRef]
  5. Chatterjee, S.; Thakur, R.S.; Yadav, R.N.; Gupta, L.; Raghuvanshi, D.K. Review of noise removal techniques in ECG signals. IET Signal Process. 2020, 14, 569–590. [Google Scholar] [CrossRef]
  6. Hammad, M.; Kandala, R.N.; Abdelatey, A.; Abdar, M.; Zomorodi-Moghadam, M.; Tan, R.S.; Acharya, U.R.; Pławiak, J.; Tadeusiewicz, R.; Makarenkov, V.; et al. Automated detection of shockable ECG signals: A review. Inf. Sci. 2021, 571, 580–604. [Google Scholar] [CrossRef]
  7. Orozco-Duque, A.; Rúa, S.; Zuluaga, S.; Redondo, A.; Restrepo, J.V.; Bustamante, J. Support Vector Machine and Artificial Neural Network Implementation in Embedded Systems for Real Time Arrhythmias Detection. In Proceedings of the International Conference on Bio-inspired Systems and Signal Processing (BIOSIGNALS-2013), Barcelona, Spain, 11–14 February 2013; pp. 310–313. [Google Scholar]
  8. Pooyan, M.; Akhoondi, F. Providing an efficient algorithm for finding R peaks in ECG signals and detecting ventricular abnormalities with morphological features. J. Med. Signals Sens. 2016, 6, 218. [Google Scholar] [CrossRef]
  9. Tripathy, R.; Sharma, L.; Dandapat, S. Detection of shockable ventricular arrhythmia using variational mode decomposition. J. Med. Syst. 2016, 40, 40–79. [Google Scholar] [CrossRef]
  10. Jekova, I.; Krasteva, V. Real time detection of ventricular fibrillation and tachycardia. Physiol. Meas. 2004, 25, 1167. [Google Scholar] [CrossRef]
  11. Mohanty, M.; Sahoo, S.; Biswal, P.; Sabut, S. Efficient classification of ventricular arrhythmias using feature selection and C4. 5 classifier. Biomed. Signal Process. Control 2018, 44, 200–208. [Google Scholar] [CrossRef]
  12. Jothiramalingam, R.; Jude, A.; Patan, R.; Ramachandran, M.; Duraisamy, J.H.; Gandomi, A.H. Machine learning-based left ventricular hypertrophy detection using multi-lead ECG signal. Neural Comput. Appl. 2021, 33, 4445–4455. [Google Scholar] [CrossRef]
  13. Tang, J.; Li, J.; Liang, B.; Huang, X.; Li, Y.; Wang, K. Using Bayesian decision for ontology mapping. J. Web Semant. 2006, 4, 243–262. [Google Scholar] [CrossRef] [Green Version]
  14. Kuzilek, J.; Kremen, V.; Soucek, F.; Lhotska, L. Independent component analysis and decision trees for ECG holter recording de-noising. PLoS ONE 2014, 9, e98450. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Chung, M.K.; Bubenik, P.; Kim, P.T. Persistence diagrams of cortical surface data. In International Conference on Information Processing in Medical Imaging; Springer: Berlin/Heidelberg, Germany, 2009; pp. 386–397. [Google Scholar]
  16. Hiraoka, Y.; Nakamura, T.; Hirata, A.; Escolar, E.G.; Matsue, K.; Nishiura, Y. Hierarchical structures of amorphous solids characterized by persistent homology. Proc. Natl. Acad. Sci. USA 2016, 113, 7035–7040. [Google Scholar] [CrossRef] [Green Version]
  17. Emrani, S.; Gentimis, T.; Krim, H. Persistent homology of delay embeddings and its application to wheeze detection. IEEE Signal Process. Lett. 2014, 21, 459–463. [Google Scholar] [CrossRef]
  18. Perea, J.A.; Deckard, A.; Haase, S.B.; Harer, J. SW1PerS: Sliding windows and 1-persistence scoring; discovering periodicity in gene expression time series data. BMC Bioinform. 2015, 16, 1–12. [Google Scholar] [CrossRef] [Green Version]
  19. Kramár, M.; Levanger, R.; Tithof, J.; Suri, B.; Xu, M.; Paul, M.; Schatz, M.F.; Mischaikow, K. Analysis of Kolmogorov flow and Rayleigh–Bénard convection using persistent homology. Phys. D Nonlinear Phenom. 2016, 334, 82–98. [Google Scholar] [CrossRef] [Green Version]
  20. Ferri, M. Persistent topology for natural data analysis—A survey. In Towards Integrative Machine Learning and Knowledge Extraction; Springer: Berlin/Heidelberg, Germany, 2017; pp. 117–133. [Google Scholar]
  21. Nicolau, M.; Levine, A.J.; Carlsson, G. Topology based data analysis identifies a subgroup of breast cancers with a unique mutational profile and excellent survival. Proc. Natl. Acad. Sci. USA 2011, 108, 7265–7270. [Google Scholar] [CrossRef] [Green Version]
  22. Carlsson, G.; Ishkhanov, T.; De Silva, V.; Zomorodian, A. On the local behavior of spaces of natural images. Int. J. Comput. Vis. 2008, 76, 1–12. [Google Scholar] [CrossRef]
  23. Dey, T.; Mandal, S.; Varcho, W. Improved image classification using topological persistence. In Proceedings of the Conference on Vision, Modeling and Visualization, Bonn, Germany, 25–27 September 2017; pp. 161–168. [Google Scholar]
  24. Berwald, J.; Gidea, M. Critical transitions in a model of a genetic regulatory system. arXiv 2013, arXiv:1309.7919. [Google Scholar] [CrossRef]
  25. Seversky, L.M.; Davis, S.; Berger, M. On time-series topological data analysis: New data and opportunities. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, Las Vegas, NV, USA, 26 June–1 July 2016; pp. 59–67. [Google Scholar]
  26. Kwitt, R.; Huber, S.; Niethammer, M.; Lin, W.; Bauer, U. Statistical topological data analysis-a kernel perspective. In Proceedings of the Advances in Neural Information Processing Systems 28 (NIPS 2015), Montreal, QC, USA, 7–12 December 2015; pp. 3070–3078. [Google Scholar]
  27. Carriere, M.; Cuturi, M.; Oudot, S. Sliced Wasserstein kernel for persistence diagrams. In Proceedings of the International Conference on Machine Learning, PMLR, Sydney, Australia, 6–11 August 2017; pp. 664–673. [Google Scholar]
  28. Garin, A.; Tauzin, G. A topological “reading” lesson: Classification of MNIST using TDA. In Proceedings of the 2019 18th IEEE International Conference On Machine Learning And Applications (ICMLA), Boca Raton, FL, USA, 16–19 December 2019; pp. 1551–1556. [Google Scholar] [CrossRef] [Green Version]
  29. Ravishanker, N.; Chen, R. Topological data analysis (TDA) for time series. arXiv 2019, arXiv:1909.10604. [Google Scholar]
  30. Cohen-Steiner, D.; Edelsbrunner, H.; Harer, J. Stability of persistence diagrams. Discret. Comput. Geom. 2007, 37, 103–120. [Google Scholar] [CrossRef] [Green Version]
  31. Oudot, S.Y. Persistence Theory: From Quiver Representations to Data Analysis; American Mathematical Society Providence: Providence, RI, USA, 2015; Volume 209. [Google Scholar]
  32. Yan, Y.; Ivanov, K.; Mumini Omisore, O.; Igbe, T.; Liu, Q.; Nie, Z.; Wang, L. Gait rhythm dynamics for neuro-degenerative disease classification via persistence landscape-based topological representation. Sensors 2020, 20, 2006. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. Carlsson, G.; Zomorodian, A.; Collins, A.; Guibas, L.J. Persistence barcodes for shapes. Int. J. Shape Model. 2005, 11, 149–187. [Google Scholar] [CrossRef]
  34. Chazal, F.; Michel, B. An introduction to topological data analysis: Fundamental and practical aspects for data scientists. Front. Artif. Intell. 2021, 4, 667963. [Google Scholar] [CrossRef]
  35. Zulkepli, N.F.S.; Noorani, M.S.M.; Razak, F.A.; Ismail, M.; Alias, M.A. Topological characterization of haze episodes using persistent homology. Aerosol Air Qual. Res. 2019, 19, 1614–1624. [Google Scholar] [CrossRef] [Green Version]
  36. Karan, A.; Kaygun, A. Time series classification via topological data analysis. Expert Syst. Appl. 2021, 183, 115326. [Google Scholar] [CrossRef]
  37. Bubenik, P. Statistical topological data analysis using persistence landscapes. J. Mach. Learn. Res. 2015, 16, 77–102. [Google Scholar]
  38. Chazal, F.; Fasy, B.T.; Lecci, F.; Rinaldo, A.; Wasserman, L. Stochastic convergence of persistence landscapes and silhouettes. In Proceedings of the Thirtieth Annual Symposium on Computational Geometry, Kyoto, Japan, 8–11 June 2014; pp. 474–483. [Google Scholar]
  39. Scott, D.W. Multivariate Density Estimation: Theory, Practice, and Visualization; John Wiley & Sons: Hoboken, NJ, USA, 2015. [Google Scholar]
  40. Goldberger, A.L.; Amaral, L.A.; 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] [Green Version]
  41. Physionet.org. The MIT-BIH Database. Available online: https://physionet.org/physiobank/database/mitdb/ (accessed on 25 October 2021).
  42. Ecri.org. American Heart Association ECG Database. Available online: http://ecri.org (accessed on 25 October 2021).
  43. Boda, S.; Mahadevappa, M.; Dutta, P.K. A hybrid method for removal of power line interference and baseline wander in ECG signals using EMD and EWT. Biomed. Signal Process. Control 2021, 67, 102466. [Google Scholar] [CrossRef]
  44. Kaur, M.; Singh, B. Comparison of different approaches for removal of baseline wander from ECG signal. In Proceedings of the International Conference & Workshop on Emerging Trends in Technology, Maharashtra, India, 25–26 February 2011; pp. 1290–1294. [Google Scholar]
  45. Narwaria, R.P.; Verma, S.; Singhal, P. Removal of baseline wander and power line interference from ECG signal-a survey approach. Int. J. Electron. Eng. 2011, 3, 107–111. [Google Scholar]
  46. Viitasalo, M.; Karjalainen, J. QT intervals at heart rates from 50 to 120 beats per minute during 24-hour electrocardiographic recordings in 100 healthy men. Effects of atenolol. Circulation 1992, 86, 1439–1442. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  47. Mjahad, A.; Rosado-Muñoz, A.; Bataller-Mompean, M.; Frances-Villora, J.; Guerrero-Martinez, J. Ventricular Fibrillation and Tachycardia detection from surface ECG using time-frequency representation images as input dataset for machine learning. Comput. Methods Programs Biomed. 2017, 141, 119–127. [Google Scholar] [CrossRef]
  48. Miranda, M.V.G.; Espinosa, I.P.V.; Calero, M.J.F. ECG signal features extraction. In Proceedings of the 2016 IEEE Ecuador Technical Chapters Meeting (ETCM), Guayaquil, Ecuador, 12–14 October 2016; pp. 1–6. [Google Scholar] [CrossRef]
  49. Yin, J.; Xiao, P.; Li, J.; Liu, Y.; Yan, C.; Zhang, Y. Parameters analysis of sample entropy, permutation entropy and permutation ratio entropy for RR interval time series. Inf. Process. Manag. 2020, 57, 102283. [Google Scholar] [CrossRef]
  50. Asgharzadeh-Bonab, A.; Amirani, M.C.; Mehri, A. Spectral entropy and deep convolutional neural network for ECG beat classification. Biocybern. Biomed. Eng. 2020, 40, 691–700. [Google Scholar] [CrossRef]
  51. Li, H.; Liu, T.; Wu, X.; Chen, Q. Research on bearing fault feature extraction based on singular value decomposition and optimized frequency band entropy. Mech. Syst. Signal Process. 2019, 118, 477–502. [Google Scholar] [CrossRef]
  52. Alù, F.; Miraglia, F.; Orticoni, A.; Judica, E.; Cotelli, M.; Rossini, P.M.; Vecchio, F. Approximate Entropy of Brain Network in the Study of Hemispheric Differences. Entropy 2020, 22, 1220. [Google Scholar] [CrossRef]
  53. Zhan, Z.Q.; Nikus, K.; Birnbaum, Y. Different ECG patterns of left main coronary artery occlusion signifying varying degrees of ischemic severity. J. Electrocardiol. 2020, 60, 12–14. [Google Scholar] [CrossRef]
  54. Zhang, Y.; Ma, Z.; Dong, W. Nonlinear quality indices based on a novel Lempel-Ziv complexity for assessing quality of multi-lead ECGs collected in real time. J. Inf. Process. Syst. 2020, 16, 508–521. [Google Scholar]
  55. Espinosa, R.; Talero, J.; Weinstein, A. Effects of Tau and Sampling Frequency on the Regularity Analysis of ECG and EEG Signals Using ApEn and SampEn Entropy Estimators. Entropy 2020, 22, 1298. [Google Scholar] [CrossRef]
  56. Dhanka, B.; Vijayvargiya, A.; Kumar, R.; Singh, G. A Comparative Assessment of Machine Learning Techniques for Epilepsy Detection using EEG Signal. In Proceedings of the 2020 IEEE 7th Uttar Pradesh Section International Conference on Electrical, Electronics and Computer Engineering (UPCON), Prayagraj, India, 27–29 November 2020; pp. 1–6. [Google Scholar]
  57. Yazdi-Ravandi, S.; Arezooji, D.M.; Matinnia, N.; Shamsaei, F.; Ahmadpanah, M.; Ghaleiha, A.; Khosrowabadi, R. Complexity of information processing in obsessive-compulsive disorder based on fractal analysis of EEG signal. EXCLI J. 2021, 20, 462. [Google Scholar]
  58. Moctezuma, L.A.; Molinas, M. Classification of low-density EEG for epileptic seizures by energy and fractal features based on EMD. J. Biomed. Res. 2020, 34, 180. [Google Scholar] [CrossRef] [PubMed]
  59. Pavlov, A.; Dubrovsky, A.; Koronovskii Jr, A.; Pavlova, O.; Semyachkina-Glushkovskaya, O.; Kurths, J. Extended detrended fluctuation analysis of sound-induced changes in brain electrical activity. Chaos Solitons Fractals 2020, 139, 109989. [Google Scholar] [CrossRef]
  60. Yamamoto, M.S.; Sadatnejad, K.; Tanaka, T.; Islam, R.; Tanaka, Y.; Lotte, F. Detecting EEG outliers for BCI on the riemannian manifold using spectral clustering. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 20–24 July 2020; pp. 438–441. [Google Scholar]
  61. Murugan, S.; Selvaraj, J.; Sahayadhas, A. Detection and analysis: Driver state with electrocardiogram (ECG). Phys. Eng. Sci. Med. 2020, 43, 525–537. [Google Scholar] [CrossRef] [PubMed]
  62. Cossette, H.; Mailhot, M.; Marceau, E.; Mesfioui, M. Vector-valued tail value-at-risk and capital allocation. Methodol. Comput. Appl. Probab. 2016, 18, 653–674. [Google Scholar] [CrossRef]
  63. Kusano, G.; Hiraoka, Y.; Fukumizu, K. Persistence weighted Gaussian kernel for topological data analysis. In Proceedings of the 33rd International Conference on Machine Learning, PMLR, New York, NY, USA, 19–24 June 2016; pp. 2004–2013. [Google Scholar]
  64. Reininghaus, J.; Huber, S.; Bauer, U.; Kwitt, R. A stable multi-scale kernel for topological machine learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 4741–4748. [Google Scholar]
  65. Luo, T.j.; Fan, Y.; Chen, L.; Guo, G.; Zhou, C. Eeg signal reconstruction using a generative adversarial network with wasserstein distance and temporal-spatial-frequency loss. Front. NeuroInform. 2020, 14, 15. [Google Scholar] [CrossRef]
  66. Frances-Villora, J.V.; Bataller-Mompean, M.; Mjahad, A.; Rosado-Muñoz, A.; Gutierrez Martin, A.; Teruel-Marti, V.; Villanueva, V.; Hampel, K.G.; Guerrero-Martinez, J.F. Real-Time Localization of Epileptogenic Foci EEG Signals: An FPGA-Based Implementation. Appl. Sci. 2020, 10, 827. [Google Scholar] [CrossRef] [Green Version]
  67. Mjahad, A.; Rosado-Muñoz, A.; Guerrero-Martínez, J.F.; Bataller-Mompeán, M.; Francés-Villora, J.V.; Dutta, M.K. Detection of Ventricular Fibrillation Using the Image from Time-Frequency Representation and Combined Classifiers without Feature Extraction. Appl. Sci. 2018, 8, 2057. [Google Scholar] [CrossRef] [Green Version]
  68. Roopaei, M.; Boostani, R.; Sarvestani, R.R.; Taghavi, M.A.; Azimifar, Z. Chaotic based reconstructed phase space features for detecting ventricular fibrillation. Biomed. Signal Process. Control 2010, 5, 318–327. [Google Scholar] [CrossRef]
  69. Arafat, M.A.; Chowdhury, A.W.; Hasan, M.K. A simple time domain algorithm for the detection of ventricular fibrillation in electrocardiogram. Signal Image Video Process. 2011, 5, 1–10. [Google Scholar] [CrossRef]
  70. Alonso-Atienza, F.; Morgado, E.; Fernandez-Martinez, L.; Garcia-Alberola, A.; Rojo-Alvarez, J.L. Detection of life-threatening arrhythmias using feature selection and support vector machines. IEEE Trans. Biomed. Eng. 2013, 61, 832–840. [Google Scholar] [CrossRef] [PubMed]
  71. Li, Q.; Rajagopalan, C.; Clifford, G.D. Ventricular fibrillation and tachycardia classification using a machine learning approach. IEEE Trans. Biomed. Eng. 2013, 61, 1607–1613. [Google Scholar] [CrossRef] [PubMed]
  72. Acharya, U.R.; Fujita, H.; Lih, O.S.; Hagiwara, Y.; Tan, J.H.; Adam, M. Automated detection of arrhythmias using different intervals of tachycardia ECG segments with convolutional neural network. Inf. Sci. 2017, 405, 81–90. [Google Scholar] [CrossRef]
  73. Ibtehaz, N.; Rahman, M.S.; Rahman, M.S. VFPred: A fusion of signal processing and machine learning techniques in detecting ventricular fibrillation from ECG signals. Biomed. Signal Process. Control 2019, 49, 349–359. [Google Scholar] [CrossRef] [Green Version]
  74. Xie, H.B.; Zhong-Mei, G.; Liu, H. Classification of ventricular tachycardia and fibrillation using fuzzy similarity-based approximate entropy. Expert Syst. Appl. 2011, 38, 3973–3981. [Google Scholar] [CrossRef]
  75. Kaur, L.; Singh, V. Ventricular fibrillation detection using emprical mode decomposition and approximate entropy. Int. J. Emerg. Technol. Adv. Eng. 2013, 3, 260–268. [Google Scholar]
  76. Xia, D.; Meng, Q.; Chen, Y.; Zhang, Z. Classification of ventricular tachycardia and fibrillation based on the lempel-ziv complexity and EMD. In International Conference on Intelligent Computing; Springer: Berlin/Heidelberg, Germany, 2014; pp. 322–329. [Google Scholar] [CrossRef]
  77. Acharya, U.R.; Fujita, H.; Oh, S.L.; Raghavendra, U.; Tan, J.H.; Adam, M.; Gertych, A.; Hagiwara, Y. Automated identification of shockable and non-shockable life-threatening ventricular arrhythmias using convolutional neural network. Future Gener. Comput. Syst. 2018, 79, 952–959. [Google Scholar] [CrossRef]
  78. Xu, Y.; Wang, D.; Zhang, W.; Ping, P.; Feng, L. Detection of ventricular tachycardia and fibrillation using adaptive variational mode decomposition and boosted-CART classifier. Biomed. Signal Process. Control 2018, 39, 219–229. [Google Scholar] [CrossRef]
  79. Kerber, R.E.; Becker, L.B.; Bourland, J.D.; Cummins, R.O.; Hallstrom, A.P.; Michos, M.B.; Nichol, G.; Ornato, J.P.; Thies, W.H.; White, R.D.; et al. Automatic external defibrillators for public access defibrillation: Recommendations for specifying and reporting arrhythmia analysis algorithm performance, incorporating new waveforms, and enhancing safety: A statement for health professionals from the American Heart Association Task Force on Automatic External Defibrillation, Subcommittee on AED Safety and Efficacy. Circulation 1997, 95, 1677–1682. [Google Scholar]
Figure 1. Gradual construction of various simplices (0-Simplex, 1-Simplex, 2-Simplex, ) eventually gives way to a Simplicial Complex.
Figure 1. Gradual construction of various simplices (0-Simplex, 1-Simplex, 2-Simplex, ) eventually gives way to a Simplicial Complex.
Applsci 12 07248 g001
Figure 2. Diagram illustrating circular intersections and linked point clouds required to build a Simplicial Complex.
Figure 2. Diagram illustrating circular intersections and linked point clouds required to build a Simplicial Complex.
Applsci 12 07248 g002
Figure 3. Representation of Point Cloud—RPC (left) on a Persistence Diagram representation—PDR (right).
Figure 3. Representation of Point Cloud—RPC (left) on a Persistence Diagram representation—PDR (right).
Applsci 12 07248 g003
Figure 4. A visual example of the transformation of a persistence diagram representation (PDR) into a persistence landscape (PL). The horizontal axis represents birth time, while the vertical axis represents death time on the persistence diagram (left). The horizontal axis is the average of the homologies of the birth and death times, and the vertical axis is used for ( d b ) / 2 on the persistence landscape (right).
Figure 4. A visual example of the transformation of a persistence diagram representation (PDR) into a persistence landscape (PL). The horizontal axis represents birth time, while the vertical axis represents death time on the persistence diagram (left). The horizontal axis is the average of the homologies of the birth and death times, and the vertical axis is used for ( d b ) / 2 on the persistence landscape (right).
Applsci 12 07248 g004
Figure 5. Schematic diagram illustrating the feature selection process proposed for the discrimination of ventricular arrhythmias, normal sinus, and other types of rhythms.
Figure 5. Schematic diagram illustrating the feature selection process proposed for the discrimination of ventricular arrhythmias, normal sinus, and other types of rhythms.
Applsci 12 07248 g005
Figure 6. Bandpass filter application to a data segment from the Normal ECG class, and resulting baseline reduction.
Figure 6. Bandpass filter application to a data segment from the Normal ECG class, and resulting baseline reduction.
Applsci 12 07248 g006
Table 1. Columns a 1 , a 2 , a 3 and a 4 correspond to the original ECG time signal windows; columns b 1 , b 2 , b 3 , b 4 and c 1 , c 2 , c 3 and c 4 show RPC and PDR, respectively. Each row, from top to bottom, corresponds to Normal, Other, VT and VF classes, respectively.
Table 1. Columns a 1 , a 2 , a 3 and a 4 correspond to the original ECG time signal windows; columns b 1 , b 2 , b 3 , b 4 and c 1 , c 2 , c 3 and c 4 show RPC and PDR, respectively. Each row, from top to bottom, corresponds to Normal, Other, VT and VF classes, respectively.
Parameter Extraction TimeRepresentation ofPersistence Diagram
Representation (TR)Point Cloud (RPC)Representation (PDR)
Applsci 12 07248 i001 Applsci 12 07248 i002 Applsci 12 07248 i003
a 1 b 1 c 1
Applsci 12 07248 i004 Applsci 12 07248 i005 Applsci 12 07248 i006
a 2 b 2 c 2
Applsci 12 07248 i007 Applsci 12 07248 i008 Applsci 12 07248 i009
a 3 b 3 c 3
Applsci 12 07248 i010 Applsci 12 07248 i011 Applsci 12 07248 i012
a 4 b 4 c 4
Table 2. From top to bottom, left to right: a 1 , a 2 , a 3 and a 4 illustrate Persistence Diagrams (PDR). b 1 , b 2 , b 3 and b 4 show Persistence Landscapes representation (LR), while c 1 , c 2 , c 3 and c 4 detail Weighted Silhouette representation (SR). These all correspond to the four classes Normal, Other, VT and VF, respectively.
Table 2. From top to bottom, left to right: a 1 , a 2 , a 3 and a 4 illustrate Persistence Diagrams (PDR). b 1 , b 2 , b 3 and b 4 show Persistence Landscapes representation (LR), while c 1 , c 2 , c 3 and c 4 detail Weighted Silhouette representation (SR). These all correspond to the four classes Normal, Other, VT and VF, respectively.
Persistence Diagram (PDR)Landscape (LR)Silhouette (SR)
Applsci 12 07248 i013 Applsci 12 07248 i014 Applsci 12 07248 i015
a 1 b 1 c 1
Applsci 12 07248 i016 Applsci 12 07248 i017 Applsci 12 07248 i018
a 2 b 2 c 2
Applsci 12 07248 i019 Applsci 12 07248 i020 Applsci 12 07248 i021
a 3 b 3 c 3
Applsci 12 07248 i022 Applsci 12 07248 i023 Applsci 12 07248 i024
a 4 b 4 c 4
Table 3. List of extracted features using TDA and other time-domain parameters used as an input vector to the classifier.
Table 3. List of extracted features using TDA and other time-domain parameters used as an input vector to the classifier.
Representation or DomainParameter
Time DomainStd (Standard deviation along the specified axis) [48]
Permutation entropy [49]
Spectral entropy [50]
Singular Value decomposition entropy [51]
Aproximate entropy [52]
Sample entropy [53]
Lempel-Ziv complexity [54]
Shannon entropy [55]
Petrosian fractal dimension [56]
Katz fractal dimension [57]
Higuchi fractal dimension [58]
Detrended fluctuation analysis [59]
Representation of Point Cloud (RPC)Std (Standard deviation along the specified axis) [53]
Tsem (trimmed standar error of the mean) [60]
Nanmean [61]
Tvar (Tail value at risk) [62]
Persistence Diagram Representation (PDR)Persistence Weighted Gaussian Kernel [63]
Approximate PWG kernel [63]
Persistence Scale SpaceKerne [64]
Approximate PSS kernel [64]
Sliced Wasserstien Distance [65]
Sliced Wasserstein Kernel [65]
Landscape Representation (LR)Tsem (Trimmed standard error of the mean) [60]
Tstd (Trimmed sample standard deviation) [53]
Wasserstien distance [65]
Heat kernel distance bottleneck [53]
Silhouette Representation (SR)RMS (Root Mean Square) [66]
Table 4. Persistence Diagrams (left) a 1 , a 2 , a 3 , a 4 and representation of Calculate Gausssian KDE (right) b 1 , b 2 , b 3 , b 4 for classes Normal, Other, VT and VF, respectively. The representation of KDE is used as input to the kNN classifier in the proposed PDI method.
Table 4. Persistence Diagrams (left) a 1 , a 2 , a 3 , a 4 and representation of Calculate Gausssian KDE (right) b 1 , b 2 , b 3 , b 4 for classes Normal, Other, VT and VF, respectively. The representation of KDE is used as input to the kNN classifier in the proposed PDI method.
Scatterplot from Persistence DiagramCalculate Gaussian KDE
Applsci 12 07248 i025 Applsci 12 07248 i026
a1b1
Applsci 12 07248 i027 Applsci 12 07248 i028
a2b2
Applsci 12 07248 i029 Applsci 12 07248 i030
a3b3
Applsci 12 07248 i031 Applsci 12 07248 i032
a4b4
Table 5. Confusion matrix for classification of VF, VT, Others, and Normal classes using the TDA topological method.
Table 5. Confusion matrix for classification of VF, VT, Others, and Normal classes using the TDA topological method.
AlgorithmsTDA
VFVTNormalOther
VF1701  36 12  
VT4560191
Normal153495728
Other02551940
Table 6. Results obtained for VF class classification in testing.
Table 6. Results obtained for VF class classification in testing.
TypeVF
AlgorithmsSensitivity%Specificity%Accuracy%
VFGlobalVTOtherNTotal
TDA97.07   99.2593.78  99.90  99.68       98.68
PDI84.3496.7789.7099.1496.6894.26
Table 7. Results obtained for VT class classification in testing.
Table 7. Results obtained for VT class classification in testing.
TypeVT
AlgorithmsSensitivity%Specificity%Accuracy%
VTGlobalVFOtherNormalTotal
TDA92.72   99.53  97.93  99.89  99.94       99.05
PDI82.25   98.5394.8599.6299.3697.38
Table 8. Results obtained for Normal class classification in testing.
Table 8. Results obtained for Normal class classification in testing.
TypeNormal
AlgorithmsSensitivity%Specificity%Accuracy%
NormalGlobalVFVTOtherTotal
TDA99.05   98.45  99.27  98.88  97.16  98.76
PDI93.09   92.14  90.22  91.65  93.95  92.65
Table 9. Results obtained for Other class classification in testing.
Table 9. Results obtained for Other class classification in testing.
TypeOther
AlgorithmsSensitivity%Specificity%Accuracy%
OtherGlobalVTNormalVFTotal
TDA97.43   99.54  99.88  99.40  99.82  99.09
PDI92.8697.1599.0296.7697.7296.19
Table 10. Performance results comparison with other works discriminating shockable and non-shockable rhythms.
Table 10. Performance results comparison with other works discriminating shockable and non-shockable rhythms.
TypesShockable (VT+VF)Data Base
Method:Sens%Spe%Accu%
This work, TDA99.0399.6799.51 A H A , M I T B I H
This work, PDI89.6396.9695.12 A H A , M I T B I H
[77] Convolutional neural network (CNN) (2018)91.0495.3293.18 C U D B , M I T B I H
[11] C4.5 classifier (2018)90.9797.8697.02 C U D B , M I T B I H
[78] Adaptive variational and boosted CART (2018)97.3298.9598.29 C U D B , M I T B I H
[71] SVM and bootstrap (2013)98.4098.0098.10 A H A , C U D B , M I T B I H
[9] VMD with Random Forest (2016)96.5497.9797.23 C U D B , M I T B I H
[70] FS and SVM (2013)95.0099.0098.60 C U D B , M I T B I H
AHA: American Heart Association ECG Database (200 series); MIBIH: MIT-BIH Malignant Ventricular Arrhythmia Database; CCU: Registers from Coronary Care Unit (CCU) of the Royal Infirmary of Edinburgh; CUDB: MIT ‘cudb’ (Creighton University Ventricular Tachyarrhythmia Database).
Table 11. Performance results comparison with other rhythm-discriminating works.
Table 11. Performance results comparison with other rhythm-discriminating works.
TypesVFVTOtherNormalData Base
Method:Sens%Spe%Accu%Sens%Spe%Accu%Sens%Spe%Accu%Sens%Spe%Accu%
This work, TDA97.0799.2598.6892.7299.5399.0597.4399.5499.0999.0598.4598.76 A H A , M I T B I H
This work, PDI84.3496.7794.2682.2598.5397.3892.8697.1596.1993.0992.1492.65 A H A , M I T B I H
[47] time-frequency, L2-RLR (2017)89.6096.70 91.0098.10 92.5098.10 94.9096.40 A H A , M I T B I H
[47] time-frequency, ANNC (2017)92.8097.00 91.8098.70 92.9099.00 96.2096.70 A H A , M I T B I H
[47] time-frequency, SSVR (2017)91.0097.00 92.8098.70 92.3099.20 96.6096.30 A H A , M I T B I H
[47] time-frequency, BAGG (2017)95.2096.40 88.8099.70 88.6099.80 96.6094.10 A H A , M I T B I H
[75] EMD and App Entropy (2013)90.4791.6691.1790.6291.1190.80 M I T B I H
[69] TCSC algorithm (2011)80.9798.5198.14 C U D B , M I T B I H
[76] Lempel-Ziv and EMD (2014)98.1596.01 96.0198.15 C U D B , M I T B I H
[68] Chaotic based (2010) 88.60 C C U , M I T B I H
[73] EMD and SVM (2019)99.9998.4099.19 C U D B , M I T B I H
[72] CNN neural network (2017)56.4498.1997.88 C U D B , M I T B I H
[70] FS and SVM (2013)91.9097.1096.80 C U D B , M I T B I H
[71] Genetic algorithm, SVM (2014)98.4098.0096.30 A H A , C U D B
[74] Approximated entropy (2011)97.9897.03 97.0397.98 C U D B , M I T B I H
AHA: American Heart Association ECG Database (200 series); MIBIH: MIT-BIH Malignant Ventricular Arrhythmia Database; CUDB: MIT ‘cudb’ (Creighton University Ventricular Tachyarrhythmia Database).
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mjahad, A.; Frances-Villora, J.V.; Bataller-Mompean, M.; Rosado-Muñoz, A. Ventricular Fibrillation and Tachycardia Detection Using Features Derived from Topological Data Analysis. Appl. Sci. 2022, 12, 7248. https://doi.org/10.3390/app12147248

AMA Style

Mjahad A, Frances-Villora JV, Bataller-Mompean M, Rosado-Muñoz A. Ventricular Fibrillation and Tachycardia Detection Using Features Derived from Topological Data Analysis. Applied Sciences. 2022; 12(14):7248. https://doi.org/10.3390/app12147248

Chicago/Turabian Style

Mjahad, Azeddine, Jose V. Frances-Villora, Manuel Bataller-Mompean, and Alfredo Rosado-Muñoz. 2022. "Ventricular Fibrillation and Tachycardia Detection Using Features Derived from Topological Data Analysis" Applied Sciences 12, no. 14: 7248. https://doi.org/10.3390/app12147248

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