Skip to main content

Lund University Publications

LUND UNIVERSITY LIBRARIES

Building Gaze-aware Programming Environments

Kuang, Peng LU orcid (2026)
Abstract
Programming is a cognitively demanding exercise. Artificial Intelligence (AI) as a disruptive technology is redefining the practice of programming and transforming software engineering. As AI is evolving to a multimodal version that accommo- dates not only texts but also speech, images, and more, we see an opportunity to design eye-tracking based assistance to support programmers. Since AI has taken the heavy lifting of producing code, we speculate that programmers will read and understand a larger amount of code and thereby spend more of their time read- ing it. We deem this a promising problem domain where eye-tracking can be of assistance.
To explore this inquiry, we undertook two mapping studies to establish the problem and... (More)
Programming is a cognitively demanding exercise. Artificial Intelligence (AI) as a disruptive technology is redefining the practice of programming and transforming software engineering. As AI is evolving to a multimodal version that accommo- dates not only texts but also speech, images, and more, we see an opportunity to design eye-tracking based assistance to support programmers. Since AI has taken the heavy lifting of producing code, we speculate that programmers will read and understand a larger amount of code and thereby spend more of their time read- ing it. We deem this a promising problem domain where eye-tracking can be of assistance.
To explore this inquiry, we undertook two mapping studies to establish the problem and solution constructs. We then surveyed 68 professional developers to understand this representative cohort and gather concrete, situated problems from them. After that, we co-developed multiple versions of design artifacts with a variety of groups of programmers. Finally, we employed a mixed-methods approach, including a pre-experiment survey, a controlled experiment, and post-experiment interviews with 40 novice programmers, to evaluate the proof-of-concept GazePrinter.
From the first study, we found that eye-tracking so far is used mostly for education-oriented studies in the research community focused on software devel- opment. There is a need to bring it closer to practitioners. From the second study, we identify that the gaze data produced by eye trackers has been explored with a collection of machine learning techniques. However, these models were trained with small samples that might carry bias and insufficiency. Contemporary ma- chine learning techniques may be able to compensate for that. From the survey, we learned that developers have already adopted AI assistance, and they are mostly positive about it despite room for greater accuracy and capability. As eye-tracking is relatively novel to them, most developers are unsure about how it can help them. From the design study, we realized that programmers are intrigued by gaze-based assistance in a programming environment. Lastly, from the evaluation study, we found that our designed intervention, GazePrinter, can nudge novice programmers to read code in a manner that more closely aligns with experts.
For future work, we invite research exploring adaptive, gaze-driven assistance and interactions in AI native environments for different programmers. (Less)
Please use this url to cite or link to this publication:
author
supervisor
opponent
  • Assoc. Prof. Begel, Andrew, Carnegie Mellon University, USA.
organization
publishing date
type
Thesis
publication status
published
subject
keywords
software engineering, computer programming, programming systems, developer tools, eye tracking (ET), gaze, human-computer interaction (HCI, software development
pages
198 pages
publisher
Computer Science, Lund University
defense location
Lecture Hall E:1406, building E, Klas Anshelms väg 10, Faculty of Engineering LTH, Lund University, Lund.
defense date
2026-05-13 13:00:00
ISBN
978-91-8104-877-3
978-91-8104-876-6
project
How Can Eye Tracking Support Programmers?
Adaptive Developer Tools
language
English
LU publication?
yes
id
1eb06550-5be7-4c06-860b-00abe6ae0d0b
date added to LUP
2026-04-14 16:32:31
date last changed
2026-04-29 03:22:57
@phdthesis{1eb06550-5be7-4c06-860b-00abe6ae0d0b,
  abstract     = {{Programming is a cognitively demanding exercise. Artificial Intelligence (AI) as a disruptive technology is redefining the practice of programming and transforming software engineering. As AI is evolving to a multimodal version that accommo- dates not only texts but also speech, images, and more, we see an opportunity to design eye-tracking based assistance to support programmers. Since AI has taken the heavy lifting of producing code, we speculate that programmers will read and understand a larger amount of code and thereby spend more of their time read- ing it. We deem this a promising problem domain where eye-tracking can be of assistance.<br/>To explore this inquiry, we undertook two mapping studies to establish the problem and solution constructs. We then surveyed 68 professional developers to understand this representative cohort and gather concrete, situated problems from them. After that, we co-developed multiple versions of design artifacts with a variety of groups of programmers. Finally, we employed a mixed-methods approach, including a pre-experiment survey, a controlled experiment, and post-experiment interviews with 40 novice programmers, to evaluate the proof-of-concept GazePrinter.<br/>From the first study, we found that eye-tracking so far is used mostly for education-oriented studies in the research community focused on software devel- opment. There is a need to bring it closer to practitioners. From the second study, we identify that the gaze data produced by eye trackers has been explored with a collection of machine learning techniques. However, these models were trained with small samples that might carry bias and insufficiency. Contemporary ma- chine learning techniques may be able to compensate for that. From the survey, we learned that developers have already adopted AI assistance, and they are mostly positive about it despite room for greater accuracy and capability. As eye-tracking is relatively novel to them, most developers are unsure about how it can help them. From the design study, we realized that programmers are intrigued by gaze-based assistance in a programming environment. Lastly, from the evaluation study, we found that our designed intervention, GazePrinter, can nudge novice programmers to read code in a manner that more closely aligns with experts.<br/>For future work, we invite research exploring adaptive, gaze-driven assistance and interactions in AI native environments for different programmers.}},
  author       = {{Kuang, Peng}},
  isbn         = {{978-91-8104-877-3}},
  keywords     = {{software engineering; computer programming; programming systems; developer tools; eye tracking (ET); gaze; human-computer interaction (HCI; software development}},
  language     = {{eng}},
  month        = {{04}},
  publisher    = {{Computer Science, Lund University}},
  school       = {{Lund University}},
  title        = {{Building Gaze-aware Programming Environments}},
  url          = {{https://lup.lub.lu.se/search/files/248394971/Kuang_doctoral_dissertation_v1.31.pdf}},
  year         = {{2026}},
}