Skip to content
Grace Li
Go back

Inside the Map: How Cardiac EP Systems Calculate LAT and Activation

Edit page

Target audience: Software engineers and technical readers who want to understand the clinical and signal-processing concepts behind 3D cardiac mapping systems.

Table of Contents

Open Table of Contents

1. What Is Cardiac Electrophysiology Mapping?

The heart beats because of electrical impulses. In a healthy heart, a signal originates in the sinoatrial (SA) node, travels through well-defined pathways, and causes coordinated muscle contraction. In patients with arrhythmias (abnormal heart rhythms), this electrical propagation is disrupted — signals may loop back on themselves, originate from the wrong place, or travel along abnormal accessory pathways.

Cardiac electrophysiology (EP) mapping is a clinical procedure in which a cardiologist inserts thin, flexible catheters into the heart through blood vessels and records the electrical activity from inside the heart chambers. The goal is to create a 3D map of the heart surface annotated with electrical timing data — revealing exactly where and when the abnormal activity originates, so it can be targeted with ablation (tissue destruction via heat or cold).

Modern EP mapping systems — such as OPAL HDx (formerly Rhythmia) from Boston Scientific, CARTO (Biosense Webster), and EnSite (Abbott) — combine real-time 3D catheter tracking with multi-channel signal recording to build these maps automatically during the procedure.


2. The Hardware: Catheters and the Recording Chain

The Mapping Catheter

A mapping catheter is a thin flexible tube (typically 2–4 mm in diameter) with multiple electrodes embedded near its tip. As the cardiologist maneuvers the catheter to touch different regions of the heart wall, each electrode records a local electrical signal.

Types of mapping catheters:

The Reference Catheter

A reference catheter (typically placed in the coronary sinus — a fixed anatomical structure in the heart) records continuously throughout the procedure. It provides a stable, repeating electrical signal tied to the cardiac cycle. Every other electrode’s activation is measured relative to this reference signal.

The Recording System

All catheter channels are connected to a recording amplifier (a multi-channel ADC — analog-to-digital converter). It samples all channels simultaneously at a fixed rate — typically 1000–2000 Hz (samples per second). Every millisecond (at 1000 Hz), one digital value per channel is written into a continuous rolling buffer.

Recording amplifier
  ├── Channel 0: Reference catheter  → [0.1, 0.2, 0.0, -0.3, ...]
  ├── Channel 1: Mapping electrode 1 → [0.0, 0.0, 0.1, -0.8, ...]
  ├── Channel 2: Mapping electrode 2 → [0.0, 0.1, 0.0, -0.2, ...]
  └── ...
      Sample index:                       0    1    2    3    ...

The sample index is simply the hardware clock tick counter — it increments automatically with no action required from software.


3. The Engineering Challenge: Synchronization and the 3D Mesh

Before we dive into the signals, it’s important to understand the silent heavy lifting done by the mapping system’s engine.

Hardware Synchronization

The mapping system is a distributed real-time environment. It must synchronize:

  1. Clock cycles across multiple ADC boards (to ensure 1ms on lead I is the same 1ms on the mapping catheter).
  2. 3D Positional Data from magnetic or impedance-based tracking sensors.
  3. Surface ECG signals from the patient’s chest.

Any “jitter” or latency in the pipeline (e.g., if the 3D position is recorded 50ms after the electrical signal) results in a “noisy” map where points appear to be floating off the wall or misaligned with the electrical activation.

The 3D Mesh Reconstruction

The “heart” you see on the screen isn’t a pre-loaded model; it’s a point-cloud-to-mesh reconstruction built on the fly. As the catheter moves, the system collects (x, y, z) coordinates. Algorithms like Ball Pivoting or Poisson Surface Reconstruction are used to wrap a triangular mesh around these points.

This mesh provides the “canvas” upon which we paint the electrical data.


4. The Raw Signal: Electrograms (EGMs)

An electrogram (EGM) is the raw voltage-vs-time waveform recorded from one electrode inside the heart. It is analogous to a single lead of an ECG, but recorded from inside the heart rather than from the body surface.

Unipolar vs. Bipolar EGMs

TypeHow recordedCharacteristics
UnipolarOne electrode vs. a far-field referenceLarge amplitude; reflects all electrical activity near and far
BipolarTwo adjacent electrodes subtractedCancels far-field noise; reflects only local activation

Bipolar EGMs are preferred for mapping because they are more spatially specific.

The Activation Signature

When a wavefront of electrical activation passes under an electrode, the bipolar EGM shows a characteristic sharp deflection — a rapid downstroke followed by an upstroke. The moment of steepest negative slope (max −dV/dt) is universally accepted as the local activation time for that electrode.

