Towards automating fixation correction for source code

Christopher Palmer and Bonita Sharif

Abstract

During eye-tracking studies there is a possibility for the actual fixation to shift a little when recorded. The cause of this shift could be due to various reasons such as the accuracy of the calibration or drift. Researchers usually correct fixations manually. Manual corrections are error prone especially if done on large samples for extended periods. There is also no guarantee that two corrections done by different people on the same data set will be consistent with each other. In order to solve this problem, we introduce an attempt at automatically correcting fixations that uses a variable offset for groups of fixations. Our focus is on source code, which is read differently than natural language requiring an algorithm that adapts to these differences. We introduce a Hill Climbing algorithm that shifts fixations to a best-fit location based on a scoring function. In order to evaluate the algorithm's effectiveness, we compare the automatically corrected fixations against a set of manually corrected ones, giving us an accuracy of 89%. These findings are discussed with additional ways to improve the algorithm.

Venue
ETRA 2016
Volume
Proceedings of the Ninth Biennial ACM Symposium on Eye Tracking Research & Applications
DOI
10.1145/2857491.2857544
PDF
https://dl.acm.org/doi/pdf/10.1145/2857491.2857544
Anthology ID
2016.etra.53

Cite

@inproceedings{palmer-sharif-2016-automating,
    title = {{Towards automating fixation correction for source code}},
    author = {Christopher Palmer and Bonita Sharif},
    booktitle = {Proceedings of the Ninth Biennial ACM Symposium on Eye Tracking Research \& Applications},
    isbn = {9781450341257},
    year = {2016},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/2857491.2857544},
    url = {https://doi.org/10.1145/2857491.2857544},
    abstract = {During eye-tracking studies there is a possibility for the actual fixation to shift a little when recorded. The cause of this shift could be due to various reasons such as the accuracy of the calibration or drift. Researchers usually correct fixations manually. Manual corrections are error prone especially if done on large samples for extended periods. There is also no guarantee that two corrections done by different people on the same data set will be consistent with each other. In order to solve this problem, we introduce an attempt at automatically correcting fixations that uses a variable offset for groups of fixations. Our focus is on source code, which is read differently than natural language requiring an algorithm that adapts to these differences. We introduce a Hill Climbing algorithm that shifts fixations to a best-fit location based on a scoring function. In order to evaluate the algorithm's effectiveness, we compare the automatically corrected fixations against a set of manually corrected ones, giving us an accuracy of 89\%. These findings are discussed with additional ways to improve the algorithm.}
}