COUNTERPOINT
Models

Methods

Model overview

Cardiac activation is simulated with a deterministic, event-driven network model of excitable tissue. The model does not represent membrane voltage, ionic currents or individual cells. Tissue is reduced to a small number of discrete sites joined by conduction pathways (links).

The model represents a limited set of electrophysiological properties: refractoriness and its restitution, decremental conduction and conduction velocity restitution, directional conduction, conduction block and collision, and automaticity with overdrive suppression. Each is described below by its standard definition, followed by how it is represented in the model and what is omitted.

All network configurations use the same rules and differ only in topology and parameter values. Each is described on its page in the app. No rhythm or conduction pattern (for example Wenckebach periodicity, AV-nodal echo beats or reentry) is specified explicitly. When such behaviours occur, they arise from the topology, the tissue rules and the timing of stimulation.

Model structure and simulation

Sites and links. A configuration is a graph of sites (nodes) joined by links (edges). Each site is labelled with a tissue type (sinus, atrial, nodal, His–Purkinje, ventricular or accessory pathway). The label is descriptive and does not change the rules applied to the site. The state of a site is two times: its last activation and the end of its current refractory period. Each link has two directions, each with its own conduction parameters. Links have no internal spatial structure; an impulse in transit is described only by its departure and arrival times.

Event-driven propagation. The model has no fixed time step. Pending events (impulse arrivals, stimuli, automatic firing attempts and collisions) are held in a priority queue and processed in time order. An event that reaches a site is an excitation attempt. If the site is excitable, it activates, its refractory period is set, and an impulse is launched along every enabled outgoing direction of its links, except the links on which the activating impulse arrived. The conduction time of each impulse is fixed at departure. Excitation attempts that reach a site at the same instant are pooled and produce at most one activation.

Stimulation. A stimulus is an excitation attempt delivered to a site at a specified time. It is subject to the same refractoriness as a conducted impulse and differs from one only in its origin.

a ij TijTji ta, trta, tr b excitablerefractory activationafter ERP attempt c RmaxRmin ERPdiastolic interval d TmaxD0 Tdiastolic interval
Figure 1. Network model of excitable tissue. (a) Tissue is reduced to sites (i, j) joined by links. The state of a site is two times: ta, its last activation, and tr, the end of its refractory period. Each direction of a link has its own conduction time (Tij, Tji), so conduction can differ by direction. An impulse in transit (gold) is described only by its departure and arrival times. Impulses travelling in opposite directions on the same link annihilate where they meet. (b) Each site is either excitable or refractory. An excitation attempt (an arriving impulse, a stimulus or an automatic firing) activates an excitable site, which becomes refractory and launches an impulse along every outgoing link except the one on which the activating impulse arrived. The site becomes excitable again when its ERP has elapsed. An attempt that reaches a refractory site is blocked. (c) ERP restitution. ERP is assigned at each activation from the preceding diastolic interval and rises from Rmin at short intervals towards Rmax, the fully recovered value. (d) Decremental conduction and conduction velocity restitution. Conduction time T falls from Tmax, when the tissue at the ends of the link is least recovered, towards D0, the conduction time between fully recovered sites. Tmax is D0 plus the largest combined slowing from the source and destination ends. Curves are schematic.

Refractoriness and ERP restitution

The effective refractory period (ERP) is the interval after activation during which tissue cannot be excited again. ERP restitution is the dependence of ERP on the preceding diastolic interval (DI): an activation that follows a short DI has a shorter ERP, as with action potential duration restitution. Tissue that is excited soon after its ERP ends remains less excitable than fully recovered tissue. The model represents this as slowed conduction (next section), not as a longer ERP.

In the model, a site is refractory from its activation at time t until t + ERP. Excitation attempts that reach it in that window are blocked. ERP is not derived from an action potential; it is assigned directly at each activation from the preceding DI. DI is the time from the end of the previous refractory period to the new activation, which plays the role of the usual cycle length minus action potential duration:

ERP(DI)=min(Rmax,max(Rmin,Rmax−ARe−DI/τR))

Rmax is the fully recovered ERP, AR the maximum shortening, τR the recovery time constant, and Rmin a lower bound (by default Rmax − AR). A site’s first activation is assigned Rmax. Sites without restitution parameters have a fixed ERP.

ERP depends only on the most recent DI. The model has no short-term memory of earlier beats and no relative refractory period as a separate state; the effects of incomplete recovery on conduction are represented in the next section.

