Next Article in Journal
Hyperspectral Imaging for Mobile Robot Navigation
Next Article in Special Issue
Vision-Based Eye Image Classification for Ophthalmic Measurement Systems
Previous Article in Journal
Thickness Measurement at High Lift-Off for Underwater Corroded Iron-Steel Structures Using a Magnetic Sensor Probe
Previous Article in Special Issue
Low-Cost Human–Machine Interface for Computer Control with Facial Landmark Detection and Voice Commands
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

3D Gaze Estimation Using RGB-IR Cameras

The Department of Information Systems, University of Haifa, Mount Carmel, Haifa 3498838, Israel
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(1), 381; https://doi.org/10.3390/s23010381
Submission received: 21 November 2022 / Revised: 22 December 2022 / Accepted: 23 December 2022 / Published: 29 December 2022
(This article belongs to the Special Issue Computer Vision in Human Analysis: From Face and Body to Clothes)

Abstract

:
In this paper, we present a framework for 3D gaze estimation intended to identify the user’s focus of attention in a corneal imaging system. The framework uses a headset that consists of three cameras, a scene camera and two eye cameras: an IR camera and an RGB camera. The IR camera is used to continuously and reliably track the pupil and the RGB camera is used to acquire corneal images of the same eye. Deep learning algorithms are trained to detect the pupil in IR and RGB images and to compute a per user 3D model of the eye in real time. Once the 3D model is built, the 3D gaze direction is computed starting from the eyeball center and passing through the pupil center to the outside world. This model can also be used to transform the pupil position detected in the IR image into its corresponding position in the RGB image and to detect the gaze direction in the corneal image. This technique circumvents the problem of pupil detection in RGB images, which is especially difficult and unreliable when the scene is reflected in the corneal images. In our approach, the auto-calibration process is transparent and unobtrusive. Users do not have to be instructed to look at specific objects to calibrate the eye tracker. They need only to act and gaze normally. The framework was evaluated in a user study in realistic settings and the results are promising. It achieved a very low 3D gaze error (2.12°) and very high accuracy in acquiring corneal images (intersection over union— I o U = 0.71). The framework may be used in a variety of real-world mobile scenarios (indoors, indoors near windows and outdoors) with high accuracy.

1. Introduction

For most people, when we want to obtain information about an object in our surroundings, we first look at it. Eye contact is the most natural way for most people to interact with their surroundings. Hence tracking users’ eye gaze is a common way to understand where their attention is focused. Eye tracking has applications in many areas, including medicine [1], psychology [2], driver testing [3], human–computer interaction (HCI), usability research [4] and more. The advancement made in the development of mobile eye tracking technology have also enabled researchers to use eye gaze as an indicator of human visual attention in mobile scenarios. One specific example of the use of a mobile eye tracker identifying the focus of attention (e.g., using gaze as an intuitive pointer) was as part of a museum visitors guide system where the gaze served as an input modality for controlling the system [5]. In a follow-up study, the eye tracker-based system combined with hand gestures as a second input modality for controlling the system was presented in [6]. In other areas, mobile eye tracking was used in augmented reality applications [7], in research focusing on cockpits [8] where eye tracking data were collected and analyzed in the challenging environment of the commercial airline flight deck, and more.
Notwithstanding the advances in eye tracking technology, especially the improvements in video-based oculography (VOG), the most commonly used technique, many factors still affect the technology’s performance, which limits its use in daily life. One major challenge is the need for a calibration procedure before eye tracking can be initiated and the need for re-calibration whenever the device shifts even slightly. Another challenge is dealing with lighting conditions and reflections that can affect the estimation accuracy drastically [9]. The calibration must be done on a per user basis [10], because the eye tracking raw data must be transformed into gaze points in the real world and it should be done individually per user since users’ facial structure varies between users as does the placement of the head-mounted device vis-a-vis the eye. The calibration is done by looking at predefined points, usually markers on a screen, from a predefined position. There should be a sufficient number of points on different parts of the screen, and every point must be presented for enough time to allow sufficient raw data to be collected. The process is time consuming, and when it comes to mobile eye trackers, where the device is a wearable headset, any small movement of the device means that it must be re-calibrated [11].
Several studies used different techniques to try to overcome the calibration challenge. Alnajar et al. [12] suggested using gaze patterns of humans who previously observed a particular scene as an indicator where a new user will look while viewing the same scene. They achieved a gaze error of >4°. Another study [13] offered an online learning algorithm that uses mouse-clicked positions to infer where on the screen the user is looking. Each mouse click triggers a learning sample acquisition, but a cursor and its positions must be used to collect a sample of calibration points. The authors achieved an average accuracy of 2.9°. In one work [14], users’ hands and fingertips were used as calibration samples. Users only had to point with their finger to various locations in the scene. The proposed approach achieves comparable accuracy to similar marker-based calibration techniques but still requires users to look at specific points in the scene. In this study, an average accuracy of 2.68° was achieved. More recent work [15] used an RGBD front camera and saliency-based methods to auto-calibrate a head-mounted binocular eye tracking system. They achieved an accuracy of 3.7° indoors and 4.0outdoors.
A thought-provoking analysis of what information is embedded within a single image of an eye was presented in [16]. Their key observation is that the combination of the cornea of an eye and the camera capturing the appearance of the eye can be viewed as a catadioptric imaging system, a corneal imaging system. To calibrate the system, they used a geometric model of the cornea to estimate its 3D location and orientation. In another work [17], the corneal image was used to connect with the environment. They used two eye cameras to estimate the gaze vector using a simple homography that assumes that the eye is a 2D surface, whereas in reality, it is a 3D object (the eyeball).
In this work, following Nishino and Nayar [16] and Lander et al. [17], we aim at estimating the gaze vector based on the corneal imaging system and using a 3D model of the eye. Our goal was to develop a mobile, user-unaware, seamless gaze estimation system that can be used in real word scenarios. We want to be able to infer what the user is looking at, at every moment, while avoiding the need for an explicit calibration. The mobile eye tracker we use is a headset consisting of two eye cameras (IR and RGB cameras) and a front scene camera. The goal is to use the eye cameras to estimate the gaze direction and acquire corneal images, and then use the front scene camera to capture the real-world scene. Our objective is to calibrate all the cameras, more specifically to compute the mapping transformation between camera points and most importantly to do this automatically and reliably without involving the user. Achieving calibrated cameras without asking the user to look at objects, or asking them to perform special requests, will allow the process of calibration to be transparent and unobtrusive to the user. For that, sample images from IR and RGB cameras are continuously taken in the background while the user is walking around, then pupil center points are computed using deep learning algorithms and finally 3D model of the eye is computed and used for computing the 3D mapping transformation. The user can inadvertently move the glasses on their face, making the model inaccurate. Thus, from time to time the model is evaluated and if not accurate enough the process is repeated again without the user being aware of it.
We want to be able to transform, at every moment each point, especially the pupil center, from the eye camera to the scene camera. The idea is to use image matching between the corneal image and the scene image in order to compute a mapping transformation between the cameras. The challenge is that changes in lighting conditions can harshly affect the process of detecting the pupil area in the RGB camera dramatically. The use of two eye cameras enables us to continuously and reliably track the pupil using the IR camera, while employing the RGB camera to acquire corneal images for computing a mapping transformation with the scene camera. Both eye cameras build a stereo vision system that is used to compute the 3D geometric model of the eyeball. Once the 3D model is computed it is used to compute 3D transformation between the IR camera and the RGB eye camera. As detecting the pupil in the RGB eye camera is hard and challenging, we first detect the pupil in the IR camera - an easy and reliable operation; we then transform it using the computed 3D transformation for the RGB eye camera. Later, the gaze point will be transformed to the scene camera using image matching.
Traditionally, studies on eye tracking development devices evaluate their performance in lab conditions [18,19,20]. Here we exit the lab and develop a framework for 3D gaze estimation that works in the real world. It was evaluated in the real-world scenarios experiments such as when walking indoors, being indoors near windows, and outdoors.
Herein, we demonstrate and evaluate a framework that integrates the following components:
  • Computing reliable stereo mapping between the IR to the RGB eye cameras using a 3D model of the eye.
  • Computing the 3D gaze directions.
