Detecting and comparing brain activity in short program comprehension using EEG

Martin K.C. Yeh, Dan Gopstein, Yu Yan, Yanyan Zhuang

Research output: Chapter in Book/Report/Conference proceedingConference contribution

1 Citation (Scopus)

Abstract

Program comprehension is a common task in software development. Programmers perform program comprehension at different stages of the software development life cycle. Detecting when a programmer experiences problems or confusion can be difficult. Self-reported data may be useful, but not reliable. More importantly, it is hard to use the self-reported feedback in real time. In this study, we use an inexpensive, non-invasive EEG device to record 8 subjects' brain activity in short program comprehension. Subjects were presented either confusing or non-confusing C/C++ code snippets. Paired sample t-tests are used to compare the average magnitude in alpha and theta frequency bands. The results show that the differences in the average magnitude in both bands are significant comparing confusing and non-confusing questions. We then use ANOVA to detect whether such difference also presented in the same type of questions. We found that there is no significant difference across questions of the same difficulty level. Our outcome, however, shows alpha and theta band powers both increased when subjects are under the heavy cognitive workload. Other research studies reported a negative correlation between (upper) alpha and theta band powers.

Original languageEnglish (US)
Title of host publicationFIE 2017 - Frontiers in Education, Conference Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1-5
Number of pages5
ISBN (Electronic)9781509059195
DOIs
StatePublished - Dec 12 2017
Event47th IEEE Frontiers in Education Conference, FIE 2017 - Indianapolis, United States
Duration: Oct 18 2017Oct 21 2017

Publication series

NameProceedings - Frontiers in Education Conference, FIE
Volume2017-October
ISSN (Print)1539-4565

Other

Other47th IEEE Frontiers in Education Conference, FIE 2017
CountryUnited States
CityIndianapolis
Period10/18/1710/21/17

Fingerprint

Electroencephalography
Software engineering
Brain
brain
comprehension
software development
Analysis of variance (ANOVA)
Frequency bands
Life cycle
Feedback
life cycle
workload
experience

All Science Journal Classification (ASJC) codes

  • Software
  • Education
  • Computer Science Applications

Cite this

Yeh, M. K. C., Gopstein, D., Yan, Y., & Zhuang, Y. (2017). Detecting and comparing brain activity in short program comprehension using EEG. In FIE 2017 - Frontiers in Education, Conference Proceedings (pp. 1-5). (Proceedings - Frontiers in Education Conference, FIE; Vol. 2017-October). Institute of Electrical and Electronics Engineers Inc.. https://doi.org/10.1109/FIE.2017.8190486
Yeh, Martin K.C. ; Gopstein, Dan ; Yan, Yu ; Zhuang, Yanyan. / Detecting and comparing brain activity in short program comprehension using EEG. FIE 2017 - Frontiers in Education, Conference Proceedings. Institute of Electrical and Electronics Engineers Inc., 2017. pp. 1-5 (Proceedings - Frontiers in Education Conference, FIE).
@inproceedings{e2c0d7b3848249e3868a769c22c9267f,
title = "Detecting and comparing brain activity in short program comprehension using EEG",
abstract = "Program comprehension is a common task in software development. Programmers perform program comprehension at different stages of the software development life cycle. Detecting when a programmer experiences problems or confusion can be difficult. Self-reported data may be useful, but not reliable. More importantly, it is hard to use the self-reported feedback in real time. In this study, we use an inexpensive, non-invasive EEG device to record 8 subjects' brain activity in short program comprehension. Subjects were presented either confusing or non-confusing C/C++ code snippets. Paired sample t-tests are used to compare the average magnitude in alpha and theta frequency bands. The results show that the differences in the average magnitude in both bands are significant comparing confusing and non-confusing questions. We then use ANOVA to detect whether such difference also presented in the same type of questions. We found that there is no significant difference across questions of the same difficulty level. Our outcome, however, shows alpha and theta band powers both increased when subjects are under the heavy cognitive workload. Other research studies reported a negative correlation between (upper) alpha and theta band powers.",
author = "Yeh, {Martin K.C.} and Dan Gopstein and Yu Yan and Yanyan Zhuang",
year = "2017",
month = "12",
day = "12",
doi = "10.1109/FIE.2017.8190486",
language = "English (US)",
series = "Proceedings - Frontiers in Education Conference, FIE",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "1--5",
booktitle = "FIE 2017 - Frontiers in Education, Conference Proceedings",
address = "United States",

}

