WAP: understanding the brain at software debugging
Abstract
We propose that understanding functional patterns of activity in mapped brain regions associated with code comprehension tasks and, more specifically, to the activity of finding bugs in traditional code inspections could reveal useful insights to improve software reliability and to improve the software development process in general. This includes helping to select the best professionals for the debugging effort, improving the conditions for code inspections, and identify new directions to follow for training code reviewers. This paper presents an interdisciplinary study to analyze the brain activity during code inspection tasks using functional magnetic resonance imaging (fMRI), which is a well-established tool in cognitive neuroscience research. We used several programs where realistic bugs representing the most frequent types of software faults found in the field were injected. The code inspectors involved in the research include programmers with different levels of expertise and experience in real code reviews. The goal is to understand brain activity patterns associated with code comprehension tasks and, more specifically, the brain activity when the code reviewer identifies a bug in the code ('eureka' moment), which can be a true positive or a false positive. Our results confirmed that brain areas associated with language processing and mathematics are highly active during code reviewing and shows that there are specific brain activity patterns that can be related to the decision-making moment of suspicion/bug detection. Importantly, the activity at the anterior insula region that we find to play a relevant role in the process of identifying software bugs is positively correlated to the precision of bug detection by the inspectors. This finding provides a new perspective on the role of this region on error awareness and monitoring and of its potential predictive value in predicting the quality of bug removing.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Only a handful of previous studies have looked at the neural basis of code processing.
“Only a handful of previous studies have looked at the neural basis of code processing (Duraes et al., 2016; Floyd et al., 2017; Ikutani and Uwano, 2014; Peitek et al., 2018; Siegmund et al., 2014; Huang et al., 2019).”
From Computer code comprehension shares neural resources with formal logical inference in the fronto-parietal network (2020) · cites this paper as Duraes et al., 2016
Cites
Orthogonal defect classification-a concept for in-process measurements
Chillarege, R., Bhandari, I. S., Chaar, J. K., Halliday, M. J., Moebus, D. S., Ray, B. K., & Wong, M.-Y. (1992) · IEEE Transactions on Software Engineering · doi:10.1109/32.177364 · Cited by 792 · see citing works
Sullivan, M., & Chillarege, R. (2002) · IEEE International Symposium on Fault-Tolerant Computing · doi:10.1109/ftcs.1991.146625 · Cited by 346 · see citing works
Emulation of Software Faults: A Field Data Study and a Practical Approach
Duraes, J. A., & Madeira, H. (2006) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2006.113 · Cited by 279 · see citing works
Self-citationUnderstanding understanding source code with functional magnetic resonance imaging
Siegmund, J., Kästner, C., Apel, S., Parnin, C., Bethmann, A., Leich, T., Saake, G., & Brechmann, A. (2014) · Proceedings of the 36th International Conference on Software Engineering · doi:10.1145/2568225.2568252 · Cited by 219 · see citing works
Generation of an error set that emulates software faults based on field data
Christmansson, J., & Chillarege, R. (2002) · IEEE International Symposium on Fault-Tolerant Computing · doi:10.1109/ftcs.1996.534615 · Cited by 141 · see citing works
Droutman, V., Bechara, A., & Read, S. J. (2015) · Frontiers in Behavioral Neuroscience · doi:10.3389/fnbeh.2015.00309 · Cited by 131 · see citing works
Bastin, J., Deman, P., David, O., Gueguen, M., Benis, D., Minotti, L., Hoffman, D., Combrisson, E., Kujala, J., Perrone-Bertolotti, M., et al. (2016) · Cerebral Cortex · doi:10.1093/cercor/bhv352 · Cited by 127 · see citing works
A History of Software Inspections
Fagan, M. E. (2002) · Springer eBooks · doi:10.1007/978-3-642-59412-0_34 · Cited by 38 · see citing works
To Perceive or Not Perceive: The Role of Gamma-band Activity in Signaling Object Percepts
Castelhano, J., Rebola, J., Leitão, B., Rodríguez, E., & Castelo-Branco, M. S. (2013) · PLoS ONE · doi:10.1371/journal.pone.0066363 · Cited by 36 · see citing works
Self-citationFunctional parcellation of the operculo-insular cortex in perceptual decision making: An fMRI study
Rebola, J., Castelhano, J., Ferreira, C., & Castelo-Branco, M. S. (2012) · Neuropsychologia · doi:10.1016/j.neuropsychologia.2012.06.020 · Cited by 32 · see citing works
Self-citationAchieving CMMI Level 5 Improvements with MBASE and the CeBASE Method
BOEHM, B. W., Port, D. N., Jain, A., & Basili, V. R. (2002) · Cited by 22 · see citing works
An Empirical Study of Software Interface Faults
Perry, D. E., & Evangelist, W. M. (1985) · Cited by 18 · see citing works
Buckle, J. K. (1982) · doi:10.1007/978-1-349-16819-4_7 · Cited by 17 · see citing works
Empirical Analysis for High Quality Software Development
Honda, N., & Yamada, S. (2012) · American Journal of Operations Research · doi:10.4236/ajor.2012.21004 · Cited by 9 · see citing works
Flagged first, then by citations
1 of the 15 references couldn’t be matched to a known paper.
Cited by
Sorted by citations
(2017) · doi:10.1145/3106237.3106268 · Cited by 117 · see citing works
Program Comprehension and Code Complexity Metrics: An fMRI Study
Peitek, N., Apel, S., Parnin, C., Brechmann, A., & Siegmund, J. (2021) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse43902.2021.00056 · Cited by 84 · see citing works
A Look into Programmers’ Heads
Peitek, N., Siegmund, J., Apel, S., Kästner, C., Parnin, C., Bethmann, A., Leich, T., Saake, G., & Brechmann, A. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2863303 · Cited by 82 · see citing works
Weber, B., Fischer, T., & Riedl, R. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.110946 · Cited by 78 · see citing works
A systematic literature review and taxonomy of modern code review
Davila, N., & Nunes, I. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.110951 · Cited by 72 · see citing works
Liu, Y.-F., Kim, J., Wilson, C., & Bedny, M. (2020) · eLife · doi:10.7554/elife.59340 · Cited by 64 · see citing works
Simultaneous measurement of program comprehension with fMRI and eye tracking
Peitek, N., Siegmund, J., Parnin, C., Apel, S., Hofmeister, J. C., & Brechmann, A. (2018) · Proceedings of the ... ACM-IEEE International Symposium on Empirical Software Engineering and Measurement/International Symposium on Empirical Software Engineering and Measurement · doi:10.1145/3239235.3240495 · Cited by 47 · see citing works
Fakhoury, S., Roy, D., Ma, Y., Arnaoudova, V., & Adesope, O. (2019) · Empirical Software Engineering · doi:10.1007/s10664-019-09751-4 · Cited by 45 · see citing works
Krueger, R., Huang, Y., Liu, X., Santander, T., Weimer, W. R., & Leach, K. (2020) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3377811.3380348 · Cited by 40 · see citing works
Huang, Y., Leach, K., Sharafi, Z., McKay, N., Santander, T., & Weimer, W. R. (2020) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3368089.3409681 · Cited by 38 · see citing works
Distilling Neural Representations of Data Structure Manipulation using fMRI and fNIRS
Huang, Y., Liu, X., Krueger, R., Santander, T., Hu, X., Leach, K., & Weimer, W. R. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00053 · Cited by 37 · see citing works
Quality Evaluation of Modern Code Reviews Through Intelligent Biometric Program Comprehension
Hijazi, H., Duraes, J. A., Couceiro, R., Castelhano, J., Barbosa, R., Medeiros, J., Castelo-Branco, M. S., Carvalho, P., & Madeira, H. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2022.3158543 · Cited by 31 · see citing works
Self-citationTowards a Model of Testers' Cognitive Processes: Software Testing as a Problem Solving Approach
Enoiu, E. P., Tukseferi, G., & FELDT, R. H. (2020) · IEEE International Conference on Software Quality, Reliability and Security Companion (QRS-C) · doi:10.1109/qrs-c51114.2020.00053 · Cited by 27 · see citing works
Biofeedback Augmented Software Engineering: Monitoring of Programmers' Mental Effort
Couceiro, R., Duarte, G., Duraes, J. A., Castelhano, J., Duarte, I. C., Teixeira, C., Castelo-Branco, M. S., Carvalho, P., & Madeira, H. (2019) · IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) · doi:10.1109/icse-nier.2019.00018 · Cited by 27 · see citing works
Self-citationPeitek, N., Siegmund, J., Parnin, C., Apel, S., & Brechmann, A. (2018) · doi:10.1145/3216723.3216725 · Cited by 21 · see citing works
Relating Reading, Visualization, and Coding for New Programmers: A Neuroimaging Study
Endres, M., Karas, Z., Hu, X., Kovelman, I., & Weimer, W. R. (2021) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse43902.2021.00062 · Cited by 18 · see citing works
Studying programming in the neuroage
Siegmund, J., Peitek, N., Brechmann, A., Parnin, C., & Apel, S. (2020) · Communications of the ACM · doi:10.1145/3347093 · Cited by 16 · see citing works
EEG Activities During Program Comprehension: An Exploration of Cognition
Lin, Y., Liao, Y.-Z., Hu, X., & Wu, C.-C. (2021) · IEEE Access · doi:10.1109/access.2021.3107795 · Cited by 14 · see citing works
Using biometric data in software engineering: a systematic mapping study
Menzen, J. P., Farias, K., & Bischoff, V. (2020) · Behaviour and Information Technology · doi:10.1080/0144929x.2020.1734086 · Cited by 14 · see citing works
Software test results exploration and visualization with continuous integration and nightly testing
Strandberg, P. E., Afzal, W., & Sundmark, D. (2022) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-022-00647-1 · Cited by 14 · see citing works
Stangl, F. J., & Riedl, R. (2024) · Lecture notes in information systems and organisation · doi:10.1007/978-3-031-58396-4_11 · Cited by 13 · see citing works
Karas, Z., Jahn, A., Weimer, W. R., & Huang, Y. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468579 · Cited by 11 · see citing works
Reading and Calculation Neural Systems and Their Weighted Adaptive Use for Programming Skills
Castelhano, J., Duarte, I. C., Durães, J., Madeira, H., & Castelo-Branco, M. (2021) · Journal of Neural Transplantation and Plasticity · doi:10.1155/2021/5596145 · Cited by 8 · see citing works
Self-citationAdvancing modern code review effectiveness through human error mechanisms
Huang, F., & Madeira, H. (2024) · Journal of Systems and Software · doi:10.1016/j.jss.2024.112060 · Cited by 8 · see citing works
Self-citationBrain Imaging Methods in the Research Field of Interruption Science: An Analysis of Applied Methods
Stangl, F. J., & Riedl, R. (2025) · Lecture notes in information systems and organisation · doi:10.1007/978-3-031-71385-9_7 · Cited by 8 · see citing works
Neuroeducation and Computer Programming: A Review
Γιαννοπούλου, Π., Papalaskari, M.-A., & Doukakis, S. (2020) · Advances in experimental medicine and biology · doi:10.1007/978-3-030-32622-7_5 · Cited by 7 · see citing works
Vieira, R. D., & Farias, K. (2020) · Anais do Simpósio Brasileiro de Sistemas de Informação (SBSI) · doi:10.1145/3411564.3411580 · Cited by 7 · see citing works
A neuro-cognitive perspective of program comprehension
Peitek, N. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3183440.3183442 · Cited by 7 · see citing works
Do Programmers Prefer Predictable Expressions in Code?
Casalnuovo, C., Lee, K., Wang, H., Dévanbu, P., & Morgan, E. (2020) · Cognitive Science · doi:10.1111/cogs.12921 · Cited by 8 · see citing works
Towards a Cognitive Model of Dynamic Debugging: Does Identifier Construction Matter?
Hu, D., Santiesteban, P., Endres, M., & Weimer, W. R. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3465222 · Cited by 6 · see citing works
Hormone Measurements in the Research Field of Interruption Science: Review of Applied Methods
Stangl, F. J., & Riedl, R. (2025) · Lecture notes in information systems and organisation · doi:10.1007/978-3-031-71385-9_8 · Cited by 6 · see citing works
Stangl, F. J., & Riedl, R. (2025) · Lecture notes in information systems and organisation · doi:10.1007/978-3-031-71385-9_6 · Cited by 6 · see citing works
An amalgamation of cognitive aspects in software engineering: A content analysis
Kaur, K., Mishra, A., & Chopra, P. (2023) · Expert Systems with Applications · doi:10.1016/j.eswa.2023.122968 · Cited by 5 · see citing works
Vieira, R. D., & Farias, K. (2020) · Brazilian Symposium on Software Engineering · doi:10.1145/3422392.3422453 · Cited by 5 · see citing works
Mastering Variation in Human Studies
Siegmund, J., Peitek, N., Apel, S., & Siegmund, N. (2020) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3406544 · Cited by 5 · see citing works
A systematic literature review and taxonomy of modern code review
Davila, N., & Ingrid, N. (2021) · doi:10.26226/morressier.613b5419842293c031b5b639 · Cited by 4 · see citing works
Causal Relationships and Programming Outcomes: A Transcranial Magnetic Stimulation Experiment
Ahmad, H., Endres, M., Newman, K., Santiesteban, P., Shedden, E., & Weimer, W. R. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639096 · Cited by 3 · see citing works
A Systematic Literature Review on Measuring Brain Activity While Reviewing Code and Paintings
Dlamini, G., Huraira, A., Kholmatova, Z., Mikriukov, A., Safiullina, G., Succi, G., & Tormasov, A. G. (2025) · IEEE Access · doi:10.1109/access.2025.3562001 · Cited by 2 · see citing works
A Systematic Literature Review of Studies Related to Mental Activities of Software Developers
Sirazitdinov, I., Succi, G., & Ivanov, V. V. (2020) · International Conference Nonlinearity, Information and Robotics (NIR) · doi:10.1109/nir50484.2020.9290239 · Cited by 2 · see citing works
Robledo-Castro, C., Castillo, L., & Martínez, C. H. (2022) · SSRN Electronic Journal · doi:10.2139/ssrn.4095691 · Cited by 2 · see citing works
Theory of Troubleshooting: The Developer’s Cognitive Experience of Overcoming Confusion
Starr, A., & Storey, M. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3800945 · Cited by 1 · see citing works
The investigation of human attention networks on debugging performance
Akçay, A., & Altun, A. (2023) · Education and Information Technologies · doi:10.1007/s10639-023-11955-7 · Cited by 1 · see citing works
Students Perceptions of Authentic Learning for Learning Information Flow Analysis
Rahman, A., Wu, F., & Shahriar, H. (2024) · IEEE Frontiers in Education Conference (FIE) · doi:10.1109/fie61694.2024.10893298 · Cited by 1 · see citing works
Repairing brain-computer interfaces with fault-based data acquisition
Winston, C., Winston, C., Winston, C. N., Winston, C., Winston, C., Rao, R. P. N., & Just, R. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3512764
Akçay, A., & Altun, A. (2023) · Gazi Üniversitesi Gazi Eğitim Fakültesi Dergisi · doi:10.17152/gefad.1199096
Hubungan antara Kemampuan Matematika dengan Keterampilan Pemrograman
Zulkipli, Z. (2023) · Jurnal Bangkit Indonesia · doi:10.52771/bangkitindonesia.v12i2.251
How to learn computer versus human languages: A scoping review of behavioral and neural evidence
Huang, X., Yang, W., Looi, C., Lin, D., Tong, X., Zheng, Q., & Zhao, Y. (2026) · Cognitive Development · doi:10.1016/j.cogdev.2026.101736
- Authors
- Duraes, J., Madeira, H., Castelhano, J., Duarte, C., & Branco, M. C.
- Affiliations
- Universidade Politécnica de Coimbra (PT)
- University of Coimbra (PT)
- Venue
- 2016 IEEE 27th International Symposium on Software Reliability Engineering (ISSRE)
- Publisher
- IEEE
- Published
- 2016-10
- Pages
- 87-92
- ISSN
- 1071-9458 (ISSN-L)
- OpenAlex
- W2560572048
- Cited by
- 47
- References
- 15
- Citations by year
- 2026: 2 · 2025: 4 · 2024: 5 · 2023: 4 · 2022: 4 · 2021: 8 · 2020: 12 · 2019: 3 · 2018: 4 · 2017: 1
- FWCI
- 2.27
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- Proceedings/Proceedings - International Symposium on Software Reliability Engineering (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Life Sciences › Neuroscience › Cognitive Neuroscience › Neuroscience, Education and Cognitive Function
- Keywords
- software debugging, code review, program comprehension, brain activity, anterior insula, bug detection, eureka moments, software reliability, programmer expertise, error awareness, language processing, decision-making, functional MRI
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