The framework was evaluated in a user study in a realistic scenario and generated encouraging results.

2. Eye Tracking Techniques

Several techniques exist for eye tracking and gaze estimation. In the past electro-oculography was used to measure eye movements by placing electrodes around the eye [21]. Presently, video-based techniques (employing cameras) are the main techniques used to detect eye movements, compute gaze directions and map these to the world in order to identify the user’s focus of attention. These techniques are standard in both stationary eye trackers and mobile (head-mounted) eye trackers. They are discussed and reviewed in [22].
Detecting and tracking the pupil is an essential step toward developing a mobile eye tracker, as the pupil center may be used to indicate the actual gaze point in the real world. The eye has two main axes, visual and optical, as illustrated in Figure 1. The visual axis is defined as the line passing through the fovea and the pupil center to the world. It is also defined as the line of sight (LoS) and determines the real gaze direction. On the other hand, the optical axis is defined as the line passing through the eyeball center and the pupil center out to the world (3D gaze vector). The angle kappa is defined as the angle between the visual axis and the optical axis, differing from one person to another. Additional visual axes, definitions and the angles between them can be found in [23]. All eye tracking techniques use the optical axis for gaze estimation.
To develop a camera-based eye tracking system, having a way to detect the pupil reliably and continuously is crucial but has yet to be conclusively found [22,24]. Several eye detection techniques were reviewed in Hansen and Ji [24], who discussed the various challenges, such as occlusion by the eyelids, degree of openness of the eye, head pose and more, which must be overcome to achieve a definitive eye tracking method. The most frequently used eye detection methods at present are infrared (IR) cameras. Several shape-based methods for detecting the pupil in IR images exist [18,25,26,27,28]. All perform well, but when it comes to real world challenges such as light reflection and changes in illumination and occlusions, the detection rate decreases. To overcome these challenges, deep learning algorithms are now being used to robustly detect the pupil; see [29,30,31,32].
Gaze estimation techniques can be divided into two types, based on the dimensions they use either 2D or 3D. Most previous works used 2D gaze estimation (e.g., [18], where the center of the pupil in the eye image is considered the gaze point and is transformed into the world camera image). Several studies have used 3D gaze estimation in real world settings where the gaze is computed as a 3D vector and transformed to a point in the image of the world camera [33,34]. Existing gaze estimation methods are further divided into two categories, model-based methods and learning-based (appearance-based) methods. Model-based methods such as that offered in [35] exploit the geometric model of the eye to estimate the gaze. Learning-based methods learn a mapping transformation from the eye image to the gaze estimation and usually do not require individualized calibration. Several techniques for appearance-based gaze estimation were proposed and presented in [36,37,38,39], all of which require prior knowledge about the scene.

3. Framework for 3D Gaze Estimation System

In this section, we present our framework for 3D gaze estimation. The calibration procedure is performed automatically and individually for each user before use (and only this once). It is an unobtrusive process and the user is unaware of the calibration process when it occurs and is not instructed to look at specific objects. All that the user needs to do is to behave normally.
In our study, we use a head-mounted device comprising of three cameras: a scene camera and two eye cameras, one infrared (IR) and one RGB. The IR camera is used to reliably track the user’s pupil. A deep learning algorithm is used to detect the pupil’s center as seen by the IR camera, whose position is then transformed into a position in the RGB image plane using stereo mapping (3D transformation). The role of the mapping is to transform the point in the IR camera image plane, into a point in the RGB camera image plane. The primary function of the RGB eye camera is to acquire corneal images around that point, which can be matched to points in the scene image and identify the user’s point of interest. A small number of RGB images in which the pupil has been detected are used for computing a transformation between the eye cameras and the front scene camera. The use of three cameras instead of two cameras (an eye camera and a scene camera, which is more typical) enables us to compute the 3D gaze direction, starting from center of the user’s eyeball and passing through it to the world (see Figure 2 for an illustration of the concept). To do this, stereo vision (two eye cameras) is used to model the eyeball. Later on, the 3D gaze direction will be transformed into a point in the image of the scene camera.
Sample points on the pupil center detected in both types of images are used to build a 3D model of the user’s eyeball. This model is then used to compute the 3D transformation between the two eye cameras and compute the 3D gaze direction. Thus, given a detected pupil in an IR image, its position in the RGB image is computed and the corneal image is extracted from around it.

3.1. Deep Learning for Pupil Detection

Detecting and tracking the pupil continuously and reliably is crucial in building eye tracking systems. Detecting the pupil in IR images is quite easy, given that the contours of the pupil are salient. As noted earlier, previous works used model-based and learning-based approaches. Both techniques work well for detecting the pupil in IR images. When it comes to RGB images, challenges arise. The lighting conditions and reflections can drastically affect the process of detecting the pupil, and in some cases when there is low or strong lighting, the pupil region is not salient (see Figure 3, right, for an example). Hence detecting the pupil in an RGB image using model-based technique fails [40]. Training a deep learning algorithm for pupil detection in RGB images can overcome the challenges [29]. Even with deep learning methods, however, detecting the pupil in RGB images is challenging. It becomes even more so when the iris color is dark, since the pupil contours are not salient (see Figure 3, right, for an example).
For this work, we trained an existing faster region based convolutional neural network (RCNN) for object detection [41] for the purpose of detecting pupils in both IR and RGB camera images. The CNN is based on a region proposal network (RPN), which takes an image (of any size) as input and outputs a set of rectangular object proposals, each with an objectness score. We trained the RCNN twice for each image type (IR and RGB), each with 960 training images taken from 18 participants (total of 1920 images). The pupil regions in the training images were manually labeled. Given an image of the eye in a test procedure, we consider the highest scoring bounding rectangle (if such exists) with an intersection over union (IoU) score of at least 0.9 (if such exists) as the pupil boundary. Our detection rate on IR images is 78% indoors, 42% near windows and 46% outdoors. While on RGB images, 48% indoors, 12% near windows, and 2% outdoors.

3.2. Stereo Mapping

