Previous Article in Journal
Bagasse-Based Cellulose Nanocrystal–Magnetic Iron Oxide Nanocomposite for Removal of Chromium (VI) from Aqua Media
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Atrial Fibrillation Detection Using ECG Recordings Based on Genetic Optimization †

by
Sreenivasulu Ummadisetty
1,* and
Madhavi Tatineni
2
1
Department of Electrical, Electronics and Communication Engineering, GITAM School of Technology, Vishakapatnam 530045, Andhra Pradesh, India
2
Department of Electrical, Electronics and Communication Engineering, GITAM School of Technology, Hyderabad 502329, Telangana, India
*
Author to whom correspondence should be addressed.
Presented at the 5th International Conference on Innovative Product Design and Intelligent Manufacturing Systems (IPDIMS 2023), Rourkela, India, 6–7 December 2023.
Eng. Proc. 2024, 66(1), 21; https://doi.org/10.3390/engproc2024066021
Published: 11 July 2024

Abstract

:
Recently, mobile healthcare is emerging using portable and wearable devices. This article uses short-single-lead ECG signals to develop an automatic AF detection system. Heart rate variability (HRV) and frequency analysis are used for feature extraction. The innovative contribution is to develop a Genetic Optimization Algorithm for detecting atrial fibrillation in short ECG recordings. The validation of the results is carried out with the publicly available dataset which comprises short ECG recordings by the support vector machine algorithm. The accuracy varies from 94.2 to 96.5 for N versus A classification under noise levels ranging up to 30 dB. A maximum accuracy of 82.7% is obtained for N versus A versus O.

1. Introduction

Atrial fibrillation (AF) is a highly prevalent arrhythmia of the heart. It is quite difficult to find unless a specific arrhythmia episode occurs during the investigation. There is an urgent need for the automatic detection of AF, as it can result in cardiac strokes and death if diagnosis and treatment are delayed. One common method of identifying AF is thought to be the study of ECG data. ECG data have been analyzed taking into account noise, atrial fibrillation (A), other arrhythmias (O), and normal rhythm (N). A result that is understandable for physicians can be produced by employing various algorithms to extract the valuable elements from the raw data. In linked analysis, several approaches are used, motivated either by information analytics or medical data. Physicians employ physiologically interpretable AF signals by taking aberrant P wave and QRS shape measurements into account. This research uses publicly available, open datasets to validate the suggested technique. The suggested approach starts with pre-processing the ECG signal, extracts features, uses a genetic algorithm (GA) to optimize the features, and then uses a support vector machine (SVM) classifier to categorize the data. The suggested technique outperforms the current algorithm with an SNR of dB, achieving improved accuracy.

2. Materials and Methods

2.1. Preprocessing

The preprocessing step includes noise reduction, ECG signal segmentation, and the transformation of non-uniform pulses into uniform pulses. This work uses data from the public domain, including 8528 ECG records. Among the data that were collected, 60% showed normal arrhythmia (N), 28% showed Other arrythmia (O), 9% showed atrial fibrillation and the remaining 3% showed noise. The ECG recordings have been cleared up of noise using filters. The ECG pulses are split into pulses with the use of the R peaks. The resulting beats yield non-uniform samples. In this work, the MIT-BIH open-source dataset [1] is used for experimentation and analysis.

2.2. Spectral and HRV Feature Extraction

The ECG’s identified QRS complex generate RR signals. The Heart Rate Variability (HRV) signal, which offers details on differences among successive heartbeats, has been used to obtain the Congestive Heart Failure (CHF)-related parameter from the ECG. HRV can be examined in terms of frequency or time. Since the time domain parameters of HRV are derived using well-used statistical techniques, they are the simplest. The initial stage in obtaining HRV-based features is R peak detection. Because of its better performance, a well-known real-time QRS detection algorithm, originally developed by Pan and Tompkins (P&T), has been used [2]. The oscillations that occur between successive heartbeat intervals are known as HRV. It is thought that the vagal and autonomic nervous systems both influence HRV. Only rudimentary information regarding cardiac activity is available in the HRV-based features. The technique for QRS detection is used to identify these R peaks. The formulas for calculating RR interval sequences, the Catalecticant matrix descriptor, Complex Correlation Measure and signal-to-noise ratio were discussed in detail in [3].

2.3. Genetic Algorithm (GA)-Optimized Feature Selection

