Health

Programming tasks help during brain surgery in Catalonia

A hospital near Barcelona has reported on a case study: a patient completed programming tasks during brain tumour surgery so that important brain regions could be spared.

A research team at Catalonia has used a brain tumour surgery with special programming tasks to assess which areas were important for the patient’s profession. The research institute IDIBELL reported the case from Bellvitge University Hospital in l’Hospitalet de Llobregat at Barcelona. According to the newspaper El País, the operation itself took place four years ago.

The patient was a software engineer with a tumour in his left frontal lobe, close to regions associated with language. As well as preserving his language skills, the team wanted to retain his understanding of computer code as far as possible. The man was awake during the operation and completed tasks on a computer.

According to the publisher, the case study had already appeared on 19 October 2026 in the journal Human Brain Mapping. The study involved, among others, the research institute IDIBELL, Bellvitge University Hospital and researchers from the Autonomous University of Barcelona. The institute’s announcement on 26 November prompted the latest coverage.

Before the operation, the patient completed programming tasks while his brain activity was examined using functional magnetic resonance imaging. The scans were used to select regions for closer testing during surgery. In the operating theatre, the patient looked at short sections of code and decided whether a suggested result was correct.

At the same time, the surgical team electrically stimulated individual brain regions. If stimulation impaired the completion of a task, this suggested that the region concerned might be important for that ability. During examination of the cerebral cortex, the patient completed 126 tasks, of which he answered 104 correctly, according to IDIBELL. He completed more than a hundred further tasks while the tumour was being removed.

The researchers identified two areas of the left frontal cortex where stimulation disrupted the understanding of code. The patient could still name objects. According to the team, the usual object-naming test on its own would not have identified these functionally important areas. The additional findings helped the surgeons to take particular care near these regions.

The tumour was completely removed, according to the study. Three months after the operation, the patient’s language and programming abilities were intact, and he had returned to work. However, the findings are limited: the study describes a single case. The precise location of such abilities in the brain, and whether this approach is suitable for other patients, must be assessed individually.

Editor: Clara Simonichek (Article created with AI assistance).

Sources

End of article

Advertisement

From the PHOTRA network