Semantic Neighborhood Density and Eye Gaze Time in Human Programmer Attention
Robert Wallace, Emory Michaels, Yu Huang, Collin McMillan

TL;DR
This study explores how the semantic similarity of words in source code, measured by Semantic Neighborhood Density, relates to the amount of human attention as indicated by eye gaze time, revealing that more semantically dense words attract longer gaze times especially when infrequent.
Contribution
The paper introduces the application of Semantic Neighborhood Density to source code and analyzes its relationship with human gaze behavior in programming tasks.
Findings
High SND words have longer gaze times, especially if infrequent.
SND and word frequency have limited predictive power for gaze time.
Semantic factors influence programmer attention in source code.
Abstract
This paper studies the relationship between human eye gaze time on words in source code and the Semantic Neighborhood Density (SND) of those words. Human eye gaze time is a popular way to quantify human attention such as the importance of words people read and the cognitive effort people exert. Meanwhile, SND is a measure of how similar a word is in meaning to other words in the same context. SND has a long history in Psychology research where it has been connected to eye gaze time in various domains and helps explain human cognitive factors such as confusion and quality of reading comprehension. But SND carries an unknown and potentially unique meaning in software engineering. In this paper, we compute SND for tokens in source code that people viewed in two previous eye-tracking experiments, one in C and one in Java. We conduct a model-free analysis for statistical relationships…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGaze Tracking and Assistive Technology · Personal Information Management and User Behavior · Usability and User Interface Design
