TL;DR
This paper introduces WebGazer, a novel JavaScript library that enables real-time eye tracking using only a standard webcam, directly within a web browser. By cleverly leveraging user interactions like clicks and cursor movements for continuous self-calibration, WebGazer bypasses the need for expensive hardware and cumbersome lab setups, democratizing eye tracking for web research and applications.
What Problem Does This Paper Address?
Eye tracking is a powerful tool for understanding human attention, crucial in fields like psychology, human-computer interaction, and medical research. However, traditional eye trackers are prohibitively expensive, require specialized equipment and controlled environments, and often involve complex calibration procedures. This confinement to labs and artificial tasks limits their scalability and applicability to real-world, natural user behaviors. While webcam-based eye tracking has been explored, it has historically suffered from poor accuracy due to variations in lighting, facial features, and head movements, negating its practical utility for widespread adoption. The core challenge is to achieve reasonably accurate, real-time eye tracking using ubiquitous, low-cost hardware without requiring users to undergo tedious calibration or alter their natural interaction patterns.
Methods
WebGazer tackles this challenge with a two-pronged approach:
- Pupil Detection: A core component is a pupil detector that can be integrated with various open-source eye detection libraries (clmtrackr, js-objectdetect, tracking.js). This detector identifies the pupil's location within the eye region, making assumptions about its darkness relative to the iris and its circular shape.
- Gaze Estimation: This is where WebGazer truly innovates. Instead of relying on explicit calibration, it uses a regression-based approach that learns a mapping between eye features and screen coordinates by observing user interactions.
- Self-Calibration via User Interactions: The system assumes that when a user clicks on an element, their gaze is aligned with the cursor at that moment. This assumption, supported by prior research, forms the basis for training.
- Regression Models: WebGazer employs both simple linear regression (mapping pupil position to gaze) and ridge regression (mapping a richer 120D eye feature vector to gaze).
- Enhanced Models: To improve accuracy, they introduce two extensions to the ridge regression model:
- Fixation Buffer (RR+F): Incorporates eye features from a short temporal buffer (500ms) preceding a click, assuming fixations precede interactions.
- Cursor Movement Sampling (RR+C): Assigns weights to cursor positions based on their proximity to the predicted gaze and their recency, giving more weight to recent movements.
- Combined Model (RR+F+C): Merges both the fixation buffer and cursor movement sampling.
Crucially, WebGazer is designed to be a client-side JavaScript library, allowing it to run directly in the browser without sending sensitive video data to a server, thus addressing privacy concerns.
Datasets
The paper describes two studies for evaluation:
- Remote Online Large-Scale Study: Conducted with 76 participants who used their own webcams and browsers. This study involved two types of tasks:
- Quiz Task: Filling out a 40-question quiz, requiring scrolling and interaction with page elements.
-
Target Selection Task: A Fitts' Law-style task involving clicking on circular targets, designed to be more controlled. This study collected approximately 20,251 clicks for analysis.
-
In-Person Small-Scale Study: Conducted with 5 participants in a lab setting, using a Tobii EyeX commercial eye tracker as a ground truth. This study allowed for continuous gaze prediction tracking, not just during clicks.
No new datasets were explicitly introduced; rather, existing user interaction patterns within web browsing were leveraged for training and evaluation.
Key Insights and Ideas
- Democratizing Eye Tracking: The most significant insight is that robust eye tracking can be achieved with readily available webcams and browser technology, removing major barriers to entry.
- User Interactions as Implicit Calibration: The core innovation lies in using natural user interactions (clicks, cursor movements) as a continuous, implicit calibration mechanism, eliminating the need for explicit, time-consuming calibration sessions.
- Cursor Movement as a Gaze Signal: The study highlights that cursor movements, not just clicks, contain valuable information that can significantly improve gaze prediction accuracy, especially when users are actively navigating.
- Privacy-Preserving Design: By processing data client-side in JavaScript, WebGazer offers a privacy-conscious approach to eye tracking, which is crucial for widespread adoption.
- Scalability: The browser-based, self-calibrating nature of WebGazer makes it inherently scalable to millions of users without requiring centralized infrastructure for data collection or processing.
Key Results
- Accuracy Improvement: The ridge regression models significantly outperformed simple linear regression. The best performing model, RR+C (Ridge Regression with Cursor Movement Sampling), achieved a mean error of 174.9 pixels in the online study. The combined model (RR+F+C) had a mean error of 210.6 pixels.
- Comparison to Commercial Trackers: In the in-person study, WebGazer's best model (RR+C) achieved a mean error comparable to a commercial Tobii EyeX tracker, with an average visual angle of 4.17°.
- Task-Dependent Performance: Accuracy varied between tasks. The quiz task generally showed higher errors, likely due to more user movement and scrolling, while the target selection task showed more stable performance.
- Eye Detector Impact: The choice of eye detection library also influenced accuracy, with clmtrackr generally performing better.
Limitations and Future Work
- Accuracy Limitations: While improved, the accuracy (around 100-200 pixels) is still not at the level of high-end lab-based eye trackers, limiting its use for highly precise applications.
- Head Movement Sensitivity: Although self-calibrating, significant head movements can still impact accuracy.
- Blinking and Occlusion: The paper acknowledges that blinks and other occlusions can affect pupil detection.
- Future Work: The authors suggest improving accuracy by incorporating more sophisticated eye detection algorithms, exploring additional user interaction signals, and adapting to varying lighting conditions and webcam qualities. They also envision applications in online gaming, personalized content delivery, and assistive technologies.
Summary updated