> 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/analysis/eye-tracking/heatmaps.md).

# Heatmaps

Create static and dynamic heatmaps showing where groups of respondents looked on a stimulus, set time ranges with annotations and export them in iMotions Lab.

| Entire stimulus time range                                                                                                                                                                                                                                  | First second time range                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c9ae88af0518d43ea4777d748d50e6813ee2cdb9%2F1e52853dcd_image-7C8PV2F3.webp?alt=media" alt="" data-size="original"> | <img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a6036e65fb01fd7bedcc28698680feca855a51a4%2F3099537886_image-H5TYVNHU.webp?alt=media" alt="" data-size="original"> |

#### When to use Heatmaps

Heatmaps allow visualization of aggregated eye tracking data from groups/segments of respondents, *which indicates where respondents looked within the visual stimulus*.

* Heatmaps can be displayed on static images (summarizing the aggregate eye tracking data in an image) or in replay videos (with aggregate eye tracking data overlaid).
* Heatmaps allow *qualitative assessments*, such as identifying the products on a store shelf or parts of a website that received the most attention or were overlooked.
* Note: Heatmaps are only available for stimuli where data can be aggregated, such as Media and Surveys (set up [Using the iMotions Study Builder](https://help.imotions.com/lab/getting-started/using-the-imotions-study-builder.md#stimulus-options)) Heatmaps are not available for stimuli, such as Website, Screen Recordings, Camera Recordings, or Eye Tracking Glasses. But these can be converted with [Gaze Mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md) or [Image Scenes](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/scene-editor.md), into static stimuli, and then aggregated data and Heatmaps would be available.

## How to Create and View Heatmaps

### Heatmap preview

The preview in the main window gives a quick impression of where respondents looked. In a study with eye tracking, select a static stimulus in the analysis, such as an image, a survey slide, a gaze-mapped image or an image scene, and click **Aggregate** at the bottom of the main window. The preview shows a static heatmap of all respondents in the analysis over the entire stimulus, in the heatmap style selected in the Aggregate replay editor.

To work with the heatmap, click **Open analysis** to open the Aggregate replay editor, described below. That is where you change the heatmap options, switch between static and dynamic heatmaps, plot the heatmap for an annotation instead of the entire stimulus, and export it. The preview keeps using the entire stimulus when an annotation is selected as the time range in the editor.

## Heatmaps in Aggregate Replay

You plot, adjust and export heatmaps in the [Aggregate Replay window](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/aggregate-replay.md).

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-96f85daeeb7bbc5f3c5eff2b240b9e501b04ffbe%2F8253d247d0_image-U06OOHW0.webp?alt=media)

### Aggregate Heatmap Settings

Heatmaps are visualized when the ‘Gaze visualization’ is enabled in the ‘Settings’ menu.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7f8a3de41923ed1221da8a86603d278fbce4a1f5%2F598c5f34ae_image-XNBGYCAM.webp?alt=media)

#### Heatmap Options

Two types of heatmaps are available: Dynamic or Static.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c72031ee4a4dfda933661a1b5c085aed193ff392%2F395d21c0d0_image-VEVISISR.webp?alt=media)

#### Dynamic Heatmaps

Dynamic heatmaps are available for both static and dynamic stimulus types.

Dynamic heatmaps are similar to static heatmaps, but rather than to summarize the aggregate eye tracking data *over time* (as one image), they represent the aggregate eye-tracking data *at every point in time* (as a video).

That means that the interpretation of dynamic heatmaps is slightly different from the interpretation of static heatmaps, as, at any point in time, the coloring of the dynamic heatmaps is only determined by *how many* respondents looked at something; not *how long* the individual respondents looked at it.

Dynamic heatmaps are not so much about summarizing *which parts of a stimulus* were looked at most, but rather about understanding *how consistent the gaze behavior is* within a certain group of respondents while interacting with the stimulus. For instance, expert readers of sheet music would exert a much more consistent reading pattern while listening to a piece of music than novices would do; for novices the reading of the notes is much more challenging, and therefore, their eye tracking behavior would be much less consistent.

For dynamic heatmaps you have options to set the Gaze history and the Gaze width.

* **Gaze history** selects the time window for visualized data (backwards relative to the current time in the replay).
* **Gaze width** selects the visualization size of gaze data in the heatmap.

  ![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6a2488ffc2a1f8976bbe72499d60885c7a070176%2Fae63869203_image-CTQIF2H7.webp?alt=media)

#### Static Heatmaps

Static heatmaps visualize the aggregate eye tracking data *as an image*, summarizing the eye tracking data of all respondents included in the analysis across a fixed time range of the duration of the stimulus. The parts of the stimulus that were looked at most by the respondents, are colored red. The parts of the stimulus that were looked at least by the respondents, remain transparent. The colors green, yellow and orange represent everything in between those extremes.

