mne-tools / mne-tools/mne-python

create_eog_epochs does not detect the maximum signal during blink events

Open
#4,892 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

Hi,
using the mne.preprocessing.create_eog_epochs() function does result in weird solutions. The epochs center is not the center of the peak. I would guess it has something to do with the filtering during blink detection. What is your opinion?

Average EOG plotting channels Fp1 and Fp1
average_eog_notaligned

EOG epochs plotting channels Fp1 and Fp2
eog_epochs_not on peaks center

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue centers on mne.preprocessing.create_eog_epochs(); start by reproducing the reported blink alignment using the attached EOG plots and examining the function's filtering and event-centering behavior. Clarify the intended peak-detection behavior before changing anything; done means epochs are centered on the maximum blink signal rather than being visibly offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.