Keywords: electrocardiogram, spatial dependencies, generative models, interpretability, physiological modeling, synthetic ECG data, machine learning in cardiology
Mathematical model of a 12-lead electrocardiograms accounting for spatial dependencies
UDC 519.673
DOI: 10.26102/2310-6018/2025.51.4.012
This article presents an innovative mathematical model for generating 12-lead electrocardiograms (ECG), based on a fundamentally novel approach to accounting for spatial dependencies between leads. The primary scientific contribution of this research lies in the development of a method utilizing linear transformation of a set of physiologically grounded basis signals representing projections of the heart's electric field, supplemented with correlated noise that accurately simulates real clinical interference. Unlike traditional generative models (VAE, GAN, Diffecg), which operate as "black boxes", the proposed model enables explicit control over the morphology of key waveforms (P, QRS, T) and strict adherence to physiological constraints, including Kirchhoff's laws for limb leads. This ensures anatomical consistency of signals across all 12 leads, an achievement not previously attained in similar studies. The model demonstrated high performance on the PhysioNet PTB-XL dataset: MSE = 0.015, cosine similarity = 0.94, F1-score = 0.88 for normal rhythms and 0.82 for arrhythmias. A significant advantage of the model is its computational efficiency (generation time 50 ms) and relatively low memory requirements (2.5 GB). Comparative analysis with contemporary generative models (VAE, GAN, CardioDiff) revealed the superiority of the proposed approach in interpretability, parameter control, and physiological authenticity of synthesized signals. The developed model opens new possibilities for creating high-quality synthetic ECG data essential for training AI-based medical diagnostic systems, as well as for applications in telemedicine and medical education. The integration of physical modeling with machine learning presents particular value for researchers and clinicians requiring interpretable and clinically reliable ECG generation tools.
1. Franzone P.C., Pavarino L.F., Scacchi S. Mathematical Cardiac Electrophysiology. Cham: Springer; 2014. 397 p. https://doi.org/10.1007/978-3-319-04801-7
2. Azuaje F., Clifford G., McSharry P. Advanced Methods and Tools for ECG Data Analysis. Boston, London: Artech House Publishers; 2006. 384 p.
3. Henriquez C.S. Simulating the Electrical Behavior of Cardiac Tissue Using the Bidomain Model. Critical Reviews in Biomedical Engineering. 1993;21(1):1–77.
4. Jæger K.H., Tveito A. Deriving the Bidomain Model of Cardiac Electrophysiology from a Cell-Based Model; Properties and Comparisons. Frontiers in Physiology. 2022;12. https://doi.org/10.3389/fphys.2021.811029
5. Ebrahimi Z., Loni M., Daneshtalab M., Gharehbaghi A. A Review on Deep Learning Methods for ECG Arrhythmia Classification. Expert Systems with Applications: X. 2020;7. https://doi.org/10.1016/j.eswax.2020.100033
6. Do E., Boynton J., Lee B.S., Lustgarten D. Data Augmentation for 12-Lead ECG Beat Classification. SN Computer Science. 2021;3(1). https://doi.org/10.1007/s42979-021-00924-x
7. Chen Sh., Meng Zh., Zhao Q. Electrocardiogram Recognization Based on Variational AutoEncoder. In: Machine Learning and Biometrics. 2018. https://doi.org/10.5772/intechopen.76434
8. Nishikimi R., Nakano M., Kashino K., Tsukada Sh. Variational Autoencoder-Based Neural Electrocardiogram Synthesis Trained by FEM-Based Heart Simulator. Cardiovascular Digital Health Journal. 2024;5(1):19–28. https://doi.org/10.1016/j.cvdhj.2023.12.002
9. Berger L., Haberbusch M., Moscato F. Generative Adversarial Networks in Electrocardiogram Synthesis: Recent Developments and Challenges. Artificial Intelligence in Medicine. 2023;143. https://doi.org/10.1016/j.artmed.2023.102632
10. Neifar N., Ben-Hamadou A., Mdhaffar A., Jmaiel M. DiffECG: A Versatile Probabilistic Diffusion Model for ECG Signals Synthesis. In: 2024 IEEE/ACIS 22nd International Conference on Software Engineering Research, Management and Applications (SERA), 30 May – 01 June 2024, Honolulu, HI, USA. IEEE; 2024. P. 182–188. https://doi.org/10.1109/SERA61261.2024.10685651
11. Adib E., Fernandez A.S., Afghah F., Prevost J.J. Synthetic ECG Signal Generation Using Probabilistic Diffusion Models. IEEE Access. 2023;11:75818–75828. https://doi.org/10.1109/ACCESS.2023.3296542
12. Zhang Yu-H., Babaeizadeh S. Synthesis of Standard 12-Lead Electrocardiograms Using Two-Dimensional Generative Adversarial Networks. Journal of Electrocardiology. 2021;69:6–14. https://doi.org/10.1016/j.jelectrocard.2021.08.019
13. Zhu F., Ye F., Fu Yu., Liu Q., Shen B. Electrocardiogram Generation with a Bidirectional LSTM-CNN Generative Adversarial Network. Scientific Reports. 2019;9. https://doi.org/10.1038/s41598-019-42516-z
14. Ribeiro A.H., Ribeiro M.H., Paixão G.M.M., et al. Automatic Diagnosis of the 12-Lead ECG Using a Deep Neural Network. Nature Communications. 2020;11. https://doi.org/10.1038/s41467-020-15432-4
15. Wagner P., Strodthoff N., Bousseljot R.-D., et al. PTB-XL, a Large Publicly Available Electrocardiography Dataset. Scientific Data. 2020;7. https://doi.org/10.1038/s41597-020-0495-6
16. Mayourian J., Sobie E.A., Costa K.D. An Introduction to Computational Modeling of Cardiac Electrophysiology and Arrhythmogenicity. In: Experimental Models of Cardiovascular Diseases: Methods and Protocols. New York: Humana; 2018. P. 17–35. https://doi.org/10.1007/978-1-4939-8597-5_2
Keywords: electrocardiogram, spatial dependencies, generative models, interpretability, physiological modeling, synthetic ECG data, machine learning in cardiology
For citation: Shchetinin E.Y. Mathematical model of a 12-lead electrocardiograms accounting for spatial dependencies. Modeling, Optimization and Information Technology. 2025;13(4). URL: https://moitvivt.ru/ru/journal/pdf?id=2054 DOI: 10.26102/2310-6018/2025.51.4.012 (In Russ).
Received 22.08.2025
Revised 18.09.2025
Accepted 27.09.2025