Decremental conduction and conduction velocity restitution

Conduction velocity (CV) restitution is the slowing of conduction in tissue that is activated early in its recovery, that is, at a short preceding DI. Decremental conduction is the corresponding behaviour of the AV node, in which conduction time lengthens progressively as the coupling interval shortens. Both reflect conduction during the relative refractory period.

In the model, each direction of a link has a conduction time T. T is a baseline delay plus slowing that depends on the recovery of the tissue at each end of the link:

T=D0+Ase−DIs/τs+Ade−DId/τd

Both terms describe the same property, slowing in incompletely recovered tissue, and have the same exponential form. In continuous tissue this is a single local effect. Because the model does not represent tissue between sites, it is evaluated at both ends of each link. The two terms are parameterised separately (As, τs and Ad, τd), and either may be absent. A site that has not previously been activated contributes no slowing. Because DId is computed after the source term is added, a slowly conducted impulse meets a more recovered destination.

Slowing is bounded by As + Ad. Slowing alone never causes conduction to fail; block arises only from refractoriness. The model does not represent supernormal conduction or dependence of conduction on pacing history beyond the most recent DI.

Conduction velocity. The model works in conduction times, not velocities. Where a velocity is reported, it is a derived quantity: a nominal link length divided by T. Nominal lengths were chosen so that rested velocities fall within physiological ranges for each tissue type. They are not anatomical measurements and do not affect the simulation.

Directional conduction

Conduction properties of a pathway can differ with the direction of propagation. The AV node, for example, has different antegrade and retrograde conduction times and refractoriness, and unidirectional block is the extreme case.

In the model, the two directions of each link are parameterised independently, with their own D0 and slowing terms, and either direction can be disabled to represent fixed unidirectional block. These directional differences are assigned as parameters; they are not derived from tissue structure. The model does not represent anisotropy (dependence of conduction on fibre orientation), tissue geometry or source–sink effects at junctions. In the ring configurations, both directions of every link have the same parameters. No configuration described here disables a direction. In Pathway the left bundle can be blocked by the user, which disables the H–LV link in both directions.

Conduction block and collision

Conduction block. Conduction fails when an impulse reaches tissue that is still refractory. In the model, an impulse that arrives at a site during its refractory period is extinguished and causes no activation. All block in the model is of this functional kind; there is no fixed anatomical block other than a disabled link direction.

Collision. Wavefronts travelling towards each other through the same tissue annihilate, because each meets tissue made refractory by the other. In the model, when two impulses travel in opposite directions on the same link, their meeting time is computed assuming linear progress along the link from departure to arrival. At that time both impulses are removed, and neither reaches its destination.

Automaticity and overdrive suppression

An automatic focus fires spontaneously at its intrinsic cycle length. Capture by a faster rhythm resets it, and pacing faster than the intrinsic rate transiently suppresses it (overdrive suppression), so that the first spontaneous intervals after pacing stops are prolonged and then shorten towards the intrinsic cycle length (warm-up).

In the model, a site with automaticity schedules a spontaneous excitation attempt one intrinsic cycle length C after its last activation. Any activation of the focus, whether spontaneous, paced or conducted, resets this clock. A spontaneous attempt that finds the focus refractory fails, and the next attempt is scheduled one cycle (plus any suppression) later. Excitation attempts that fail to capture the focus do not reset it.

Overdrive suppression is a single quantity S that delays the next spontaneous attempt to C + S after the last activation. When the focus is captured by a non-spontaneous impulse at an interval I shorter than C, S increases:

S←min(Smax,S+g(C−I))

After each spontaneous firing, S decays to wS, which produces the warm-up. The gain g, ceiling Smax and retention factor w are set per focus. A simplified mode sets S to zero and disables its accumulation and decay, leaving only reset on capture. The focus has no phase-dependent response to a single extrastimulus: any capture resets it fully.

Measurements

Each run produces an ordered record of stimuli, activations, blocked excitation attempts, impulse launches, arrivals and collisions. Each entry stores its causes, so every activation can be traced back through the impulses that produced it. All measurements are computed from this record and use standard EP definitions.

Addendum

Model parameters

All times are in milliseconds. For every site with restitution, Rmin = Rmax − AR. Configurations are named as on their pages. Unless a direction is listed separately, both directions of a link share the same parameters. A dash means the term is absent.

