SNF Ee338dsp Sp2021 Week1and2
SNF Ee338dsp Sp2021 Week1and2
Air University,
Islamabad
March, 2021
Outline Ref: Text book, Chap 1,2
Introduction
Signal Processing
Digital Signal Processing
Comparison of DSP and Analog Signal Processing (ASP)
Advantages of DSP
DSP Applications
Signals, Systems and Signal Processing
Introduction to signals
Signal Processing Systems
Basic Elements of Digital Signal Processing
Classification of Signals
Discrete-Time signals
Continuous-Time signals
Discrete-Time Signals and Systems
System Properties
LTI Systems
LTI System Properties
Signal Processing
Deals with extracting information from a signal by carrying out algorithmic
operations
Representing signal in mathematical terms and extracting information from the
signal
Domain transformations
Applications:
Speech Processing
Multimodal Signal Processing
Sentiment Analysis
Emotion Recognition
Digital vs. Analog Signal Processing
5
EE338 Digital Signal Processing Introduction
Advantages of DSP
Digital circuits do not depend on precise values of the digital signals for their
operation.
Digital circuits less sensitive to changes in component values
Digital circuits less sensitive to changes in temperature, ageing and other external
parameters.
In a digital processor, the signals and systems coefficients are represented as binary
words. This enables us to choose any accuracy by increasing or decreasing the
number of bits in the binary words.
DSP facilitates the sharing of a single processor among a number of signals by time-
sharing. This reduces the processing cost per signal.
Digital implementation of a system allows easy adjustment of the processor
characteristics during processing.
With digital processing of signals, it is possible to achieve linear phase characteristics
and multirate processing.
Digital circuits can be connected in cascade without any loading problems, whereas
this cannot be easily done with analog circuits.
Digital data easy to store.
Speech Processing
Image Processing
Multimodal Signal Processing
Sentiment Analysis
Emotion Recognition
Military/defense applications- radar signal processing, sonar signal
processing, missile guidance
Radar Signal Processing- used in radar tracking algorithms
Digital Communications
Biomedical Engineering
Commercial/Entertainment Applications
11
Can be continuous
e.g. Trajectory of a space shuttle
Daily temperature contours
Can be discrete
DNA base sequence
Can be 1D, 2D, 3D
12
Transformation of the independent variable apply to continuous-time signal as well. However, in the case
of discrete-time signals, time-scaling operations are manifested in the form of decimation and
interpolation.
13
ECG Signal
14
16
Periodic / Aperiodic
Deterministic / Stochastic
Multichannel / Multidimensional
Real valued / Complex valued
Continuous valued / Discrete valued
Continuous time / continuous valued
Continuous time / discrete valued
Discrete time / continuous valued
Discrete time / discrete valued --------- Digital Signal
17
Deterministic Signal
Stochastic/Random Signal
Odd signal: A signal x(t) or x[n] is referred as an odd signal if the time
reversed version of the signal is identical to the reflection of signal is
y-axis.
An odd signal must necessarily be zero at t=0 or n=0
22
Digital Signals
those for which both time and amplitude are discrete
Signal Processing System: map an input signal to an output signal
Continuous-time systems
Systems for which both input and output are continuous-time signals
Discrete-time system
Both input and output are discrete-time signals
Digital system
Both input and output are digital signals
In practice, such sequences can often arise from periodic sampling of an analog
signal.
x xa [nT ], - n
• Multiplication by a a
number a is defined ax(n) Multiplier
as multiplication of x(n)
each sample value by
a.
z1 x(n1) Unit Delay
• Shift operation: y[n] is x(n)
a delayed or shifted
version of x[n] where
Sinusoidal sequence
w0 is called the frequency of the complex exponential and is called the phase.
A transformation or operator that maps an input sequence with values x[n] into
an output sequence with value y[n] .
System Examples
Ideal Delay
y[n] = x[nnd], where nd is a fixed positive integer called the delay of the system.
Moving-average filter
Memoryless System
The output y[n] at every value of n depends only on the input x[n], at
the same value of n.
Eg. y[n] = (x[n])2, for each value of n.
Linear System
If y1[n] and y2[n] are the responses of a system when x1[n] and x2[n]
are the respective inputs. The system is linear if and only if
T{x1[n] + x2[n]} = T{x1[n] }+ T{x2[n]} = y1[n] + y2[n] .
T{ax[n] } = aT{x[n]} = ay[n], for arbitrary constant a.
So, if x[n] = k akxk[n], y[n] = k akyk[n] (superposition principle)
Examples
Accumulator System
Nonlinear System.
w[n] = log10(|x[n]|)
EE338 Digital Signal Processing Introduction
37
System Properties
Causality
A system is causal if, for every choice of n0, the output sequence
value at the index n = n0 depends only the input sequence values for
n n0.
That is, if x1[n] = x2[n] for n n0, then y1[n] = y2[n] for n n0.
Examples:
Forward-difference system: (The current value of the output
depends on a future value of the input), (non causal)
y[n] = x[n+1] x[n]
Backward-difference (causal)
. y[n] = x[n] x[n1]
Time Invariance
If y[n] = T{x[n]}, then y[nn0] = T{x[n n0]}
Examples:
The accumulator is a time-invariant system
The compressor system (not time-invariant) y[n] = x[Mn], < n < .
EE338 Digital Signal Processing Introduction
38
System Properties
Stability
Bounded input, bounded output (BIBO): If the input is bounded:
|x[n]| Bx < ∞ for all n
then the output is also bounded, i.e. there exists a positive value By s.t.
|y[n]| By < ∞ for all n.
Examples
the system y[n] = (x[n])2 is stable.
the accumulated system is unstable, which can be easily verified by setting x[n] =
u[n], the unit step signal.
Hence
Convolution
yn xk hn k
k
The above operation is called convolution sum and can be written in short as:
y[n] = x[n] h[n]
Example
Multiply and Add: Computing the weighted moving average of x[k] by using
the weights given by h[n-k].
Repeat
0, 0, 5, 2, 3, 0, 0, ...
Example *) 0, 0, 1, 4, 3, 0, 0, ...
x[n] = 0, 0, 5, 2, 3, 0, 0…
h[n] = 0, 0, 1, 4, 3, 0, 0… 0, 0, 5, 2, 3, 0, 0, 0
x[n] h[n]: 0, 0, 0, 20, 8, 12, 0, 0
0, 0, 0, 0, 15, 6, 9,
0
0, 0, 5, 22,26,18, 9, 0
EE338 Digital Signal Processing Introduction 45
Properties of LTI System and Convolution
Communitive:
x[n] h[n] = h[n] x[n].
Distributive over addition
x[n] (h1[n] + h2[n]) = x[n] h1[n] + x[n] h2[n].
Cascade connection
h1[n] h2[n]
x[n] y[n]
h2[n] h2[n]
x[n] y[n]
h2[n] h1[n]
x[n] y[n]
Since
yn hk xn k hk xn k
k k
Causality:
systems for which the output depends only on the input samples y[n0]
depends only the input sequence values for n n0.
Follow this property, an LTI system is causal iff
Causal sequence: a sequence that is zero for n<0. A causal sequence could
be the impulse response of a causal system.
Ideal delay
Moving average
Accumulator
Forward difference
Backward difference
56