Research
EyeTheia: A Lightweight and Accessible Eye-Tracking Toolbox
Overview Research area: Computer vision applied to cognitive neuroscience and behavioral research — specifically webcam-based gaze estimation (eye tracking) with deep learning, deployed in browser-bas

- arXiv
- 2601.06279
- Published
- 2026-01-09
- Authors
- Stevenson Pather, Niels Martignène, Arnaud Bugnet, Fouad Boutaleb, Fabien D'Hondt, Deise Santana Maia
AI summary
Overview
Research area: Computer vision applied to cognitive neuroscience and behavioral research — specifically webcam-based gaze estimation (eye tracking) with deep learning, deployed in browser-based experimental platforms.
Technical level: Intermediate. The paper is readable for those with basic familiarity with convolutional neural networks and eye-tracking concepts; the architecture is deliberately simple, but the training and calibration protocols assume some machine learning background.
Scope: The paper introduces EyeTheia, an open lightweight pipeline for real-time gaze estimation from a standard laptop webcam, and validates it both on the MPIIFaceGaze benchmark and in a live Dot-Probe cognitive task against the commercial SeeSo SDK.
What This Paper Is About
Laboratory-grade eye trackers are accurate but require dedicated hardware, controlled environments, and specialist expertise, which limits their use in remote or clinical research. Existing webcam-based alternatives tend to be either inaccurate and unstable, or proprietary and opaque about their training data and processing. The paper's goal is to build a transparent, lightweight, deployable gaze-estimation pipeline that supports the relative gaze measures (left vs. right attention) that many cognitive paradigms actually need, rather than sub-degree absolute accuracy.
Key Contributions
- An open hybrid gaze-estimation pipeline that pairs browser-based image capture with a documented convolutional neural network backend (iTracker-based), exposing calibration and prediction through a lightweight FastAPI server with two REST endpoints.
- A comparative analysis of two training strategies: adapting a model pretrained on mobile GazeCapture data (Approach 1) versus training the same iTracker architecture from scratch on the desktop-oriented MPIIFaceGaze dataset (Approach 2), including a grid search over the Smooth L1 (Huber) loss parameter.
- A user-specific calibration protocol — a 13-point fixation task producing a compact per-user mini-dataset used for lightweight fine-tuning, evaluated for its effect on both approaches.
- Validation in a demanding cognitive paradigm: deployment in a Dot-Probe Task with 18 healthy participants on consumer laptops, with a direct head-to-head comparison against the commercial SeeSo SDK on the same webcam stream and the same trials.
Main Findings
-
Both training strategies perform comparably before calibration. On the MPIIFaceGaze test split (7,910 samples), Approach 1 achieved an RMSE 2D of 428.15 px versus 447.37 px for Approach 2; mean L2 error of 392.89 px versus 395.53 px; and mean L2 as a percentage of screen diagonal of 23.92% versus 24.05%. Lower is better on all three metrics, and Approach 1 was only slightly ahead.
-
The performance gap is explained as a scale-versus-domain trade-off. Approach 1 benefits from large-scale pretraining on GazeCapture but suffers domain mismatch with laptop usage; Approach 2 is better aligned with laptop capture geometry but limited by the smaller size of MPIIFaceGaze. The paper attributes the similar error levels before calibration largely to strong inter-subject variability.
-
Smooth L1 loss parameter matters for training from scratch. A grid search over β ∈ [0.01, 1.0] at a fixed learning rate, with subject-disjoint validation splits, selected β = 0.8 as giving the lowest validation loss, and this value was retained for all subsequent experiments.
-
User-specific calibration substantially reduces error for both approaches. Fine-tuning on the 13-point per-user calibration data led to a substantial reduction in pixel error for both the pretrained and from-scratch models. The paper does not report the specific post-calibration error values in the main text.
-
EyeTheia agrees with a commercial tracker on coarse left/right gaze. Across all participants and trials in the Dot-Probe task, EyeTheia (Approach 1) agreed with SeeSo on the predicted screen side during 75.1% of valid samples, evaluated exclusively during stimulus presentation intervals.
-
Fine-grained spatial precision is lower, but converges as the region of interest is relaxed. Under a strict ROI, SeeSo was slightly more accurate (35.5% vs. 32.6% for EyeTheia). At ROI +5% the two converged (38.1% vs. 37.5%), and at ROI +10% EyeTheia was slightly higher (42.5% vs. 40.4%).
-
Temporal stability is the main weakness. EyeTheia exhibited higher mean inter-frame jitter than SeeSo (69.4 pixels vs. 26.2 pixels), attributed to the absence of explicit temporal smoothing. The paper reports that EyeTheia follows the same left–right alternation patterns as SeeSo, with occasional short-lived divergences near fixation–stimulus transitions.
Methodology in Plain English
The system takes a standard laptop webcam feed and, for every frame, uses MediaPipe FaceMesh to find facial landmarks. Those landmarks define tight bounding boxes for the left eye, right eye, and whole face, which are resized to the resolutions the original iTracker network expects (112 × 112 for eyes, 224 × 224 for the face). A binary 25 × 25 face grid encodes where the face sits in the frame. Pixel intensities are normalized to [0, 1] and branch-specific mean images stored in .mat files are subtracted.
These three inputs feed an iTracker-style network with separate branches — shared CNN weights for the two eyes (four convolutional layers plus a 128-unit fully connected layer), an independent face branch (five convolutional layers plus 128- and 64-unit fully connected layers), and a fully connected module for the face grid (256 and 128 units). The embeddings are concatenated and passed through two fully connected layers that regress the gaze coordinates.
Two training routes were compared. Approach 1 starts from iTracker weights pretrained on GazeCapture, so it predicts in camera-centered centimetres within a [−25, 25]² range; these predictions are converted to screen pixels with a fixed linear mapping, and fine-tuning uses Adam at a learning rate of 10⁻⁴ with a Euclidean loss. Approach 2 trains the same architecture from scratch on MPIIFaceGaze, normalizing each subject's gaze coordinates by their own screen resolution, using 5-fold GroupKFold for strict subject separation, 15 epochs, batch size 8, Adam, and a Smooth L1 (Huber) loss whose transition parameter β was tuned by grid search.
Calibration is identical in both cases: the user fixates 13 screen targets, one RGB frame is captured per fixation, and the resulting input–target pairs fine-tune the model for that user. The same preprocessing and inference steps are then served in real time to browser-based experiments through a FastAPI server exposing a calibration endpoint and a prediction endpoint.
The live evaluation used a Dot-Probe Task: a jittered fixation cross (500–1500 ms), then two images (one negative, one neutral, drawn from IAPS) shown left and right for 2 seconds, then a target dot requiring a key press. There were 96 left–right image pairs per session, the task lasted about 10 minutes with a short break halfway, and 18 healthy participants completed it on a standard consumer laptop with a built-in webcam, no dedicated GPU, and uncontrolled lighting, posture, and corrective-glasses conditions. SeeSo and EyeTheia processed the same webcam stream on identical trials. Only Approach 1 was deployed during the sessions, because running a third pipeline concurrently on the same consumer laptop could not be executed stably in real time.
Why This Matters
Impact on research: The paper argues that many cognitive paradigms care about relative gaze allocation and temporal dynamics rather than sub-degree spatial accuracy, yet most webcam gaze benchmarks optimize absolute precision. EyeTheia reframes the evaluation around what experimental paradigms actually require, and shows that a transparent, low-cost system can capture those coarse attentional signals in a real protocol previously validated in clinical research.
Real-world applications:
- Remote and web-based behavioral studies that need scalable participant recruitment without shipping hardware.
- Clinical and psychiatric research on attentional bias (for example, anxiety- and threat-related paradigms) where laboratory eye tracking is impractical.
- Cognitive neuroscience studies run in naturalistic settings such as different rooms, postures, and lighting conditions.
- Human–computer interaction and accessibility research needing low-cost, real-time gaze input on consumer laptops.
Industry relevance: The comparison against a commercial SDK (SeeSo) is the useful signal — it shows an open, reproducible pipeline can approach a proprietary tracker on the task-relevant metric (75.1% screen-side agreement) while being free to inspect, retrain, and self-host. The published code, trained models, and experimental materials lower the barrier for labs and developers who cannot justify or license commercial eye-tracking stacks.
Future Directions
- Explicit temporal smoothing. The paper identifies the lack of smoothing as the source of higher frame-to-frame jitter (69.4 vs. 26.2 pixels) and proposes filtering in the inference stream, specifically the One Euro Filter.
- Better use of geometric cues. Extending the architecture to exploit depth-related and pose-dependent information from the facial landmarks.
- Integrating Approach 2 into the experimental platform. The MPIIFaceGaze-trained model was excluded from the live comparison purely because the platform could not run a third tracker stably in real time; its integration is described as ongoing work, leaving an open question about how it would perform in the Dot-Probe task.
- Quantifying calibration benefit more precisely. The paper reports that fine-tuning substantially reduces error for both approaches but does not report the post-calibration error values, leaving the calibrated accuracy of each approach against held-out subjects an open comparison.
Target Audience
Researchers and engineers working at the intersection of computer vision, cognitive neuroscience, and web-based experimentation — particularly those who need eye tracking inside browser-based studies but lack dedicated hardware. It is also relevant to clinical and behavioral scientists evaluating whether a commercial webcam tracker is necessary, and to developers building open, reproducible gaze-estimation tooling. Readers should be comfortable with CNN architecture terminology and standard training and calibration procedures.
Authors’ abstract
We introduce EyeTheia, a lightweight and open deep learning pipeline for webcam-based gaze estimation, designed for browser-based experimental platforms and real-world cognitive and clinical research. EyeTheia enables real-time gaze tracking using only a standard laptop webcam, combining MediaPipe-based landmark extraction with a convolutional neural network inspired by iTracker and optional user-specific fine-tuning. We investigate two complementary strategies: adapting a model pretrained on mobile data and training the same architecture from scratch on a desktop-oriented dataset. Validation results on MPIIFaceGaze show comparable performance between both approaches prior to calibration, while lightweight user-specific fine-tuning consistently reduces gaze prediction error. We further evaluate EyeTheia in a realistic Dot-Probe task and compare it to the commercial webcam-based tracker SeeSo SDK. Results indicate strong agreement in left-right gaze allocation during stimulus presentation, despite higher temporal variability. Overall, EyeTheia provides a transparent and extensible solution for low-cost gaze tracking, suitable for scalable and reproducible experimental and clinical studies. The code, trained models, and experimental materials are publicly available.