0% found this document useful (0 votes)
73 views

Lecture1 PDF

This document provides an overview of a course on discrete-time signal processing (DSP) taught by Professor Chu-Song Chen at the Institute of Information Science, Academia Sinica and the Institute of Networking and Multimedia, National Taiwan University in Fall 2006. The summary includes: 1) The document outlines what signals are, different types of signals (continuous-time, discrete-time, 1D, 2D, 3D), and how discrete-time signals can arise from sampling continuous signals. 2) It provides examples of DSP applications and lists typical application areas like communications, consumer electronics, medical diagnostics, and engineering. 3) The syllabus section lists topics to be covered including

Uploaded by

mslect
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

Lecture1 PDF

This document provides an overview of a course on discrete-time signal processing (DSP) taught by Professor Chu-Song Chen at the Institute of Information Science, Academia Sinica and the Institute of Networking and Multimedia, National Taiwan University in Fall 2006. The summary includes: 1) The document outlines what signals are, different types of signals (continuous-time, discrete-time, 1D, 2D, 3D), and how discrete-time signals can arise from sampling continuous signals. 2) It provides examples of DSP applications and lists typical application areas like communications, consumer electronics, medical diagnostics, and engineering. 3) The syllabus section lists topics to be covered including

Uploaded by

mslect
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Discrete-Time Signal Processing

(DSP)

Chu-Song Chen

Email: [email protected]

Institute of Information Science, Academia Sinica


Institute of Networking and Multimedia, National
Taiwan University

Fall 2006
What are Signals
(c.f. Kuhn 2005 and Oppenheim et al. 1999)

flow of information: generally convey information about


the state or behavior of a physical system.
¾ measured quantity that varies with time (or position)
¾ electrical signal received from a transducer (microphone,
thermometer, accelerometer, antenna, etc.)
¾ electrical signal that controls a process

continuous-time signal: Also know as analog signal.


¾ voltage, current, temperature, speed, speech signal, etc.
discrete-time signal: daily stock market price, daily
average temperature, sampled continuous signals.
Examples of Signals
types in dimensionality:
¾ speech signal: represented as a function over time. -- 1D
signal
¾ image signal: represented as a brightness function of two
spatial variables. -- 2D signal
¾ ultra sound data or image sequence – 3D signal

Electronics can only deal easily with time-dependent signals,


therefore spatial signals, such as images, are typically first
converted into a time signal with a scanning process (TV,
fax, etc.)
Generation of Discrete-time Signal
In practice, discrete-time signal can often arise from
periodic sampling of an analog signal.

x = xa [nT ], -∞ < n < ∞


What is Signal Processing (Kuhn 2005)
Signals may have to be transformed in order to
¾ amplify or filter out embedded information
¾ detect patterns
¾ prepare the signal to survive a transmission channel
¾ undo distortions contributed by a transmission channel
¾ compensate for sensor deficiencies
¾ find information encoded in a different domain.

To do so, we also need:


¾ methods to measure, characterize, model, and simulate
signals.
¾ mathematical tools that split common channels and
transformations into easily manipulated building blocks.
Analog Electronics for Signal Processing
(Kuhn 2005)

Passive networks (resistors,


capacities, inductivities,
crystals, nonlinear elements:
diodes …), (roughly) linear
operational amplifiers
Advantages:
¾ passive networks are
highly linear over a very
large dynamic range and
bandwidths.
¾ analog signal-processing
circuits require little or no
power.
¾ analog circuits cause little
additional interference
Digital Signal Processing (Kuhn 2005)
Analog/digital and digital/analog converters, CPU, DSP,
ASIC, FPGA
Advantages:
¾ noise is easy to control after initial quantization
¾ highly linear (with limited dynamic range)
¾ complex algorithms fit into a single chip
¾ flexibility, parameters can be varied in software
¾ digital processing in insensitive to component tolerances,
aging, environmental conditions, electromagnetic inference

But
¾ discrete time processing artifacts (aliasing, delay)
¾ can require significantly more power (battery, cooling)
¾ digital clock and switching cause interference
Typical DSP Applications (Kuhn 2005)
¾ communication systems
modulation/demodulation, channel ¾ astronomy
equalization, echo cancellation VLBI, speckle interferometry
¾ consumer electronics ¾ experimental physics
perceptual coding of audio and sensor data evaluation
video on DVDs, speech synthesis, ¾ aviation
speech recognition radar, radio navigation
¾ Music ¾ security
synthetic instruments, audio steganography, digital
effects, noise reduction watermarking, biometric
¾ medical diagnostics identification, visual surveillance
Magnetic-resonance and systems, signal intelligence,
ultrasonic imaging, computer electronic warfare
tomography, ECG, EEG, MEG, ¾ engineering
AED, audiology control systems, feature
¾ Geophysics extraction for pattern
seismology, oil exploration recognition
Syllabus
(c.f. Kuhn 2005 and Stearns 2002)