Thereby, a combination of two factors contributes to the coloring of the heatmap: **(1)** *how many* respondents looked at something, and **(2)** *how long* each of the individual respondents looked at it.

These heatmaps can only be generated for static stimulus types (e.g., images, survey slides, 'gaze-mapped images', or 'image scenes'). Therefore, in order to generate static heatmaps for *dynamic* stimulus types (e.g., videos, websites, screen recordings, etc.), you should first apply Gaze mapping (see also: [Gaze mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md)) or use the Scene editor to cut 'image scenes' (see also: [Scene editor](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/scene-editor.md)).

**Base heatmap on** selects what a static heatmap is made from:

* **Gaze points**, the default: all gaze data of the respondents.
* **Fixations**: only the fixations classified by the fixation filter selected for the study: [I-VT](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-and-saccade-classification-with-the-i-vt-filter.md), [I-HMM](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-and-saccade-classification-with-hidden-markov-models.md) or [Duration Dispersion](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-classification-with-the-duration-dispersion-filter.md). Each fixation is counted at its center and weighted by its duration. Gaze that is not part of a fixation, such as a short glance, does not contribute.

The drop-down is shown when **Heatmap** is set to **Static**; dynamic heatmaps are always made from gaze points. The heatmap preview in the main window uses the setting from the Aggregate replay editor. The AOI editor has the same drop-down, with its own setting, when it shows the heatmap of several respondents.

For static heatmaps you have the option to select the time ranges used for the heatmap generation within the exposure of the stimulus.

You can either select to use the ‘**Entire stimulus**’ as time range or any available **Annotation** (see also: [Annotations](https://help.imotions.com/lab/analysis/using-annotations.md)). The 'Heatmap time range' list groups the annotations into Stimulus annotations, Respondent annotations and Automated annotations.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-206f85d8619e7ac09c9f6c2d4abc97e97df40c75%2F1593658a6a_image-NAGWZ0X6.webp?alt=media)

E.g. if only the first second of the stimulus presentation is of importance, then create an annotation that is only active in the first second of the stimulus and select this annotation as the heatmap time range.

* A **Stimulus annotation** covers the same time in the stimulus for all respondents. Use it when the event of interest happens at the same time for everyone, for example a scene in a video.
* A **Respondent annotation** or an **Automated annotation** can cover different times for different respondents. The heatmap only includes the gaze data of each respondent from the time inside their own annotation intervals, and respondents without an interval on the stimulus do not contribute. This allows task-based heatmaps across respondents, for example where respondents looked while they expressed a specific emotion, or during the seconds before they clicked a button. Respondent and Automated annotations are defined in the [Replay editor](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/respondent-replay.md); the Aggregate replay editor picks up added or changed annotations when it is opened again.

| Entire stimulus time range                                                                                                                                                                                                                                  | First second time range                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c9ae88af0518d43ea4777d748d50e6813ee2cdb9%2F1e52853dcd_image-7C8PV2F3.webp?alt=media" alt="" data-size="original"> | <img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a6036e65fb01fd7bedcc28698680feca855a51a4%2F3099537886_image-H5TYVNHU.webp?alt=media" alt="" data-size="original"> |

**Note:** Changing the selected annotation's intervals will also affect the shown static heatmap, including intervals of Respondent annotations changed for individual respondents in the Replay editor.

#### Customization options

* *Heatmap* style: Choose between a heatmap and spotlight style
* *Beeswarm*: Choose to add a beeswarm (representing *all* fixations or *all* respondents)

These options can freely be combined, such that it is possible to generate a *static* heatmap with *dynamic* beeswarm, or vice versa, a *dynamic* heatmap with *static* beeswarm.

## Heatmap Export

The currently shown heatmap can be exported using the Export menu.

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-ddc666c5c0e2fef78417591b43094e42cadd501e%2Fc9f0bf76a0_image-M3ASC8U5.webp?alt=media)

For static stimuli the specific Heatmap export option is available, where the heatmap background can be selected.

For dynamic stimuli the Video and Image export option can be used to export the given view including the selected heatmap options.

## Heatmaps in Individual Replay

To visualize the gaze from a single person, [**Scan-paths**](https://help.imotions.com/lab/analysis/eye-tracking/scan-paths-and-individual-heatmaps.md) are often more informative than heatmaps because they show the full gaze sequence along with visual feedback on the relative length of the fixations underway.

If a heatmap visualization is preferred, the [Individual Replay](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/respondent-replay.md) allows you to plot a heatmap only sourcing the data from the current respondent over the specified time window (entire stimulus or selected Annotation). **Base heatmap on** selects gaze points or fixations there too.

<figure><img src="https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2FTQiJRdzLmJ37ODICr4sl%2Fimage.png?alt=media&amp;token=ebecfe81-cf1d-4811-b8ec-40cacdbb2be9" alt=""><figcaption></figcaption></figure>


---

# 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/analysis/eye-tracking/heatmaps.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.
