Gaze estimation

Also known as: eye gaze tracking

On this page 7

Gaze estimation is the task of inferring where a person is looking from images of the eyes and face, expressed either as a 3D gaze direction vector or as a 2D point of regard on a screen or scene. Computer vision treats it as a regression problem closely related to pose estimation and keypoint detection, and modern systems in artificial intelligence solve it with deep neural networks trained on large labeled datasets.

The technique is also called eye gaze tracking, although engineers often reserve “eye tracking” for dedicated infrared hardware and use “gaze estimation” for appearance-based methods that work with ordinary RGB cameras. Applications range from driver monitoring and accessibility interfaces to usability research and foveated rendering in headsets.

How gaze estimation infers eye direction

Gaze estimation works by locating the face and eyes, normalizing their appearance, and mapping that evidence to a gaze angle pair of pitch and yaw. A typical pipeline first runs face detection and facial landmark localization, then estimates head pose in six degrees of freedom, because the same eye image means a different gaze when the head rotates.

Most deep learning systems apply data normalization: the eye or face crop is warped into a virtual camera that looks directly at the face from a fixed distance. This removes much of the variation caused by head roll and camera position, so the network can focus on iris and eyelid appearance. The predicted gaze is then rotated back into the real camera coordinate system.

The table below summarizes the main stages and what each contributes to the final estimate.

StageOutputWhy it matters
Face detectionFace bounding boxDefines the region to analyze
Landmark localizationEye corners, nose, mouth pointsAnchors geometry and cropping
Head pose estimationRotation and translationSeparates head motion from eye motion
NormalizationRectified eye or face patchReduces pose and distance variation
Gaze regressionPitch and yaw anglesProduces the core estimate
Screen mapping2D point of regardConverts direction into a target location
Stages of a typical gaze estimation pipeline

Model-based and appearance-based approaches

Two families of methods dominate the field: model-based methods fit a geometric model of the eyeball, while appearance-based methods learn a direct mapping from pixels to gaze. Model-based systems usually rely on near-infrared illumination and the pupil center corneal reflection technique, in which glints on the cornea serve as fixed reference points.

Appearance-based methods use convolutional networks or vision transformers on full-face or two-eye inputs. They tolerate low resolution and uncontrolled lighting but typically reach lower angular accuracy than calibrated infrared trackers. The comparison below shows the practical differences.

ApproachSensorTypical accuracyMain strength
Pupil center corneal reflectionInfrared camera and illuminatorsAbout 0.5 to 1 degreeHigh precision after calibration
3D eyeball model fittingInfrared or high-resolution RGBAbout 1 to 3 degreesInterpretable geometry
Appearance-based CNNStandard webcam or phone cameraAbout 3 to 6 degreesWorks without special hardware
Transformer on full faceStandard RGB cameraAbout 3 to 5 degreesUses global facial context
Comparison of the main gaze estimation approaches

These figures vary considerably with distance, lighting, calibration and the population of users, so they indicate typical ranges, not guarantees. Cross-dataset evaluation, in which a model trained on one dataset is tested on another, often shows errors several degrees higher than within-dataset results.

Accuracy metrics and key parameters

The standard accuracy metric is the mean angular error in degrees between predicted and true gaze vectors. For screen-based tasks, developers also report on-screen error in centimeters or pixels, which depends on viewing distance: at 60 cm, one degree corresponds to roughly one centimeter on the display.

ParameterTypical rangeEffect on results
Viewing distance30 to 100 cm for screensLonger distance enlarges on-screen error
Eye image resolutionRoughly 30 to 200 pixels wideLow resolution blurs iris position
Head rotationUp to about 40 degrees yawExtreme poses raise error sharply
Personal calibration points0 to 9 pointsA few points cut person-specific bias
Frame rate30 to 120 Hz for webcamsHigher rates capture saccades better
Parameters that influence gaze estimation quality

A major source of error is the angle kappa, the person-specific offset between the optical axis of the eye and the visual axis that passes through the fovea. It typically amounts to a few degrees and cannot be observed from appearance alone, which is why few-shot personal calibration improves accuracy markedly.

How gaze estimation relates to neighboring tasks

Gaze estimation borrows components from several related tasks but answers a distinct question. Facial recognition asks who a person is, pose estimation describes body configuration, and saliency detection predicts where an average viewer would look in an image without observing any specific viewer.

  • Keypoint detection supplies eye corners and pupil centers that gaze models use as input.
  • Pose estimation provides head orientation, a necessary correction for eye direction.
  • Object tracking helps maintain a stable estimate across video frames.
  • Saliency detection offers a prior about likely targets when direct gaze data is missing.

Choosing and deploying a gaze estimation system

The right design depends on the required precision, the available hardware and the privacy constraints of the setting. The decision table below matches common scenarios with suitable choices.

ScenarioRecommended approachReason
Reading research and psycholinguisticsInfrared tracker with calibrationNeeds sub-degree precision
Driver attention monitoringInfrared camera with appearance modelWorks at night and through sunglasses
Web usability testingWebcam appearance model with calibrationNo hardware shipping required
Assistive communicationInfrared tracker with dwell selectionReliable target selection over hours
Headset foveated renderingNear-eye infrared camerasVery low latency at close range
Selecting a gaze estimation setup by scenario

Common failure modes include reflections from eyeglasses, partial eyelid closure, heavy makeup, strong side lighting and users outside the demographic range of the training data. Because gaze reveals attention, fatigue and sometimes health conditions, deployments should treat gaze data as sensitive personal data, process it on the device where possible and obtain explicit consent.

Stripped to the essentials

Gaze estimation lets a computer guess where you are looking. A camera watches your eyes and face. Software checks the position of your pupils and the angle of your head. It then works out a line from your eye to the thing you are looking at.

Think of how you can tell that a friend is staring at the clock across the room. You notice their eyes and the turn of their head. Gaze estimation does the same thing with numbers and a trained model. Special infrared cameras do it very precisely. Ordinary webcams can do it too, only less exactly.

Where it is applied

A truck manufacturer installs a driver monitoring system with a near-infrared camera mounted on the steering column. The camera records the face at 60 frames per second, and an appearance-based model estimates head pose and gaze direction in every frame, even at night and through most sunglasses.

The software divides the cabin into zones such as the road ahead, mirrors, dashboard and phone area. If the estimated gaze stays away from the road for more than about two seconds at highway speed, the system issues an audible warning. Fleet tests show a clear reduction in long glances away from the road, and the manufacturer keeps all gaze data on the vehicle computer rather than sending video to a server.