BEAT
Raw ECG (+ noise) Bandpass filtered Derivative² (squared) Moving-window integral
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Pan-Tompkins QRS Detector: Wearable ECG Beat-Detection Pipeline

Every consumer ECG wearable has to solve the same real-time signal-processing problem before it can say anything about arrhythmia: find the R-peak of every heartbeat in a single noisy lead, on-device, with no lag. This simulation renders the classic Pan-Tompkins pipeline — bandpass filter, derivative, squaring, moving-window integration and an adaptive dual-threshold — as four stacked 3D ribbons scrolling in real time from a synthetically generated ECG (Gaussian-sum P-QRS-T morphology with beat-to-beat sinus jitter). Dial in motion-artifact noise to see the bandpass stage fight baseline wander, or add ectopic (PVC) beats to watch the RR-interval-ratio rule flag them, while live readouts track instantaneous BPM, RMSSD heart-rate variability, and the running adaptive threshold the detector uses to decide "beat" versus "noise".