Seeking assistance with the signal processing aspect of an EEG simulation project. Requirements: – Experience in EEG signal processing techniques – Familiarity with Python pr

Seeking assistance with the signal processing aspect of an EEG simulation project. Requirements: – Experience in EEG signal processing techniques – Familiarity with Python programming

Assignment 3: Simultaneous EEG-fMRI Due Friday July 7th at 11:59 PM In this assignment you will get familiar with digital signal processing including common denoising techniques (ICA), filtering, resampling, and convolution. The goal of this assignment is to denoise an EEG dataset acquired during a simultaneous EEG-fMRI experiment, extract some frequency-domain measures from the denoised EEG signal, and correlate with fMRI image (which is a 4d image, each voxel is a time series). The end-result will be whole-brain correlation maps showing which brain areas correlate best with EEG. Background: simultaneous EEG-fMRI is a multimodal neuroimaging technique that combines EEG with fMRI, yielding two separate datasets, which when combined achieve excellent temporal resolution (due to the high temporal sampling rate of EEG) and excellent spatial resolution (due to the high spatial resolution of fMRI). Simultaneous EEG-fMRI allows to investigate the precise brain areas involved in the generation of frequency-specific brain oscillations. Here, we are interested in which brain areas correlate with alpha (8-13 Hz) and gamma (40-70 Hz) band power. Therefore, we need to get the power from the EEG data and correlate it with BOLD signal in each voxel. To do so, there are some basic preprocessing steps we need to perform: Step 1: Understand the EEG and fMRI datasets (LINK). The dataset contains 3 subjects and 3 scans per subject (rest, gamma_01, and gamma_02), each scan has an EEG and an fMRI dataset. This dataset features a resting state scan (eyes closed, relaxed) and two visual experiments (watching a screen with some visual stimuli). The EEG dataset contains 64 separate time series (one time series per electrode). The 32nd electrode (index 31) is an ECG (electrocardiogram) electrode which records from the heart, the other 63 electrodes record from the brain. The sampling rate of the EEG is 5000 Hz. The fMRI dataset is a 4D image (3D + time). Information about spatial and temporal resolution of the fMRI images is contained in the .nii headers. Anatomical images (T1 and SWI) are also included. Step 2: denoise the EEG dataset. The EEG data was recorded inside the MRI scanner (in order to be acquired simultaneously with fMRI), so it has two major artifacts 1) the gradient artifact (figure 1) and 2) the ballistocardiogram artifact (figure 2). The gradient artifact must be removed first, the ballistocardiogram artifact can be removed second.

a) Load EEG dataset into python using mne b) Remove gradient and ballistocardiogram artifacts (figure 3)

a. Use average artifact subtraction for both (see pdf on moodle for description of this) c) Run ICA (figure 5) on EEG signal to isolate good and bad components

a. can use the mne implementation of fastICA d) Find the ‘good’ and ‘bad’ ICA components by visualizing the topography and power spectrum

a. Identifying ‘good’ and ‘bad’ components can be tricky and requires some experience. I will discuss this in future lectures.

e) Bandpass filter the denoised EEG data to separate it into two separate frequency bands: 1. Alpha band (8-13 Hz) 2. Gamma band (40-70 Hz) Once step (e) is done, rectify (take absolute value) the bandpass filtered signals and average across all ‘good’ components.

Step 3: denoise the fMRI dataset. the fMRI dataset must be motion corrected and bandpass filtered:

a) Load fMRI dataset into python using nibabel b) Motion correct by registering every volume to the first volume

a. find some python library that can do this, or use FSL, AFNI or ANTs c) Apply 0.01 – 0.1 Hz bandpass filter to the time series in each voxel

a. This will remove all frequencies outside 0.01 – 0.1 Hz. The remaining signal should be ‘good’ in the sense that it will not contain much noise (most fMRI noise is outside the 0.01-0.1 Hz. band)

Step 4: combine EEG and fMRI datasets. After completing the pre-processing for both datasets (step 2,3) it is time to combine the datasets and get our correlation maps:

a) Resample the smooth, rectified bandpass filtered EEG component to match the fMRI temporal resolution.

b) Convolve the resampled, bandpass-filtered EEG power with the canonical hemodynamic response function. This will give the ‘expected’ fMRI response to the frequency-specific brain activity.

