TL;DR
EyeLiveMetrics is an open-source browser plugin that maps raw eye-tracking data to webpage text in real time, instantly calculating reading metrics at the word and paragraph level. By eliminating the need for tedious manual post-processing, it paves the way for gaze-responsive web applications and significantly more efficient user studies.
What Problem Does This Paper Address?
Traditional eye-tracking workflows suffer from a massive post-processing bottleneck. Most commercial software records raw gaze coordinates and screen recordings separately. To analyze reading behavior, researchers must manually draw "Areas of Interest" (AOIs) around words, sentences, or paragraphs after the experiment is over. This workflow is incredibly time-consuming, especially for large-scale web studies involving hundreds of dynamic pages.
Furthermore, because metrics are calculated post-hoc, it is impossible to build live applications. If you want a website to adapt to a user's reading difficulties, detect skimming, or change content based on what they have read so far, you need a system that can process gaze data and map it to text elements on the fly.
Methods
The authors introduce EyeLiveMetrics, a modular system consisting of a Python backend and a browser plugin implemented as a Tampermonkey user script.
- Data Collection: A Python script interfaces with the eye tracker (using the Tobii Pro SDK) to capture raw 2D and 3D gaze coordinates. It acts as a WebSocket server, streaming this data directly to the browser plugin. Flow of gaze data from eye tracker to the EyeLiveMetrics plugin
- Classification & Live Mapping: The plugin uses a Velocity-Threshold Identification (I-VT) algorithm to classify raw gaze points into fixations (holding gaze on a point) or saccades (rapid movements between points). Crucially, it maps these events directly to the webpage's DOM elements (HTML words, paragraphs, images) in real time. Data processing in the EyeLiveMetrics plugin
- On-the-Fly Metrics: When a fixation ends, the plugin instantly calculates standard fixation metrics (e.g., Total Fixation Duration) and advanced reading metrics (e.g., First-Pass Duration, Regression Path Duration) for that specific word or paragraph.
Datasets
The paper does not use standard machine learning datasets. Instead, to evaluate performance and accuracy, the authors recorded a participant reading a large Wikipedia article. They exported the raw eye-tracking data and replayed it through a Python script to benchmark EyeLiveMetrics against Tobii Pro Lab, a leading commercial software suite.
Key Insights and Ideas
- Taming the Dynamic Web: Traditional post-hoc mapping tools fail on modern web pages that load content dynamically via AJAX, dropdowns, or carousels. Real-time DOM mapping solves this by capturing the exact state of the page elements at the precise millisecond the user looks at them.
- Enabling Closed-Loop Interaction: Computing metrics on the fly allows developers to build responsive interfaces. For example, the system can generate a live heatmap of reading intensity based on fixation duration, or theoretically trigger assistive features like switching to simplified language when reading comprehension difficulties are detected. Participant reading a Wikipedia article and generating a heat map on the fly.
Key Results
- High-Speed Performance: In a performance test processing 176,091 raw gaze coordinates, the plugin achieved an average computation time of just 0.464 ms per iteration. This makes it fast enough to support high-end eye trackers operating at frequencies up to 1200Hz.
- Commercial-Grade Accuracy: When compared directly against Tobii Pro Lab, EyeLiveMetrics achieved near-perfect alignment. Pearson correlation coefficients ($\rho$) ranged from 0.962 to 1.0 for fixation metrics, and 0.979 to 1.0 for reading metrics. The Mean Absolute Error (MAE) for fixation metrics was remarkably low, averaging under 6 ms. Table 1: Comparison of eye tracking metrics of Tobii Pro Lab and EyeLiveMetrics. All time measures are in ms.
Limitations and Future Work
Despite the strong results, the authors noted a few subtle challenges inherent to real-time web eye tracking:
- Rendering Discrepancies: Minor differences in text rendering between commercial software internal views and standard web browsers can affect bounding box alignment, requiring manual CSS line-height tweaks during evaluation.
- The "Space" Problem: Fixations often land on the empty spaces between words. Tobii Pro Lab splits these spaces between adjacent words using an internal heuristic. The authors implemented a 1/3 to 2/3 split to match this behavior, but whitespace mapping remains an approximation.
- Live vs. Post-Hoc Filtering: Because EyeLiveMetrics operates in real time, its data filtering algorithms can only look at a small queue of current coordinates, whereas post-hoc software can optimize filters by looking globally at the entire dataset. Future work will focus on refining these real-time noise filters.
Summary updated