How to avoid epoch loss in fNIRS data processing

Hello everyone,

  • operating system: Windows 10
    I have a question regarding MNE version 1.6.1. When I use mne.Epochs(reject=None, preload=False)in fNIRS data processing,some epochs are lost.
    Could you please advise on how I might prevent this from occurring?
    Thank you very much for your time and assistance."

Disclaimer: I’ve never worked with fNIRS data and know nothing about it

Epochs can also be dropped because of annotations in the raw (continuous) data. Check raw.annotations and see what it there. Any annotations starting with BAD are considered stretches of bad data in which no epochs will be created. Another important annotation is made when multiple raw files are concatenated. The boundary between two raw files is considered bad data as well.

1 Like

Hello and welcome to the forum! You can use epochs.plot_drop_log() to get some descriptives on why epochs were dropped.

Best wishes,
Richard

Thank you for your reply.
epochs.plot_drop_log() indicates that the epoch dropped is “NO_DATA”.

This usually means that those epochs extended beyond the time of the recording. This can happen if the time-locked event is close to the beginning or the end of the recording. For example, if your recording is 100 seconds long, the last event occurs after 99 seconds, and you want to create epochs from, say, –0.2 to +2.0 seconds, this won’t work. Similarly with the beginning of the recording.

Best wishes,
Richard

Thank you very much for your reply, which helped me solve my problem.

Best wishes,
Lufeng

thanks for your reply.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.