bioRxivNeurosciencePreprint
Deep learning to overcome human error and bias in electrode position extraction in tDCS-fMRI studies
Filip NiemanniD, Steffen RiemanniD, Sophie Dabelstein, Kira Hering, Harun KocataşiD, Mohamed AbdelmotalebiD, Leonardo M. Caisachana GuevaraiD, Rico FischeriD, Axel ThielscheriD, Daria AntonenkoiD, Agnes FlöeliD, Marcus MeinzeriD
- Citations
- 0
Abstract
Combining transcranial direct current stimulation (tDCS) with fMRI enables investigation of stimulation effects, while structural MRI verifies electrode positioning, critical for focal montages where minor misplacements reduce target current dose. Currently, no fully automated methods exist for precise electrode extraction from MRI. We developed an Attention U-Net-based deep learning approach to automate electrode detection in focal tDCS-fMRI studies, using structural pointwise-encoding time reduction with radial acquisition (PETRA) MRI scans from a multicenter trial (N = 392 images; 1,568 electrodes, https://www.memoslap.de/en/home/). Performance was compared to manual and semi-automated methods for a 3x1 montage (three cathodes around a central anode). The network achieved robust segmentation (Dice Score = 0.76, Hausdorff distance = 36.76 mm), identifying all electrodes in 95% of cases (323/340). These metrics compared network-segmented electrodes to highly accurate, manually segmented electrodes, which are also called "ground truth". Linear mixed-effects models on 52 "ground truth" images showed deep learning outperformed manual and semi-automated methods, aligning best with ground truth. Fully/semi-automated methods comparison of 290 images showed highest agreement (ICC = 0.990, bias = 1.3 mm), while manual extraction exhibited larger biases (-5.77 to -7.06 mm) and systematic errors. The automated approach overcomes manual limitations by improving precision, eliminating human variability and bias, and enabling scalability for large studies. It sets a new standard for electrode verification in focal tDCS, particularly for studies requiring precise localization. The model is open-source, with future refinements discussed
- assay: imaging
- research focus: benchmarking
- research focus: cell type annotation
- research focus: clustering
- approach: deep learning
- approach: statistical model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Automated extraction of electrode coordinates from structural MRI to assess tDCS placement accuracy
Sina Straub, Raphaela Schöpfer, … Jessica Peter·bioRxiv·Apr 24, 2026
- Identifying the engagement of a brain network during a targeted tDCS-fMRI experiment using a machine learning approach
Anant Shinde, Sovesh Mohapatra, Gottfried Schlaug A·PLoS Computational BiologyPeer-reviewed·Apr 12, 2023
- Convolutional neural network MRI segmentation for fast and robust optimization of transcranial electrical current stimulation of the human brain
Carla Sendra-Balcells, Ricardo Salvador, … Giulio Ruffini·bioRxiv·Jan 29, 2020
- Prediction of Electric Fields Induced by Transcranial Magnetic Stimulation in the Brain using a Deep Encoder-Decoder Convolutional Neural Network
M. Tashli, M. S. Alam, … R. L. Hadimani·bioRxiv·Oct 27, 2022
- Optimizing transcranial direct current stimulation (tDCS) electrode position, size, and distance doubles the on-target cortical electric field: Evidence from 3000 Human Connectome Project models
Kevin A. Caulfield, Mark S. George·bioRxiv·Nov 21, 2021
- Automated Electrodes Detection during simultaneous EEG/fMRI
Mathis Fleury, Christian Barillot, … Pierre Maurel·Frontiers in ICTPeer-reviewed·Jan 13, 2019