Bipolar EGM signal:

 mV
  |
  |    ___
  |   /   \
  |__/     \___/\___
  |              ↑
  |          max -dV/dt  ← This is when the wavefront passed
  |
  └──────────────────── time (ms)

5. What Is LAT (Local Activation Time)?

Local Activation Time (LAT) is the time delay, in milliseconds, between a reference event and the moment a specific region of heart tissue electrically activates.

It answers the question: “How late does this spot on the heart wall wake up, relative to a known reference event?”

Why measure relative time?

The heart beats continuously. Each beat has a slightly different absolute timing. By anchoring all measurements to the same reference event (e.g. the reference catheter signal, or the pacing stimulus), LATs from different beats and different catheter positions become directly comparable.

Reference fires (e.g. CS catheter): t = 0 ms
  │
  ├── Location A: activates at t = -45 ms → LAT = -45 ms (early)
  ├── Location B: activates at t = 20 ms  → LAT = 20 ms
  └── Location C: activates at t = 100 ms → LAT = 100 ms (late)

These LAT values, combined with the 3D position of each electrode, form the raw data for an activation map.


6. How Sample Indices Become LAT Values

The annotation

The EP recording system stores activation events as annotations — the sample index at which activation was detected on each channel.

mapAnnot[electrode_i]       = 2069   # sample index of local activation
referenceAnnot[electrode_i] = 2000   # sample index of reference event (same beat)

mapAnnot = 2069 does not mean 2069 milliseconds of absolute time. It means “at the 2069th sample in the recording buffer, electrode i activated.”

The conversion

diff_samples = mapAnnot - referenceAnnot         # 2069 - 2000 = 69 samples
diff_seconds = diff_samples / sample_frequency   # 69 / 1000 Hz = 0.069 s
LAT_ms       = diff_seconds × 1000               # 0.069 × 1000 = 69 ms

Or in one line:

LAT = ((mapAnnot - refAnnot) / fs) * 1000

This formula is sample-rate agnostic. Whether the system samples at 1000 Hz, 1200 Hz, or 2000 Hz, the formula always produces the correct LAT in milliseconds.

Beat-to-beat reset

For each new heartbeat, referenceAnnot is re-detected on the reference catheter. This means the absolute sample indices keep climbing throughout the procedure (e.g. beat 50 might have referenceAnnot = 150,000), but the difference between map annotation and reference annotation stays within the physiological range of one cardiac cycle (~0–400 ms for most arrhythmias).

Sentinel values

EP systems use large out-of-range values (e.g. −10,000 ms) to flag electrodes with no valid annotation — poor contact, no signal detected, or the electrode was outside the window of interest. These must be masked before interpolation.


7. How Many Points Are Collected?

The number of measurement points is finite and constrained by the procedure. There is no automatic scanning — the cardiologist manually navigates the catheter to each location. Coverage depends on:

Typical point counts by system

SystemTechnologyTypical points
OPAL HDx (BSC)Basket catheter, automated2,000–10,000
CARTO 3 (Biosense Webster)Point-by-point, magnetic tracking100–500
EnSite Velocity (Abbott)Non-contact or multi-electrode500–3,000

Meanwhile, the 3D mesh surface reconstructed from the same catheter movements may have 10,000–30,000 vertices. Only a small fraction have real electrode measurements. The rest are interpolated.


8. Handling Duplicate Measurements

The cardiologist frequently revisits the same anatomical location — either intentionally (to confirm a reading) or because catheter movement is imprecise. How duplicate points are handled varies by system:

BSC (OPAL HDx) / Abbott (EnSite) - High-Density

CARTO (Point-by-Point)

Why this matters

If duplicates were naively averaged, a single noisy reading (e.g. the catheter was briefly off the wall) could corrupt the map in that region. Real systems use quality metrics to weight or exclude readings — good contact force, stable catheter position, and signal amplitude within normal range all increase a point’s weight.


9. From Sparse Points to a Full Surface Map (Interpolation)

After collecting LAT values at a few hundred to a few thousand electrode positions, the system must fill in the gaps — assigning LAT values to every vertex on the mesh so the entire surface can be colored.

This is a spatial interpolation problem.

The simplest approach. For any unsampled mesh vertex v, the estimated LAT is a weighted average of all nearby electrode measurements, where closer electrodes get higher weight:

LAT(v) = sum(wi * LATi) / sum(wi)

where

wi = 1 / (dist(v, electrode_i)^p)

A more sophisticated method. Fits a smooth continuous function through all measurement points:

LAT(v) = sum(λi * φ(||v - electrode_i||))

Where φ is a radial basis function (e.g. thin-plate spline, multiquadric). RBF produces smoother maps and handles irregular sampling better than IDW.

Geodesic vs. Euclidean Distance

A subtlety: the heart wall is a curved surface. Straight-line (Euclidean) distance through 3D space is not the same as the distance along the surface. High-end systems use geodesic distance (shortest path along the mesh surface) for interpolation, which is more physically meaningful — electrical conduction follows the tissue surface, not a straight line through the blood pool.

Boundary conditions

The mesh typically has rim vertices — edges at the top of a chamber where the anatomy was not fully mapped (e.g. the pulmonary vein openings in atrial fibrillation ablation). These are flagged and excluded or handled separately during interpolation.


10. How Colors Are Decided

Once every mesh vertex has an interpolated LAT value, a colormap is applied to produce the final visual.

The colormap

A colormap is a function that maps a scalar value (LAT in ms) to an RGB color. The standard in EP mapping is:

Early activation  →  Red / Magenta   (low LAT, e.g. 0–30 ms)
                  →  Yellow / Green   (mid LAT)
Late activation   →  Purple / Blue    (high LAT, e.g. 100–200 ms)

This is sometimes called a “rainbow” or “jet” colormap, though clinical systems often use proprietary variants.

The color range (window/level)

The colormap is not applied to the full mathematical range of LAT values — that would waste color resolution on outliers. Instead, the clinician sets:

This is analogous to windowing in radiology (CT/MRI window-level adjustment).

The scalar bar

A color legend (scalar bar) displayed alongside the 3D map shows the LAT scale, so the clinician can read off approximate activation time from color.

Example

LAT range set: 0 ms → 150 ms

  Red       Yellow      Green      Cyan       Blue
   |___________|___________|___________|__________|
  0ms         37ms        75ms       112ms      150ms

A red patch = activates first (likely the origin of the arrhythmia)
A blue patch = activates last (far from the origin)

11. Clinical Interpretation: What the Colors Tell the Doctor

Activation map (LAT map)

Voltage map

A related but different map: instead of timing, it colors the surface by EGM amplitude (peak-to-peak voltage):

Scar tissue is often the substrate for arrhythmias. Voltage maps help identify the scar border, where ablation lines are typically drawn.

Propagation map (animation)

Rather than a static color map, many systems animate the activation: a moving colored band sweeps across the surface in real time, showing the wavefront propagating. This makes re-entrant circuits visually obvious as a continuously rotating wave.


12. Summary Diagram

┌─────────────────────────────────────────────────────────────────┐
│                    CARDIAC EP MAPPING PIPELINE                   │
│                                                                   │
│  HARDWARE          SIGNAL            ANNOTATION       MAP        │
│                                                                   │
│  Catheter ──▶ ADC ──▶ EGM waveform ──▶ detect       ──▶ LAT    │
│  touches        samples    (voltage       max -dV/dt      value  │
│  heart wall     at         vs time)       per channel    (ms)    │
│                 1000 Hz                   → mapAnnot             │
│                                                                   │
│  Reference ──▶ ADC ──▶ reference  ──▶ detect same  ──▶ ref     │
│  catheter        samples    EGM           event each      value  │
│  (fixed)                                  beat                   │
│                                           → refAnnot             │
│                                                                   │
│                    LAT = (mapAnnot - refAnnot) / fs * 1000       │
│                                                                   │
│  3D position  +  LAT value  =  sparse point cloud on heart       │
│                                                                   │
│  Sparse points ──▶ IDW / RBF interpolation ──▶ LAT at every     │
│                                                   mesh vertex     │
│                                                                   │
│  LAT per vertex ──▶ colormap (early=red, late=blue) ──▶ 3D map  │
└─────────────────────────────────────────────────────────────────┘

13. Conclusion

Cardiac EP mapping is a fascinating intersection of electrophysiology, 3D geometry, and real-time signal processing. By converting raw analog signals into synchronized digital samples, and then interpolating those samples across a dynamically reconstructed mesh, we provide physicians with a “GPS for the heart.”

Understanding the underlying math—from the simple subtraction of sample indices to the complexity of geodesic RBF interpolation—is key to building next-generation mapping systems that are faster, more accurate, and ultimately more effective at curing arrhythmias.


14. Further Reading

Clinical / Domain

Signal Processing

EP Mapping Systems (vendor documentation / white papers)

Open Data / Research Tools

Interpolation Methods


Written as a technical explainer for engineers entering the cardiac EP domain. All clinical decisions should be made by qualified medical professionals.


Edit page
Share this post on:

Previous Post
Understanding the Bias-Variance Tradeoff
Next Post
Beyond the Line: Building Your First Shallow Neural Network