Table A1. Refractoriness
ConfigurationSiteTissueRmaxARτR
ConductionSsinus2004090
ConductionAatrial2204590
ConductionN (AV node)nodal31090130
ConductionHHis–Purkinje1803595
ConductionV1, V2ventricular2606080
PathwaySsinus2004090
PathwayAatrial2204590
PathwayN (AV node)nodal31090130
PathwayAP (accessory pathway)accessory pathway290 (fixed)––
PathwayHHis–Purkinje1803595
PathwayRV, LVventricular2606080
RingR0atrial1804595
RingR1atrial3006095
RingR2–R6atrial2204595
RingR7atrial2004595
EchoSsinus200 (fixed)––
EchoHRA, CS proximalatrial2306080
EchoFast pathwaynodal30460120
EchoSlow pathwaynodal24040100
EchoLower common pathwaynodal25060120
EchoHHis–Purkinje360160200
EchoVventricular2506080
EntrainmentR1atrial2052585
EntrainmentAll other ring and branch sitesatrial1652585
AutomaticityAll sites (A0–A6)atrial1902585
Table A2. Conduction. As / τs: slowing from source recovery. Ad / τd: slowing from destination recovery.
ConfigurationLinkD0As / τsAd / τd
ConductionS–A2510 / 8512 / 60
ConductionA→N (antegrade)35100 / 150110 / 150
ConductionN→A (retrograde)3512 / 8518 / 65
ConductionN→H (antegrade)6510 / 12012 / 60
ConductionH→N (retrograde)6590 / 12012 / 60
ConductionH–V12510 / 8510 / 60
ConductionH–V24510 / 8510 / 60
PathwayS–A2510 / 8512 / 60
PathwayA→N (antegrade)35100 / 15050 / 150
PathwayN→A (retrograde)3512 / 8518 / 65
PathwayN→H (antegrade)6510 / 12012 / 60
PathwayH→N (retrograde)6590 / 12012 / 60
PathwayH–RV (right bundle)4010 / 8510 / 60
PathwayH–LV (left bundle)5010 / 8510 / 60
PathwayRV–LV (septum)7510 / 8510 / 60
PathwayA–AP121––
PathwayAP–LV28––
RingEach ring link (L0–L7)6018 / 8524 / 65
EchoS–HRA25––
EchoHRA–CS proximal30–15 / 40
EchoCS proximal–fast pathway10–20 / 60
EchoFast pathway–lower common pathway3030 / 10020 / 60
EchoCS proximal–slow pathway50–20 / 60
EchoSlow pathway–lower common pathway10060 / 12030 / 80
EchoLower common pathway–H55–10 / 40
EchoH–V35–10 / 40
EntrainmentR0–R1804 / 856 / 65
EntrainmentR1–R2 to R6–R7564 / 856 / 65
EntrainmentR7–R0644 / 856 / 65
EntrainmentRing junction–near branch site (at R1, R3, R5, R7)204 / 856 / 65
EntrainmentNear–far branch site404 / 856 / 65
AutomaticityEach link (focus–proximal, proximal–distal)344 / 856 / 65

Pathway simplifies the anatomy: one atrial site (no separate left atrium), one LV site standing for the region of the pathway’s ventricular insertion, and the left bundle as a single link. A–AP includes atrial conduction to the lateral mitral annulus.

Table A3. Automatic focus
ConfigurationSiteCgSmaxw
AutomaticityA0 (focus)4500.153500.5

Numerical implementation

Time is represented as integer microseconds. Each rate law is evaluated in floating point and rounded once to the nearest microsecond, so results are exactly reproducible. Events at the same instant are processed in a fixed order: parameter edits, collisions, stimuli, automatic attempts, then arrivals. Activation outcomes for that instant are then resolved, new impulses are launched and automatic foci are rescheduled. Remaining ties are broken by site identifier and launch order. Collision times are computed with exact rational arithmetic before rounding.

The model is written in JavaScript and runs in a web browser. Visual and audio rendering, including slowed playback, read from the event record and do not affect the simulation. Engine behaviour is covered by an automated test suite with fixed reference traces.

Engine features not used here

The engine also supports autonomic tone, respiratory modulation of sinus and nodal tissue, progressive link lesions, drug-like modifiers of ERP and conduction, entrance block of an automatic focus, and phase-response coupling between foci. None is enabled in the configurations described above.