# Record based ERP Experiment Analysis

This pipeline allows you to specify markers of interest and generate averaged ERP plots for each sensor, for each record submitted.

### **Slew limit**&#x20;

You can set a slew rate limit to control the EEG signals between successive samples, up to a maximum value. Large voltage step changes from one sample to the next sometimes occur due to electrostatic discharge from the subject (participant), headset movements, or other artifacts. The effect of voltage step changes on filtered signals, and fast Fourier transform (FFT) epochs can artificially persist for a long time after the event. Setting a maximum slew rate limits the extent of step changes and reduces its impact without significantly affecting the EEG signal components.   The default slew rate in Analyzer is 30 microvolts. However,  you can enter any positive value here.&#x20;

### **Referencing**

The data processed by Analyzer can be referenced to an aggregate of all the data selected. The available aggregate functions are:

* Mean
* Median
* Interquartile mean
* None (deactivates re-referencing)

### **Filter Coefficients**

Default values are set for you. However, you can change these values if you want to.&#x20;

If you do not know what you are doing, please use the default values. The default values are shown below.&#x20;

### &#x20;**Target Markers**

For ERP analysis, you can add one or more target markers.&#x20;

First you must give your target marker(s) a name. Then you must select either **Value** or **Label**:

* If you select Value, you must input a numerical value.&#x20;
* If you select Label, you must input a description, like ‘high’.

The marker label/values can be found in your interval marker file when export a record using EmotivPRO.&#x20;

![](https://lh5.googleusercontent.com/WNPFWbMsHhammo81BIDL6WCtpIbQ3-ME7R7yIWR6z83vQ6ec_XzJw8befsvB9_OEn5JOReScMKBb3j5Ij_Fnqwbic9Rax0Ihd5uTD9ZGk4A12SJ2p9Vw4hh16RDtpOJmIkpk6Pil=s0)

By clicking on the **+** icon you can add more target markers. You can delete a target marker by  clicking on the **trash bin** icon next to it.\


### **Time Before and Time After (Epoch)**&#x20;

Time Before, also known as pre event baseline allows you to input a period before the onset of your event. Time after, indicates the period after the onset of your event that you want to analyze.

Once you’ve input the ranges you need for ERP analysis, click on **Start**.

### **Results**

While your data is processing, the [job management page](../../job-management) will open. You can download your results file when the job is complete.\
\
This pipeline will output a plot of ERPs for each sensor as below:\


<figure><img src="https://3358604837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkFc8_lN6xtzFYs4t5V%2Fuploads%2FLfZDSfoPiMzwO8Xcw5Iz%2FERP.png?alt=media&#x26;token=e6594885-2f90-4d8b-9a17-0209bd054a26" alt=""><figcaption></figcaption></figure>

The pipeline will also output a  .csv file - \*_subject\_id.csv_

This file gives your the EEG amplitude in µV for all ERPs used for plotting.

<table><thead><tr><th width="179" align="center">time</th><th width="170" align="center">eeg.af3_standard</th><th width="218" align="center">marker_name_standard</th><th width="223" align="center">marker_value_standard</th><th width="162" align="center">eeg.af3_deviant</th><th width="204" align="center">marker_name_deviant</th><th width="205" align="center">marker_value_deviant</th></tr></thead><tbody><tr><td align="center">-0.097903013</td><td align="center">0.370041117</td><td align="center">standard</td><td align="center">A</td><td align="center">0.664820528</td><td align="center">deviant</td><td align="center">B</td></tr><tr><td align="center">-0.093962908</td><td align="center">0.373191418</td><td align="center">standard</td><td align="center">A</td><td align="center">0.687847361</td><td align="center">deviant</td><td align="center">B</td></tr><tr><td align="center">-0.090122938</td><td align="center">0.282137158</td><td align="center">standard</td><td align="center">A</td><td align="center">0.828101521</td><td align="center">deviant</td><td align="center">B</td></tr></tbody></table>

The time column is epoched/event time. Zero indicates the onset of the event/marker specified. Negative(-) values indicate pre-event baseline period and positive (+) values indicate the time after the onset of the event.

On the right end of this .csv  file you can find the number of trials/epochs averaged for each channel and marker specified:

| channel\_names | channel\_counts\_standard | channel\_counts\_deviant |
| :------------: | :-----------------------: | :----------------------: |
|     eeg.af3    |            472            |            124           |
|     eeg.f7     |            427            |            112           |
|     eeg.f3     |            471            |            124           |
