CardioWeb: Quantitative Electrophysiological Segmentation & Diagnostic Foundations
Overview & Biophysical Foundations
The electrocardiogram (ECG) represents the spatio-temporal volume-conductor projection of microscopic ionic currents propagating across the myocardial syncytium. During each cardiac depolarization and repolarization cycle, synchronized fluxes of sodium ($\text{Na}^+$), potassium ($\text{K}^+$), and calcium ($\text{Ca}^{2+}$) traverse cardiac sarcolemma via specialized voltage-gated ion channels. These transmembrane currents establish extracellular local field potentials that summate macroscopically into a time-varying spatial cardiac dipole vector $\mathbf{p}(t) \in \mathbb{R}^3$.
Embedded within the inhomogeneous, resistive volume conductor of the human thorax $\Omega$ characterized by regional conductivities $\sigma(\mathbf{r})$, the potential distribution $\phi(\mathbf{r}, t)$ on the cutaneous thoracic boundary is governed by Poisson's equation under quasi-static bioelectric conditions:
$$\nabla \cdot \left( \sigma(\mathbf{r}) \nabla \phi(\mathbf{r}, t) \right) = -I_{sv}(\mathbf{r}, t)$$
Here, $I_{sv}$ denotes the bioelectric source current per unit volume generated by advancing wavefronts of transmembrane action potentials. In standard bipolar Limb Lead II, the differential potential is acquired between the left leg ($\text{LL}$) and right arm ($\text{RA}$):
$$V_{II}(t) = \phi(\mathbf{r}_{\text{LL}}, t) - \phi(\mathbf{r}_{\text{RA}}, t) = \int_{\Omega} \mathbf{J}_{\text{source}}(\mathbf{r}', t) \cdot \nabla' G(\mathbf{r}_{\text{LL}}, \mathbf{r}_{\text{RA}}; \mathbf{r}') \, d^3\mathbf{r}'$$
where $G$ corresponds to the Green's transfer lead field defining the sensitivity of the electrode geometry. The resultant scalar lead tracing exhibits stereotypic fiducial deflections designated alphabetically as the P-wave, Q-point, R-peak, S-point, and T-wave.
Mathematical ECG Dynamical Modeling
To generate physiologically rigorous, continuous synthetic cardiac signals in real time without discrete interpolation artifacts, this simulator implements an analytical superposition dynamical framework adapted from the non-linear ordinary differential equations proposed by McSharry, Clifford, and Smith. The cardiac trajectory is mapped in a cylindrical limit cycle state space $(\theta, z)$ driven by an angular velocity parameter:
$$\frac{d\theta}{dt} = \omega(t) = 2\pi \cdot \frac{\text{HR}(t)}{60}$$
Vertical trajectory deflection $z(t)$ perpendicular to the limit cycle attractor plane satisfies the nonlinear differential summation:
$$\frac{dz}{dt} = -\sum_{i \in \{P, Q, R, S, T\}} a_i \, \Delta\theta_i \exp\left( -\frac{\Delta\theta_i^2}{2 b_i^2} \right) - \left( z - z_0 \right) + \eta(t)$$
where $\Delta\theta_i = (\theta - \theta_i) \pmod{2\pi}$, $a_i$ determines the peak deflection amplitude in millivolts ($\text{mV}$), $b_i$ governs Gaussian angular dispersion (deflection width in radians), and $\theta_i$ represents phase location along the $2\pi$ cardiac cycle. The stochastic term $\eta(t) \sim \mathcal{N}(0, \sigma_{\eta}^2)$ models respiratory baseline wander and electromyographic somatic tremor artifacts.
Clinical Significance of Fiducial Morphologies
Accurate segmentation and interval extraction remain foundational to diagnostic electrocardiography:
-
P-Wave ($\text{Atrial Depolarization}$): Initiated by pacemaker automaticity within the sinoatrial (SA) node, generating a dipole oriented inferiorly and leftward. Duration normally spans $80\text{--}100\text{ ms}$ with amplitude $<0.25\text{ mV}$. Absence indicates Atrial Fibrillation or SA block.
-
PR Interval & PR Segment: Measures transit time from atrial depolarization onset to ventricular depolarization onset, encompassing physiological decremental delay through the atrioventricular (AV) node. Normal limits range from $120\text{ to } 200\text{ ms}$. Pathological prolongation exceeding $200\text{ ms}$ defines First-Degree Atrioventricular Block ($1^{\circ} \text{ AVB}$).
-
QRS Complex ($\text{Ventricular Depolarization}$): Comprises initial interventricular septal vector (Q-point, negative deflection), massive apex-to-base ventricular myocardial wall activation (R-peak, dominant positive vector), and posterobasal left ventricular depolarization (S-point). Normal duration is $70\text{--}110\text{ ms}$. Widening ($>120\text{ ms}$) accompanies bundle branch blocks or ectopic ventricular depolarization such as Premature Ventricular Contractions (PVC) and Ventricular Tachycardia (V-Tach).
-
ST Segment & T-Wave ($\text{Ventricular Repolarization}$): Reflects phase 2 plateau and phase 3 repolarization of ventricular myocytes. The asymmetry of the normal T-wave emerges from the transmural dispersion of repolarization from epicardium to endocardium. Symmetrical tall "tented" T-waves indicate hyperkalemia, whereas flattening or inversion signals ischemia or strain.
CardioWeb Decision Engine & Fuzzy Segmentation
CardioWeb simulates an automated diagnostic expert by computing continuous first and second numerical derivatives:
$$y[n] = \frac{1}{8T} \left( 2x[n] + x[n-1] - x[n-3] - 2x[n-4] \right)$$
Following squaring and moving-window integration over an $80\text{ ms}$ kernel, CardioWeb calculates an adaptive dual-threshold $V_{th}$:
$$V_{th} = \alpha \cdot \text{Peak}_{\text{Signal}} + (1 - \alpha) \cdot \text{Peak}_{\text{Noise}}$$
Landmarks are validated against fuzzy membership functions $\mu_A(x) \in [0, 1]$ defining physiological interval plausibility (e.g., $PR \in [120, 200]\text{ ms}$, $QRS \in [70, 110]\text{ ms}$). Points are progressively isolated and plotted onto the grid in real-time, challenging the clinician to demonstrate superior diagnostic velocity and spatial accuracy.
How to Operate the Simulation
- Tool Selection: Tap buttons P, Q, R, S, or T in the side panel or press physical keys
P, Q, R, S, T on your keyboard.
- Fiducial Grid Isolation: Click directly onto the oscilloscope tracing within the active circular tolerance window (default $36\text{ px}$) around the true deflection point. Successful captures trigger an emerald burst and score increment.
- Next Waveform: Advance to a randomized physiological rhythm (NSR, Atrial Fibrillation, PVC, V-Tach, $1^{\circ} \text{ AVB}$, Hyperkalemia) by pressing
Space or clicking Next Beat.
- Sonification: Toggle Sound to enable dynamic microvolt pitch tracking ($f(t) \propto V(t)$).
- Interactive Demo Tour: Click Start Demo or scrub the audio deck to experience synchronized spoken narrative guidance and continuous automated demonstration loops.
Context-Aware Clinical Systems
Open Access License: This interactive educational module is released under
CC BY-NC 4.0 (Attribution-NonCommercial)
for non-commercial research, academic study, and clinical education.
Commercial & Enterprise Licensing: For white-labeling, proprietary LMS/course embedding, hardware dashboard telemetry integration, or custom feature engineering, secure a commercial license at
BioniCloud.com or contact
Dr. Yuri Beno.