mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.66k stars 1.31k forks source link

pyAutomagic for automatic EEG preprocessing and quality assessment #7098

Open clairezurn opened 4 years ago

clairezurn commented 4 years ago

What does this implement/fix? There is a need for automatic and replicable preprocessing and evaluation of data quality in EEG to increase transparency in the field. A package for this purpose, Automagic, was developed in Matlab (https://github.com/methlabUZH/automagic) by @nickilanger. It provides the user an easy way to set preprocessing and quality evaluation parameters for an entire project, and automatically execute. The quality metrics used are all based on variance of some type in the data, and these metrics are used to give each recording a rating of "good", "ok", or "bad". All results, figures, and log files, are then saved.

Proposed solution The suggested solution, pyAutomagic, is the movement of Automagic's functionality to python, specifically compatible with mne-python and mne-bids. The outcome would be a repository in mne-tools. In addition, a solution would include:

Additional information More info on the original (MATLAB) package functionality can be found in the paper published (https://www.biorxiv.org/content/10.1101/460469v3.full).

@adam2392

larsoner commented 4 years ago

A good first step would be to create a separate repo (maybe owned by methlabUZH?) for this, similar to autoreject. Once it's up and running and working, we can figure out when/how to port over to MNE, but in the meantime people can try it out for example with pip install pyAutomagic or so.