> 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/gaze-smoothing-filter.md).

# Gaze smoothing filter

Turn on the gaze smoothing filter to smooth jagged gaze paths in replay with a 160 ms Hamming window; it does not change fixations or exported data.

**Background**

As with any biosignal, the eye-tracking signal is noisy, and therefore the coordinates of the collected points are subject to a certain margin of uncertainty, depending on the accuracy and precision of the tracker used, as well as the experimental conditions. As a result, the collected eye gaze path can present jagged lines. This can be mitigated with a gaze smoothing filter, which makes the gaze path less noisy.

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

*Example of a gaze path.*

**How to enable**

In the gaze replay window, you can enable the **Gaze smoothing filter** by selecting the "Gaze smoothing filter" checkbox under *"Visualizations"* in the *Analysis Window*. Please note that the filter is used **exclusively for visualization purposes**. Turning it on will not change the results of the fixation filter or any exported data.

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

*Screenshot of the user interface to activate the Gaze smoothing filter.*

**Methods**

To compute the smoothing filter at any point in time *t* along the gaze path, the following steps are applied:

1. The neighboring gaze points lying in a window of *\[t - 80 ms, t + 80 ms]* around the current points are selected. If missing gaze points are present in this interval, fewer points are considered.
2. Weighted averages are computed for the *x* and *y* coordinates of all points in the window, using a Hamming window of length 160 ms as weights.
3. The result of the weighted average gives the *(x,y)* coordinates of the smoothed point.

The smoothing filter makes the gaze path less jagged and mitigates outliers that might be caused by the signal noise. The reason for using a Hamming window is that the gaze points closest in time to the current point give a larger contribution to the result, making the smoothing more stable.


---

# 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/gaze-smoothing-filter.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.