¾ Signals and systems: Discrete sequences and systems, their types and
properties. Linear time-invariant systems, correlation/convolution, eigen
functions of linear time-invariant systems. Review of complex arithmetics.
¾ Fourier transform: Harmonic analysis as orthogonal base functions.
Forms of the Fourier transform. Convolution theorem. Dirac’s delta
function. Impulse trains (combs) in the time and frequency domain.
¾ Discrete sequences and spectra: Periodic sampling of continuous
signals, periodic signals, aliasing, sampling and reconstruction of low-
pass signals.
¾ Discrete Fourier transform: continuous versus discrete Fourier
transform, symmetric, linearity, fast Fourier transform (FFT).
¾ Spectral estimation: power spectrum.
¾ Finite and infinite impulse-response filters: Properties of filters,
implementation forms, window-based FIR design, use of analog IIR
techniques (Butterworth, Chebyshev I/II, etc.)
¾ Z-transform: zeros and poles, difference equations, direct form I and II.
¾ Random sequences and noise: Random variables, stationary process,
auto-correlation, cross-correlation, deterministic cross-correlation
sequences, white noise.
¾ Multi-rate signal processing: decimation, interpolation, polyphase
decompositions.
¾ Adaptive signal processing: mean-squared performance surface, LMS
algorithm, Direct descent and the RLS algorithm.
¾ Coding and Compression: Transform coding, discrete cosine transform,
multirate signal decomposition and subband coding, PCA and KL
transformation.
¾ Wavelet transform: Time-frequency analysis. Discrete wavelet transform
(DFT), DFT for compression.
¾ Particle filtering: hidden Markov model, state space form, Markov chain
Monte Carlo (MCMC), unscented Kalman filtering, particle filtering for
tracking.
Lectures: 12 times.
References:
¾ S. D. Stearns, Digital Signal Processing with Examples in
MATLAB, CRC Press, 2003. (main textbook, but not dominant)
¾ B. A. Shenoi, Introduction to Signal Processing and Filter Design,
Wiley, 2006.
¾ S. Salivahanan, A. Vallavaraj, and C. Gnanapriya, Digital Signal
Procesing, McGraw-Hill, 2002.
¾ A. V. Oppenheim and R. W. Schafer, Discrete Time Signal
Processing, 2nd ed., Prentice Hall, 1999.
¾ J. H. McClellan, R. W. Schafer, and M. A. Yoder, Signal
Processing First, Prentice Hall, 2004. (suitable for beginners)
¾ S. K. Mitra, Digital Signal Processing, A Computer-Based
Approach, McGraw-Hill, 2002.
¾ Markus Kuhn, Digital Signal Processing slides in Cambridge,
http://www.c1.cam.ac.uk/Teaching/2005/DSP
¾ Some relevant papers …
Main journals and conferences in this field
Journal
¾ IEEE Transactions on Signal Processing
¾ Signal Processing
¾ EUROSIP Journal on Applied Signal Processing
¾…
Conference
¾ IEEE ICASSP (International Conference on Acoustics,
Speech, and Signal Processing)

Evaluations in this course


Homework – about three times.
Tests: twice
Term project
Review of complex exponential
(c.f. Kuhn 2005 and Oppenheim et al. 1999)

geometric series is used repeatedly to simplify


expressions in DSP.
n −1
1− x n

∑x
n =0
n
= 1+ x + x +K+ x
2 N −1
=
1− x
¾ if the magnitude of x is less than one, then

1

n =0
x =
n

1− x
, x <1

In DSP, the geometric series is often a complex exponential


variable of the form ejk, where j = − 1
For example
2πn j 2π
N −1
1− e
∑e
j
N
= 2πn
=0 (1)

n =0 j
1− e N
Trigonometric Identities
Trigonometric functions, especially sine and cosine
functions, appear in different combinations in all kinds of
harmonic analysis: Fourier series, Fourier transforms, etc.

Advantages of complex exponential


The identities that give sine and cosine functions in terms
of exponentials are important – because they allow us to
find sums of sines and cosines using the geometric series.

Eg. from (1), we have


N −1
⎛ 2πn ⎞
N −1
⎛ 2πn ⎞
∑ sin ⎜ ⎟=0 ∑ cos⎜
⎝ N ⎠
⎟=0
n =0 ⎝ N ⎠ n =0

