Compute and plot the magnitude spectra of the waking

Assignment Help MATLAB Programming
Reference no: EM131704415

Biomedical Digital Signal Processing Final Project

Project Description

You are given two sets of biomedical signals.  The first set of data (erp00.txt) is an Event Related Potential (ERP) signal recorded intracortically from an awake and conscious rat's primary visual cortex in response to bright and brief (5 msec in duration) flashes of blue light.  The second set of data (erp08.txt) is an ERP signal recorded from the same rat at the point of loss of conscious (LOC) when the anesthetic concentration was raised to 0.8% halothane.  Each data set consists of five columns of data (five single-trial ERP's), where each column represents a single-trial ERP recorded in response to a single flash.   The units are µV.

The ERP data were acquired at a sampling frequency (Fs) of 500 Hz.  The signals were appropriately band-limited to 0.1-100 Hz.

1. Filtering

Both ERP data sets contain electrical interference 60 Hz noise.  Hence, your job is to design and implement a digital notch filter to filter out the 60 Hz noise from each column of the two ERP datasets, i.e. you need to filter each column of data in each of two datasets.

You will design your filter using an advanced filter design functionality of the MATLAB DSP Systems Toolbox and object-oriented programming.  Specifically, you will create a fdesign filter specification object, will then design your filter using design function, and will then implement filtering of the given signals using the function filter.  In this assignment, you are required to use this particular filter design methodology. 

Your filter must achieve at least 150 to 200 dB attenuation at 60 Hz, and 0 dB attenuation at 50 and 70 Hz.  You are required to investigate four different filter designs and select the best one based on quantitative assessment of the filter's performance.  Display the frequency response plots (magnitude and phase responses as a function of cyclic frequency) and quantitatively assess each filter's performance.  Create a table summarizing the quantitative performance of all tested filters and identify the best filter to meet your specifications.  In your table, make it clear which is the selected filter.  It is up to you to identify the key assessment criteria of your filters but it is imperative that you quantitatively show that your design specifications have been met.  The comments in your code must clearly describe the specifications of your filter and must describe the choice of input parameters used in your implementation.

Use fvtool or similar to display and assess the performance of your filters. 

Select the best performing filter and use it to filter your ERP signals in the waking and LOC states.  You are to filter each column of data in the waking and LOC datasets.     Plot the unfiltered and filtered ERP signals as a function of time in the waking and LOC conditions.  To do so, you may want to create a 5x1 display where each subplot corresponds to a single column of ERP data in each of two conditions (waking and LOC).  Two figures would be needed here: one before and one after filtering.

2. Magnitude Spectrum

Compute and plot the magnitude spectra of the waking and LOC ERP signals before and after filtering as a function of cyclic frequency.  Use either the fft or dsp.fft functions for spectral computations. The spectrum must be computed for each column of ERP data and then averaged across five resultant spectra.  As such, the final spectral plot must be an average of five spectra of the given ERP dataset.  You are to use this method for both ERP datasets. 

Is the 60 Hz component still present in the filtered signals?  What is the attenuation at 50 and 70 Hz? Make quantitative measurements to support your answer.

3. Gamma (25-45 Hz) ERP Analysis

Now design the bandpass filter to filter the original waking and LOC ERP datasets such that only 25-45 Hz frequencies remain in the signals.  Both filters must have 0 dB attenuation at 25 and 45 Hz, and at least 100 dB attenuation at 15 and 55 Hz (if possible).  The passband ripple cannot exceed 0.01 dB.  You must implement Chebychev Type I digital filter to meet these specifications.  Here, you are required to test two Chebychev Type I filters (different orders, cutoffs, etc.) and identify the best performing filters.  In this part of the assignment, you are required to use the functions cheby1 and filtfilt from Signal Processing Toolbox. 

The filtering is to be performed on each column of the original ERP signals in the waking and LOC conditions.  Plot the filtered ERP signals as a function of time.  Similar 5x1 display may be a good option here as well.

Now write a MATLAB program to compute the average power in each column of the filtered gamma-ERP signals in the waking and LOC conditions.  The average power integral was described in BE3800 as Px = limT→∞0T |x(t)|2. Write a MATLAB program to approximate this integral; T corresponds to the entire duration of each column in the given ERP dataset.  Feel free to use trapz.m or polyarea.m MATLAB functions to compute a numerical integral.  You may want to re-visit your MATLAB assignments in BE3800 to remind yourselves of this methodology. 

Average the computed power values across all columns in the waking and LOC signals.  Create a bar chart to display the average of the average power in the filtered gamma-ERP signals in the waking and LOC states.  Did they power differ in the two conditions?

4. Final Document

Submit a Word document (PDF will not be accepted!) containing a title page, all MATLAB figures (ERP data plots (filtered and unfiltered), all frequency response plots, magnitude spectra of filtered and unfiltered signals, gamma ERP signals, and the power bar chart.), and data tables with quantitative measurements in support of your observations.  The figure and table legends must provide a complete description of what is being plotted, along with concise description of your results and conclusions, and brief methodological descriptions.  Data tables must present quantitative comparison data in support of your observations. 

