Skip to content

Reduce Noise

Sebastian Kapp edited this page Feb 25, 2021 · 1 revision

noise_reduction R Documentation


Reduce Noise

Description

This function reduces noise in the eye tracking data by applying the specified method (usually either median or mean) over the specified window

Usage

noise_reduction(data, method = median, window_size = 3)

Arguments


data Data frame of the eye tracking data we want to process method function which is given the current data window and returns the denoised value (usually either median or mean) window_size Number of data points over which we want to apply the noise reduction


Format

Input data frame columns

gazeorigin_x

: X coordinates of the gaze origin

gazeorigin_y

: Y coordinates of the gaze origin

gazeorigin_z

: Z coordinates of the gaze origin

gazeDirection_x

: X coordinates of the gaze direction

gazeDirection_y

: Y coordinates of the gaze direction

gazeDirection_z

: Z coordinates of the gaze direction

gazePoint_x

: X coordinates of the gaze point

gazePoint_y

: Y coordinates of the gaze point

gazePoint_z

: Z coordinates of the gaze point

Details

This is an implementation of the noise reduction function as documented in the Tobii Pro I-VT fixation filter. It goes through all gaze points and replaces each data point by the result of the specified method (in case of Tobii either median or mean) over all data points in a window centered around the data point currently being replaced.

As the eye tracking rate of the HoloLens 2 is 30 Hz, a noise reduction over 3 samples would result in a window size of 1/30Hz = 100ms. With the typical fixation duration around 200ms this would result in a window not much smaller than the fixation duration and risk significantly influencing the data negatively. Therefore it should not be used by default.

Value

The modified input data frame with the noise reduction applied and an additional column modified which indicates if the line was modified