TL;DR
This paper introduces a "visual prompting" strategy that transforms high-frequency eye-tracking sensor data into 2D images (such as heatmaps and scanpaths) to enable Multimodal Large Language Models (MLLMs) to perform Human Activity Recognition (HAR). By converting continuous numerical data into visual representations, the approach bypasses the token explosion and information loss typical of text-based prompting, achieving higher accuracy with a fraction of the token cost.
What Problem Does This Paper Address?
Integrating Large Language Models (LLMs) into IoT ecosystems for tasks like Human Activity Recognition (HAR) is highly desirable due to their zero-shot capabilities and broad world knowledge. However, high-frequency, multi-dimensional sensor data—such as eye-tracking coordinates—poses a massive challenge for standard text-based LLMs.
First, text tokenizers are designed for natural language and struggle to capture continuous numerical patterns, leading to a loss of temporal correlation. Second, raw time-series data translates into an enormous number of tokens, resulting in prohibitive computational costs and triggering the "lost in the middle" problem, where the model overlooks critical patterns buried in long contexts. The authors tackle this by asking: Can we leverage the visual reasoning capabilities of MLLMs by feeding them data visualizations instead of raw numbers?
Methods
The authors developed a systematic framework that converts raw eye-tracking data into 2D data visualization images, which are then used as visual prompts for a state-of-the-art MLLM (gpt-5.1-2025-11-13).
They designed six distinct visualization types across three primary categories:
- Timeline Plots: Mapping X and Y coordinates over time.
- Heatmaps: Representing the spatial distribution and density of gaze.
- Scanpaths: Depicting gaze trajectories to show the spatio-temporal sequence of visual exploration.
For each category, they compared raw data representations against feature-based representations (where fixations and saccades were explicitly extracted using the Identification by Dispersion-Threshold (I-DT) algorithm).
The images were formatted to a fixed size, costing a predictable 350 tokens per image via the OpenAI API, regardless of the temporal window length. The performance was evaluated under both zero-shot and one-shot settings across varying window sizes (from 10 to 100 seconds).
Datasets
The approach was validated across three public eye-tracking datasets representing different hardware configurations and activity complexities:
- GazeBase: High-fidelity, screen-based data collected at 1,000 Hz across 6 highly structured experimental tasks (e.g., fixations, reading, saccades).
- SedentaryActivity: Screen-based data collected at 30 Hz covering 8 naturalistic desktop computing tasks (e.g., reading, writing, browsing, gaming).
- DesktopActivity: Data collected at 30 Hz using a wearable egocentric device (Pupil Core) across 6 everyday desktop activities.
Key Insights and Ideas
- The Constant-Token Advantage: Unlike text prompts, which scale linearly with time and quickly overwhelm context windows, visual prompts maintain a fixed token cost. This makes them highly scalable for long-duration sensor streams.
- No "One-Size-Fits-All" Visualization: The optimal visualization type depends heavily on the nature of the activity. For instance, Heatmaps excel at identifying spatial-density tasks like "Play" (gaming), whereas Scanpaths are far more effective for sequential, order-dependent tasks like "Read".
- MLLMs Can Do Their Own Feature Extraction: Surprisingly, visual prompts using raw data often outperformed those using pre-computed features (fixations/saccades) in one-shot settings. This suggests that modern visual encoders are highly capable of abstracting meaningful behavioral features directly from raw plots, bypassing the need for manual algorithmic preprocessing.
Key Results
- Accuracy Boost: In one-shot settings on the GazeBase dataset, visual prompts achieved a peak accuracy of 0.811 (using Timeline and Heatmap visualizations), drastically outperforming the raw text baseline (0.539).
- Massive Token Savings: For a standard 10-second window, raw text prompts required up to 21.8× more tokens than visual prompts. At a 100-second window, text prompts exploded to 83,901 tokens, representing a 20.7× increase in computational overhead compared to the fixed-size visual prompt.
- Temporal Window Impact: For complex, naturalistic tasks (SedentaryActivity), expanding the window size from 10 seconds to 60+ seconds allowed the Heatmap accuracy to climb from ~0.13 to a stable 0.529, proving that MLLMs can successfully reason over extended temporal contexts when presented visually.
Limitations and Future Work
While promising, the authors note several limitations:
- Performance Gap with Specialized Models: The overall HAR accuracy of this training-free MLLM approach still trails behind conventional, task-specific deep learning models.
- The "Overcrowding" Trade-off: If the temporal window becomes too large, visualizations (especially Timelines) become visually crowded, leading to information loss and a drop in accuracy.
- Wearable Data Challenges: The model struggled significantly with the DesktopActivity dataset (~0.3 accuracy), indicating that visual prompting strategies need refinement to handle the noise and instability inherent in egocentric, wearable eye-trackers.
Future directions include exploring the combination of multiple visualization techniques into a single prompt and testing the framework in open-ended, real-world IoT scenarios beyond predefined activity labels.
Summary updated