Docsity

Signal Estimation and Filtering: Improving Audio Quality in Recording Studios - Prof. Mahm, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Introduction to Communications Principles
(ECE303)
Due: December 4th, 2008
Computer Assignment 3: Signal Estimation and Filtering
The purpose of this computer assignment is to show how the methods in Chapters 6 and 7 can be applied
to signal processing area. All of the functions required for this assignment are available in the standard
MATLAB. The functions that you will likely use are: mean, std, xcorr, soundsc (or wavplay), fft and
filter. The signals can be uploaded from ECE303 web-page under the name ‘noisy_signal.mat’. You can
use LOAD command to load the files and use WHOS to list them. You will need records (size
25x80600), and bopt (size 6x1) for this computer assignment.
•Assume that there is a known source of a discrete signal x(n). Due to presence of noise and
distortion, the measured (or recorded) signal is xi(n) = x(n) + νi(n), where νi(n) is a source of zero
mean random noise, different for every i, and statistically independent from x(n). It is well-known
that the sample mean estimator:
xn= lim
N ∞
1
N∑
i=1
N
xin
(1)
which estimates the signal based upon the ensemble average over all the measurements approaches
the true signal as the number of measurements, N, increases.
•A recording studio hires you as an engineer to develop a system that will improve the quality of their
audio products. Based on the above theoretical results, you decide that they should simultaneously
record the signals using different recording systems. The matrix records contains N=25 simultaneous
noisy recordings of the same audio signal, x(n), each of approximately 80000 samples long. The
recordings are sampled at 22KHz (variable fs in mat file). You may play any particular sample
function using MATLAB.
•For the following parts provide:
Your approach and solutions to each part..
The requested set of graphs (when applicable)
Your discussion and comments on the methods and results.
A sample run of the script, presenting the requested answers.
Present all your results and discussions on the results in a brief report.
Part 1: Signal Estimation & Filtering by Sample Mean Estimation
1. Compute an estimate of the actual signal recorded based on these recordings and using equation (1)
for N=5 and N=25. Compare the audio quality of your estimates with those of the noisy sample
signals and comment on the quality of the estimator in each case. What is your conclusion? Can you
now hear and understand the speaker?
pf2

Partial preview of the text

Download Signal Estimation and Filtering: Improving Audio Quality in Recording Studios - Prof. Mahm and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Introduction to Communications Principles

(ECE303)

Due: December 4th, 2008

Computer Assignment 3: Signal Estimation and Filtering

The purpose of this computer assignment is to show how the methods in Chapters 6 and 7 can be applied to signal processing area. All of the functions required for this assignment are available in the standard MATLAB. The functions that you will likely use are: mean, std, xcorr, soundsc (or wavplay), fft and filter. The signals can be uploaded from ECE303 web-page under the name ‘noisy_signal.mat’. You can use LOAD command to load the files and use WHOS to list them. You will need records (size 25x80600), and bopt (size 6x1) for this computer assignment.

  • Assume that there is a known source of a discrete signal x(n). Due to presence of noise and distortion, the measured (or recorded) signal is xi(n) = x(n) + νi(n), where νi(n) is a source of zero mean random noise, different for every i, and statistically independent from x(n). It is well-known that the sample mean estimator: x   n = lim N  ∞ 1 N ∑ i = 1 N xin  (1) which estimates the signal based upon the ensemble average over all the measurements approaches the true signal as the number of measurements, N, increases.
  • A recording studio hires you as an engineer to develop a system that will improve the quality of their audio products. Based on the above theoretical results, you decide that they should simultaneously record the signals using different recording systems. The matrix records contains N=25 simultaneous noisy recordings of the same audio signal, x(n), each of approximately 80000 samples long. The recordings are sampled at 22KHz (variable fs in mat file). You may play any particular sample function using MATLAB.
  • For the following parts provide: Your approach and solutions to each part.. The requested set of graphs (when applicable) Your discussion and comments on the methods and results. A sample run of the script, presenting the requested answers. Present all your results and discussions on the results in a brief report. Part 1: Signal Estimation & Filtering by Sample Mean Estimation
  1. Compute an estimate of the actual signal recorded based on these recordings and using equation (1) for N=5 and N=25. Compare the audio quality of your estimates with those of the noisy sample signals and comment on the quality of the estimator in each case. What is your conclusion? Can you now hear and understand the speaker?

2. Assume that the estimate x ˆ^ ( n )represents your actual signal, compute the statistics (pdf, mean, and

variance) of the noise (^ xi ( n )−^ x ˆ( n )) for both cases. Is this noise distributed in a known manner?

What kind and why?

  1. One measure of the quality of a processed signal is its SNR (signal-to-noise ratio), The SNR (in dB) for statistically independent signal and noise can be computed using:

^ =

2 2 2 2 ( ) 2

10 log 10 log

noise signal noise

SNR signalnoise^ noise

where a comparison is being made between the variance of the signal alone and the variance of the noise. Higher SNR values imply better signal quality. Select a single sample function of the speech recording and compute its SNR for both values of N. What is your conclusion? Use the same sample function for the next part. Part 2: Signal Estimation & Filtering by Time Domain Filtering

  1. Clearly, simultaneous recording is too expensive for the studio. You decide to perform noise reduction based on only one recorded signal by some type of a time domain filtering operation. One popular time domain filtering operation can be carried out using moving average (MA) digital filter implemented using delays and multipliers i.e.

−

1 0

M k

yn b k xn k

where bk's are the filter coefficients that define the filter characteristics. A simple averaging filter will have coefficients bk = 1/M, k=0,1......,M-1. An optimal filter may also be designed to effectively remove the noise while retaining signal’s characteristics. An optimal filter is designed with coefficients that are provided in the vector bopt. Pick the same sample function from Part 1.3 and filter it with an averaging filter of order M=6 and with the filter defined by bopt. You can use the FILTER commend and set a=[1 0 0..0] while b=[b0, b1, b2…, bM-1]. Compute the SNR of the resulting

outputs based upon using x ˆ^ ( n )(for N=25) as the actual signal. Comment on your results and

compare the performance of the two filtering schemes.

  1. Compare the frequency characteristics of the two filters in Part 2.1 and comment on their bandwidth, noise reduction ability, and other relevant properties. Extra Point (30) a. Using XCORR command in MATLAB generate the auto-correlation sequences of: (a) estimate of

the actual signal x ˆ^^ ( n ) (for N=25), (b) ith realization signal xi ( n ), (c) noise in the ith realization i.e.

( xi ( n )− x ˆ( n )), and (d) the filtered signal y(n). Additionally, using the same command form the

cross-correlation of the ith realization with its the corresponding noise signal. Provide the plots of these correlation sequences. Compare these plots and try to explain your results in the context of the operations that you performed in Parts 1 & 2. b. Using FFT command generate the plots of power spectrum and cross power spectrum for the signals in Part a. Repeat your analysis on these plots.