neurological divide an fmri study of prose and code
play

Neurological Divide: An fMRI Study of Prose and Code Writing Ryan - PowerPoint PPT Presentation

Neurological Divide: An fMRI Study of Prose and Code Writing Ryan Krueger 1 , Yu Huang 1 , Xinyu Liu 2 , Tyler Santander 3 , Westley Weimer 1 , Kevin Leach 1 1 University of Michigan 2 Georgia Institute of Technology 3 University of California,


  1. Neurological Divide: An fMRI Study of Prose and Code Writing Ryan Krueger 1 , Yu Huang 1 , Xinyu Liu 2 , Tyler Santander 3 , Westley Weimer 1 , Kevin Leach 1 1 University of Michigan 2 Georgia Institute of Technology 3 University of California, Santa Barbara July 10, 2020

  2. Thank You to the Collaborators! Dr. Tyler Santander Dr. Kevin Leach Dr. Westley Weimer Ryan Krueger Xinyu Liu Yu Huang is going on the Job Market this year! yhhy@umich.edu Yu Huang @ ICSE2020 2

  3. Motivation Dijkstra might be right. However, readers may take it in a different way and become really concerned… Yu Huang @ ICSE2020 3

  4. Motivation Yu Huang @ ICSE2020 4

  5. Motivation Suggested Answer: Yu Huang @ ICSE2020 5

  6. Motivation ● Objectively understanding the subjective cognitive process ● Medical imaging: fMRI Yu Huang @ ICSE2020 6

  7. Motivation ● Objectively understanding the subjective cognitive process ● Medical imaging: fMRI JCogSci’10 NeuroImg’06 NeuroImg’16 Neurology’01 READING NeuroImg’12 NeuroImg’15 PROSE Yu Huang @ ICSE2020 7

  8. Motivation ● Objectively understanding the subjective cognitive process ● Medical imaging: fMRI JCogSci’10 NeuroImg’06 FSE’17 BrainImg’18 NeuroImg’16 Neurology’01 ICSE’14 ICPC’18 READING NeuroImg’12 NeuroImg’15 ISSRE’16 ICSE’17 PROSE CODE Yu Huang @ ICSE2020 8

  9. Motivation ● Objectively understanding the subjective cognitive process ● Medical imaging: fMRI JCogSci’10 NeuroImg’06 FSE’17 BrainImg’18 NeuroImg’16 Neurology’01 ICSE’14 ICPC’18 READING NeuroImg’12 NeuroImg’15 ISSRE’16 ICSE’17 PROSE CODE LangLearn’1989 JWR’2008 WRITING TESOL’1992 NeuroImg’2006 WrComm’2000 HBM’2013 CogBrR’2001 Yu Huang @ ICSE2020 9

  10. Motivation ● Objectively understanding the subjective cognitive process ● Medical imaging: fMRI JCogSci’10 NeuroImg’06 FSE’17 BrainImg’18 NeuroImg’16 Neurology’01 ICSE’14 ICPC’18 READING NeuroImg’12 NeuroImg’15 ISSRE’16 ICSE’17 PROSE CODE LangLearn’1989 JWR’2008 WRITING TESOL’1992 NeuroImg’2006 WrComm’2000 HBM’2013 CogBrR’2001 Yu Huang @ ICSE2020 10

  11. High-level Question ● Are code writing and prose writing similar neural activities? Is being good at writing associated with being a good software developer? Yu Huang @ ICSE2020 11

  12. Outline ● Motivation ● High-level question ● Challenges ● Experimental design ● Results ● Conclusions Yu Huang @ ICSE2020 12

  13. Challenges ● Physics ● Magnetic interference Yu Huang @ ICSE2020 13

  14. Challenges ● Physics ● Magnetic interference ● Solution ○ Employ an fMRI-safe bespoke keyboard Yu Huang @ ICSE2020 14

  15. Challenges ● Physics ● Magnetic interference ● Solution ○ Employ an fMRI-safe bespoke keyboard Yu Huang @ ICSE2020 15

  16. Challenges ● Physics ● Design ● Contrast setup ● Solution: ○ Two-by-two contrast task design Yu Huang @ ICSE2020 16

  17. Experimental Design ● Two-by-two contrast task design ○ Code writing vs. Prose writing ○ Fill in the blank (FITB) vs. Long response (LR) Yu Huang @ ICSE2020 17

  18. Experimental Design Two-by-two contrast task design ● FITB CODE PROSE LR Yu Huang @ ICSE2020 18

  19. Experimental Design Two-by-two contrast task design ● FITB Low-level CODE PROSE LR Yu Huang @ ICSE2020 19

  20. Experimental Design Two-by-two contrast task design ● FITB Low-level CODE PROSE LR High-level Yu Huang @ ICSE2020 20

  21. Experimental Design Two-by-two contrast task design ● FITB Low-level CODE PROSE LR High-level Yu Huang @ ICSE2020 21

  22. Experimental Design ● Two-by-two contrast task design ○ Code writing vs. Prose writing ○ Fill in the blank (FITB) vs. Long response (LR) ● Source ○ Code : Turing’s Craft Yu Huang @ ICSE2020 22

  23. Experimental Design ● Two-by-two contrast task design ○ Code writing vs. Prose writing ○ Fill in the blank (FITB) vs. Long response (LR) ● Source ○ Code : Turing’s Craft ○ Prose : Scholastic Assessment Test (SAT) Yu Huang @ ICSE2020 23

  24. Results Recruitment ● ○ 30 participants ● 20 male vs. 10 female ● 27 undergraduate vs. 3 graduate ● Tasks ○ Four randomized blocks ● Code FITB: 17 ● Code LR: 9 ● Prose FITB: 17 ● Prose LR: 9 Yu Huang @ ICSE2020 24

  25. Results Data analysis: we need to be careful ● ○ Spurious correlation or false discovery from multiple comparisons Yu Huang @ ICSE2020 25

  26. Results Data analysis: we need to be careful ● ○ Spurious correlation or false discovery from multiple comparisons ○ Three steps Yu Huang @ ICSE2020 26

  27. Results Data analysis: we need to be careful ● ○ Spurious correlation or false discovery from multiple comparisons ○ Three steps Preprocessing Yu Huang @ ICSE2020 27

  28. Results Data analysis: we need to be careful ● ○ Spurious correlation or false discovery from multiple comparisons ○ Three steps First-level Preprocessing Analysis Yu Huang @ ICSE2020 28

  29. Results Data analysis: we need to be careful ● ○ Spurious correlation or false discovery from multiple comparisons ○ Three steps Contrast & First-level Preprocessing Group-level Analysis analysis Yu Huang @ ICSE2020 29

  30. Results ● RQ1: Do self reports claim code writing is like prose writing? ● RQ2: Does the brain treat code writing like prose writing? ● RQ3: What low-level features explain code and prose writing? ● RQ4: What high-level features explain code and prose writing? Yu Huang @ ICSE2020 30

  31. Results RQ1: Do self reports claim code writing is like prose ● writing? ○ 38.5% reported similarity between prose and code writing Yu Huang @ ICSE2020 31

  32. Results RQ2: Does the brain treat code writing like prose writing? ● Yu Huang @ ICSE2020 32

  33. Results RQ2: Does the brain treat code writing like prose writing? ● ○ Significant and widely-distributed difference in neural activity ● More than 10 brain regions (Broadmann Areas) Code > Prose Yu Huang @ ICSE2020 33

  34. Results ● RQ3: What low-level features explain code and prose writing? ● RQ4: What high-level features explain code and prose writing? Yu Huang @ ICSE2020 34

  35. Results ● RQ3: What low-level features explain code and prose writing? ○ Low-level: code writing requires more in parts of the brain associated with top-down control, planning, and categorization ● RQ4: What high-level features explain code and prose writing? Code FITB > Prose FITB Yu Huang @ ICSE2020 35

  36. Results ● RQ3: What low-level features explain code and prose writing? ○ Low-level: code writing requires more in parts of the brain associated with top-down control, planning, and categorization ● RQ4: What high-level features explain code and prose writing? ○ High-level: prose writing requires more in parts of the brain associated with language; code writing involves more in attention, memory, planing, and spatial ability. Code FITB > Prose FITB Code LR > Prose LR Yu Huang @ ICSE2020 36

  37. Summary ● First fMRI study of code writing ● Bespoke fMRI-safe QWERTY keyboard ● Controlled, contrast-based experiment ● Main result : All analysis of all code writing tasks against prose writing tasks showed distinct neural mechanisms ● At a more granular level: ● Code FITB > Prose FITB: top-down control, planning, categorization ● Code LR > Prose LR: code involves more of the right hemisphere (spatial ability, planning) prose involves more canonical left hemisphere (language production) ● Discussion ● Pedagogy; Workforce retraining; Encouraging more diverse participation in computer science Yu Huang @ ICSE2020 37

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend