Orientation
What is electrocardiography and why should an engineer study it?
Electrocardiography is the non-invasive recording of the heart’s electrical activity from the body surface. The measured potential differences are only a few millivolts and contain clinically important events lasting milliseconds to seconds. Obtaining a reliable ECG therefore requires electrodes, low-noise analogue amplifiers, interference rejection, filtering, analogue-to-digital conversion, signal processing and clear visualisation.
Electrophysiology
Ion movement across cardiac cell membranes creates action potentials that spread through excitable tissue.
Electromagnetics & circuits
Body tissues conduct tiny potentials to electrodes. Instrumentation must reject common-mode interference and protect the patient.
Signal processing
Filtering and digital processing separate PQRST information from baseline wander, muscle noise and power-line interference.
Learning outcomes
- Identify the major cardiac cell types and their electrical functions.
- Explain the sequence and timing of atrial and ventricular depolarisation and repolarisation.
- Relate each ECG wave, segment and interval to an underlying physiological event.
- Trace the historical development of electrocardiography and its engineering milestones.
- Define the standard 12-lead ECG and describe correct electrode placement.
- Calculate heart rate from regular and irregular ECG rhythms.
- Describe an ECG acquisition chain, common artefacts and methods used to reduce them.
- Connect ECG abnormalities to representative clinical conditions.
Cellular foundations
Types of heart cells
Cardiac tissue contains specialised cells with different jobs. Some generate rhythmic impulses, some conduct rapidly, and most contract. Their different ion-channel profiles produce distinct action-potential shapes.
| Cell type | Main location | Electrical behaviour | Primary function | ECG significance |
|---|---|---|---|---|
| SA nodal pacemaker cells | Right atrium near the superior vena cava | Spontaneous phase-4 depolarisation; slow Ca²⁺-dependent upstroke; fastest normal intrinsic rate | Initiate the normal heartbeat | Normal sinus P waves and regular rhythm |
| AV nodal cells | Interatrial septum near the tricuspid valve | Slow conduction and intrinsic automaticity; important conduction delay | Limit atrial-to-ventricular conduction and provide an escape pacemaker | Forms much of the PR interval; blocks can prolong or drop QRS complexes |
| Bundle of His and bundle-branch cells | Interventricular septum | Rapid conduction; fast-response action potentials | Conduct impulses toward the ventricles | Bundle-branch disease can widen or deform the QRS |
| Purkinje cells | Endocardial ventricular network | Very rapid conduction; automaticity at a slow escape rate | Activate ventricular myocardium synchronously | Support narrow, coordinated QRS depolarisation |
| Atrial working myocytes | Atrial muscle | Fast-response action potential; contract when depolarised | Atrial contraction (“atrial kick”) | Generate the P wave |
| Ventricular working myocytes | Ventricular myocardium | Fast Na⁺ upstroke, plateau and prolonged repolarisation | Ventricular contraction and ejection | Generate the QRS complex and T wave |
| Transitional / internodal cells | Atrial conduction pathways | Specialised atrial conduction; less automaticity than nodal tissue | Carry SA-node impulses to the AV node and atria | Contribute to normal atrial activation timing |
Pacemaker hierarchy and intrinsic escape rates
SA node
Typical intrinsic rate: 60–100 beats/min in adults.
AV junction
Typical intrinsic escape rate: 40–60 beats/min.
Ventricular Purkinje system
Typical intrinsic escape rate: 20–40 beats/min.
Rates vary with age, autonomic tone, fitness, illness and medication. Intrinsic rates are approximate and are used to understand escape rhythms.
Electrical pathway
Heart electrical conduction system and ECG waves
A normal impulse starts at the SA node, spreads through the atria, pauses at the AV node, then travels rapidly through the His–Purkinje network so that the ventricles depolarise in an efficient, coordinated sequence.
Normal conduction sequence
- SA node discharge initiates atrial depolarisation.
- Atrial activation spreads through the atria; contraction follows electrical activation.
- AV nodal delay permits ventricular filling before ventricular systole.
- His bundle and bundle branches conduct the impulse into the septum.
- Purkinje fibres rapidly activate the endocardium.
- Ventricular muscle depolarises from endocardium toward epicardium and contracts.
- Ventricular repolarisation restores the resting state and produces the T wave.
Representative conduction velocities
| Tissue | Approx. velocity | Reason it matters |
|---|---|---|
| Atrial muscle | 0.3–1.0 m/s | Spreads the P wave |
| AV node | 0.02–0.05 m/s | Creates useful PR delay |
| His–Purkinje | 1.5–4.0 m/s | Enables rapid, synchronised QRS |
| Ventricular muscle | 0.3–1.0 m/s | Cell-to-cell ventricular activation |
Annotated PQRST waveform
Historical development
History of electrocardiography
The ECG emerged from discoveries in electrophysiology, precision instruments and clinical cardiology. Its history is an excellent case study in how sensors, amplifiers and signal processing transform physiology into a practical diagnostic technology.
Engineering lesson 1: sensitivity without fidelity is insufficient
Early devices could detect a cardiac signal but distorted its timing and shape. Einthoven’s key contribution combined a sensitive transducer with careful mathematical and instrumental correction.
Engineering lesson 2: clinical utility drives design
The modern ECG is not merely a waveform. It is a calibrated measurement system with standard paper speed, gain, lead geometry, filters, patient safety constraints and diagnostic reporting conventions.
The signal
The electrocardiogram (ECG)
An ECG records the time-dependent voltage difference between electrodes on the body surface. It is usually displayed in millivolts against time, with a standard diagnostic paper speed of 25 mm/s and calibration of 10 mm/mV.
Millivolt-scale
Typical surface signals are around 0.1–2 mV, so the acquisition system must amplify very small differential voltages.
Approximately 0.05–150 Hz
Diagnostic ECG bandwidth commonly includes very low-frequency ST information and rapid QRS transitions. Device settings can differ.
25 mm/s
One small square is 0.04 s; one large square is 0.20 s. At 50 mm/s, these durations are halved.
What the standard components mean
| Component | Physiological event | Typical adult reference | Common clinical significance |
|---|---|---|---|
| P wave | Atrial depolarisation | <0.12 s; usually upright in I and II | Absent, abnormal or fluttering P waves suggest rhythm or atrial disorders |
| PR interval | Atrial depolarisation plus AV nodal/His conduction | 0.12–0.20 s | Prolongation suggests AV block; short PR may suggest pre-excitation |
| QRS complex | Ventricular depolarisation | Usually 0.08–0.10 s or less | Widening may indicate bundle-branch block, ventricular rhythm or conduction disease |
| ST segment | Interval between ventricular depolarisation and repolarisation | Near baseline | Depression may suggest ischaemia; elevation may suggest injury or infarction |
| T wave | Ventricular repolarisation | Usually upright in many leads and concordant with QRS | Inversion or peaking may indicate ischaemia, strain or electrolyte disturbance |
| QT interval | Total ventricular depolarisation and repolarisation | Rate-dependent; corrected QT is interpreted clinically | Prolongation increases arrhythmic risk; shortening has metabolic/genetic causes |
| U wave | Late repolarisation-related activity | Small; not always visible | Prominent U waves can be associated with hypokalaemia or bradycardia |
Electrical vectors and why lead shape changes
A wave of depolarisation can be represented by a mean electrical vector. A lead measures the projection of that vector onto the lead axis. When the projection points toward the positive electrode, the deflection is mainly positive; when it points away, the deflection is mainly negative.
Automaticity
Pacemaker ability of the heart
The healthy heart can generate its own rhythm because SA-node cells possess automaticity. Their membrane potential does not remain constant between beats; it slowly drifts toward threshold during diastole.
Why the SA node normally wins
Pacemaker cells with the fastest phase-4 depolarisation reach threshold first and reset slower latent pacemakers. Sympathetic stimulation generally increases the slope and raises heart rate; parasympathetic activity generally slows it.
When latent pacemakers emerge
If SA-node impulses are too slow, blocked or absent, AV junctional or ventricular escape rhythms can take over. An escape rhythm is a safety response, not the primary healthy pacemaker.
Animated action-potential comparison
Phase 4
0 ms
Contractile vs nodal
Mechanism of nodal automaticity
- After repolarisation, the nodal membrane begins a slow inward “funny” current, If.
- Outward K⁺ current decreases while inward Ca²⁺ currents increase.
- Threshold is reached and L-type Ca²⁺ channels drive the upstroke.
- K⁺ efflux repolarises the cell, and the cycle restarts.
Clinical applications
Clinical conditions requiring an ECG
An ECG is requested when clinicians need evidence about heart rhythm, conduction, blood supply, chamber stress, electrolyte effects or device behaviour. Symptoms and context determine urgency.
Urgent or emergency presentations
- Chest pain or pressure suggestive of myocardial ischaemia or infarction
- Fainting, near-fainting or profound dizziness
- Sustained palpitations with weakness, breathlessness or shock
- Cardiac arrest, resuscitation or post-resuscitation care
- Signs of severe electrolyte disturbance or drug toxicity affecting the heart
Routine or diagnostic indications
- Known or suspected arrhythmia
- Monitoring heart rate and rhythm during surgery or critical care
- Hypertension, valvular disease or suspected chamber enlargement
- Assessment before certain medications that affect QT interval
- Pacemaker or ICD checks
- Evaluation of breathlessness, fatigue, stroke or peripheral embolism
Representative ECG patterns and associated conditions
| ECG observation | Possible clinical association | Engineering/clinical caution |
|---|---|---|
| No normal P wave with irregularly irregular QRS spacing | Atrial fibrillation | Rate may be irregular; automated counting can be unreliable |
| ST-segment elevation in contiguous leads | Acute myocardial injury or infarction, pericarditis or other causes | Must be interpreted with symptoms, prior tracing and troponin testing |
| ST depression or T-wave inversion | Myocardial ischaemia, strain, non-cardiac causes | Lead group and clinical context matter |
| PR interval >0.20 s | First-degree AV block | Confirm calibration and measurement points |
| Wide QRS with bundle-branch morphology | Conduction block or ventricular origin rhythm | Distinguish conduction disease from artefact and lead placement error |
| Peaked T waves | Hyperkalaemia or other causes | Confirm with blood chemistry and clinical assessment |
| Prominent U waves or flattened T waves | Hypokalaemia or drug effects | Compare with medication and electrolyte results |
| Low-voltage QRS complexes | Pericardial effusion, obesity, COPD, hypothyroidism or technical causes | Check electrode contact, gain and patient factors |
Views of the heart
ECG leads
A standard 12-lead ECG uses 10 electrodes to create 12 electrical views: three bipolar limb leads, three augmented unipolar limb leads and six precordial chest leads. A lead is a measured voltage difference, not simply one wire.
Limb lead definitions
II = VLL − VRA
III = VLL − VLA
aVL = VLA − ½(VRA + VLL)
aVF = VLL − ½(VRA + VLA)
Interactive lead-placement viewer
Precordial positions
- V1: right sternal edge, 4th intercostal space
- V2: left sternal edge, 4th intercostal space
- V4: left mid-clavicular line, 5th intercostal space
- V3: midway between V2 and V4
- V5: anterior axillary line, level with V4
- V6: mid-axillary line, level with V4/V5
Lead groups used for localisation
| Heart region | Leads | Teaching note |
|---|---|---|
| Inferior wall | II, III, aVF | ST changes here may indicate inferior myocardial involvement |
| Lateral wall | I, aVL, V5, V6 | Useful for lateral ischaemia and left-sided forces |
| Anterior wall | V3–V4 | Chest leads provide horizontal-plane views |
| Septal region | V1–V2 | Bundle-branch morphology is often assessed here |
Quantitative reading
Heart rates from the ECG
Heart rate is calculated from the time between beats, usually the R–R interval. In sinus rhythm the atrial rate and ventricular rate are normally equal; in some heart blocks they differ.
Regular rhythm
HR = 1500 ÷ small squares between R waves
HR = 300 ÷ large squares between R waves
Example: R–R = 4 large squares → 300/4 = 75 bpm.
Irregular rhythm / 10-second strip
A standard full-width rhythm strip is commonly 10 s long. Count QRS complexes over the full strip and multiply by six.
Interactive heart-rate calculators
Regular R–R interval
75 bpm
Normal
10-second rhythm strip
102 bpm
Tachycardia
Other useful rate concepts
- Atrial rate: count P waves or P–P intervals.
- Ventricular rate: count QRS complexes or R–R intervals.
- Heart-rate variability: beat-to-beat variation in R–R intervals reflects autonomic and physiological regulation.
- Pulse deficit: a difference between palpated pulse rate and ECG ventricular rate can occur when some beats do not produce an effective pulse.
Instrumentation
ECG recording: from patient to displayed waveform
The recording system must extract a millivolt differential signal in the presence of much larger common-mode interference, electrode offset and motion. Good clinical ECGs begin with careful preparation and continue through calibrated analogue and digital processing.
Typical engineering requirements
| Stage / specification | Typical design objective | Why it matters |
|---|---|---|
| Electrode–skin interface | Clean, abraded or prepared skin; conductive gel; low and stable contact impedance | Reduces motion artefact and 50/60 Hz pickup |
| Input impedance | Very high, commonly tens to hundreds of MΩ | Limits attenuation from high electrode impedance mismatch |
| Common-mode rejection | High CMRR, commonly >100 dB | Suppresses interference common to both input electrodes |
| Amplifier gain | On the order of 500–1000 for a 1 mV ECG | Raises millivolt signals to ADC range |
| Diagnostic bandwidth | Often approximately 0.05–150 Hz | Preserves ST segments and rapid QRS detail |
| ADC resolution | Commonly 12–16 bits or more | Provides adequate dynamic range and small-signal resolution |
| Sampling rate | Commonly 250–1000 samples/s per lead or higher | Supports interval measurement and digital analysis |
| Patient isolation | Isolation barrier and defibrillation protection | Protects the patient and equipment |
Values are representative educational targets; actual systems follow applicable IEC and manufacturer specifications.
Common ECG artefacts and mitigation
| Artefact | Typical appearance | Cause | Practical reduction |
|---|---|---|---|
| Baseline wander | Low-frequency drift | Respiration, poor contact, movement | Skin preparation, secure electrodes, high-pass filtering |
| Power-line interference | Regular 50/60 Hz ripple | Electromagnetic coupling, ground loops, high loop area | Short paired leads, reduce loop area, shielding, right-leg drive, notch filter when appropriate |
| Muscle noise | Jagged high-frequency baseline | EMG from tense or shivering muscles | Relax patient, warm environment, filtering |
| Motion artefact | Large irregular deflections | Cable pull, electrode displacement, poor adhesion | Support cables, reattach electrodes, repeat tracing |
| Lead reversal | Abnormal axis or inverted P/QRS in unexpected leads | RA/LA or precordial misconnection | Confirm labels and placement; repeat if suspected |
| AC coupling or saturation | Flattened peaks or shifted baseline | Excess electrode offset or amplifier overload | Re-prep skin, check electrode compatibility and device settings |
Recording procedure
- Confirm patient identity, explain the test and obtain cooperation.
- Position the patient comfortably, usually supine, and protect privacy.
- Expose wrists, ankles and chest; avoid placing limb electrodes over major muscle masses.
- Shave hair if needed, clean and gently abrade skin, and apply gel or adhesive electrodes.
- Locate the sternal angle and fourth intercostal space before placing V1 and V2; place V4–V6 relative to these landmarks.
- Check cable integrity, patient relaxation and absence of movement/tremor.
- Record a calibrated 10-second 12-lead tracing; inspect signal quality before the patient leaves.
- Label and document symptoms, medications and relevant clinical context; repeat poor-quality recordings.
Virtual ECG signal laboratory
75 bpm
Top trace
Bottom trace
Membrane electrophysiology
Depolarisation and repolarisation of a heart cell
Cardiac electrical activity results from changes in membrane permeability to ions. The inside and outside of a resting contractile myocyte have different charge, creating a resting membrane potential of roughly −90 mV.
Fast-response ventricular action potential
| Phase | Membrane event | Principal ion movement |
|---|---|---|
| 4 | Stable resting potential | High K⁺ permeability; inward rectifier K⁺ current helps maintain −90 mV |
| 0 | Rapid depolarisation/upstroke | Fast voltage-gated Na⁺ channels open; Na⁺ rushes inward |
| 1 | Early repolarisation/notch | Na⁺ channels inactivate; transient outward K⁺ current |
| 2 | Plateau | Ca²⁺ influx is balanced by K⁺ efflux; contraction is sustained |
| 3 | Rapid repolarisation | Ca²⁺ channels close; K⁺ leaves the cell |
Wave propagation and recovery
Depolarisation makes the cell interior less negative and then positive. Charge transfer through gap junctions excites adjacent cells, producing a propagating wavefront. Repolarisation restores the negative internal potential and prepares the cell for another action potential.
- The QRS complex reflects rapid ventricular depolarisation through the His–Purkinje system.
- The ST segment corresponds broadly to the ventricular action-potential plateau period.
- The T wave reflects ventricular recovery. Its direction is influenced by the sequence and timing of repolarisation.
Active learning
Practice, self-check and study plan
Mini-case studies
Regular narrow-complex rhythm
R–R = 0.60 s, one P wave before each QRS, PR = 0.16 s.
Noisy tracing
A 50 Hz ripple appears whenever a nearby mains-powered device is switched on.
Slow escape rhythm
No consistent P waves; regular wide QRS at about 35 bpm.
Multiple-choice self-test
Recommended study sequence
- Draw the conduction system and label the SA node, AV node, His bundle, bundle branches and Purkinje fibres.
- Memorise P, QRS and T wave events before memorising numerical intervals.
- Derive heart-rate equations from first principles: 25 mm/s → 1 small square = 0.04 s.
- Draw the acquisition block diagram and annotate each stage with one artefact it can introduce or reduce.
- Place the chest electrodes on a model or labelled diagram without looking.
- Use the simulations above to connect physiology, signal quality and clinical interpretation.
Revision
Summary and glossary
Must remember
- P = atrial depolarisation
- PR = atrial activity plus AV delay
- QRS = ventricular depolarisation
- ST = early ventricular recovery/plateau phase
- T = ventricular repolarisation
Core equations
HR = 300 / large squares
HR ≈ 6 × QRS in 10 s
Engineering priorities
- Stable electrode contact
- High input impedance
- High CMRR
- Appropriate gain and bandwidth
- Safe isolation and calibrated ADC
Glossary
Selected further reading and sources
- Rivera-Ruiz M, Cajavilca C, Varon J. Einthoven’s String Galvanometer: The First Electrocardiograph. Texas Heart Institute Journal / PMC. https://pmc.ncbi.nlm.nih.gov/articles/PMC2435435/
- Hurst JW. Naming of the Waves in the ECG, With a Brief Account of Their Genesis. Circulation. https://www.ahajournals.org/doi/10.1161/01.cir.98.18.1937
- Khan SU et al. Introduction. I—Leads, rate, rhythm, and cardiac axis. PMC. https://pmc.ncbi.nlm.nih.gov/articles/PMC1122339/
- StatPearls / NCBI Bookshelf. Physiology, Sinoatrial Node. https://www.ncbi.nlm.nih.gov/sites/books/NBK459238/
- NCBI Bookshelf. Physiology, Cardiac Repolarization Dispersion and Reserve. https://www.ncbi.nlm.nih.gov/books/NBK537194/
- Nobel Prize. Willem Einthoven – Facts. https://www.nobelprize.org/prizes/medicine/1924/einthoven/facts/