Cargando…
WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis
INTRODUCTION: Representation learning allows artificial intelligence (AI) models to learn useful features from large, unlabelled datasets. This can reduce the need for labelled data across a range of downstream tasks. It was hypothesised that wave segmentation would be a useful form of electrocardio...
Autores principales: | , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Frontiers Media S.A.
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8993503/ https://www.ncbi.nlm.nih.gov/pubmed/35399264 http://dx.doi.org/10.3389/fphys.2022.760000 |
_version_ | 1784683914006102016 |
---|---|
author | Brisk, Rob Bond, Raymond R. Finlay, Dewar McLaughlin, James A. D. Piadlo, Alicja J. McEneaney, David J. |
author_facet | Brisk, Rob Bond, Raymond R. Finlay, Dewar McLaughlin, James A. D. Piadlo, Alicja J. McEneaney, David J. |
author_sort | Brisk, Rob |
collection | PubMed |
description | INTRODUCTION: Representation learning allows artificial intelligence (AI) models to learn useful features from large, unlabelled datasets. This can reduce the need for labelled data across a range of downstream tasks. It was hypothesised that wave segmentation would be a useful form of electrocardiogram (ECG) representation learning. In addition to reducing labelled data requirements, segmentation masks may provide a mechanism for explainable AI. This study details the development and evaluation of a Wave Segmentation Pretraining (WaSP) application. MATERIALS AND METHODS: Pretraining: A non-AI-based ECG signal and image simulator was developed to generate ECGs and wave segmentation masks. U-Net models were trained to segment waves from synthetic ECGs. Dataset: The raw sample files from the PTB-XL dataset were downloaded. Each ECG was also plotted into an image. Fine-tuning and evaluation: A hold-out approach was used with a 60:20:20 training/validation/test set split. The encoder portions of the U-Net models were fine-tuned to classify PTB-XL ECGs for two tasks: sinus rhythm (SR) vs atrial fibrillation (AF), and myocardial infarction (MI) vs normal ECGs. The fine-tuning was repeated without pretraining. Results were compared. Explainable AI: an example pipeline combining AI-derived segmentation masks and a rule-based AF detector was developed and evaluated. RESULTS: WaSP consistently improved model performance on downstream tasks for both ECG signals and images. The difference between non-pretrained models and models pretrained for wave segmentation was particularly marked for ECG image analysis. A selection of segmentation masks are shown. An AF detection algorithm comprising both AI and rule-based components performed less well than end-to-end AI models but its outputs are proposed to be highly explainable. An example output is shown. CONCLUSION: WaSP using synthetic data and labels allows AI models to learn useful features for downstream ECG analysis with real-world data. Segmentation masks provide an intermediate output that may facilitate confidence calibration in the context of end-to-end AI. It is possible to combine AI-derived segmentation masks and rule-based diagnostic classifiers for explainable ECG analysis. |
format | Online Article Text |
id | pubmed-8993503 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Frontiers Media S.A. |
record_format | MEDLINE/PubMed |
spelling | pubmed-89935032022-04-09 WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis Brisk, Rob Bond, Raymond R. Finlay, Dewar McLaughlin, James A. D. Piadlo, Alicja J. McEneaney, David J. Front Physiol Physiology INTRODUCTION: Representation learning allows artificial intelligence (AI) models to learn useful features from large, unlabelled datasets. This can reduce the need for labelled data across a range of downstream tasks. It was hypothesised that wave segmentation would be a useful form of electrocardiogram (ECG) representation learning. In addition to reducing labelled data requirements, segmentation masks may provide a mechanism for explainable AI. This study details the development and evaluation of a Wave Segmentation Pretraining (WaSP) application. MATERIALS AND METHODS: Pretraining: A non-AI-based ECG signal and image simulator was developed to generate ECGs and wave segmentation masks. U-Net models were trained to segment waves from synthetic ECGs. Dataset: The raw sample files from the PTB-XL dataset were downloaded. Each ECG was also plotted into an image. Fine-tuning and evaluation: A hold-out approach was used with a 60:20:20 training/validation/test set split. The encoder portions of the U-Net models were fine-tuned to classify PTB-XL ECGs for two tasks: sinus rhythm (SR) vs atrial fibrillation (AF), and myocardial infarction (MI) vs normal ECGs. The fine-tuning was repeated without pretraining. Results were compared. Explainable AI: an example pipeline combining AI-derived segmentation masks and a rule-based AF detector was developed and evaluated. RESULTS: WaSP consistently improved model performance on downstream tasks for both ECG signals and images. The difference between non-pretrained models and models pretrained for wave segmentation was particularly marked for ECG image analysis. A selection of segmentation masks are shown. An AF detection algorithm comprising both AI and rule-based components performed less well than end-to-end AI models but its outputs are proposed to be highly explainable. An example output is shown. CONCLUSION: WaSP using synthetic data and labels allows AI models to learn useful features for downstream ECG analysis with real-world data. Segmentation masks provide an intermediate output that may facilitate confidence calibration in the context of end-to-end AI. It is possible to combine AI-derived segmentation masks and rule-based diagnostic classifiers for explainable ECG analysis. Frontiers Media S.A. 2022-03-17 /pmc/articles/PMC8993503/ /pubmed/35399264 http://dx.doi.org/10.3389/fphys.2022.760000 Text en Copyright © 2022 Brisk, Bond, Finlay, McLaughlin, Piadlo and McEneaney. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms. |
spellingShingle | Physiology Brisk, Rob Bond, Raymond R. Finlay, Dewar McLaughlin, James A. D. Piadlo, Alicja J. McEneaney, David J. WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title | WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title_full | WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title_fullStr | WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title_full_unstemmed | WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title_short | WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis |
title_sort | wasp-ecg: a wave segmentation pretraining toolkit for electrocardiogram analysis |
topic | Physiology |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8993503/ https://www.ncbi.nlm.nih.gov/pubmed/35399264 http://dx.doi.org/10.3389/fphys.2022.760000 |
work_keys_str_mv | AT briskrob waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis AT bondraymondr waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis AT finlaydewar waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis AT mclaughlinjamesad waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis AT piadloalicjaj waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis AT mceneaneydavidj waspecgawavesegmentationpretrainingtoolkitforelectrocardiogramanalysis |