HomeMedicine & BiophysicsPan-Tompkins QRS Detector 2D: ECG Strip-Chart & Poincaré Plot

Pan-Tompkins QRS Detector 2D: ECG Strip-Chart & Poincaré Plot

Interactive 2D simulation of the Pan-Tompkins QRS-detection pipeline used inside wearable ECG monitors: scrolling strip-chart panels for the bandpass, derivative, squaring and moving-window-integration stages drive an adaptive dual threshold that finds every heartbeat under motion-artifact noise, flags premature (ectopic) beats, and plots RR-interval variability on a live Poincaré scatter.

Medicine & Biophysics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-wearable-ecg-arrhythmia-detection ↗ Open standalone

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 2D simulation renders the classic Pan-Tompkins pipeline — bandpass filter, five-tap derivative, squaring and moving-window integration with a self-calibrating adaptive dual-threshold — as four scrolling oscilloscope strip charts driven by 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 on a live Poincaré scatter, while readouts track instantaneous BPM, RMSSD heart-rate variability, and the running adaptive threshold the detector uses to decide "beat" versus "noise".

⚙ Under the hood

Interactive 2D simulation of the Pan-Tompkins QRS-detection pipeline used inside wearable ECG monitors: scrolling strip-chart panels for the bandpass, five-tap derivative, squaring and moving-window-integration stages drive a self-calibrating adaptive threshold that finds every heartbeat under motion-artifact noise, flags premature (ectopic) beats, and plots RR-interval variability on a live clinical Poincaré scatter.

ECGsignal processingwearable devicesarrhythmiabiomedical engineeringcardiologyPoincaré plot2D

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)