# Suggestions to Reduce Noise in EEG ERP Analysis

**URL:** <https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641>\
**Category:** Support & Discussions\
**Tags:** evoked\
**Created:** [December 17, 2024, 9:49pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641 "2024-12-17T21:49:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhoham](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@Jhoham](https://mne.discourse.group/u/Jhoham)\
**Post date:** [December 17, 2024, 9:49pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/1 "2024-12-17T21:49:32Z")

</div>

Hi, thank you in advance for your help.

I am working on constructing the ERPs of EEG data that was provided to me. The goal is to compare two conditions (Think-NoThink) in a task related to historical memory. I filtered the EEG data between 0.1 and 25 Hz, epoched the data, manually rejected epochs, removed epochs where the peak-to-peak amplitude exceeded 300 µV, and concatenated the epochs for all subjects.

The EEG data only has 6 channels, so automated cleaning is not a viable option for me.  
I have tried several approaches, and this is the best plot I have achieved so far:

 ![comparacion_T_NT_ARME_v17](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/3/3c99b099ac91a3563b43a057d5cc05a534b88662.png)  
Is there anything else I can do to improve my work? The goal is to look for differences due to the task between 300 and 600 ms, and I believe the graph shows something similar. However, it is still too noisy to be clear.

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [December 17, 2024, 10:22pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/2 "2024-12-17T22:22:35Z")

</div>

As a first step, I would suggest calculating the difference wave (ERP for `Think` minus ERP for `NoThink`, via `mne.combine_evoked()`) in every participant, and then averaging the waves across participants to get a grand average representation. I would advise against simply concatenating all epochs from all participants.

Best wishes,  
Richard

---

<div class="post-metadata">

**Author:** ![stong](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@stong](https://mne.discourse.group/u/stong)\
**Post date:** [December 17, 2024, 10:27pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/3 "2024-12-17T22:27:44Z")

</div>

Besides what you have done, I can think of doing ICA to remove at least ocular artifacts, maybe also muscle artifacts. I did this part in EEGLAB so can’t speak for how to do it on MNE side.

It looks to me that the biggest problem is not having enough epochs or subjects if this is the grand average.

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [December 18, 2024, 11:00am UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/4 "2024-12-18T11:00:02Z")

</div>

I don’t think performing ICA with only 6 channels is a viable option. What is the number of clean epochs available per subject and condition?

---

<div class="post-metadata">

**Author:** ![stong](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@stong](https://mne.discourse.group/u/stong)\
**Post date:** [December 18, 2024, 1:42pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/5 "2024-12-18T13:42:49Z")

</div>

Yes, indeed! Sorry I didn’t notice the number of channels available.

---

<div class="post-metadata">

**Author:** ![Jhoham](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@Jhoham](https://mne.discourse.group/u/Jhoham)\
**Post date:** [December 19, 2024, 9:11pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/6 "2024-12-19T21:11:53Z")

</div>

Thank you, I will try.

Is this different from concatenating all the epochs and then calculating the difference, right?

---

<div class="post-metadata">

**Author:** ![Jhoham](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@Jhoham](https://mne.discourse.group/u/Jhoham)\
**Post date:** [December 19, 2024, 9:15pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/7 "2024-12-19T21:15:25Z")

</div>

Hi, are you referring to the minimum number of epochs I used to pass a subject?

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [December 20, 2024, 6:54am UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/8 "2024-12-20T06:54:32Z")

</div>

Yes, because after data cleaning, not all participants might have the same number of trials left, leading to an imbalance in weights.

Generally, the way to go is always a two-level analysis: first, handle each participant separately (e.g. calculate an ERP, find a peak, etc.) and only as a second step aggregate these results across participants to get a grand mean.

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [December 26, 2024, 2:26pm UTC](https://mne.discourse.group/t/suggestions-to-reduce-noise-in-eeg-erp-analysis/10641/9 "2024-12-26T14:26:20Z")

</div>

> [@Jhoham](#):
>
> Hi, are you referring to the minimum number of epochs I used to pass a subject?

I believe yes