Since detecting the pupil is easy in IR cameras and hard and challenging in RGB cameras, in our approach we use the IR camera to reliably and continuously track the pupil, and the RGB camera to extract corneal images, which are also used for matching points on the images taken by the front camera in order to identify the user’s focus of attention.
The IR and RGB cameras comprise our stereo system. Given a point in the IR camera image plane, we should be able to transform it into a point on the RGB camera image plane. Normally, using 2D transformations (such as the fundamental matrix), a point is transformed into a line. In our case, we need a model in order to be able to transform a point into a point; a 3D transformation meets our needs. For computing such a transformation, the cameras’ internal parameters, as well as information about the object on which the cameras are focused (the eyeball) should be known. The average human eyeball radius, as known from the literature, is approximately 12 mm [42].
To compute a 3D transformation between the cameras in a stereo system, the relative pose between the cameras as well as the relative pose between the cameras and the human eye should be known. The relative pose between the cameras is computed using stereo camera calibration, which is an offline process that is done once and is independent of users’ features. In our system, the calibration procedure was performed using a chessboard pattern with a cell size of 2mm according to the technique proposed in [43]
The device we use here has an eye camera mount that can be adjusted to align with the shape of the user’s face. Obviously, the distance and the angle from the eyeball to the camera differs from person to person. This means that the relative pose between the cameras and the eye must be computed individually per user. Previous work [44] compared several 2D and 3D models used for mapping pupil centers. Even though all of the models are good, but the 2D models are not applicable for our work in this framework. We need the 3D direction of the gaze, hence a 3D transformation. For this to be done, the eyeball model is built individually for each user and used when computing a 3D-based mapping between the cameras.
The flowchart presented in Figure 4 lays out the process of building the 3D model used for computing the 3D transformation:
  • First, two sets of images from the IR and RGB cameras are captured simultaneously.
  • Thereafter, deep learning algorithms are applied on each set, accordingly, to extract the center of the user’s pupil.
  • A set of pairs of images of the detected pupils, from both cameras, are computed.
  • 3D points corresponding to the pupils’ centers are computed and connected using the cameras’ parameters and multi-view geometry.
  • Outliers are filtered out.
  • Finally, a 3D model is built by computing a sphere from the 3D points.

3.3. Eyeball Modeling

To build a 3D model of the eyeball for a specific user, sample points from both cameras are needed. To this end, images of the eye are taken simultaneously by both cameras. We collect points from pupil boundaries detected by the deep learning algorithm. More specifically, considering the pupil’s bounding rectangle, we use the top left, center, and bottom right points.
Given a stereo camera system and a 3D point in the space, the projection of that point to the image plane of each camera creates a ray from the 3D point to the image plane. From the cameras’ point of view, the intersection point of these two rays is the 3D point that lies on the eyeball. Hence, given a set of corresponding points in the two image planes, looking at the intersections of the projected rays of the corresponding pair, we obtain a set of 3D points. We know that these points lie on the eyeball surface, so if we have enough 3D points, the center of the eyeball can be found since the radius is known (12 mm).
In the following sections we denote the IR camera as C i r and to the RGB camera as C r g b . Both cameras and the eyeball (especially the eyeball) lie in a 3D space. We set C i r to be at the origin of the coordinate axes ( C i r = [ 0 , 0 , 0 ] ) and its rotation matrix as I. The relative orientation of C r g b is R and its translation vector is T. Hence the position of C r g b relative to C i r is l = R T . Moreover, K i r is the intrinsic matrix of C i r and K r g b of C r g b . Therefore, all the coordinates in the space are relative to C i r .

3.3.1. 3D Points in Space

Let i n i t S e t i r and i n i t S e t r g b to be the extracted sample points from both cameras, respectively. Let,
p i i n i t S e t i r ,
p i i n i t S e t r g b
be sample points on the cameras’ image planes. The direction vector of the projection p i in the real world space is
N i = K i r 1 p i
and the direction vector of the projection p i in the real world is
N i = R ( K r g b 1 p i ) .
We first normalize N i and N i . Then we compute the 3D point in space that is the intersection point between the two rays
P i r ( α i r ) = C i r + α i r N i ,
P r g b ( α r g b ) = C r g b + α r g b N i ,
where α i r and α r g b are the respective distances between the camera centers to the intersection point.
We solve
C i r + α i r N i C r g b + α r g b N i
as follows:
[ N i , N i ] T [ α i r , α r g b ] [ C i r , C r g b ] .
[ α i r , α r g b ] are found using the linear least squares method. Thus,
S i i = P i r ( α i r ) + P r g b ( α r g b ) 2
is the middle point between the two closest points, which is the estimated 3D point of the pupil center in space and
d i i = P i r ( α i r ) P r g b ( α r g b )
is the distance between the two estimates.
Under realistic conditions in a noisy environment, these vectors will not intersect, but will be close enough to each other. We set the maximum distance d i i between the vectors to be 2mm in order to be considered to be intersecting as defined in [44]. Moreover, we compute the median of all the ray’s norms α i r N i and α r g b N i , and accordingly we filter out the corresponding 3D points of the sample points p i and p i that are out of range ± 2 mm from the computed median. Filtering out point pairs that do not satisfy these conditions is done to detect pairs where an error in the detection of the pupil by either cameras occurred, or when the concurrent capture process in the two cameras fails. The 3D model is built using the filtered points only.

3.3.2. 3D Model Computation

The stereo pair of cameras (IR and RGB) faces the eye. The eyeball equation, under the assumption that the eyeball is spherical, is:
P C = r 2 ,
where P is a 3D point, C is the center of the sphere and the known radius is r. The problem is to find the center of the sphere.
Let S denote the set of the pupils’ 3D points. The next step is to compute the equation of the sphere. We should note that S may contain false positive points that do not lie close to the sphere, since the pupil detection algorithm may have generated errors, and as a consequence, the eyeball estimation may be affected. Some of the false-positives are removed using the 3D point filtering methods described earlier, but not all of them. To remove any remaining false-positives entirely, the eyeball reconstruction process is divided into two phases, approximation and optimization. We first approximate the center of the eyeball as follows. We compute the plane on which the points in the set S lie. The plane is tangent to the sphere with radius r, so we look at the normal of the plane and add r to it. The result is an approximation of the center of the sphere. We note that this approximation is used only as a starting point in the second stage, the optimization phase.
Formally, let P ¯ be the average point in S, the center of sphere (eyeball) C be:
C = P ¯ + N r ,
where r is the eyeball radius, and N be the normal to the plane of the sphere, which is computed using S V D ( S P ¯ ) .
After approximating the center of the sphere, we run an optimization procedure using an M-estimator [45], a robust estimation technique that is widely used [46]. This is done using the following robust distance function.
d i s t ( P , C , δ ) = | P C r | , if | P C r | δ δ , otherwise
The goal here is to minimize the error caused by the approximation in the first phase. To do this, we want to find the center of a sphere that minimizes the sum of distances between all the 3D points (that may contain outliers) and the surface of the sphere. We run two M-estimators, first with δ = 1 to obtain a better approximation of the center and then with δ = 0.5 .
Finally by computing the center of the sphere and knowing the eyeball radius, the eyeball is modeled.

3.4. 3D Mapping Transformation