In order to reduce the feature set and enable an extremely simplistic and efficient model that works effectively in classification, feature selection is a crucial step in the process. In this work, the best features for classifying the ECG signals into normal, atrial fibrillation and other rhythms are chosen using the Genetic Optimization Algorithm (GA) [4]. A selection technique based on tournaments has been employed to apply to the GA. The number of characteristics has been employed to determine the chromosome’s size. Finding a chromosome which conveys an array of traits with the maximum classification accuracy is the goal of using GA [5]. First, a random population is generated to represent various locations inside the searching region. The fitness function has been utilized to evaluate each member of the initial population. Reproduction, crossover, and mutation are crucial procedures in GA that create a subsequent iteration from the current one. GA maintains high fitness chromosomes for subsequent generation and destroys low fitness chromosomes through repetitions till an optimal genome has been obtained.
According to the findings of the research, a meta-heuristic-based strategy outperforms a statistical method in the classification of ECG AF. A feature selection procedure is used to avoid overfitting. Genetic Optimization Algorithm (GA) and maximum-relevance–min-redundancy (MRMR) are integrated. One potential method for reducing feature counts is the use of GA. Additional meta-heuristic optimization methods, such evolutionary strategies and simulated annealing, are also suitable for this use case. But GA [6] is a robust and stochastic method based on natural evolutionary concepts that has been shown to eventually lead to a semi-optimal solution for a wide range of challenging situations. In order to lay out the potential response as a statistical vector, the initial step of the GA method is to determine its encoding. After that, the code attempts to dynamically create a population. Also, it is utilized for feature distribution and reduction in numerous applications.

2.4. Support Vector Machine (SVM) Based Classification

SVM [7] is used to lower the measured risk and uncertainty range for the classification algorithm or prediction function. In order to properly classify high-dimensional data as well, the challenge is resolved through developing an exponential or polynomial decision rule [8]. To categorize the segments as either normal or atrial fibrillation, the retrieved features are used for classification. The support vector machine algorithm is the method utilized to do this. In total, 60% of the data is utilized for training and 40% is used for testing when the data are trained and tested. Performance metrics including accuracy, specificity, and sensitivity are assessed using these data.

3. Results and Discussion

The present section compares and validates the suggested GA-SVM-based AF detection system’s performance using a range of parameters. The goal of the proposed research is to develop an automated detection system that can recognize and categorize AF based on ECG data. The HRV spectral feature extraction, GA feature selection, and SVM classification techniques are used in this study to achieve this goal. This study conducts a thorough simulation evaluation to look at and contrast the overall AF detection performance and outcomes of the suggested model. Additionally, the MIT-BIH public dataset was employed in this study to assess and contrast the outcomes of the GA-SVM-based AF detection system.
The convergence curve for the GA optimization method with respect to different iteration counts is displayed in Figure 1. Usually, the fitness value of the optimization algorithm is used to validate and assess its performance. It is clear from the data that the GA requires fewer iterations to obtain the optimal fitness value.
The most popular metrics, including accuracy, sensitivity, and specificity, are computed in this study to assess the AF detection and classification performance of the GA-SVM classifier. These metrics are computed mathematically as indicated by the following equations: [9]
S e n s i t i v i t y = T P T P + F N
S p e c i f i c i t y = T N T N + F P
A c c u r a c y = T P + T N T P + T N + F P + F N
Based on the characteristics of accuracy, sensitivity, and specificity, Table 1 compare the SVM and GA-SVM classification algorithms with respect to different SNR levels, such as ∞ dB, 10 dB, 20 dB, and 30 dB. where the cases such as Normal/Arrhythmia, Other/Arrhythmia, Normal/Other, and Normal/Other/Arrhythmia are included, respectively. When compared to the traditional SVM classification technique, the GA-SVM classification technique yields better prediction results, as indicated by the expected findings.

4. Conclusions

The novel contribution of this work is to create a highly effective and qualified methodology used for accurately detecting AF from the provided short-single-lead ECG signals. The HRV-based feature extraction methodology with a high level of robustness contributes to improved atrial fibrillation detection accurately with confidence. A genetic algorithm along with an SVM classifier are used for AF detection. It has superior accuracy and specificity, making this algorithm a compete prototype for preliminary screening. The algorithm is validated using a publicly available dataset consisting of short ECG recordings acquired under unstructured environments from portable devices.

Author Contributions

