SBE I - Biomedical Data Science (580.421/721) : Ren e Vidal September 7, 2018
SBE I - Biomedical Data Science (580.421/721) : Ren e Vidal September 7, 2018
SBE I - Biomedical Data Science (580.421/721) : Ren e Vidal September 7, 2018
421/721)
René Vidal
September 7, 2018
1 Introduction
1.1 What is Biomedical Data Science?
Data −→ Machine/Algorithm −→ Prediction
(EEG/ECG, (Cell phenotype,
Calcium Imaging, dMRI, AP shape / Spiking Activity,
Surgical data, Surgeon Skill,
Electronic health records, ...) Diagnosis/Prognosis,...
1.5 Textbooks
• Gonzalez, Woods. Digital Image Processing, 2018.
• Vidal, Ma, Sastry. Generalized PCA, 2016.
• Bishop. Pattern Recognition and Machine Learning, 2006.
1
2 Biomedical Signal Processing
2.1 Delta function
(
1 n=0
δ[n] = (1)
0 else
2.3 Convolution
∞
X
(x ∗ h)[n] = x[k]h[n − k] (3)
k=−∞
• Time-invariance: Define y[n] = Ł(x[n]), x1 [n] = x[n − k] and y1 [n] = y[n − k].
y[n − k] = ay[n − k − 1] + x[n − k]
y1 [n] = ay1 [n − 1] + x1 [n] = Ł(x1 [n]).
2
2.6 Z transform
The Z transform is defined as
∞
X
H(z) = h[k]z −k , (8)
k=−∞
also referred to as Z{h[n]}. The response of a LTI system to exponential inputs (x[n] = z n with z ∈ C) can be written
in terms of the Z transform of the impulse response h[n] of the system
∞
X
y[n] = Ł(x[n]) = h[k]x[n − k]
k=−∞
X∞
= h[k]z n−k
k=−∞
(9)
∞
X
= z n
h[k]z −k
k=−∞
= z n H(z)
Example: Z transform of the delta function
∞
X
Z{δ[n]} = δ[k]z −k
k=−∞
(10)
= δ[0]z 0 = 1
∞
X
Z{δ[n − m]} = δ[k − m]z −k
k=−∞
(11)
m −m
= δ[m]z =z
Based on LTI properties: Z{x[n − m]} = z −m Z{x[n]}
Example: Z transform of the impulse response of system y[n] = Ł(x[n]) = ay[n − 1] + x[n].
Impulse response h[n] = an for n ≥ 0
∞
X
Z{h[n]} = H(z) = ak u[k]z −k
k=−∞
∞
X k (12)
= (az −1 )
k=0
1
= for |z| > |a|
1 − az −1
Example: Find the response of system y[n] = ay[n − 1] + x[n] to the input x[n] = 0.5n .
This could be done by explicit convolution, or using equation (9) as follows:
n
y[n] = Ł(0.5n ) = (0.5) H(z = 0.5)
n 1
= (0.5) a
1− (13)
n+1
0.5
(0.5)
=
0.5 − a
3
2.7.1 Denoising
Example of average filter:
1
y[n] = (x[n − 1] + x[n − 2] + ... + x[n − K])
K
K
X 1
= x[n − k]
K (14)
k=1
X ∞
= h[k]x[n − k],
k=−∞
1
(
1≤n≤K
where the filter is h[n] = K
0 else
( 1 n=0
with h[n] = −1 n=1 .
0 else
( −1 n=0
with h[n] = 1 n = −1 .
0 else
The outcome of an edge detector based on differences can be strongly affected by noise. In general a denoising
filter (moving average, for example) is applied before computing differences.