# 07 ECG Analysis 1 - QRS Detection.ppt [Compatibility Mode]

July 7, 2017 | Author: xkurt358792 | Category: Filter (Signal Processing), Low Pass Filter, Electrocardiography, Heart Rate, Frequency

#### Description

SEB4233 Biomedical Signal Processing

ECG Analysis 1: QRS Detection

Dr. Malarvili Balakrishnan

1

ECG Signal Characteristics  Relative power spectrum of QRS complex, P and T waves, muscle noise and motion artifacts.

2

QRS Detection Algorithm ECG

Lowpass Filter

Highpass Filter

Bandpass Filter (IIR)

Differentiator

Squaring Operation

QRS DETECTION ALGORITHM REF: J. Pan & W. Tompkins, “A Real-Time QRS Detection Algorithm”, IEEE Transactions on Biomed. Eng.

Moving Average Filter

Output

3

QRS Detection Algorithm...(cont)  Bandpass filter-cascaded lowpass filter and highpass filter to isolate the predominant QRS energy centered at 10 Hz. Energy of QRS is between 5Hz-15Hz. (Thakor et. al., 1983)  Lowpass filter:Eliminate noise such as the EMG and 50Hz power line noise  Cutoff frequency=11Hz  y[n] = 2y[n-1] - y[n-2] + x[n] - 2x[n-6] + x[n-12]

4

QRS Detection Algorithm...(cont)  Highpass filter:  Eliminate motion artifacts, P wave and T wave .  Cutoff frequency = 5Hz  y[n] = y[n-1] - x[n]/32 + x[n-16] - x[n-17] + x[n-32]/32

5

QRS Detection Algorithm...(cont)  Differentiation: To obtain information on slope and overcome the baseline drift problem.  Accentuates QRS complexes relative to P & T wave – 8y[n] = 2x[n] + x[n-1] - x[n-3] - 2x[n-4]

 Squaring  Emphasizes the higher frequency component and attenuates the lower frequency component. – y[n] = x[n]2 6

QRS Detection Algorithm...(cont)  Moving Average filter  Acts as a smoother and performs a moving window integrator over 150ms. – y[n] = (x[n-(N-1)]) + x[n-(N-2)] + ............. + x[n])/N » N:length of MA filter

7

QRS Detection Algorithm...(cont)

8

e d u itl p m A

5000 0 -5000 -10000

1000 e d 0 u tli p -1000 m A -2000

1200

1400

1600

1800 samples

2000

2200

2400

6

1200

1400

1600

1800 samples

2000

2200

2400

5

1200

1400

1600

1800 samples

2000

2200

2400

1200

1400

1600

1800 samples

2000

2200

2400

x 10 3 e d 2 tu lip m 1 A 0

x 10 e 10 d u itl 5 p m A 0

Figure: a.) The digitized ECG signal, ECG (k). Effects of b.) after band pass filtering. c.) after band pass filtering and differentiating. d.) after band pass filtering, differentiating and squaring. e.) the final process; after band pass filtering, differentiating, squaring and moving average filter. 9

Data from HUKM

10

QRS Detection Algorithm...(cont)  The QRS complex is detected when the slope amplitude is within the threshold.  Heart rate is calculated according to the formulae below: Heart rate(bpm)= (60 000*fs)/R-R interval(ms) (fs = 450Hz)

11