In our framework, after building the 3D model, we only need to track the pupil with one camera (the IR camera). This is done continuously and reliably using a deep learning algorithm. Then point-to-point transformation from the IR image plane to the RGB image plane is computed. In addition, the 3D gaze ray is computed by defining a vector starting from the eyeball center, passing through the computed pupil center to the outside.
Every so often, we can use the data from two cameras to validate the 3D model, and if there is a problem, we can rebuild and update the model. To do this, occasionally we try to detect the pupil using the RGB camera, even though it is not needed for the transformation computation. We compare the pupil center in the RGB camera transformed from the IR camera with the pupil center detected by a deep learning algorithm. If there are large distances for a certain period of time, we can infer that the 3D model is not valid anymore (for instance, due to movement of the headset), and a new model should be built.
Given a point (pupil center) in the C i r image plane, we want to find which point in the C r g b image plane corresponds to it. Let,
p i r C i r
be a point in the C i r image plane and let C be the center of the eyeball. The projection of the point in the space is a ray with vector direction,
v = K i r 1 p i r
which has been normalized. We want to know which point in this direction (ray) lies on the sphere. Formally, we are searching for α that satisfies:
( α v C ) 2 r 2 = 0
where C is the eyeball center and r is its radius. There exist at most two roots that satisfy the equation. We will choose the smaller value if two roots do exist, as this represents the nearest (first) intersection point with the eyeball surface. If the equation has no solution, we approximate it by taking the real part of the roots (a complex number). Due to noisy points and imperfection(s) of the eyeball model, we argue that one root will never exist as this would mean that the ray is tangent to the eyeball.
Let, P w = α v be the recovered 3D point in space that lies on the sphere. What remains to do is to transform P w into a point on the C r g b image plane. This is done using the perspective transformation of C r g b . Formally, we define M to be the perspective transformation,
M r g b = K r g b [ R | T ] .
Accordingly, the corresponding point p r g b of p i r in the C r g b image plane is:
p r g b = M r g b [ P w 1 ] ,
where p r g b lies on C r g b .

3.5. Model Transformation Process

To clarify and simplify the description of the 3D mapping transformation, we summarize the process in the flowchart in Figure 5. The process is divided into two real-time sub-processes that run simultaneously: (1) transforming the pupil center from the IR image plane to the RGB image plane (left side); and (2) model validation (right side).
  • Given an image from the IR camera, a deep learning algorithm is applied to detect the pupil center. If the pupil is detected, the 3D ray to the real world is computed. The ray is used to compute the intersection point with the eyeball. Finally, the intersection point is transformed from the IR image plane to the RGB image plane using the perspective projection matrix M r g b .
  • To validate the model, we occasionally verify the data. More specifically, we verify the transformed points from the IR camera. To do this, once in a while we try to detect the pupil center in the RGB image using a deep learning detection algorithm and check for agreement with the transformed pupil center point from the IR camera. We expect such agreement. If, however, there is no consensus after several continuous images, we can infer that the model is not valid anymore and a new eyeball model is needed.

3.6. Self-Supervision for Future Deep Learning Algorithms

We now discuss how we can automatically generate labeled datasets to be used for training future deep learning pupil detection models. Previously, we described how we detect pupils by training a network using hand labeled datasets of pupils. Obviously, manually labeling images is exhausting and time consuming. Having an automatic tool for generating automatic and reliable labeled pupils in eye images used for self-supervision of deep learning algorithms is a big step toward developing future eye tracking system in general, and training reliable deep learning algorithms for detecting pupils in particular. Foremost, self-supervision will improve future deep learning algorithms’ detection of pupils in RGB images.
The idea is that, while the users use our eye tracking system, we store the RGB images together with the computed pupil boundaries. More specifically, given an IR image, we apply the pupil detection algorithm. Then, considering the bounding rectangle, we transform the top left and bottom right points into the RGB camera space, which define the pupil’s region in the RGB camera. To ensure that we build a reliable and high-quality automatic labeling procedure, we compare each computed pupil center in the RGB image with the detected center using the object detection algorithm. We define the agreement between the pupil regions (the one computed using 3D, and the one computed using deep learning for RGB) to be an IoU score above 0.5. If the pupil cannot be detected in the RGB image, or if the agreement score is low, we do not store the image with the label. As a result of this process, a large number of new training data examples are obtained.

4. Experiments

To evaluate our framework for the 3D gaze estimation, we developed a prototype that automatically calibrates the system without requiring any help from the users. Users wear the head-mounted device presented in [17] (see Figure 6), consisting of two eye cameras, an IR camera and an RGB camera. The IR camera continuously and reliably tracks the user’s pupil, while the RGB camera is used mainly for acquiring corneal images. The framework builds a 3D model of each user’s eye, computes robust and reliable 3D transformations between the eye cameras, and computes the user’s 3D gaze direction in the real world. The process of building the 3D eye model is done automatically, without the user having to do anything but wear the device. The process uses deep learning techniques to detect the pupil in the IR and RGB images, and using the known parameters of the eyeball.

4.1. Tools and Methods

The prototype was developed using MATLAB and Python. The training procedure for the pupil detection deep learning was performed using Python and the TensorFlow API for object detection [47]. The cameras’ capture process and the framework implementation were implemented using MATLAB while integrating the trained pupil detection deep learning model. The cameras’ capture tool runs two parallel processes for capturing images from both cameras simultaneously at a frame rate 20 fps. To avoid so many duplicates in the evaluation process, we need only 1 fps, and most importantly a synchronized couple of images (from IR and RGB). For that, at every second, we choose the couple with the closest timestamps. The framework implementation includes building a 3D eye model, computing the 3D mapping transformation, extracting corneal images and computing 3D gaze directions. The 3D gaze direction was computed and defined by a 3D vector starting at the center of the eyeball and passing through the pupil center to the real world. This definition is an approximation of the real human visual system, where the gaze vector starts from the fovea and passes through the cornea center out to the real world. As the kappa angle, which plays a key role in defining the visual axis differs between people and cannot be measured in standard ways, our approach is a good approximation.

4.2. Experimental Procedure

We conducted an experiment in a realistic setting at the University of Haifa campus. Twelve participants (6 males, 6 females) took part in the experiment. One participant wore contact lenses (see Figure 3 left). The experiment was intended to evaluate the feasibility and accuracy of our system under different conditions. Participants, monitored by one of the researchers, wore the mobile headset that was connected to a laptop, and used the system. The experiment was conducted in three sessions, indoors, indoors near windows and outdoors. Participants were instructed to behave normally, gaze naturally and walk freely during each session. The only request was not to move the headset, which meant that participants tried not shift the headset during the three sessions. The free movement lets us focus on evaluating the accuracy of the system in all situations and under all conditions.
The experiment took about 30 min. This period included the participates receiving an introduction and a description of the research and its goals, allowing about 7 min for each session, and a couple of minutes for moving between different sessions (such as going from inside the building outside). During each session, 150 images from both cameras were taken simultaneously using the cameras’ capture tool, one image per second, saved to the laptop’s RAM and transferred to its disk at the end of the session for synchronization purposes. Saving 150 images (1280 × 960) on the laptop’s hard disk using MATLAB took about 4 min (MacBook Pro 2017).
From each session, we used 10 pairs of images for training the deep learning model. In addition, from the indoor sessions only, we used 100 pairs of images to compute the 3D eyeball model; the remainder were used as test pairs of images for evaluation. Figure 7 illustrates the process of image capture.

4.3. Evaluation

