On current limitations of online eye-tracking to study the visual processing of source code

被引:1
|
作者
Thilderkvist, Eva [1 ]
Dobslaw, Felix [1 ]
机构
[1] Mid Sweden Univ, Dept Comp & Syst Sci, Akad Gatan 1, Ostersund, Jamtland, Sweden
关键词
Eye-tracking; Code comprehension; Webcam; Online experiment; Fixation algorithm; ALGORITHMS;
D O I
10.1016/j.infsof.2024.107502
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Eye-tracking is an increasingly popular instrument to study how programmers process and comprehend source code. While most studies are conducted in controlled environments with lab-grade hardware, it would be desirable to simplify and scale participation in experiments for users sitting remotely, leveraging home equipment. Objective: This study investigates the possibility of performing eye-tracking studies remotely using open- source algorithms and consumer-grade webcams. It establishes the technology's current limitations and evaluates the quality of the data collected by it. We conclude by recommending ways forward to address the shortcomings and make remote code-reading studies in support of eye-tracking feasible in the future. Method: We gathered eye-gaze data remotely from 40 participants performing a code reading experiment on a purpose-built web application. The utilized eye-tracker worked client-side and used ridge regression to generate x- and y-coordinates in real-time predicting the participants' on-screen gaze points without the need to collect and save video footage. We processed and analysed the collected data according to common practices for isolating eye-movement events and deriving metrics used in software engineering eye-tracking studies. In response to the lack of an algorithm explicitly developed for detecting oculomotor fixation events in low- frequency webcam data, we also introduced a dispersion threshold algorithm for that purpose. The quality of the collected data was subsequently assessed to determine the adequacy and validity of the methodology for eye-tracking. Results: The collected data was found to be of varying quality despite extensive calibration and graphical user guidance. We present our results highlighting both the negative and positive observations from which the community hopefully can learn. Both accuracy and precision were low and ultimately deemed insufficient for drawing valid conclusions in a high-precision empirical study. We nonetheless contribute to identifying critical limitations to be addressed in future research. Apart from the overall challenge of vastly diverse equipment, setup, and configuration, we found two main problems with the current webcam eye-tracking technology. The first was the absence of a validated algorithm to isolate fixations in low-frequency data, compromising the assurance of the accuracy of the data derived from it. The second problem was the lack of algorithmic support for head movements when predicting gaze location. Unsupervised participants do not always keep their heads still, even if instructed to do so. Consequently, we frequently observed spatial shifts that corrupted many collected datasets. Three encouraging observations resulted from the study. Even when shifted, gaze points were consistently dispersed in patterns resembling both the shape and size of the stimuli without extreme deviations. We could also distinguish recognizable reading patterns. Linearity was significantly different when participants were reading source code compared to natural text, and we could detect the expected left-to-right and top-to-bottom reading directions for participants reading natural text snippets. Conclusion: The accuracy and precision levels were not sufficient for a word-by-word analysis of code reading but could be adequate for a broader, coarse-grained precision study. Additionally we identified two main issues compromising the collected data validity and contributed a fixation detection algorithm to approach one of these issues. With suitable solutions to the identified issues, remote eye-tracking studies with webcams on code reading could eventually be feasible.
引用
收藏
页数:17
相关论文
共 50 条
  • [1] The Online Processing of Hypothetical Events A Visual World Eye-Tracking Study on Conditionals and Causal Statements
    Zhan, Likan
    Zhou, Peng
    EXPERIMENTAL PSYCHOLOGY, 2023, 70 (02) : 108 - 117
  • [2] Effect of Timing and Source of Online Product Recommendations: An Eye-Tracking Study
    Shi, Yani
    Zeng, Qing
    Nah, Fiona Fui-Hoon
    Tan, Chuan-Hoo
    Sia, Choon Ling
    Siau, Keng
    Yan, Jiaqi
    HCI IN BUSINESS, GOVERNMENT AND ORGANIZATIONS: SUPPORTING BUSINESS (HCIBGO 2017), PT II, 2017, 10294 : 95 - 104
  • [3] Frequency, contingency and online processing of multiword sequences: An eye-tracking study
    Yi, Wei
    Lu, Shiyi
    Ma, Guojie
    SECOND LANGUAGE RESEARCH, 2017, 33 (04) : 519 - 549
  • [4] Novel metaphor processing in dyslexia: a visual world eye-tracking study
    Cersosimo, Rita
    Engelhardt, Paul E.
    Fernandez, Leigh
    Domaneschi, Filippo
    DISCOURSE PROCESSES, 2025, 62 (02) : 133 - 153
  • [5] Effects of background complexity on consumer visual processing: An eye-tracking study
    Wang, Qiuzhen
    Ma, Da
    Chen, Hanyue
    Ye, Xuhong
    Xu, Qing
    JOURNAL OF BUSINESS RESEARCH, 2020, 111 : 270 - 280
  • [6] An Eye-Tracking Study of Java']Java Programmers and Application to Source Code Summarization
    Rodeghero, Paige
    Liu, Cheng
    McBurney, Paul W.
    McMillan, Collin
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (11) : 1038 - 1054
  • [7] Improving Automated Source Code Summarization via an Eye-Tracking Study of Programmers
    Rodeghero, Paige
    McMillan, Collin
    McBurney, Paul W.
    Bosch, Nigel
    D'Mello, Sidney
    36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, : 390 - 401
  • [8] Distraction effects of contextual advertising on online news processing: an eye-tracking study
    Wojdynski, Bartosz W.
    Bang, Hyejin
    BEHAVIOUR & INFORMATION TECHNOLOGY, 2016, 35 (08) : 654 - 664
  • [9] Consumer Visual Processing of Food Labels: Results from an Eye-Tracking Study
    Ares, Gaston
    Gimenez, Ana
    Bruzzone, Fernanda
    Vidal, Leticia
    Antunez, Lucia
    Maiche, Alejandro
    JOURNAL OF SENSORY STUDIES, 2013, 28 (02) : 138 - 153
  • [10] Availability of Alternatives and the Processing of Scalar Implicatures: A Visual World Eye-Tracking Study
    Degen, Judith
    Tanenhaus, Michael K.
    COGNITIVE SCIENCE, 2016, 40 (01) : 172 - 201