Blink Detection Using GazeR

While it is generally agreed that blinks need to be taken care of during preprocessing, most eye tracking software does not include this event information. This has lead to the development of several great blink algorithms. I decided to implement a velocity based one off Matĥot (2013) in gazeR.The code itself very simple and intuitive algorithm and does a nice job recovering the pupil data.

This vignette will show how you the steps involved in identifying blinks that underlie theblink_velocity function in gazeR.

First load gazeR and some sample data.

library(gazer)
library(cowplot)
library(data.table)
library(patchwork)
library(tidyverse)
pupil_path <- system.file("extdata", "pupil_sample_files_edf.xls", package = "gazer")
pupil_files1<-fread(pupil_path)
pupil_files1 <- as_tibble(pupil_files1)
Avatar
Jason Geller
Postdoctoral Scholar