> 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/media-analytics/sensors-media-analytics.md).

# Sensors

Understand the facial expression, attention, calibration-free eye tracking and webcam respiration signals Media Analytics extracts, and their accuracy limits.

This article explains the behavioral signals that Media Analytics in iMotions Online extracts from webcam videos, how they are calculated, and what to consider when you work with them.

## Available sensors and data

Media Analytics captures behavioral signals from respondents through the webcams on their laptops or mobile phones. These signals include:

* Eye tracking: aggregated gaze locations on the screen, calculated with the calibration-less eye tracking algorithm
* Facial expressions: action units such as brow furrow or smile, and emotion expression outputs such as joy, anger or surprise
* Respiration: the respiration rate over time

You do not need to choose which signals to extract from the webcam videos. Media Analytics extracts all of them automatically for all stimuli once data collection is finished.

### Facial expressions

Facial expression analysis tells you about the muscle movements on the face, which reflect visible emotional expressions and other facial behavior such as speaking or yawning. To record good quality videos, respondents' faces need to be filmed from the front, be completely visible and be well lit.

Media Analytics gives an aggregate view of the data for all respondents or for segments of respondents. It outputs the following types of signals:

* Facial action units: facial muscle movements defined by the Facial Action Coding System (FACS), for example brow furrow or smile
* Emotion expression outputs: emotional expressions as defined in the Emotion Facial Action Coding System (EMFACS), for example joy or anger, and high-level facial behavior outputs such as attention, expressiveness, confusion or sentimentality

On the **Analysis** page, these signals are available as aggregated moment-to-moment time series that show the average facial expressions towards a video over time. You can export the plotted graphs as CSV files and visualizations.

![The Signals panel on the Analysis page with an Expressiveness graph under MA Facial Analysis and the Download button outlined](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-0534daad40f2441e3156c50f0b446ac11ba94314%2F00b5086733_base64-converted-image-1787312610949.webp?alt=media)

By default, a selection of metrics is shown, such as Expressiveness, Valence, Attention, Brow Furrow and Confusion. To show or hide the graphs for the different action units and emotions, go to the **Signals** section of the right-hand menu on the **Analysis** page and click **Select**.

Emfacs Causal refers to the Emotional Facial Action Coding System (EMFACS), a version of Ekman and Friesen's Facial Action Coding System (FACS) that focuses only on mapping facial expressions to emotional states.

You can also download aggregated signal data for the total audience or for selected segments. Go to the **Exports** tab in the left-hand menu and click **Create aggregated zip download** in the **Aggregated Signal Data** section.

![The Exports page with the Create aggregated zip download button outlined in the Aggregated Signal Data section](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-b5533ee3063f4e8449d0c8cbfe4d9392ce423e6d%2Fda5ead6300_base64-converted-image-1787312611380.webp?alt=media)

For more about the facial expression signals, see the [AFFDEX signals overview](https://help.imotions.com/lab/analysis/facial-expression-analysis/affdex/affectiva-affdex-signals-overview.md) and the [research paper about the Affectiva SDK on arXiv](https://arxiv.org/abs/2202.12059).

### Attention metric and eye tracking

The attention metric combines signals from facial expression analysis with a gaze estimation. It uses several physical signals to determine whether a respondent is focusing on the screen:

* Gaze direction: estimates gaze on the screen using a calibration-less eye tracking model.
* Head pose: measures head pitch and yaw to detect "owl behavior" (moving the head to look away).
* Distraction signals: detects specific distractors such as speech, yawning, drowsiness (prolonged eye closure) and leaving the screen unattended.

Eye tracking shows in detail where on the screen respondents were looking, while the attention metric shows how attentive the respondents were to the content on screen overall.

Use the attention metric as a first step in understanding the outputs. First, check the attention metric to see whether respondents were paying attention to the screen at all. Then look at the eye tracking data to see where on the screen these attentive respondents were looking.

### Calibration-less eye tracking

Calibration-less eye tracking is built on top of the Smart Eye driver monitoring software. The estimated gaze signals from Smart Eye are cleaned and further processed with additional machine learning models to estimate gaze locations on the screen without any calibration (asking respondents to follow gaze points on the screen before or after the stimulus is played). Calibration-less eye tracking uses the respondent's webcam to capture the data.

Because there is no calibration step, respondents do not have to do anything extra, and eye tracking uses the same face videos that are captured for facial expression analysis. Calibration-less eye tracking is included in all Media Analytics studies you create. It works with videos collected on mobile, desktop and tablet devices.

To extract eye tracking data from the videos, respondents need to sit fairly still during the session, keep their head turned towards the screen, and not cover their face and eyes.

Because of the quality of a typical webcam video and the calibration-less setup, the resulting eye tracking data is not perfectly accurate. The expected mean absolute error between the actual gaze location and the estimated one on the screen is around 18% of the screen size.

![Eight eye tracking heatmaps, each with a white cross marking a target position on the screen](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-b581878753d9329522fb4bb416b62a8c13fee6f5%2F811cf6bf2c_image-VCKMGAKV.webp?alt=media)

On the **Analysis** page, Media Analytics always gives an aggregate view of the eye tracking data for all respondents or for segments.

To view eye tracking data, click the **Analysis** tab of your study. The data is shown as a dynamic heatmap of where respondents looked on the screen.

You can adjust the heatmap kernel. **Default** is selected by default, and the **Custom** option lets you adjust the spread with a slider.

### Respiration

Respiration is the cyclic inhalation and exhalation behavior, that is, how we breathe.

Respondents need to sit still in front of the camera with their chest and shoulder region visible in the video. Speaking interferes with the detection of breathing patterns, and even smaller body movements, such as using the mouse and keyboard in a survey, affect data quality.

Media Analytics shows an aggregated view of the moment-to-moment respiration rate, averaged across all respondents in the segment. The underlying data is cleaned of macro movements and signal loss.

You can export respiration signals as part of the aggregated signal data.

![The Web Camera Respiration graph showing respiration frequency over time](https://1859600039-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxsppsOcDpBd2WmT8tcVc%2Fuploads%2Fgit-blob-f3393437d1b0a71c3f9081631ebf2d6781dadd49%2Fe4ed0d5fcd_image-YCO35AK1.webp?alt=media)

To learn more about the iMotions webcam respiration algorithm, see the [iMotions Web-Respiration validation study](https://www.researchgate.net/publication/385243968_iMotions_Web-Respiration_Validation).


---

# 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/media-analytics/sensors-media-analytics.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.