Yeh, MKC, Gopstein, D, Yan, Y & Zhuang, Y 2017, Detecting and comparing brain activity in short program comprehension using EEG. in FIE 2017 - Frontiers in Education, Conference Proceedings. Proceedings - Frontiers in Education Conference, FIE, vol. 2017-October, Institute of Electrical and Electronics Engineers Inc., pp. 1-5, 47th IEEE Frontiers in Education Conference, FIE 2017, Indianapolis, United States, 10/18/17. https://doi.org/10.1109/FIE.2017.8190486

Detecting and comparing brain activity in short program comprehension using EEG. / Yeh, Martin K.C.; Gopstein, Dan; Yan, Yu; Zhuang, Yanyan.

FIE 2017 - Frontiers in Education, Conference Proceedings. Institute of Electrical and Electronics Engineers Inc., 2017. p. 1-5 (Proceedings - Frontiers in Education Conference, FIE; Vol. 2017-October).

Research output: Chapter in Book/Report/Conference proceedingConference contribution

TY - GEN

T1 - Detecting and comparing brain activity in short program comprehension using EEG

AU - Yeh, Martin K.C.

AU - Gopstein, Dan

AU - Yan, Yu

AU - Zhuang, Yanyan

PY - 2017/12/12

Y1 - 2017/12/12

N2 - Program comprehension is a common task in software development. Programmers perform program comprehension at different stages of the software development life cycle. Detecting when a programmer experiences problems or confusion can be difficult. Self-reported data may be useful, but not reliable. More importantly, it is hard to use the self-reported feedback in real time. In this study, we use an inexpensive, non-invasive EEG device to record 8 subjects' brain activity in short program comprehension. Subjects were presented either confusing or non-confusing C/C++ code snippets. Paired sample t-tests are used to compare the average magnitude in alpha and theta frequency bands. The results show that the differences in the average magnitude in both bands are significant comparing confusing and non-confusing questions. We then use ANOVA to detect whether such difference also presented in the same type of questions. We found that there is no significant difference across questions of the same difficulty level. Our outcome, however, shows alpha and theta band powers both increased when subjects are under the heavy cognitive workload. Other research studies reported a negative correlation between (upper) alpha and theta band powers.

AB - Program comprehension is a common task in software development. Programmers perform program comprehension at different stages of the software development life cycle. Detecting when a programmer experiences problems or confusion can be difficult. Self-reported data may be useful, but not reliable. More importantly, it is hard to use the self-reported feedback in real time. In this study, we use an inexpensive, non-invasive EEG device to record 8 subjects' brain activity in short program comprehension. Subjects were presented either confusing or non-confusing C/C++ code snippets. Paired sample t-tests are used to compare the average magnitude in alpha and theta frequency bands. The results show that the differences in the average magnitude in both bands are significant comparing confusing and non-confusing questions. We then use ANOVA to detect whether such difference also presented in the same type of questions. We found that there is no significant difference across questions of the same difficulty level. Our outcome, however, shows alpha and theta band powers both increased when subjects are under the heavy cognitive workload. Other research studies reported a negative correlation between (upper) alpha and theta band powers.

UR - http://www.scopus.com/inward/record.url?scp=85043250576&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=85043250576&partnerID=8YFLogxK

U2 - 10.1109/FIE.2017.8190486

DO - 10.1109/FIE.2017.8190486

M3 - Conference contribution

AN - SCOPUS:85043250576

T3 - Proceedings - Frontiers in Education Conference, FIE

SP - 1

EP - 5

BT - FIE 2017 - Frontiers in Education, Conference Proceedings

PB - Institute of Electrical and Electronics Engineers Inc.

ER -

Yeh MKC, Gopstein D, Yan Y, Zhuang Y. Detecting and comparing brain activity in short program comprehension using EEG. In FIE 2017 - Frontiers in Education, Conference Proceedings. Institute of Electrical and Electronics Engineers Inc. 2017. p. 1-5. (Proceedings - Frontiers in Education Conference, FIE). https://doi.org/10.1109/FIE.2017.8190486