Skip to content
Microsystems, Electronics and Acoustics
ISSN 2523-4447 · e‑ISSN 2523-4455 Open Access · CC BY-SA 4.0
Vol. 30 · Issue 2 · 2025 Jun 11, 2025 Electronic Systems and Signals

Siamеse Neural Network’s Models for Cardiac Arrhythmia Classification in the Conditions of Shortage of Training Ecg Signals

AM
Anton Volodymyrovych Mnevets Corresponding Національний технічний університет України «Київський політехнічний інститут імені Ігоря Сікорського» Ukraine
NI
Nataliia Heorhiivna Ivanushkina Національний технічний університет України «Київський політехнічний інститут імені Ігоря Сікорського» Ukraine
Pages325111.1-325111.12 PublishedJun 11, 2025
VOL 30 · ISS 2 · 2025 View issue

Abstract

The article is focused on the development of Siamese neural network models for ECG signals classification that reflect cardiovascular pathologies, including arrhythmias, in the context of a limited amount of training data. The problem of a shortage of training data in machine learning for diagnosing heart disease is associated with a wide variety of pathological states and insufficient information for certain classes in open medical databases. The study aims to develop a complex method based on the combination of high-resolution electrocardiography and vectorcardiography with Siamese neural network architectures and training methods, which makes it possible to improve the accuracy of cardiac arrhythmias classification. The peculiarity of the proposed method, which is based on the ability of Siamese NNs to compare, is to detect and analyse the differences between the ECG signal under study and the generated reference feature vector of signals with pathology, which allows to effectively identify signal changes even for those diseases that are limitedly represented in the training dataset. In addition, to improve the efficiency of training, a method for generating a reference feature vector for pathological signals was developed. This vector is used by the Siamese neural network for comparison. The application of the principal component analysis (PCA) method allowed to extract key features from 100 ECG signals with pathologies, which contributed to the creation of a reference feature vector with a minimum number of training samples. Additionally, for each input ECG signal and reference feature vector, an average cardiac cycle was calculated, which helped to identify low-amplitude ECG components and features of the QRS complex. To implement the developed complex method, the PTB-XL database was used, which contains 12-channel ECG records classified into 70 disease categories. To reduce the impact of data imbalance, augmentation methods, as well as preprocessing methods were used to remove noisy signals and selectively reduce overrepresented classes. Two models of Siamese neural networks (NN) were developed as part of the study. The first model is focused on detecting low-amplitude pathological components of ECG signals, in particular, late atrial and ventricular potentials. The second model is designed to classify 18 types of arrhythmias and 19 associated pathologies, such as coronary heart disease, hypertrophy, and myocardial infarction. The effectiveness of the proposed NN specialised ECGnet network models was evaluated by comparing them with the specialised ECGnet network in the task of recognising late atrial and ventricular potentials. The first model exceeded the accuracy of ECGnet by an average of 10% and reduced the probability of false negative predictions. The second NN model for multi-class classification, which covered 37 diagnostic classes with rare diseases with less than 200 observations, exceeded the average accuracy of ECGnet by 10%, reaching a maximum increase of 28%. The obtained results allow to outline further ways to improve the complex method. In particular, improving the accuracy of ECG signal classification with pathologies is possible by using additional transformations of input features and methods of amplifying low-amplitude signal components.

Keywords

