使用生物特征理解AI辅助编程性能及其感知
Using Biometrics to Understand AI-Assisted Coding Performance and its Perception
AI总结:
通过脑电图、眼动追踪等生物特征数据,发现AI辅助编程与无辅助编程在认知过程上存在显著差异,且主观感知与客观测量不一致。
摘要:
基于AI的代码助手正在改变软件开发,但我们缺乏关于它们如何影响开发者认知过程的实证证据。我们通过一项多站点研究,采用受试者内交叉设计,调查AI辅助编程的神经生理学关联。我们在两所大学(意大利巴里和丹麦哥本哈根)招募参与者,收集脑电图、眼动追踪、皮肤电活动和心率变异性数据,以及基于量规的性能评分和通过NASA任务负荷指数(NASA-TLX)测量的六个维度的自我报告工作量。我们测试了四个假设,涉及AI辅助和无辅助条件之间的生理差异、开发者经验的调节作用、生理与性能之间的关联,以及主观感知与客观测量之间的一致性。在AI辅助下,第一个任务期间脑电图θ/α比值较低,第二个任务期间注视眨眼率较高,两者都与开发者将生成性努力卸载给模型时认知参与度降低一致。这种模式在本科生和研究生之间没有差异。皮肤电活动在非AI条件下与性能相关,但在AI条件下不相关。在自我报告工作量的六个NASA-TLX维度中,只有体力需求在非AI条件下与性能相关,但在AI条件下不相关。这些发现表明,AI辅助编程不是单独编码的更快版本,而是一种认知上不同的活动,对AI助手的设计以及AI增强开发中的生物特征监测具有启示意义。
英文摘要:
AI-based code assistants are transforming software development, yet we lack empirical evidence on how they affect developers' cognitive processes. We present a multisite study investigating the neurophysiological correlates of AI-assisted programming through a within-subjects crossover design. We recruited participants at two universities (Bari, Italy, and Copenhagen, Denmark) and collected electroencephalography, eye-tracking, electrodermal activity, and heart rate variability data alongside a rubric-based performance score and self-reported workload across six dimensions using the NASA Task Load Index (NASA-TLX). We tested four hypotheses addressing physiological differences between AI-assisted and non-assisted conditions, the moderating role of developer experience, the association between physiology and performance, and the alignment between subjective perceptions and objective measures. Under AI assistance, the EEG $θ/α$ ratio was lower during the first task and the gaze blink rate was higher during the second, both consistent with reduced cognitive engagement when developers offload generative effort to the model. This pattern did not differ between undergraduate and graduate students. Electrodermal activity correlated with performance under the non-AI condition but not under AI. Among the six NASA-TLX dimensions of self-reported workload, only Physical demand was associated with performance under the non-AI condition but not under AI. These findings suggest that AI-assisted programming is not a faster version of solo coding but a cognitively distinct activity, with implications for the design of AI assistants and for biometric monitoring in AI-augmented development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。