Software code complexity assessment using EEG features

Annu Int Conf IEEE Eng Med Biol Soc. 2019 Jul:2019:1413-1416. doi: 10.1109/EMBC.2019.8856283.

Abstract

This paper provides a study using Electroencephalography (EEG) to investigate the brain activity during code comprehension tasks. Three different code complexity levels according to five complexity metrics were considered. The use of EEG for this purpose is relevant, since the existing studies were mostly focused on neuroimaging techniques. Using Leave-One-Subject-Out cross-validation procedure for 30 subjects, it was found that the features related with the Gamma activity were the most common in all the folds. Regarding the brain regions, right parietal was the most frequent region contributing with more features. A Linear Discriminant Analysis Classifier for task classification, obtained a F-Measure of 92.71% for Code complexity easy, 52.25% for Code complexity intermediate and 53.13% for Code complexity advanced, revealing an evidence of mental effort saturation with the code complexity degree. This suggests that current code complexity metrics do not capture cognitive load and might not be the best approach to assess bug risk.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Brain*
  • Comprehension
  • Electroencephalography*
  • Neuroimaging
  • Software*