> 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-and-saccade-classification-with-the-i-vt-filter.md).

# Fixation and saccade classification with the I-VT filter

Understand how the I-VT filter classifies gaze samples into fixations and saccades by velocity, and how to tune its thresholds and exports in iMotions Lab.

The I-VT filter is the default alternative to the Duration dispersion filter 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). I-VT filters are typically used for higher-sampling eye tracking data (200 Hz or more). For a scientific overview, please see [Holmqvist et al. (2011) pp.147-175](https://lup.lub.lu.se/search/publication/1852359).

## About the I-VT fixation classification filter

### What is the I-VT filter?

I-VT is an abbreviation for velocity-threshold identification. It is used to analyse the raw eye tracking data and classify fixations and saccades by comparing the speed of the eye's movements to a velocity threshold. If the eye is moving slower than this threshold, the I-VT filter classifies a fixation. If the eye is moving faster than this threshold, the I-VT filter classifies a saccade. It can happen that a classification is not possible, for example because of missing data or because additional parameters (such as duration thresholds) are violated. In these cases, the I-VT filter classifies "other". Please note that other types of eye movements such as smooth pursuit cannot be classified with an I-VT filter; they get classified as either a fixation or a saccade, depending on the set velocity threshold.

### Basic principles of eye movement classification with the I-VT 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.
  * From the binocular gaze data in x- and y coordinates for the left and right eye, an average gaze point is computed. If data is missing from one eye, it is replaced with the gaze coordinate from the other eye. If the eye-tracker provides binocular gaze, this signal is used rather than calculating an average gaze point.
  * If gaze or distance data is missing from both eyes, the data gap can be filled with a linear interpolation from the start to the end of the gap. The maximum length for this interpolation can be modified with the parameter *Max Gap Length* in the section *Gap Fill-in (interpolation)*. The interpolation can also be turned off.
  * To smooth out noise in the data, it is possible to apply either a *Moving Average* filter or a *Median* filter inside a moving window around the current sample. The size of this window can be modified with the *Window Size* parameter in the section *Noise Reduction*. This smoothing is optional.
* Signal processing:
  * To compute the gaze velocity at a given sample, the algorithm computes the angular velocity between the first and last sample inside a time window around the current sample. The size of the time window is defined by the *Window Length* parameter in the *Fixation Filter Parameters* section. For this, the distance between the first and last sample inside this time window (in pixels, obtained from their x- and y gaze coordinates)is converted to an angle by taking the respondent's distance to screen into account (as measured by the eye tracker). Dividing this angle by the time lapse between the two samples gives a velocity value in °/s, the velocity computed for the current sample. If a sample inside a time window is missing, no velocity is computed.
  * For Neon by Pupil Labs recordings with eye state data, the angle is instead computed from the 3D gaze direction of the eyes' optical axis, so the velocity reflects the rotation of the eyes. See [Neon by Pupil Labs](#neon-by-pupil-labs) below.
  * Gaze acceleration is computed based on the difference in velocity between the current and its previous sample.
  * For every sample, its velocity is compared against the threshold defined by the *Velocity Threshold* parameter in the *Fixation Filter Parameters* section. If the velocity is equal or higher, the sample is classified as belonging to a saccade. If it is lower, the sample is classified as belonging to a fixation.
* Corrective steps:
  * Noise in the data can lead to jumps between the gaze points of a fixation, which lead to the classification of a saccade and therefore interruption of the fixation. To correct this, fixations in close temporal or spatial neighborhood can be merged together using the *Max Time Between Fixations* and *Max Angle Between Fixation* parameters in the *Merge Adjacent Fixations* section.
  * Short fixations can be discarded using the *Minimum Fixation Duration* parameter in the *Discard Short Fixations* section. This can be desired because too short fixations are sometimes regarded as not meaningful when used as an indicator of cognitive processing. Applying this option will compare every classified fixation against the *Minimum Fixation Duration* parameter and classify it as an unknown event in case the fixation is shorter than this threshold.
* Computation of fixation metrics:
  * Fixations are numbered from start of the recording to its end, as well as from start of the stimulus to its end. Only fixations with their start and end on the same stimulus get counted as belonging to this stimulus.
  * The start time of the fixation is calculated as the average between the timestamp of the first sample of the fixation and the sample preceding it. The end time of the fixation is the average of the timestamps of the last sample of the fixation and the one succeeding it. The time difference between fixation's start and end times is equal to the fixation's duration.
  * The x- and y coordinates of the fixation's centroid are determined by finding the point with the closest distance to all samples of the fixation.
  * Dispersion of the fixation is calculated with a root mean square of the samples belonging to it.
* Computation of saccade metrics:
  * Saccades are numbered from start of the recording to its end, as well as from start of the stimulus to its end. Only saccades with their start and end on the same stimulus get counted as belonging to this stimulus.
  * The start time of the saccade is calculated as the average between the timestamp of the first sample of the saccade and the sample preceding it. The end time of the saccade is the average of the timestamps of the last sample of the saccade and the one succeeding it. The time difference between saccade's start and end times is equal to the saccade's duration.
  * The gaze locations of the first and last sample belonging to the same saccade are used to compute the amplitude of the saccade.
  * Velocities of all samples belonging to the same saccade are compared, and the highest one is classified as the saccade's peak velocity.
  * Accelerations of all samples belonging to the same saccade are compared, and the highest (positive) value is classified as the saccade's peak acceleration.
  * Accelerations of all samples belonging to the same saccade are compared, and the lowest (negative) value is classified as the saccade's peak deceleration.

## 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-4600dec975290c503a71b015ef5d48dcd1e53f5c%2F4ff57d89e9_jpilnkroque1xixwwvwflwmceclip0.webp?alt=media)

* *Fixation Filter:* Option to choose between the I-VT filter explained in this article and the Duration Dispersion filter.
* *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.
* *Fixation Filter Parameters*
  * *Window Length*: Size of the time window around the current sample, used to compute the current gaze velocity. Smaller time windows will make the filter more sensitive to rapid changes in the gaze velocity. If the window size is too small, the two neighboring samples are used even if they fall outside the time window.
  * *Velocity Threshold*: Threshold against which the samples' velocities are compared to classify them as parts of a saccade or fixation
* *Discard Short Fixations:* Fixations falling below this threshold will be reclassified as an unknown eye movement.
* *Merge Adjacent Fixations:* Fixations in a close temporal or spatial neighborhood can be merged together

### Results:

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

![image\_\_18\_.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-040c3b98b66ba32e392b7dbdc16dca774258a966%2F476d1fedb7_image__18_.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 and Saccade 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 and saccades.

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

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

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

### Eye movement 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)                   |
| Gaze Velocity              | Angular velocity of the gaze at the current sample point, i.e. how fast the eyes are moving at this point in time. Computation is based on a time window around the current sample. Distance between the first and last sample of this window is divided by the time lapse between them. | Degrees per second (°/s)           |
| Gaze Acceleration          | Angular acceleration of the gaze at the current sample point, i.e. how much the eyes increased in speed at the current sample. Computed as the difference in velocity between the current and previous sample.                                                                           | Degrees per second squared (°/s^2) |
| 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), calculated as the average between the timestamp of the first sample of the fixation and the sample preceding it.                                                                                                               | Milliseconds (ms)                  |
| Fixation End               | End time of the fixation (relative to recording start), calculated as the average of the timestamps of the last sample of the fixation and the one succeeding it.                                                                                                                        | Milliseconds (ms)                  |
| Fixation Duration          | Duration of the fixation, calculated as the time difference between fixation's start and end times.                                                                                                                                                                                      | 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 (°)                        |
| Saccade Index              | Saccade number, counting from start of the recording                                                                                                                                                                                                                                     |                                    |
| Saccade Index by Stimulus  | Saccade number, counting from start of the stimulus. If first or last saccade is partly taking place during the previous or subsequent stimulus, it is excluded.                                                                                                                         |                                    |
| Saccade Start              | Start time of the saccade (relative to recording start), calculated as the average between the timestamp of the first sample of the saccade and the sample preceding it.                                                                                                                 | Milliseconds (ms)                  |
| Saccade End                | End time of the saccade (relative to recording start), calculated as the average of the timestamps of the last sample of the saccade and the one succeeding it.                                                                                                                          | Milliseconds (ms)                  |
| Saccade Duration           | Duration of the saccade, calculated as the time difference between saccade's start and end times.                                                                                                                                                                                        | Milliseconds (ms)                  |
| Saccade Amplitude          | Amplitude of the saccade, i.e. angular distance that the eyes travelled from start point to end point                                                                                                                                                                                    | Degrees (°)                        |
| Saccade Peak Velocity      | Peak velocity of the saccade, i.e. the maximal speed of the eyes during this saccade                                                                                                                                                                                                     | Degrees per second (°/s)           |
| Saccade Peak Acceleration  | Peak acceleration of the saccade, i.e. the maximal increase in speed of the eyes during this saccade                                                                                                                                                                                     | Degrees per second squared (°/s^2) |
| Saccade Peak Deceleration  | Peak deceleration of the saccade, i.e. the maximal decrease in speed of the eyes during this saccade                                                                                                                                                                                     | Degrees per second squared (°/s^2) |
| Saccade Direction          | Direction of the saccade from its start point to end point, indicated as clockwise angles: 0 degrees mean a horizontal saccade from left to right, 90 degrees a vertical saccade from top to bottom.                                                                                     | Degrees (°)                        |

### Important note about correct screen parameters:

To compute gaze angles for most eye-trackers, iMotions has to convert the difference in gaze coordinates (in pixels on the x- and y-axes) into gaze angles. For this, it is using the width and height from the display information populated in the study settings. 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 and VR headsets, 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)

![mceclip7.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 I-VT 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). Gaze angles and velocities are then based on 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 readings:

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.

Komogortsev, O. V., Gobert, D. V., Jayarathna, S., Koh, D. H., & Gowda, S. M. (2010). Standardization of automated analyses of oculomotor fixation and saccadic behaviors.*Biomedical Engineering, IEEE Transactions on*,*57*(11), 2635-2645.


---

# 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-and-saccade-classification-with-the-i-vt-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.
