2  ECG Measurement Hardware

The ECG is a signal with an amplitude of only a few mV. Meanwhile, AC noise from power lines rides on the body at hundreds of mV to several V, and DC potentials of hundreds of mV arise at the electrodes. Extracting a small signal from among large interferers is the job of the ECG amplifier.

2.1 Electrodes: converting ionic current into electronic current

Inside the body, electricity is carried by ions; in the measuring circuit, it is carried by electrons. The electrode performs this conversion.

2.1.1 Ag/AgCl electrodes

The most widely used electrodes in clinical practice are Ag/AgCl electrodes, silver with a silver chloride coating, combined with an electrolyte gel containing chloride ions.

\mathrm{AgCl} + e^- \rightleftharpoons \mathrm{Ag} + \mathrm{Cl}^-

  • Because this reaction proceeds reversibly and quickly, the electrode potential barely changes even when current flows (close to a non-polarizable electrode)
  • As a result, potential changes due to movement (motion artifacts) and low-frequency noise are small

2.1.2 Half-cell potential and DC offset

A potential difference called the half-cell potential arises at the electrode–electrolyte interface (about 0.22 V for Ag/AgCl). If the half-cell potentials of the two electrodes were exactly equal they would cancel, but in practice they differ due to skin condition and differences in gel, producing a DC offset of several mV to hundreds of mV.

  • ECG equipment is required to measure without saturating even with a DC offset of about ±300 mV (IEC 60601-2 series standards)
  • For this reason, a common design keeps the first-stage gain low and amplifies strongly only after removing the DC component

2.1.3 Skin–electrode impedance

The outermost layer of the skin (stratum corneum) conducts poorly, and there is an impedance of several kΩ to several MΩ between the electrode and the skin.

  • Skin preparation (alcohol wipe, light abrasion) and gel lower the impedance
  • Dry electrodes (wearable smartwatches, heart-rate chest straps) have high and variable impedance → the amplifier’s input impedance must be very high

2.2 Differential amplification: amplifying only the difference between two points

flowchart LR
  subgraph Body["Body"]
    ECG["ECG<br/>(differential signal, mV)"]
    CM["Mains noise<br/>(common-mode signal, ~V)"]
  end
  Body -->|"Electrode +"| INA["Instrumentation amplifier<br/>(differential amplification)"]
  Body -->|"Electrode −"| INA
  INA --> Out["Output<br/>= G × (V+ − V−)<br/>+ leakage of common-mode noise"]
  DRL["Driven right leg circuit (DRL)"] -->|"current that cancels<br/>the common-mode voltage"| Body
  INA -.->|"detects common-mode voltage"| DRL

There is capacitive coupling between power lines (100 V, 50/60 Hz) and the body, so the potential of the whole body swings at the mains frequency. This swing appears at the two electrodes with almost the same magnitude at the same time (common-mode signal), whereas the ECG appears as the difference between the two electrodes (differential signal).

An instrumentation amplifier is an amplifier designed to amplify only the differential signal and reject the common-mode signal.

2.2.1 CMRR (common-mode rejection ratio)

How well common-mode signals are rejected is expressed by the CMRR (common-mode rejection ratio).

\mathrm{CMRR} = 20 \log_{10} \frac{G_{\mathrm{diff}}}{G_{\mathrm{cm}}}\ [\mathrm{dB}]

Referred to the input, a common-mode voltage V_{\mathrm{cm}} appears at the output as a spurious differential signal of magnitude V_{\mathrm{cm}} / 10^{\mathrm{CMRR}/20}.

TipTry it
  1. With a common-mode voltage of 1 V and a CMRR of 60 dB, what percentage of the R wave is the mains noise? At 100 dB?
  2. Even with a CMRR of 120 dB, what happens if there is an electrode impedance imbalance of 50 kΩ? Confirm that amplifier performance alone does not solve the problem

At a CMRR of 60 dB (1000×), a 1 V common-mode voltage becomes a 1 mV spurious signal — noise as large as the R wave. At 100 dB (100,000×), it is 0.01 mV (1%).

However, if the contact impedances of the two electrodes differ, the common-mode voltage is converted into a differential signal before it enters the amplifier (because the voltage division by the electrode impedance and the amplifier’s input impedance differs between the two inputs). This cannot be removed by the amplifier’s CMRR. This is why mains noise tends to be a problem in wearables with dry electrodes. The countermeasures are to raise the input impedance, lower the common-mode voltage itself (driven right leg), and improve electrode contact.

2.2.2 Driven right leg circuit (DRL)

The driven right leg circuit detects the average potential of the two electrodes (the common-mode voltage), inverts and amplifies it, and feeds it back into the body through the right-leg electrode, reducing the body’s common-mode voltage itself. The name comes from the use of the right-leg electrode in the 12-lead ECG.

2.3 Types of noise and countermeasures

Noise Frequency Cause Main countermeasures
Mains noise (hum) 50 Hz (eastern Japan) / 60 Hz (western Japan) and harmonics Capacitive coupling and electromagnetic induction from power lines Differential amplification and high CMRR, DRL, shielding, notch filter
Baseline wander ~1 Hz and below Respiration, body movement, changes in electrode polarization High-pass filter, securing electrodes
Electromyogram (EMG) About 20 to several hundred Hz Skeletal muscle activity (tremor, tension) Rest, low-pass filter (limited because the band overlaps QRS)
Motion artifacts Includes bands that overlap QRS Relative displacement between electrode and skin Securing electrodes, Ag/AgCl with gel, adaptive filters
Poor electrode contact Irregular, large amplitude Dried gel, detachment Replace electrodes, lead-off detection
ImportantKey point

Motion artifacts and EMG overlap the frequency band of the ECG itself, so they cannot be completely removed with frequency filters. Suppressing them at the hardware level (electrodes, fixation) is the most effective approach.

2.4 Safety

Because an electrocardiograph connects electrodes directly to the human body, a design that prevents electric shock from leakage current is essential.

  • Isolate the parts connected to the patient from the power supply (isolation amplifiers, isolated power supplies)
  • Leakage-current limits are specified in IEC 60601-1 for each classification, such as whether the device contacts the body surface (type BF) or may directly contact the heart (type CF)
  • With catheters and the like that connect directly to the heart, even tiny currents that would not be felt on the body surface can cause ventricular fibrillation (microshock)
WarningWhen measuring people with a homemade circuit

Even when measuring with a homemade circuit for learning, the basic rule is to run it on batteries and electrically isolate it from mains-connected equipment (such as a PC). Avoid measuring while it is connected via USB to a PC that is charging.

2.5 Summary

  • Ag/AgCl electrodes: nearly non-polarizable, low noise. Beware of the DC offset (~±300 mV) due to half-cell potentials
  • Instrumentation amplifier: amplifies the differential signal and rejects the common-mode signal (mains noise). Performance is expressed by the CMRR
  • Electrode impedance imbalance causes common-mode → differential conversion, which cannot be removed by the CMRR
  • The driven right leg lowers the common-mode voltage itself
  • EMG and motion noise overlap the ECG band and cannot be removed by filtering alone