Single-Lead ECG Images Processing and Classification using Machine Learning

Authors

  • Roman Melnyk
  • Tetyana Korotyeyeva
  • Roman Kutelmakh

DOI:

https://doi.org/10.47839/ijc.25.3.4848

Keywords:

ECG signal, abnormality, base line, depression, elevation, probability/coordinates histogram, clustering, subtraction, comparison, classification, Machine Learning

Abstract

This work presents an approach to processing single-channel ECG images cropped from a 12-lead protocol recorded by a cardiograph. The paper presents an approach to ECG analysis by working on the printed signals generated by the electrocardiograph. The classic approaches use the signals themselves, not the printed signals. The ECG image processing includes algorithms such as thresholding, thinning, flood filling, clustering, subtraction, and others.  After noise and background removal, the ECG image is converted to binary, with only black and light yellow. This helps determine a baseline for partitioning a signal into two parts: upper and lower. The goal of processing is to identify the time intervals and geometric regions that distinguish, recognize, and classify ECG graphs. Image processing algorithms determine the heart rate and rhythm regularity, as well as depressions and elevations in the signal period. The extracted data are used for training and testing a known neural network for classifying ECG signals.

References

A. Gacek, W. Predrycz, ECG Signal Processing, Classification and Interpretation. A Comprehensive Framework of Computational Intelligence. Springer-London, Dordrecht, Heidelberg, New York, 1st edition, 2012, 279 p. e-ISBN: 978-0-85729-868-3.

R. Rajni, I. Kaur, “Electrocardiogram signal analysis-an overview,” International Journal of Computer Applications, vol. 84, issue 7, pp. 22-25, 2013. https://doi.org/10.5120/14590-2826.

T. Anbalagan, M. K. Nath, D. Vijayalakshmi, A. Anbalagan, “Analysis of various techniques for ECG signal in healthcare, past, present, and future,” Biomedical Engineering Advances, vol. 6, 100089, 2023. https://doi.org/10.1016/j.bea.2023.100089.

S. H. Abd, M. Ghanim, “ECG feature extraction and classification using robust technique for critical cardiac cases,” AIP Conf. Proc., vol. 3219, issue 1, 020113, 2024. The 5th Int. Conf. on Buildings, Construction, and Environmental Engineering, 23 November 2023, Amman, Jordan. https://doi.org/10.1063/5.0236830.

R. K. Kapila Vani, B. Sowmya, S. R. Senthil Kumar, G. N. K. Suresh Babu, R. Reena, “An adaptive fuzzy neuro inference system for classification of ECG Cardiac Arrthymias,” AIP Conf. Proc., vol. 2393, issue 1, 020137, 2022. Int. Conf. of Recent Trends in Science and Engineering, 27–28 February, 2021, Krishnagiri, India. https://doi.org/10.1063/5.0079821.

A. Salimi, S. V. Kalmady, A. Hindle, O. Zaiane, P. Kaul, “Exploring best practices for ECG signal processing in machine learning,” arXiv:2311.04229, 2 Nov., 2023, https://doi.org/10.48550/arXiv.2311.04229.

T. F. Romdhane, R. Ouni, M. Atri, “Multidatabase ECG signal processing,” Proceedings of the 5th International Conference on Advanced Technologies for Signal and Image Processing (ATSIP), 20 October 2020, Sousse, Tunisia. https://doi.org/10.1109/ATSIP49331.2020.9231880.

J. Parak, J. Havlik, “Frequency detection methods,” pp. 1-6, 2011. Available at: https://humusoft.cz/docs/papers/tcp2011/091_parak.pdf.

Zia-ul-Haque, R. Qureshi, M. Nawaz, F. Y. Khuhawar, N. Tunio, M. Uzair, “Analysis of ECG signal processing and filtering algorithms,” International Journal of Advanced Computer Science and Applications, vol. 10, no. 3, 2019. https://doi.org/10.14569/IJACSA.2019.0100370.

A. K. Singh, S. Krishnan, “ECG signal feature extraction trends in methods and applications,” BioMedical Engineering OnLine, vol. 22, 2023, https://doi.org/10.1186/s12938-023-01075-1.

