Research Article

Designing an Optimum and Reduced Order Filter for Efficient ECG QRS Peak Detection and Classification of Arrhythmia Data

Algorithm 1

Pan–Tompkins.
(1)Load ECG data
(2)Parameter Deceleration Fs,
(3)32 order low pass Filter
    = 1/32[1 0 0 0 0 0–2 0 0 0 0 0 1];,  = [1–2 1];
(4)32 order high pass filter.
b = [−1/32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
   −1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1/32];, a = [1–1];
(5)Derivative filter
  b = [1/4 1/8 0–1/8–1/4]; a = [1];
(6)Apply average filter and take threshold
  threshold = mean(sigAV);
   P_G = (sigAV>0.01);
(7)Peak detection RR(t), R-lo
 End algorithm