Software Engineer Codes During Awake Brain Surgery at Barcelona Hospital

Medical reporting highlighted a breakthrough at the Hospital de Bellvitge in Barcelona, where a 41-year-old software engineer solved computer programming exercises on a laptop during his brain surgery, according to BioBioChile – La Red de Prensa Más Grande de Chile.

  • Surgeons at the Hospital de Bellvitge kept the patient awake to remove an astrocytoma grade 2 brain tumor.
  • The software engineer answered 126 coding exercises during cortical mapping, successfully getting 104 right.
  • Investigators from the Center for Computer Vision and IDIBELL designed the custom intraoperative programming test.

Awake Brain Surgery

Operating on a conscious patient to protect motor or speech functions is not entirely new, but this case required a specialized protocol. Because the tumor sat near language-associated regions, the medical team needed to safeguard the patient’s ability to communicate in Spanish, Catalan, and English, alongside his professional coding skills.

Standard object-naming tests often miss abstract reasoning, working memory, and step-by-step logic. To bridge this gap, researchers developed a custom test published in the scientific journal Human Brain Mapping, according to Elpais.

Before the operation, functional magnetic resonance imaging monitored the patient’s brain activity while he worked through programming tasks. During the procedure, neurosurgeons stimulated his brain with electricity while two neuropsychologists presented code snippets. The patient indicated correct outputs by pressing buttons in each hand. Each electrical stimulus lasted about three seconds, requiring short and rapidly understandable code snippets.

Photo: elpais.com

Mapping Code Comprehension

The mapping process revealed two critical regions in the left frontal cortex dedicated to understanding code. When stimulated, the patient struggled with programming tasks but could still name everyday objects without issue. Standard language evaluations would have left these two distinct spots undetected, according to the surgical team.

“The language test we usually perform did not detect any critical zone in this region, but the personalized protocol showed us two points that we had to respect,” said Andreu Gabarrós, neurosurgeon at Hospital de Bellvitge, according to Infosalus. Gabarrós said that while other scans pointed toward that general vicinity, this marked the first time direct brain stimulation confirmed it during an active operation.

Recovery and Future Limits

The surgical team successfully removed the entire tumor while preserving the arcuate fasciculus nerve fibers essential for language. Three months later, the patient returned to work with his performance entirely intact, and four years after the procedure, he reported no lingering professional impacts. Medical experts urge caution regarding broader applications.

Investigators from the Center for Computer Vision (CVC) and IDIBELL designed the custom intraoperative programming test used during the awake surgery, according to the article. The Bellvitge Biomedical Research Institute (IDIBELL) is a research center established in 2004 specializing in neuroscience, cancer, translational medicine, and regenerative medicine, with more than 1,500 professionals across 73 research groups publishing over 1,400 scientific articles annually.

“In neurosurgery, a millimeter more above or below can cost you a lot,” said Gloria Villalba, a neurosurgeon at Hospital del Mar who did not participate in the intervention, emphasizing that cortical maps vary between individuals.

Photo of author

Health Desk

Health Desk at Archyde.

Amazon, Best Buy Cut iPad Air Prices by $150 for Cyber Monday