ie. a sum of equally spaced samples of any sine or cosine


function is zero, provided the sum is over a cycle (or a
number of cycles), of the function.
Least Squares and Orthogonality
(c.f. Stearns, 2003, Chap. 2)

least squares:
Suppose we have two continuous functions, f(t) and g(c,t),
where c is a parameter (or a set of parameters). If c is
selected to minimize the total squared error (TSE)

( f (t ) − fˆ (c, t )) dt
t2 2
TSE = ∫
t1

assume fˆ = g
An example of continuous least-squares approximation
In DSP, least squares approximations are made more
often to discrete (sampled) data, rather than to
continuous data
If the approximating function is again g(c,t), the total
squared error in the discrete case is now given as

( )
N 2

TSE = ∑ f n − fˆ (c, nT )
n =1

where fn is the nth element of f, and T is the time


step (interval between samples).

Assume that there are M basis functions (or bases),


g1, …, gM, to represent g.

TSE =
Let us denote that

(where ’ means matrix transpose)


This is represented in MATLAB form, where x = A\b means that
x is the solution of the linear equation system Ax = b.
In this case, c = (GTG)-1GTb, when GTG is nonsingular.
Matrix derivation: Least squares can be derived via another
way by using matrix derivations:

TSE =

Let b = fT = [f1, …, fn]T,

then TSE = ||b – Gc||2 = (b – Gc)T(b – Gc).

∂TSE ⎛ ∂ (b − Gc ) ⎞
T

= 2⎜ ⎟ (b − Gc ) = −2G (b − Gc ) = 0
T

∂c ⎝ ∂c ⎠
⇒ G T b = G T Gc

When GTG (
is nonsingular, c = G G
T
)
−1
GT b
Orthogonal bases (or orthogonal basis functions):
In many cases, we hope the bases to be ‘orthogonal’ to each
other. (if two row vectors a and b are orthogonal, then the
inner product ab’ = 0)

Advantage: suppose the n functions are mutually orthogonal


with respect to the N samples,

then each equation in solving the least squares becomes

the solution of c becomes very simple:


An intuitive explanation: orthographic projection

The solution of c is the “orthographic projection” of the


input vector f onto the subspace formed by the orthogonal
bases.

We can change the number of bases, M, and the solution


still remains as the same form.
¾ Choosing the number of bases to represent a signal
establish the fundamental concept of signal compression.
Discrete Fourier Series
(c.f. Stearns, 2003, Chap. 2)

Harmonic analysis:
A discrete Foruier series consisits of combinations of sampled
sine and cosine functions. It forms the basis of a branch of
mathematics called harmonic analysis, which is applicable to the
study of all kinds of natural phenomena, including the motion of
stars and planets and atoms, acoustic waves, radio waves, etc.

Let x = [x1, …, xN-1].


If we say the fundamental period of x is N samples, we image
that the samples of x repeat, over and over again, in the time
domain.
Sample vector and periodic extension; N=50
The fundamental period is N samples, or NT seconds, where T is
the time step in seconds.
The fundamental frequency is the reciprocal of the fundamental
period, f0 = 1/NT Hertz (HZ). ‘Hertz’ means “cycles per second.”
Another unit of frequency besides f is
ω = 2πf rad/s (radians per second)
Fourier Series (a least-square approximation using sine and
cosine bases)
Equivalence of Fourier Series Coefficients
If the fundamental period 2π/w0 covers N samples or NT
seconds, then the fundamental frequency must be

ω0 = rad/s
NT
With this substitution to indicate sampling over exactly one
fundamental period:
In this form, the harmonic functions are orthogonal with respect
to the N samples of x:

These results can be proved by using the trigonometric identities


and the geometric series application.
¾ We can use least squares principle to determine the best
coefficients am and bm.
By applying the orthographic projection, the least-squares
Fourier coefficients are

When we use the complex exponential as bases, the coefficients


cm can be determined by am and bm as:

’ means the complex conjugate.


or equivalently

The results also suggest a continuous form of the Fourier series.


We can image decreasing the time step, T, toward zero, and at
the same time increasing N in a way such that the period, NT,
remains constant. Thje samples (xn) or x(t) are thus packed more
densely, so that, in the limit, we have the Fourier series for a
continuous periodic function:
Sometimes, for the sake of symmetry, cm is given by an integral
around t=0:

The continuous forms of the Fourier series are, nevertheless,


applicable to a wide range of natural periodic phenomena.

We have introduced two forms of the discrete Fourier series,


and show how to calculate the coefficients when the samples are
taken over one fundamental period of the data.

You might also like