02 DSP
02 DSP
Signal Processing
Vipul Arora
Real world signals
SAMPLE
Exercise:
What is 𝐹𝑠
(sampling rate)?
QUANTIZE
Time Series
• 𝒉 ∈ ℝ𝐷 , generally 𝐷 ≪ 𝑀
• Reduced dependency
Convolution: with zero padding
Cross-correlation
𝑦 𝑛 = 𝑥 𝑛 ⨂ℎ 𝑛 = 𝑥 𝑚 ℎ 𝑚 − 𝑛
𝑚
Auto Correlation,
i.e., cross-correlation
with itself
= +
_ _
2 2
Periodic Signals – a sinusoid
A sinusoid is:
• f = k/N
• For N samples, we can go upto N sinusoidal components
• How to estimate X[k] and 𝜙[k]?
Fourier Transforms
Discrete Fourier Transform (DFT)
Note: 𝑛 = 0, … , 𝑁 − 1
∞
𝑋 𝑒 𝑗𝜔 = 𝑥 𝑛 𝑒 −𝑗𝜔𝑛
𝑛=−∞
1 𝜋
𝑥𝑛 = න 𝑋 𝑒 𝑗𝜔 𝑒 𝑗𝜔𝑛 𝑑𝜔
2𝜋 −𝜋
• If 𝑥[𝑛] is real,
• 𝑋 −𝑘 = 𝑋 ∗ 𝑘 , i.e.,
• 𝑋 𝑘 is an even function
• ∠ 𝑋 𝑘 is an odd function
• Analysis of periodicity
• Compact
• Disentangles
Discrete Fourier Transform
• This representation is valid if the signal is stationary, i.e., its
characteristics do not change with time
• How about a non-stationary signal? a mess?
x[n] = sin(2𝜋 * f * n); where, f varies from 2/32 to 8/32 linearly with n
Discrete Fourier Transform
f = 2/32 f = 4/32 f = 8/32
x[n] = sin(2𝜋 * f * n)
A Quasi-stationary Signal
almost stationary in small intervals
Short time Fourier Transform
for quasi-stationary signals
Short-time Fourier Transform (STFT)
• Intuitively,
SPEEC
window size,
W
TIME
Hop size,
ACOU
H
Short-time Fourier Transform (STFT)
f = 2/32 f = 4/32 f = 8/32
5
3
x[n] = sin(2𝜋 * f * n) W = 32
A Quasi-stationary Signal H=1
• Mathematically,
SPEECH WAVEFORM
m=0 m=2
m=1 TIME FRAMES
ACOUSTIC FEATUR
k
Window
Sharp
discontinuities
in signal cause
more side
lobes in |X[k]|
Spectrogram with windowing
Fast Fourier Transform
• https://www.youtube.com/watch?v=_FatxGN3vAM
Topics studied