Artifact detection in simultaneous EEG/fMRI


I am trying to do artifact detection on EEG data measured during an fMRI session.
I am looking for some pre-existing tool/package – preferably python-based – able to detect these kind of artifacts (e.g. pulse, gradient artifacts).

Do you know of any I could use?

Thank you in advance for any help.


There are some preliminary ECG/EKG artifact detection tools in MNE Python. It looks like someone has taken some steps of implementing what you’re asking for in a separate tool that integrates with MNE as well:

If that doesn’t seem appealing, it is fairly straightforward to remove gradient artifacts by doing template subtraction and the QRS detect and OBS method for BCG reduction is also fairly well documented if you wanted to write your own.

1 Like