{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T11:52:04Z","timestamp":1791460324983,"version":"4.3.4"},"reference-count":83,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T00:00:00Z","timestamp":1720742400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2024,7,12]]},"abstract":"<jats:p>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\u2019s 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\u2019s 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 set 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 which 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.<\/jats:p>","DOI":"10.1145\/3660795","type":"journal-article","created":{"date-parts":[[2024,7,12]],"date-time":"2024-07-12T10:22:09Z","timestamp":1720779729000},"page":"1982-2004","source":"Crossref","is-referenced-by-count":11,"title":["Predicting Code Comprehension: A Novel Approach to Align Human Gaze with Code using Deep Neural Networks"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-5512-3549","authenticated-orcid":false,"given":"Tarek","family":"Alakmeh","sequence":"first","affiliation":[{"name":"University of Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-3524-3788","authenticated-orcid":false,"given":"David","family":"Reich","sequence":"additional","affiliation":[{"name":"University of Potsdam, Zurich, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9018-9713","authenticated-orcid":false,"given":"Lena","family":"J\u00e4ger","sequence":"additional","affiliation":[{"name":"University of Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1834-6240","authenticated-orcid":false,"given":"Thomas","family":"Fritz","sequence":"additional","affiliation":[{"name":"University of Zurich, Zurich, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2024,7,12]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2024. Supplementary Material. (2024). https:\/\/zenodo.org\/doi\/10.5281\/zenodo.11123100"},{"key":"e_1_3_1_3_2","volume-title":"Structure and Interpretation of Computer Programs","author":"Abelson Harold","year":"1996","unstructured":"Harold Abelson, Gerald Jay Sussman, and Julie Sussman. 1996. Structure and Interpretation of Computer Programs. The MIT Press, Cambridge."},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","unstructured":"Naser Al Madi Cole S. Peterson Bonita Sharif and Jonathan I. Maletic. 2021. From Novice to Expert: Analysis of Token Level Effects in a Longitudinal Eye Tracking Study. In 2021 IEEE\/ACM 29th International Conference on Program Comprehension (ICPC). 172\u2013183. https:\/\/doi.org\/10.1109\/ICPC52881.2021.00025 10.1109\/ICPC52881.2021.00025","DOI":"10.1109\/ICPC52881.2021.00025"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3448018.3457424"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ijhcs.2011.09.003"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/2987491.2987536"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.visres.2019.05.003"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.5555\/539425"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1016\/S0020-7373(83)80031-5"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICPC.2015.36"},{"key":"e_1_3_1_12_2","volume-title":"Cognitive Complexity - A new way of measuring understandability. Technical Report","author":"Ann Campbell G.","year":"2017","unstructured":"G. Ann Campbell. 2017. Cognitive Complexity - A new way of measuring understandability. Technical Report. SonarSource SA, Switzerland. https:\/\/www.sonarsource.com\/docs\/CognitiveComplexity.pdf"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1007\/s11704-020-0422-1"},{"key":"e_1_3_1_14_2","unstructured":"Fran\u00e7ois Chollet et al. 2015. Keras. https:\/\/keras.io"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/2786805.2786838"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3025453.3025573"},{"key":"e_1_3_1_17_2","unstructured":"Jeffrey Dean Rajat Monga et al. 2015. TensorFlow: Large-scale machine learning on heterogeneous systems. https:\/\/www.tensorflow.org\/"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/N19-1423"},{"key":"e_1_3_1_19_2","unstructured":"William H Dubay. 2004. The Principles of Readability. (2004)."},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1016\/0042-6989(85)90134-8"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/FIE.2018.8658592"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-019-09751-4"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","unstructured":"Janet Feigenspan Christian K\u00e4stner J\u00f6rg Liebig Sven Apel and Stefan Hanenberg. 2012. Measuring programming experience. In 2012 20th IEEE International Conference on Program Comprehension (ICPC). 73\u201382. https:\/\/doi.org\/10.1109\/ICPC.2012.6240511 10.1109\/ICPC.2012.6240511 ISSN: 1092-8138.","DOI":"10.1109\/ICPC.2012.6240511"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICPC52881.2021.00019"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.48550\/arxiv.2002.08155"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568266"},{"key":"e_1_3_1_27_2","article-title":"Eye movement velocity and gaze data generator for evaluation, robustness testing and assess of eye tracking software and visualization tools","author":"Fuhl Wolfgang","year":"2018","unstructured":"Wolfgang Fuhl and Enkelejda Kasneci. 2018. Eye movement velocity and gaze data generator for evaluation, robustness testing and assess of eye tracking software and visualization tools. arXiv preprint arXiv:1808.09296 (2018).","journal-title":"arXiv preprint arXiv:1808.09296"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.3389\/fpsyg.2022.871143"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1007\/11550907_126"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1145\/1357054"},{"key":"e_1_3_1_31_2","unstructured":"Kristoffer Gunnarsson and Olivia Herber. 2020. The Most Popular Programming Languages of GitHub\u2019s Trending Repositories. Technical Report."},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","unstructured":"Daya Guo Shuo Ren Shuai Lu Zhangyin Feng Duyu Tang Shujie Liu Long Zhou Nan Duan Alexey Svyatkovskiy Shengyu Fu Michele Tufano Shao Kun Deng Colin Clement Dawn Drain Neel Sundaresan Jian Yin Daxin Jiang and Ming Zhou. 2020. GraphCodeBERT: Pre-training Code Representations with Data Flow. (9 2020). https:\/\/doi.org\/10.48550\/arxiv.2009.08366 10.48550\/arxiv.2009.08366","DOI":"10.48550\/arxiv.2009.08366"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/1864349"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3448018.3457421"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","DOI":"10.1162\/neco.1997.9.8.1735"},{"key":"e_1_3_1_36_2","volume-title":"Eye tracking: A comprehensive guide to methods and measures","author":"Holmqvist Kenneth","year":"2011","unstructured":"Kenneth Holmqvist, Marcus Nystr\u00f6m, Richard Andersson, Richard Dewhurst, Halszka Jarodzka, and Joost Van de Weijer. 2011. Eye tracking: A comprehensive guide to methods and measures. Oxford University Press, Oxford."},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1145\/985921"},{"key":"e_1_3_1_38_2","doi-asserted-by":"publisher","DOI":"10.1109\/EMIP.2019.00012"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1037\/0033-295X.87.4.329"},{"key":"e_1_3_1_40_2","unstructured":"Michele Lacchia. 2022. Radon 4.1.0 documentation \u2014 Using radon programmatically. https:\/\/radon.readthedocs.io\/en\/latest\/api.html"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1145\/1067445"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10586-017-0746-2"},{"key":"e_1_3_1_43_2","doi-asserted-by":"publisher","unstructured":"Taek Lee Jaechang Nam DongGyun Han Sunghun Kim and Hoh Peter In. 2011. Micro Interaction Metrics for Defect Prediction. In Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of software engineering. 311\u2013321. https:\/\/doi.org\/10.1145\/2025113.2025156 10.1145\/2025113.2025156","DOI":"10.1145\/2025113.2025156"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1016\/0164-1212(79)90022-0"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1987.233475"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSM.2004.1357820"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","DOI":"10.1109\/2.402076"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1976.233837"},{"key":"e_1_3_1_49_2","volume-title":"Code complete","author":"McConnell Steve","year":"2004","unstructured":"Steve McConnell. 2004. Code complete. Pearson."},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2009.50"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1145\/2884781.2884803"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","unstructured":"Nachiappan Nagappan and Thomas Ball. 2005. Use of Relative Code Churn Measures to Predict System Defect Density. In Proceedings of the 27th international conference on Software engineering. 284\u2013292. https:\/\/doi.org\/10.1109\/ICSE.2005.1553571 10.1109\/ICSE.2005.1553571","DOI":"10.1109\/ICSE.2005.1553571"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","unstructured":"Nachiappan Nagappan Thomas Ball and Andreas Zeller. 2006. Mining Metrics to Predict Component Failures. In Proceedings of the 28th international conference on Software engineering. 452\u2013461. https:\/\/doi.org\/10.1145\/1134285.1134349 10.1145\/1134285.1134349","DOI":"10.1145\/1134285.1134349"},{"key":"e_1_3_1_54_2","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-018-9664-z"},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","unstructured":"Delano Oliveira Reydne Bruno Fernanda Madeiral and Fernando Castor. 2020. Evaluating Code Readability and Legibility: An Examination of Human-centric Studies. In IEEE International Conference on Software Maintenance and Evolution (ICSME). 348\u2013359. https:\/\/doi.org\/10.1109\/ICSME46990.2020.00041 10.1109\/ICSME46990.2020.00041","DOI":"10.1109\/ICSME46990.2020.00041"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE43902.2021.00056"},{"key":"e_1_3_1_57_2","doi-asserted-by":"publisher","unstructured":"Norman Peitek Annabelle Bergum Maurice Rekrut Jonas Mucke Matthias Nadig Chris Parnin Janet Siegmund and Sven Apel. 2022. Correlates of Programmer Efficacy and Their Link to Experience: A Combined EEG and Eye-Tracking Study. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC\/FSE 2022). 120\u2013131. https:\/\/doi.org\/10.1145\/3540250.3549084 10.1145\/3540250.3549084","DOI":"10.1145\/3540250.3549084"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.5555\/54968.54975"},{"key":"e_1_3_1_59_2","doi-asserted-by":"publisher","DOI":"10.1145\/3588015.3588410"},{"key":"e_1_3_1_60_2","doi-asserted-by":"publisher","DOI":"10.1037\/0033-2909.124.3.372"},{"key":"e_1_3_1_61_2","unstructured":"SR Research. 2023. https:\/\/www.sr-research.com\/eyelink-portable-duo\/. Retrieved Feb 1 2023."},{"key":"e_1_3_1_62_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ergon.2005.04.005"},{"key":"e_1_3_1_63_2","doi-asserted-by":"publisher","DOI":"10.1145\/2635868.2635895"},{"key":"e_1_3_1_64_2","unstructured":"Sam. 2020. What determines whether a validation is \u201cGOOD\u201d \u201cFAIR\u201d or \u201cPOOR\u201d? https:\/\/www.sr-research.com\/support\/thread-244.html"},{"key":"e_1_3_1_65_2","doi-asserted-by":"publisher","unstructured":"Lisa Schibelius Amanda Ross and Andrew Katz. 2022. An Empirical Study of Programming Languages Specified in Engineering Job Postings. In ASEE Annual Conference & Exposition. https:\/\/doi.org\/10.18260\/1-2--41235 10.18260\/1-2--41235","DOI":"10.18260\/1-2--41235"},{"key":"e_1_3_1_66_2","doi-asserted-by":"publisher","DOI":"10.3758\/s13414-011-0219-2"},{"key":"e_1_3_1_67_2","doi-asserted-by":"publisher","DOI":"10.1109\/78.650093"},{"key":"e_1_3_1_68_2","doi-asserted-by":"publisher","unstructured":"Todd Sedano. 2016. Code Readability Testing an Empirical Study. In 2016 IEEE 29th International Conference on Software Engineering Education and Training (CSEET). 111\u2013117. https:\/\/doi.org\/10.1109\/CSEET.2016.36 10.1109\/CSEET.2016.36 ISSN: 2377-570X.","DOI":"10.1109\/CSEET.2016.36"},{"key":"e_1_3_1_69_2","doi-asserted-by":"publisher","DOI":"10.1145\/2168556"},{"key":"e_1_3_1_70_2","doi-asserted-by":"publisher","DOI":"10.1007\/BF00977789"},{"key":"e_1_3_1_71_2","first-page":"129","volume-title":"The nature of expertise","author":"Soloway Elliot","year":"1988","unstructured":"Elliot Soloway, Beth Adelson, and Kate Ehrlich. 1988. Knowledge and processes in the comprehension of computer programs. In The nature of expertise. Lawrence Erlbaum Associates, Inc, Hillsdale, NJ, US, 129\u2013152."},{"key":"e_1_3_1_72_2","doi-asserted-by":"publisher","unstructured":"Xinying Song Alex Salcianu Yang Song Dave Dopson and Denny Zhou. 2021. Fast WordPiece Tokenization. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics Online and Punta Cana Dominican Republic 2089\u20132103. https:\/\/doi.org\/10.18653\/v1\/2021.emnlp-main.160 10.18653\/v1\/2021.emnlp-main.160","DOI":"10.18653\/v1\/2021.emnlp-main.160"},{"key":"e_1_3_1_73_2","unstructured":"SR Research Ltd. 2016. EyeLink \u00ae Portable Duo User Manual EyeLink \u00ae SR Research."},{"key":"e_1_3_1_74_2","unstructured":"SR Research Ltd. 2020. SR Research Experiment Builder."},{"key":"e_1_3_1_75_2","unstructured":"TIOBE Software BV. 2022. TIOBE Index - TIOBE. https:\/\/www.tiobe.com\/tiobe-index\/"},{"key":"e_1_3_1_76_2","doi-asserted-by":"publisher","DOI":"10.1145\/2578153.2578218"},{"key":"e_1_3_1_77_2","doi-asserted-by":"publisher","DOI":"10.1145\/1117309"},{"key":"e_1_3_1_78_2","volume-title":"Likert-Type Scale Response Anchors Level of Agreement. Technical Report","author":"Vagias Wade M","year":"2006","unstructured":"Wade M Vagias. 2006. Likert-Type Scale Response Anchors Level of Agreement. Technical Report. Clemson International Institute for Tourism & Research Development, Department of Parks, Recreation and Tourism Management. Clemson University."},{"key":"e_1_3_1_79_2","volume-title":"Eye movements: A window on mind and brain","author":"van Gompel Roger P. G.","year":"2007","unstructured":"Roger P. G. van Gompel, Martin H. Fischer, Wayne S. Murray, and Robin L. Hill (Eds.). 2007. Eye movements: A window on mind and brain. Elsevier."},{"key":"e_1_3_1_80_2","unstructured":"Talita Vieira Ribeiro and Guilherme Travassos. 2017. Who is Right? Evaluating Empirical Contradictions in the Readability and Comprehensibility of Source Code. Technical Report."},{"key":"e_1_3_1_81_2","doi-asserted-by":"publisher","DOI":"10.5555\/1151869.1151901"},{"key":"e_1_3_1_82_2","doi-asserted-by":"publisher","DOI":"10.1145\/3626522"},{"key":"e_1_3_1_83_2","doi-asserted-by":"publisher","DOI":"10.1145\/3610177"},{"key":"e_1_3_1_84_2","doi-asserted-by":"publisher","unstructured":"Hongyu Zhang Xiuzhen Zhang and Ming Gu. 2007. Predicting Defective Software Components from Code Complexity Measures. In 13th Pacific Rim International Symposium on Dependable Computing (PRDC 2007). 93\u201396. https:\/\/doi.org\/10.1109\/PRDC.2007.28 10.1109\/PRDC.2007.28","DOI":"10.1109\/PRDC.2007.28"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3660795","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3660795","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,4]],"date-time":"2026-02-04T07:54:01Z","timestamp":1770191641000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3660795"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,7,12]]},"references-count":83,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2024,7,12]]}},"alternative-id":["10.1145\/3660795"],"URL":"https:\/\/doi.org\/10.1145\/3660795","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,7,12]]}}}