cranstudies.com
Share
Get in touch

EEG & ERP Processing

EEG & ERP Processing

Building reusable tools for complex neurophysiological data.

Electroencephalography (EEG) produces continuous recordings of electrical activity that must undergo extensive processing before researchers can use them to investigate cognitive and psychological processes.

This process requires decisions about signal cleaning, artifact handling, experimental event classification, and the quantification of event-related potentials (ERPs). Although many of these procedures are shared across studies, conventional analysis workflows often require substantial rewriting when a new experiment introduces different conditions, events, or components of interest.

Danielle developed a modular EEG processing and analysis pipeline using MATLAB, EEGLAB, and ERPLAB. The system separates the underlying processing procedures from the definitions of individual experiments, allowing the same framework to support different research paradigms and analysis goals.

The pipeline was also designed to preserve information at the individual-trial level, making it possible to investigate patterns of neural activity that would otherwise be obscured by conventional averaging.

Modular, Experiment-Independent Architecture

At the center of the system is a separation between the processing code and the information that defines an experiment.

Task-specific configuration files describe experimental events, triggers, trial structure, and relevant distinctions between conditions. Separate ERP definitions specify components, electrode selections, and scoring procedures.

Shared processing functions use these definitions to determine how data should be prepared and analyzed.

This means a new experimental paradigm can be incorporated primarily by defining its structure rather than rebuilding the entire analysis workflow.

Automated Batch Processing

The pipeline supports automated preprocessing across large collections of participant recordings, reducing the need to process every dataset manually.

It organizes intermediate and final outputs, records processing information, and generates participant-level logs and artifact summaries that can be used to evaluate data quality.

The workflow is designed to accommodate different experimental paradigms and acquisition systems through configurable processing settings.

Incremental Reprocessing

EEG analysis is rarely completed in a single pass. Researchers may revise artifact-handling decisions, change scoring procedures, or identify individual datasets requiring additional attention.

Rather than requiring the entire pipeline to be rerun after every change, the system saves reusable intermediate datasets and can automatically identify previously processed participants.

Researchers can reprocess selected individuals or entire datasets as needed, making iterative analysis substantially more manageable.

Single-Trial Data Extraction

Many traditional ERP analyses average neural responses across repeated trials before calculating a participant-level score. Although averaging serves important purposes, it also removes information about variability and dynamics across individual responses.

The pipeline supports extracting ERP measurements at the trial level and combining them with the corresponding experimental information.

The resulting datasets can include neural measurements alongside task conditions and behavioral responses, creating analysis-ready files for statistical modeling in R or other software.

This functionality is particularly relevant to Danielle's research on how neural responses vary over time and what different approaches to aggregation reveal—or obscure—about psychological processes.

Reusable Analysis & Visualization

The same event and condition definitions used in processing can also support downstream visualization and analysis.

The pipeline includes reusable functions for generating participant-level and grand-average ERP waveforms, constructing condition contrasts, applying trial-count requirements, and selecting electrodes and experimental conditions.

Researchers can define new comparisons without creating a separate set of hard-coded analysis procedures for every question.

The modular design also allows additional quality-control, topographic visualization, and analysis functions to be incorporated without modifying the core processing framework.

A Foundation for More Flexible Neural Measurement

This system grew from a practical need for more efficient and reproducible EEG processing, but its design also reflects Danielle's broader research interests.

By maintaining access to the individual responses that contribute to conventional ERP scores, the pipeline supports analyses of neural variability, response dynamics, and alternative approaches to quantifying neurophysiological activity.

Rather than treating a single averaged waveform as the only useful representation of a participant's brain activity, the system makes it easier to investigate the information available at multiple levels of measurement.

Interactive Demonstration

Interactive walkthrough coming soon.

A demonstration will illustrate how experimental configurations guide EEG processing, how participant datasets progress through the pipeline, and how individual-trial measurements can be explored alongside conventional ERP waveforms.

© CRAN Studies 2026 / All rights reserved.