| Literature DB >> 35321263 |
Joao Castelhano1, Isabel C Duarte1, Ricardo Couceiro2, Julio Medeiros2, Joao Duraes2,3, Sónia Afonso1, Henrique Madeira2, Miguel Castelo-Branco1.
Abstract
The neural correlates of software programming skills have been the target of an increasing number of studies in the past few years. Those studies focused on error-monitoring during software code inspection. Others have studied task-related cognitive load as measured by distinct neurophysiological measures. Most studies addressed only syntax errors (shallow level of code monitoring). However, a recent functional MRI (fMRI) study suggested a pivotal role of the insula during error-monitoring when challenging deep-level analysis of code inspection was required. This raised the hypothesis that the insula is causally involved in deep error-monitoring. To confirm this hypothesis, we carried out a new fMRI study where participants performed a deep source-code comprehension task that included error-monitoring to detect bugs in the code. The generality of our paradigm was enhanced by comparison with a variety of tasks related to text reading and bugless source-code understanding. Healthy adult programmers (N = 21) participated in this 3T fMRI experiment. The activation maps evoked by error-related events confirmed significant activations in the insula [p(Bonferroni) < 0.05]. Importantly, a posterior-to-anterior causality shift was observed concerning the role of the insula: in the absence of error, causal directions were mainly bottom-up, whereas, in their presence, the strong causal top-down effects from frontal regions, in particular, the anterior cingulate cortex was observed.Entities:
Keywords: computer science; connectivity; error-monitoring; fMRI; insula
Year: 2022 PMID: 35321263 PMCID: PMC8935015 DOI: 10.3389/fnhum.2022.788272
Source DB: PubMed Journal: Front Hum Neurosci ISSN: 1662-5161 Impact factor: 3.169
FIGURE 1Task timeline. Code with and without bugs and natural text blocks were presented randomly interleaved with a fixation cross for rest. Participants were instructed to search for bugs (error-monitoring/discovery), read the story (Text; control task), and perform a code comprehension task. These stimuli had more than one page, and the participants could navigate the code/text pages with a joystick.
FIGURE 2Summary of behavioral data. Subjects’ accuracy reported as precision and sensitivity measures are reported in the left plot. Notably, subjects 5 and 6, as well as subject 11, did not report any bugs; thus, we were not able to calculate their parameters. The box plot on the right has shown the average delays from code start to the eureka moments. No significant differences were found between events. TP, true positive; FP, false positive.
FIGURE 3Brain activation map of bug detection when searching for bugs. The regions that are activated at the first insight of bug detection are shown (eureka moment of suspicion) at the group level. We found significant activation in the anterior insula replicating our previous study (Castelhano et al., 2019).
FIGURE 4Connectivity maps for the insula. The left panel represents the brain (Granger) connectivity map of regions that give input to the insula. The right panel shows the brain regions receiving input from the insula. In these maps, each color map represents each condition of the experiment. Notably, the “Code with bugs” condition recruits a larger set of areas to integrate with the insula, and these are located in more anterior regions of the brain compared to the other conditions that have more posterior connections. In sum, bug detection leads to an anterior shift of influences.