Abstract
Eye-tracking technology provides a non-invasive window into cognitive processes, yet the resulting high-frequency numerical data remains difficult for Large Language Models (LLMs) to interpret directly. This paper presents a novel multimodal framework that bridges the gap between raw physiological signals and semantic reasoning. By employing a multi-stage data segmentation pipeline, an LSTM-based anomaly detection module, and an expert-AI co-evaluation system, the framework enables LLMs to accurately identify cognitive patterns and predict task difficulty. Experimental results demonstrate that structured data processing allows models like ChatGPT-o1 and Deepseek-R1 to achieve near-perfect consistency in behavioral interpretation, offering a scalable solution for educational analytics.
Introduction
Eye-tracking data—comprising fixation durations, saccade counts, and gaze coordinates—is a rich source of information regarding a user's attention, cognitive load, and decision-making. However, analyzing this data typically requires either labor-intensive manual coding by domain experts or the use of "black-box" machine learning models that offer little interpretability.
While LLMs excel at reasoning over natural language, they struggle with raw, non-linguistic temporal data. Feeding a raw spreadsheet of eye-tracking coordinates into a standard LLM often results in hallucinations or a failure to identify meaningful trends. This research addresses this limitation by proposing a framework that transforms numerical physiological data into a structured format suitable for LLM-based semantic analysis.
Methodology
The proposed framework consists of three integrated modules designed to translate numerical signals into human-readable insights.
1. Multi-Stage Collaborative Mechanism
To overcome the LLM's difficulty with raw tables, the system implements a dual-axis segmentation strategy. Data is converted to JSON and processed through two lenses:
- Horizontal Analysis: Examines data row-by-row to identify relationships between different features at specific points in time.
- Vertical Analysis: Examines data column-by-column to track the evolution of specific features (e.g., saccade duration) over the duration of a task.
The outputs from both analyses are merged, providing the LLM with a comprehensive temporal and feature-based context.
2. Expert-AI Co-Evaluation Module
To ensure the reliability of LLM-generated insights, the framework utilizes a dual-validation scoring system. A domain expert evaluates the behavioral patterns identified by the LLM, while the LLM simultaneously cross-references its findings against existing scientific literature. A weighted "trust score," calculated using Cohen’s Kappa, is used to measure consistency and mitigate the risk of AI hallucinations.
3. Hybrid Anomaly Detection (LSTM + LLM)
The framework employs a Long Short-Term Memory (LSTM) neural network trained on expert eye-tracking data to establish a baseline for "normal" task execution. The LSTM scans student data to flag deviations (anomalies) from this baseline. These anomalies are then passed to the LLM, which provides a semantic explanation of why a student might be struggling, effectively turning a numerical deviation into actionable feedback.
Experimental Setup and Results
The framework was evaluated using a dataset from Jang et al. (2024) involving 19 participants (9 students, 10 experts) performing pair programming tasks of varying difficulty. Data was captured using a Tobii Pro Fusion eye-tracker at 250Hz.
Performance and Trust Scores
The study compared three models: ChatGPT-4o, ChatGPT-o1, and Deepseek-R1. Without the segmentation modules, trust scores were low (0.524–0.715). However, with the combined horizontal and vertical (h+v) segmentation, both ChatGPT-o1 and Deepseek-R1 achieved a perfect trust score of 1.00, indicating ideal alignment with expert interpretations.
Task Difficulty Prediction
The system was tasked with predicting the difficulty level of anonymized programming questions based solely on gaze patterns. While baseline LLMs performed poorly (scoring ~33% or failing entirely), the full h+v pipeline allowed Deepseek-R1 to reach 50% accuracy, demonstrating a significant improvement in reasoning over physiological data.
Diagnostic Insights
Beyond student assessment, the framework proved capable of auditing the tasks themselves. By identifying recurring unusual gaze patterns across multiple participants, the system flagged a specific question (Question C2) as poorly designed, suggesting it required a redesign to better align with learning objectives.
Discussion and Limitations
The results suggest that the primary barrier to using LLMs for physiological data analysis is not the model's reasoning capability, but the structure of the input data. By acting as a translation layer, the h+v segmentation allows LLMs to maintain high accuracy even in low-context scenarios.
However, several limitations remain. The system is highly dependent on sophisticated prompt engineering. Furthermore, the co-evaluation module currently uses citation counts and journal rankings as proxies for literature validity, which may not always reflect the specific relevance of a paper. Finally, the LSTM may occasionally flag unique but valid problem-solving strategies as anomalies.
Conclusion
This research demonstrates a robust pathway for integrating LLMs into multimodal behavioral analysis. By combining deep learning for anomaly detection with structured semantic reasoning, the framework provides a scalable, interpretable tool for understanding cognitive processes. Future work will focus on automating expert feedback and expanding the system to include other physiological signals such as EEG and audio data.
Summary updated