Process / pipelineBiomechanicsBiomedical signal processingPipeline

Pan-Tompkins QRS Detection

Also known as: QRS detection, R-peak detection, Heartbeat detection

OriginatorJiapu PanYear1985Sources2Related methods6

The Pan-Tompkins algorithm is a real-time QRS detection method for electrocardiograms (ECGs) that identifies the R-peaks (ventricular depolarization) and QRS complexes from continuous cardiac waveforms. Published by Jiapu Pan and Willis Tompkins in 1985, it remains a standard reference for ECG processing and is widely implemented in clinical monitoring systems.

Key highlights

  • Computationally efficient for real-time implementation
  • Robust to baseline drift and noise within the typical ECG frequency range
  • Does not require training data; uses statistical adaptation
  • High sensitivity (>99%) and specificity on standard ECGs

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use Pan-Tompkins when you need robust, real-time QRS detection from ECG signals in clinical or research settings. It is effective on standard 12-lead or single-lead ECGs, especially in controlled environments with moderate noise. Assumptions include ECG lead quality, sampling rate sufficient for QRS resolution (>200 Hz), and relatively regular rhythms. For heavily arrhythmic signals or with severe baseline wander, adaptive variants may be necessary.

Strengths & limitations

Strengths
  • Computationally efficient for real-time implementation
  • Robust to baseline drift and noise within the typical ECG frequency range
  • Does not require training data; uses statistical adaptation
  • High sensitivity (>99%) and specificity on standard ECGs
Limitations
  • Performance degrades with severe ectopic beats or arrhythmias
  • Sensitive to high-frequency noise (e.g., muscle artifact) if not properly filtered
  • May double-detect T-waves or other high-amplitude features with high heart rates
  • Bandpass filter parameters are fixed; poor generalization across highly variable signal morphologies

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

What is the difference between QRS detection and ECG interpretation?

QRS detection identifies the timing of ventricular depolarization (R-peaks); ECG interpretation assigns diagnoses (MI, arrhythmia, etc.) based on waveform morphology and timing. Detection is a prerequisite for interpretation.

Can the Pan-Tompkins algorithm handle atrial fibrillation?

It can identify R-peaks in atrial fibrillation, but irregular RR intervals and baseline variations may reduce sensitivity. Adaptive thresholds help; specialized arrhythmia detection may be needed for diagnosis.

What sampling rate is needed for accurate QRS detection?

At least 200 Hz is recommended for proper resolution of the QRS complex (which typically lasts 80–120 ms). Higher rates (250–1000 Hz) provide better noise rejection and morphology detail.

Sources

  1. 1.
    Pan, J., & Tompkins, W. J. (1985). A real-time QRS detection algorithm. IEEE Transactions on Biomedical Engineering, BME-32(3), 230-236.
  2. 2.
    Clifford, G. D., Azuaje, F., & McSharry, P. E. (2006). ECG statistics, noise, artifacts, and missing data. Advanced Methods and Tools for ECG Data Analysis, 1, 1-41.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). Pan-Tompkins QRS Detection. ScholarGate. https://scholargate.app/biomechanics/pan-tompkins-qrs-detection