Navigation auf zora.uzh.ch

Search ZORA

ZORA (Zurich Open Repository and Archive)

Predicting code comprehension: a novel approach to align human gaze with code using deep neural networks

Alakmeh, Tarek; Reich, David; Jäger, Lena; Fritz, Thomas (2024). Predicting code comprehension: a novel approach to align human gaze with code using deep neural networks. In: ACM International Conference on the Foundations of Software Engineering, Porto de Galinhas, Brazil, 17 July 2024 - 19 July 2024, 1982-2004.

Abstract

The better the code quality and the less complex the code, the easier it is for software developers to comprehend and evolve it. Yet, how do we best detect quality concerns in the code? Existing measures to assess code quality, such as McCabe’s cyclomatic complexity, are decades old and neglect the human aspect. Research has shown that considering how a developer reads and experiences the code can be an indicator of its quality. In our research, we built on these insights and designed, trained, and evaluated the first deep neural network that aligns a developer’s eye gaze with the code tokens the developer looks at to predict code comprehension and perceived difficulty. To train and analyze our approach, we performed an experiment in which 27 participants worked on a range of 16 short code comprehension tasks while we collected fine-grained gaze data using an eye tracker. The results of our evaluation show that our deep neural sequence model that integrates both the human gaze and the stimulus code, can predict (a) code comprehension and (b) the perceived code difficulty significantly better than current state-of-the-art reference methods. We also show that aligning human gaze with code leads to better performance than models that rely solely on either code or human gaze. We discuss potential applications and propose future work to build better human-inclusive code evaluation systems.

Additional indexing

Item Type:Conference or Workshop Item (Paper), refereed, original work
Communities & Collections:03 Faculty of Economics > Department of Informatics
Dewey Decimal Classification:000 Computer science, knowledge & systems
Scope:Discipline-based scholarship (basic research)
Language:English
Event End Date:19 July 2024
Deposited On:21 Jun 2024 06:20
Last Modified:13 Jul 2024 01:05
Number:FSE
OA Status:Green
Publisher DOI:https://doi.org/10.1145/3660795
Download PDF  'Predicting code comprehension: a novel approach to align human gaze with code using deep neural networks'.
Preview
  • Content: Accepted Version
  • Language: English
  • Licence: Creative Commons: Attribution 4.0 International (CC BY 4.0)

Metadata Export

Statistics

Citations

Dimensions.ai Metrics

Altmetrics

Downloads

87 downloads since deposited on 21 Jun 2024
87 downloads since 12 months
Detailed statistics

Authors, Affiliations, Collaborations

Similar Publications