Program Comprehension Does Not Primarily Rely On the Language Centers of the Human Brain

04/11/2023
by   Shashank Srikant, et al.
0

Our goal is to identify brain regions involved in comprehending computer programs. We use functional magnetic resonance imaging (fMRI) to investigate two candidate systems of brain regions which may support this – the Multiple Demand (MD) system, known to respond to a range of cognitively demanding tasks, and the Language system (LS), known to primarily respond to language stimuli. We devise experiment conditions to isolate the act of code comprehension, and employ a state-of-the-art method to locate brain systems of interest. We administer these experiments in Python (24 participants) and Scratch Jr. (19 participants) - which provides a visual interface to programming, thus eliminating the effect of text in code comprehension. From this robust experiment setup, we find that the Language system is not consistently involved in code comprehension, while the MD is. Further, we find no other brain regions beyond those in the MD to be responsive to code. We also find that variable names, the control flow used in the program, and the types of operations performed do not affect brain responses. We discuss the implications of our findings on the software engineering and CS education communities.

READ FULL TEXT
research
06/06/2023

Identifying Shared Decodable Concepts in the Human Brain Using Image-Language Foundation Models

We introduce a method that takes advantage of high-quality pretrained mu...
research
03/16/2021

Visualizing Outliers in High Dimensional Functional Data for Task fMRI data exploration

Task-based functional magnetic resonance imaging (task fMRI) is a non-in...
research
03/25/2022

Anchoring Code Understandability Evaluations Through Task Descriptions

In code comprehension experiments, participants are usually told at the ...
research
01/15/2021

The Role of Working Memory in Program Tracing

Program tracing, or mentally simulating a program on concrete inputs, is...
research
03/08/2019

A Replication Study on Code Comprehension and Expertise using Lightweight Biometric Sensors

Code comprehension has been recently investigated from physiological and...
research
05/19/2017

Deep adversarial neural decoding

Here, we present a novel approach to solve the problem of reconstructing...
research
04/04/2019

Robust Evaluation of Language-Brain Encoding Experiments

Language-brain encoding experiments evaluate the ability of language mod...

Please sign up or login with your details

Forgot password? Click here to reset