Abstract
GazeSAM is an innovative human-computer interaction system that integrates eye-tracking technology with the Segment Anything Model (SAM) to streamline medical image segmentation. By leveraging the natural diagnostic gaze of radiologists, GazeSAM converts eye-tracking data into real-time segmentation prompts, significantly reducing the manual effort traditionally required for annotating complex medical scans.
Introduction
Medical image segmentation—the precise delineation of anatomical structures and pathologies—is a cornerstone of modern diagnosis and treatment planning. However, the manual annotation process is notoriously labor-intensive and time-consuming. While foundation models like the Segment Anything Model (SAM) have introduced efficient prompt-based segmentation, they still rely on manual inputs such as mouse clicks or bounding boxes. GazeSAM addresses this bottleneck by recognizing that radiologists already focus their visual attention on the regions requiring segmentation. By capturing this gaze, the system transforms a passive diagnostic activity into an active, automated segmentation tool.
System Architecture and Methodology
The GazeSAM framework is a cohesive hardware-software pipeline designed for clinical integration.
Hardware and Calibration
The system utilizes a Tobii Pro Nano, a screen-based eye tracker with a 60Hz sampling rate. This non-intrusive setup is preferred over wearable devices for clinical environments. A rapid five-point calibration process ensures high spatial accuracy, mapping the user's gaze directly onto the digital workstation display.
Prompt Transformation
The core innovation lies in the "Prompt Transformation" module, which maps screen-space gaze coordinates to image-space coordinates. The system supports two primary interaction modes:
- One Point Mode: Utilizes the most recent gaze point for rapid, coarse segmentation.
- All Points Mode: Aggregates the entire gaze trajectory, allowing for iterative refinement and more comprehensive object representation.
Real-time Segmentation
These transformed coordinates serve as prompts for SAM’s prompt encoder. By utilizing pre-computed image embeddings, GazeSAM generates segmentation masks almost instantaneously, providing immediate visual feedback to the user.
Implementation and Results
The system was evaluated qualitatively across both 2D natural images and 3D medical volumes (CT and MRI).
Key results include:
- Near Real-time Feedback: The system provides a "look-to-segment" experience, where masks appear dynamically as the user scans the image.
- Iterative Refinement: Users can refine masks by simply looking at areas the model initially missed, leveraging the "All Points" mode to add corrective prompts without manual clicking.
- Clinical Workflow Integration: The UI supports volumetric data navigation via scroll bars and keyboard shortcuts, maintaining a natural viewing distance (~60cm) consistent with standard radiological practice.
Discussion and Future Work
While GazeSAM demonstrates significant potential, its reliance on the base SAM model introduces a domain gap when handling specialized medical textures. SAM's zero-shot performance can be inconsistent on low-contrast lesions or specific organ boundaries.
Future developments will focus on fine-tuning SAM on large-scale medical datasets (e.g., SAM-Med) to improve accuracy. Additionally, the authors envision a coarse-to-fine pipeline where gaze-generated masks serve as initial inputs for more specialized medical AI models. Beyond segmentation, the data collected by GazeSAM—pairing gaze trajectories with high-quality masks—offers a unique resource for studying the correlation between visual attention and diagnostic accuracy.
Summary updated