References

  1. D. K. Shreyas, N. J. Srivatsa, K. H. Vishwas, V. Vishaka, and C. S. Kaliprasad, “A Review on Neural Networks and its Applications”, Journal of Computer Technology & Applications, Jan. 2023. DOI: 10.37591/jocta.v14i2.1062
  2. C. F. G. D. Santos and J. P. Papa, “Avoiding Overfitting: A Survey on Regularization Methods for Convolutional Neural Networks”, ACM Computing Surveys, vol. 54, no. 10s, pp. 1–25, Jan. 2022. DOI: 10.1145/3510413.
  3. R. Smisek, A. Nemcova, L. Marsanova, L. Smital, M. Vítek, and J. Kozumplik, “Cardiac Pathologies Detection and Classification in 12-lead ECG”, in 2020 Computing in Cardiology Conference, 2020. DOI: 10.22489/CinC.2020.171.
  4. M. Alhaskir, “ECG Matching: An Approach to Synchronize ECG Datasets for Data Quality Comparisons”, in German Medical Data Sciences 2023 – Science. Close to People.: Proceedings of the 68th Annual Meeting of the German Association of Medical Informatics, Biometry, and Epidemiology e.V. (gmds) 2023 in Heilbronn, Germany, IOS Press, 2023. URL: https://ebooks.iospress.nl/doi/10.3233/SHTI230718 .
  5. C. Li, “DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routing”, Proceedings of the AAAI Conference on Artificial Intelligence, vol. 38, no. 16, pp. 18490–18498, Mar. 2024. DOI: 10.1609/aaai.v38i16.29810.
  6. M. Al-Shedivat, L. Li, E. Xing, and A. Talwalkar, 01-Jan.-2021. DOI: 10.48550/arXiv.2102.00127.
  7. S. Narayanaswamy, “High resolution electrocardiography”., Indian Pacing Electrophysiol J, vol. 2, no. 2, pp. 50–56, Apr. 2002. PMID: 17006557.
  8. Q. Chen, S. Kastratovic, M. Eid, and S. Ha, “A Non-Contact Compact Portable ECG Monitoring System”, Electronics, vol. 10, no. 18, p. 2279, Sep. 2021. DOI: 10.3390/electronics10182279.
  9. J. A. AYENI, “Convolutional Neural Network (CNN): The architecture and applications”, Applied Journal of Physical Science, vol. 4, no. 4, pp. 42–50, Dec. 2022. DOI: 10.31248/AJPS2022.085.
  10. I. D. Mienye, T. G. Swart, and G. Obaido, “Recurrent Neural Networks: A Comprehensive Review of Architectures, Variants, and Applications”, Information, vol. 15, no. 9, p. 517, Aug. 2024. DOI: 10.3390/info15090517.
  11. I. Amaya-Rodriguez, “ResNet”, in Computer-Aided Analysis of Gastrointestinal Videos, Cham: Springer International Publishing, 2021, pp. 99–114. URL: https://link.springer.com/10.1007/978-3-030-64340-9_12 .
  12. J. Cai, W. Sun, J. Guan, and I. You, “Multi-ECGNet for ECG Arrythmia Multi-Label Classification”, IEEE Access, vol. 8, pp. 110848–110858, Jan. 2020. DOI: 10.1109/ACCESS.2020.3001284.
  13. P. Behrouzi, B. Shirkani, and M. Hazratifard, “Using ECG Signals in Siamese Networks for Authentication in Digital Healthcare Systems”, Journal of Biomedical Research & Environmental Sciences, vol. 3, no. 12, pp. 1367–1373, Nov. 2022. DOI: 10.37871/jbres1605.
  14. T. Schlagenhauf, Y. Lin, and B. Noack, “Discriminative feature learning through feature distance loss”, Machine Vision and Applications, vol. 34, no. 2, Feb. 2023. DOI: 10.1007/s00138-023-01379-1.
  15. M. M. Al Rahhal, Y. Bazi, M. Al Zuair, E. Othman, and B. BenJdira, “Convolutional Neural Networks for Electrocardiogram Classification”, Journal of Medical and Biological Engineering, vol. 38, no. 6, pp. 1014–1025, Mar. 2018. DOI: 10.1007/s40846-018-0389-7.
  16. P. Wagner, “PTB-XL, a large publicly available electrocardiography dataset”, Scientific Data, vol. 7, no. 1, May 2020. DOI: 10.1038/s41597-020-0495-6.
  17. S. Khurshid, “Frequency of Cardiac Rhythm Abnormalities in a Half Million Adults”, Circulation: Arrhythmia and Electrophysiology, vol. 11, no. 7, Jul. 2018. DOI: 10.1161/CIRCEP.118.006273.
  18. X. Fagan, K. Ivanko, and N. Ivanushkina, “Detection of Ventricular Late Potentials in Electrocardiograms Using Machine Learning”, in Advances in Computer Science for Engineering and Education III, Cham: Springer International Publishing, 2020, pp. 487–497. DOI: 10.1007/978-3-030-55506-1_44
  19. M. M. Rahman, M. W. Rivolta, F. Badilini, and R. Sassi, “A Systematic Survey of Data Augmentation of ECG Signals for AI Applications”, Sensors, vol. 23, no. 11, p. 5237, May 2023. DOI: 10.3390/s23115237.
  20. N. Ivanushkina and A. Mnevets, “Detection of Erroneously Selected Cardiac Cycles Using Neural Networks”, in 2024 IEEE 42nd International Conference on Electronics and Nanotechnology (ELNANO), Kyiv, Ukraine, 2024, pp. 406–411. DOI: 10.1109/ELNANO63394.2024.10756903.
  21. A. Doboli and E. H. Currie, “Analog and Digital Filters”, in Introduction to Mixed-Signal, Embedded Design, New York, NY: Springer New York, 2010, pp. 325–371. URL: http://link.springer.com/10.1007/978-1-4419-7446-4_8 .
  22. M. Krichane, “Zero Phase Filtering for Active Compensation of Periodic Physiological Motion”, in The First IEEE/RAS-EMBS International Conference on Biomedical Robotics and Biomechatronics, 2006. BioRob 2006., Pisa, Italy, 2006, pp. 182–187. DOI: 10.1109/BIOROB.2006.1639081.
  23. S. Man, A. C. Maan, M. J. Schalij, and C. A. Swenne, “Vectorcardiographic diagnostic & prognostic information derived from the 12‐lead electrocardiogram: Historical review and clinical perspective”, Journal of Electrocardiology, vol. 48, no. 4, pp. 463–475, Jul. 2015. DOI: 10.1016/j.jelectrocard.2015.05.002.
  24. S. Maheshwari, A. Acharyya, M. Schiariti, and P. E. Puddu, “Frank vectorcardiographic system from standard 12 lead ECG: An effort to enhance cardiovascular diagnosis”, Journal of Electrocardiology, vol. 49, no. 2, pp. 231–242, Mar. 2016. DOI: 10.1016/j.jelectrocard.2015.12.008.
  25. R. Jaros, R. Martinek, and L. Danys, “Comparison of Different Electrocardiography with Vectorcardiography Transformations”, Sensors, vol. 19, no. 14, p. 3072, Jul. 2019. DOI: 10.3390/s19143072.
  26. J. Vondrak and M. Penhaker, “Review of Processing Pathological Vectorcardiographic Records for the Detection of Heart Disease”, Frontiers in Physiology, vol. 13, Mar. 2022. DOI: 10.3389/fphys.2022.856590.
  27. M. Yang, “Normalizing Electrocardiograms of Both Healthy Persons and Cardiovascular Disease Patients for Biometric Authentication”, PLoS ONE, vol. 8, no. 8, p. e71523, Aug. 2013. DOI: 10.1371/journal.pone.0071523.
  28. E. J. Berbari and P. Lander, “The methods of recording and analysis of the signal averaged ECG”, in Signal Averaged Electrocardiography, Dordrecht: Springer Netherlands, 1993, pp. 49–68. URL: http://link.springer.com/10.1007/978-94-011-0894-2_4 .
  29. F. Castells, P. Laguna, L. Sörnmo, A. Bollmann, and J. M. Roig, “Principal Component Analysis in ECG Signal Processing”, EURASIP Journal on Advances in Signal Processing, vol. 2007, no. 1, Feb. 2007. DOI: 10.1155/2007/74580.
