ECG
How recording the heart's electrical activity from skin electrodes shows rhythm, rate and conduction, and reveals arrhythmias, ischemia and other cardiac conditions.
What it is
An electrocardiogram (ECG or EKG) is a recording of the electrical activity of the heart over time, made by electrodes placed on the skin. Each heartbeat is triggered by an electrical impulse that spreads through the heart muscle, and the resulting tiny voltage changes (about 1 mV at the body surface) appear as a characteristic waveform. The ECG is a safe, painless, fast and inexpensive test, and is the most widely used cardiac diagnostic tool, from the clinic to wearable devices.
It answers questions such as: Is the heart rhythm regular, and what is the heart rate? Is there atrial fibrillation, a conduction block or a dangerous arrhythmia? Are there signs of a heart attack (myocardial infarction), reduced blood supply (ischemia) or enlarged heart chambers? How do drugs or electrolyte disturbances such as potassium affect the heart? In research, the ECG is used to measure heart rate variability (a marker of autonomic nervous system activity), to monitor animals and in stress tests, and in biomedical engineering for developing signal-processing and wearable technology.
Fundamentals
The cardiac conduction cycle
The heartbeat starts at the sinoatrial (SA) node, the natural pacemaker, and the impulse spreads across the atria (causing atrial depolarization), pauses at the atrioventricular (AV) node, and then travels rapidly down the His bundle and Purkinje fibers to depolarize the ventricles. Muscle cells depolarize (rapid inward sodium current), plateau (calcium) and repolarize (potassium). The body acts as a volume conductor, so these waves of depolarization and repolarization produce voltages measurable at the skin, as the net electrical vector of the heart changes during each cycle.
The ECG waveform
A normal beat has these components:
- P wave: atrial depolarization (about 80–100 ms duration).
- PR interval: time from atrial onset to ventricular onset, including AV nodal delay (120–200 ms).
- QRS complex: ventricular depolarization (normally 80–120 ms), a sharp spike formed by Q, R and S deflections.
- ST segment: the plateau phase between depolarization and repolarization, normally close to baseline, with elevation or depression indicating ischemia or injury.
- T wave: ventricular repolarization.
- QT interval: total ventricular electrical activity, corrected for heart rate (QTc, for example by Bazett: QTc = QT/√RR, with RR in seconds), prolonged QTc increases the risk of dangerous arrhythmias.
Heart rate is obtained from the R–R interval: HR (bpm) = 60 / RR (s), normally 60–100 bpm at rest in adults.
Leads and the 12-lead ECG
Each lead is a view of the heart’s electrical activity from a particular direction, measuring the potential difference between electrodes. The standard 12-lead ECG uses 10 electrodes (4 limb and 6 chest) to generate: three bipolar limb leads (I, II, III, described by Einthoven’s triangle, with I + III = II), three augmented limb leads (aVR, aVL, aVF) and six precordial chest leads (V1–V6). Together they view the heart in the frontal and horizontal planes. A depolarization wave moving toward a positive electrode produces an upward deflection, and away from it a downward deflection. Lead groupings correspond to heart regions (II, III, aVF inferior; V1–V4 anterior and septal; I, aVL, V5–V6 lateral), so the location of ST changes shows which coronary artery territory is affected. The mean electrical axis of the QRS (normally −30° to +90°) is derived from the limb leads.
Instrumentation and signal quality
An ECG amplifier is a differential instrumentation amplifier with high input impedance (over 10 MΩ), high common-mode rejection (above 90 dB), and patient isolation for safety. Signals are filtered (diagnostic bandwidth 0.05–150 Hz; monitoring 0.5–40 Hz) and sampled at 250–1,000 Hz. Ag/AgCl gel electrodes reduce skin–electrode impedance and motion artifacts. Right-leg drive circuits reduce common-mode interference by actively feeding back an inverted signal. Typical sources of noise are 50/60 Hz mains interference, baseline wander from respiration, electromyographic interference from muscle tension and motion artifacts, which are minimized by good electrode contact, relaxed posture and appropriate filtering.
Ambulatory and wearable ECG
Holter monitors record continuous ECG for 24–72 hours, event recorders and implantable loop recorders detect infrequent arrhythmias, and patches, chest straps, smartwatches and smartphone devices record single-lead ECG for rhythm detection, particularly atrial fibrillation screening. Photoplethysmography complements these, but cannot give the detailed electrical information of an ECG.
Analysis
Automated algorithms detect R peaks (Pan–Tompkins algorithm: band-pass filter, differentiation, squaring and moving-window integration), classify beats and detect arrhythmias, and deep-learning models now match or exceed clinicians in some classification tasks. Heart rate variability (HRV) analysis uses time-domain measures (SDNN, RMSSD) and frequency-domain measures (LF and HF power) computed from the R–R series. Signal-averaged ECG and high-resolution ECG detect micro-potentials and late potentials.
Typical applications and limits
Clinical interpretation follows a systematic approach to rate, rhythm, axis, intervals, morphology and ST–T changes. ECG has limited sensitivity for some conditions (for example, a normal resting ECG does not exclude coronary disease), can be affected by electrode misplacement, drugs and electrolyte abnormalities, and needs correlation with symptoms and other tests such as echocardiography.
Basic operation
- Prepare the patient. Explain the test, have the patient lie supine and relaxed, expose the chest and limbs, and shave excess hair if needed.
- Prepare the skin. Clean with alcohol and lightly abrade for good contact, and dry the skin.
- Place the electrodes. Attach the limb electrodes on wrists and ankles (or torso equivalents) and the chest electrodes V1–V6 at standard positions (V1 at the fourth intercostal space right of the sternum, V4 at the fifth intercostal space in the mid-clavicular line).
- Connect and check. Attach lead wires and look for a stable baseline without noise.
- Set standard parameters. Use paper speed of 25 mm/s and gain of 10 mm/mV, and verify the calibration pulse.
- Record. Ask the patient to remain still and breathe normally, and record 10 seconds of all 12 leads (longer rhythm strip if needed).
- Review and label. Check quality, label with patient identity and time, and repeat if artifacts obscure the trace.
- Collect the output. You obtain the 12-lead trace with measurements of rate and intervals; interpretation steps and arrhythmia recognition are covered in the video.
Good practice
- Place electrodes accurately. Misplaced chest leads can simulate disease.
- Reduce artifacts. Keep the patient still and warm, and ensure firm contact.
- Use a systematic reading method. Do not rely only on automated interpretation.
- Compare with previous tracings. New changes are often more significant than stable abnormalities.
- Correct QT for heart rate. Use a consistent formula.
- Observe electrical safety and hygiene. Use certified, isolated equipment, and disinfect reusable leads between patients.
Key terms
- QRS complex — the waveform of ventricular depolarization.
- ST segment — the interval between ventricular depolarization and repolarization, sensitive to ischemia.
- Lead — a view of the heart’s electrical activity from a specific electrode combination.
- Sinus rhythm — the normal rhythm originating in the SA node.
- Arrhythmia — an abnormal heart rhythm.
- QTc — heart-rate-corrected QT interval.
- Heart rate variability (HRV) — variation in time between consecutive heartbeats.
Video coming soon
About five minutes on ECG: how it works in detail, how the data is acquired, and how it is analyzed.
More in 2.9 Biomedical Imaging and Signal Recording