A. H. Ribeiro, M. H. Ribeiro, G. M. M. Paixao, D. M. Oliveira, P. R. Gomes, J. A. Canazart, M. P. S. Ferreira, C. R. Andersson, P. W. Macfarlane, W. Meira Jr, et al., “Automatic diagnosis of the 12-lead ECG using a deep neural network,” Nature Communications, vol. 11, no. 1, pp. 1–9, 2020. https://doi.org/10.1038/s41467-020-15432-4.

A. Natarajan, Y. Chang, S. Mariani, A. Rahman, G. Boverman, S. Vij, and J. Rubin, “A wide and deep transformer neural network for 12-lead ECG classification,” Computing in Cardiology, vol. 47, pp. 1–4, 2020. https://doi.org/10.22489/CinC.2020.107.

M. P Oppelt, M. Riehl, F. P. Kemeth, and J. Steffan, “Combining scatter transform and deep neural networks for multilabel electrocardiogram signal classification,” Computing in Cardiology, vol. 47, pp. 1–4, 2020. ttps://doi.org/10.22489/CinC.2020.133.

E. A. Perez Alday, A. Gu, A. J. Shah, C. Robichaux, A. K. I. Wong, C. Liu, F. Liu, A. B. Rad, A. Elola, S. Seyedi, et al., “Classification of 12-lead ECGs: the PhysioNet,” Computing in Cardiology Challenge, 2020, Preprint, August 2020, https://doi.org/10.1101/2020.08.11.20172601.

N. Strodthoff, P. Wagner, T. Schaeffter, and W. Samek, “Deep learning for ECG analysis: Benchmarks and insights from PTB-Xl,” IEEE Journal of Biomedical and Health Informatics, vol. 25, no. 5, pp. 1519–1528, 2021. https://doi.org/10.1109/JBHI.2020.3022989.

M. A. Reyna, N. Sadr, E. A. Perez Alday, A. Gu, A. J. Shah, C. Robichaux, A. B. Rad, A. Elola, S. Seyedi, S. Ansari, et al., “Issues in the automated classification of multilead ECGs using heterogeneous labels and populations,” Physiological Measurement, vol. 43, issue 8, 2022. https://doi.org/10.1088/1361-6579/ac79fd.

A. Benhamida, M. Kozlovszky, “A novel algorithm for automated human single-lead ECG pre-annotation and beat-to-beat separation for heartbeat classification using autoencoders,” Electronics, vol. 11, issue 23, 4021, 2022. https://doi.org/10.3390/electronics11234021.

S. G. Begum, E. Priyadarshi, S. Pratap, S. Kulshrestha, V. Singh, “Automated detection of abnormalities in ECG signals using deep neural network,” Biomedical Engineering Advances, vol. 5, 100066, 2023. https://doi.org/10.1016/j.bea.2022.100066.

AI that reads ECGs in seconds. [Online]. Available at: https://www.powerfulmedical.com/pmcardio-individuals.

Dr. Tom Leach, “ECG Abnormalities,” [Online]. Available at: https://almostadoctor.co.uk/encyclopedia/ecg-abnormalities.

V. Gancheva, “Parallel computational approach for image filtering,” WSEAS Transactions on Signal Processing, vol. 21, pp. 131-141, 2025. https://doi.org/10.37394/232014.2025.21.15.

C. Lastre-Dominguez, V. Jimenez-Ramos, H. Azcaray-Rivera, E. Perez-Campos, J. Munoz–Minjares, Y. Shmaliy, “Denoising ECG signals using weighted iterative UFIR filtering,” WSEAS Transactions on Signal Processing, vol. 19, pp. 148-157, 2023. https://doi.org/10.37394/232014.2023.19.16.

R. Melnyk, T. Korotyeyeva, & Y. Levus, “Chains defects detection in a printed circuit board image by the plane partition and flood-filling of traces,” International Journal of Computing, vol.22, issue 2, pp. 35-42, 2023. https://doi.org/10.47839/ijc.22.1.2877.

An end-to-end platform for machine learning, [Online]. Available at: https://www.tensorflow.org/.

Machine Learning in JavaScript, [Online]. Available at: https://www.w3schools.com/ai/ai_whatis.asp.

Downloads

Published

2026-09-30

How to Cite

Melnyk, R., Korotyeyeva, T., & Kutelmakh, R. (2026). Single-Lead ECG Images Processing and Classification using Machine Learning. International Journal of Computing, 25(3), 503 510. https://doi.org/10.47839/ijc.25.3.4848

Issue

Section

Articles