This repository contains code and resources for an EEG and MEG artifact detection training program. Trainees can review and annotate data and receive immediate feedback on their choices. Trainers are encouraged to upload their own annotated data.
- Introduction
- Implicit learning: the chicken sexing problem
- Installation
- Usage
- Experiment Details
- Results
- License
- Acknowledgements
The detection of physiological and non-physiological artifacts in M/EEG data is notoriously subjective and relies on rigorous training. Here, we provide a simple tool, based on visualizations provided through MNE python, to train students to consistently detect different types of artifacts and real M/EEG data.
Chicken sexers quickly and reliably determine the sex of day old chicks that do not have obvious distinguishing features . They do so often without explicit knowledge of the visual cues differentiating male from female chicks. Instead, their skill is developed through implicit procedural learning, facilitated by direct and immediate feedback during training.We here use a similar principle, direct and immediate feedback on each decision, to train researchers to quickly and reliably detect artifacts in MEG and EEG data. Ref: https://web-archive.southampton.ac.uk/cogprints.org/3255/1/chicken.pdf
git clone https://github.com/yourusername/MEG_Chicken.git
cd MEG_Chickencheck required dependencies in requirements.txt
The preproc.py script handles loading and preprocessing of raw EEG and MEG data, including applying filters, generating trial files and fitting ICA models.
To generate or regenerate trial data (pickled) on raw data:
python preproc.py MEEG TRIALTo Run ICA on raw data:
python preproc.py MEEG ICAFor both tasks:
python preproc.py MEEG ICA TRIALOptions:
--l-freq, --h-freq, --notch-freq: set filter cutoffs.
--n-components: for ICA.
--n-versions, --trials-per-file: how many trial versions to create.
--do-trial: explicitly triggers trial generation.
Example:
python preproc.py MEEG ICA --do-trial --n-components 25 --n-versions 2 --trials-per-file 3python chickenrun.pyThis project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Special thanks to the contributors for their support and resources.
