Zero Labs
Industry News / AI

What Happens to an AI Brain Decoder When the EEG Cap Slips a Few Centimeters?

Source · Towards AI By Tianyao Wu

From the publisher’s feed, collected in the ZeroLabs newsroom.

In EEG from 70 people, a simulated cap twist nearly halved accuracy for EEGNet and a frozen foundation model with a trained readout.Generative AI assisted with drafting and editing this article. The results were checked against BCI Report’s public release.EEGNet, a neural network trained on 60 people per fold, identified the correct one of 40 flickering targets 56.0% of the time on held-out participants. We simulated a rightward twist by feeding it EEG from nearby electrodes in the same recordings, and it fell to 28.6%. CCA, which needs no training data, went from 63.1% to 62.1%.eTRCA, a classic method calibrated on each person, fell from 83.5% to 41.2%. Recalibrating on that person’s remapped training blocks brought test accuracy back to 82.5%.Electrode placement varies when a cap is put on again. Atcherson et al. (2007) fitted the same cap on ten young adults on three occasions without scalp measurements. They reported positional standard deviations of 3.0 to 12.7 mm across 15 selected electrodes. Those standard deviations describe variability in electrode coordinates across fittings. Here we ask a separate question about a specified rotation of the whole montage.BCI benchmarks often keep the montage, or set of electrode positions, fixed across training and testing. The original BETA benchmark setup at BCI Report does so as well.Reusing the same trials lets us hold the recordings fixed and apply the same template transformation to all 70 participants. BCI Report tested a shift of roughly one electrode spacing with recorded channels, and nominal shifts of 1, 2 and 3 cm with interpolated voltages. The analysis was prespecified and independently reviewed before any shifted score was computed.TL;DR (40 targets, chance 2.5%, two-second windows)Training-free decoders changed when the set of recorded sites changed. One electrode row forward kept 3 of the 8 original electrodes and cost CCA 17.6 percentage points and filter-bank CCA 14.3. One column sideways kept 6 of 8 and cost them at most 5.9. Both rightward intervals included zero. The maps also differ in mean read-site displacement (a mean of 3.5 cm against 2.8) and in how closely they approximate the intended rotation.Sideways, decoders fitted at the old positions lost far more. EEGNet, a neural network trained across people, fell from 56.0% to 30.4% and 28.6%. CBraMod, a frozen foundation model with a trained head, fell from 33.7% to 18.4% and 17.5%. Per-person calibrated eTRCA fell from 83.5% to 46.5% and 41.2%. Forward, EEGNet lost 15.0 points and CCA lost 17.6. The paired interval for the difference in losses included zero.Refitting recovered most of eTRCA’s loss in every direction, and most of EEGNet’s loss sideways. Recalibrated eTRCA was back at 77.7–82.5%. EEGNet, retrained for a known shift, returned to 49.7% and 55.1% sideways, and recovered an estimated 1.2 points forward, with an interval that included zero.At a nominal 1 cm, estimated by interpolation, the untrained decoders lost under 2 points, EEGNet 1.1–3.5 and eTRCA 4.5–5.8. Interpolation carries a caveat, below.How we simulated a cap slipWe used BETA (Liu et al., 2020), a public benchmark for steady-state visual evoked potentials (SSVEPs). Seventy people looked at 40 targets flickering at 8.0 to 15.8 Hz. The EEG response to a flickering target contains activity at the flicker frequency and its harmonics. A decoder uses that response to identify the target. Each person contributes 160 trials, four blocks of the 40 targets, giving 11,200 two-second windows from the start of flicker in recordings made outside a shielded room.The decoders here read eight electrodes over the back of the head (PO5, PO3, POZ, PO4, PO6, O1, OZ and O2), as on BCI Report’s earlier BETA pages. But BETA recorded 64 channels. To approximate a shift, we rotated the eight input coordinates on the BETA template. We then assigned each input to a distinct site chosen from 60 recorded cap sites, minimizing the total squared distance from the rotated positions along the template sphere. In the forward map, for example, the input labeled POZ reads the signal recorded at PZ.The shifts were fixed from BETA’s electrode coordinates before any decoding:Forward one row. A rotation toward the nose moves the rear sites up the template. The eight inputs, in the order above, read P3, P1, PZ, P2, P4, PO3, POZ and PO4, a move of 2.7–4.0 cm per electrode.Left one column. A twist moves the rear sites toward the participant’s left. The inputs read P5, PO5, PO3, POZ, O2, PO7, O1 and OZ, a move of 1.8–3.5 cm.Right one column. The corresponding twist moves the rear sites to the participant’s right. The inputs read O1, POZ, PO4, PO6, P6, OZ, O2 and PO8, a move of 1.8–3.5 cm.The centimeter values describe distances along a spherical head template. They apply to the assigned recording sites and are approximate. These three maps use only channels recorded in BETA. Accuracy is averaged across people, and estimates of change pair each person’s scores on the same trials. Every decoder chooses among all 40 targets (chance 2.5%). The previous article in this series used an eight-target task.Six decoders, four of them fittedCCA (canonical correlation analysis, Lin et al., 2006) compares the window with sine waves at each candidate frequency. No training.Filter-bank CCA (Chen et al., 2015) runs CCA on seven sub-bands and combines them with fixed weights. No training.eTRCA (ensemble task-related component analysis, Nakanishi et al., 2018) learns, from three blocks of the person’s own trials, how to weight each electrode, plus a template for each target. Calibrated per person.Spectral ridge is a ridge classifier on log power at each target’s harmonics, per electrode. Trained across 60 other people.EEGNet (a compact convolutional network, Lawhern et al., 2018) is trained from scratch across 60 other people, with three seeds.CBraMod + ridge (a pretrained EEG foundation model, Wang et al., 2025) stays frozen. A ridge head on its standardized features is trained across 60 other people.For eTRCA, each block took its turn as the test block, with the other three used for calibration. The cross-person models used seven folds, each with 60 participants for training and 10 different participants for testing.Fitted at the original positions. Train or calibrate on the original montage, then score on the remapped test trials.Refitted on the remapped inputs. Apply the same map to both training and test data, keeping the same split. For eTRCA this uses the person’s own calibration blocks. For the cross-person decoders it uses the 60 training participants with the same map. For CBraMod, the encoder stays frozen and only the ridge readout and its feature scaling are refitted. This setup assumes access to training data in the target configuration.About the intervals. The 12 main comparisons (CCA, filter-bank CCA, eTRCA and EEGNet, each under three shifts) carry Bonferroni-adjusted 99.6% intervals. All other intervals here are unadjusted 95% intervals. The intervals come from 100,000 participant-bootstrap resamples using percentile bounds, with the fitted models held fixed. The secondary intervals are descriptive and carry no correction for multiple comparisons.One electrode overFigure 1. Mean accuracy across 70 participants on the original inputs and three recorded-channel remaps. Source: BCI Report (CC BY 4.0), BETA data (Liu et al., 2020).Accuracy with the cap where it was → forward / left / right:CCA: 63.1% → 45.5 / 57.2 / 62.1%Filter-bank CCA: 79.1% → 64.7 / 74.7 / 77.9%eTRCA: 83.5% → 55.3 / 46.5 / 41.2%EEGNet: 56.0% → 40.9 / 30.4 / 28.6%Spectral ridge: 50.7% → 37.4 / 40.2 / 40.4%CBraMod + ridge: 33.7% → 24.3 / 18.4 / 17.5%Fitted decoders keep the fit from before the shift. Across all six decoders, the forward remap cost 9.3 to 28.2 percentage points. The decoders start from different accuracies (eTRCA 83.5%, CBraMod 33.7%). Changes in points are calculated before rounding, so subtracting two displayed accuracies can give a slightly different value.People losing at least 10 points (of 70, counted as a description, with no intervals; forward / left / right): CCA 49 / 19 / 4; filter-bank CCA 38 / 12 / 2; eTRCA 54 / 58 / 64; EEGNet 36 / 50 / 49. A loss of exactly 10 points (16 of 160 trials; 48 of 480 predictions pooled across EEGNet’s three seeds) counts.Training-free decoders respond to which sites are readCCA combines the channels afresh in each test window to match the candidate frequencies. For CCA and its filter-bank variant, simply reordering the same recorded channels has no effect on the score. The maps change which signals reach the decoder.Forward one row replaced five of the eight original posterior sites. CCA lost 17.6 points (99.6% Bonferroni interval −22.5 to −13.0) and filter-bank CCA 14.3 (−20.5 to −8.7).Sideways kept six of the eight original electrodes in the set but replaced the two at one edge (left: PO4 and PO6 out, P5 and PO7 in). Left cost 5.9 and 4.3 points. Right cost 1.0 and 1.2, and neither drop was distinguishable from zero.Decoders fitted to the old positions lose their fitA fitted decoder ties what it learned to its input slots: eTRCA’s weight for each electrode, the per-electrode features in the spectral ridge and CBraMod heads, EEGNet’s spatial filters. After a twist, every slot still receives real EEG, but from a neighbor’s position: on the left shift the POZ slot reads PO3 and the PO4 slot reads POZ. The fitted settings and input labels stay fixed. A slot can therefore carry a different scalp signal from the one it carried during training.One electrode over, eTRCA lost 28.2 points forward, 36.9 left and 42.2 right (99.6% Bonferroni intervals −36.9 to −20.7, −45.9 to −28.6 and −50.8 to −34.2). The right shift halved it, from 83.5% to 41.2%.At the same nominal rotation angle, the spline-based simulation left eTRCA 10.2 points higher than the right shift, and 3.8 higher than the left shift. The two simulations differ in both the sites sampled and how the voltages at those sites are obtained.The sideways maps left eTRCA below filter-bank CCA (46.5% and 41.2% against 74.7% and 77.9%). Forward, the two stood at 55.3% and 64.7%. Paired within each person, eTRCA’s drop was larger than filter-bank CCA’s by 13.9 points forward, 32.6 left and 41.1 right. Both use the same filter bank in this experiment. The refitting comparison below tests how much accuracy eTRCA can recover on the same remapped test data.EEGNet lost about as much as CCA forward and far more sideways: 15.0 points forward, 25.6 left and 27.4 right. Forward, the difference from CCA’s drop was not distinguishable from zero. Sideways, EEGNet lost 19.7 and 26.3 points more than CCA. The other two fitted decoders fell too:CBraMod with a ridge head fell from 33.7% to 17.5–24.3%.Spectral ridge fell from 50.7% to 37.4–40.4%.How much accuracy does refitting recover?Figure 2. Accuracy on the same remapped test trials, with and without refitting. Source: BCI Report (CC BY 4.0), BETA data (Liu et al., 2020).After recalibrating eTRCA on the remapped training blocks, it reached 77.7% forward, 79.3% left and 82.5% right. We can measure how much refitting changes accuracy on the same test inputs, and how much of the original-to-remapped difference remains. The values below are in percentage points, in forward / left / right order, with unadjusted 95% intervals.Original fit minus refit, both tested on remapped inputs −22.5 (−28.8 to −16.7) / −32.7 (−38.8 to −27.0) / −41.3 (−47.1 to −35.7)Refit on remapped inputs minus unshifted baseline −5.8 (−8.3 to −3.2) / −4.2 (−5.5 to −3.0) / −0.9 (−1.8 to −0.1)Subtracting the two accuracies or adding the two components can differ from the reported losses (28.2, 36.9, 42.2 points) because of rounding.For EEGNet, 19.3 points left and 26.4 right came back when it was retrained on shifted data. Forward, retraining recovered an estimated 1.2 points, with an interval that included zero. After retraining for the forward map, EEGNet still scored 13.9 points below its unshifted baseline.The two comparisons answer different questions about this simulation.Some loss survives refitting. After the forward and left shifts, every refitted decoder still scored below its unshifted accuracy. Forward, eTRCA was 5.8 points down, EEGNet 13.9, spectral ridge 5.1 and CBraMod 4.8.How consistently did refitting help? The estimated gain was positive in all 12 comparisons. In 11 of 12 cases, the unadjusted 95% interval lay entirely above zero. The interval for EEGNet with the forward map included zero.How little is “a little”?The recorded channels leave gaps between electrode sites. To estimate EEG voltages in those gaps, we used spherical splines (Perrin et al., 1989) with 60 recorded cap channels. The rotations were set to move the eight input sites by a mean of 1, 2 or 3 cm along the template sphere. The distances describe the moved input sites, and the 60 recorded sites supply the voltages for interpolation.Figure 3. Accuracy change under interpolated shifts. Source: BCI Report (CC BY 4.0), BETA data (Liu et al., 2020).Figure 3 compares each interpolated shift with the original scores. The zero-shift spline reproduced those scores. eTRCA and EEGNet keep the original fit. Shading shows unadjusted 95% intervals.Change in accuracy in percentage points, in forward / left / right orderCCA: −1.9 / −1.0 / −0.4 at 1 cm; −6.7 / −3.5 / −0.6 at 2 cm; −14.9 / −7.5 / −1.5 at 3 cmFilter-bank CCA: −0.9 / −0.8 / −0.2 at 1 cm; −4.3 / −2.7 / −0.6 at 2 cm; −11.9 / −5.6 / −1.6 at 3 cmeTRCA: −4.8 / −5.8 / −4.5 at 1 cm; −12.1 / −18.5 / −16.0 at 2 cm; −25.2 / −38.7 / −38.7 at 3 cmEEGNet: −1.1 / −3.5 / −2.8 at 1 cm; −5.7 / −12.5 / −14.7 at 2 cm; −12.2 / −26.2 / −31.7 at 3 cmAt 1 cm, 7 to 13 of the 70 people lost 10 points or more with eTRCA, 6 to 15 with EEGNet, and none with filter-bank CCA.The caveat. Interpolation mixes recordings and can change spatial smoothing and noise as well as the estimated position. In a diagnostic without any shift, we reconstructed each original input from the other 59 cap sites, withholding its own signal. That cost eTRCA 22.6 points, EEGNet 14.5 and CBraMod 11.7, but CCA only 1.7. This diagnostic shows that reconstruction alone can change accuracy. The effect of interpolation at 1 cm remains unknown. The recorded-channel remaps are the primary test.What this suggests for anyone building or testing a BCIAn old calibration assumes the cap went back to the same place. In this simulation, a one-electrode twist halved eTRCA (83.5% to 41.2%), and recalibrating on remapped training blocks brought it back to 82.5%.Untrained decoders are only as good as the spots they cover. Filter-bank CCA lost 4.3 points or less with the sideways maps, which kept six of the eight original electrodes. The forward map kept three and the method lost 14.3 points.Test fitted models on a shifted cap before calling them robust. Training with rotated sensor positions is a known augmentation (Rommel et al., 2022); it was not tested here.Report how electrode placement was checked. Report measured positions when they are available. When using simulated shifts, describe the template and the channel assignment.Run the same check on your own model. If your recordings have more channels than your decoder reads, you can try a recorded-channel remap on your existing data.Rotate your input montage coordinates. Use a one-to-one assignment to minimize the total squared distance to recorded sites, for example with the Hungarian algorithm. Fix the map before scoring.Score the model fitted on the original channels on the remapped inputs, and compare it person by person with the unshifted score.Refit on remapped training data with the same split and score on the same remapped test inputs. Report the gain from refitting and the difference that remains relative to unshifted performance.Before using spline interpolation for smaller shifts, rebuild each channel from its neighbors with no shift. Here that alone cost eTRCA 22.6 points and CCA 1.7.The fine printOne dataset, offline. BETA was recorded outside a shielded room and has been studied repeatedly at BCI Report. The result is offline 40-target classification accuracy. Latency, online typing speed, information transfer rate and headset-specific performance were outside the experiment.Shorter windows. With one-second windows, eTRCA started at 70.8% and, fitted before the shift, lost 31.9 points forward, 38.7 left and 44.5 right. Filter-bank CCA started at 44.5% and lost 15.2, 7.1 and 1.2 points; the last was not distinguishable from zero.Checks. On the unshifted cap, CCA, spectral ridge and CBraMod reproduce BCI Report’s earlier published numbers for this task exactly, and filter-bank CCA matches its row in BCI Report’s main results table. EEGNet’s three-seed mean, 56.0%, sits beside its published one-seed result, 55.8%, which ran on another device. Without the three people whose channels looked unusual in a check made before decoding, every main drop changed by about 1.1 points or less and kept its sign. An independent, read-only audit recomputed every person’s accuracy, the 12 main intervals and the people counts from the stored predictions, which were sealed by hash before the analysis; all 263 checks passed.Limits of the simulationTraining with shifted or rotated positions (augmentation), a candidate fix for fitted models.The three maps cover a forward rotation and two twists. A backward slip or a slide toward one ear would require different maps.The simulation assumes a rigid rotation and preserves the reference in the original recordings. Physical cap movement can be partial, change electrode contact and impedance, and move the reference electrode.Other datasets or BCI types.Variance from retraining: the intervals treat each fitted model as fixed.How this relates to other workThe closest study is Kim and Im (2021), which simulated shifts in a similar way. They analyzed EEG from 21 people recorded with a lab-made 3 × 7 grid of electrodes spaced 1.3 cm apart. In a four-target task, they used neighboring grid channels to simulate different placements of one to three electrodes. They compared five training-free methods, including CCA and filter-bank CCA. Average accuracy across positions increased with more channels for all five methods. The authors found more consistent gains in robustness for MSI and EMSI. In their illustration of three-channel EMSI, horizontal shifts tended to hurt less than vertical ones. What the BETA experiment adds is the fitted side: per-person calibration and models trained across people, scored both as fitted and refitted, on 70 people and 40 targets.Physically re-applying electrodes has been studied for other kinds of BCI. In a mental-workload study, Estepp and Christensen (2015) removed and re-applied every electrode between sessions for 10 of 20 participants. They found no statistically significant effect of electrode replacement on cross-session classifier performance, measured with d-prime. Their reapplication aimed for the original sites.For training-time augmentation, Rommel et al. (2022) compared data augmentations for EEG, among them rotating the sensor positions and interpolating with spherical splines, motivated by caps that move between sessions. Rotations gave small overall gains on a motor-imagery dataset that were not statistically significant. Work on EEG foundation models has begun to test montage changes too: Steglich et al. (2026), an arXiv preprint, reduced the number of input channels, and found that how a model pooled across channels mattered for how well it held up.An earlier article in this series, Train Once, Reuse Later: Three Tests of Skipping BCI Calibration, tested reusing calibration across sessions. Variation in placement is one possible contributor to the changes measured across sessions.Reproduce the numbersThe main tables and additional comparisons are in the cap-shift section of BCI Report’s fewer-electrodes page. The public JSON file contains all 144 released contrasts. The code below loads the file from the pinned release commit and prints the 12 primary paired differences and their intervals.import jsonfrom decimal import Decimal, ROUND_HALF_UPfrom urllib.request import urlopencommit = "bd09c071a37b820adb6feb716607890c812b43a0"url = f"https://raw.githubusercontent.com/twu3202/bci-report/{commit}/site/public/data/electrode-shift-update.json"with urlopen(url, timeout=30) as response: data = json.load(response)def r1(x): # the site rounds exact values half away from zero return f"{Decimal(repr(round(x, 9))).quantize(Decimal('0.1'), ROUND_HALF_UP):+}"for c in data["contrasts"]: if c["role"] == "primary": lo, hi = c["interval_pp"] print(f'{c["decoder"]:7} {c["condition"]:13} {r1(c["mean_pp"])} ({r1(lo)} to {r1(hi)}) {c["direction"]}')In the output, “unresolved” means the interval includes zero. The file also contains secondary comparisons, participant counts and neighbor maps. The snippet reproduces the published summary values. Re-running the decoders on EEG is a separate step.Sources and licensesBETA was created by Bingchuan Liu and colleagues (Figshare, CC BY 4.0). The BETA paper states that participants were told the recordings would be used for noncommercial scientific research. CBraMod’s code is MIT-licensed and its checkpoint is labeled Apache-2.0. EEGNet was trained with the braindecode library. Filter-bank CCA follows Chen et al. (2015) and eTRCA follows Nakanishi et al. (2018). BCI Report’s aggregate measurements are CC BY 4.0. BCI Report rendered all three figures from its published aggregates.To cite these results: BCI Report (2026), doi:10.5281/zenodo.23123296, together with the upstream dataset. The release used here is electrode-shift-update-20261106, part of the November 6, 2026 archive version open-register-update-20261106 (doi:10.5281/zenodo.24002983).ReferencesLiu B, Huang X, Wang Y, Chen X, Gao X. BETA: A Large Benchmark Database Toward SSVEP-BCI Application. Frontiers in Neuroscience 14, 627 (2020). doi:10.3389/fnins.2020.00627Lin Z, Zhang C, Wu W, Gao X. Frequency Recognition Based on Canonical Correlation Analysis for SSVEP-Based BCIs. IEEE Transactions on Biomedical Engineering 53(12), 2610–2614 (2006). doi:10.1109/TBME.2006.886577Chen X, Wang Y, Gao S, Jung T-P, Gao X. Filter bank canonical correlation analysis for implementing a high-speed SSVEP-based brain–computer interface. Journal of Neural Engineering 12(4), 046008 (2015). doi:10.1088/1741–2560/12/4/046008Nakanishi M, Wang Y, Chen X, Wang Y-T, Gao X, Jung T-P. Enhancing Detection of SSVEPs for a High-Speed Brain Speller Using Task-Related Component Analysis. IEEE Transactions on Biomedical Engineering 65(1), 104–112 (2018). doi:10.1109/TBME.2017.2694818Lawhern VJ, Solon AJ, Waytowich NR, Gordon SM, Hung CP, Lance BJ. EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering 15(5), 056013 (2018). doi:10.1088/1741–2552/aace8cWang J, Zhao S, Luo Z, et al. CBraMod: A Criss-Cross Brain Foundation Model for EEG Decoding. ICLR (2025). arXiv:2412.07236Perrin F, Pernier J, Bertrand O, Echallier JF. Spherical splines for scalp potential and current density mapping. Electroencephalography and Clinical Neurophysiology 72(2), 184–187 (1989). doi:10.1016/0013–4694(89)90180–6Kim H, Im C-H. Influence of the Number of Channels and Classification Algorithm on the Performance Robustness to Electrode Shift in Steady-State Visual Evoked Potential-Based Brain-Computer Interfaces. Frontiers in Neuroinformatics 15, 750839 (2021). doi:10.3389/fninf.2021.750839Estepp JR, Christensen JC. Electrode replacement does not affect classification accuracy in dual-session use of a passive brain-computer interface for assessing cognitive workload. Frontiers in Neuroscience 9, 54 (2015). doi:10.3389/fnins.2015.00054Rommel C, Paillard J, Moreau T, Gramfort A. Data augmentation for learning predictive models on EEG: a systematic comparison. Journal of Neural Engineering 19(6), 066020 (2022). doi:10.1088/1741–2552/aca220Steglich J, Meyer zu Bexten J, Moradi S, Ciernik L, Hofmann SM, Jamshidi Idaji M. Representational and Functional Robustness to Electrode Montages in EEG Foundation Models. arXiv preprint (2026). arXiv:2609.36288Atcherson SR, Gould HJ, Pousson MA, Prout TM. Variability of electrode positions using electrode caps. Brain Topography 20(2), 105–111 (2007). doi:10.1007/s10548–007–0036-zBCI Report. What if the cap sits one electrode off? (November 6, 2026). Cap-shift results. Release version doi:10.5281/zenodo.24002983.BCI Report is a personal, noncommercial research project. This article uses its published aggregate results.What Happens to an AI Brain Decoder When the EEG Cap Slips a Few Centimeters? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.