Next to the figure or table include a corresponding well-commented MATLAB code.  Each section of your code must be commented with clear explanations of your implemented methodology and your design choices.   In your comments, also include the name of the student responsible for this section. 

If completed with a partner, your document must also contain a table describing the division of responsibilities.  Each partner must perform an equal share of both technical and non-technical (report) work.

The document must be professionally written.  It should be free of spelling and grammatical errors.  All figures and tables must be appropriately captioned and presented under corresponding text headers. 

It is highly recommended that the document be divided into logical sections with the corresponding headers.

Attachment:- Assignment Files.rar

Reference no: EM131704415

Questions Cloud

Journal entries for transactions of not-for-profit hospital : (Journal entries) Prepare journal entries to record the following transactions of a not-for-profit hospitaNurses and doctors employed by the hospital.
Cycle-service level for all stock items : A firm advertise a 90 per cent cycle-service level for all stock items. Stock is replenished from a single supplier who guarantees a lead-time of 4 weeks.
Development of work breakdown structure can be challenging : The development of a work breakdown structure can be challenging.
Discuss presence provoked american hostility : America has been called a nation of immigrants. However, many Americans reacted negatively to the mass immigrations of the 1840s and 1850s
Compute and plot the magnitude spectra of the waking : BE4800 Biomedical Digital Signal Processing Final Project. Compute and plot the magnitude spectra of the waking and LOC ERP signals
Causal analysis and resolution section : The CMMI-ACQ document, in the Causal Analysis and Resolution section, discusses root causes.
Discuss self-report survey data of criminal offending : National Crime Victimization Survey and Self-Report Survey Data of Criminal Offending
Challenging issues in identifying good alternative solutions : What are the one or two most challenging issues in identifying good alternative solutions that meet the IT acquisition requirements that were defined?
Complement or substitute for good : Is good 1 a normal good or inferior good? Ordinary or Giffen? Is good 2 a complement or substitute for good 1?

Reviews

len1704415

11/3/2017 2:36:30 AM

Subject: Matlab. Detailed Question: I have a project and I need help, but please code it very simple (I'm a student and I will never write a professional code ) because the last assignment that the expert did for me she realized that I did not write it because it was so professional and she gave me zero!!! Please comment the code well, write a description under each figure.

len1704415

11/3/2017 2:36:24 AM

The project is to be completed in groups of two, or individually. Groups of three of more are not allowed. You must select a partner from your BE4800 section. The MATLAB code must be fully automated and commented. Hardcode only those values that are necessary, e.g. sampling frequency. Word document with all MATLAB figures, data tables, and a task distribution table is due by 11:59 pm on Friday of Week 10 in Box Final Exam folder. Name your file lastnames_BE4800_Final.txt. If the document is submitted by 11:59 pm on Thu, Week 10, you will receive an extra credit worth 10 points.

Write a Review

MATLAB Programming Questions & Answers

  Determine the volume of the pyramid

Determine the volume of the pyramid. When the user enters every value, they will then be prompted also for either 'i' for inches, or 'c' for centimeters.

  Construct a matlab simulation of pulse sampling

Construct a Matlab simulation of pulse sampling and sample & hold for m(t) = cos(2t) andfs = 10.

  Import the data into matlab and name the array ace_data

Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.

  Impact of zigbee on telecommunication systems

Report on Impact of zigbee on telecommunication systems

  Write a function that collects integers from the user until

Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input (ML only).

  Hi i attached the instructions would you guys do it by 50

i attached the instructions. ltbrgt ltbrgtwould you guys do it by 50 dollars ? ltbrgt ltbrgtit is due this friday

  In matlab to illustrate the different format specifiers

1.) Write a program in matlab to illustrate the different format specifiers that can be used for obtaining formatted output.

  Write a matlab code that plots the phase portrait of system

Write a MATLAB code that plots the phase portrait of the system. The values of the parameters r1, r2, K1, K2 are fixed and to be extracted from your matriculation number and you'll need to write a report that describes the behaviour of the system un..

  Write a matlab program to design an fir linear phase filter

Write a MATLAB program to design an FIR linear phase filter that models a lowpass bandlimited channel with desired amplitude response.

  Use the matrix index number as the parameter for the x axis

Allow MATLAB® to use the matrix index number as the parameter for the x-axis. 5.3 Plot the following functions on the same graph for x values from - p to p, selecting spacing to create a smooth plot: y1 sin1x2 y2 sin1 2x2 y3 sin1 3x2

  What is the frequency of the sinusoid that was sampled

What is the frequency of the sinusoid that was sampled? Was it adequately sampled, at or above the Nyquist rate? How many samples were acquired per cycle of the sinusoid?

  Compute the value of each piece of clothing

You decide to write a script in MATLAB that will compute the value of each piece of clothing.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd