EEG as a potential ground truth for the assessment of cognitive state in software development activities: A multimodal imaging study

PLoS One. 2024 Mar 7;19(3):e0299108. doi: 10.1371/journal.pone.0299108. eCollection 2024.

Abstract

Cognitive human error and recent cognitive taxonomy on human error causes of software defects support the intuitive idea that, for instance, mental overload, attention slips, and working memory overload are important human causes for software bugs. In this paper, we approach the EEG as a reliable surrogate to MRI-based reference of the programmer's cognitive state to be used in situations where heavy imaging techniques are infeasible. The idea is to use EEG biomarkers to validate other less intrusive physiological measures, that can be easily recorded by wearable devices and useful in the assessment of the developer's cognitive state during software development tasks. Herein, our EEG study, with the support of fMRI, presents an extensive and systematic analysis by inspecting metrics and extracting relevant information about the most robust features, best EEG channels and the best hemodynamic time delay in the context of software development tasks. From the EEG-fMRI similarity analysis performed, we found significant correlations between a subset of EEG features and the Insula region of the brain, which has been reported as a region highly related to high cognitive tasks, such as software development tasks. We concluded that despite a clear inter-subject variability of the best EEG features and hemodynamic time delay used, the most robust and predominant EEG features, across all the subjects, are related to the Hjorth parameter Activity and Total Power features, from the EEG channels F4, FC4 and C4, and considering in most of the cases a hemodynamic time delay of 4 seconds used on the hemodynamic response function. These findings should be taken into account in future EEG-fMRI studies in the context of software debugging.

MeSH terms

  • Brain* / physiology
  • Cognition
  • Electroencephalography* / methods
  • Humans
  • Magnetic Resonance Imaging / methods
  • Multimodal Imaging
  • Software

Grants and funding

J.M. gratefully acknowledges the Portuguese funding institution FCT (Foundation for Science and Technology) for supporting this research work under the Ph.D. grant 2020.07906.BD. The authors also acknowledge the Portuguese funding institution FCT (Foundation for Science and Technology) for supporting this research work under the project BASE (POCI - 01-0145 - FEDER- 031581). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.