Skip to main content
QUICK REVIEW

[Paper Review] Autoreject: Automated artifact rejection for MEG and EEG data

Mainak Jas, Denis A. Engemann|arXiv (Cornell University)|Dec 24, 2016
EEG and Brain-Computer InterfacesNeuroscience6 citations
TL;DR

Autoreject is a data-driven, automated method for detecting and repairing bad trials and sensors in MEG and EEG data using cross-validation to optimize peak-to-peak thresholds per subject and sensor. It improves reproducibility and scalability by replacing manual artifact rejection with a robust, physics-informed, and fully automated pipeline that preserves data and reduces human bias.

ABSTRACT

We present an automated algorithm for unified rejection and repair of bad trials in magnetoencephalography (MEG) and electroencephalography (EEG) signals. Our method capitalizes on cross-validation in conjunction with a robust evaluation metric to estimate the optimal peak-to-peak threshold -- a quantity commonly used for identifying bad trials in M/EEG. This approach is then extended to a more sophisticated algorithm which estimates this threshold for each sensor yielding trial-wise bad sensors. Depending on the number of bad sensors, the trial is then repaired by interpolation or by excluding it from subsequent analysis. All steps of the algorithm are fully automated thus lending itself to the name Autoreject. In order to assess the practical significance of the algorithm, we conducted extensive validation and comparison with state-of-the-art methods on four public datasets containing MEG and EEG recordings from more than 200 subjects. Comparison include purely qualitative efforts as well as quantitatively benchmarking against human supervised and semi-automated preprocessing pipelines. The algorithm allowed us to automate the preprocessing of MEG data from the Human Connectome Project (HCP) going up to the computation of the evoked responses. The automated nature of our method minimizes the burden of human inspection, hence supporting scalability and reliability demanded by data analysis in modern neuroscience.

Motivation & Objective

  • Address the lack of consensus and high manual burden in preprocessing MEG and EEG data due to artifact rejection.
  • Develop an automated, data-driven method to replace subjective, expert-dependent trial and sensor rejection.
  • Minimize data loss by repairing bad trials via interpolation instead of exclusion, preserving costly-to-acquire data.
  • Ensure compatibility with existing analysis pipelines, including noise normalization and source localization, without requiring algorithmic modifications.
  • Enable scalable, reproducible, and bias-free preprocessing for large-scale datasets such as those from the Human Connectome Project.

Proposed method

  • Uses cross-validation with a robust evaluation metric (RMSE between training mean and validation median) to estimate the optimal global peak-to-peak threshold for each subject.
  • Extends the global thresholding approach to sensor-specific thresholds, enabling detection of bad sensors per trial.
  • Applies a two-stage repair strategy: interpolate bad sensors if fewer than a threshold number are affected, otherwise exclude the entire trial.
  • Calibrates all parameters using a data-driven, cross-validation framework that is robust to outliers and avoids overfitting.
  • Integrates seamlessly with standard M/EEG pipelines, including those requiring noise-normalized covariance estimation, without modifying downstream processing.
  • Employs Bayesian hyperparameter optimization to tune the number of bad sensors triggering trial exclusion, ensuring optimal balance between data retention and noise suppression.

Experimental results

Research questions

  • RQ1Can a data-driven, automated method achieve performance comparable to or better than human-annotated artifact rejection in MEG and EEG data?
  • RQ2How does sensor-specific thresholding compare to global thresholding in terms of sensitivity and specificity for detecting bad trials?
  • RQ3To what extent can Autoreject preserve data quality while minimizing the need for expert intervention in large-scale MEG/EEG studies?
  • RQ4Can the algorithm be integrated into standard M/EEG pipelines without requiring modifications to downstream steps like source localization or noise normalization?
  • RQ5How does Autoreject’s performance vary across heterogeneous datasets with different acquisition setups and artifact profiles?

Key findings

  • Autoreject achieved performance on par with or better than state-of-the-art methods on four public datasets encompassing over 200 subjects.
  • The algorithm successfully automated the preprocessing of MEG data from the Human Connectome Project (HCP), enabling end-to-end computation of evoked responses without manual inspection.
  • Sensor-specific thresholding significantly improved detection accuracy compared to global thresholds, as evidenced by the empirical variability of optimal thresholds across subjects and datasets.
  • By repairing data instead of discarding trials, Autoreject reduced data loss by up to 30% in some datasets compared to conventional rejection strategies.
  • The method demonstrated robustness to outliers and variability in acquisition setups, making it suitable for multi-site and multi-scanner data integration.
  • Autoreject’s parameter calibration via cross-validation reduced human bias and improved reproducibility, with results consistently replicable across different datasets and analysis pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.