The Biophysics of Cardiac Excitation, Spiral Re-entry, and Electrical Resuscitation
The human heart operates as a finely tuned electro-mechanical syncytium. Every coordinated heartbeat begins inside the specialized pacemaker cells of the sinoatrial (SA) node, sweeps seamlessly across the atrial chambers, pauses briefly at the atrioventricular (AV) node to allow ventricular filling, and races down the His-Purkinje conduction network to depolarize the ventricular myocardium. Under physiological baseline conditions, this wave of bioelectrical excitation propagates as an orderly, coherent planar front. Yet myocardial ischemia, fibrotic scarring, electrolyte imbalances, or ill-timed premature beats can fracture this symmetry. When an advancing action potential collides with partially refractory tissue, its broken free edge curls inward around an unexcited core, locking into a self-sustaining vortex known as a spiral wave rotor. This rotating electrical tornado is the fundamental physical mechanism behind life-threatening re-entrant arrhythmias, spanning monomorphic ventricular tachycardia (VT) and lethal polymorphic ventricular fibrillation (VF).
1. Mathematical Foundations: The Aliev-Panfilov Reaction-Diffusion Model
To resolve two-dimensional myocardial wave mechanics in real time inside a browser without sacrificing biophysical fidelity, this laboratory solves the canonical Aliev-Panfilov reaction-diffusion system [1996]. Inspired by the FitzHugh-Nagumo oscillator and specifically calibrated against canine and human ventricular action potential restitution curves, the continuous partial differential equations couple a normalized transmembrane voltage $u(\vec{x}, t)$ with a slower recovery gating variable $v(\vec{x}, t)$:
$$\frac{\partial u}{\partial t} = \nabla \cdot (D \nabla u) - k u (u - a)(u - 1) - u v + I_{\text{stim}}(\vec{x}, t)$$
$$\frac{\partial v}{\partial t} = \epsilon(u, v) \left( -v - k u (u - a - 1) \right)$$
where the voltage-dependent recovery rate $\epsilon(u, v)$ shapes the steepness of action potential duration (APD) restitution:
$$\epsilon(u, v) = \epsilon_0 + \frac{\mu_1 v}{u + \mu_2}$$
Each variable and constant carries direct physiological meaning:
- $u(\vec{x}, t)$ represents normalized membrane potential, mapping $u = 0$ to the polarized resting diastolic state ($\approx -85\text{ mV}$) and $u \approx 1$ to peak systolic depolarization ($\approx +30\text{ mV}$).
- $v(\vec{x}, t)$ aggregates slow ionic gating kinetics, capturing sodium/calcium channel inactivation alongside delayed rectifier potassium channel activation ($I_{\text{Kr}}, I_{\text{Ks}}$) that drives Phase 3 repolarization.
- $D$ quantifies electrotonic gap junction coupling mediated by Connexin-43 (Cx43) channels; reducing $D$ mirrors structural fibrosis or ischemic uncoupling, slowing conduction velocity.
- $k$ governs cellular excitability and maximum upstroke velocity $\left(\frac{dV}{dt}\right)_{\text{max}}$, while $a$ establishes the excitation threshold required to fire a regenerative all-or-nothing action potential.
- $\epsilon_0, \mu_1, \mu_2$ tune the action potential duration and refractory tail length rendered visually in deep violet and magenta.
2. Vulnerable Windows, Unidirectional Block, and Phase Singularities
Healthy, homogeneously rested myocardium cannot spontaneously spawn a spiral wave. Rotor formation requires unidirectional conduction block triggered during a narrow spatio-temporal interval called the vulnerable window. As a normal $S1$ wavefront (luminous cyan and white) advances across the tissue, the cells directly behind it enter a refractory recovery zone (violet and magenta) in which fast voltage-gated sodium channels remain inactivated.
When a premature ectopic stimulus ($S2$) strikes right along this trailing refractory border, propagation encounters asymmetric excitability: tissue behind the wave is still refractory and blocks retrograde conduction, while tissue ahead has recovered and conducts anterogradely. Because lateral electrotonic current drains into resting neighbors at the exposed tip, local wavefront velocity drops according to the eikonal-curvature relation:
$$c(\kappa) = c_0 - D \kappa$$
where $\kappa$ denotes local wavefront curvature and $c_0$ is planar propagation velocity. This curvature slowdown causes the broken edge to pivot tightly inward around a central topological defect known as a phase singularity, defined by a non-zero winding number in $(u, v)$ phase space:
$$\oint_C \nabla \theta \cdot d\vec{r} = \pm 2\pi$$
Once anchored, the spiral core spins autonomously at 180 to 340 revolutions per minute, overdriving the slower SA node and locking the heart into rapid monomorphic ventricular tachycardia.
3. Tactile Exploration Guide: How Every Lever Shapes Dynamics
Every control in this sandbox acts directly on the underlying biophysical PDEs so you can test classic cardiology hypotheses with immediate visual and electrocardiographic feedback:
- S1/S2 Pace Tool: Click or drag across the tissue immediately behind the magenta refractory tail of an active sinus wave. If you time the premature pulse inside the vulnerable window, you will watch the broken wave tip curl into a self-sustaining spiral rotor in real time.
- RF Ablation & Scar Pinning: Select Scar Pinning to observe how a spiral wave anchors around a circular non-conducting myocardial infarction scar. Then switch to RF Ablation and draw a solid scar line connecting the central infarct down to the lower tissue boundary. By transecting the conducting isthmus, the circulating wave collides with zero-flux Neumann barriers ($\vec{n} \cdot \nabla u = 0$) and extinguishes cleanly, restoring normal sinus rhythm.
- Tissue Excitability ($k$) & Diffusion ($D$): Lowering $D$ shrinks the electrical wavelength ($\lambda = c \cdot \text{APD}$), allowing spiral cores to pack more tightly into smaller areas of myocardium—explaining why dilated, fibrotic hearts are profoundly prone to fibrillation.
- Recovery Rate ($\varepsilon_0$): Decreasing $\varepsilon_0$ prolongs the refractory tail and steepens APD restitution ($\frac{\text{dAPD}}{\text{dDI}} > 1$), causing single rotors to meander and shatter spontaneously into multi-wavelet ventricular fibrillation.
- Movable Optical AP Probe: Grab the golden AP Probe handle directly on the tissue (or select the probe tool) to inspect transmembrane potential $u(t)$, recovery $v(t)$, and the real-time $(u, v)$ phase portrait at any myocardial site.
4. High-Voltage Defibrillation Physics
When discordant wavebreaks multiply across the ventricular wall, the myocardium enters ventricular fibrillation (VF). Multiple micro-rotors (flagged by crimson singularity crosshairs) fire asynchronously at over 300 BPM, canceling each other's mechanical contraction and dropping systemic blood pressure to zero. Despite popular portrayals, a clinical defibrillator does not "jump-start" a flatlined heart; rather, it delivers an intense trans-thoracic electric shock ($\sim 200\text{ Joules}$ biphasic waveform) to synchronize all excitable tissue simultaneously.
Clicking Discharge Defibrillator floods every viable node across the sheet into uniform refractory recovery simultaneously. By instantly erasing all excitable gaps between colliding wavelets, every active phase singularity is annihilated. Following a brief post-shock quiescent pause, the intrinsic SA node pacemaker fires cleanly, re-establishing coordinated planar beats.
5. DSP & Architectural Pipeline: Bidomain Pseudo-ECG & Telemetry
To bridge cellular reaction-diffusion physics with bedside clinical monitoring, the engine integrates a real-time pseudo-electrocardiogram (pseudo-ECG) along a virtual bipolar Lead II axis spanning top-left (right arm, $-$) to bottom-right (left leg, $+$). From bidomain volume-conductor theory, extracellular field potential $\Phi_{\text{e}}$ arises from the spatial integral of transmembrane current source density $I_m \propto \nabla^2 u$ weighted by inverse electrode distance:
$$\Phi_{\text{e}}(\vec{x}_{\text{lead}}, t) = \frac{1}{4\pi \sigma_{\text{e}}} \iint_{\Omega} \nabla^2 u(\vec{x}, t) \left( \frac{1}{\|\vec{x} - \vec{x}_{+}\|} - \frac{1}{\|\vec{x} - \vec{x}_{-}\|} \right) d\Omega$$
The signal then passes through a leaky high-pass AC-coupling filter to remove DC baseline offset before feeding an adaptive R-wave threshold detector. Each detected depolarization spike updates instantaneous BPM and triggers a lowpass-smoothed Web Audio monitor tone, while a 2D plaquette winding-number algorithm continuously scans the tissue for topological phase singularities to classify NSR, Monomorphic VT, Scar-Pinned Re-entry, and Polymorphic VF in real time.
⚖️ Legal Notices, Nominative Fair Use & Professional Disclaimers
• Editorial Independence & Non-Affiliation: This software laboratory and critical analysis is an independent educational, historical, and mathematical simulation created by BioniChaos. It is not affiliated with, maintained by, sponsored by, or endorsed by the American Heart Association (AHA), European Society of Cardiology (ESC), Heart Rhythm Society (HRS), or any medical device manufacturer.
• Trademark Attribution: "Aliev-Panfilov", "FitzHugh-Nagumo", and associated marks are historical scientific designations. All trademarks, corporate insignias, and commercial product designations are referenced strictly for nominative identification, technological criticism, and fair academic commentary under applicable intellectual property laws.
• Not Medical, Clinical, Diagnostic, or Engineering Advice: All algorithms, mathematical models, electrophysiological simulations, and pipelines presented in this laboratory are theoretical approximations for educational use. This application does not provide medical, not clinical, diagnostic, surgical, or engineering advice. It is not intended for real-world diagnostic, clinical, legal, or life-critical authorization decisions. Individuals seeking professional guidance should always consult licensed medical or certified electrophysiology professionals.
• Retrospective Modeling Disclaimer: Telemetry values, dipole integrations, and wavefront velocity representations are academic computational estimations. They do not constitute legal, regulatory, or clinical advice.