> 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/online/behavioral-research/sensors-behavioral-research-online.md).

# Sensors

Choose the sensors for a Behavioral Research Online study and understand webcam eye tracking, head pose, facial expression, respiration and screen recording.

On the Sensors page in iMotions Online, you choose which recordings to make and which data to extract from them. During data collection, iMotions Online records from the enabled sensors. The recordings are then processed into the enabled data types, which you can analyze and visualize.

{% hint style="warning" %}
You can only change sensor settings before data collection starts.
{% endhint %}

## Available sensors and data

The options on your Sensors page depend on your iMotions license.

| Sensor               | Data type                                 | What you get                                                                                                                                                                         |
| -------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Webcam**           |                                           | Video of the respondent, required for all data types below.                                                                                                                          |
|                      | [Eye tracking](#eye-tracking)             | Where on the screen the respondent is looking, calculated with the [WebET 3.0 algorithm](https://go.imotions.com/WebET3Whitepaper).                                                  |
|                      | [Head pose](#head-pose)                   | An anonymized face mesh that shows head position and simplified facial expressions.                                                                                                  |
|                      | [Facial expressions](#facial-expressions) | Action units, such as brow furrow or smile, and emotional expressions, such as joy, anger or surprise.                                                                               |
|                      | [Respiration](#respiration)               | Breathing in and out, detected from chest movements with the [webcam respiration algorithm](https://www.researchgate.net/publication/385243968_iMotions_Web-Respiration_Validation). |
|                      | [Microphone](#microphone)                 | The respondent's voice and background noise. Only in studies that keep face recordings.                                                                                              |
| **Screen recording** |                                           | A recording of the respondent's screen, to replay interactions with websites and surveys. See [Screen recording](#screen-recording).                                                 |

![The Sensors page with the Webcam sensor and the Eye Tracking and Head Pose data types switched on](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-b60fc477a308e8c83fc1d55e4dfe11a1c8f4f9db%2F8b457b7c1e_image-MW8DYLN0.webp?alt=media)

## Webcam

The webcam video is needed to process eye tracking, head pose, facial expression and respiration data. It is never shown in iMotions Online. By default, the video is separated from the study when processing is complete and deleted 30 days later. You can instead create a study that keeps the video, see [Keeping face recordings](#keeping-face-recordings).

### Keeping face recordings

A study can keep the face recordings, so that they are included in the study export and you can work with them in iMotions Lab. You choose this when you create the study, and you can't change it afterwards. Copies of the study keep the same choice.

1. On the **Studies** page, click **New** and select **New study**.
2. Enter a name for the study.
3. Select **Behavioral Research Online**.
4. In **Face recordings**, select **Keep face recordings, making them available for export**. The default is **Delete face recordings after processing**.
5. Click **Create study**.

The **Face recordings** option is only shown if your account has access to it. To get access, contact iMotions Support.

In a study that keeps face recordings:

* The face recordings are kept until you delete the study or the respondent's data.
* The face recordings are included in the [study export](https://help.imotions.com/online/behavioral-research/export-behavioral-research-online.md#study-export).
* The study starts with only **Webcam** and **Eye tracking** switched on. Switch on the other data types you need.
* You can record audio with the [Microphone](#microphone) sensor.
* The consent screen does not tell respondents that their video and audio are deleted after processing. Tell them how the recordings are kept and used, for example on the [personalized consent screen](https://help.imotions.com/online/behavioral-research/data-collection-behavioral-research-online.md#personalized-consent-screen).

If your account has access to the option, the Sensors page shows a locked **Face recordings** switch under **Webcam**. Its text says whether the study keeps the face recordings or deletes them after processing.

## Eye tracking

Eye tracking data shows where the respondent looked, both at each moment and summed up over a whole stimulus. You can:

* show the data as gaze paths and heatmaps,
* review the x and y coordinates of the raw gaze signal,
* calculate fixations,
* get summary metrics for areas of interest (AOIs).

Visualizations, raw gaze and fixation signals, and AOI metrics can all be exported, the data as CSV files.

![An image stimulus with a gaze path, the same stimulus with a heatmap, and an AOI Metrics table comparing three AOIs](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-e913748f637f4b368516b7cbb5dad2f9c558efb9%2F873281ea35_image-LOV8MW9Y.webp?alt=media)

### Calibration

The WebET 3.0 algorithm needs a calibration at the start and end of the study, so pre-study and post-study calibrations are added to every study automatically. You can place stimuli such as instructions or survey questions before or after them, but only stimuli between the two calibrations have eye tracking data.

You can add extra calibrations to the study, for example:

* in studies longer than 10 minutes,
* with respondents who tend to move a lot,
* before or after critical stimuli.

![The Study Builder with the pre-study and post-study calibrations in Flow 1 and the Calibration details panel on the right](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-ef13c9be86bc19616de8ad1b189341836a2c32b3%2F35fb16042b_image-FMU9P2SH.webp?alt=media)

This is what a calibration looks like to respondents:

{% embed url="<https://files.imotions.com/hc_articles/videos/calibration-screen-example-1.mp4>" %}

### Eye tracking settings

These data quality checks run before and during the study. They are the same settings as the [visual options](https://help.imotions.com/online/behavioral-research/data-collection-behavioral-research-online.md#visual-options) on the Data Collection page, and changing them in one place changes them in both.

| Setting                          | What it does                                                                                                                                  |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Head position check**          | Before the study starts, checks that the respondent's head is in the right position, facing the screen.                                       |
| **Re-check head position**       | Checks the head position again before each stimulus. Makes the study longer but improves data quality. Requires the head position check.      |
| **Eye detection**                | Before the study starts, checks that the respondent's eyes are visible.                                                                       |
| **Allow skipping after timeout** | Lets respondents start the study if their head or eyes are not detected within 25 seconds. Requires the head position check or eye detection. |

![The Eye Tracking settings with Head position check and Re-check head position selected](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-3b92c7cc765175ffa95077577308a356f39efe0b%2Fd8caa9f76b_image-2EK20UYH.webp?alt=media)

### How gaze data is calculated

Respondent videos are processed after data collection, so no live eye tracking data is available. Processing has three steps:

1. **Processing:** deep learning models estimate the gaze position relative to the camera.
2. **Calibration:** the estimated gaze positions are paired with the known positions of the calibration points.
3. **Mapping:** a model is built that maps gaze positions to screen coordinates.

For good results, respondents need to look closely at each calibration point and stay in the same position from calibration to the end of the study.

{% hint style="info" %}
**Expected accuracy:** Webcam video limits how accurate the gaze data can be. Under optimal conditions, expect an average error of about 2.2 degrees of visual angle, which is about 3 cm on a screen at arm's length. Keep this in mind when you draw AOIs and interpret gaze plots.
{% endhint %}

To learn more, read the [WebET 3.0 whitepaper](https://go.imotions.com/WebET3Whitepaper) and the [validation study](https://imotions.com/support/document-library/webet-3-0-validation-study/).

![Gaze heatmaps for nine calibration points from webcam eye tracking, with an accuracy of 2.2 degrees, next to the tighter heatmaps from a screen-based eye tracker recording in parallel](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-dcd9fccd5bdf112e7c92ef7f16596d41107697d2%2F99ddaffc01_image-G1180WQL.webp?alt=media)

## Head pose

Head pose data shows how the webcam captured the respondent's face without revealing their identity. When you replay an individual respondent, an anonymized face mesh is shown.

![Respondent replay on the Analysis page with an anonymized face mesh next to the image stimulus](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-b8aa9c268152d057694bca99b26281f05eab24e6%2Fb8547b5bab_image-1QRLZ6ID.webp?alt=media)

Use it to see whether respondents:

* looked left or right,
* kept their face in the middle of the video, the best position for eye tracking and facial expression analysis,
* followed the instructions, or instead moved around, looked away, talked or even lay down.

## Facial expressions

Facial expression analysis measures the facial muscle movements behind visible emotional expressions and other behavior such as talking or yawning. For good data, respondents' faces need to be filmed from the front, fully visible and well lit.

Behavioral Research Online uses the Affectiva SDK 5.3 (AFFDEX), which outputs four types of signals:

| Signal type         | Examples                                                                                            |
| ------------------- | --------------------------------------------------------------------------------------------------- |
| Behavioral metrics  | Head pose angles (yaw, pitch, roll) and interocular distance, which shows leaning forward and back. |
| Facial action units | Muscle movements from the Facial Action Coding System (FACS), such as brow furrow or smile.         |
| EMFACS expressions  | Emotional expressions from the Emotion Facial Action Coding System (EMFACS), such as joy or anger.  |
| Other measures      | Higher-level behavior such as confusion, yawning or speaking.                                       |

All signals are available moment by moment, for individual respondents and averaged across respondents, for example to show the average reaction to a video over time. You can visualize them over the stimulus and export them as raw data or as summary statistics (averages per stimulus) in CSV format.

To learn more, see [AFFDEX signals](https://help.imotions.com/lab/analysis/facial-expression-analysis/affdex/affectiva-affdex-signals-overview.md) in the iMotions Lab documentation and this [research paper about the Affectiva SDK](https://arxiv.org/abs/2202.12059).

## Respiration

Respiration data describes the breathing cycle of inhaling and exhaling. It is available for all stimulus types.

{% hint style="warning" %}
Respondents must sit still with their chest and shoulders visible in the video. Talking disrupts the detection of breathing, and even small movements, such as using the mouse and keyboard in a survey or on a website, lower data quality.
{% endhint %}

The webcam respiration algorithm provides:

* a raw and a filtered **respiration signal**,
* the **respiration rate**,
* a **quality score** from 0 to 1. A score above 0.5 means a breathing cycle was detected reliably.

Examples of good and bad respiration data:

![Respiration signals for good data, with a clear breathing pattern and quality scores of 0.5 to 1.0, next to bad data with no breathing pattern and quality scores below 0.5](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-520a43b7506070993fd453ed9093036a7f66a1cb%2F29131e3a04_image-5ND3C340.webp?alt=media)

You can visualize the signals and export them as raw data. You can also export summary metrics: cycle count, average respiration rate, average cycle duration, and inhalation and exhalation duration.

To learn more, see the [validation study](https://www.researchgate.net/publication/385243968_iMotions_Web-Respiration_Validation).

## Microphone

The microphone records the respondent's voice and background noise as the audio of the face recording. It is only available in studies that [keep face recordings](#keeping-face-recordings), and it is off by default.

When you switch on **Microphone**, respondents' microphones are also checked before the study starts, to make sure audio can be recorded, and the consent screen tells respondents that their microphone is used.

## Screen recording

Record the screen to replay how respondents interacted with survey and website stimuli.

* Screen recording only works when respondents take part on a desktop or laptop, not on a tablet or phone.
* Without screen recording, you still get survey answers, but you can't replay how respondents looked at and interacted with the survey.
* With screen recording enabled, respondents are asked for permission and to choose which screen to record before the study starts.


---

# 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/online/behavioral-research/sensors-behavioral-research-online.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.
