> 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/fixation-classifiers/fixation-classification-with-the-duration-dispersion-filter.md).

# Fixation classification with the Duration Dispersion Filter

Understand how the Duration Dispersion filter groups gaze samples into fixations using dispersion and duration thresholds, and how to set it in iMotions Lab.

*This article describes how iMotions classifies fixations with the Duration Dispersion Filter, which is an alternative to the default* [*I-VT filter*](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-and-saccade-classification-with-the-i-vt-filter.md) *as well as a* [*classification based on Hidden Markov Models*](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-and-saccade-classification-with-hidden-markov-models.md)*. Duration dispersion filters are typically used for lower-sampling eye tracking data (below 200 Hz). For a scientific overview, please see* [*Holmqvist et al. (2011) pp.147-175*](https://lup.lub.lu.se/search/publication/1852359)*.*

## About the Duration Dispersion Filter

### What is the Duration Dispersion Filter?

The Duration Dispersion Filter is a method to classify fixations in eye tracking data. The underlying principle is determining that gaze points in a close neighborhood to each other belong to the same fixation. For this, there are two essential thresholds (hard coded in the algorithm):

* a maximum difference of 0.5 degree visual angle (0.5 dva radius, 1 dva diameter)
* a temporal minimum of 100 milliseconds

### Basic principles of fixation classification with the Duration Dispersion Filter (video):

### Computation in detail:

* Data preparation:
  * If the sampling rate of the recording fluctuates, iMotions inserts empty samples where samples are missing, so that the data has a fixed sampling rate. These samples count as missing data.
  * The algorithm always runs on the averaged gaze point from the left and right eye. If data from one eye is missing, it is being replaced with the data from the other eye. If the eye-tracker provides binocular gaze, this signal is used rather than calculating an average gaze point.
  * If you chose to do so in the "Gaze Analysis" tab, missing data up to the selected threshold is interpolated (linear interpolation from the last sample before the data drop to the first data sample after data was picked up again).
  * If you chose to do so in the "Gaze Analysis" tab, a noise reduction filter is being run on the data. This smooths out the signal. You can choose between a *moving average* and a *median* filter, and modify the size of the window.
* Signal processing:
  * For Neon by Pupil Labs recordings with eye state data, distances between gaze points are measured as angles between the 3D gaze directions of the eyes' optical axis. See [Neon by Pupil Labs](#neon-by-pupil-labs) below.
  * If two gaze points (x and x+1) are closer than 0.5 dva to each other, they are classified as "candidates" for a fixation. iMotions then computes the center point between them.
  * If the next gaze point (x+2) is less than 0.5 dva away from the center between the previous points, this gaze point is also counted as belonging to the fixation candidate and iMotions computes a new center point for these three samples.
  * This is repeated for every subsequent gazepoint. iMotions computes the center of the fixation candidate and compares if the next sample is still less than 0.5 dva away from the center of the fixation candidate.
  * As soon as one sample is further away, i.e. more than 0.5 dva, the new sample (x+n+1) is no longer counted as part of the fixation. iMotions then concludes that the fixation consists of n samples and computes the fixation centroid.
  * However, if the duration of this fixation is less than 100 ms, it gets discarded. Only fixation candidates longer than 100 ms count as a fixation. Fixations classified with the Duration Dispersion Filter therefore will never be shorter than 100 ms.
  * If data is missing, these samples are skipped for the computation but still count as a part of the fixation candidate. If a fixation candidate contains more than 50% missing data, it is discarded. Fixations therefore have less than 50% missing data.

## Settings and export options in iMotions

### Parameters in the "Gaze Analysis" tab at study level:

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

* *Fixation Filter:* Option to choose between the Duration Dispersion filter explained in this article and the [I-VT filter](https://help.imotions.com/lab/analysis/eye-tracking/fixation-classifiers/fixation-and-saccade-classification-with-the-i-vt-filter.md).
* *Gap Fill-in (interpolation):* If selected, missing data is linearly interpolated from the last recorded sample before the data gap until the first recorded sample after the data gap, given the gap is no longer than the indicated maximum gap length. Unless interpolated, samples with missing data will be classified as an unknown eye movement.
* *Noise Reduction:* Smoothes the signal and replaces the coordinates of the current sample with a newly computed value. Please bear in mind that when the noise reduction is applied on data from a low-sampling eye tracker, one risks to filter out the signal.
  * Users can choose between a *moving average* or a *median* filter applied on the samples inside the window. The moving average has a stronger smoothing effect than the median filter.
  * *Window Size*: Determines across how many samples the smoothing shall take place. The more samples are included, the stronger the smoothing.

### Results:

The result of the fixation classification will be visible in the data replay.

![image\_\_20\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-04bdb95c37f24784b4d58259c0e6d0d6b46860f3%2F609c391b26_image__20_.webp?alt=media)

Depending on the visualization you chose, some parts of the graphs will be shown as a dotted line because there is no data available for this time point (for example if you are plotting the amplitude of a saccade, the time while a fixation was happening will be shown as a dotted line). Therefore, we recommend using the "Area" visualization for Fixation visualizations.

The fixation classification will also be used for computing AOI metrics. You can export the AOI metrics in the export tab, as well as detailed statistics about the classified fixations.

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

The eye movement classification can also be exported with the Sensor Data export.

![image\_\_21\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8034a06f972ec7120e6cd3a5acfd00f1ea4a1d91%2F7b2911736c_image__21_.webp?alt=media)

### Fixation data in detail:

| **Metric**                 | **Detailed description**                                                                                                                                                                                                                                         | **Unit**          |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| Gaze X                     | Gaze data X-coordinate (relative to top-left corner of the screen). Average of the X-coordinates of the left and right eye.                                                                                                                                      | Pixels (px)       |
| Gaze Y                     | Gaze data Y-coordinate (relative to top-left corner of the screen). Average of the Y-coordinates of the left and right eye.                                                                                                                                      | Pixels (px)       |
| Interpolated Gaze X        | Gaze data X-coordinate (relative to top-left corner of the screen) with missing coordinates interpolated. Average of the X-coordinates of the left and right eye. Linear interpolation from the last sample before the gap until the first sample after the gap. | Pixels (px)       |
| Interpolated Gaze Y        | Gaze data Y-coordinate (relative to top-left corner of the screen) with missing coordinates interpolated. Average of the Y-coordinates of the left and right eye.Linear interpolation from the last sample before the gap until the first sample after the gap.  | Pixels (px)       |
| Interpolated Distance      | Estimated distance between the eye-tracker and the eyes, with missing values interpolated. Average of the eye tracker's distance to the left and right eye.Linear interpolation from the last sample before the gap until the first sample after the gap.        | Millimeters (mm)  |
| Fixation Index             | Fixation number, counting from start of the recording                                                                                                                                                                                                            |                   |
| Fixation Index by Stimulus | Fixation number, counting from start of the stimulus. If first or last fixation is partly taking place during the previous or subsequent stimulus, it is excluded.                                                                                               |                   |
| Fixation X                 | X-coordinate of the fixation centroid (relative to top-left corner of the screen)                                                                                                                                                                                | Pixels (px)       |
| Fixation Y                 | Y-coordinate of the fixation centroid (relative to top-left corner of the screen)                                                                                                                                                                                | Pixels (px)       |
| Fixation Start             | Start time of the fixation (relative to recording start), i.e. the time stamp of the first sample classified as belonging to the fixation.                                                                                                                       | Milliseconds (ms) |
| Fixation End               | End time of the fixation (relative to recording start), i.e. the time stamp of the last sample classified as belonging to the fixation.                                                                                                                          | Milliseconds (ms) |
| Fixation Duration          | Duration of the fixation, i.e. the time difference between the first and last sample of the fixation.                                                                                                                                                            | Milliseconds (ms) |
| Fixation Dispersion        | Dispersion of the fixation, i.e. how much the fixation's gaze points are spread out. Computed as root mean square of the samples belonging to the fixation.                                                                                                      | Degrees (°)       |

### Important note about correct screen parameters:

In order to compute the distance between two gaze points, iMotions needs to convert 1 degree visual angles into pixels. For most eye-trackers, it is using the width and height from the display information populated in the study settings for this. For this computation to be correct, it is absolutely crucial that the parameters reflect the true size of your computer screen and its resolution, or size of the scene camera's field of view and its resolution, respectively, that you used during data collection.

For Smart Eye Pro, iMotions receives 3D gaze data as well as information about the world model objects. Hence, gaze angles are computed from the 3D gaze vectors and do not require the computation outlined below.

For screen based eye trackers, the algorithm uses the distance between eyes and screen as it was recorded by the eye tracker in order to convert the distance on the screen into a gaze angle. The width and height of your computer screen need to be manually measured with a ruler, and filled in accordingly.

For mobile eye tracking glasses, the algorithm uses the fixed field of view parameters (width, height, and distance) as they are entered in study settings. The exception is Neon recordings with eye state data, described in [Neon by Pupil Labs](#neon-by-pupil-labs). Newer versions of iMotions auto-populate these fields with the manufacturer's information; if you are using an older version, you need to enter the field of view parameters manually:

* Tobii Glasses 2: Distance 100 cm, width 173.86 cm, height 97.55 cm with resolution 1920 x 1080
* Argus Science ET3Vision: Distance 100 cm, width 207.11 cm, height 97.55 cm with resolution 1280 x 720
* Pupil Invisible: Distance 100 cm, width 200 cm, height 200 cm with resolution 1088 x 1080
* Varjo: Distance 100 cm, width 184 cm, height 170 cm with the automatically populated resolution. Please note that average values are being used for VR headsets which can deviate slightly from the actual field of view resulting from the individual configuration of the headset.
* Pupil Core: The parameters depend on the settings that you chose in the Pupil app. Therefore, they always need to be updated manually:
  * Wide Angle Lens 1080p: Distance 100 cm, width 535 cm, height 177 cm
  * Wide Angle Lens 720p: Distance 100 cm, width 234 cm, height 100 cm
  * Wide Angle Lens 480p: Distance 100 cm, width 238 cm, height 151 cm
  * Narrow Angle Lens 1080p: Distance 100 cm, width 193 cm, height 102 cm
  * Narrow Angle Lens 720p: Distance 100 cm, width 123 cm, height 67 cm
  * Narrow Angle Lens 480p: Distance 100 cm, width 77 cm, height 57 cm

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

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

### Neon by Pupil Labs

For Neon by Pupil Labs, the Duration Dispersion filter uses the 3D gaze direction of the eyes' optical axis when the recording contains eye state data. Neon records eye state data when **Compute eye state** is enabled in the Neon Companion app or in Pupil Cloud, see [Neon glasses signals in iMotions](https://help.imotions.com/lab/sensor-setup/eye-tracking-glasses/pupil-labs/neon-by-pupil-labs-live-recording-and-other-study-types.md#neon-glasses-signals-in-imotions). The 0.5 dva threshold is then applied to the rotation of the eyes, and the field of view parameters in the study settings are not used. The results also contain a **Gaze 3D** signal group and the X, Y and Z direction of each fixation.

Without eye state data, the filter uses the 2D gaze in the scene camera video and the field of view parameters, as for other eye tracking glasses. Gaze mapping always uses the 2D gaze.

## Further reading:

Blignaut, P. (2009). Fixation identification: The optimum threshold for a dispersion algorithm.*Attention, Perception, & Psychophysics*,*71*(4), 881-895.

Holmqvist, K., Nyström, N., Andersson, R., Dewhurst, R., Jarodzka, H., & Van de Weijer, J. (Eds.) (2011). Eye tracking: a comprehensive guide to methods and measures, Oxford, UK: Oxford University Press.

Salvucci, D. D., & Goldberg, J. H. (2000, November). Identifying fixations and saccades in eye-tracking protocols. In *Proceedings of the 2000 symposium on Eye tracking research & applications* (pp. 71-78).


---

# 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/fixation-classifiers/fixation-classification-with-the-duration-dispersion-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.
