When an experiment shows all trials of condition A in one stretch of time and all trials of condition B in another, anything that drifts slowly during a recording can end up looking like a difference between A and B. This includes electrode contact, amplifier temperature, and the subject's fatigue. This trap is now well documented for decoders, the classifiers that read stimulus labels out of brain signals. A deep network that seemed to read 40 object categories from EEG (electroencephalography, scalp recordings of the brain's electrical activity) at over 96% accuracy turned out to be recognizing which recording block it was in. Its accuracy fell to chance when blocks were separated. The same trap has not been checked for effective connectivity: methods that estimate which brain region drives which, using the rule that one signal's past helps predict another's future. These methods depend on timing and on noise levels, which are exactly what slow drift corrupts. The literature has checked the decoders. It has not checked the connectivity maps that cognitive and clinical studies report.
We propose to measure how much of the reported condition-dependent directed connectivity in block-design EEG is produced by drift. We will ask which frequency bands carry that contamination, and we will build an estimator that removes it by modeling the design explicitly. The key test is a natural experiment already present in a public dataset, CrossPT-EEG. The same subjects saw the same image categories first in blocks and then, at least a week later, in randomized order. Connectivity differences that are real should appear in both recordings. Differences produced by drift should appear only in the block recording.
Core Claim
We claim three things. First, standard directed-connectivity estimators applied to block-design EEG produce condition differences whose edges can be predicted from block membership and session position alone. Second, this leakage is concentrated in particular frequency bands, and it is not limited to the sub-1 Hz range that high-pass filters remove. The mechanism we expect is that slow changes in noise floor and alpha power alter the signal-to-noise asymmetry between channels, and prediction-based estimators read that asymmetry as influence. Third, an estimator that treats each block as a nuisance unit can remove most of this leakage while keeping more statistical power than the conservative fallback of permuting labels at the block level. The estimator models a per-block gain and noise floor for each channel and band, and it contrasts conditions only between blocks matched on time-in-session.
What is new is not "effective connectivity plus frequency bands for decoding." That combination is already explored in spirit by Effective Connectivity-Based Neural Decoding, which decodes MEG stimulus classes from directed graphs. What is new is turning the block-confound audit of Confounds in the Data onto connectivity estimators themselves. We also supply a correction and a ground-truth benchmark for it.
Position Relative to Prior Work
Two papers motivate the audit. Confounds in the Data introduced the "block detector" test: train a model to predict block index instead of class, and show that high class accuracy collapses to about 2.5% on cross-block splits. Object Classification From Randomized EEG Trials collected 40,000 fully randomized trials and found only 5.1% (1D CNN) and 5.0% (SVM) on 40 classes. Both papers study classifiers on raw voltages. Neither asks whether connectivity-based analyses inherit the confound. CrossPT-EEG supplies our main real dataset. It shows within-time two-way identification near 0.954 falling to 0.55–0.61 cross-time, even after 0.5–80 Hz band-pass filtering. That drop is a warning that filtering alone does not remove session structure. Its graph models use fixed electrode-distance edges, so it says nothing about directed connectivity.
One paper supplies the idea behind our correction. Bayesian RSA showed that 84% of the variance in an uncorrected fMRI similarity matrix could be reproduced from white noise passed through the design. It fixed this by modeling design-induced covariance generatively. We carry the same logic to directed connectivity in electrophysiology, a setting it does not cover. We also inherit its known limitation: correction weakens at very low signal-to-noise ratio. We will report where our estimator fails for the same reason.
The estimators we audit fall into four families. The first is classical Granger causality and its neural version, Neural Granger Causality, which tests whether one series' past improves forecasts of another. The second is the surrogate-perturbation method NPI, from Mapping effective connectivity by virtually perturbing a surrogate brain and Perturbing a Neural Network to Infer Effective Connectivity. NPI trains a network to predict future signals and reads connectivity from its responses to virtual impulses. The third is GP CaKe, which learns smooth, strictly causal interaction kernels in the frequency domain. The fourth is the Time-Aware PC algorithm, which applies conditional-independence tests across time lags. Every one of these was validated on stationary, resting-state, or simulated data, so none was tested against design-aligned drift. All four also assume that no unobserved variable drives the recorded channels. Slow drift is exactly such a variable. It is a shared driver that happens to be scheduled by the experimenter.
One paper constrains how we state results. Causality is Key for Interpretability Claims to Generalise found that 53.5% of reviewed claims outran their evidence on Pearl's ladder, the distinction between association, intervention, and counterfactual. Our corrected estimates remain observational. We will describe them as "not explained by design structure," never as causal influence confirmed by intervention.
Research Program
We will build three things.
The first is a simulation benchmark with ground truth. We extend the Jansen-Rit neural-mass EEG simulations used by Perturbing a Neural Network to Infer Effective Connectivity, in both the 3-channel and the 90-channel DTI-structured versions. On top of them we add realistic drift aligned to a block schedule. The drift has three components: per-channel gain changes (impedance), noise-floor ramps, and a slow global modulation of alpha amplitude (arousal). We will create three conditions. In the null condition, the true connectivity is identical across conditions and only drift differs. In the true-effect condition, specified edges change between conditions and there is no drift. The mixed condition combines both. Because the connectivity is known, we can count false condition-dependent edges exactly.
The second is a connectivity block detector. For each estimator and each band (delta, theta, alpha, beta, gamma, plus an ultra-slow band below 1 Hz), we will compute directed graphs on short windows. We will then train a simple classifier to predict block index, and separately session position, from those graphs, with condition held fixed. Above-chance prediction of block with condition held constant is direct evidence that the graphs encode recording time. We will also run the placebo version: swap condition labels between blocks at the same session position and check whether "condition effects" survive.
The third is the design-matched estimator. We band-limit each channel while keeping phase. We then divide out a per-block, per-channel gain and noise-floor estimate. This follows the spirit of Bayesian RSA, which models the nuisance structure instead of hoping filtering removes it. After that we fit the chosen estimator within each block. The condition contrast is formed only from block pairs matched on time-in-session:
$$\Delta_{ij}^{(b)} = \frac{1}{|P|}\sum_{(m,n)\in P}\left(E_{ij}^{(b)}[m] - E_{ij}^{(b)}[n]\right),$$
Here $E_{ij}^{(b)}[m]$ is the estimated influence of channel $i$ on channel $j$ in band $b$ within block $m$. The set $P$ holds pairs of blocks, one per condition, adjacent in session position. $\Delta_{ij}^{(b)}$ is the drift-matched condition effect. Significance is assessed by permuting labels within matched pairs. This keeps the null exact and uses more degrees of freedom than permuting whole blocks across the session. The estimator can wrap any of the four estimator families.
Baselines
The naive reference point is the uncorrected analysis most papers report. It fits each estimator on all trials of each condition, subtracts the two graphs, and tests edges by permuting labels across trials. On the drift-only simulation, a correct method should find about 5% false edges at $\alpha=0.05$. We expect the naive analysis to far exceed that, and the size of the excess is the first headline number.
The strongest existing estimator is NPI, which Perturbing a Neural Network to Infer Effective Connectivity reports at correlation $r = 0.3340$ with ground truth on the 90-channel Jansen-Rit model, against 0.3136 for Granger causality. On real data, the surrogate-brain paper reports $r = 0.33$ agreement with intracranial stimulation responses versus 0.20 for undirected correlation. It is the strongest competitor because it is the most flexible predictor, and flexibility is precisely what lets a model absorb drift. We will run it with the published history and prediction lengths (76 in, 24 out), the CNN variant, and the same training budget for the naive and corrected pipelines. GP CaKe, TPC, and linear Granger causality are run on identical windows and bands.
The strongest correction baseline is filtering plus block-level permutation: high-pass at 0.5 and 1 Hz, linear detrending per block, and edge significance tested by reassigning condition labels to whole blocks. This controls false positives by construction. Our estimator beats it only if it keeps false positives at nominal levels while detecting more of the true edges in the true-effect and mixed simulations. We define "more" as a higher true-positive rate at matched false-positive rate across at least two estimator families.
Three ablations isolate the key ingredients. The first removes the gain and noise-floor normalization. The second replaces session-position matching with arbitrary pairing. The third uses broadband instead of band-limited estimates, which tells us whether frequency resolution matters or merely adds tests.
On real data there is no reported result on Lacuna for directed-connectivity condition contrasts on CrossPT-EEG, on the Palazzo block dataset, or on any block-versus-randomized comparison. We would establish those reference numbers ourselves.
Why not just…?
Why not just randomize trial order? Randomization is the right fix when it is possible. Object Classification From Randomized EEG Trials shows it removes the shortcut. However, many paradigms cannot be randomized, including learning, naturalistic listening, sustained attention, and clinical monitoring. A large body of existing connectivity findings also comes from block designs and needs auditing after the fact. We use randomized data as the reference standard, not as a competitor. The CrossPT-EEG randomized stage is exactly what lets us score the block-stage estimates.
Why not just high-pass filter and detrend? This is a real threat for sub-1 Hz drift, and we test it as a baseline, not by argument. Our specific hypothesis is that drift also acts on band-limited amplitude and noise floor, which filtering does not remove. The CrossPT-EEG cross-time collapse after 0.5–80 Hz filtering is suggestive, though it concerns decoding, not connectivity. The simulation settles the question. If filtering alone brings drift-only false edges to nominal levels in every band, our correction is unnecessary, and we will report that as the finding.
Why not just permute condition labels at the block level? This controls false positives honestly, and it is the default recommendation we would make if our estimator failed. Its cost is power. A block design with a handful of blocks per condition offers very few distinct permutations, so real effects become undetectable. The comparison of power curves in the true-effect simulations decides whether design-matched estimation is worth its added modeling assumptions. If it is not, the audit and benchmark still stand as the contribution.
Why not just use undirected functional connectivity, which has no lag assumptions? Correlation and coherence also absorb shared slow drift, and they cannot separate driver from receiver. The comparison in the surrogate-brain paper, $r = 0.33$ versus 0.20 against stimulation responses, suggests directed estimates carry more real structure. We still include coherence in the block-detector audit to see whether it leaks more or less than directed measures.
Proposed Experiments and Decisive Checks
The first experiment is the simulation. For each estimator, band, and correction, we measure the false condition-edge rate in drift-only data, the true-positive rate at matched false-positive rate in true-effect and mixed data, and graph correlation with ground truth. The results should reproduce the published no-drift NPI and Granger numbers above as a sanity check.
The second experiment is the connectivity block detector on real block data: the Palazzo ImageNet EEG recordings studied in Confounds in the Data and CrossPT-EEG Stage 1. The metric is accuracy for predicting block index from directed graphs with class held fixed, reported per band.
The decisive real-data check uses CrossPT-EEG. For category pairs whose contrasts are computed separately in Stage 1 (blocked) and Stage 2 (randomized), we measure edge-wise agreement between the two contrasts, meaning the correlation of $\Delta_{ij}^{(b)}$ across edges, with per-subject bootstrap intervals. The proposal succeeds if three things hold. Naive block-stage contrasts must agree poorly with the randomized-stage contrasts. The corrected contrasts must agree substantially better. And the block detector's accuracy on corrected graphs must fall to near chance.
The proposal fails if one of two things happens. Naive contrasts might already replicate across designs, in which case the confound does not reach connectivity at the effect sizes seen in EEG. Alternatively, the correction might lower block-detector accuracy without improving cross-design agreement, in which case it removes signal together with drift. We will also report the per-band pattern. A result where alpha- and delta-band contrasts fail to replicate while gamma-band contrasts survive would give a concrete, usable guideline for which band-limited connectivity findings from block designs can be trusted. The 40,000-trial randomized dataset serves as a confound-free single-subject control. On it the corrected and naive estimators should agree, because there is no design-aligned drift to remove.
References
- Effective Connectivity-Based Neural Decoding: A Causal Interaction-Driven Approach
- Confounds in the Data - Comments on "Decoding Brain Representations by Multimodal Learning of Neural Activity and Visual Features"
- Object classification from randomized EEG trials
- EEG-ImageNet: A Benchmark for Pre-training and Cross-Time Generalization of EEG-based Visual Decoding
- Representational structure or task structure? Bias in neural representational similarity analysis and a Bayesian method for reducing bias
- Neural Granger Causality
- Mapping effective connectivity by virtually perturbing a surrogate brain
- Perturbing a Neural Network to Infer Effective Connectivity: Evidence from Synthetic EEG Data
- GP CaKe: Effective brain connectivity with causal kernels
- Statistical perspective on functional and causal neural connectomics: The Time-Aware PC algorithm
- Causality is Key for Interpretability Claims to Generalise