Conceptualisation, S.U. and M.T.; methodology, S.U.; software, S.U. and M.T.; validation, M.T.; formal analysis, S.U.; investigation, S.U.; resources, M.T.; data curation, M.T.; writing—original draft preparation, S.U.; writing—review and editing, S.U.; supervision, M.T.; project administration, M.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data can be made available upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Jahan, M.S.; Mansourvar, M.; Puthusserypady, S.; Wiil, U.K.; Peimankar, A. Short-term atrial fibrillation detection using electrocardiograms: A comparison of machine learning approaches. Int. J. Med. Inform. 2022, 163, 104790. [Google Scholar] [CrossRef] [PubMed]
  2. Pan, J.; Tompkins, W.J. A Real-Time QRS Detection Algorithm. IEEE Trans. Biomed. Eng. 1985, 32, 230–236. [Google Scholar] [CrossRef] [PubMed]
  3. Ummadisetty, S.; Tatineni, M. Automatic Atrial Fibrillation Detection Using Modified Moth Flame Optimization Algorithm. Int. J. Intell. Eng. Syst. 2023, 16, 435–445. [Google Scholar]
  4. Al Qaraghuli, H.; Sheibani, R.; Tabatabaee, H. Detection of atrial fibrillation using variable length genetic algorithm and convolutional neural network. Concurr. Comput. Pract. Exp. 2022, 34, e6789. [Google Scholar] [CrossRef]
  5. Parsi, A.; Glavin, M.; Jones, E.; Byrne, D. Prediction of paroxysmal atrial fibrillation using new heart rate variability features. Comput. Biol. Med. 2021, 133, 104367. [Google Scholar] [CrossRef] [PubMed]
  6. Mazaheri, V.; Khodadadi, H. Heart arrhythmia diagnosis based on the combination of morphological, frequency and nonlinear features of ECG signals and metaheuristic feature selection algorithm. Expert Syst. Appl. 2020, 161, 113697. [Google Scholar] [CrossRef]
  7. Li, Z.; Feng, X.; Wu, Z.; Yang, C.; Bai, B.; Yang, Q. Classification of atrial fibrillation recurrence based on a convolution neural network with SVM architecture. IEEE Access 2019, 7, 77849–77856. [Google Scholar] [CrossRef]
  8. Lown, M.; Brown, M.; Brown, C.; Yue, A.M.; Shah, B.N.; Corbett, S.J.; Lewith, G.; Stuart, B.; Moore, M.; Little, P. Machine learning detection of Atrial Fibrillation using wearable technology. PLoS ONE 2020, 15, e0227401. [Google Scholar] [CrossRef] [PubMed]
  9. Mei, Z.; Gu, X.; Chen, H.; Chen, W. Automatic Atrial Fibrillation Detection Based on Heart Rate Variability and Spectral Features. IEEE Access 2018, 6, 53566–53575. [Google Scholar] [CrossRef]
Figure 1. Convergence plot of GA.
Figure 1. Convergence plot of GA.
Engproc 66 00021 g001
Table 1. Comparison of performance metrics at different SNR values with respect to all the features and top 10 features.
Table 1. Comparison of performance metrics at different SNR values with respect to all the features and top 10 features.
SNRFEATURESCLASSIFIERN/AO/AN/ON/O/A
AccSenSpecAccSenSpecAccSenSpecAccSenSpec
∞ dBAllSVM95.374.398.589.167.595.982.762.592.379.763.298.2
GA-SVM96.479.799.192.075.398.185.268.394.982.871.699.3
Top 10SVM96.282.698.289.774.694.480.361.689.278.273.097.3
GA-SVM96.585.098.390.777.695.181.663.991.380.175.998.2
30 dBAllSVM95.876.398.890.072.695.582.764.991.280.268.698.0
GA-SVM96.478.499.191.472.197.885.067.494.382.568.498.8
Top 10SVM96.483.698.389.675.094.280.059.789.778.073.597.2
GA-SVM96.384.298.290.776.595.181.261.990.380.575.298.1
20 dBAllSVM95.374.398.489.569.795.781.964.590.279.365.798.1
GA-SVM96.276.498.991.370.597.484.265.493.382.768.298.7
Top 10SVM95.982.497.988.672.593.678.758.988.176.471.096.9
GA-SVM96.383.798.289.674.494.880.160.989.980.672.498.0
10 dBAllSVM94.866.199.187.660.196.381.256.293.177.954.598.5
GA-SVM95.069.098.990.164.197.383.659.892.182.058.798.6
Top 10SVM93.864.998.285.958.294.678.552.890.775.151.297.7
GA-SVM94.267.098.187.061.294.479.955.989.379.554.498.0
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

Ummadisetty, S.; Tatineni, M. Atrial Fibrillation Detection Using ECG Recordings Based on Genetic Optimization. Eng. Proc. 2024, 66, 21. https://doi.org/10.3390/engproc2024066021

AMA Style

Ummadisetty S, Tatineni M. Atrial Fibrillation Detection Using ECG Recordings Based on Genetic Optimization. Engineering Proceedings. 2024; 66(1):21. https://doi.org/10.3390/engproc2024066021

Chicago/Turabian Style

Ummadisetty, Sreenivasulu, and Madhavi Tatineni. 2024. "Atrial Fibrillation Detection Using ECG Recordings Based on Genetic Optimization" Engineering Proceedings 66, no. 1: 21. https://doi.org/10.3390/engproc2024066021

Article Metrics

Back to TopTop