Personalised protocol preserves coding ability in brain surgery

The study, published in Human Brain Mapping, shows how individualised cognitive tests help identify brain areas essential for complex professional skills.

Un protocol personalitzat permet preservar la capacitat de programar en una cirurgia cerebral

Institut de Diagnòstic per la Imatge (IDI)

Researchers from the UAB, IDIBELL and Bellvitge Hospital have developed a protocol that preserves the ability to code in patients undergoing brain tumour surgery, a skill that standard tests do not detect.

Key points

  • Protocol developed by UAB, IDIBELL and Bellvitge Hospital
  • Published in the journal Human Brain Mapping
  • Patient solved 126 coding exercises during the intervention
A multidisciplinary team comprising researchers from the Computer Vision Centre (CVC), the Autonomous University of Barcelona (UAB), the Bellvitge Biomedical Research Institute (IDIBELL), the Bellvitge University Hospital (HUB), the University of Barcelona (UB) and ICREA has published a study in the journal Human Brain Mapping describing a new personalised neurosurgery protocol. The aim is to identify and preserve complex cognitive functions, such as computer code comprehension, which standard language tests may overlook.
The study is based on the case of a 41-year-old software engineer who underwent surgery for a grade 2 astrocytoma located in the left frontal lobe. During the intervention, performed with the patient awake, the neurosurgery team stimulated his brain while he solved 126 computer code exercises. This test allowed the identification of two key areas for code comprehension that the standard language test had not detected.
“

"For this patient, programming was not just a job: it was an essential part of his life. The language test we usually perform did not detect any critical area in this region, but the personalised protocol showed us two points we had to respect."

Dr. Andreu Gabarrós · Head of the Neurosurgery Service at Bellvitge University Hospital
The result was the complete removal of the tumour, with preservation of performance in code comprehension tests and linguistic functions. Three months after the intervention, the patient was able to resume his professional activity without any loss of ability. The study demonstrates that personalised tests can provide complementary information to standard assessments, influencing surgical decisions to preserve skills essential for personal and professional autonomy.
Based on information from the official source: Institut de Diagnòstic per la Imatge (IDI) (26/11/2026)