Unexpected but informative: What fixation-related potentials tell us about the processing of ambiguous program code

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher
Full text 14,007 characters · extracted from preprint-html · click to expand
Unexpected but informative: What fixation-related potentials tell us about the processing of confusing program code | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Unexpected but informative: What fixation-related potentials tell us about the processing of confusing program code Sven Apel, Annabelle Bergum, Anna-Maria Maurer, Norman Peitek, and 4 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-5545002/v2 This work is licensed under a CC BY 4.0 License Status: Posted Version 2 posted You are reading this latest preprint version Show more versions Abstract As software pervades more and more areas of our professional and personal lives, there is an ever-increasing need to maintain software, and for programmers to be able to efficiently write and understand program code. In the first study of its kind, we analyze fixation-related potentials (FRPs) to explore the online processing of program code patterns that are confusing to programmers, but not the computer (so-called atoms of confusion), and their underlying neurocognitive mechanisms in an ecologically valid setting. Relative to clean counterparts in program code without an atom of confusion, confusing code elicits a late frontal positivity of about 400 to 700 ms after first looking at the atom of confusion. This frontal positivity resembles an event-related potential (ERP) component found during natural language processing that is elicited by unexpected but plausible words in sentence context. Thus, we suggest that the brain engages similar neurocognitive mechanisms in response to unexpected and informative inputs in program code and in natural language. In both domains, these inputs update a comprehender’s situation model that is essential for information extraction from a quickly unfolding input. Our results have far-reaching implications for programming and pave the way for interdisciplinary collaborations between software engineering and psycholinguistics. Biological sciences/Psychology Physical sciences/Mathematics and computing/Computer science Scientific community and society/Social sciences/Psychology program comprehension natural language comprehension atoms of confusion EEG fixation-related potentials event-related potentials late frontal positivity Full Text Additional Declarations The authors declare no competing interests. Supplementary Files AoCFRPSupp1.pdf Cite Share Download PDF Status: Posted Version 2 posted You are reading this latest preprint version Show more versions Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-5545002","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":431512449,"identity":"a38fd26d-647f-4a3e-a76b-b9ef143da98d","order_by":0,"name":"Sven Apel","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA/UlEQVRIie3PMUsDMRTA8RcO4pL21rjUr/CKUFoo/SwnB7pEu3XpcQYOzkWcBb/MHQ/iZOdAb6h7h5vkQFCvV5A6xDo65A/hkcCPJAA+3/+MFfV+6m702yWB/27Kx0PC/0JIHO6OkvApK2iapIDrTLMmmc35yUtpYTF1ElmZiJQhwKrUgTDxJBc38RhWl+5rrEK61gWgvbh7Bx4gBzWSLCenOLPzmiY63ZH2YR+3yMPtjnw6CVoFxHTQEejlhFx2txROMqwMlveGxGlLgt7Dc0u25+NoFTvJYJ29bpokHfTt1YY1b0sMQzW09WLm/r7cD/HzNHKDb+Lz+Xw+d192OlIyb1em6AAAAABJRU5ErkJggg==","orcid":"https://orcid.org/0000-0003-3687-2233","institution":"Saarland University","correspondingAuthor":true,"prefix":"","firstName":"Sven","middleName":"","lastName":"Apel","suffix":""},{"id":431512450,"identity":"df36204f-23da-4c68-989f-0eef469a17ea","order_by":1,"name":"Annabelle Bergum","email":"","orcid":"https://orcid.org/0000-0002-9953-4904","institution":"Saarland University","correspondingAuthor":false,"prefix":"","firstName":"Annabelle","middleName":"","lastName":"Bergum","suffix":""},{"id":431512451,"identity":"018bd002-cfc0-4552-9635-498190f52aab","order_by":2,"name":"Anna-Maria Maurer","email":"","orcid":"https://orcid.org/0009-0002-0379-5534","institution":"Saarland University","correspondingAuthor":false,"prefix":"","firstName":"Anna-Maria","middleName":"","lastName":"Maurer","suffix":""},{"id":431512452,"identity":"71dc327b-2024-4140-ac1c-a696a2b5932f","order_by":3,"name":"Norman Peitek","email":"","orcid":"https://orcid.org/0000-0001-7828-4558","institution":"Saarland University","correspondingAuthor":false,"prefix":"","firstName":"Norman","middleName":"","lastName":"Peitek","suffix":""},{"id":431512453,"identity":"29561414-1623-4239-af92-76cb7d1af427","order_by":4,"name":"Regine Bader","email":"","orcid":"https://orcid.org/0000-0001-7460-1720","institution":"Universität des Saarlandes","correspondingAuthor":false,"prefix":"","firstName":"Regine","middleName":"","lastName":"Bader","suffix":""},{"id":431512454,"identity":"05c74fe8-4b2d-42af-a13e-2b34cff71fa7","order_by":5,"name":"Axel Mecklinger","email":"","orcid":"","institution":"Saarland","correspondingAuthor":false,"prefix":"","firstName":"Axel","middleName":"","lastName":"Mecklinger","suffix":""},{"id":431512455,"identity":"6931419b-0cc5-422a-8611-e1051be6d0b0","order_by":6,"name":"Vera Demberg","email":"","orcid":"https://orcid.org/0000-0002-8834-0020","institution":"Saarland University","correspondingAuthor":false,"prefix":"","firstName":"Vera","middleName":"","lastName":"Demberg","suffix":""},{"id":431512456,"identity":"813f3fae-de08-4a4d-8697-e40668613a2f","order_by":7,"name":"Janet Siegmund","email":"","orcid":"","institution":"University of Technology Chemnitz","correspondingAuthor":false,"prefix":"","firstName":"Janet","middleName":"","lastName":"Siegmund","suffix":""}],"badges":[],"createdAt":"2024-11-28 21:30:10","currentVersionCode":2,"declarations":{"humanSubjects":false,"vertebrateSubjects":false,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":false},"doi":"10.21203/rs.3.rs-5545002/v2","doiUrl":"https://doi.org/10.21203/rs.3.rs-5545002/v2","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":84096854,"identity":"4354ca5e-9ca4-4bb3-8861-a5f1eda27343","added_by":"auto","created_at":"2025-06-06 17:50:06","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1006668,"visible":true,"origin":"","legend":"","description":"","filename":"AoCFRPPaper.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5545002/v2_covered_8e1f5a3c-d17c-414f-9b79-2c670bf51853.pdf"},{"id":84096094,"identity":"86a30924-c1c4-43ef-b868-530ca2d15112","added_by":"auto","created_at":"2025-06-06 17:34:04","extension":"pdf","order_by":2,"title":"","display":"","copyAsset":false,"role":"supplement","size":1528880,"visible":true,"origin":"","legend":"","description":"","filename":"AoCFRPSupp1.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5545002/v2/5e1f8b5bbbd7ec287f5a2b3a.pdf"}],"financialInterests":"The authors declare no competing interests.","formattedTitle":"\u003cp\u003eUnexpected but informative: What fixation-related potentials tell us about the processing of confusing program code\u003c/p\u003e","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"program comprehension, natural language comprehension, atoms of confusion, EEG, fixation-related potentials, event-related potentials, late frontal positivity","lastPublishedDoi":"10.21203/rs.3.rs-5545002/v2","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-5545002/v2","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAs software pervades more and more areas of our professional and personal lives, there is an ever-increasing need to maintain software, and for programmers to be able to efficiently write and understand program code. In the first study of its kind, we analyze fixation-related potentials (FRPs) to explore the online processing of program code patterns that are confusing to programmers, but not the computer (so-called atoms of confusion), and their underlying neurocognitive mechanisms in an ecologically valid setting. Relative to clean counterparts in program code without an atom of confusion, confusing code elicits a late frontal positivity of about 400 to 700 ms after first looking at the atom of confusion. This frontal positivity resembles an event-related potential (ERP) component found during natural language processing that is elicited by unexpected but plausible words in sentence context. Thus, we suggest that the brain engages similar neurocognitive mechanisms in response to unexpected and informative inputs in program code and in natural language. In both domains, these inputs update a comprehender’s situation model that is essential for information extraction from a quickly unfolding input. Our results have far-reaching implications for programming and pave the way for interdisciplinary collaborations between software engineering and psycholinguistics.\u003c/p\u003e","manuscriptTitle":"Unexpected but informative: What fixation-related potentials tell us about the processing of confusing program code","msid":"","msnumber":"","nonDraftVersions":[{"code":2,"date":"2025-06-06 17:25:59","doi":"10.21203/rs.3.rs-5545002/v2","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}},{"code":1,"date":"2025-03-20 10:24:30","doi":"10.21203/rs.3.rs-5545002/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"cfeba08a-67c6-4f7c-9b9b-20f1a63cb75f","owner":[],"postedDate":"June 6th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[{"id":49661444,"name":"Biological sciences/Psychology"},{"id":49661445,"name":"Physical sciences/Mathematics and computing/Computer science"},{"id":49661446,"name":"Scientific community and society/Social sciences/Psychology"}],"tags":[],"updatedAt":"2025-04-02T19:58:48+00:00","versionOfRecord":[],"versionCreatedAt":"2025-06-06 17:25:59","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v2","identity":"rs-5545002","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-5545002","identity":"rs-5545002","version":["v2"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-23T02:00:01.238055+00:00
License: CC-BY-4.0