Decoding the Representation of Code in the Brain: An fMRI Study of Code Review and Expertise
The DOI matches its Crossref record; 13 of the 13 references it cites were found in a registry or an index.
Abstract
Subjective judgments in software engineering tasks are of critical importance but can be difficult to study with conventional means. Medical imaging techniques hold the promise of relating cognition to physical activities and brain structures. In a controlled experiment involving 29 participants, we examine code comprehension, code review and prose review using functional magnetic resonance imaging. We find that the neural representations of programming languages vs. natural languages are distinct. We can classify which task a participant is undertaking based solely on brain activity (balanced accuracy 79%, p <; 0.001). Further, we find that the same set of brain regions distinguish between code and prose (near-perfect correlation, r = 0.99, p <; 0.001). Finally, we find that task distinctions are modulated by expertise, such that greater skill predicts a less differentiated neural representation (r = -0.44, p = 0.016) indicating that more skilled participants treat code and prose more similarly at a neural activation level.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Brain magnetic resonance imaging with contrast dependent on blood oxygenation.
Ogawa, S., Lee, T. M., Kay, A. R., & Tank, D. W. (1990) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.87.24.9868 · Cited by 6,483
Behavioral Study of obedience.
Milgram, S. (1963) · The Journal of Abnormal and Social Psychology · doi:10.1037/h0040525 · Cited by 4,918 · cited 1×
“of authority is enough to sway judgment in such cases [49].”
BackgroundCluster failure: why fMRI inferences for spatial extent have inflated false-positive rates
Eklund, A., Nichols, T. E., & Knutsson, H. (2016) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1602413113 · Cited by 3,487 · cited 1×
“based” approach to multiple comparisons correction — this method, offered by nearly all common software packages for fMRI analysis, can therefore result in false-positive rates of up to 70% [23].”
MethodDynamic reconfiguration of human brain networks during learning
Bassett, D. S., Wymbs, N. F., Porter, M. A., Mucha, P. J., Carlson, J. M., & Grafton, S. T. (2011) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1018985108 · Cited by 1,705 · cited 1×
“Medical imaging has already shown patterns of brain activation to predict learning rates [6] and memory tasks [60] in other domains.”
BackgroundTraining induces changes in white-matter architecture
Scholz, J., Klein, M. C., Behrens, T. E. J., & Johansen-Berg, H. (2009) · Nature Neuroscience · doi:10.1038/nn.2412 · Cited by 1,508 · cited 1×
“Imaging studies have been conducted on monkeys, humans playing golf [61], and even humans juggling [65], finding similar physical explanations (e.”
BackgroundLondon taxi drivers and bus drivers: A structural MRI and neuropsychological analysis
Maguire, E. A., Woollett, K., & Spiers, H. J. (2006) · Hippocampus · doi:10.1002/hipo.20233 · Cited by 918 · cited 2×
“found via fMRI that the navigation demands of being a London taxi driver stimulated brain development: drivers have largerthan-average relevant memory centers in their brains and the intensive training is responsible for that growth [46].”
BackgroundWhy don't software developers use static analysis tools to find bugs?
Johnson, B., Song, Y., Murphy-Hill, E., & Bowdidge, R. (2013) · 2013 35th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2013.6606613 · Cited by 568
On the naturalness of software
Hindle, A., Barr, E. T., Su, Z., Gabel, M., & Devanbu, P. (2012) · 2012 34th International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2012.6227135 · Cited by 425
Bennett, C., Miller, M., & Wolford, G. (2009) · NeuroImage · doi:10.1016/s1053-8119(09)71202-9 · Cited by 400
Learning a Metric for Code Readability
Buse, R. P. L., & Weimer, W. R. (2010) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2009.70 · Cited by 396 · cited 3×
“, [57] from [9]); we hope that the same will happen here.”
BackgroundSelf-citation
Cited by
(2017) · doi:10.1145/3106237.3106268 · Cited by 117
Liu, Y.-F., Kim, J., Wilson, C., & Bedny, M. (2020) · eLife · doi:10.7554/elife.59340 · Cited by 64
“processing is consistent with prior work using more complex coding tasks, such as debugging and editing (Siegmund et al., 2014, Siegmund, 2017; Huang et al., 2019; Krueger et al., 2020; Floyd et al., 2017).”
BackgroundMethodResultInfluentialPeitek, N., Bergum, A., Rekrut, M., Mucke, J., Nadig, M., Parnin, C., Siegmund, J., & Apel, S. (2022) · Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3540250.3549084 · Cited by 32
Code Review Comprehension: Reviewing Strategies Seen Through Code Comprehension Theories
Gonçalves, P. W., Rani, P., Storey, M.-A., Spinellis, D., & Bacchelli, A. (2025) · 2025 IEEE/ACM 33rd International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc66645.2025.00068 · Cited by 4
“However, code review requires deeper engagement of higher-level cognitive processes ( e.g. , decision making and analysis) than code comprehension alone due to the need to inspect the code changes for quality aspects [20].”
Metadata
- Authors
- Floyd, B., Santander, T., & Weimer, W.
- Venue
- 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE)
- Publisher
- IEEE
- Published
- 2017-05
- Pages
- 175-186
- OpenAlex
- W2616911396
- Cited by
- 125
- References
- 13
- FWCI
- 27.13
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Decoding the Representation of Code in the Brain: An fMRI Study of Code Review and Expertise. https://app.cochat.ai/papers/10.1109/icse.2017.24
- The paper
- Floyd, B., Santander, T., & Weimer, W. (2017). Decoding the Representation of Code in the Brain: An fMRI Study of Code Review and Expertise. 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE). https://doi.org/10.1109/icse.2017.24
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.