High Precision Digitization of Paper-Based ECG Records: A Step Toward Machine Learning

Introduction: The electrocardiogram (ECG) plays an important role in the diagnosis of heart diseases. However, most patterns of diseases are based on old datasets and stepwise algorithms that provide limited accuracy. Improving diagnostic accuracy of the ECG can be done by applying machine learning algorithms. This requires taking existing scanned or printed ECGs of old cohorts and transforming the ECG signal to the raw digital (time (milliseconds), voltage (millivolts)) form. Objectives: We present a MATLAB-based tool and algorithm that converts a printed or scanned format of the ECG into a digitized ECG signal. Methods: 30 ECG scanned curves are utilized in our study. An image processing method is first implemented for detecting the ECG regions of interest and extracting the ECG signals. It is followed by serial steps that digitize and validate the results. Results: The validation demonstrates very high correlation values of several standard ECG parameters: PR interval 0.984 +/−0.021 (p-value < 0.001), QRS interval 1+/− SD (p-value < 0.001), QT interval 0.981 +/− 0.023 p-value < 0.001, and RR interval 1 +/− 0.001 p-value < 0.001. Conclusion: Digitized ECG signals from existing paper or scanned ECGs can be obtained with more than 95% of precision. This makes it possible to utilize historic ECG signals in machine learning algorithms to identify patterns of heart diseases and aid in the diagnostic and prognostic evaluation of patients with cardiovascular disease.

[1]  S. Salerno,et al.  Training and Competency Evaluation for Interpretation of 12-Lead Electrocardiograms: Recommendations from the American College of Physicians* , 2003, Annals of Internal Medicine.

[2]  Elsayed Z Soliman,et al.  Digitizing paper electrocardiograms: Status and challenges. , 2017, Journal of Electrocardiology.

[3]  Barry R. Masters,et al.  Digital Image Processing, Third Edition , 2009 .

[4]  Lakshminarayan Ravichandran,et al.  Novel Tool for Complete Digitization of Paper Electrocardiography Data , 2013, IEEE Journal of Translational Engineering in Health and Medicine.

[5]  Qiao Li,et al.  AF classification from a short single lead ECG recording: The PhysioNet/computing in cardiology challenge 2017 , 2017, 2017 Computing in Cardiology (CinC).

[6]  Richard O. Duda,et al.  Use of the Hough transformation to detect lines and curves in pictures , 1972, CACM.

[7]  J. Chebil,et al.  A novel method for digitizing standard ECG papers , 2008, 2008 International Conference on Computer and Communication Engineering.

[8]  Srinivasan Jayaraman,et al.  An improved method for digital time series signal generation from scanned ECG records , 2010, 2010 International Conference on Bioinformatics and Biomedical Technology.

[9]  G S Wagner,et al.  Evaluation of the efficacy of hand-held computer screens for cardiologists' interpretations of 12-lead electrocardiograms. , 1999, American heart journal.

[10]  D. Bonderman,et al.  Artificial intelligence in cardiology , 2017, Wiener klinische Wochenschrift.

[11]  Elias Ebrahimzadeh,et al.  Prediction of paroxysmal Atrial Fibrillation: A machine learning based approach using combined feature vector and mixture of expert classification on HRV signal , 2018, Comput. Methods Programs Biomed..

[12]  H. Nazeran,et al.  Digitization and Synchronization Method for Electrocardiogram Printouts , 2005, 2005 IEEE Engineering in Medicine and Biology 27th Annual Conference.

[13]  S Celin,et al.  ECG Signal Classification Using Various Machine Learning Techniques , 2018, Journal of Medical Systems.

[14]  N. Otsu A threshold selection method from gray level histograms , 1979 .

[15]  Charles E. Kahn,et al.  Sensor, Signal, and Imaging Informatics in 2017 , 2018, Yearbook of medical informatics.

[16]  Willis J. Tompkins,et al.  A Real-Time QRS Detection Algorithm , 1985, IEEE Transactions on Biomedical Engineering.

[17]  V. Kumar,et al.  Extracting Samples as Text from ECG Strips for ECG Analysis Purpose , 2012, 2012 Fourth International Conference on Computational Intelligence and Communication Networks.

[18]  Tanju Erdem,et al.  ECGScan: a method for conversion of paper electrocardiographic printouts to digital electrocardiographic files. , 2005, Journal of electrocardiology.

[19]  Emanuele Trucco,et al.  Computer and Robot Vision , 1995 .

[20]  Rupali Patil,et al.  Image digitization of discontinuous and degraded electrocardiogram paper records using an entropy-based bit plane slicing algorithm. , 2018, Journal of electrocardiology.

[21]  K. Pearson NOTES ON THE HISTORY OF CORRELATION , 1920 .

[22]  Tapio Seppänen,et al.  Experiences in digitizing and digitally measuring a paper-based ECG archive. , 2017, Journal of electrocardiology.

[23]  Rajarshi Gupta,et al.  Development of an embedded system and MATLAB-based GUI for online acquisition and analysis of ECG signal , 2010 .

[24]  Seema Sharma,et al.  ECG Paper Records Digitization through Image Processing Techniques , 2012 .

[25]  David Atienza,et al.  A Modular Low-Complexity ECG Delineation Algorithm for Real-Time Embedded Systems , 2018, IEEE Journal of Biomedical and Health Informatics.