§ 06 — Related

Similar articles in this journal

Related peer-reviewed studies published in this journal.
View all issues

Quasistatic Identification of The Shading Structure of Solar Panels by The Method of Cardinal Number Vectors

PhD, Assoc. Prof. Olena Olehivna Abakumova, Dr.Sc.(Eng.), Prof. Valerii Yakovych Zhuikov, Mykola O. Lukianov

In the article the problem of identification the shading structure of solar panels is considered. The relevance of the study is conditioned by the necessity of rapid and…

#solar panels #photovoltaic surface #shadow structure modeling #quasistatic identification
p. 362283.1-362283.7
10.20535/2523-4455.mea.362283

Simulation Modeling of a Filter-Compensating Converter for a Three-Phase Three-Wire Network

Ivan Andriiovych Vakulenko, PhD, Assoc. Prof. Dmytro Anatoliiovych Mykolaiets, PhD, Assoc. Prof. Kateryna Serhiivna Klen

This paper addresses the critical issue of power quality degradation in modern power systems caused by the proliferation of non-linear loads. The study focuses on the…

#filter-compensating converter #three-phase three-wire network #power quality #total harmonic distortion
p. 361138.1-361138.6
10.20535/2523-4455.mea.361138

A A Complex Method for Non-invasive Fetal Electrocardiogram Signal Extraction and Cardiac Arrhythmia Classification

Dmytro A. Shevchuk, PhD, Assoc. Prof. Nataliia Heorhiivna Ivanushkina

This study is devoted to the development of a complex method for extracting the fetal electrocardiogram (fECG) from non-invasive abdominal recordings and for the…

#abdominal electrocardiogram #fetal electrocardiogram #arrhythmia #blind source separation
p. 356487.1-356487.11
10.20535/2523-4455.mea.356487

Most read articles by the same author(s)

Similar Articles

1-10 of 25

You may also start an advanced similarity search for this article.