Pan-Tompkins QRS Detector: Wearable ECG Beat-Detection Pipeline
Interactive 3D simulation of the Pan-Tompkins QRS-detection pipeline used inside wearable ECG monitors: bandpass filter, derivative, squaring and moving-window integration drive an adaptive threshold that finds every heartbeat under motion-artifact noise, flags premature (ectopic) beats, and computes live BPM and HRV.
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".
Interactive 3D simulation of the Pan-Tompkins QRS-detection pipeline used inside wearable ECG monitors: bandpass filtering, derivative, squaring and moving-window integration drive an adaptive threshold that finds every heartbeat under motion-artifact noise and flags premature (ectopic) beats.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install