https://news.mit.edu/2020/brain-reading-computer-code-1215 Skip to content | Massachusetts Institute of Technology MIT Top Menu| * Education * Research * Innovation * Admissions + Aid * Campus Life * News * Alumni * About MIT * More | Search MIT Search websites, locations, and people [ ] See More Results Suggestions or feedback? MIT News | Massachusetts Institute of Technology Subscribe to MIT News newsletter Browse Enter keywords to search for news articles: [ ] Submit Browse By Topics View All - Explore: * Machine learning * Social justice * Startups * Black holes * Classes and programs Departments View All - Explore: * Aeronautics and Astronautics * Brain and Cognitive Sciences * Architecture * Political Science * Mechanical Engineering Centers, Labs, & Programs View All - Explore: * Abdul Latif Jameel Poverty Action Lab (J-PAL) * Picower Institute for Learning and Memory * Media Lab * Lincoln Laboratory Schools * School of Architecture + Planning * School of Engineering * School of Humanities, Arts, and Social Sciences * Sloan School of Management * School of Science * MIT Schwarzman College of Computing View all news coverage of MIT in the media - Listen to audio content from MIT News - Subscribe to MIT newsletter - Close Breadcrumb 1. MIT News 2. To the brain, reading computer code is not the same as reading language To the brain, reading computer code is not the same as reading language Neuroscientists find that interpreting code activates a general-purpose brain network, but not language-processing centers. Anne Trafton | MIT News Office Publication Date: December 15, 2020 Press Inquiries Press Contact: Abby Abazorius Email: abbya@mit.edu Phone: 617-253-2709 MIT News Office Media Download coding brain | Download Image Caption: New research suggests that reading computer code does not rely on the regions of the brain that are involved in language processing. Credits: Image: Jose-Luis Olivares, MIT *Terms of Use: Images for download on the MIT News office website are made available to non-commercial entities, press and the general public under a Creative Commons Attribution Non-Commercial No Derivatives license. You may not alter the images provided, other than to crop them to size. A credit line must be used when reproducing images; if one is not provided below, credit the images to "MIT." Close coding brain Caption: New research suggests that reading computer code does not rely on the regions of the brain that are involved in language processing. Credits: Image: Jose-Luis Olivares, MIT Previous image Next image In some ways, learning to program a computer is similar to learning a new language. It requires learning new symbols and terms, which must be organized correctly to instruct the computer what to do. The computer code must also be clear enough that other programmers can read and understand it. In spite of those similarities, MIT neuroscientists have found that reading computer code does not activate the regions of the brain that are involved in language processing. Instead, it activates a distributed network called the multiple demand network, which is also recruited for complex cognitive tasks such as solving math problems or crossword puzzles. However, although reading computer code activates the multiple demand network, it appears to rely more on different parts of the network than math or logic problems do, suggesting that coding does not precisely replicate the cognitive demands of mathematics either. "Understanding computer code seems to be its own thing. It's not the same as language, and it's not the same as math and logic," says Anna Ivanova, an MIT graduate student and the lead author of the study. Evelina Fedorenko, the Frederick A. and Carole J. Middleton Career Development Associate Professor of Neuroscience and a member of the McGovern Institute for Brain Research, is the senior author of the paper, which appears today in eLife. Researchers from MIT's Computer Science and Artificial Intelligence Laboratory and Tufts University were also involved in the study. Language and cognition A major focus of Fedorenko's research is the relationship between language and other cognitive functions. In particular, she has been studying the question of whether other functions rely on the brain's language network, which includes Broca's area and other regions in the left hemisphere of the brain. In previous work, her lab has shown that music and math do not appear to activate this language network. "Here, we were interested in exploring the relationship between language and computer programming, partially because computer programming is such a new invention that we know that there couldn't be any hardwired mechanisms that make us good programmers," Ivanova says. There are two schools of thought regarding how the brain learns to code, she says. One holds that in order to be good at programming, you must be good at math. The other suggests that because of the parallels between coding and language, language skills might be more relevant. To shed light on this issue, the researchers set out to study whether brain activity patterns while reading computer code would overlap with language-related brain activity. The two programming languages that the researchers focused on in this study are known for their readability -- Python and ScratchJr, a visual programming language designed for children age 5 and older. The subjects in the study were all young adults proficient in the language they were being tested on. While the programmers lay in a functional magnetic resonance (fMRI) scanner, the researchers showed them snippets of code and asked them to predict what action the code would produce. The researchers saw little to no response to code in the language regions of the brain. Instead, they found that the coding task mainly activated the so-called multiple demand network. This network, whose activity is spread throughout the frontal and parietal lobes of the brain, is typically recruited for tasks that require holding many pieces of information in mind at once, and is responsible for our ability to perform a wide variety of mental tasks. "It does pretty much anything that's cognitively challenging, that makes you think hard," Ivanova says. Previous studies have shown that math and logic problems seem to rely mainly on the multiple demand regions in the left hemisphere, while tasks that involve spatial navigation activate the right hemisphere more than the left. Working with Marina Bers, a professor of child study and human development at Tufts University, the MIT team found that reading computer code appears to activate both the left and right sides of the multiple demand network, and ScratchJr activated the right side slightly more than the left. Effects of experience The researchers say that while they didn't identify any regions that appear to be exclusively devoted to programming, such specialized brain activity might develop in people who have much more coding experience. "It's possible that if you take people who are professional programmers, who have spent 30 or 40 years coding in a particular language, you may start seeing some specialization, or some crystallization of parts of the multiple demand system," Fedorenko says. "In people who are familiar with coding and can efficiently do these tasks, but have had relatively limited experience, it just doesn't seem like you see any specialization yet." In a companion paper appearing in the same issue of eLife, a team of researchers from Johns Hopkins University also reported that solving code problems activates the multiple demand network rather than the language regions. The findings suggest there isn't a definitive answer to whether coding should be taught as a math-based skill or a language-based skill. In part, that's because learning to program may draw on both language and multiple demand systems, even if -- once learned -- programming doesn't rely on the language regions, the researchers say. "There have been claims from both camps -- it has to be together with math, it has to be together with language," Ivanova says. "But it looks like computer science educators will have to develop their own approaches for teaching code most effectively." The research was funded by the National Science Foundation, the Department of the Brain and Cognitive Sciences at MIT, and the McGovern Institute for Brain Research. Share this news article on: * X * Facebook * LinkedIn * Reddit * Print Paper Paper: "Comprehension of computer code relies primarily on domain-general executive brain regions" Related Links * Evelina Fedorenko * Anna Ivanova * Una-May O'Reilly * Shashank Srikant * McGovern Institute for Brain Research * Department of Brain and Cognitive Sciences * School of Science Related Topics * Research * Brain and cognitive sciences * Learning * McGovern Institute * National Science Foundation (NSF) * Linguistics * Neuroscience * STEM education * Computer science and technology * Technology and society * Computer Science and Artificial Intelligence Laboratory (CSAIL) * School of Science * MIT Schwarzman College of Computing Related Articles [placeholder--frontpage--featured-news] Brain's language center has multiple roles The researchers use an innovative method to analyze fMRI data subject by subject, allowing them to discern individual patterns of brain activity. Localizing language in the brain A PirahAPS man participates in an experiment that MIT researchers say indicates his language contains no number words. MIT-led team finds language without numbers Previous item Next item More MIT News A little girl lies on a couch under a blanket while a woman holds a thermometer to the girl's mouth. Understanding why autism symptoms sometimes improve amid fever With support from The Marcus Foundation, an MIT neuroscientist and a Harvard Medical School immunologist will study the "fever effect" in an effort to devise therapies that mimic its beneficial effects. Read full story - Three rows of five portrait photos School of Engineering welcomes new faculty Fifteen new faculty members join six of the school's academic departments. Read full story - Pawan Sinha looks at a wall of about 50 square photos. The photos are pictures of children with vision loss who have been helped by Project Prakash. Study explains why the brain can robustly recognize images, even without color The findings also reveal why identifying objects in black-and-white images is more difficult for individuals who were born blind and had their sight restored. Read full story - Illustration shows a red, stylized computer chip and circuit board with flames and lava around it. Turning up the heat on next-generation semiconductors Research sheds light on the properties of novel materials that could be used in electronics operating in extremely hot environments. Read full story - Sarah Milholland stands in front of an MIT building on a sunny day spring day. Leaves on the trees behind her are just beginning to emerge. Sarah Millholland receives 2024 Vera Rubin Early Career Award American Astronomical Society's Division on Dynamical Astronomy honors the assistant professor and MIT Kavli member for contributions to the dynamics of multi-planet extrasolar systems. Read full story - Grayscale photo of Nolen Scruggs seated on a field of grass A community collaboration for progress Graduate student Nolen Scruggs works with a local tenant association to address housing inequality as part of the MIT Initiative on Combatting Systemic Racism. Read full story - * More news on MIT News homepage - More about MIT News at Massachusetts Institute of Technology This website is managed by the MIT News Office, part of the Institute Office of Communications. News by Schools/College: * School of Architecture and Planning * School of Engineering * School of Humanities, Arts, and Social Sciences * MIT Sloan School of Management * School of Science * MIT Schwarzman College of Computing Resources: * About the MIT News Office * MIT News Press Center * Terms of Use * Press Inquiries * Filming Guidelines * RSS Feeds Tools: * Subscribe to MIT Daily/Weekly * Subscribe to press releases * Submit campus news * Guidelines for campus news contributors * Guidelines on generative AI Massachusetts Institute of Technology MIT Top Level Links: * Education * Research * Innovation * Admissions + Aid * Campus Life * News * Alumni * About MIT * Join us in building a better world. Massachusetts Institute of Technology 77 Massachusetts Avenue, Cambridge, MA, USA Recommended Links: * Visit * Map (opens in new window) * Events (opens in new window) * People (opens in new window) * Careers (opens in new window) * Contact * Privacy * Accessibility * + Social Media Hub + MIT on X + MIT on Facebook + MIT on YouTube + MIT on Instagram