> 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/getting-started/multimodal-data-overview/introduction-to-eeg.md).

# Introduction to: EEG

Understand how EEG records brain activity, what affects its data quality, and how frontal asymmetry and power spectral density are used as metrics.

**Electroencephalography (EEG) can be used to measure brain-based behavioral motivation, or how much an individual is driven to approach, or avoid, a particular stimulus.**

**Background**

* EEG records electrical activity of the brain via electrodes placed on the scalp. It has excellent time resolution, taking hundreds to thousands of snapshots of electrical activity from multiple electrodes in a single second. This makes EEG an ideal technology to study the precise time-course of cognitive and emotional processing underlying behavior.
* To record data, an EEG headset is attached to electrodes on the scalp. The number and placement of electrodes vary based on the headset used and research goals. Generally, in addition to scalp electrodes, two electrodes are placed behind the right ear on the mastoid bone or to a clip on the ear. These are the reference and ground electrodes. EEG is measured as the voltage difference between each scalp electrode and the reference, and the ground helps remove electrical noise that is common to all electrodes.
* EEG data is very prone to noise, so the best way to start is by recording clean data. The main factors that will affect the quality of data are:
  * Functional electrodes: Old electrodes must be adequately cleaned, or replaced with new electrodes when their life is up.
  * Electrode placement: Electrode placement must be consistent when recording EEG data in order to draw more representative conclusions.
  * Consistent reference: The reference site must be kept consistent. In other words, the reference cannot be switched between left and right sides.
  * Electrode impedance: Dead skin cells, oily secretions, and sweat accumulate on the scalp and can constitute a wall of electrical resistance. That's why the respondent's skin must be cleaned before the use of the EEG device.

**Sampling Rate**

* Once voltage has been picked up by electrodes, the continuous, analog signal has to be amplified and digitized in order to be stored on a computer.
* Because our brains are constantly active, there are continuous fluctuations and variations of the generated voltages. EEG systems take discrete snapshots of this continuous process, generating samples of data - similar to a picture taken by a camera. EEG systems differ in the sampling rate, or number of samples per second that they can take.
* Sampling rates are expressed in samples per second with the unit Hertz (Hz). If researchers are interested in measurements with a higher time precision, they should collect data at a higher sampling rate (i.e., > 500Hz).

**Amplification**

* In addition to the digitization, the EEG signal is amplified. Think of this as the sound system for your data. Like the mono speakers on phones, poor amplification doesn’t get as much signal compared to a high-end amplifier, like a movie theatre sound system, for example.
* After the signals have been digitized and amplified, they are transmitted to the recording computer through a wired connection or wirelessly.

**Artefacts**

* Artefacts are electrical activity that does not come from the brain. The largest artefacts usually come from the respondent's own body: eye blinks and eye movements, muscle activity (for example jaw clenching or frowning), heartbeats and sweating. Other artefacts come from the environment, such as electrical line noise. Artefacts such as line noise can be removed from data using signal processing algorithms. However, if a researcher does not have resources to manually remove artefacts, it is possible to minimize their effect by ensuring a well thought out, quality lab set up. It is also helpful to clearly instruct the participants on the study procedure to avoid unwanted muscle movements. For more information on artefacts, please refer to our [Pocket Guide on EEG.](https://imotions.com/blog/learning/best-practice/eeg/)

Because the EEG signal is sensitive to such artefacts, EEG is not recommended for certain testing scenarios. Consider your testing setup carefully when choosing EEG as a modality for your research. While we would encourage EEG for media/ad testing or other scenarios in which participants are seated in a stable position to watch video content, we would recommend against ambulatory EEG, as there is too much noise introduced in the signal in such a setup to provide valuable data.

**Quantification**

There are a million ways to slice EEG data, and the decision on how to quantify and analyze your data highly depends on your research question and goals. In academia, EEG data can be analyzed on the basis of frequency (power spectral density), hemispheric dominance (frontal alpha asymmetry), communication between different areas of the brain (coherence) or by waveform in response to specific stimuli (event-related potentials), among many other ways. Commercially, frontal asymmetry (FA) and power spectral density (PSD) are two commonly used metrics.

Frontal Asymmetry

