Cargando…
Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm
BACKGROUND: With the ongoing, rapid advances in Deep Learning (DL), such solutions can now detect medical conditions even invisible to the human eye. In this direction, efforts have been made to develop DL algorithms that diagnose paroxysmal atrial fibrillation (PAF) from electrocardiogram (ECG) sig...
Autores principales: | , , , , , , , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Oxford University Press
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9779760/ http://dx.doi.org/10.1093/ehjdh/ztac076.2781 |
_version_ | 1784856688635936768 |
---|---|
author | Pantelidis, P Oikonomou, E Lampsas, S Souvaliotis, N Spartalis, M Vavuranakis, M A Bampa, M Papapetrou, P Siasos, G Vavuranakis, M |
author_facet | Pantelidis, P Oikonomou, E Lampsas, S Souvaliotis, N Spartalis, M Vavuranakis, M A Bampa, M Papapetrou, P Siasos, G Vavuranakis, M |
author_sort | Pantelidis, P |
collection | PubMed |
description | BACKGROUND: With the ongoing, rapid advances in Deep Learning (DL), such solutions can now detect medical conditions even invisible to the human eye. In this direction, efforts have been made to develop DL algorithms that diagnose paroxysmal atrial fibrillation (PAF) from electrocardiogram (ECG) signals in sinus rhythm (SR). However, many of the available approaches function as “black boxes”, with physicians unable to understand and trust their predictions. PURPOSE: To train a DL model to detect PAF patients while in SR and apply an algorithm that interprets and visualises its decisions. METHODS: We obtained ECG samples from PAF and non-PAF patients during SR, from the PAF Prediction Challenge Database. After discarding unannotated samples and augmenting the sample size (by dividing each signal into 30-second segments), we split the whole dataset into a train (68%), a validation (16%) and a test (16%) set. No pair of samples belonging to different sets originated from the same patient. We trained the InceptionTime neural network on the train/validation sets and tested on the “unseen” test set after “hiding” the correct answers. Its performance was evaluated with the following metrics: Accuracy, f1-score, precision and recall (sensitivity). After repeating this process 20 times, we obtained a distribution for each score. Finally, we adjusted the Grad-CAM interpretation algorithm to our data and used it to visualise the areas perceived as important by the model. RESULTS: After pre-processing, 4,080, 30-second, two-lead ECG signals were allocated to the train set, 960 to the validation and 960 to the test set. Each subset contained an equal number of PAF and non-PAF samples. After repeated training and testing, we obtained a median accuracy of 0.84 (interquartile range, IQR: 0.66–0.88), an f1-score of 0.82 (IQR: 0.68–0.88) and a median precision and recall equal to 0.93 (IQR: 0.67–0.99) and 0.77 (IQR: 0.68–0.93), respectively. The Grad-CAM technique highlighted the ECG areas of interest that led to each decision. We selected and present both PAF-positive and -negative samples, perceived either correctly or falsely. Interestingly, correct model decisions tend to focus on the P-wave, while false ones fixate on other regions. CONCLUSIONS: Although a pilot study with considerable limitations (small sample size, disregard of possible confounding due to comorbidities or other factors), this work shows how DL can be employed to distinguish between PAF and non-PAF patients from SR ECG samples, and confirms the potential of DL-enabled approaches to offer novel diagnostic capabilities. Most importantly, our effort provides a comprehensible, visual interpretation of the model's decisions. Demystifying DL behaviour can, not only improve such efforts by explaining false decisions, but also cultivate trust among clinicians and, possibly, point out directions for future research, since we can now see through the magnifying lens of a neural network. FUNDING ACKNOWLEDGEMENT: Type of funding sources: None. |
format | Online Article Text |
id | pubmed-9779760 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Oxford University Press |
record_format | MEDLINE/PubMed |
spelling | pubmed-97797602023-01-27 Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm Pantelidis, P Oikonomou, E Lampsas, S Souvaliotis, N Spartalis, M Vavuranakis, M A Bampa, M Papapetrou, P Siasos, G Vavuranakis, M Eur Heart J Digit Health Abstracts BACKGROUND: With the ongoing, rapid advances in Deep Learning (DL), such solutions can now detect medical conditions even invisible to the human eye. In this direction, efforts have been made to develop DL algorithms that diagnose paroxysmal atrial fibrillation (PAF) from electrocardiogram (ECG) signals in sinus rhythm (SR). However, many of the available approaches function as “black boxes”, with physicians unable to understand and trust their predictions. PURPOSE: To train a DL model to detect PAF patients while in SR and apply an algorithm that interprets and visualises its decisions. METHODS: We obtained ECG samples from PAF and non-PAF patients during SR, from the PAF Prediction Challenge Database. After discarding unannotated samples and augmenting the sample size (by dividing each signal into 30-second segments), we split the whole dataset into a train (68%), a validation (16%) and a test (16%) set. No pair of samples belonging to different sets originated from the same patient. We trained the InceptionTime neural network on the train/validation sets and tested on the “unseen” test set after “hiding” the correct answers. Its performance was evaluated with the following metrics: Accuracy, f1-score, precision and recall (sensitivity). After repeating this process 20 times, we obtained a distribution for each score. Finally, we adjusted the Grad-CAM interpretation algorithm to our data and used it to visualise the areas perceived as important by the model. RESULTS: After pre-processing, 4,080, 30-second, two-lead ECG signals were allocated to the train set, 960 to the validation and 960 to the test set. Each subset contained an equal number of PAF and non-PAF samples. After repeated training and testing, we obtained a median accuracy of 0.84 (interquartile range, IQR: 0.66–0.88), an f1-score of 0.82 (IQR: 0.68–0.88) and a median precision and recall equal to 0.93 (IQR: 0.67–0.99) and 0.77 (IQR: 0.68–0.93), respectively. The Grad-CAM technique highlighted the ECG areas of interest that led to each decision. We selected and present both PAF-positive and -negative samples, perceived either correctly or falsely. Interestingly, correct model decisions tend to focus on the P-wave, while false ones fixate on other regions. CONCLUSIONS: Although a pilot study with considerable limitations (small sample size, disregard of possible confounding due to comorbidities or other factors), this work shows how DL can be employed to distinguish between PAF and non-PAF patients from SR ECG samples, and confirms the potential of DL-enabled approaches to offer novel diagnostic capabilities. Most importantly, our effort provides a comprehensible, visual interpretation of the model's decisions. Demystifying DL behaviour can, not only improve such efforts by explaining false decisions, but also cultivate trust among clinicians and, possibly, point out directions for future research, since we can now see through the magnifying lens of a neural network. FUNDING ACKNOWLEDGEMENT: Type of funding sources: None. Oxford University Press 2022-12-22 /pmc/articles/PMC9779760/ http://dx.doi.org/10.1093/ehjdh/ztac076.2781 Text en Reproduced from: European Heart Journal, Volume 43, Issue Supplement_2, October 2022, ehac544.2781, https://doi.org/10.1093/eurheartj/ehac544.2781 by permission of Oxford University Press on behalf of the European Society of Cardiology. The opinions expressed in the Journal item reproduced as this reprint are those of the authors and contributors, and do not necessarily reflect those of the European Society of Cardiology, the editors, the editorial board, Oxford University Press or the organization to which the authors are affiliated. The mention of trade names, commercial products or organizations, and the inclusion of advertisements in this reprint do not imply endorsement by the Journal, the editors, the editorial board, Oxford University Press or the organization to which the authors are affiliated. The editors and publishers have taken all reasonable precautions to verify drug names and doses, the results of experimental work and clinical findings published in the Journal. The ultimate responsibility for the use and dosage of drugs mentioned in this reprint and in interpretation of published material lies with the medical practitioner, and the editors and publisher cannot accept liability for damages arising from any error or omissions in the Journal or in this reprint. Please inform the editors of any errors. © The Author(s) 2022. https://creativecommons.org/licenses/by-nc/4.0/This is an Open Access article distributed under the terms of the Creative Commons Attribution Non-Commercial License (https://creativecommons.org/licenses/by-nc/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original work is properly cited. For commercial re-use, please contact journals.permissions@oup.com |
spellingShingle | Abstracts Pantelidis, P Oikonomou, E Lampsas, S Souvaliotis, N Spartalis, M Vavuranakis, M A Bampa, M Papapetrou, P Siasos, G Vavuranakis, M Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title | Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title_full | Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title_fullStr | Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title_full_unstemmed | Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title_short | Inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
title_sort | inside the “brain” of an artificial neural network: an interpretable deep learning approach to paroxysmal atrial fibrillation diagnosis from electrocardiogram signals during sinus rhythm |
topic | Abstracts |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9779760/ http://dx.doi.org/10.1093/ehjdh/ztac076.2781 |
work_keys_str_mv | AT pantelidisp insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT oikonomoue insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT lampsass insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT souvaliotisn insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT spartalism insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT vavuranakisma insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT bampam insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT papapetroup insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT siasosg insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm AT vavuranakism insidethebrainofanartificialneuralnetworkaninterpretabledeeplearningapproachtoparoxysmalatrialfibrillationdiagnosisfromelectrocardiogramsignalsduringsinusrhythm |