Abstract
Blinks, the closing and opening of the eyelids, are used in a wide array of fields where human function and behavior are studied. In data from video-based eye trackers, blink rate and duration are often estimated from the pupil-size signal. However, blinks and their parameters can be estimated only indirectly from this signal, since it does not explicitly contain information about the eyelid position. We ask whether blinks detected from an eye openness signal that estimates the distance between the eyelids (EO blinks) are comparable to blinks detected with a traditional algorithm using the pupil-size signal (PS blinks) and how robust blink detection is when data quality is low. In terms of rate, there was an almost-perfect overlap between EO and PS blink (F1 score: 0.98) when the head was in the center of the eye tracker’s tracking range where data quality was high and a high overlap (F1 score 0.94) when the head was at the edge of the tracking range where data quality was worse. When there was a difference in blink rate between EO and PS blinks, it was mainly due to data loss in the pupil-size signal. Blink durations were about 60 ms longer in EO blinks compared to PS blinks. Moreover, the dynamics of EO blinks was similar to results from previous literature. We conclude that the eye openness signal together with our proposed blink detection algorithm provides an advantageous method to detect and describe blinks in greater detail.
Keywords: Blink, Eye tracking
Introduction
Blinks involve the closing and re-opening of the eyelids and have been the subject of investigations in a large variety of fields due to their relation with human behavior, function, and cognition (e.g., Stern et al., 1984; Eckstein et al., 2017). Traditionally, eyelid position has been estimated directly or indirectly with attachment devices such as electrooculography (EOG) or magnetic search coils (MSC), but it is increasingly being estimated from video recordings of participants’ faces. In data from many modern video-based eye trackers, blink classification is commonly performed on the pupil size (PS) signal, where clusters of samples reported as invalid (or data loss) are taken as blinks. However, the PS signal can have invalid samples for other reasons than eyelid closure, for instance due to head movements relative to the camera (Wass et al., 2014), and looking outside (Hessels et al., 2015a) or towards the edges of the screen (Nyström et al., 2013). Importantly, the eyelid position cannot be measured directly from the PS signal. Consequently, researchers need better methods to study different properties of blinks in more detail. In line with this need, some eye trackers output information about the position of the eyelids and/or information about how open the eye is, i.e., the distance between the upper and lower eyelids (e.g., the Smart Eye Pro, Tobii Pro Spectrum, and Tobii Pro Fusion). In this paper, we will investigate the following. First, we ask whether blink rate and blink duration differ when blinks are detected from the PS signal and a recently introduced eye openness (EO) signal from a commercial remote eye tracker (the Tobii Pro Spectrum).
Second, to investigate how robust blink detection from these signals is when tracking is difficult and data quality deteriorates, we evoke a situation where data loss and precision are expected to become worse. Besides recording blinks from participants where data loss is expected to be low and signal precision is expected to be high in the center of the head-box of the eye tracker, we also record blinks close to or far away from the eye tracker. This may happen, for example, when participants are free to move and end up at the edge of the eye tracker head-box. Finally, we test whether properties and dynamics of blinks detected from the eye-openness signal conform with previous literature.
Since it is advantageous to be able to detect blinks with a computer algorithm (Hooge et al., 2018), another contribution of this article is the development of a new algorithm for blink classification from the EO signal. To inform the design of this algorithm and identify key properties of blinks, we start by a systematic review of previous work of different approaches to define and describe, record, and classify blinks and compute their parameters. Informed by previous literature, the new algorithm for blink classification using the EO signal is proposed and its detected blinks are compared with blinks detected from commonly used algorithms operating on the PS signal (e.g., Hoogerbrugge et al., 2022). Data from 12 participants were collected and used in the comparison.
Blinks
Why are blinks interesting to study?
Blinks have been studied in several different fields of research and for different purposes (see overviews by e.g., Stern et al., 1984; Cruz et al., 2011; Eckstein et al., 2017). For instance, (Eckstein et al., 2017) discuss several ways blinks are informative of cognition and cognitive development, including how spontaneous blink rate is related to dopaminergic activity (Jongkees & Colzato, 2016), how blinks are associated with certain disorders and how different cognitive processes can be studied using blinks. Blinks have been recorded to study drowsiness, where Caffier et al. (2003) found that several parameters of spontaneous blinks are indicative of how drowsy a person is.
In particular, they found that blink duration, re-opening time, and closure duration changed reliably with the level of drowsiness. More generally, the percentage of how much the eyelids are closed (known as the PERCLOS measure) is often cited as the most valid and reliable indicator of sleepiness (Ahlström et al., 2021). In a vigilance task, McIntire et al. (2014) found that both blink rate and duration increased with the time-on-task as performance got worse. Blink rate has also been shown to increase when a person is being cross-examined in a courtroom (Ponder & Kennedy, 1927) and more generally to task demands (Stern & Skelly, 1984). In primates, Tada et al. (2013) found that the blink rate increased with the group size in which primates live and argue that blinks play a role in social communication.
When the eyelid is closed, less light reaches the retina. Despite the significant effect blinks have on the retinal image, the perceptual effects of blinks are typically small. Volkmann et al. (1980) showed that the sensitivity to visual stimulation on the retina is reduced before the eyelid starts closing and does not fully recover until after the eyelid is fully open (about 200 ms after blink onset). Blink suppression has a similar magnitude and time course as saccadic suppression (Matin, 1974; Volkmann et al., 1980).
What is a blink and what types of blinks are there?
Humans are one of the many species that regularly open and close their eyelids. Blount (1927) provides four reasons why blinking is common in human and many non-human species. First, blinking is used to moisten the surface of the eyeball and to remove dirt from the eyes. Second, “to allow alteration to take place in the tension of the ocular muscles and thus to eliminate early fatigue” (p.120 Blount 1927). Third, to protect the eyes from injury due to external impact of the eyes, and finally, to protect the eyes against continuous exposure to light. In addition, (Cruz et al., 2011) write that blinks contribute to clarity of vision and to maintain the stability of tear film.
Similar to the reported confusion about terminology and definitions of fixation and saccades in the field of eye movement research (Hessels et al., 2018), there are surprisingly many papers about blinks that do not provide a clear definition of what a blink is. In those that do, blink definitions vary. In the remaining part of this subsection, examples of blink definition are provided together with a table that highlight such variations (Table 1).
Table 1.
Type | Eyelid | Pupil | Cornea | Iris | Eyeball | Time | Space | Binocular | Ref |
---|---|---|---|---|---|---|---|---|---|
Blink | x | x | x | x | x | Blount (1927) | |||
Wink | x | x | x | x | Blount (1927) | ||||
Half-blink | x | Blount (1927) | |||||||
Flicker | x | x | x | Blount (1927) | |||||
Flink | x | x | Blount (1927) | ||||||
Blink + full-closure of the eyes | x | Blount (1927) | |||||||
Blink | x | x | Stern et al. (1984) | ||||||
Small blink | x | x | x | Stevenson et al. (1986) | |||||
Medium blink | x | x | x | Stevenson et al. (1986) | |||||
Large blink | x | x | Stevenson et al. (1986) | ||||||
Blink | x | Cruz et al. (2011) | |||||||
Twitch | x | x | Patel et al. (2011) | ||||||
Incomplete blink | x | x | Patel et al. (2011) | ||||||
Complete blink | x | x | Patel et al. (2011) | ||||||
Forced or voluntary blink | x | Patel et al. (2011) | |||||||
Complete blink | x | x | Cardona et al. (2011) | ||||||
Incomplete blink | x | x | Cardona et al. (2011) | ||||||
Twitch blink | x | x | Cardona et al. (2011) | ||||||
Twitch blink | x | x | Cruz et al. (2011) | ||||||
Large blink | x | x | x | Rosenfield et al. (2015) |
An ‘x’ means that a particular aspect of the blink is mentioned in the definition. In his description of blinks, for instance, Blount (1927) mentions that a blink is a temporary closure (time) of the eyelids (eyelid) in both eyes (binocular), where the pupil is momentarily hidden from view (pupil), but the eyeball does not necessarily move (eyeball)
Some of the earlier definitions of blinks were provided by Blount (1927), who distinguishes between eight different types of blinks, albeit admitting their rather arbitrary nature. Since the definitions also cover animals, not all types are applicable to humans; two involve the ‘third eyelid’ present in some animals. Therefore, only six are provided (definitions taken directly from the paper, pp. 111–112):
Blink - is a temporary closure of both eyes, involving movements of the upper and lower eyelids. The pupil is momentarily hidden from view, but the eyeball does not necessarily move its position to an observable extent.
A wink is a similar movement, but of one eye only. (It must not be confused with the human "wink," which is carried out voluntarily.)
A half-blink may or may not involve the lower eyelids. The upper eyelids are always lowered and approach the lower lids.
A flicker is a rapid, synchronous movement of both upper eyelids, but not a half-blink. Flickering is constituted of several flickers carried out in rapid succession.
A flink is a flicker involving one eyelid only.
A full-closure of the eyes is much the same as a prolonged blink, but the edges of the eyelids remain together for a considerable time.
More recently, (Cruz et al., 2011) defined a blink as an “eyelid movement that closes and opens the palpebral fissure”, where the latter refers to the opening between the eyelids. A similar definition was given by Stern et al. (1984) who write that an “Endogenous [spontaneous] eye blink is defined as fast closing and reopening of eyelids”. Stern et al. (1984) distinguish between three types of blinks: spontaneous, reflexive, and voluntary, where the two former are considered to be involuntary. Spontaneous blinks are characterized by “unconscious, transient, or brief closure of both upper eyelids that occurs in a highly symmetrical and coordinated fashion in the absence of any evident stimulus” (Cruz et al., 2011). Reflexive blinks occur in response to potentially injurious stimuli such as a large visual or auditory transient ones (Stern et al., 1984). Spontaneous and voluntary blinks cannot be distinguished objectively, without knowledge about the context in which they were recorded, according to Volkmann et al. (1980). Normally, the upper eyelid is responsible for most of the change in eye openness during a blink Cruz et al. (2011). However, Collins et al. (1989) write that during what they call a ‘forced’, voluntary blink, the lower eyelid moves upwards to meet the upper eyelid more than during spontaneous blinks, where the lower eyelid moves only slightly nasally.
(Patel et al., 2011 p. 201) provides a blink classification scheme including four types of blinks:
A twitch blink consisting of a small movement of the upper eyelid, an incomplete blink in which the descending upper eyelid covers less than two-thirds of the cornea, a complete blink in which the descending upper eyelid covers at least two-thirds of the cornea and a forced or voluntary blink in which the lower eyelid rises to meet the upper lid.
A slightly different scheme was used by (Cardona et al., 2011 p. 193):
Blink rate included complete and incomplete blinks, in which a complete blink was defined by a downward movement of the upper eyelid covering more than 75% of the cornea. Minor twitches of the upper eyelid, covering less than 30% of the cornea, [...] Blinks covering between 30 and 75% of the cornea were counted as incomplete blinks.
Incomplete blinks have also been referred to as ‘microblinks’, which Stern et al. (1984) describe as endogenous blinks with reduced amplitudes. Cruz et al. (2011) refer to twitch blinks as a “small, almost undetectable movement of the upper eyelid”.
Stevenson et al. (1986) divided blinks into small, medium, and large. During small blinks, the upper eyelid typically descended to a position between the upper edge of the iris and the upper edge of the pupil. When most or all of the pupil was covered, a medium blink was registered. A large blink represented the case where the upper eyelid met with the lower eyelid.
Rosenfield et al. (2015) provided a similar definition where the requirement for a full blink was the “upper eyelid cover the entire corneal surface”.
Even though they are controlled by the same muscle (orbicularis oculi) (Sheedy et al., 2005), blinking has been qualitatively distinguished from squinting, where the latter narrows “the vertical dimension of the palpebral aperture to improve visual resolution while also lowering retinal illumination to minimize glare” (Rosenfield et al., 2015).
In everyday life, a combination of different types of blinks occurs. In a group of healthy participants, (Abelson & Holly, 1977) found that the majority (80%) of blinks were complete blinks where the eyelids closed completely; 17% were incomplete and 3% were twitch blinks. Carney and Hill (1982) found a percentage of complete and incomplete blinks of 90% and 8%, respectively, and Collins et al. (2006) reported 73% complete blinks, 22% incomplete blinks, and 5% twitch blinks.
Even though there are differences in how blinks are defined (e.g., does the pupil have to be covered by the eyelids or not, how much of the cornea has been be covered by the eyelids) and what types of blinks there are (e.g., spontaneous, forced, full, partial, and twitch blinks), a common denominator from the above literature seems to be that blinks are associated with a rather brief lid closure of one or both eyes (cf. Table 1). How much and how quickly the eyelids descend and re-open, how long they are closed, whether the blinks are monocular or binocular and what structure of the eye surface the eyelids need to cover have been used to decide the blink sub-type. Compared to other types of blinks, small movements of the upper eyelids (twitch blinks and flicker) seem to be mentioned only in a very small number of papers, leading us to question how relevant they are to the broader scientific community interested in blinks, for instance researchers interested in mental workload or arousal.
Characteristics and kinematics of blinks
Blinks can be characterized by a number of parameters where the most common include the rate, duration, inter-blink interval, amplitude, closing time/speed, re-opening time/speed.
Blink rate and inter-blink intervals
The blink rate is perhaps the most used blink parameter. Blink rates and inter-blink interval durations in the literature vary substantially, both over participants, groups, and tasks. The blink rate within participants has been reported to be relatively constant, with a specific ‘rhythm’ or patterns of inter-blink intervals (Carney & Hill, 1982). Leigh and Zee (1999) [p. 156] write that blinks typically occur 20 times per minute and Carney and Hill (1982) report an average of rate of 12.55 blinks per minute over 20 healthy participants. Caffier et al. (2003) reported that blink rate decreases as participants become more drowsy (alert: 16.33 blinks per minute, drowsy: 15.84 blinks per minute). Blink rate changes over the course of life, where even fetuses blink (less than three times per minute) and the blink rate increases over childhood (6–8 blinks per minute) to stabilize at a rate or 20 blinks per minute during adulthood (Eckstein et al., 2017; Bacher & Smotherman, 2004).
Ponder and Kennedy (1927) reported inter-blink intervals in 31 subjects and found a left-skewed distribution with the majority of intervals occurring between 0.5 and 2 s and a minority of intervals above 5 s. However, some of the individual participants showed more Gaussian, rectangular, or bimodal distributions of inter-blink intervals.
Factors such as air quality, defensive responses, cognitive processes, situational demands, and individual differences influence the blink rate (Stern et al., 1984). Drew (1951) found that blink rate varies substantially across individuals, but that this inter-subject variation was not related to task performance. However, intra-subject variation in blink rate was correlated with the level of difficulty in tasks performed both in the laboratory and in a real-world driving task.
Blink duration and opening/closing times
According to Stern et al. (1984), most blinks last between 150 and 400 ms, where the eyes are completely closed for about 50 ms. Stern et al. (1984) also noted that the re-opening time was longer than the closing time. Caffier et al. (2003) report blink durations of about 200 ms in ‘alert’ participants, with a skewed blink waveform where the closing time (63 ms) was much shorter than the opening time (138 ms). Differences in duration between different types of blinks are also described in the literature. VanderWerf et al. (2003) found that blinks triggered by electrical stimulation of the supraorbital nerve triggered shorter and less variable blinks than spontaneous blinks, whereas blinks induced by air puffs were more similar to spontaneous blinks in terms of the same measures. Stern et al. (1984) found spontaneous eye blinks to be shorter than reflexive and voluntary blinks. Blink durations have been found to decrease with increasing visual task demands (Benedetto et al., 2011).
Blink amplitude
Blink amplitude refers to the distance between the eyelid position at a baseline value (e.g., the blink onset) to the maximum excursion from this baseline value during a blink (typically when the eye is maximally closed).
The eyelids do not necessarily return to the same position after a blink, thus the down- and the up-phase of the blink may have different amplitudes. According to Cruz et al. (2011), it is generally agreed that it is easier to estimate the amplitude of the down-phase, since the up-phase can show an oscillatory behavior and therefore it can be difficult to determine its offset. There is typically a large within-subject variability in blink amplitude. The main reason behind this variability is physiological; blinks starting during an upward gaze direction have longer amplitudes since the upper eyelid is pushed upwards prior to the blink (Stern et al., 1984). Conversely, blinks during a downward gaze are associated with shorter amplitudes.
Since blinks historically have been recorded with devices that output a voltage (Stern et al., 1984), the unit of blink amplitude is either given in V (Tanaka & Yamaoka, 1993) or expressed in relative terms following a calibration. Helmchen et al. (2006) describe such a calibration procedure where the voltage at eyes open and eyes fully closed are recorded and subsequent values are expressed in relation to these. They propose the relative blink amplitude (RBA) where a 30% value, for instance, would mean 30% of full closure.
In video recordings of the eye, the position of the upper and lower eyelids can be measured frame-by-frame in millimeters, either manually or by means of computerized methods to estimate blink amplitude (Cruz et al., 2011). Recently, several methods using deep neural networks have been developed to estimate eye openness and blinks (Cortacero et al., 2019).
Cruz et al. (2011) reported a relative blink amplitude, where the blink amplitude in millimeters was divided by marginal reflex distance (MRD), which is the distance between the upper eyelid and the pupil center. A relative blink amplitude above 1 means that the pupil is fully covered by the eyelid and Cruz et al. (2011) found in data from one participant recorded for 1 h that only 4.5% of the blinks do not fully cover the pupil.
Cruz et al. (2011) argue that a more natural unit to present blink amplitude would be in degrees, since the eyelid follows the curved surface of the cornea. Using magnetic search coils, the amplitude can be estimated as the angle of a coil taped/glued to the eyelid relative to the orientation of the magnetic field (Cruz et al., 2011). They report blink amplitudes ranging from 10 degrees to 60 degrees and also that blink amplitudes change with age; from 37.8 degrees () in 40–49-year-olds to 28.4 degrees () in a group of 80–89-year-olds (Sun et al., 1997)
Blinks and eye movements
Blinks both affect eye movements and are affected by eye movements. When fixating a stationary target, the eyes move down and towards the nose during a blink (pp. 156–157 Leigh and Zee, 1999), although such movements are slower than saccades. They also note that blinks frequently occur during saccades and that they become increasingly more common for larger saccades. Saccades during blinks are typically slower and have lower peak velocities and accelerations and longer durations (Rambold et al., 2002). Therefore, Leigh and Zee (1999) emphasize that blinks must be taken into account when studying saccades.
The eyelid position changes as a function of vertical eye orientation (Stern et al., 1984). Evinger et al. (1991) found that the kinematics of the eyelid during the opening phase of a blink is indistinguishable from eyelid kinematics when the eyelid moves due to a upward vertical saccade.
Recently, magnetic resonance imaging (MRI) was used to image the eyeball during blinks. Recording data from two participants, Kirchner et al. (2022) found that the eyeball can be lifted (inferior to superior displacement) and retracted (anterior to posterior displacement) with as much as 2 mm during a blink. For one of the participants, the eye also rotated vertically downward by 35 degrees.
Methods to record blinks
Early methods to quantify blinks include visual observation as well as mechanical, optical, electric, and photoelectric methods. A good overview of these methods is given by Stern et al. (1984); Cruz et al. (2011); Eckstein et al. (2017). Over the past decades, three methods, electrooculography (EOG), magnetic search coils (MSC), and video recordings, are perhaps the most common.
EOG is commonly used to estimate eye movements and uses the fact that there is a potential difference between the cornea and the retina, generating an electric field around the eyeball. Consequently, any eye rotation moves this electrical field and electrodes around the eye can pick up resulting changes in voltage. Vertical eye rotation can be estimated by attaching electrodes above and below the eye, whereas horizontal eye rotation is estimated by attaching electrodes on the left and right side of the eye. The eyelid acts as a “sliding resistor” and changes the potential between the cornea and retina as it moves and the EOG signal can therefore be used to estimate eyelid movement and hence blinks (Stern et al., 1984). Since both the vertical orientation of the eye and the eyelid position contribute to EOG in the vertical plane, it is impossible to distinguish vertical eye movement from eyelid movement (Stern et al., 1984). While being a simple and inexpensive method to estimate eyelid position, EOG suffers from electrical and electromyographic noise, requires repeated calibration and has an unstable, drifting baseline value (Leigh & Zee, 1999).
The magnetic search coil technique is based on attaching coils to the eyelids and putting them in an alternating magnetic field (Remmel, 1984). An electric current is generated when the coils move within this magnetic field and this current can be related to the three dimensional spatial position and rotation of the coil. The magnetic search coil technique is known for being one of most accurate and precise methods to record eye movements (p. 723 Leigh and Zee, 1999) and eyelid movements (Guitton et al., 1991). The obvious disadvantage of the technique is its invasive nature, where coils need to be glued or taped to the eyelids (Evinger et al., 1991).
Several methods have been proposed to extract relevant features from a video recording of the eyes to be able to estimate blinks. For instance, Appel et al. (2016) and Espinosa et al. (2018) used the assumption that the (dark) pupil gets occluded by the eyelid during a blink, which makes frames acquired during a blink brighter than frames recorded when the pupil is visible. The summed pixels values in each frame therefore provide a crude estimate of the eyelid position.
Another common method to estimate blink parameters is to use eye landmark detection (e.g., Soukupova and Cech, 2016; Cech and Soukupova, 2016), today implemented in open software such as OpenFace (Baltrusaitis et al., 2018) or MediaPipe (Lugaresi et al., 2019) and from these landmarks compute the eye aspect ratio (EAR), i.e., the ratio between the openness of the eye and its width (Alzahrani et al., 2021). Closed eyelids are thus represented with EARs close to zero. To detect blinks from the EAR, Soukupova and Cech (2016) used a linear SVM classifier trained on manually annotated data.
In many video-based eye trackers, the pupil area is estimated from the eye image. The resulting pupil-size signal is then used to estimate blinks, under the assumption that blinks occur when the samples in this signal are invalid due to eyelid closure. This type of blink detection is discussed in detail in “Blink classification in P-CR eye trackers”.
Description and classification of blinks
Using the magnetic search coil technique, VanderWerf et al. (2003) considered the start of the down-phase of a blink to occur when the eyelid deviated more than 0.2∘ from a calibrated zero position (when the eye was fully open) and the end of the blink to occur when the up-phase amplitude of the blink reached 95% of the maximal down-phase amplitude (Amax). The down-phase duration was defined as the time from the onset of the down-phase until the time Amax was reached. Consequently, the up-phase duration lasted from the occurrence of Amax to the blink end.
However, often much simpler operationalizations of blinks are provided. For instance, using EOG data, Barbato et al. (2000) operationalize a blink “as a sharp high amplitude wave 100 V and <400 ms in duration.” Often, human pattern recognition is used to identify blinks from a recorded signal. For instance, Evinger et al. (1991) write that:
the investigator identified the maximum down-phase (lid closing) velocity, the maximum up-phase (lid opening) velocity, the beginning of the blink or lid saccade, the maximum downward lid excursion and the end of the blink or lid saccade
Blink classification in P-CR eye trackers
Pupil and corneal-reflection (P-CR) eye trackers use the locations of the pupil and one or several corneal reflections in an image of the eye to estimate the gaze direction. In P-CR eye trackers, a blink is characterized by data loss, since the eyelid covers both the pupil and the corneal reflection as the eyelid is fully closed. Depending on the sampling frequency of the eye tracker and the specific implementation of the pupil center localization algorithm, this period of data loss can be preceded and followed by a quick change in estimated pupil size (see e.g., the EyeLink signal in Fig. 1), reflecting the gradual occlusion of the pupil (and hence change in its estimated center-of-mass) when the eyelid closes and re-opens (Fig. 2).
Many of the papers reporting blink measures briefly describe the procedure for detecting blinks in the method section and use either the pupil signal alone or a combination of the pupil and the gaze signal together with a minimum blink duration (p. 177 Holmqvist et al., 2011). The approaches range from simply regarding periods where data are lost as blinks (Brouwer et al., 2005) to considering several criteria such as pupil size and pupil dilation velocity, as well as the position of gaze on the screen (gaze position data outside of the screen may be indicative of blinks, for instance Karatekin et al. 2007). Recent examples of simple data loss criteria to detect blinks are given by Hoogerbrugge et al. (2022), who used periods where “no pupil data was measured”, which were longer than 30 ms and shorter than 3 s and Demiral et al. (2022) considered intervals between 100 and 400 ms where the pupil diameter signal was missing or smaller than 25 units as blinks.
The paper by Pedrotti et al. (2011) is one of the first papers that systematically investigates blink detection in data from a P-CR eye tracker. Using the pupil diameter signal at 50 Hz from an SMI RED (Sensomotoric Instruments, Teltow, Germany), they devised an algorithm consisting of two steps: preprocessing and blink detection. In the pre-processing stage, values in the pupil and gaze signals indicative of a closed or partially closed eyelid were set to zero. This included samples recorded as invalid by the eye tracker, outliers in pupil diameter, and samples with low values in the horizontal or vertical gaze signals ( pixels). The latter condition reflected artifacts in the gaze signal that provided small, sometimes negative values in the gaze signal due to the blinks. Periods of zeros in the preprocessed signal were considered indicative of blinks, which were defined to start 60 ms before the first zero and end at the last zero in the blink period. The 60 ms were motivated by visual observation of the video image of the eye, which revealed that the eyelid started to descend 60 ms before the first zero in the blink period. In comparison to visual inspection of concurrently recorded eye videos, Pedrotti et al. (2011) found that 97% of the blinks were classified correctly. However, only 79% of the blink durations were estimated correctly, where a correct duration could deviate with ±40 ms at both the onset and offset.
Mathôt (2013) proposed a blink detection method to allow subsequent reconstruction of pupil size (PS) signals corrupted by blinks. In data from an EyeLink 1000, he used the fact that the PS signal changes quickly on each side of a blink and identified blink onsets and offsets using the pupil size velocity signal (cf. Fig. 1). A blink was considered to start when the PS velocity exceeded a threshold of five arbitrary units. The offset was reached when the velocity went back to zero. Four parameters need to be set by the experimenter. First, the PS signal was low-pass filtered before velocity calculation, which required the length of the filter to be set. Additional parameters included velocity thresholds at onset and offset and a short addition (Mathôt used 10 ms) to the estimated blink duration (offset - onset), since visual inspection of eye videos revealed that his approach generally underestimated the blink duration with this amount.
A similar method was proposed by Hershman et al. (2018), who implemented a blink detection algorithm that first identified all periods of data loss and then searched for the onset/offset of a blink starting from the onset/offset of the data loss period. The blink onset was located by first low-pass filtering the PS signal and then moving backwards from the data loss onset until the filtered signal no longer was monotonically increasing. This point, the authors argue, reflects the “end of the eyelid signal and the start of the measurement noise”. Blink offsets were identified in the same manner, by moving forward in time from the location of the data loss offset.
Partial blinks do not necessarily lead to data loss in P-CR eye trackers, since the pupil may still be (partly) visible in the eye image (see middle image in Fig. 2). Brych et al. (2021) did not rely on periods of data loss to detect blinks, but instead looked at how much the pupil diameter deviated from the average pupil diameter; a blink was detected if the z-transformed pupil diameter went below two standard deviations of the mean. Moreover, blinks shorter than 50 ms or longer than 500 ms were discarded. Those that were too close in time (100 ms) were merged into one.
A similar approach was employed by Coe et al. (2022). However, they found it problematic to detect blinks using deviations from the mean pupil diameter due the large variation in pupil size over time. Therefore, they de-trended the pupil diameter signal prior to applying fixed thresholds for blink detection.
Some authors argue that physiologically unlikely pupil size values should be excluded prior to further processing of the pupil size signal. For examples, Kret and Sjak-Shie (2019) removed all non-positive pupil size values and Alnæs et al. (2014) excluded pupil values with a diameter smaller than 2 mm or larger than 7 mm and also 50 ms on each side of the gap such exclusions caused.
Proposed algorithm for blink classification using eye openness signals
From e.g., Pedrotti et al. (2011), it is clear that the occurrence of blinks where the eyelids mostly or fully occlude the pupil can accurately be detected with the P-CR eye tracker they used. However, durations were more difficult to estimate accurately, which is unsurprising since no direct information about the eyelids was available from the PS signal. For the same reason, blink parameters such as blink amplitude and eyelid velocity were not possible to estimate at all solely based on a PS signal. Consequently, for more detailed research on blinks and their parameters, there is a need for methods that estimate the eyelid position or eye opening directly.
We propose an algorithm to detect blinks and their parameters using the EO signal from a commercial eye tracker (Tobii Pro Spectrum), where eye openness is defined as (with respect to the eye image) “the diameter in millimeters of the largest sphere that can be fitted between the upper and lower eyelids”1. Thus, it provides a continuous measure of the distance between the upper and lower eyelids. Figure 3 illustrates a blink waveform recorded from a participant using this eye tracker.
What can we learn from the above literature review about blinks and how does it help us to make design choices when developing a new blink classification algorithm? The general consensus is that a blink is a brief eyelid closure followed by a brief eyelid opening, can vary in amplitude, and can be both monocular and binocular. As such, the eyelid opening transitions smoothly from a large value to a smaller value and then back again to a larger value, forming a smooth peak-like waveform when plotted over time as can be seen in Fig. 3. The goal of the algorithm is thus to classify everything that resembles this typical waveform, i.e., a high-velocity eyelid closure followed by high-velocity eyelid opening. The resting period between opening and closing stages can be short (as in the case of a spontaneous blink) or long (in case of a voluntary, prolonged eyelid closure). The default parameters of the algorithm are informed by previous literature, although we have made a conscious decision to exclude very small amplitude blinks, e.g., microblinks (Stern et al., 1984) and twitch blinks (Cruz et al., 2011) from being detected, since they are rarely mentioned in the literature. That said, the algorithm can easily be tweaked to the needs of researchers who are interested in such blinks. Finally, we cannot use the relationship between the eyelid position and other features of the eye such as the pupil or sclera to classify blinks into different subtypes (cf. Table 1, since we are using an EO signal from an eye tracker that does not provide the required information.
The blink detection algorithm is implemented as follows (settings used in the algorithm are summarized in Table 2):
Interpolate segments of data loss in the EO signal if the segment is shorter than 40 ms. A similar maximum duration threshold is used by the I-2MC algorithm for fixation classification (Hessels et al., 2017).
Low-pass filter the EO signal with a Savitzky–Golay filter of size 25 ms using a second-order polynomial.
Find peaks in the EO signal (a similar strategy was employed by e.g., Caffier et al., 2003), using the find_peaks function from the Python scipy package (v. 1.10.0).
Compute the velocity v of the (un-filtered) EO signal as the first derivative of the EO signal using a second order Savitzky–Golay filter of length 25 ms.
For each peak, go backward/forward in time from the peak center until v is below a threshold , where MAD denotes the median absolute deviation. These operations define the onset and offset of a blink candidate. Similar strategies have been used for e.g., saccade detection (Nyström & Holmqvist, 2010) and blink detection (Hershman et al., 2018).
Find the maximum velocity between the onset and the peak (peak opening velocity) and between the peak and the offset (peak closing velocity).
Reject blink candidates with too low peak opening or peak closing velocity, too short amplitude or duration according to Table 2.
Merge blinks separated by less than 100 ms (Brych et al., 2021).
For each blink, the algorithm outputs its onset, offset, eye openness at onset/offset/amplitude peak, time of amplitude peak, maximum closing/opening velocity, time when maximum closing/opening velocity is reached. For convenience, also the duration, opening and closing amplitudes are given, even though they can be computed from the previous measures. Some of these properties are illustrated in Fig. 3.
Table 2.
Setting | Value | Comment |
---|---|---|
Gap fill | 40 ms | interpolate missing data in intervals < 40 ms |
Filter length | 25 ms | Length of Savitzky–Golay filter |
Min blink amplitude | 10% of fully open | cf. table caption. |
Min peak opening/closing vel. | The lowest one need to exceed | |
Min blink duration | 30 ms | |
Blink merge | 100 ms | Merge blinks closer in time than 100 ms |
The median value of the eye openness signal represents when the eyelids are considered to be ‘fully open’
The algorithm was implemented with Python 3.10. Source code along with example usage and data are available from https://github.com/marcus-nystrom/BlinkDetector.
Data collection
Eye openness and pupil data were collected to investigate whether blinks detected from the PS signal differ from blinks detected from the EO signal. To test how robust blink detection from these signals were under non-optimal head positioning, we further recorded data while participants were positioned at three different locations in the eye-tracker headbox, i.e., at three different eye tracker-participant distances perpendicular to the screen: in the center of the headbox, at the edge of the headbox close to the eye tracker, and at the edge of the headbox far away from the eye trackers. In the following, these recordings will be referred to as center, near, and far. This study was approved by the Swedish Ethical Review Authority (Dnr 2019-01081).
Participants
We recorded data from 12 participants (eight males and four females; age: , years), who were employees at Lund University, Lund, Sweden.
Materials
Data were collected in the Digital Classroom at the Lund University Humanities Lab, Lund, Sweden, that is equipped with 16 identical Tobii Pro Spectrum eye trackers (firmware v. 2.6.1). General room illumination came from overhead fluorescent lighting. Binocular eye movement data were collected with the Titta Toolbox v. 1.0 (Niehorster et al., 2020), using the Python SDK (v. 1.10.2) from Tobii.
Stimuli were shown on the native Tobii Pro Spectrum screen (EIZO FlexScan EV2451) with a resolution of 19201080 pixels (52.829.7 cm) and presented with PsychoPy (v. 3.1.2). The stimuli consisted of a black-and-white fixation target known to elicit stable fixations (Thaler et al., 2013 ABC in the lower panel of their Fig. 1) with a diameter of 0.5 degrees presented on a mid-gray background (gray value 128).
Procedure
Each participant was seated in front of one of the Tobii Pro Spectrums in the Digital Classroom. They were calibrated and validated with the default 5-point calibration and 4-point validation in the Titta toolbox (Niehorster et al., 2020). Following the calibration procedure, they were asked to place their eyes in the center of the eye tracker headbox and blink every 1 second, prompted by a change in color of the fixation target (black was changed to white and vice versa). The same task was repeated while placing the eyes close to the edge of the headbox, both close to or far away from the eye tracker. The edges of the head box were operationalized as the eye positions relative to the eye tracker where the head circle visualization in the Titta toolbox started to flicker, indicating unstable tracking of the pupil and/or the CRs by the Tobii Pro Spectrum. On average, this occurred when they came closer than 51.4 cm (), or further away than 81.6 () cm, from the eye tracker. No chinrest was used.
Each of the three conditions (center of headbox, close to eye tracker, far away from eye tracker) lasted for 60 s and came in a fixed order (center, near, and far). All participants were recorded in the same room at the same time.
Data analysis
Our proposed blink algorithm is used to detect blinks in the EO signal. For PS blink detection, we implement a ‘standard’ algorithm operating on the PS signal using the following steps:
Interpolate segments of data loss in the PS signal if the segment is shorter than 40 ms. A similar maximum duration threshold is used by the I-2MC algorithm for fixation classification (Hessels et al., 2017).
Identify the onsets and offsets of the remaining segments of data loss (cf. e.g., Hoogerbrugge et al. 2022).
Merge segments separated by less than 100 ms (Brych et al., 2021).
Note that steps 1. and 3. are used also when detecting EO blinks.
Results
We asked how similar blinks are when computed from the pupil size signal (PS blinks) and the eye openness signal (EO blinks) in terms of rate and duration and how robust these similarities are to reductions in data quality—manipulated by changing the position of the head relative to the eye tracker. To gain insight into why EO and PS blinks sometimes differ, we investigate the relationship between data quality and these differences. Finally, we asked whether the systematic relationship between amplitude and peak velocity of the closing/opening phases of blinks observed in previous studies (e.g., Evinger et al. 1991) is also observed in EO blinks.
Following the recommendation in Dunn et al. (2023), we begin by providing information about the quality of the eye-tracking signals used (PS and EO signals) in terms of precision and data loss.
Quality of the eye-tracker data
Due to temporary shutdowns of the eye tracker illumination in three of the eye trackers, three of the 36 trials (12 participants did three trials each) were missing 15.0%, 9.6%, and 4.2% of the samples (they were unexpectedly not reported by the eye tracker). Since the data quality in these trials was otherwise high, we did not exclude them from further analysis. However, the unexpectedly missing data were not taken into account when reporting the percentage of data loss, which was operationalized as the number of invalid samples reported by the eye tracker divided by all samples reported by the eye tracker.
Table 3 lists the percentage of data loss and RMS-S2S precision in both PS and EO signals across all participants. RMS-S2S was computed as the root mean square of distances between consecutive samples in the signals. While 17–34% of the data were reported as lost in the PS signal, there was negligible sample loss in the EO signal (<1.1%). Note that part of this difference was expected since eye openness, but not pupil size, can be estimated when the eyelids are closed. The percentage of lost data was the lowest when participants were positioned in the center of the headbox (center) and became larger as the distance from the center increased. Most samples were lost when participants were positioned far away from the eye tracker.
Table 3.
Condition | Data loss | RMS-S2S precision | ||
---|---|---|---|---|
PS (%) | EO (%) | PS (mm) | EO (mm) | |
Center | 16.9 | 0.76 | 0.004 | 0.200 |
Near | 23.7 (1.4x) | 0.82 (1.1x) | 0.013 (3.0x) | 0.147 (0.7x) |
Far | 33.9 (2.0x) | 1.13 (1.5x) | 0.052 (12.2x) | 0.248 (1.2x) |
Participants were sitting in the center of the headbox (center), close to the eye tracker (near), and far from the eye tracker (far). The numbers is parenthesis represent the proportional change in value from the center condition (data loss in the PS signal is 1.4 times larger in the near condition compared to the center condition, for instance)
Precision in the PS signal followed the same general trend as data loss (best in center, followed by near, and then far). However, precision of the EO signal becomes higher (better) when moving closer to the camera (near) compared to the center position (center). Precision in the center condition was still higher than in the far condition.
Importantly, the relative differences between conditions for both data loss and precision were smaller in the EO signal compared to the PS signal, indicating that data quality in the EO signal was less influenced by the participant’s position in the head box (cf. values in parenthesis in Table 3).
Do PS blinks and EO blinks differ in terms of rate and duration?
Since we ask participants to perform a simple task—to blink at a rate of 1 Hz—we expect the two algorithms to detect one blink per second in their respective signals. In Fig. 4(a), blink rate in the PS signal is plotted against blink rate in the EO signal. If the two algorithms deliver a similar number of blinks, we expect all data points to lie on the unity line (dashes). As can been seen, there were only small differences in rate between EO blinks ( Hz, Hz) and PS blinks ( Hz, Hz) when participants were positioned in the center of the eye-tracker’s headbox. Only for two participants, the difference was more than three blinks. In these cases, incomplete, low amplitude blinks were detected in the EO signal but did not influence the PS signal enough to trigger a detection. An example of this situation is shown in Fig. 6(a).
Despite blink rates being similar, it could be that completely different blinks are detected in the two signals. One way to investigate this is to check whether the blinks from the two signals overlap in time. To quantify this type of overlap, we first match blinks according to the method described in Hooge et al. (2018) and then compute the event-based F1 score, where 0 indicates a low similarity and 1 a high similarity. Blinks in the center condition had an almost perfect match (F1 score: ).
Blink durations, shown in Fig. 4(b), were 62.1 ms longer for EO blinks ( ms, ms) compared to PS blinks ( ms, ms). This is evident from the figure as the majority of data points are located above the dashed line. However, for two of the participants in the center condition—the two orange dots below the line in Fig. 4(b)—PS blinks were longer than EO blinks. Figure 6(b) shows an excerpt of data from one of these participants, where data loss in the PS signal creates very long blinks when the EO signal reveals that the eye is in fact open.
Blinks detected from the EO signal in the center condition started on average 32.8 ms () earlier and ended 30.2 ms () later compared to PS blinks.
How does a reduction in data quality influence the similarity between EO and PS blinks?
To evaluate how a reduction in data quality influences the difference in rate and duration of EO and PS blinks, participants were asked to perform blinks while positioning their heads close (near) or far away (far) from the eye tracker, at the edges of the head box of the eye tracker. As already discussed, changing the position of the head away from the center of the headbox led to the expected reduction in data quality for both the near and far condition (Table 3). Since we are interested in how reduced data quality—rather than the position of the head in the headbox—influences blink detection, data from the near and far conditions were combined into a what we will henceforth refer to as the edge condition.
The absolute difference in blink rate (R) between EO and PS blinks was higher in the edge condition ( Hz) compared to the center condition (0.01 Hz). In the edge condition, the rate of PS blinks ( Hz, Hz) was higher than the EO blink rate ( Hz, Hz) (Fig. 5(a)). Figure 6(c) shows an example of data from the edge condition where three PS blinks were detected in the PS signal but not in the EO signal. Note that the EO signal is without any data loss and shows no indication of any blink, but the PS-based algorithm reacts to the gaps in the PS signal and identifies blinks. An example where a PS blink, but not an EO blink, is detected is given in Fig. 6(d). Here, the EO blink seems to be present in the data, but no EO blink is detected since the period of data loss just before the opening period is too long to be repaired by interpolation and thus no peak is found by the peak-detection algorithm.
The overlap between EO and PS blinks in the edge condition was high (F1 score, edge: ), but lower than when participants were located in the center of the headbox (F1 score, ). What aspect of data quality was responsible for this decrease in overlap in the edge condition? To address this question we calculated the Pearson correlation between the similarity (F1 scores) and two aspects of data quality (data loss and precision) for both signals. The only significant correlation () was found between similarity and data loss in the PS signal (), indicating that the more data that were lost in the PS signal, the less similar were EO blinks and PS blinks. The other correlations were non-significant: EO signal/data loss: ; EO signal/precision: ; PS signal/precision: .
Durations of blinks in the edge condition (EO blinks: ms, ms; PS blinks: ms, ms) were longer than those in the center condition by about 20 ms. However, the difference in duration (D) between EO blinks and PS blinks did not change much due to the reduction in data quality (Center: ms; edge: ms).
Blink properties and dynamics
Having access to the EO signal enables blink measures other than rate and duration to be computed which is not possible when blinks are detected from the PS signal. Besides eye openness itself, this includes the amplitude, duration, and peak velocity of the opening and closing phases of a blink. The eye openness before a blink ( mm, mm) was generally larger than after a blink was completed ( mm, mm). The eyes were on average almost fully closed when the eye openness was at its minimum during a blink ( mm, mm).
Figure 7 shows the relationship between the amplitude and peak velocity of blinks, as well as the blink amplitude and duration, separated for the eyelid closing and opening phases. Amplitudes ( mm, mm) and peak velocities ( deg/s, deg/s) are higher during the closing phase compared to the opening phase ( mm, mm; M = 151.4 deg/s, deg/s).
Discussion
We asked whether it matters if blinks are detected from the pupil size (PS) signal or a newly developed eye openness (EO) signal from a commercial remote eye tracker, in terms of how many blinks are detected and what their properties are. We were also interested in how robust blink detection from these signals was under less optimal data quality and whether dynamic properties of blinks detected in the EO signal conformed with previous literature. Based on a comprehensive review of previous literature on blink definitions, dynamics, and classification, a new algorithm for blink detection using the EO signal was developed.
Traditionally, blinks have been detected from the PS signal (e.g., Hoogerbrugge et al., 2022; Demiral et al., 2022). When sitting in the center of the headbox, we found that the number of blinks detected from the PS signal (PS blinks) was similar to the number of blinks detected from the EO signal (EO blinks). Consequently, it does not matter which signal researchers use for blink detection when rate is the main outcome measure. Even when participants were located at the edges of the head-box, where tracking is expected to be worse, the similarity between PS blinks and EO blinks remained high (F1 score of 0.94, compared to 0.98 in the center of the headbox). It is worth noting that the higher amount of data loss in the PS signal at the edges of the head box (cf. Table 3) naturally leads to worse blink detection; if there are no data or significant data loss, blinks that actually occur become undetected or only partially detected, whereas data loss in the PS signal may also be misinterpreted as blinks. In fact, there was a significant Pearson correlation between the amount of data loss in the PS signal and the similarly between PS and EO blinks (), indicating that the more data that were lost in the PS signal, the less similar were EO blinks and PS blinks.
Blinks detected from the EO signal were systematically longer than PS blinks, by 30 to 90 ms, and EO blinks both started earlier and ended later. This is unsurprising since the eyelids can begin to close at the onset of a blink and re-open during the termination of a blink, without covering any part of the pupil. Such eyelid movements affect the EO signal but not the PS signal. In the extreme case, an entire partial blink may occur, with no or minimal influence on the PS signal (cf. Fig. 6)(a), which means that no blink is detected in the PS signal.
For blinks that co-occur in both signals, can a constant value simply be added to PS blink durations such that they equal those of EO blinks? (Pedrotti et al., 2011) considered blinks to start 60 ms before samples were reported as invalid due to the eyelid covering the pupil in the eye image. This was based on visual observation of the eye videos revealing that the eyelid started to descend about 60 ms before the period of data loss. However, they found that, despite increasing the duration of all blinks with 60 ms, only 79% of the blink durations were estimated correctly despite a rather generous definition of what a ‘correct’ duration was ( ms at both onset and offset). In agreement with Pedrotti et al. (2011)’s data, we found that adding a fixed value to PS blink durations would only partially make them approach EO blink durations, since there was a high variability in when PS and EO blinks started and, in particular, ended. In contrast to Pedrotti et al. (2011)’s observations from the eye video, we observed a 30-ms difference at both the onset and the offset of a blink when comparing PS and EO blinks and not only a 60-ms difference at the onset.
We have shown that it does not matter whether PS blink or eye blinks are used if rate is the main outcome measure and data quality is high. In the case of blink duration, onsets and offsets of EO blinks can be estimated with higher accuracy since the distance between the upper and lower eyelids is explicitly available. Moreover, the EO signal is more robust to less-optimal head positioning in the head box, making it the preferred choice when behavior resulting in such positioning is expected from the experimental task or participant group. An obvious advantage of using the EO signal is the ability to go beyond basic measures such as rate and duration. We could replicate some aspects of blink dynamics from previous work.
In line with previous literature on blinks (cf. their Fig. 2 Evinger et al., 1991), the closing phase of the blink generally had a higher peak velocity and a shorter duration than the opening phase. However, unlike (Evinger et al., 1991), we did not find a linear relationship between amplitude and peak velocity (Fig. 7). It should be noted that Evinger et al. (1991) used data from both voluntary blinks, spontaneous blinks, and reflex blinks, while we included mainly voluntary blinks. It is unclear if this is the source of the differences, in particular since Evinger et al. (1991) write that the blinks they recorded had similar waveforms irrespective of their origin (reflexive, spontaneous, voluntary). Importantly, other studies that reported a linear relationship between amplitude and peak velocity estimated amplitude in degrees from data recorded with magnetic search coils (Evinger et al., 1991; Garcia et al., 2013) and not mm from a video-based system as in this study (cf. “Blink amplitude”). This is, however, unlikely a source for the observed difference since the relationship between degrees and mm is approximately linear for amplitudes within the range of typical blinks ( degrees which corresponds to a range about 12 mm).
To be able to compare EO and PS blinks, we designed a new EO blink detection algorithm informed by previous literature. We used the fact that blinks form a distinct and smooth peak-like waveform over time (see Fig. 3). Therefore, a peak detection method was at the heart of the EO blink algorithm. However, we noticed an issue with this design choice: data loss in the EO signal seems to be overrepresented during the opening phase of a blink in data from the particular eye tracker we tested (cf. Fig. 6(d)). When this period of data loss is too long to repair through interpolation, this leads to the situation that no peak—and therefore no blink—is detected. The origin of such data loss is unknown to us and we do not know if this is representative for other methods estimating eye openness from a video image of the eye.
An alternative to peak detection would be to identify blinks directly from the velocity of the EO signal, using a threshold similar to what has been done for saccade detection (Engbert & Kliegl, 2003; Smeets & Hooge, 2003; Nyström & Holmqvist, 2010). For spontaneous blinks that typically have high velocities and amplitudes, this would likely provide an accurate method, in particular for identifying the closing phase with its high velocity and short durations. However, it would be difficult to detect small and slow blinks that, despite showing the typical blink waveform, would have velocities that would be too low for a threshold-based method to handle robustly.
Our work could be extended in several ways. First, we have tested static head and eye positions in the center and at the edges of the headbox. Consequently, we do not know how data quality of the PS and EO signals would be affected by head or eye movement within the headbox. This could be a relevant investigation for certain target groups like infants, where significant head movement is expected both at the edges and within the headbox (Hessels et al., 2015a, b; Niehorster et al., 2018). Also, from e.g., Evinger et al. (1991), we know that eye movements complicate the detection of blinks, since changes in eye openness due to a blink and a vertical saccade may be indistinguishable. Future versions of a blink algorithm could be extended to separate between the contexts of such eyelid movements. Second, we have tested the blink detection algorithm at 600 Hz, without conducting a systematic comparison of whether similar differences between EO and PS blinks would occur at other sampling frequencies. Moreover, a possible extension of the EO blink detection would be to further classify blinks into subclasses such as full, partial, or micro-blink. However, since the literature does not seem to converge on these definitions, we have chosen to provide the user with comprehensive properties of each blink and leave it to the user to design sub-classification schemes that are suitable for their own research questions. Finally, the EO signal in this paper is acquired with a commercial eye tracker (Tobii Pro Spectrum) and even though it has been validated internally by the manufacturer, we do not know how accurately it estimates true eye openness.
Regarding the detection of PS blinks, one possible improvement would be to use the artifacts around blinks in the PS signal that typically occur before and after blinks due to the gradual disappearance and re-appearance of the pupil in the eye image. While this has been used with EyeLink data (Mathôt, 2013), where this artefact seems to occur systematically, it is less clear whether it can be successfully applied to data for other eye trackers; we have seen several instances in the data from the Tobii Pro Spectrum where these characteristic artifacts are not present in the signal (cf. data in GitHub repo). Moreover, some authors explicitly exclude values in the pupil size signal that are not physiologically plausible, e.g., those where the reported pupil size is smaller than 0 (Kret & Sjak-Shie, 2019) or 2 mm (Alnæs et al., 2014), or values considered to be statistical outliers in the pupil size signal (Alnæs et al., 2014; Brych et al., 2021). Even though we have not used these exclusion criteria for PS blink detection in this paper, the option to use them is included in our algorithm publicly available on GitHub, such that readers can test the influence of the exclusion criteria on their own data sets. Importantly, neither using such exclusion criteria nor using a different algorithm for PS blink detection affect the results in a way that changes the conclusions of our paper (cf. the Appendix).
Finally, given the recent developments in computer vision and machine learning and the availability of open software such as OpenFace (Baltrusaitis et al., 2018) or MediaPipe (Lugaresi et al., 2019), eye openness can be estimated from the eye landmark positions these software packages provide. Consequently, our proposed blink detection algorithm could be used on eye-openness signals captured with standard web cameras. This would allow researchers to study blinks both outside of an eye-tracking context and co-study blinks and gaze behavior for those who already have a P-CR eye tracker.
Conclusions
Using the eye-openness signal, our proposed algorithm provides more robust blink detection and more detailed information about blink parameters compared to blinks detected from the pupil-size signal. Therefore, we recommend users of an eye tracker providing an eye-openness signal to consider using this instead of the pupil-size signal.
We hope that our publicly available blink detection algorithm together with the comprehensive review of the definition, operationalization, and classification of blinks will advance our knowledge of blinks in the future.
Acknowledgements
We gratefully acknowledge the Lund University Humanities Lab where data were recorded.
An influence of algorithm and exclusion criteria on PS blink rate and duration
To investigate how the choice of algorithm and criteria for the exclusion of outliers and physiologically implausible values in the PS signal influence blink rate and duration, we tested two additional algorithms for PS blink detection developed by Hershman et al. (2018) and Niehorster et al. (2015)2 as well as added two exclusion criteria to our PS blink detection algorithm (Alnæs et al., 2014).
The algorithm by Niehorster et al. (2015) consistently underestimated the rate of PS blinks (Figs. 8(a) and 10(a)). Their algorithm was developed on data from an EyeLink 1000 and relies heavily on the artifacts that this eye tracker produces around blinks (cf. Fig. 1). Eye balling data and detected blinks from Niehorster et al.’s algorithm shows that the underestimation of blinks originates from the fact that such artifacts are not always present around blinks in data recorded from the Tobii Pro Spectrum and blinks are therefore sometimes not detected.
In contrast, the algorithm by Hershman et al. (2018) provides results similar to the PS blinks we report in this article, both in terms of rate and duration and for participants who are sitting in the center or at the edge of the eye-tracker’s headbox (Figs. 8(b), 9(b), 10(b), 11(b)). Since Hershman et al.’s algorithm extends blinks before and after periods of missing data, the durations of blinks (center condition) detected with the Hershman algorithm are longer ( ms, ms) compared to the PS blinks reported in this paper ( ms, ms), but still shorter than the EO blinks ( ms, ms). Consequently, using the algorithm by Hershman shifts the data points in Figs. 4(b) and 5(b) slightly towards the unity line. Note, however, that Hershman et al.’s algorithm provided sensible output only after interpolating gaps of missing data in the pupil signal, similar to what we do for PS blink detection in this paper.
The effect of removing pupil size values considered to be physiologically implausible (pupil size values smaller than 2 mm) or outliers (pupil size values more than 2.5 SD away from the trial mean) (Alnæs et al., 2014) on blink rate and duration can be see in Figs. 8(c), 9(c), 10(c), and 11(c). The results are almost identical to running the algorithm without any exclusion of data (compare with Figs. 4 and 5); differences in blink rate across any condition are smaller than 0.02 Hz and differences in blink durations are smaller than 6 ms.
Funding
Open access funding provided by Lund University.
Declarations
Conflict of interest
Author RA is since 2017 an employee of Tobii.
Open practices statement
Data and code are available at https://github.com/marcus-nystrom/BlinkDetector. None of the experiments were pre-registered.
Footnotes
https://developer.tobiipro.com/commonconcepts/eyeopenness.html, retrieved Aug 21, 2023
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- Abelson MB, Holly FJ. A tentative mechanism for inferior punctate keratopathy. American Journal of Ophthalmology. 1977;83(6):866–869. doi: 10.1016/0002-9394(77)90916-3. [DOI] [PubMed] [Google Scholar]
- Ahlström C, Zemblys R, Jansson H, Forsberg C, Karlsson J, Anund A. Effects of partially automated driving on the development of driver sleepiness. Accident Analysis & Prevention. 2021;153:106058. doi: 10.1016/j.aap.2021.106058. [DOI] [PubMed] [Google Scholar]
- Alnæs D, Sneve MH, Espeseth T, Endestad T, van de Pavert SHP, Laeng B. Pupil size signals mental effort deployed during multiple object tracking and predicts brain activity in the dorsal attention network and the locus coeruleus. Journal of Vision. 2014;14(4):1–1. doi: 10.1167/14.4.1. [DOI] [PubMed] [Google Scholar]
- Alzahrani, F., Mirheidari, B., Blackburn, D., Maddock, S., & Christensen, H. (2021). Eye blink rate based detection of cognitive impairment using in-the-wild data. In 2021 9th international conference on affective computing and intelligent interaction (ACII), pp 1–8. IEEE.
- Appel, T., Santini, T., & Kasneci, E. (2016). Brightness-and motion-based blink detection for head-mounted eye trackers. In Proceedings of the 2016 ACM international joint conference on pervasive and ubiquitous computing: Adjunct, pp 1726–1735.
- Bacher LF, Smotherman WP. Spontaneous eye blinking in human infants: A review. Developmental Psychobiology: The Journal of the International Society for Developmental Psychobiology. 2004;44(2):95–102. doi: 10.1002/dev.10162. [DOI] [PubMed] [Google Scholar]
- Baltrusaitis, T., Zadeh, A., Lim, Y. C., & Morency, L.-P. (2018). Openface 2.0: Facial behavior analysis toolkit. In 2018 13th IEEE international conference on automatic face & gesture recognition (FG 2018), pp 59–66. IEEE.
- Barbato G, Ficca G, Muscettola G, Fichele M, Beatrice M, Rinaldi F. Diurnal variation in spontaneous eye-blink rate. Psychiatry Research. 2000;93(2):145–151. doi: 10.1016/s0165-1781(00)00108-6. [DOI] [PubMed] [Google Scholar]
- Benedetto S, Pedrotti M, Minin L, Baccino T, Re A, Montanari R. Driver workload and eye blink duration. Transportation Research Part F: Traffic Psychology and Behaviour. 2011;14(3):199–208. [Google Scholar]
- Blount W. Studies of the movements of the eyelids of animals: Blinking. Quarterly Journal of Experimental Physiology: Translation and Integration. 1927;18(2):111–125. [Google Scholar]
- Brouwer GJ, Van Ee R, Schwarzbach J. Activation in visual cortex correlates with the awareness of stereoscopic depth. Journal of Neuroscience. 2005;25(45):10403–10413. doi: 10.1523/JNEUROSCI.2408-05.2005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Brych M, Händel BF, Riechelmann E, Pieczykolan A, Huestegge L. Effects of vocal demands on pupil dilation. Psychophysiology. 2021;58(2):e13729. doi: 10.1111/psyp.13729. [DOI] [PubMed] [Google Scholar]
- Caffier PP, Erdmann U, Ullsperger P. Experimental evaluation of eye-blink parameters as a drowsiness measure. European Journal of Applied Physiology. 2003;89(3):319–325. doi: 10.1007/s00421-003-0807-5. [DOI] [PubMed] [Google Scholar]
- Cardona G, García C, Serés C, Vilaseca M, Gispets J. Blink rate, blink amplitude, and tear film integrity during dynamic visual display terminal tasks. Current Eye Research. 2011;36(3):190–197. doi: 10.3109/02713683.2010.544442. [DOI] [PubMed] [Google Scholar]
- Carney LG, Hill RM. The nature of normal blinking patterns. Acta Ophthalmologica. 1982;60(3):427–433. doi: 10.1111/j.1755-3768.1982.tb03034.x. [DOI] [PubMed] [Google Scholar]
- Cech, J., & Soukupova, T. (2016). Real-time eye blink detection using facial landmarks. Cent. Mach. Perception, Dep. Cybern. Fac. Electr. Eng. Czech Tech. Univ. Prague, pp 1–8.
- Coe, B. C., Huang, J., Brien, D. C., White, B. J., Yep, R., & Munoz, D. P. (2022). Automated analysis pipeline for extracting saccade, pupil, and blink parameters using video-based eye tracking. bioRxiv. [DOI] [PMC free article] [PubMed]
- Collins M, Seeto R, Campbell L, Ross M. Blinking and corneal sensitivity. Acta Ophthalmologica. 1989;67(5):525–531. doi: 10.1111/j.1755-3768.1989.tb04103.x. [DOI] [PubMed] [Google Scholar]
- Collins MJ, Iskander DR, Saunders A, Hook S, Anthony E, Gillon R. Blinking patterns and corneal staining. Eye & Contact Lens. 2006;32(6):287–293. doi: 10.1097/01.icl.0000224551.58399.9a. [DOI] [PubMed] [Google Scholar]
- Cortacero, K., Fischer, T., & Demiris, Y. (2019). Rt-bene: A dataset and baselines for real-time blink estimation in natural environments. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops, pp 0.
- Cruz AA, Garcia DM, Pinto CT, Cechetti SP. Spontaneous eyeblink activity. The Ocular Surface. 2011;9(1):29–41. doi: 10.1016/s1542-0124(11)70007-6. [DOI] [PubMed] [Google Scholar]
- Demiral ŞB, Manza P, Biesecker E, Wiers C, Shokri-Kojori E, McPherson K, Dennis E, Johnson A, Tomasi D, Wang G-J, et al. Striatal d1 and d2 receptor availability are selectively associated with eye-blink rates after methylphenidate treatment. Communications Biology. 2022;5(1):1–10. doi: 10.1038/s42003-022-03979-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Drew GC. Variations in reflex blink-rate during visual-motor tasks. Quarterly Journal of Experimental Psychology. 1951;3(2):73–88. [Google Scholar]
- Dunn, M. J., Alexander, R. G., Amiebenomo, O. M., Arblaster, G., Atan, D., Erichsen, J. T., ... & Hamilton, R. (2023). Minimal reporting guideline for research involving eye tracking (2023 edition). Behavior Research Methods, pages 1–7. [DOI] [PMC free article] [PubMed]
- Eckstein MK, Guerra-Carrillo B, Singley ATM, Bunge SA. Beyond eye gaze: What else can eyetracking reveal about cognition and cognitive development? Developmental Cognitive Neuroscience. 2017;25:69–91. doi: 10.1016/j.dcn.2016.11.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Engbert R, Kliegl R. Microsaccades uncover the orientation of covert attention. Vision Research. 2003;43(9):1035–1045. doi: 10.1016/s0042-6989(03)00084-1. [DOI] [PubMed] [Google Scholar]
- Espinosa J, Domenech B, Vázquez C, Pérez J, Mas D. Blinking characterization from high speed video records. Application to biometric authentication. PloS one. 2018;13(5):e0196125. doi: 10.1371/journal.pone.0196125. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Evinger, C., Manning, K. A., & Sibony, P. A. (1991). Eyelid movements. Mechanisms and normal data. Investigative Ophthalmology & Visual Science,32(2), 387–400. [PubMed]
- Garcia DM, Barbosa JC, Pinto CT, Cruz AAV. Estimation of spontaneous blinking main sequence in normal subjects and patients with graves’ upper eyelid retraction. Investigative Ophthalmology & Visual Science. 2013;54(2):1434–1442. doi: 10.1167/iovs.12-11452. [DOI] [PubMed] [Google Scholar]
- Guitton D, Simard R, Codère F. Upper eyelid movements measured with a search coil during blinks and vertical saccades. Investigative Ophthalmology & Visual Science. 1991;32(13):3298–3305. [PubMed] [Google Scholar]
- Helmchen C, Schwekendiek A, Pramstaller PP, Hedrich K, Klein C, Rambold H. Blink amplitude but not saccadic hypometria indicates carriers of parkin mutations. Journal of Neurology. 2006;253(8):1071–1075. doi: 10.1007/s00415-006-0168-1. [DOI] [PubMed] [Google Scholar]
- Hershman R, Henik A, Cohen N. A novel blink detection method based on pupillometry noise. Behavior Research Methods. 2018;50(1):107–114. doi: 10.3758/s13428-017-1008-1. [DOI] [PubMed] [Google Scholar]
- Hessels RS, Andersson R, Hooge IT, Nyström M, Kemner C. Consequences of eye color, positioning, and head movement for eye-tracking data quality in infant research. Infancy. 2015;20(6):601–633. [Google Scholar]
- Hessels RS, Cornelissen TH, Kemner C, Hooge IT. Qualitative tests of remote eyetracker recovery and performance during head rotation. Behavior Research Methods. 2015;47:848–859. doi: 10.3758/s13428-014-0507-6. [DOI] [PubMed] [Google Scholar]
- Hessels RS, Niehorster DC, Kemner C, Hooge ITC. Noise-robust fixation detection in eye movement data: Identification by two-means clustering (i2mc) Behavior Research Methods. 2017;49(5):1802–1823. doi: 10.3758/s13428-016-0822-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hessels RS, Niehorster DC, Nyström M, Andersson R, Hooge IT. Is the eye-movement field confused about fixations and saccades? a survey among 124 researchers. Royal Society Open Science. 2018;5(8):180502. doi: 10.1098/rsos.180502. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Holmqvist K, Nyström N, Andersson R, Dewhurst R, Jarodzka H, van de Weijer J. Eye tracking: A comprehensive guide to methods and measures. Oxford University Press; 2011. [Google Scholar]
- Hooge IT, Niehorster DC, Nyström M, Andersson R, Hessels RS. Is human classification by experienced untrained observers a gold standard in fixation detection? Behavior Research Methods. 2018;50:1864–1881. doi: 10.3758/s13428-017-0955-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hooge ITC, Niehorster DC, Hessels RS, Cleveland D, Nyström M. The pupil-size artefact (psa) across time, viewing direction and different eyetrackers. Behavior Research Methods. 2021;53:1986–2006. doi: 10.3758/s13428-020-01512-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hoogerbrugge AJ, Strauch C, Oláh ZA, Dalmaijer ES, Nijboer TC, Van der Stigchel S. Seeing the forrest through the trees: Oculomotor metrics are linked to heart rate. PloS one. 2022;17(8):e0272349. doi: 10.1371/journal.pone.0272349. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jongkees BJ, Colzato LS. Spontaneous eye blink rate as predictor of dopamine-related cognitive function-a review. Neuroscience & Biobehavioral Reviews. 2016;71:58–82. doi: 10.1016/j.neubiorev.2016.08.020. [DOI] [PubMed] [Google Scholar]
- Karatekin C, Marcus DJ, White T. Oculomotor and manual indexes of incidental and intentional spatial sequence learning during middle childhood and adolescence. Journal of Experimental Child Psychology. 2007;96(2):107–130. doi: 10.1016/j.jecp.2006.05.005. [DOI] [PubMed] [Google Scholar]
- Kirchner, J., Watson, T., & Lappe, M. (2022). Real-time mri reveals unique insight into the full kinematics of eye movements. Eneuro, 9(1). [DOI] [PMC free article] [PubMed]
- Kret ME, Sjak-Shie EE. Preprocessing pupil size data: Guidelines and code. Behavior Research Methods. 2019;51:1336–1342. doi: 10.3758/s13428-018-1075-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Leigh RJ, Zee DS. The neurology of eye movements. New York: Oxford University Press; 1999. [Google Scholar]
- Lugaresi, C., Tang, J., Nash, H., McClanahan, C., Uboweja, E., Hays, M., ... & Lee, J. (2019). Mediapipe: A framework for building perception pipelines. arXiv preprint arXiv:1906.08172.
- Mathôt, S. (2013). A simple way to reconstruct pupil size during eye blinks.
- Matin E. Saccadic suppression: A review and an analysis. Psychological Bulletin. 1974;81(12):899. doi: 10.1037/h0037368. [DOI] [PubMed] [Google Scholar]
- McIntire LK, McKinley RA, Goodyear C, McIntire JP. Detection of vigilance performance using eye blinks. Applied Ergonomics. 2014;45(2):354–362. doi: 10.1016/j.apergo.2013.04.020. [DOI] [PubMed] [Google Scholar]
- Niehorster, D. C., Andersson, R., & Nyström, M. (2020). Titta: A toolbox for creating psychtoolbox and psychopy experiments with tobii eye trackers. Behaviour Research Methods, pp 1–10. [DOI] [PMC free article] [PubMed]
- Niehorster DC, Cornelissen TH, Holmqvist K, Hooge IT, Hessels RS. What to expect from your remote eye-tracker when participants are unrestrained. Behavior Research Methods. 2018;50:213–227. doi: 10.3758/s13428-017-0863-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Niehorster DC, Siu WW, Li L. Manual tracking enhances smooth pursuit eye movements. Journal of Vision. 2015;15(15):11–11. doi: 10.1167/15.15.11. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nyström M, Andersson R, Holmqvist K, van de Weijer J. The influence of calibration method and eye physiology on eyetracking data quality. Behavior Research Methods. 2013;45(1):272–288. doi: 10.3758/s13428-012-0247-4. [DOI] [PubMed] [Google Scholar]
- Nyström M, Holmqvist K. An adaptive algorithm for fixation, saccade, and glissade detection in eye-tracking data. Behavior Research Methods. 2010;42(1):188–204. doi: 10.3758/BRM.42.1.188. [DOI] [PubMed] [Google Scholar]
- Nyström, M., Niehorster, D. C., Andersson, R., Hessels, R. S., & Hooge, I. T. (2022). The amplitude of small eye movements can be accurately estimated with video-based eye trackers. Behavior Research Methods, pp 1–13. [DOI] [PMC free article] [PubMed]
- Patel V, Daya SM, Lake D, Malhotra R. Blink lagophthalmos and dry eye keratopathy in patients with non-facial palsy: Clinical features and management with upper eyelid loading. Ophthalmology. 2011;118(1):197–202. doi: 10.1016/j.ophtha.2010.04.037. [DOI] [PubMed] [Google Scholar]
- Pedrotti M, Lei S, Dzaack J, Rötting M. A data-driven algorithm for offline pupil signal preprocessing and eyeblink detection in low-speed eye-tracking protocols. Behavior Research Methods. 2011;43(2):372–383. doi: 10.3758/s13428-010-0055-7. [DOI] [PubMed] [Google Scholar]
- Ponder E, Kennedy W. On the act of blinking. Quarterly journal of experimental physiology: Translation and integration. 1927;18(2):89–110. [Google Scholar]
- Rambold H, Sprenger A, Helmchen C. Effects of voluntary blinks on saccades, vergence eye movements, and saccade-vergence interactions in humans. Journal of Neurophysiology. 2002;88(3):1220–1233. doi: 10.1152/jn.2002.88.3.1220. [DOI] [PubMed] [Google Scholar]
- Remmel, R. S. (1984). An inexpensive eye movement monitor using the scleral search coil technique. IEEE Transactions on Biomedical Engineering,4, 388–390. [DOI] [PubMed]
- Rosenfield M, Jahan S, Nunez K, Chan K. Cognitive demand, digital screens and blink rate. Computers in Human Behavior. 2015;51:403–406. [Google Scholar]
- Sheedy JE, Gowrisankaran S, Hayes JR. Blink rate decreases with eyelid squint. Optometry and Vision Science. 2005;82(10):905–911. doi: 10.1097/01.opx.0000181234.63194.a7. [DOI] [PubMed] [Google Scholar]
- Smeets J, Hooge I. Nature of variability in saccades. Journal of Neurophysiology. 2003;90(1):12. doi: 10.1152/jn.01075.2002. [DOI] [PubMed] [Google Scholar]
- Soukupova, T., & Cech, J. (2016). Eye blink detection using facial landmarks. In: 21st computer vision winter workshop, Rimske Toplice, Slovenia, pp 2.
- Stern, J. A., & Skelly, J. J. (1984). The eye blink and workload considerations. In: Proceedings of the human factors society annual meeting, vol 28, pp 942–944. SAGE Publications Sage CA: Los Angeles, CA.
- Stern, J. A., Walrath, L. C., & Goldstein, R. (1984). The endogenous eyeblink. Psychophysiology,21(1), 22–33. [DOI] [PubMed]
- Stevenson S, Volkmann F, Kelly J, Riggs LA. Dependence of visual suppression on the amplitudes of saccades and blinks. Vision Research. 1986;26(11):1815–1824. doi: 10.1016/0042-6989(86)90133-1. [DOI] [PubMed] [Google Scholar]
- Sun, W. S., Baker, R. S., Chuke, J. C., Rouholiman, B. R., Hasan, S. A., Gaza, W., ... & Porter, J. D. (1997). Age-related changes in human blinks. Passive and active changes in eyelid kinematics. Investigative ophthalmology & visual science,38(1), 92–99. [PubMed]
- Tada, H., Omori, Y., Hirokawa, K., Ohira, H., & Tomonaga, M. (2013). Eye-blink behaviors in 71 species of primates. PloS one,8(5), e66018. [DOI] [PMC free article] [PubMed]
- Tanaka, Y., & Yamaoka, K. (1993). Blink activity and task difficulty. Perceptual and Motor Skills,77(1), 55–66. [DOI] [PubMed]
- Thaler L, Schütz AC, Goodale MA, Gegenfurtner KR. What is the best fixation target? the effect of target shape on stability of fixational eye movements. Vision Research. 2013;76:31–42. doi: 10.1016/j.visres.2012.10.012. [DOI] [PubMed] [Google Scholar]
- VanderWerf F, Brassinga P, Reits D, Aramideh M, Ongerboer de Visser B. Eyelid movements: Behavioral studies of blinking in humans under different stimulus conditions. Journal of Neurophysiology. 2003;89(5):2784–2796. doi: 10.1152/jn.00557.2002. [DOI] [PubMed] [Google Scholar]
- Volkmann FC, Riggs LA, Moore RK. Eyeblinks and visual suppression. Science. 1980;207(4433):900–902. doi: 10.1126/science.7355270. [DOI] [PubMed] [Google Scholar]
- Wass SV, Forssman L, Leppänen J. Robustness and precision: How data quality may influence key dependent variables in infant eye-tracker analyses. Infancy. 2014;19(5):427–460. [Google Scholar]