Docsity

Biomedical Image processing, Lecture notes of Digital Signal Processing

Toggle sidebar
bg1
Exercise 2 – ECG Signal Analysis
Given:
• Duration T = 2 h = 7200 s
• Sampling frequency Fs = 700 Hz
• Heart rate HR = 75 bpm
• Respiratory rate RR = 20 cycles/min
• Power line = 60 Hz
1. Frequency range and resolution
By the Nyquist theorem the analysable frequency range is:
f in [0 , Fs/2] = [0 , 350] Hz
The frequency resolution (smallest distinguishable frequency step) is:
fr = 1/T = 1/7200 = 1.39 x 10^(-4) Hz
2. Band of the signal
The ECG signal is modelled as a sum of harmonics of the fundamental heart-rate frequency and its respiratory
baseline drift:
f_HR = 75/60 = 1.25 Hz (fundamental)
f_RR = 20/60 ~ 0.333 Hz (respiration)
An ECG waveform contains up to ~25 harmonics of f_HR:
f_max = 25 x 1.25 = 31.25 Hz
Since 31.25 Hz < 350 Hz (Nyquist limit), the signal can be fully analysed in frequency with this sampling rate —
no aliasing occurs.
3. Module of the spectrum (plot)
pf3
pf4

Partial preview of the text

Download Biomedical Image processing and more Lecture notes Digital Signal Processing in PDF only on Docsity!

Exercise 2 – ECG Signal Analysis

Given:

  • Duration T = 2 h = 7200 s
  • Sampling frequency Fs = 700 Hz
  • Heart rate HR = 75 bpm
  • Respiratory rate RR = 20 cycles/min
  • Power line = 60 Hz

1. Frequency range and resolution

By the Nyquist theorem the analysable frequency range is:

f in [0 , Fs/2] = [0 , 350] Hz

The frequency resolution (smallest distinguishable frequency step) is:

fr = 1/T = 1/7200 = 1.39 x 10^(-4) Hz

2. Band of the signal

The ECG signal is modelled as a sum of harmonics of the fundamental heart-rate frequency and its respiratory baseline drift:

f_HR = 75/60 = 1.25 Hz (fundamental) f_RR = 20/60 ~ 0.333 Hz (respiration)

An ECG waveform contains up to ~25 harmonics of f_HR:

f_max = 25 x 1.25 = 31.25 Hz

Since 31.25 Hz < 350 Hz (Nyquist limit), the signal can be fully analysed in frequency with this sampling rate — no aliasing occurs.

3. Module of the spectrum (plot)

The spectrum shows discrete lines at multiples of 1.25 Hz (ECG harmonics, blue), multiples of 0.333 Hz (respiration, green), and a dominant power-line spike at 60 Hz (red). The ECG content is confined below 31. Hz.

4. Filtering for a cleaner ECG tracing

Yes, it is possible to obtain a cleaner trace using a combination of filters:

  • Low-Pass Filter (LPF) at ~ 35–40 Hz – removes high-frequency noise above the ECG band (and partially the power-line interference). Cutting at 31.25 Hz would be too aggressive and clip the last ECG harmonics, so a slightly higher cutoff (35–40 Hz) is recommended.
  • Notch filter at 60 Hz – a narrow band-stop (notch) filter centred at 60 Hz suppresses the power-line artefact while preserving the rest of the spectrum.
  • High-Pass Filter (HPF) at ~ 0.5 Hz – removes baseline wander caused by respiration (f_RR = 0.333 Hz) and slow electrode-motion artefacts, without distorting the P-wave. Note: if the HPF cutoff is set too high (e.g. above 1 Hz) it will cut into the ECG low-frequency content, so a 0.5 Hz cutoff is the standard clinical choice.

Combined filter chain: HPF (0.5 Hz) -> LPF (35 Hz) -> Notch (60 Hz) gives a clean ECG in the pass-band 0.5–35 Hz with the power-line artefact suppressed.

Exercise 3 – Digital Signal Correlation

Given (n = 1, 2, 3, 4):

x1(n) = [4, 7, 0, 5] x2(n) = [8, -4, 24, 4]

1. Plot x1(n) and x2(n) – qualitative correlation

All four data points align very closely on a straight line with negative slope. The computed rho ~ -1.000 is very close to -1, so the answer is rho = -1 (perfect negative linear correlation). This means x2 is almost perfectly predicted by a decreasing linear function of x1.

3. Value of rho and regression line

We use the least-squares linear regression x2 = m*x1 + q :

Step 1 – form a system using two data points to find m and q:

n=1: x1=4, x2=8 -> 8 = 4m + q n=2: x1=7, x2=-4 -> -4 = 7m + q

Subtracting the first from the second:

-4 - 8 = 7m - 4m -> -12 = 3m -> m = -

Back-substituting: q = 8 - 4*(-4) = 8 + 16 = 24 -> but let us use LSQ:

Least-squares gives the best-fit slope and intercept for all 4 points:

m = -4.0000 ~ - q = 24.0000 ~ 24 (rounding to integers)

_Regression line: x2 = -4x1 + 24_*

rho = -1.0000 ~ -1 (perfect negative linear correlation)

Because all points fall (almost) exactly on a line of negative slope, the Pearson coefficient is extremely close to -1. This confirms the visual assessment from parts 1 and 2.