Resumen: The present paper proposes an ECG simulator that advances modeling of arrhythmias and noise by introducing time-varying signal characteristics. The simulator is built around a discrete-time Markov chain model for simulating atrial and ventricular arrhythmias of particular relevance when analyzing atrial fibrillation (AF). Each state is associated with statistical information on episode duration and heartbeat characteristics. Statistical, time-varying modeling of muscle noise, motion artifacts, and the influence of respiration is introduced to increase the complexity of simulated ECGs, making the simulator well suited for data augmentation in machine learning. Modeling of how the PQ and QT intervals depend on heart rate is also introduced. The realism of simulated ECGs is assessed by three experienced doctors, showing that simulated ECGs are difficult to distinguish from real ECGs. Simulator usefulness is illustrated in terms of AF detection performance when either simulated or real ECGs are used to train a neural network for signal quality control. The results show that both types of training lead to similar performance. Idioma: Inglés DOI: 10.1109/TBME.2023.3288701 Año: 2023 Publicado en: IEEE Transactions on Biomedical Engineering 70, 12 (2023), 3449 - 3460 ISSN: 0018-9294 Factor impacto JCR: 4.4 (2023) Categ. JCR: ENGINEERING, BIOMEDICAL rank: 36 / 122 = 0.295 (2023) - Q2 - T1 Factor impacto CITESCORE: 9.4 - Biomedical Engineering (Q1)