> 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/other-eye-tracking-analysis/emotional-heatmap.md).

# Emotional Heatmap

Generate an Emotional Heatmap that filters gaze by AFFDEX facial expression thresholds to show where respondents looked while showing an expression.

*This Help Center article describes the Emotional Heatmap utilizing eye tracking and Facial Expression Analysis.*

The Emotional Heatmap processes eye gaze and facial expressions and visualizes them as a heatmap across a group of respondents. The visualization can be utilized to tell what elements on your tested content earn the most visual attention and at the same time tell the facial expression response to that element.

## Prerequisites:

Supported stimulus types: Images and Surveys.

{% hint style="info" %}
Images include image stimulus and gaze-mapped reference images generated from iMotions [Gazemapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md).
{% endhint %}

Supported sensors: It requires both eye tracking and facial expression analysis data.

{% hint style="info" %}
For facial expression analysis data, it will only work for AFFDEX. If only one or none of these two signals is available, the Emotional Heatmap will not be generated.

Eye tracking data from both iMotions Desktop study and the RDC (remote data collection) module will work.
{% endhint %}

**What is an Emotional Heatmap?**

The iMotions Emotional Heatmap is generated in a similar way to the [eye tracking Heatmap](https://help.imotions.com/lab/analysis/eye-tracking/heatmaps.md). The gaze data from the eye tracking Heatmap is filtered with a threshold based on the Facial Expression Metrics that the user has selected. The filtered gaze points are then visualized and color coded, based on the selected colors. Metrics, threshold values, and colors are customizable by the user and will be explained in detail in the following section. The generated Emotional Heatmap will allow researchers to pinpoint emotional activity in response to the visual elements that were gazed at in the tested content.

**How to generate and export an Emotional Heatmap in iMotions?**

If you have eye tracking and facial expression analysis (AFFDEX) data available in your study, then you are ready to go. First, follow the steps below to create an Analysis in iMotions:

1\. Create a new analysis for the study for which you wish to run the Emotional Heatmap:

![The Add Analysis button on a study in the Library](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0b352d688758cd75a0a20712355835132fb525d1%2Flab_library_add-analysis-button.png?alt=media)

2\. Advance through the steps "Segmentation settings" and "Segmentation criteria" with your preferred selections and continue until you reach the step "Signal processing". The respondents you included in this step will be used to generate Emotional Heatmap later. Please note that for the Emotional Heatmap, you do not need to add any algorithms under "Active flows". You can click "Next" to proceed.

3\. Select the stimuli to be included in the analysis. Then click the "Add" button to add the analysis and close the dialog.

4\. The Emotional Heatmap can then be generated by clicking the "Reports" button:

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

Navigate to the "Emotional heatmap" tab listed together with the other Reports:

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

{% hint style="info" %}
**Please note that in the left side panel, you won't be able to switch between respondents since the analysis is run at&#x20;*****aggregation*****&#x20;level. But you are able to switch between stimuli.**
{% endhint %}

Now you can click and choose to customize your own Emotional Heatmap. The options are listed below:

* **IMAGE, Color profile:** The "Original" and "Grayscale" allow you to keep the original colors in the stimulus, or use a gray scale instead.
* **SIGNAL 1, SIGNAL 2:** The dropdown list contains [all the metrics from AFFDEX](https://help.imotions.com/lab/analysis/facial-expression-analysis/affdex/affectiva-affdex-signals-overview.md). One can choose up to two metrics of interest and their colors to be shown on Emotional Heatmap. The "Threshold" will decide if a detected gaze point is visible or not on the Emotional Heatmap, based on its paired AFFDEX metrics data: If the AFFDEX metrics data falls below the "Threshold", then the corresponding gaze point will not be included in the heatmap; the other way around, if the AFFDEX metrics data is above the "Threshold", then the corresponding gaze point will be included.
* **Zoom:** It's possible to left-click and drag with the mouse on the Emotional Heatmap to zoom in. Click "Reset zoom" to zoom out and restore to its original size.
* **Export heatmap:** Click "Export heatmap" to export the generated Emotional heatmap in .png format outside iMotions.

**Questions and Troubleshooting Tips:**

***Q:** Why can’t I find the "Emotional heatmap" tab after I click "Reports", or see error messages on my Emotional Heatmap iMotions page (see screenshot below)?*

**A:** Please double-check if your study collected both eye tracking data AND AFFDEX data. Only when having both of these signals, you will be able to generate Emotional heatmap properly.

Example when the study only collected AFFDEX data but without eye tracking data:

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

**Image Caption**

***Q:*** *Why do I only see three metrics (Positive, Negative, Neutral) after I click the Signal drop-down?*

**A:** Please wait until the loading is complete, then you will be able to see the full list of the metrics from AFFDEX.


---

# 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/other-eye-tracking-analysis/emotional-heatmap.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.
