High-quality signal processing of an electrocardiogram (ECG) is an urgent problem in present day diagnostics for revealing dangerous signs of cardiovascular diseases and arrhythmias in patients. The used methods and programs of signal analysis and classification work with the arrays of points for mathematical modeling that must be extracted from an image or recording of an electrocardiogram. The aim of this work is developing a method of extracting images of ECG signals into a one-dimensional array. An algorithm is proposed based on sequential color processing operations and improving the image quality, masking and building a one-dimensional array of points using Python tools and libraries with open access. The results of testing samples from the ECG database and comparing images before and after processing show that the signal extraction accuracy is approximately 95 %. In addition, the presented application design is simple and easy to use. The proposed program for analyzing and processing the ECG data has a great potential in the future for the development of more complex software applications for automatic analyzing the data and determining arrhythmias or other pathologies.
1. Bhirud B, Pachghare VK. Arrhythmia Detection Using ECG Signal: A Survey. In Proceeding of the International Conference on Computational Science and Applications, Springer, Singapore; 2020, 329-341.
2. Trayanova NA, Boyle PM, Nikolov PP. Personalized imaging and modeling strategies for arrhythmia prevention and therapy. Current opinion in biomedical engineering 2018; 5: 21-28.
3. Chatha SR, Chahal CAA, Westwood M, Khanji M. Arrhythmia and sarcoidosis: the role of myocardial tissue characterization to guide diagnosis and management. European Heart Journal-Cardiovascular Imaging 2020; 21(3): 344-344. http://dx.doi.org/10.1093/ehjci/jez229.
Financed by the National Centre for Research and Development under grant No. SP/I/1/77065/10 by the strategic scientific research and experimental development program:
SYNAT - “Interdisciplinary System for Interactive Scientific and Scientific-Technical Information”.