Deep learning to overcome human error and bias in electrode position extraction in tDCS-fMRI studies

Structural images acquired alongside tDCS-fMRI can be used to determine theactual positions of tDCS electrodes on the scalp. This matters most for focalmontages, because even minor positioning errors can substantially reduce thecurrent dose reaching the target regions for tDCS. Yet, there is no fully automatedmethod to determine electrode positions from structural MRI.We introduce one—a 3D U-Net pipeline that extracts electrode coordinates directly from PETRA scans—and validate it in two parts. Part I benchmarks five U-Net variants, differing in channel width and attention gating, under participant-wise five-fold cross-validation on 54 expert-segmented images and across all 4 234 images of a multi-project, multi-site tDCS-fMRI study. Segmentation overlap failed to separate the variants; the yield of four valid coordinates did. Contrary to expectation, attention gating hurt: ungated networks recovered all four electrodes in 97.7% and 96.3% of images, against just 89.0-−91.2% with gates, a gap driven almost entirely by adjacent electrodes merging into one. We release the stronger ungated variant, a standard U-Net, as open source. Part II pits fully automated, semi-automatic and manual extraction of a 3 $$\times $$ 1 montage against expert voxel-level ground truth. The automated method tracked the ground truth most closely, the two automated methods agreed most tightly (ICC = 0.984, bias = 1.3 mm), and manual extraction alone carried a systematic offset of 6.3 mm. Automation removes a measurable source of error and scales to datasets that manual processing cannot reach.

Authors

Institutions

Publication Details

Journal
Brain Informatics
Published
2026-11-25
DOI
https://doi.org/10.1186/s40708-026-00335-9
Primary Topic
Medical Image Segmentation Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Deep learning to overcome human error and bias in electrode position extraction in tDCS-fMRI studies

Mohamed Abdelmotaleb, Agnes Flöel, Steffen Riemann, Rico Fischer et al.
2 links
Brain Informatics
Medical Image Segmentation Techniques
article

Deep learning to overcome human error and bias in electrode position extraction in tDCS-fMRI studies

Mohamed Abdelmotaleb, Agnes Flöel, Steffen Riemann, Rico Fischer, Daria Antonenko, Axel Thielscher, Marcus Meinzer, Filip Niemann, Harun Kocataş, Leonardo M. Caisachana Guevara, Sophie Dabelstein, Kira Hering
article en

Abstract

Structural images acquired alongside tDCS-fMRI can be used to determine theactual positions of tDCS electrodes on the scalp. This matters most for focalmontages, because even minor positioning errors can substantially reduce thecurrent dose reaching the target regions for tDCS. Yet, there is no fully automatedmethod to determine electrode positions from structural MRI.We introduce one—a 3D U-Net pipeline that extracts electrode coordinates directly from PETRA scans—and validate it in two parts. Part I benchmarks five U-Net variants, differing in channel width and attention gating, under participant-wise five-fold cross-validation on 54 expert-segmented images and across all 4 234 images of a multi-project, multi-site tDCS-fMRI study. Segmentation overlap failed to separate the variants; the yield of four valid coordinates did. Contrary to expectation, attention gating hurt: ungated networks recovered all four electrodes in 97.7% and 96.3% of images, against just 89.0-−91.2% with gates, a gap driven almost entirely by adjacent electrodes merging into one. We release the stronger ungated variant, a standard U-Net, as open source. Part II pits fully automated, semi-automatic and manual extraction of a 3 $$\times $$ 1 montage against expert voxel-level ground truth. The automated method tracked the ground truth most closely, the two automated methods agreed most tightly (ICC = 0.984, bias = 1.3 mm), and manual extraction alone carried a systematic offset of 6.3 mm. Automation removes a measurable source of error and scales to datasets that manual processing cannot reach.

Brain Informatics
Universitätsmedizin Greifswald (DE), Amager Hospital (DK), Copenhagen University Hospital (DK), Universität Greifswald (DE), Technical University of Denmark (DK)
Deutsche Forschungsgemeinschaft
Good health and well-being
Medical Image Segmentation Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon