一句话:用 fNIRS 研究新手编程、阅读与心理旋转的脑活动,发现三者神经上可区分,且编程更依赖空间与难度相关脑区。
理解新手如何从神经层面进行编程推理,对软件工程教育具有重要意义。已有神经影像研究多关注高年级本科生与专业开发者,而本文关注入门编程。研究招募31名参与者,使用功能性近红外光谱,在对照实验中比较编程、自然语言阅读与心理旋转(空间可视化任务)时的脑活动。主要结果是,对新手而言,这三类任务在心理与神经层面上均可区分;但阅读与编程之间的差异比心理旋转与编程之间的差异更显著。与更专家化的开发者研究相比,新手编程通常在与空间能力和任务难度相关的脑区出现更强激活。探索性分析还发现,一种神经激活模式可预测11周后的编程表现。这些初步发现扩展了既有结果,并为新手编程背后的认知过程提供了新理解。
Understanding how novices reason about coding at a neurological level has implications for training the next generation of software engineers. In recent years, medical imaging has been increasingly employed to investigate patterns of neural activity associated with coding activity. However, such studies have focused on advanced undergraduates and professionals. In a human study of 31 participants, we use functional near-infrared spectroscopy to measure the neural activity associated with introductory programming. In a controlled, contrast-based experiment, we relate brain activity when coding to that of reading natural language or mentally rotating objects (a spatial visualization task). Our primary result is that all three tasks—coding, prose reading, and mental rotation—are mentally distinct for novices. However, while those tasks are neurally distinct, we find more significant differences between prose and coding than between mental rotation and coding. Intriguingly, we generally find more activation in areas of the brain associated with spatial ability and task difficulty for novice coding compared to that reported in studies with more expert developers. Finally, in an exploratory analysis, we also find a neural activation pattern predictive of programming performance 11 weeks later. While preliminary, these findings both expand on previous results (e.g., relating expertise to a similarity between coding and prose reading) and also provide a new understanding of the cognitive processes underlying novice programming.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{EndresKHKW21,
title = {Relating Reading, Visualization, and Coding for New Programmers: A Neuroimaging Study},
author = {Madeline Endres and Zachary Karas and Xiaosu Hu and Ioulia Kovelman and Westley Weimer},
booktitle = {ICSE},
year = {2021},
doi = {10.1109/icse43902.2021.00062}
}