A fully-automated paper ECG digitisation algorithm using deep learning.

Journal: Scientific reports
Published Date:

Abstract

There is increasing focus on applying deep learning methods to electrocardiograms (ECGs), with recent studies showing that neural networks (NNs) can predict future heart failure or atrial fibrillation from the ECG alone. However, large numbers of ECGs are needed to train NNs, and many ECGs are currently only in paper format, which are not suitable for NN training. We developed a fully-automated online ECG digitisation tool to convert scanned paper ECGs into digital signals. Using automated horizontal and vertical anchor point detection, the algorithm automatically segments the ECG image into separate images for the 12 leads and a dynamical morphological algorithm is then applied to extract the signal of interest. We then validated the performance of the algorithm on 515 digital ECGs, of which 45 were printed, scanned and redigitised. The automated digitisation tool achieved 99.0% correlation between the digitised signals and the ground truth ECG (n = 515 standard 3-by-4 ECGs) after excluding ECGs with overlap of lead signals. Without exclusion, the performance of average correlation was from 90 to 97% across the leads on all 3-by-4 ECGs. There was a 97% correlation for 12-by-1 and 3-by-1 ECG formats after excluding ECGs with overlap of lead signals. Without exclusion, the average correlation of some leads in 12-by-1 ECGs was 60-70% and the average correlation of 3-by-1 ECGs achieved 80-90%. ECGs that were printed, scanned, and redigitised, our tool achieved 96% correlation with the original signals. We have developed and validated a fully-automated, user-friendly, online ECG digitisation tool. Unlike other available tools, this does not require any manual segmentation of ECG signals. Our tool can facilitate the rapid and automated digitisation of large repositories of paper ECGs to allow them to be used for deep learning projects.

Authors

  • Huiyi Wu
    Imperial College London, National Heart & Lung Institute, London, W12 0NN, UK.
  • Kiran Haresh Kumar Patel
    Imperial College London, National Heart & Lung Institute, London, W12 0NN, UK.
  • Xinyang Li
    National Heart and Lung Institute, Hammersmith Campus, Imperial College London, 72 Du Cane Road, W12 0HS, London, UK.
  • Bowen Zhang
    HUB of Intelligent Neuro-Engineering (HUBIN), Aspire CREATe, DSIS, University College London, London, HA7 4LP, UK.
  • Christoforos Galazis
    Imperial College London, National Heart & Lung Institute, London, W12 0NN, UK.
  • Nikesh Bajaj
    Imperial College London, National Heart & Lung Institute, London, W12 0NN, UK.
  • Arunashis Sau
    National Heart and Lung Institute, Hammersmith Campus, Imperial College London, 72 Du Cane Road, W12 0HS, London, UK.
  • Xili Shi
    Imperial College London, National Heart & Lung Institute, London, W12 0NN, UK.
  • Lin Sun
    College of Computer and Information Engineering, Henan Normal University, Xinxiang, China.
  • Yanda Tao
    CentraleSupélec, Paris, France.
  • Harith Al-Qaysi
    Department of Cardiology, Imperial College Healthcare NHS Trust, London, UK.
  • Lawrence Tarusan
    Department of Cardiology, Imperial College Healthcare NHS Trust, London, UK.
  • Najira Yasmin
    Department of Cardiology, Imperial College Healthcare NHS Trust, London, UK.
  • Natasha Grewal
    Department of Cardiology, Imperial College Healthcare NHS Trust, London, UK.
  • Gaurika Kapoor
    Department of Cardiology, Imperial College Healthcare NHS Trust, London, UK.
  • Jonathan W Waks
    Harvard-Thorndike Electrophysiology Institute, Beth Israel Deaconess Medical Centre, Harvard Medical School, Boston, MA, USA.
  • Daniel B Kramer
    Richard A. and Susan F. Smith Center for Outcomes Research, Division of Cardiology, Beth Israel Deaconess Medical Center, Boston, Massachusetts, United States of America.
  • Nicholas S Peters
    National Heart and Lung Institute, Hammersmith Campus, Imperial College London, 72 Du Cane Road, W12 0HS, London, UK.
  • Fu Siong Ng
    National Heart and Lung Institute, Hammersmith Campus, Imperial College London, 72 Du Cane Road, W12 0HS, London, UK.