Cargando…

Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation

FUNDING ACKNOWLEDGEMENTS: Type of funding sources: Private grant(s) and/or Sponsorship. Main funding source(s): British Heart Foundation INTRODUCTION: Automated classification of arrhythmias in ECGs is becoming increasingly important. Publicly available ECG datasets have been widely used by the rese...

Descripción completa

Detalles Bibliográficos
Autores principales: Cretu, I, Tindale, A, Abbod, M, Balachandran, W, Mason, M, Khir, A W, Meng, H
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Oxford University Press 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10207339/
http://dx.doi.org/10.1093/europace/euad122.622
_version_ 1785046431379226624
author Cretu, I
Tindale, A
Abbod, M
Balachandran, W
Mason, M
Khir, A W
Meng, H
author_facet Cretu, I
Tindale, A
Abbod, M
Balachandran, W
Mason, M
Khir, A W
Meng, H
author_sort Cretu, I
collection PubMed
description FUNDING ACKNOWLEDGEMENTS: Type of funding sources: Private grant(s) and/or Sponsorship. Main funding source(s): British Heart Foundation INTRODUCTION: Automated classification of arrhythmias in ECGs is becoming increasingly important. Publicly available ECG datasets have been widely used by the research community to create novel artificial intelligence models that improve these detection rates. The development of these models requires access to large volume of labelled data. However, access to such databases is becoming increasingly limited. In addition, the datasets are often unbalanced because abnormal rhythms are far outweighed by normal samples. The unbalanced nature of the datasets can lead to less accurate models. Therefore, generating realistic synthetic signals can augment the real signals found in such databases and provide data that allows sophisticated model development. PURPOSE: In this study, we propose a deep learning-based approach for synthetic ECG signal generation that uses long short-term memory (LSTM) autoencoder and generative adversarial networks (GAN) to generate signals that mimic the distribution of arrhythmia signals (Figure 1). METHODS: The LSTM autoencoder is composed of two parts: an encoder and a decoder (Figure 1b). The encoder takes original ECG signal as its input and uses LSTM layers to compress the signal into a set of features. The decoder is formed by reversing the encoding process, which uses the encoded features as its input and converts them back into the original signal. To generate synthetic signals, we inserted GANs between the LSTM encoder and the decoder. GANs are composed of a generator and a discriminator (Figure 1c). The generator produces synthetic ECG features based on noise, whereas the discriminator tries to distinguish between real features and results received from the generator. The pathological beats studies were: left bundle branch block (LBBB), right bundle branch block (RBBB), aberrated atrial premature (AA), and normal beats (N) from the MIT-BIH arrhythmia database, using lead II only. To evaluate the quality of our synthetic signals, we trained an LSTM classifier on a combination of our real and synthetic data and compared the testing results with a model trained on real data alone. RESULTS: The LSTM encoder, decoder and GAN were trained individually for each beat type, and examples of generated signals are illustrated in Figure 2. The average accuracy of the classification for the original dataset was 90%, with a recall of 98% for N, 36% for AA, 39% for LBBB and 97% for RBBB. Once synthetic signals were added to the training set, the average testing classification accuracy increased to 98%, with a recall of 99% for N, 83% for AA, 99% for LBBB and 99% for RBBB. For fair comparison, the testing set contained only real data and remained unchanged for both groups. CONCLUSION: In this work, we proved the capability of GANs to generate realistic synthetic signals that helped to improve the detection rates of arrhythmias as measured by both increased overall accuracy and recall. [Figure: see text] [Figure: see text]
format Online
Article
Text
id pubmed-10207339
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher Oxford University Press
record_format MEDLINE/PubMed
spelling pubmed-102073392023-05-25 Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation Cretu, I Tindale, A Abbod, M Balachandran, W Mason, M Khir, A W Meng, H Europace 9.3.1 - Electrocardiography (ECG) FUNDING ACKNOWLEDGEMENTS: Type of funding sources: Private grant(s) and/or Sponsorship. Main funding source(s): British Heart Foundation INTRODUCTION: Automated classification of arrhythmias in ECGs is becoming increasingly important. Publicly available ECG datasets have been widely used by the research community to create novel artificial intelligence models that improve these detection rates. The development of these models requires access to large volume of labelled data. However, access to such databases is becoming increasingly limited. In addition, the datasets are often unbalanced because abnormal rhythms are far outweighed by normal samples. The unbalanced nature of the datasets can lead to less accurate models. Therefore, generating realistic synthetic signals can augment the real signals found in such databases and provide data that allows sophisticated model development. PURPOSE: In this study, we propose a deep learning-based approach for synthetic ECG signal generation that uses long short-term memory (LSTM) autoencoder and generative adversarial networks (GAN) to generate signals that mimic the distribution of arrhythmia signals (Figure 1). METHODS: The LSTM autoencoder is composed of two parts: an encoder and a decoder (Figure 1b). The encoder takes original ECG signal as its input and uses LSTM layers to compress the signal into a set of features. The decoder is formed by reversing the encoding process, which uses the encoded features as its input and converts them back into the original signal. To generate synthetic signals, we inserted GANs between the LSTM encoder and the decoder. GANs are composed of a generator and a discriminator (Figure 1c). The generator produces synthetic ECG features based on noise, whereas the discriminator tries to distinguish between real features and results received from the generator. The pathological beats studies were: left bundle branch block (LBBB), right bundle branch block (RBBB), aberrated atrial premature (AA), and normal beats (N) from the MIT-BIH arrhythmia database, using lead II only. To evaluate the quality of our synthetic signals, we trained an LSTM classifier on a combination of our real and synthetic data and compared the testing results with a model trained on real data alone. RESULTS: The LSTM encoder, decoder and GAN were trained individually for each beat type, and examples of generated signals are illustrated in Figure 2. The average accuracy of the classification for the original dataset was 90%, with a recall of 98% for N, 36% for AA, 39% for LBBB and 97% for RBBB. Once synthetic signals were added to the training set, the average testing classification accuracy increased to 98%, with a recall of 99% for N, 83% for AA, 99% for LBBB and 99% for RBBB. For fair comparison, the testing set contained only real data and remained unchanged for both groups. CONCLUSION: In this work, we proved the capability of GANs to generate realistic synthetic signals that helped to improve the detection rates of arrhythmias as measured by both increased overall accuracy and recall. [Figure: see text] [Figure: see text] Oxford University Press 2023-05-24 /pmc/articles/PMC10207339/ http://dx.doi.org/10.1093/europace/euad122.622 Text en © The Author(s) 2023. Published by Oxford University Press on behalf of the European Society of Cardiology. https://creativecommons.org/licenses/by-nc-nd/4.0/This is an Open Access article distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivs licence (https://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial reproduction and distribution of the work, in any medium, provided the original work is not altered or transformed in any way, and that the work is properly cited. For commercial re-use, please contact journals.permissions@oup.com
spellingShingle 9.3.1 - Electrocardiography (ECG)
Cretu, I
Tindale, A
Abbod, M
Balachandran, W
Mason, M
Khir, A W
Meng, H
Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title_full Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title_fullStr Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title_full_unstemmed Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title_short Classification of arrhythmias using an LSTM- and GAN-based approach to ECG signal augmentation
title_sort classification of arrhythmias using an lstm- and gan-based approach to ecg signal augmentation
topic 9.3.1 - Electrocardiography (ECG)
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10207339/
http://dx.doi.org/10.1093/europace/euad122.622
work_keys_str_mv AT cretui classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT tindalea classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT abbodm classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT balachandranw classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT masonm classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT khiraw classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation
AT mengh classificationofarrhythmiasusinganlstmandganbasedapproachtoecgsignalaugmentation