arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.10099cs.SE
收藏

与注视相关的电位揭示了令人困惑的程序代码会引发晚期前额正向波

Fixation-related potentials reveal that confusing program code elicits a late frontal positivity

Saarland University(萨尔兰大学);University of Technology Chemnitz(开姆尼茨工业大学)

Annabelle Bergum, Anna-Maria Maurer, Norman Peitek, Regine Bader, Axel Mecklinger, Vera Demberg, Janet Siegmund, Sven Apel

AI总结:

研究通过分析与注视相关的电位揭示程序代码中令人困惑的部分会引发晚期前额正向波,表明大脑在处理程序代码和自然语言中的意外信息时使用相似的神经机制。

摘要:

随着软件渗透到我们专业和个人生活的越来越多领域,维护软件和程序员高效编写和理解程序代码的需求日益增加。在首次此类研究中,我们分析与注视相关的电位(FRPs),以探讨程序员难以理解的程序代码模式(而非计算机理解)的在线处理及其潜在的神经认知机制,这在生态效度的环境中进行。与没有困惑元素的干净程序代码相比,困惑代码在首次注视困惑元素后约400至700毫秒内会引发晚期前额正向波。这种前额正向波类似于在自然语言处理中发现的事件相关电位(ERP)成分,该成分由上下文中的意外但合理的词引发。因此,我们建议大脑在响应程序代码和自然语言中的意外且信息丰富的输入时,会使用相似的神经认知机制。在两个领域中,这些输入更新了理解者的状况模型,这对于从快速展开的输入中提取信息至关重要。我们的研究结果对编程具有深远影响,并为软件工程与心理语言学之间的跨学科合作铺平了道路。

英文摘要:

As software pervades more and more areas of our professional and personal lives, there is an ever-increasing need to maintain software and for programmers to efficiently write and understand program code. In the first study of its kind, we analyze fixation-related potentials (FRPs) to explore the online processing of program code patterns that are confusing to programmers, but not to the computer (so-called atoms of confusion), and their underlying neurocognitive mechanisms in an ecologically valid setting. Relative to clean counterparts in program code without an atom of confusion, confusing code elicits a late frontal positivity of about 400 to 700 ms after first looking at the atom of confusion. This frontal positivity resembles an event-related potential (ERP) component found during natural language processing that is elicited by unexpected but plausible words in sentence context. Thus, we suggest that the brain engages similar neurocognitive mechanisms in response to unexpected and informative inputs in program code and in natural language. In both domains, these inputs update a comprehender's situation model, which is essential for information extraction from a quickly unfolding input. Our results have far-reaching implications for programming and pave the way for interdisciplinary collaborations between software engineering and psycholinguistics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