multirate digital signal processing · multirate digital signal processing deals with changing the...

26
Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio processing require changing in sampling rate. 1 CEN543: Dr. Ghulam Muhammad

Upload: others

Post on 23-Mar-2020

27 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

Multirate Digital Signal Processing

Deals with changing the sampling rate.

Many applications of DSP such as communications, speech and audio processing require changing in sampling rate.

1CEN543: Dr. Ghulam Muhammad

Page 2: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

Downsampling - 1

Input: x(n). Output: y(m) = x(mM).

Taking one sample from every M samples in the input.

Example:

Downsample by a factor of 3

Let, sampling period of x(n) is 0.1 second [10 samples per second]

Sampling period of y(m) is 3×0.1 second [3.3 samples per second]

T

MT

fs

fs/M

2CEN543: Dr. Ghulam Muhammad

Page 3: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

3

Downsampling - 2

Folding frequency after downsampling:

If the signal to be downsampled has frequency components larger than the folding frequency, aliasing noise will be introduced into the downsampled data.

Anti- aliasing filter: H(z) Low pass filter with stop frequency edge at

CEN543: Dr. Ghulam Muhammad

Page 4: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

4

Downsampling - 3

Frequency response of anti -aliasing filter

Output spectrum

CEN543: Dr. Ghulam Muhammad

Page 5: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

5

Downsampling - 4

Let:Original folding freq.

New folding freq.

Without anti-aliasing filter

With anti-aliasing filter

CEN543: Dr. Ghulam Muhammad

Page 6: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

6

Downsampling - Example

Given:

Determine: FIR filter length, cutoff frequency, and window type.

Solution:

Stopband: 1-3 kHz

Hamming window

(Table 7.7)

CEN543: Dr. Ghulam Muhammad

Page 7: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

7

Upsampling - 1

Increase the number of samples by a factor of L, in a given period.

Upsample by a factor of 3

T

T/L

fs

Lfs

CEN543: Dr. Ghulam Muhammad

Page 8: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

8

Upsampling - 2

Folding frequency after upsampling:

After upsampling, the spectral replicas originally centered at fs, 2fs,… are included in the frequency range from 0 Hz to Lfs/2 Hz.

To remove these unwanted replicas, interpolation filter is used.

Normalized stop frequency edge:

CEN543: Dr. Ghulam Muhammad

Page 9: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

9

Upsampling - 3

Interpolation filter frequency response

CEN543: Dr. Ghulam Muhammad

Page 10: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

10

Upsampling - 4

Original components

Replicated components

After applying interpolation filter

CEN543: Dr. Ghulam Muhammad

Page 11: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

11

Upsampling - Example

Given:

Determine:

Solution:

FIR filter length, cutoff frequency, and window type.

Filter length,

Normalized transition band:

Hamming window

CEN543: Dr. Ghulam Muhammad

Page 12: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

12

Upsampling – Example (contd.)

Cutoff frequency:

CEN543: Dr. Ghulam Muhammad

Page 13: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

13

Changing Sampling Rate by a Non-Integer Factor L/M -1

Let:

We want sampling rate = 3000 Hz.

Upsample first by a factor of 3.

Then apply FIR LPF (interpolation filter) with N = 53 and cutoff freq. = 3250 Hz at sampling rate = 24,000 Hz.

CEN543: Dr. Ghulam Muhammad

Page 14: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

14

Changing Sampling Rate by a Non-Integer Factor L/M -2

After upsamplingand interpolation filter

To downsample by a factor of M=8: Filter length = 159Cutoff freq. = 1250 HzNyquist limit = 1500 HzCEN543: Dr. Ghulam Muhammad

Page 15: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

15

Changing Sampling Rate by a Non-Integer Factor L/M -3

After anti-aliasing filter

After downsampling

To use only one filter, we choose N = 159 and cutoff freq. = 1250 Hz (lower bandwidth).

CEN543: Dr. Ghulam Muhammad

Page 16: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

16

Changing Sampling Rate by a Non-Integer Factor L/M -Example

Upsample and H1(z):

New sampling rate = 18,000 Hz. New Nyquist freq. = 9,000 Hz.

Input sampling rate = 6000 Hz. Nyquist freq. = 3,000 Hz.

So, we have to stop frequency 3,000 – 9,000 Hz.

CEN543: Dr. Ghulam Muhammad

Page 17: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

17

Changing Sampling Rate by a Non-Integer Factor L/M –Example (contd1)

New sampling rate = 9,000 Hz. New Nyquist freq. = 4,500 Hz.

Input to H2(z) has sampling rate = 18000 Hz. Nyquist freq. = 9,000 Hz.

So, we have to stop frequency 4,500 – 9,000 Hz.CEN543: Dr. Ghulam Muhammad

Page 18: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

18

Changing Sampling Rate by a Non-Integer Factor L/M –Example (contd2)

Choose lower one

CEN543: Dr. Ghulam Muhammad

Page 19: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

19

Changing Sampling Rate by a Non-Integer Factor L/M –Example (contd3)

Transition band:

Filter length:

Cutoff frequency:

CEN543: Dr. Ghulam Muhammad

Page 20: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

20

Multistage Decimation - 1

Multistage approach for downsampling rate conversion is useful to reduce filter length.

Example:

Design a two-stage decimator

CEN543: Dr. Ghulam Muhammad

Page 21: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

21

Multistage Decimation - 2

CEN543: Dr. Ghulam Muhammad

Page 22: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

22

Multistage Decimation - 3

If use one stage, the filter length would be 1321

CEN543: Dr. Ghulam Muhammad

Page 23: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

23

What is Forensics?

The use of science and technology to investigate andestablish facts in criminal or civil courts of law.

[The American Heritage® Dictionary of the English Language]

Human Witness: (may be)biased, fading memory, etc.

Forensics Sciences : unbiased…..if applied correctly.

CEN543: Dr. Ghulam Muhammad

Page 24: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

24

•Digital Image Forensics

•Digital Video Forensics

•Digital Audio Forensics

•Biometric Forensics

•Multimedia Forensics

Types of Digital Forensics

CEN543: Dr. Ghulam Muhammad

Page 25: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

25

Original Image Tampered Image

Example: Digital Image Forgery

CEN543: Dr. Ghulam Muhammad

Page 26: Multirate Digital Signal Processing · Multirate Digital Signal Processing Deals with changing the sampling rate. Many applications of DSP such as communications, speech and audio

Digital Audio Forensics

Classification:

26

Digital Audio Forensics

Tape Authentication

SpeakerIdentification

Speech Enhancement

Environment Detection

How

Who

What

Where

CEN543: Dr. Ghulam Muhammad