c) Correlate the convolved EEG alpha (8-13 Hz) and gamma (40-70 Hz) power with fMRI in each voxel, yielding two separate 3d images where the value in each voxel is a correlation coefficient.

i. (optional) It might also help tp bandpass filter the rectified, resampled EEG alpha between 0.01 – 0.1 Hz, because power can drift over time, inducing low-frequency power that can distort the correlation.

Step 5: combine subjects and scans for final result. At the end, you will have 6 correlation maps per subject (3 scans x 2 frequency bands). The final result is the grand average correlation map (across the 3 subjects) for each frequency band. Show the following result in your pdf report: Plot 1-3: show the correlation map for each subject (two maps per subject) overlaid on each subject’s T1-weighted image. Average across all 3 scans (resting state + gamma x2) when showing these plots. Plot 4: show the same as plot 1-3, but average the correlation maps across all subjects (use russell’s T1 as the underlay). You will need to register Alex and Genevieve’s T1 images into Russell space and then apply the matrix to the correlation map, so all 3 subjects are in the same space before averaging.

You can show a single axial slice in each plot. Choose the slice that shows the visual cortex the best (it’s usually about 10- 15 mm above the cerebellum). Other results to show in your pdf: besides the final result from step 5, you should show the ICA components from a single subject, the EEG signal from a single channel after a) gradient artifact removal b) BCG artifact removal and c) ‘bad’ ICA component subtraction. I will release video lectures covering all the steps in the next week. Figure 1: Before gradient artifact subtraction. The raw EEG signal is heavily corrupted by the MRI scanner gradient pulse.

Figure 2: After gradient artifact subtraction but before ballistocardiogram artifact subtraction. Pulse artifact visible.

Figure 3: comparing before (blue) and after (orange) ballistocardiogram artifact subtraction

Figure 4: an example of detected ballistocardiogram artifact peaks (scipy.signal.find_peaks).

Figure 5: ICA component weight maps for components 0-19 (out of a total 63, only 0-19 shown here). Components 0,1 and 2 are definitely artifacts (Eye blinks and residual bcg). Components 5,15, and 19 are definitely neural in origin (what we want). The other components its more difficult to tell, usually it’s best to discard components when unsure. Plagiarism Free Papers

Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we\’ll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.

Why Hire writers to do your paper?

Quality- We are experienced and have access to ample research materials.

We write plagiarism Free Content

Confidential- We never share or sell your personal information to third parties.

Support-Chat with us today! We are always waiting to answer all your questions. is an online academic writing site catering to students from all educational levels, from high school and college to graduate level and beyond. The website has a team of experienced writers who are equipped with the knowledge and skills required to provide top-notch custom writing services for any task assigned by our customers.

At, we specialize in offering assistance with the following tasks: essays, research papers, projects, case studies, book reviews, lab reports, presentations, term papers and even editing or proofreading services as well. All these tasks can be done according to the instructions provided by our clients without compromising on the quality or accuracy of work delivered within shorter periods of time as per customer requirements. Clients also have access to knowledgeable customer support staff, which assists them with their queries at any time during the day or night when placing orders through our website interface.

In addition to the regular services offered by such as essay writing help for high school and college assignments; dissertation/thesis preparation for postgraduate programs; coursework composition for undergraduates; editing/proofreading services for students who require revisions on pre-written works; we also offer specialized services like grant proposal writing assistance for those seeking funds from external bodies; data analysis report creation based on statistical information collected from relevant sources; CV/resume formatting according to employer expectations; literature reviews postulating various interpretations on certain topics etcetera based on customer needs..
We also facilitate the completion of important applications such as those needed while applying abroad or enrolling into some universities where thoroughness is critical in order secure admissions favorably that meet admission criteria demandingly set forth by these institutions due to intense competition witnessed globally today among prospective applicants vying places available therein limited vacancies so created thereupon every academic year…

Moreover, our experts are qualified in diverse fields being well versed in different areas of knowledge too, thus enabling us to cover almost any topic that may come your way thereby providing comprehensive solutions pertaining same conclusively efficient manner possible, meeting customer deadlines within the desired timeframe successfully sans excuses whatsoever implicated concerning inconsistency matters grade expectation meeting provided via us hereunder…

By availing our services at, clients can rest assured that their work will be completed accurately within their specified deadlines without compromising quality standards expected out of professional service providers like ourselves.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?