The main parts of the evaluation assess the accuracy of the computed mapping transformation and the corneal image extraction, and to rate the 3D gaze error. For this, we used the test pairs of images captured during the experiment, each pair consisting of IR and RGB images. For each participant, 100 pairs of images were used for modeling the eyeball as a first step, and the 3D mapping transformation was computed accordingly. From each IR image in every test pair, we tried to detect the pupil. If the pupil was detected in the IR image, it was transformed automatically into an RGB image. For the purpose of comparison, we labeled the pupil in each RGB image in every test pair manually, which is the closest way to reach the ground truth. We used the Euclidean distance between the automatically computed pupil center in the RGB image and the ground-truth (manually labeled) point as a metric for comparison.
In addition, from every IR image in each test pair, the pupil’s bounding rectangle was computed using two points (top left and bottom right). Each bounding rectangle in the IR image was transformed into a bounding rectangle on its RGB image pair using a two-point 3D transformation. The transformed bounding rectangle in the RGB image is the corneal image. We compared the extracted corneal image with the ground truth and used the IoU (Jaccard index) defined by the area of overlap/area of union as a metric for comparison. Normally I o U > 0.5 is considered to be a good prediction, Figure 8 demonstrates this with a good IoU (0.6, left image) and a very good IoU (0.84, right image).
For each pupil center pair in the RGB image (computed and manually labeled), we also compared the automatically computed 3D gaze using the manually labeled center and used the angle between vectors as well as the Euclidean distance (in pixels) between pupil centers as a metric for comparison. Figure 9 illustrates the comparison process.

4.4. Results

Twelve participants including students and staff from the University of Haifa took part in the study. Each participated in three sessions, for a total of 36 sessions. The data collected in seven sessions were invalid: three sessions for one participant, and one session (indoors) for another participant were unsynchronized. Specifically, the synchronization algorithm between the IR and RGB cameras did not perform correctly. As a result, each pair of images was not taken at the same timestamp (see Figure 10 for an example). Note that for the latter participant, the 3D model was built using the indoor session, even though it was invalid, as the data were filtered when building the 3D model. Moreover, in three sessions for another participant, the deep learning algorithm for RGB pupil detection performed poorly, which directly affected the model building process.
For each pair of test images (IR and RGB), we define each pair as a valid test pair if the pupil in the IR image was detected, and if the pupil in the RGB image had been manually labeled. The resulting metrics are: (1) gaze error in degrees when considering the 3D gaze direction; (2) gaze error in pixels; (3) percent of consensus between pupils’ bounding rectangle on the RGB image between the automatic method and the deep learning algorithm; (4) IoU of pupils’ bounding rectangles between automatic method and the ground truth; and (5) IoU of pupils’ bounding rectangle between the deep learning algorithm and the ground truth.
For each metric and for each participant, we calculated the median to filter out outliers measurements. Finally, we calculated the median of all participants’ medians (median of medians). Table 1 summarizes the results.
We also applied each metric to each session type. In addition to the previously defined metrics, we also calculated, for each session type, the percentage of pupils successfully detected by the IR camera, and the percentage of valid test pairs. Table 2 summarizes the results.
During the study, we encountered special cases (valid and invalid). Valid sessions include a participant whose iris was dark, i.e., where the pupil region is unsalient in RGB images (see Figure 3, right, for an example), and sessions captures for one participant who wears contact lenses. Invalid sessions include unsynchronized capture and light reflection on the eye. Table 3 summarizes the results for the special cases.
Looking at Table 1, there were 29 valid sessions in which: (1) the median 3D gaze error was 2.12 degrees; (2) the median gaze error was 10.04 pixels; (3) 30% of the deep learning algorithm pupil detections in the RGB images were confirmed by the transformed bounding rectangle from the IR images; (4) the median IoU between the computed bounding rectangle in the RGB and the ground truth was 0.71; and (5) the median IoU between the computed bounding rectangle in the RGB using the deep learning algorithm and the ground truth is 0.71.
Looking at Table 2, for example, in indoors sessions the pupil was detected in 78% of the cases and 70% of the test pairs were valid. Moreover, 62% of the deep learning algorithm pupil detections in the RGB images were confirmed by the transformed bounding rectangle from the IR images.

5. Discussion

The framework for 3D gaze estimation system was evaluated in a user study where the participants were asked to walk and look freely at objects in a mobile scenario. The study included three different sessions: indoors, indoors near windows and outdoors, which are typical mobile scenarios. The indoors scenario is a standard one where the lighting is usually fixed; indoors near windows is a special case where the reflections coming from the windows are reflected directly onto the eyes. For every user, the pupils in the datasets of eye images were manually labeled and used as a ground truth for the evaluation. We considered gaze errors and the IoU of pupils’ bounding rectangles between the automatic computation and the ground truth as metrics for comparisons.
The framework achieved a median 3D gaze error of 2.12° and 10.04 pixels, with an image size of 800 × 600. Accordingly, the error in pixels was 1% relative to the diagonal length. Moreover, the framework achieved a median IoU of 71% between the computed pupil boundary (corneal image) and the ground truth, which is considered very good. Additionally, the deep learning algorithm for detecting the pupil in RGB images achieved an accuracy of 69% in general compared to the ground truth.
Our proposed framework achieved very good accuracy compared to state-of-the-art methods that try to compute gaze without a need for calibration. A comparison with state-of-the-art methods can be found in Table 4. Nevertheless, our auto and non-obtrusive calibration technique does not require the user to perform special requests, compared to current methods where the user is still involved in the process, such as inferring mouse clicks on a screen, matching the user’s scene with previously viewed scene, asking the user to look at various locations in the scene, or to use special equipment for scanning the environment such as RGB-D cameras. Moreover, what makes our proposed framework extraordinary, unlike previous works, is the ability to work in different real scenarios: indoors, indoors near windows and outdoors.
Considering the three different session types, in the indoor sessions, the framework detected the pupil in the IR images in 78% of cases and the 3D gaze error was 2.12°. The deep learning algorithm detected the pupil in the RGB images in 73% of the cases with an IoU accuracy of 48%. In the indoors near windows sessions, the framework detected the pupil in IR images in 42% of the cases and the 3D gaze error was 2.03°. The deep learning algorithm detected the pupil in the RGB images in 12% of the cases with an IoU accuracy of 69%, a significant decrease in the number of detected pupils in IR images relative to the indoor (not near windows) sessions. In the outdoor session, the framework detected the pupil in IR images in 46% of the cases and the 3D gaze error was 2.32°. The deep learning algorithm detected the pupil in the RGB images in just 2% of the cases, with an IoU accuracy of 73%—a very low percentage of detected pupils in IR images relative to the indoor (not near windows) condition.
The decrease in percentage of detected pupils in RGB images (the accuracy is stable), both automatically using the deep learning algorithm and when labeled manually, is primarily caused by the limitation imposed by the reflection of the light on the eye. This limitation was noticeable during the process of manually labeling the pupils in the RGB images, where the person who tagged the test images could not see the pupil. Looking at the experiment’s special cases, the deep learning algorithm for detecting the pupil in RGB images had difficulty in dealing with dark iris color (Figure 11 for example), contact lenses and harsh light reflection. Nevertheless, in the valid cases, the framework had a low gaze error.
Despite all the technical limitations, the framework produces automatically labeled data of pupils in 30% of cases with high accuracy ( I o U = 0.71 ). The automatically generated datasets of pupils can be used to improve existing and future deep learning algorithms for detecting pupils in both IR and RGB images. In the indoor scenario, the framework produces automatically labeled images 48% of the time—an impressive achievement. In the other cases, the framework generated smaller datasets, 12% in the near windows scenario, and in the outdoor sessions, for only 2% of the cases.
After building the personal 3D model for each user, the framework uses only the IR image to estimate the gaze direction and to extract the corneal images. The framework can be used in a variety of real-world scenarios, by any user without needing a technological background, and without any special instruction and requests to calibrate the system. The framework works very well in an indoor scenario, where in 78% of the cases the pupil was detected in IR images. In the other scenarios (near windows and outdoors), the framework was less successful and this is due to the challenges posed by the lighting conditions. As shown in Table 2, there was a decrease of 14% in the number of detected pupils (from 42% to 28%) when the manually labeled pupils in the RGB images were considered. The decrease was even worse (27%) in the outdoor scenario (from 46% to 19%).
Considering the above-mentioned limitations, the main reason was the lighting reflections and the challenge of detecting the pupil in the RGB plane in these cases. It was noticeable during the manual labeling process that the pupil region is not salient (due to lack of contrast) and as a consequence some of the images in all the datasets were not labeled. One solution to the problem of unsalient pupils could be that in the future the iris region should be labeled instead of the pupil, as the contrast between the iris and the white region around is always salient. In this case, we would consider the iris center as an approximation of the pupil center. It is thus possible to use the iris center to overcome the challenges of lighting reflection and in building an accurate and robust gaze tracker [48]. Furthermore, the experiment procedure was very complex and required considerable time and effort, hence so far only 12 participants performed the study. The small number of participants eis considered to be a limitation of the study and noted in the discussion. We plan to extend the study in a future work and noted that in the future work section.
The advancement made to the development of eye tracking technology may help many studies that use the gaze as an indicator of human visual attention. Providing a mobile device that detects the human gaze can be used in different disciplines: interaction with real or virtual environments, metaverse, cockpit control and more.

6. Conclusions and Future Work

In this work, we presented and evaluated a framework for 3D gaze estimation using a prototype system that implemented it. The system included a mobile headset consisting of two eye cameras (IR and RGB) and a front scene camera. The IR camera is used to continuously track the user’s pupil and the RGB camera to extract corneal images. Deep learning algorithms were trained and applied for detecting the pupil in IR and RGB images. For every user, an automatic 3D model of the eye was built and used for computing a 3D mapping transformation between the eye cameras. Using the 3D model of the eye and the detected pupil center, the 3D gaze direction was estimated by computing the vector direction starting at the eyeball center and passing through the pupil center out to the real world.
The suggested framework does not require any initial calibration procedure. The user can simply put on the eye tracker on and start moving around and using it, as the calibration procedure is automatic and, as far as concerns the user, transparent. The framework was evaluated in a user study and the results are promising. We achieved a very low 3D gaze error and very high accuracy in acquiring corneal images. The framework may be used in a variety of mobile scenarios (indoors, indoors near windows, and outdoors) with high accuracy. This is a breakthrough, especially when it comes to calibration-free mobile headsets. Moreover, there is no special requirements for which cameras can be used, especially which IR sensor. In our proposed solution only adaption of the deep learning algorithms to the new sensor images is needed.
Future work will focus on improving the deep learning algorithm for pupil detection using automatically labeled pupils— a technique we presented in this paper. Moreover, we will evaluate the transformation of the 3D gaze direction to the front scene camera, and on building a fully calibration free mobile eye tracker that works in any mobile scenario.

Author Contributions