* Based on research on EEG of stable personality traits, frontal lateralization1 reflects a person’s momentary “approach-avoidance” tendencies to either engage or withdraw. Frontal asymmetry is measured in the alpha band, and alpha power is inversely related to brain activity: lower alpha power means more activity. Relatively lower left-frontal alpha power (more left-frontal activity) is associated with approach motivation, and relatively lower right-frontal alpha power (more right-frontal activity) with withdrawal motivation. Approach motivation often goes together with positive emotions such as joy, but not always: anger is also associated with approach. Recent evidence suggests that frontal lateralization can be used for testing respondents’ engagement when confronted with media ads, physical products and services.
* EEG measures the differences in brain activity in the left and right frontal lobes. These scores are then normalized to put them on a readable scale.

Power Spectral Density

* The power of a frequency reflects the strength of the specific frequency in a signal. Higher power means that the EEG signal contains a specific frequency to a larger extent.
* Frequencies have been classified based on specific frequency bands: delta band (1-4 Hz), theta band (4-8 Hz), alpha band (8-12 Hz), beta band (13-30 Hz), and gamma band (>30 Hz). Band limits vary slightly between sources; the iMotions PSD R notebook uses 13-25 Hz for beta and 26-40 Hz for gamma by default. The power of these bands can be assessed to determine certain brain states, such as focused attention or deep sleep.

**Data Visualizations**

* One way to visualize EEG data is by comparing frontal asymmetry scores using a bar graph.
* In the example, Stimulus A elicits more “approach motivation” than Stimulus B: It is at the 82nd percentile in the test, while B is at the 29th percentile, suggesting that participants were more motivated by stimulus A than stimulus B. We could then combine this finding with other modalities to infer why that may be the case.

  ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-618a58bed3adbc37e2e21f7b458069ca434fdea7%2F8f58a046d3_2020-06-15_1653-1-.webp?alt=media)
* Another way to visualize EEG data is by using the affective circumplex in combination with another measure. This model suggests that emotions are understood in a two-dimensional circular space, containing arousal (in the Y-axis) and valence (in the X-axis) dimensions.

  ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4b753bf7a326efba487917cd2aa02c1e21642eb7%2F3556412751_EEG2.webp?alt=media)
* EEG data (frontal asymmetry) represent a measure of approach and withdrawal motivation: whether the stimulus elicits more of an approach or avoid response from respondents. This is often, but not always, related to valence. On the y-axis, GSR serves as a measure of arousal, or an autonomic response that indicates there is something relevant or important in the environment.
* This method of visualization allows us to view a handful of stimuli tested to compare how those stimuli can be categorized within the circumplex relative to each other. For example, a fragrance tested that falls in the upper right quadrant of the circumplex is one that elicits a high approach motivation and high arousal levels. A fragrance that falls here can be categorized as “activating.” By comparison, a fragrance that has high arousal levels and also high “avoid” motivation will fall in the upper left quadrant, and therefore be categorized as relatively “aversive” compared to other fragrances tested.

**Academic Applications**

In biomedical engineering, brain-computer interfaces can be designed using frequency-based EEG metrics. By monitoring alpha activity over motor regions, researchers can detect if respondents plan to move certain limbs. These brain signals can be monitored to allow patients to steer robotic arms or legs based on their brain activity. In psychology and neuroscience, EEG is used to increase our insights on the nature of emotions, and to understand the biomarkers of mood and personality disorders. In healthcare, EEG is commonly used to assess cognitive states in neurological disorders. Those studying human factors will also use EEG to quantify cognitive workload, drowsiness and distraction.

**Commercial Applications**

In consumer neuroscience, EEG metrics can be monitored to investigate engagement, motivation, or drowsiness during an experience. In market research, frequency-based EEG metrics are used to analyze brand effectiveness in product packaging and design, including websites and software interfaces. EEG can also be particularly useful in advertising, trailer, and media testing. TV ads are meant to make potential shoppers buy a product/service and trailers are used to gauge interest in viewers to buy tickets to a film. Monitoring EEG activity can give unfiltered, unbiased insights into the cognitive-affective states of the audience. Similarly, online class or tutorial videos can be assessed with respect to engagement and workload metrics in order to discard material that may be hard to follow.

1A cognitive function being specially related to only one hemisphere of the brain.

**For more in-depth explanations of EEG, please check out our blog.**


---

# 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/getting-started/multimodal-data-overview/introduction-to-eeg.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.
