Explore the signal, stage by stage

Compare four electrode views, align maternal beats, and dial the subtraction up or down. The geometry view turns each voltage sample and its delayed copy into a point on a loop. Open the interactive presentation →

From voltage to heart rate

Watch the mint abdominal trace change as the violet maternal template is subtracted. The gold peaks are the reconstructed fetal beats. This silent animation uses the actual voltages from record r01.

Follow one beat

Five aligned voltage traces of record r01, showing the abdominal input, filtered signal, maternal template, residual, and reconstructed fetal ECG. Five fetal peaks align with scalp annotations.

Read down the figure at 32 seconds. All five rows cover the same 2.5 seconds, with a separate voltage scale for each row.

  1. Clean the recording. A sliding median removes slow baseline drift and a 50 Hz notch reduces mains interference. At 32.003 s, the large maternal spike still measures −65.2 µV.
  2. Subtract the maternal beat. The de-shape short-time Fourier transform tracks the maternal rhythm. The engine aligns beats and estimates their shapes using the pointwise median of up to 40 similar beats. At 32.003 s the maternal estimate is −59.6 µV. Subtraction leaves −5.6 µV.
  3. Locate the fetal beat. The engine tracks the fetal rhythm in the residual and reconstructs the waveform from aligned fetal beats. It places one beat at 32.172 s. The independent scalp annotation places it at 32.174 s. All five detected beats in this strip fall within 2–3 ms of their annotations.

Two adjacent fetal peaks land at 32.172 s and 32.637 s. Their spacing is 0.465 s, which gives 60 ÷ 0.465 ≈ 129 BPM for that interval. The watch displays a rate from the frequency ridge over the five-second frame. Here that frequency is 2.167 Hz, or 130 BPM.

Accuracy across five recordings

The evaluator used the first abdominal lead for every recording. It processed five-second windows and scored the central 2.5 seconds of each, covering 297.5 seconds per record. A detection counted once if it fell within 50 ms of a reference fetal beat.

Record Fetal beat F1 Mean absolute fetal rate error
r01 (shown above) 0.949 2.90 BPM
r04 0.351 50.38 BPM
r07 0.322 60.02 BPM
r08 0.875 6.90 BPM
r10 0.918 2.04 BPM
Pooled 0.661 24.56 BPM

The example strip comes from the best-scoring record. Across all five, the detector recovered 2,292 of 3,162 annotated beats (72.5% recall) and returned 1,483 extra detections (60.7% precision). F1 combines precision and recall. The rate comparison used the median annotated beat interval in each central window and covered 592 of 595 windows. These results measure fetal beat timing and heart rate. Waveform fidelity and clinical performance remain unvalidated. Download the per-record scores (CSV)

References

  • Li Su and Hau-Tieng Wu describe the de-shape transform, beat tracking and nonlocal median used for extraction. Method paper, 2017
  • The recordings and cardiologist-verified fetal beat annotations come from the Medical University of Silesia’s Abdominal and Direct Fetal ECG Database, version 1.0.0, distributed by PhysioNet. Dataset · Jezewski et al., 2012 · Data attribution license