Methodology, M.M., T.K. and I.S.; Software, M.M.; Data curation, M.M.; Writing—original draft, M.M.; Writing—review & editing, M.M., T.K. and I.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by The Council for Higher Education of Israel.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Harezlak, K.; Kasprowski, P. Application of eye tracking in medicine: A survey, research issues and challenges. Comput. Med. Imaging Graph. 2018, 65, 176–190. [Google Scholar] [CrossRef] [PubMed]
  2. Mele, M.L.; Federici, S. Gaze and eye-tracking solutions for psychological research. Cogn. Process. 2012, 13, 261–265. [Google Scholar] [CrossRef] [PubMed]
  3. Kapitaniak, B.; Walczak, M.; Kosobudzki, M.; Jóźwiak, Z.; Bortkiewicz, A. Application of eye-tracking in drivers testing: A review of research. Int. J. Occup. Med. Environ. Health 2015, 28, 941–954. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Poole, A.; Ball, L.J. Eye tracking in HCI and usability research. In Encyclopedia of Human Computer Interaction; IGI Global: Hershey, PA, USA, 2006; pp. 211–219. [Google Scholar]
  5. Mokatren, M.; Kuflik, T.; Shimshoni, I. Exploring the potential of a mobile eye tracker as an intuitive indoor pointing device: A case study in cultural heritage. Future Gener. Comput. Syst. 2018, 81, 528–541. [Google Scholar] [CrossRef]
  6. Arzis, I.; Mokatren, M.; Felberbaum, Y.; Kuflik, T. ExploringPotential Gestures for Controlling an Eye-Tracker Based System. In Proceedings of the 20th International Conference on Mobile and Ubiquitous Multimedia, Leuven, Belgium, 5–8 December 2021. [Google Scholar]
  7. Kytö, M.; Ens, B.; Piumsomboon, T.; Lee, G.A.; Billinghurst, M. Pinpointing: Precise head-and eye-based target selection for augmented reality. In Proceedings of the 2018 CHI Conference on Human Factors in Computing Systems, Montreal, QC, Canada, 21–26 April 2018; pp. 1–14. [Google Scholar]
  8. Weibel, N.; Fouse, A.; Emmenegger, C.; Kimmich, S.; Hutchins, E. Let us look at the cockpit: Exploring mobile eye-tracking for observational research on the flight deck. In Proceedings of the Symposium on Eye Tracking Research and Applications, Santa Barbara, CA, USA, 28–30 March 2012; pp. 107–114. [Google Scholar]
  9. Zhu, Z.; Ji, Q. Robust real-time eye detection and tracking under variable lighting conditions and various face orientations. Comput. Vis. Image Underst. 2005, 98, 124–154. [Google Scholar] [CrossRef]
  10. Holmqvist, K.; Nyström, M.; Andersson, R.; Dewhurst, R.; Jarodzka, H.; Van de Weijer, J. Eye Tracking: A Comprehensive Guide to Methods and Measures; OUP: Oxford, UK, 2011. [Google Scholar]
  11. Morimoto, C.H.; Mimica, M.R. Eye gaze tracking techniques for interactive applications. Comput. Vis. Image Underst. 2005, 98, 4–24. [Google Scholar] [CrossRef]
  12. Alnajar, F.; Gevers, T.; Valenti, R.; Ghebreab, S. Auto-calibrated gaze estimation using human gaze patterns. Int. J. Comput. Vis. 2017, 124, 223–236. [Google Scholar] [CrossRef] [Green Version]
  13. Sugano, Y.; Matsushita, Y.; Sato, Y.; Koike, H. Appearance-based gaze estimation with online calibration from mouse operations. IEEE Trans. Hum.—Mach. Syst. 2015, 45, 750–760. [Google Scholar] [CrossRef]
  14. Bâce, M.; Staal, S.; Sörös, G. Wearable eye tracker calibration at your fingertips. In Proceedings of the 2018 ACM Symposium on Eye Tracking Research & Applications, Virtual Event, Germany, 25–27 May 2018; pp. 1–5. [Google Scholar]
  15. Liu, M.; Li, Y.; Liu, H. 3D gaze estimation for head-mounted eye tracking system with auto-calibration method. IEEE Access 2020, 8, 104207–104215. [Google Scholar] [CrossRef]
  16. Nishino, K.; Nayar, S.K. Corneal imaging system: Environment from eyes. Int. J. Comput. Vis. 2006, 70, 23–40. [Google Scholar] [CrossRef]
  17. Lander, C.; Löchtefeld, M.; Krüger, A. hEYEbrid: A hybrid approach for mobile calibration-free gaze estimation. Proc. ACM Interact. Mobile Wearable Ubiquitous Technol. 2018, 1, 149. [Google Scholar] [CrossRef]
  18. Kassner, M.; Patera, W.; Bulling, A. Pupil: An open source platform for pervasive eye tracking and mobile gaze-based interaction. In Proceedings of the 2014 ACM international Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication, Seattle, WA, USA, 13–17 September 2014; pp. 1151–1160. [Google Scholar]
  19. Santini, T.; Fuhl, W.; Kasneci, E. Calibme: Fast and unsupervised eye tracker calibration for gaze-based pervasive human–computer interaction. In Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems, Denver, CO, USA, 6–11 May 2017; pp. 2594–2605. [Google Scholar]
  20. Wang, H.; Pi, J.; Qin, T.; Shen, S.; Shi, B.E. SLAM-based localization of 3D gaze using a mobile eye tracker. In Proceedings of the 2018 ACM Symposium on Eye Tracking Research & Applications, Warsaw, Poland, 14–17 June 2018; pp. 1–5. [Google Scholar]
  21. Kaufman, A.E.; Bandopadhay, A.; Shaviv, B.D. An eye tracking computer user interface. In Proceedings of the 1993 IEEE Research Properties in Virtual Reality Symposium, San Jose, CA, USA, 25–26 October 1993; pp. 120–121. [Google Scholar]
  22. Majaranta, P.; Bulling, A. Eye tracking and eye-based human–computer interaction. In Advances in Physiological Computing; Springer: London, UK, 2014; pp. 39–65. [Google Scholar]
  23. Mosquera, S.A.; Verma, S.; McAlinden, C. Centration axis in refractive surgery. Eye Vis. 2015, 2, 1–16. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Hansen, D.W.; Ji, Q. In the eye of the beholder: A survey of models for eyes and gaze. IEEE Trans. Pattern Anal. Mach. Intell. 2009, 32, 478–500. [Google Scholar] [CrossRef] [PubMed]
  25. Fuhl, W.; Kübler, T.; Sippel, K.; Rosenstiel, W.; Kasneci, E. Excuse: Robust pupil detection in real-world scenarios. In Proceedings of the International Conference on Computer Analysis of Images and Patterns, Valletta, Malta, 2–4 September 2015; Springer: Cham, Switzerland, 2015; pp. 39–51. [Google Scholar]
  26. Fuhl, W.; Santini, T.C.; Kübler, T.; Kasneci, E. Else: Ellipse selection for robust pupil detection in real-world environments. In Proceedings of the Ninth Biennial ACM Symposium on Eye Tracking Research & Applications, Charleston, SC, USA, 14–17 March 2016; pp. 123–130. [Google Scholar]
  27. Javadi, A.H.; Hakimi, Z.; Barati, M.; Walsh, V.; Tcheang, L. SET: A pupil detection method using sinusoidal approximation. Front. Neuroeng. 2015, 8, 4. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Świrski, L.; Bulling, A.; Dodgson, N. Robust real-time pupil tracking in highly off-axis images. In Proceedings of the Symposium on Eye Tracking Research and Applications, Santa Barbara, CA, USA, 28–30 March 2012; pp. 173–176. [Google Scholar]
  29. Vera-Olmos, F.J.; Pardo, E.; Melero, H.; Malpica, N. DeepEye: Deep convolutional network for pupil detection in real environments. Integr. Comput.-Aided Eng. 2019, 26, 85–95. [Google Scholar] [CrossRef]
  30. Yiu, Y.H.; Aboulatta, M.; Raiser, T.; Ophey, L.; Flanagin, V.L.; Zu Eulenburg, P.; Ahmadi, S.A. DeepVOG: Open-source pupil segmentation and gaze estimation in neuroscience using deep learning. J. Neurosci. Methods 2019, 324, 108307. [Google Scholar] [CrossRef] [PubMed]
  31. Naqvi, R.A.; Arsalan, M.; Batchuluun, G.; Yoon, H.S.; Park, K.R. Deep learning-based gaze detection system for automobile drivers using a NIR camera sensor. Sensors 2018, 18, 456. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  32. Vera-Olmos, F.J.; Malpica, N. Deconvolutional neural network for pupil detection in real-world environments. In Proceedings of the International Work-Conference on the Interplay Between Natural and Artificial Computation, Corunna, Spain, 19-23 June 2017; Springer: Cham, Switzerland, 2017; pp. 223–231. [Google Scholar]
  33. Chen, J.; Ji, Q. 3D gaze estimation with a single camera without IR illumination. In Proceedings of the 2008 19th International Conference on Pattern Recognition, Tampa, FL, USA, 8–11 December 2008; pp. 1–4. [Google Scholar]
  34. Kellnhofer, P.; Recasens, A.; Stent, S.; Matusik, W.; Torralba, A. Gaze360: Physically unconstrained gaze estimation in the wild. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 6912–6921. [Google Scholar]
  35. Lee, E.C.; Park, K.R. A robust eye gaze tracking method based on a virtual eyeball model. Mach. Vis. Appl. 2009, 20, 319–337. [Google Scholar] [CrossRef]
  36. Zhang, X.; Sugano, Y.; Fritz, M.; Bulling, A. Appearance-based gaze estimation in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 4511–4520. [Google Scholar]
  37. Zhang, X.; Sugano, Y.; Fritz, M.; Bulling, A. Mpiigaze: Real-world dataset and deep appearance-based gaze estimation. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 41, 162–175. [Google Scholar] [CrossRef] [Green Version]
  38. Sugano, Y.; Matsushita, Y.; Sato, Y. Appearance-based gaze estimation using visual saliency. IEEE Trans. Pattern Anal. Mach. Intell. 2012, 35, 329–341. [Google Scholar] [CrossRef]
  39. Huang, Q.; Veeraraghavan, A.; Sabharwal, A. TabletGaze: Dataset and analysis for unconstrained appearance-based gaze estimation in mobile tablets. Mach. Vis. Appl. 2017, 28, 445–461. [Google Scholar] [CrossRef]
  40. Xiong, X.; Liu, Z.; Cai, Q.; Zhang, Z. Eye gaze tracking using an RGBD camera: A comparison with a RGB solution. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication, Seattle, WA, USA, 13–17 September 2014; pp. 1113–1121. [Google Scholar]
  41. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  42. Bekerman, I.; Gottlieb, P.; Vaiman, M. Variations in eyeball diameters of the healthy adults. J. Ophthalmol. 2014, 2014, 503645. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  43. Zhang, Z. A flexible new technique for camera calibration. IEEE Trans. Pattern Anal. Mach. Intell. 2000, 22, 1330–1334. [Google Scholar] [CrossRef] [Green Version]
  44. Mokatren, M.; Kuflik, T.; Shimshoni, I. EyeLinks: Methods to compute reliable stereo mappings used for eye gaze tracking. In Proceedings of the ACM Symposium on Eye Tracking Research and Applications, Stuttgart, Germany, 2–5 June 2020; pp. 1–5. [Google Scholar]
  45. Hampel, F.R.; Ronchetti, E.M.; Rousseeuw, P.J.; Stahel, W.A. Robust Statistics: The Approach Based on Influence Functions; John Wiley & Sons: Hoboken, NJ, USA, 2011; Volume 196. [Google Scholar]
  46. Stewart, C.V. Robust parameter estimation in computer vision. SIAM Rev. 1999, 41, 513–537. [Google Scholar] [CrossRef] [Green Version]
  47. Abadi, M.; Agarwal, A.; Barham, P.; Brevdo, E.; Chen, Z.; Citro, C.; Corrado, G.S.; Davis, A.; Dean, J.; Devin, M.; et al. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. Software available from tensorflow.org. 2015. Available online: http://download.tensorflow.org/paper/whitepaper2015.pdf (accessed on 20 November 2022).
  48. Sigut, J.; Sidha, S.A. Iris center corneal reflection method for gaze tracking using visible light. IEEE Trans. Biomed. Eng. 2010, 58, 411–419. [Google Scholar] [CrossRef]
Figure 1. Human eye visual axes. Both visual and optical axes pass through the pupil center. Only the optical axis can be computed.
Figure 1. Human eye visual axes. Both visual and optical axes pass through the pupil center. Only the optical axis can be computed.
Sensors 23 00381 g001
Figure 2. Illustration of 3D gaze direction mapping using a 3D model of the eye. The green ray is the 3D gaze direction.
Figure 2. Illustration of 3D gaze direction mapping using a 3D model of the eye. The green ray is the 3D gaze direction.
Sensors 23 00381 g002
Figure 3. Left: RGB image with contact lenses, right: RGB image (without contact lenses) with light reflection.
Figure 3. Left: RGB image with contact lenses, right: RGB image (without contact lenses) with light reflection.
Sensors 23 00381 g003
Figure 4. The flowchart of 3D geometric model building using two eye cameras.
Figure 4. The flowchart of 3D geometric model building using two eye cameras.
Sensors 23 00381 g004
Figure 5. The flowchart for the point-to-point model transformation using the IR and RGB eye cameras.
Figure 5. The flowchart for the point-to-point model transformation using the IR and RGB eye cameras.
Sensors 23 00381 g005
Figure 6. Head-worn corneal imaging glasses and zoomed in view. The upper (small) camera is the IR camera, and the lower is the RGB camera.
Figure 6. Head-worn corneal imaging glasses and zoomed in view. The upper (small) camera is the IR camera, and the lower is the RGB camera.
Sensors 23 00381 g006
Figure 7. The flowchart for the model describing the procedure of choosing test images.
Figure 7. The flowchart for the model describing the procedure of choosing test images.
Sensors 23 00381 g007
Figure 8. Automatic detection (red) vs. manually labeled (blue) of pupils. Left: IoU = 0.6, right: IoU = 0.84.
Figure 8. Automatic detection (red) vs. manually labeled (blue) of pupils. Left: IoU = 0.6, right: IoU = 0.84.
Sensors 23 00381 g008
Figure 9. The flowchart describing the procedure of the framework’s evaluation.
Figure 9. The flowchart describing the procedure of the framework’s evaluation.
Sensors 23 00381 g009
Figure 10. Unsynchronized capture. Left: RGB, right: IR image where the pupil is distorted during a saccade.
Figure 10. Unsynchronized capture. Left: RGB, right: IR image where the pupil is distorted during a saccade.
Sensors 23 00381 g010
Figure 11. Sample images with dark iris color.
Figure 11. Sample images with dark iris color.
Sensors 23 00381 g011
Table 1. Summary of results for valid and invalid sessions. In addition to gaze error metrics, we calculate: (1) percentage of consensus ( I o U > 0.5 ) between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in RGB; (2) IoU between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in RGB; (3) IoU between bounding rectangle computed by deep learning algorithm in RGB, and the ground truth (manually labeled) in RGB.
Table 1. Summary of results for valid and invalid sessions. In addition to gaze error metrics, we calculate: (1) percentage of consensus ( I o U > 0.5 ) between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in RGB; (2) IoU between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in RGB; (3) IoU between bounding rectangle computed by deep learning algorithm in RGB, and the ground truth (manually labeled) in RGB.
Total No. of SessionsGaze Error (deg)Gaze Error (px)% Consensus AUTO & DLIoU AUTO & GTIoU DL & GT
Valid session292.1210.0430%0.710.69
Invalid session74.2815.0828%0.620.62
Table 2. Summary of results for valid sessions. In addition to gaze error metrics, we calculated: (1) percentage of consensus ( I o U > 0.5 ) between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in the RGB images; (2) the IoU between computed pupils’ bounding rectangle by automatic transformation from the IR images, and the ground truth in the RGB images; (3) the IoU between bounding rectangle computed by the deep learning algorithm in the RGB images, and the ground truth in the RGB images.
Table 2. Summary of results for valid sessions. In addition to gaze error metrics, we calculated: (1) percentage of consensus ( I o U > 0.5 ) between computed pupils’ bounding rectangle by automatic transformation from IR, and the ground truth (manually labeled) in the RGB images; (2) the IoU between computed pupils’ bounding rectangle by automatic transformation from the IR images, and the ground truth in the RGB images; (3) the IoU between bounding rectangle computed by the deep learning algorithm in the RGB images, and the ground truth in the RGB images.
Session% Detected IR% IR & GT RGBGaze Error (deg)Gaze Error (px)% Consensus AUTO & DLIoU AUTO & GTIoU DL & GT
Indoors78%70%2.1210.5348%0.730.7
Windows42%28%2.0310.0212%0.690.6
Outdoors46%19%2.3210.222%0.730.74
Table 3. Summary of special cases results (valid and invalid).
Table 3. Summary of special cases results (valid and invalid).
StatusCaseGaze Error (deg)Gaze Error (px)
InvalidUnsynchronized capture3.7121.45
InvalidLight reflection5.6416.25
ValidDark iris color3.2616.23
ValidContact lenses3.616.24
Table 4. Summary of comparison with state-of-the-art methods.
Table 4. Summary of comparison with state-of-the-art methods.
WorkOur work[14][13][15][12]
Gaze error (deg)2.03–2.322.682.93.7–4.0>4
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mokatren, M.; Kuflik, T.; Shimshoni, I. 3D Gaze Estimation Using RGB-IR Cameras. Sensors 2023, 23, 381. https://doi.org/10.3390/s23010381

AMA Style

Mokatren M, Kuflik T, Shimshoni I. 3D Gaze Estimation Using RGB-IR Cameras. Sensors. 2023; 23(1):381. https://doi.org/10.3390/s23010381

Chicago/Turabian Style

Mokatren, Moayad, Tsvi Kuflik, and Ilan Shimshoni. 2023. "3D Gaze Estimation Using RGB-IR Cameras" Sensors 23, no. 1: 381. https://doi.org/10.3390/s23010381

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop