> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/sensor-setup/eeg/general-eeg-protocol-for-good-quality-raw-eeg-data.md).

# General EEG protocol for good quality raw EEG data

Follow a step-by-step EEG protocol before, during and after a recording to collect good-quality raw EEG data in the lab.

This protocol covers preparing the lab, the respondent and the EEG headset for a recording of good-quality raw EEG data, and checking the data during and after the recording. Add or remove steps to fit your study.

Run the protocol during at least two pilot recordings before you start collecting data. The pilots show whether the workflow and duration of the study are as you expect, and which movements respondents make during it.

The explainer video walks through the protocol:

{% embed url="<https://files.imotions.com/hc_articles/videos/eeg-protocol-for-good-quality-data-100mb.mp4>" %}

## Before the recording

### Lab setup

A typical setup has a respondent monitor (monitor A) where the respondent sees the stimuli, and an examiner monitor (monitor B) where the examiner follows the EEG signals, both connected to one computer running iMotions Lab.

![Lab setup with the respondent wearing the EEG headset in front of monitor A, and the examiner watching the EEG signals on monitor B, both connected to one computer](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6903ccde098a9aa828415518d2680bc0d54de8a1%2Feeg-protocol-lab-setup.webp?alt=media)

Have the following ready:

* A recording computer with iMotions Lab installed.
* Monitor A for the respondent and monitor B for the examiner.
* A keyboard and a mouse.
* Speakers, if your stimuli have sound.
* The EEG headset with all its cables, electrodes, EEG gel and charger.
* Disposable alcohol wipes, or tissue paper and alcohol gel, if you use the mastoid process as the EEG reference. Earclip references need no alcohol wipes.

Connect every device, including the computer and both monitors, to a grounded socket with a [grounded plug](https://www.ceptics.com/pages/two-prong-vs-three-prong-plugs). Grounding reduces line noise, the 50 Hz or 60 Hz interference from the power grid, in the EEG data.

![EEG signals in iMotions Lab, first contaminated with line noise and then with reduced line noise after the computer was connected to a grounded socket with a grounded plug](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-83e4d981a96db9e5afd4a8b4d0a66227d54489a0%2Feeg-protocol-line-noise.webp?alt=media)

{% hint style="warning" %}
Blinks often exceed the [artifact rejection threshold](https://help.imotions.com/lab/analysis/eeg/r-notebook-eeg-power-spectral-density-psd.md#parameters) on frontal electrodes, and iMotions removes those samples from the analysis. On a short stimulus, frequent blinking can leave **little valid frontal EEG data**. As a rule of thumb, make stimuli at least 15 seconds long where your study allows it.
{% endhint %}

### Prepare the respondent and the headset

1. Tell the respondent what the study involves: how long it takes, what they will be doing, and that the EEG headset is placed on their scalp. Show them the headset. Give them the informed consent form before you start the recording.
2. Once the respondent has signed the consent form, ask them to sit still and relax on a fixed chair. Do not use a chair with wheels.
3. Place the EEG headset following the guidelines for your EEG system. For Neuroelectrics Enobio, see the [Enobio placement video](https://www.youtube.com/watch?v=vCkAPA_REck).
4. Start iMotions Lab and add your EEG headset in **Global Settings**, on the **Sensors** tab. For Neuroelectrics Enobio, see [Setting up NeuroElectrics Enobio](https://help.imotions.com/lab/sensor-setup/eeg/neuroelectrics/setting-up-neuroelectrics-enobio.md).
5. Look at the impedance or data quality indicator of your EEG system. All electrodes in use should be green. This is the only check that covers every electrode.
6. Ask the respondent to blink and to clench their jaw, and look at the raw EEG signals. [How to check EEG data quality](https://help.imotions.com/lab/sensor-setup/eeg/how-to-check-eeg-data-quality.md) explains what to look for. Blinks show as clear peaks on frontal electrodes, near the eyes:

   ![Raw EEG signals in iMotions Lab showing the peaks of a single blink, a few blinks and a train of blinks](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9dab882fbeeee2be34cccce879bbb14c6e6134c1%2Feeg-protocol-blinks.webp?alt=media)

   Jaw clenching shows as high-frequency bursts, strongest on temporal electrodes:

   ![Raw EEG signals in iMotions Lab during jaw clenching](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-93be6882c6e35c5c9712e9caec793f12eaa64003%2Feeg-protocol-jaw-clenching.webp?alt=media)

   This test shows that the signals respond as expected near the face. It says nothing about electrodes further back on the head, which is what step 5 is for. Tell the respondent to keep their jaw relaxed during the recording. Jaw clenching adds muscle noise to the EEG data.
7. If all electrodes are green and the blinks and jaw clenching show as in the images above, click **Start Recording**. Otherwise, troubleshoot as described in [Fix poor data quality](#fix-poor-data-quality) and repeat steps 5 and 6.

### Fix poor data quality

1. If all electrodes are red, check that the reference electrode has good contact with the skin. Every channel is measured against the reference, so a poor reference affects all of them:
   * If you use earclip reference electrodes, check that the earclip has gel in it, and apply gel if it doesn't. If the earclip comes off and you use an EEG cap, fasten the end of the earclip to the edge of the cap:

     ![Earclip fastened to the edge of the EEG cap, seen from the front](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c7d425ca62867f2e08a4ae03430bd7093d47de99%2Feeg-protocol-earclip-on-cap-1.webp?alt=media)

     ![Earclip fastened to the edge of the EEG cap, seen from the side](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-2a420239116de8a09ff69e994d9a0872e05e2098%2Feeg-protocol-earclip-on-cap-2.webp?alt=media)
   * If you use disposable reference electrodes on the mastoid process, use an alcohol wipe to clean the skin where your EEG system places the reference. Depending on the system, that is the left or right mastoid, or both. If the electrode comes off, tape it to the skin. See the [mastoid electrode video](https://www.youtube.com/watch?v=8PcOkocLg8k).
2. If only some electrodes are red, check those individual electrodes. If an electrode has too little gel, or hair blocks its contact with the skin, use a syringe to apply gel and move the hair aside.
3. Repeat the quality indicator check and the blink and jaw-clenching test from steps 5 and 6 of [Prepare the respondent and the headset](#prepare-the-respondent-and-the-headset).

If the data quality is still poor, replace the reference electrodes or the EEG electrodes. Electrodes wear out with use. For example, earclips, geltrodes, foretrodes and drytrodes from Neuroelectrics last about 100 uses.

### Instructions for the respondent

Give the respondent these instructions before the recording:

1. Sit comfortably on the chair.
2. For the whole recording:
   * Relax your jaw, neck and back muscles, and keep them as still as possible.
   * Do not speak, unless the examiner asks you to.
   * Do not move your head, arms or legs, unless the examiner asks you to.
3. Blink when you need to, but try not to blink more than usual. Blinks add noise to the EEG data.
4. Follow the examiner's instructions.

## During the recording

Watch the raw EEG signals on monitor B during the recording. You can see when an electrode is noisy or loose. A loose electrode, or one without good contact with the scalp, shows as drift noise:

![Raw EEG signals in iMotions Lab where one channel shows drift noise from a loose electrode](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c204b3728a08f51be7a20899cf25b9833df4b864%2Feeg-protocol-drift-noise.webp?alt=media)

## After the recording

1. Run the EEG analysis as described in [R Notebook: EEG Power Spectral Density (PSD)](https://help.imotions.com/lab/analysis/eeg/r-notebook-eeg-power-spectral-density-psd.md). Set **Notch filter frequency** to the line frequency of the country where you recorded: 50 Hz in Europe and China, 60 Hz in the United States. The default is 60 Hz, so change it for recordings made in a 50 Hz country.
2. Click **Reports** in the analysis, open the report of the EEG analysis you ran and scroll down to the **Percentage of data filtered** table:

   ![The Percentage of data filtered table in the EEG report, with one percentage for each channel](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-1f793b6feec6e16d0a1763ec5694aba653faa751%2Feeg-protocol-percentage-of-data-filtered.webp?alt=media)

The table shows, for each channel, the percentage of samples that exceeded the artifact rejection threshold you set in the [analysis parameters](https://help.imotions.com/lab/analysis/eeg/r-notebook-eeg-power-spectral-density-psd.md#parameters) and were removed. The percentage depends on that threshold, so compare it only between channels, respondents or recordings analyzed with the same threshold. At the same threshold, a lower percentage means cleaner EEG data. In the example, about 4% of the data in Ch1, 5.5% in Ch2 and 3% in Ch3 was removed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/sensor-setup/eeg/general-eeg-protocol-for-good-quality-raw-eeg-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
