Related Experiment Video
Updated: Sep 6, 2025

Finite Element Modelling of a Cellular Electric Microenvironment
Published on: May 18, 2021
Interactive Simulation of the ECG: Effects of Cell Types, Distributions, Shapes and Duration
Jorge Ramirez Ortiz1, Abouzar Kaboudian2, Ilija Uzelac2
1College of Arts and Sciences, University of Colorado Boulder, Boulder, CO, USA.
Abstract:
The shape of the ECG depends on the lead positions but also on the distribution and dispersion of different cell types and their action potential (AP) durations and shapes. We present an interactive JavaScript program that allows fast simulations of the ECG by solving and displaying the dynamics of cardiac cells in tissue using a web browser. We use physiologically accurate ODE models of cardiac cells of different types including SA node, right and left atria, AV node, Purkinje, and right and left ventricular cells with dispersion that accounts for apex-to-base and epi-to-endo variations. The software allows for real-time variations for each cell type and their spatial range so as to identify how the shape of the ECG varies as a function of cell type, distribution, excitation duration and AP shape. The propagation of the wave is visualized in real time through all the regions as parameters are kept fixed or varied to modify ECG morphology. The code solves thousands of simulated cells in real time and is independent of operating system, so it can run on PCs, laptops, tablets and cellphones. This program can be used to teach students, fellows and the general public how and why lead positions and the different cell physiology in the heart affect the various features of the ECG.
Related Concept Videos
Electrocardiogram
Three major waveforms are present in a typical ECG recording: the P wave, the QRS complex, and...
ECG Interpretation of Rhythms
Components of the Electrocardiogram
The primary components of a normal ECG waveform in Normal sinus rhythm(NSR) include the P wave, PR interval, QRS complex, ST segment, T wave, and occasionally a U wave.
ECG waveforms are divided by vertical and horizontal lines at standard intervals.
The horizontal axis measures time and rate, and the vertical axis measures amplitude or voltage....
Correlation between ECG and Cardiac Cycle
A cardiac action potential originates in the SA node and spreads throughout the atria and the AV node in approximately 0.03 seconds. This results in the P wave in an ECG and triggers atrial contraction. The action potential is then briefly slowed at the AV node, allowing the atria to contract and fill the ventricles with blood before...
Electrophysiology of Normal Cardiac Rhythm
Electrocardiogram Fundamentals
An electrocardiogram (ECG) is a diagnostic tool for identifying cardiac conditions such as arrhythmias, conduction abnormalities, and myocardial ischemia.
Definition
An electrocardiogram (ECG) visualizes the heart's electrical activity by tracing the electrical movement associated with each heartbeat on a graph or monitor. As the heart beats, an electrical wave passes through it, correlating with the cardiac cycle events.
Parts of an ECG
An ECG utilizes electrodes on the skin...
Cardiac Action Potential
The cardiac action potential process involves a series of phases characterized by the movement of ions across the cardiac cell membranes, leading to the depolarization and repolarization of the cardiac myocytes.
Ionic Basis of Cardiac Action Potentials

