Submitted:
30 November 2026
Posted:
02 December 2026
You are already at the latest version
Abstract
Machine learning studies that detect developmental dyslexia from the electroencephalogram (EEG) often report high accuracies, although they rely on a few dozen children and often split short epochs at random between training and test sets. We give a mathematical account of this evaluation and of what can honestly be achieved. If the EEG carries no diagnostic information, we prove that subject-wise cross-validation has an expected balanced accuracy of exactly one half, whereas record-wise evaluation of a nearest-neighbour classifier reaches ρ+(1−ρ)(n−2)/(2(n−1)), where ρ is the rate at which an epoch is matched to its own child and n the number of children. Modelling electrode gains as a group action, we derive the maximal invariant of log band power and the exact certified radius of affine classifiers. On an open dataset of 54 children (29 dyslexic) recorded during three visual tasks, ρ was 0.81. With labels permuted between children, record-wise evaluation still gave balanced accuracies of about 0.90 for nearest-neighbour, Riemannian and ShallowConvNet models (predicted: 0.904) and 0.66 for EEGNet, whereas subject-wise evaluation returned to chance. A child-level spectral model reached a subject-wise balanced accuracy of 0.66 and an area under the curve of 0.74 (permutation p = 0.008), whereas EEGNet and ShallowConvNet stayed at chance. Half of its predictions could be reversed by electrode gains of 5%; the gain-invariant model was fully robust but less accurate.
Keywords:
cross-validation
; data leakage
; subject identification
; balanced accuracy
; permutation test
; group invariance
; maximal invariant
; certified robustness
; deep learning
; EEG
; developmental dyslexia
MSC: 62H30; 68T05; 62G10; 92C55
1. Introduction
Developmental dyslexia is a persistent difficulty in learning to read and spell that cannot be explained by low intelligence, sensory loss or poor teaching [1,2]. It affects several percent of school-age children, and its diagnosis still relies on behavioural testing, which is only possible once a child has started to read and has fallen behind. A physiological marker that could be recorded quickly and cheaply would therefore be valuable, and the electroencephalogram (EEG) is the obvious candidate. It is silent, inexpensive and well tolerated by children, and decades of group studies have reported differences between dyslexic and typically reading children in the power of the theta, alpha and beta rhythms, in hemispheric asymmetries and in the coherence between distant electrodes [3,4,5].
In the last ten years, these findings have been turned into classification problems, and machine learning studies have reported that dyslexic children can be told apart from typical readers with high accuracy [6,7]. These numbers are hard to reconcile with the group literature, in which effect sizes are moderate and often fail to replicate [3], and with the size of the samples, which rarely exceed a few dozen children per group. Small samples alone produce wide error bars around any estimate of accuracy [8,9], but a second and more systematic problem is the way performance is measured. Many studies cut each recording into short epochs, treat every epoch as an independent sample and split the epochs at random between training and test sets. The same child then contributes to both sets. Because the EEG of an individual is stable enough to identify that person among many others [10,11,12], a classifier can succeed by recognising the child rather than the condition. This form of data leakage has been documented in clinical machine learning in general [13,14], in neuroimaging [15,16] and, more recently, in deep learning studies of translational EEG [17,18]. Yet its size has mostly been demonstrated empirically, by comparing the two evaluation schemes on particular datasets, and there is no simple formula that tells a reader how much optimism to expect.
A third issue concerns the measurement itself. The amplitude recorded at an electrode depends not only on brain activity but also on the contact impedance, the amplifier and the thickness of the skull and scalp. These factors act, to a first approximation, as an unknown positive gain on each channel. They vary between sessions, devices and laboratories, and they are rarely mentioned when a classifier trained on absolute band power is proposed as a diagnostic tool. A classifier whose output changes when one electrode is attached slightly more loosely is not a marker of the child, and its sensitivity to such gains can be stated and computed exactly.
This paper addresses these three issues with tools from probability, linear algebra and group invariance, and tests every result on an open dataset of 54 children recorded during three visual tasks [19,20,21]. Our contributions are the following.
- We formalise subject-wise and record-wise cross-validation and prove that, when the EEG carries no diagnostic information, the expected balanced accuracy of any learning algorithm evaluated subject-wise is exactly one half (Theorem 1).
- We prove that, under the same hypothesis, record-wise evaluation of a nearest-neighbour classifier has an expected balanced accuracy of , where is the identification rate of the child and n the number of children (Theorem 2). The optimism is therefore close to and can be predicted from a quantity that is easy to measure.
- We model unknown channel gains as a group action on log band power, derive its maximal invariant (Theorem 3) and give the exact certified radius of any affine classifier against such gains (Theorem 4). We also show that generalised eigenvalues of task covariance pencils are invariant to any linear mixing of the channels, even for rank-deficient recordings, and bound their sensitivity to noise (Propositions 2 and 3).
- On real data, we measure the identification rate, verify the predicted record-wise accuracy under permuted labels for classical and deep models, and verify the theorem on synthetic data over the whole range of identification rates.
- We establish an honest subject-wise benchmark, with repeated cross-validation, bootstrap confidence intervals, a permutation test and a comparison with EEGNet and ShallowConvNet, and we quantify the trade-off between accuracy and robustness to electrode gains.
The paper is organised as follows. Section 2 reviews related work. Section 3 sets out the mathematical framework and proves the main results. Section 4 describes the data, the features, the models and the experimental protocol. Section 5 reports the experiments, Section 6 discusses them and Section 7 concludes.
2. Related Work
2.1. EEG Markers of Developmental Dyslexia
The dominant account of dyslexia places its origin in the processing of speech sounds, but the underlying neural mechanisms are still debated [1,22]. The temporal sampling framework proposes that the cortical oscillations that track the rhythm of speech, in the delta and theta ranges, are atypical in dyslexia [23], and magnetoencephalography has shown altered low-gamma entrainment in the auditory cortex of dyslexic adults [24]. At rest and during tasks, EEG studies of children have reported more theta and less alpha or beta power in dyslexic groups, atypical hemispheric asymmetries [4] and weaker global network organisation [5]. A systematic review concluded that these findings are heterogeneous and that their direction often differs between studies [3]. Part of this heterogeneity comes from maturation, since spectral power changes markedly between 7 and 12 years of age [25,26], and part from differences in tasks, montages and preprocessing.
The dataset analysed here was collected by Lotfi and colleagues in Tehran for a study of computerised cognitive training [19,20] and made public on the Open Science Framework [21]. Kheyrkhah and Setarehdan used it to study the effect of electrode reduction on classification [7], and Parmar and Paunwala proposed a feature extraction scheme for early detection [6]. Both reported high classification accuracies, but on a small number of children.
2.2. Cross-Validation, Leakage and Small Samples
Cross-validation estimates the performance of a learning algorithm on data that were not used to train it [27,28]. Its variance is difficult to estimate [29], and its theory assumes that the folds are exchangeable and, in its simplest form, that the samples are independent. When samples are grouped, for instance by patient, site or recording session, the folds must respect the groups, otherwise information about the group crosses from the training to the test set [30]. Saeb and colleagues showed that record-wise cross-validation of smartphone and wearable data overestimated diagnostic accuracy by a large margin and argued that the evaluation must reproduce the intended use of the model [13]. Kapoor and Narayanan listed this kind of leakage among the most common causes of irreproducible results in machine-learning-based science [14].
In neuroimaging and EEG, the same concerns have been raised repeatedly. Circular analysis inflates effect sizes when data used for selection are also used for testing [31], and model selection performed on the test folds biases accuracy upwards [32]. Varoquaux and colleagues showed that cross-validation on samples of the size typical of clinical neuroimaging has error bars of about 10% [8,15], and Combrisson and Jerbi gave the accuracy that must be exceeded to claim decoding above chance with small samples [9]. Li and colleagues showed that block designs allow EEG classifiers to exploit slow temporal drifts instead of the stimulus classes [18], and Brookshire and colleagues found that segment-based splits inflated the reported accuracy of deep networks for several EEG-based diagnoses [17]. Other studies documented unexpected overfitting through repeated analysis choices [33], the effect of small samples on validation [34] and the inflation of predictions in single-subject neuroimaging [35]. These works describe the problem well, but most of them measure it on particular datasets. Our aim is to give a closed-form prediction of the inflation for a simple and widely used classifier.
2.3. Individual Identification from the EEG
The leakage mechanism rests on the fact that the EEG is individual. Test–retest studies have long shown that spectral parameters are stable within a person [36], and Näpflin and colleagues showed that resting spectra form a statistical signature that identifies individuals across recordings separated by more than a year [10]. EEG has been studied as a biometric trait [12], and brief segments of magnetoencephalographic activity are sufficient to differentiate individuals within large cohorts [11], in the same way as functional connectivity profiles in magnetic resonance imaging [37]. A classifier trained on epochs from the same children it is tested on can thus reach high accuracy by identifying them, whatever the label.
2.4. Deep Learning and Riemannian Methods for EEG
Deep learning has become the default approach in many EEG applications [38,39,40]. Compact convolutional networks such as EEGNet [41] and the shallow and deep ConvNets of Schirrmeister and colleagues [42] learn spatial and temporal filters directly from the signal, and they are frequently used for clinical EEG [43]. Their performance depends strongly on the amount of data, and a review of classification algorithms for brain–computer interfaces found that, with small training sets, well-regularised linear models and Riemannian methods remain competitive [44].
Riemannian methods represent each epoch by its spatial covariance matrix and classify these matrices with the geometry of the cone of symmetric positive definite matrices [45,46,47]. The affine-invariant distance between covariance matrices is unchanged when the channels are mixed by an invertible matrix [48,49], which makes these methods attractive for transfer between sessions and subjects [50,51]. Covariance-based models have also been used for regression of individual traits from M/EEG [52]. We use these tools both as baselines and to construct representations that are invariant, by design, to channel gains and mixing.
2.5. Invariance and Certified Robustness
The classical theory of invariant statistical procedures reduces a problem that is invariant under a group to a problem on a maximal invariant, a statistic that is constant on each orbit of the group and takes different values on different orbits [53]. In machine learning, robustness is often studied against small adversarial perturbations of the input, and certification methods provide guarantees that the prediction does not change within a given set [54]. For linear models these guarantees can be exact. We apply both ideas to a perturbation that is physically meaningful for EEG, namely an unknown gain on each electrode.
3. Mathematical Framework
This section states the hypotheses, defines the two evaluation schemes and proves the results that the experiments test. Section 3.2 deals with evaluation, Section 3.3 with channel gains and Section 3.4 with linear mixing of the channels.
3.1. Setting and Notation
We observe n children indexed by . Child i has a diagnostic label , with for dyslexia, and contributes EEG epochs , each a real array of C channels by T time samples. We write , and . The set of epoch indices is , and for an epoch we write for the child it belongs to. The class sizes are and .
A learning algorithm maps a training set of labelled epochs to a predictor ; it may use internal randomness, which we take to be independent of everything else. For a predictor evaluated on a set of test epochs with predictions , the balanced accuracy is the mean of the recalls of the two classes,
Balanced accuracy is preferred to accuracy because it equals one half for any classifier that ignores its input, whatever the class proportions [55]. To state results in expectation, we use its population version. Let e be drawn uniformly from , independently of the data and of the labels; then
where the probabilities are taken over the data, the labels, the folds, the internal randomness of and the choice of e. The empirical quantity (1) computed on all epochs estimates .
Definition 1
(Evaluation schemes). Let .
- (i)
- Subject-wise (grouped) K-fold cross-validation partitions the children into folds . For a test epoch e with , the prediction is , where is trained on all epochs of the children outside .
- (ii)
- Record-wise K-fold cross-validation partitions the epochs into folds , regardless of the child. For , , where is trained on .
In record-wise cross-validation, the training set of a fold almost always contains other epochs of the child to which a test epoch belongs. The hypotheses below make precise the situation in which the EEG carries no information about the diagnosis.
Hypothesis 1
(Label constancy). All epochs of a child share the label of that child.
Hypothesis 2
(Null hypothesis of no diagnostic information). The EEG data X are independent of the labels . We distinguish two versions: in () the labels are independent Bernoulli variables with a common parameter ; in () the class sizes are fixed and is uniformly distributed over the label vectors with these sizes.
Hypothesis () is the one simulated by a permutation test, in which the observed labels are shuffled between children. Hypothesis 1 holds by construction, since the diagnosis is a property of the child.
3.2. Subject-Wise and Record-Wise Evaluation
Lemma 1.
Assume () and subject-wise cross-validation with folds chosen independently of . Then, for every epoch e of child i, the prediction is independent of .
Proof.
Let be the fold that contains i. The predictor is a function of the epochs and labels of the children outside and of the internal randomness of the algorithm, so for a measurable map . Conditionally on the folds, the variables X, , and are mutually independent: X and are independent of the labels, and labels of distinct children are independent under (). Since , is not among the arguments of , and is a function of variables independent of . Because the folds are independent of , the conclusion holds unconditionally. □
Theorem 1
(Subject-wise evaluation under the null). Under the assumptions of Lemma 1, the population balanced accuracy of subject-wise cross-validation equals for every learning algorithm.
Proof.
The test epoch e in (2) is drawn independently of the labels, so conditioning on e and applying Lemma 1 gives . Then . □
Remark 1
(Stratified folds and fixed class sizes). Theorem 1 requires the labels of distinct children to be independent. Under (), or when the folds are stratified by label, the training labels are slightly anti-correlated with the label of the test child: removing a dyslexic child from the training set leaves a training set with a smaller proportion of dyslexic children. An algorithm that leans towards the majority class of its training set then predicts the test label slightly worse than chance. This effect is of order for most algorithms but can be larger for flexible ones, and it explains balanced accuracies a few points below under the null, which are sometimes misread as a sign of an error in the code.
We now turn to record-wise evaluation. Consider the one-nearest-neighbour (1-NN) rule with respect to a fixed metric on a feature representation of the epochs. For a test epoch e in fold , let be the training epoch closest to e, and let be the child it belongs to. The 1-NN prediction is .
Definition 2
(Identification rate). The identification rate of the record-wise scheme is , where e is uniform on and the probability is taken over the data and the folds.
The identification rate depends only on the EEG and on the folds, not on the labels. It is the probability that the nearest training epoch comes from the same child as the test epoch.
Theorem 2
(Record-wise optimism of the nearest-neighbour rule). Assume Hypothesis 1, (), and record-wise folds chosen independently of , with ties in the nearest-neighbour search broken independently of . Then the population balanced accuracy of the record-wise 1-NN rule is
Proof.
Fix a class and condition on the event . The pair is a function of X, of the folds and of the uniform choice of e, all of which are independent of . Moreover, under (), for every child i, so the event is independent of , and conditioning on it leaves the distribution of this pair unchanged. On the event , Hypothesis 1 gives , so the prediction is correct. On the event with , the prediction is . Under (), given , the remaining labels are a uniform arrangement of labels equal to c and labels equal to , so for every . Hence
Averaging over and using gives (3). □
Corollary 1
(Size of the optimism). Under the assumptions of Theorem 2, the optimism of record-wise evaluation with respect to chance is
which tends to as n grows. In particular, record-wise evaluation yields a balanced accuracy above under the null as soon as approximately, and a balanced accuracy of 0.9 as soon as .
Proof.
Subtract from (3) and use . □
Remark 2
(Scope of Theorem 2). The formula is exact for the 1-NN rule, which makes the leakage mechanism transparent: an epoch matched to its own child inherits the correct label. Other learners do not identify children in such an explicit way, but any learner flexible enough to separate the children in feature space can exploit the same mechanism. The 1-NN identification rate is therefore a useful diagnostic of how much a dataset is exposed to leakage, and the record-wise balanced accuracy of the 1-NN rule under permuted labels is a lower bound on what a flexible learner can reach without any diagnostic signal. Section 5.2 shows that logistic regression on Riemannian features and ShallowConvNet reach the same level, while the more constrained EEGNet and band-power logistic regression exploit identity to a lesser degree.
Remark 3
(Child-level aggregation does not remove leakage). Studies sometimes average epoch predictions over each child after record-wise evaluation. By Theorem 2, a test epoch is more often right than wrong as soon as , a threshold close to . If each child has many test epochs and the errors made on different epochs of the same child are not too strongly dependent, a majority vote over the epochs of a child is then right with probability close to one. Record-wise child-level accuracy under the null can therefore approach 1, which is what we observe.
The last result of this subsection justifies the permutation test used in the experiments. Let be any statistic, for instance the subject-wise cross-validated area under the curve, and let be independent uniform permutations of over children.
Proposition 1
(Validity of the permutation test). Under (), the p-value
satisfies for every .
Proof.
Under (), conditionally on X, the observed labels and the B permuted labels are exchangeable: a uniform permutation of a uniformly distributed label vector is again uniformly distributed, and independently drawn permutations make the vectors exchangeable. The values are therefore exchangeable, and the rank of among them, counted with ties in the least favourable way, is stochastically larger than or equal to a uniform rank on . Hence for , which is the claim [56]. □
Because the permutation is applied to children and the cross-validation is subject-wise, the test is sensitive to diagnostic information only. A permutation of epoch labels would break Hypothesis 1 and produce a null distribution that is too narrow.
3.3. Channel Gains as a Group Action
We now model an unknown multiplicative gain on each electrode, with , . Such gains arise from electrode impedance, amplifier calibration and, to some extent, from the conductivity and thickness of the tissues under each electrode. Let collect the base-10 logarithms of the power of the C channels in B frequency bands, estimated by Welch’s method [57] or any other method that is quadratic in the signal.
Lemma 2
(Gain equivariance of log band power). Let and . The log band power of the scaled signal is , where is the vector of B ones. The same relation holds for the average of log band power over epochs.
Proof.
Welch’s estimator of the power spectral density of channel c is an average of squared moduli of Fourier transforms of windowed segments, and is therefore multiplied by when the channel is multiplied by . The power in a band, an average of the density over frequencies, is multiplied by as well, and its logarithm is shifted by for every band. Averaging over epochs commutes with adding a constant. □
Lemma 2 shows that the group of log-gains acts on by . A function on is invariant if for all u and Z, and it is a maximal invariant if, in addition, implies for some u [53].
Theorem 3
(Maximal invariant). Let be the centring matrix of size B. The map , which subtracts from each channel its mean log power over the bands, is a maximal invariant of the action of G. Consequently, a classifier f on is invariant to channel gains if and only if for some function h on the image of ϕ, a linear subspace of dimension .
Proof.
Invariance: , so . Maximality: if , then , so every column of lies in the kernel of H, which is spanned by . Hence for some , that is, with . If f is invariant, define h on the image of by ; this is well defined because implies that Z and lie in the same orbit, on which f is constant. The converse is immediate. The image of is the set of matrices whose columns sum to zero, of dimension . □
Theorem 3 has a simple meaning: the only gain-invariant information in log band power is the shape of the spectrum of each channel, and the absolute level of each channel, C numbers in total, must be discarded. It also shows that no gain-invariant classifier can use the topography of absolute power. Whether this matters for a given diagnosis is an empirical question, which we answer in Section 5.6.
Most classifiers used in practice are not invariant. For affine classifiers, which include logistic regression after standardisation and principal component analysis, the sensitivity to gains can be computed exactly.
Theorem 4
(Exact certified radius of an affine classifier). Let , with and , and let the classifier predict . For , let be the set of log-gains that change no channel amplitude by a factor larger than . Then
Consequently, if , the prediction is unchanged for every if and only if , with the convention that a score of exactly zero counts as a change. If , the prediction is unchanged for every gain.
Proof.
By Lemma 2, , where is the sum of the coefficients of channel c. This is a linear function of u, whose maximum absolute value over the cube is attained at (or its negative) and equals , which proves (6). If , then for all , so the sign of the score cannot change. If , the vector moves the score by towards zero, so the score reaches zero or changes sign. The case is immediate. □
Corollary 2.
An affine classifier is invariant to channel gains if and only if the coefficients of each channel sum to zero, , which is the case if and only if s factors through the maximal invariant ϕ of Theorem 3.
Proof.
if and only if for all c. In that case because and H is symmetric, so s depends on Z only through . Conversely, if s factors through , it is invariant and Theorem 4 gives . □
For the logistic regression pipeline used below, the score is
where and are the training means and standard deviations, P the matrix of principal axes and w the logistic coefficients. The matrix A is obtained by reshaping , so the certified radius of every test child can be computed in closed form, without any search over perturbations.
3.4. Linear Mixing and Covariance Pencils
A more general model of the sensor replaces the diagonal gain by an invertible matrix W, which also mixes the channels: . This model covers gains, cross-talk between leads and a change of reference. The spatial covariance of a band-passed recording then transforms by congruence, . A child performs several tasks with the same electrodes, so the same W applies to all the recordings of a child. This suggests representing the child by quantities that compare the covariances of two tasks and are unchanged by congruence.
Proposition 2
(Congruence invariance of generalised eigenvalues). Let A be symmetric and B symmetric positive definite, both of size C, and let W be invertible. The generalised eigenvalues of the pencil coincide, with multiplicity, with those of . In particular, the affine-invariant Riemannian distance between two positive definite matrices is invariant to congruence.
Proof.
Real recordings are often rank deficient: when components are removed by independent component analysis, the covariance of a 19-channel recording has rank smaller than 19, and the pencil is singular. We therefore whiten the recordings of a child jointly. Let be the covariances of the tasks of a child in a band, assume that their mean is positive definite, and define, for ,
Lemma 3
(Pooled whitening). Under the congruence , , the whitened matrices (7) transform as with the orthogonal matrix . Consequently, the generalised eigenvalues of every pencil are invariant to W, even when the individual are singular.
Proof.
The mean transforms as . We have
so Q is orthogonal. Moreover , hence
Adding gives . Each is positive definite because its eigenvalues are at least , and Proposition 2 with the orthogonal matrix Q concludes. □
The regularisation is added after whitening, where it commutes with the orthogonal transformation. Adding it before whitening, as in usual shrinkage, would break exact invariance. The next result bounds the effect of estimation noise on the log-eigenvalues.
Proposition 3
(Stability of log generalised eigenvalues). Let be symmetric with and , and let be symmetric perturbations with . Then, for every k,
where are the ordered generalised eigenvalues.
Proof.
Let . Since and , we have . By the Courant–Fischer characterisation, is the k-th max–min value of the Rayleigh quotient , which is monotone in A for the Loewner order and homogeneous of degree one, so . Taking logarithms and using for gives . The same argument applied to the denominator, with decreasing in B and of degree , gives a bound , and the triangle inequality concludes [58]. □
Lemma 3 and Proposition 3 define a representation of the child, the sorted log generalised eigenvalues of the whitened task pencils, that is exactly invariant to any linear mixing common to the recordings of a child and stable under bounded estimation noise. The constant trades stability against resolution of small eigenvalues. Invariance, however, says nothing about discriminability. Section 5.4 reports that this representation, although exactly invariant, carried no diagnostic information in our data. This is the main reason why the final model rests on band power, with its sensitivity to gains made explicit by Theorem 4.
4. Materials and Methods
4.1. Participants and Recordings
We analysed the dataset made public by Lotfi and colleagues on the Open Science Framework [21]. The children, aged 7 to 12 years, were recruited through a psychological clinic in Tehran. Children in the dyslexia group scored at least two standard deviations below the mean on a standardised reading and dyslexia scale and had a clinical diagnosis of reading difficulty; typically reading children had no psychological or learning disorder. All were right-handed native Persian speakers, and nonverbal intelligence did not differ between groups [20]. Parents gave written informed consent and children verbal assent [20]. The files are the baseline recordings of a study of computerised cognitive training [7,19]. Following the data owner and an earlier analysis of the same files [6], identifiers 101 to 129 correspond to dyslexic children and 130 to 165 to controls; raw recordings were available for 29 dyslexic and 25 typically reading children. Age and sex are not provided for individual children in the public release.
EEG was recorded with a Mitsar amplifier from 19 electrodes of the international 10–20 system referenced to linked earlobes, at 250 Hz [20]. Each child performed three visual tasks in separate recordings: an oddball task (OB; about 6.8 min), a 1-back task with pictures (NB; about 2.6 min) and a visuospatial 1-back task (SNB; about 2.6 min) [7].
4.2. Preprocessing
Most files of the public release list their channels in a spatial order that does not match the order of the data columns. We assigned the labels by position, after checking that the alpha rhythm was maximal over the occipital channels and that the correlation structure between channels matched that of the files labelled in the native order of the amplifier. Flat channels (standard deviation below 0.5 V) were interpolated with spherical splines. Signals were band-pass filtered between 1 and 45 Hz with a finite impulse response filter, notch-filtered at 50 and 100 Hz and cut into consecutive 2-s epochs. An epoch was rejected if its peak-to-peak amplitude exceeded 250 V on any channel or if its log-variance on any channel exceeded the median of the recording by more than three robust standard deviations. The frontopolar channels Fp1 and Fp2, dominated by ocular activity, were excluded from the rejection criteria and from all analyses, leaving channels. Recordings with fewer than 20 clean epochs were discarded. This left 159 of the 161 recordings: 54 oddball recordings (median 178 epochs, range 90–198), 52 picture 1-back recordings (median 70, range 50–78) and 53 visuospatial 1-back recordings (median 69, range 51–77), for a total of 16,688 epochs. Preprocessing used MNE-Python [59].
4.3. Features
4.3.1. Log Band Power
For each epoch and channel, the power spectral density was estimated with Welch’s method [57] using 1-s Hann windows with 50% overlap, and averaged within five bands: delta (1–4 Hz), theta (4–8 Hz), alpha (8–13 Hz), beta (13–30 Hz) and gamma (30–45 Hz). The base-10 logarithm gave a matrix per epoch, which was vectorised into 85 features. At the level of the child, the final model uses the mean of Z over all clean epochs of the oddball recording, the longest and most complete recording of each child. The gain-invariant version of this representation is , as defined in Theorem 3.
4.3.2. Spatial Covariances
For the Riemannian baseline at the epoch level, each epoch was filtered between 4 and 30 Hz with a zero-phase fourth-order Butterworth filter, and its spatial covariance was computed with a small diagonal loading (0.1% of the mean variance) to guarantee positive definiteness. These matrices were mapped to the tangent space at their Riemannian mean on the training set [45,46].
At the level of the child, covariances were computed separately in the theta, alpha and beta bands as the mean of the epoch covariances of each recording. In 61 of the 159 recordings these matrices were rank deficient, which is consistent with the removal of components before the data were released. The Riemannian baseline used the oddball covariances, shrunk by 1% towards a scaled identity matrix and mapped to the tangent space at the Riemannian mean of the training children. The invariant representation of task reactivity applied the pooled whitening (7) to the three recordings of each child, with , and collected, for each band and for each pair of tasks (NB, OB), (SNB, OB) and (SNB, NB), the 17 sorted log generalised eigenvalues and their Euclidean norm, the Riemannian distance between the two whitened covariances. This gives features. For the three children with a missing recording, the features of the missing pairs were imputed with the training mean. We checked numerically that the representation was invariant: with random gains and cross-talk matrices applied to all recordings of a child, the largest change in any feature was below .
4.4. Classifiers
4.4.1. Epoch-Level Classifiers
Three classical classifiers were applied to individual epochs: logistic regression on standardised log band power (BP + LR), logistic regression on standardised tangent-space vectors (TS + LR), both with inverse regularisation strength 0.1 and class weights inversely proportional to class frequencies, and the 1-NN rule on standardised log band power with the Euclidean distance (BP + 1-NN).
Two convolutional networks were trained end to end on the raw epochs, downsampled to 125 Hz and standardised within each recording. EEGNet [41] used 8 temporal filters of length 64, a depth multiplier of 2, 16 separable filters, average pooling and dropout 0.5. ShallowConvNet [42] used 40 temporal filters of length 13, a spatial convolution over all channels, squaring, average pooling over 35 samples with stride 7, a logarithm and dropout 0.5. Both were trained for 12 passes over the training set with the AdamW optimiser (learning rate , weight decay ), mini-batches of 128 epochs and a binary cross-entropy loss weighted for class imbalance. Networks were implemented in PyTorch.
4.4.2. Child-Level Classifiers
The child-level pipeline, fixed before the evaluation, consisted of mean imputation, standardisation, principal component analysis with 10 components and logistic regression with inverse regularisation strength 0.5 and balanced class weights. All steps were fitted on the training children of each fold only. The same pipeline was used for every child-level representation, so that differences between representations are not confounded by tuning. As a nonlinear alternative, we used an ensemble of ten multilayer perceptrons with one hidden layer of 16 rectified linear units and penalty 1.0, trained on the same 10 principal components after random oversampling of the minority class, whose probabilities were averaged (MLP ensemble).
4.5. Experiments
4.5.1. Experiment 1: Leakage
To keep the computation of the epoch-level models manageable, 40 epochs were drawn at random from each recording, giving 6,360 epochs from 54 children. Each epoch-level classifier was evaluated with record-wise stratified 5-fold cross-validation and with subject-wise stratified grouped 5-fold cross-validation (Definition 1). We report the epoch-level balanced accuracy and, after averaging the predicted probabilities over the epochs of each child, the child-level balanced accuracy. The whole procedure was repeated after permuting the labels between children: 20 permutations for BP + LR and BP + 1-NN, 10 for TS + LR and one for each network, the most expensive models.
The identification rate of Definition 2 was estimated in the folds of the record-wise scheme: the band-power features were standardised on the training fold, and for every test epoch we checked whether its nearest training epoch belonged to the same child. We also computed the identification rate over the whole set with the epoch itself excluded and, to separate within-recording from between-task similarity, with all epochs of the same recording excluded.
4.5.2. Experiment 2: Synthetic Check of Theorem 2
To test Theorem 2 over the whole range of identification rates, we simulated subjects with 27 positive and 27 negative labels assigned at random, 60 epochs per subject and 20 features. Epochs were drawn as , with and , so that the subject effect controls the identification rate. For eight values of between 0 and 2.5 and ten repetitions each, we applied record-wise 5-fold 1-NN and compared the observed balanced accuracy with the prediction (3) computed from the observed .
4.5.3. Experiment 3: Comparison of Representations
Each child-level representation was evaluated with ten repetitions of subject-wise stratified 5-fold cross-validation, each repetition with a different random partition, and summarised by the mean and standard deviation of the balanced accuracy and of the area under the receiver operating characteristic curve (AUC) [60]. Besides the final representation, we evaluated the median instead of the mean over epochs, regional averages over frontal (F3, F4, F7, F8, Fz), central (C3, C4, Cz), temporal (T3, T4, T5, T6) and posterior (P3, P4, O1, O2, Pz) electrodes, the average and the concatenation of the three tasks, relative band power and the Riemannian and invariant representations. To measure the cost of tuning on a small sample, each representation was also evaluated with nested cross-validation, in which the number of principal components (3, 5 or 10) and the regularisation strength (0.05, 0.2 or 1.0) were chosen by an inner 5-fold cross-validation on the training children, with the AUC as criterion [32].
4.5.4. Experiment 4: Final Model
For the final model (mean oddball log band power with the fixed pipeline), we report the mean and standard deviation over the ten repetitions of the balanced accuracy, AUC, sensitivity and specificity. To obtain confidence intervals that reflect the sampling of children, the probabilities of each child were averaged over the ten repetitions and the metrics were bootstrapped over children (2000 resamples, percentile intervals) [61]. Significance was assessed with the permutation test of Proposition 1: the labels were permuted between children 500 times, the full subject-wise cross-validation was repeated with five repetitions for each permutation, and the statistic was the mean AUC (and, separately, the mean balanced accuracy) over the five repetitions [56].
4.5.5. Experiment 5: Robustness to Channel Gains
Models were trained on unperturbed children. Each test child then received random channel gains, the same for all its epochs, with drawn uniformly in for ; by Lemma 2 this amounts to adding to all bands of channel c. Three models were compared: the final model on absolute log band power, the same model trained with gain augmentation (ten perturbed copies of each training child, ) and the gain-invariant model trained on . Each condition was repeated with 20 random draws of the gains for each of five cross-validation repetitions. For every test child and every fold, the exact certified radius of Theorem 4 was computed from the coefficients of the fitted pipeline.
4.6. Software
5. Results
5.1. Children Are Identifiable from a Single Epoch
The EEG of the children was highly individual. Over the 6,360 epochs of Experiment 1, the nearest neighbour of an epoch in standardised band-power space, with the epoch itself excluded, belonged to the same child in 82.5% of cases, whereas a random neighbour would belong to the same child in fewer than 2% of cases. When all epochs of the same recording were excluded, so that an epoch could only be matched to another task of the same child, the identification rate was still 38.3%. Within the folds of record-wise cross-validation, the identification rate of Definition 2 was 0.812 (range over folds 0.792–0.821). Identity, rather than diagnosis, is therefore the dominant structure in this feature space, and it is shared across tasks recorded minutes apart.
5.2. Record-Wise Evaluation Inflates Accuracy for Every Model
Figure 1 contrasts the two evaluation schemes, and Table 1 and Figure 2 give the results. With the true labels, record-wise evaluation of the three classical models produced epoch-level balanced accuracies between 0.76 and 0.92 and child-level balanced accuracies between 0.91 and 1.00. Logistic regression on tangent-space features and the 1-NN rule both classified every child correctly. With subject-wise evaluation, the same models fell to epoch-level balanced accuracies of 0.50 to 0.53 and child-level areas under the curve of 0.51 to 0.59, values compatible with chance.
The permutation analysis shows that this gap is not caused by diagnostic information. When the labels were permuted between children, record-wise evaluation still gave epoch-level balanced accuracies of for the 1-NN rule, for the tangent-space model and for band-power logistic regression, and child-level balanced accuracies of 0.87 to 1.00. Subject-wise evaluation of the same permuted data gave to , as Theorem 1 predicts. The convolutional networks showed the same pattern, to different degrees. ShallowConvNet reached 0.904 with the true labels and 0.907 with permuted labels under record-wise evaluation, against 0.498 and 0.496 under subject-wise evaluation. EEGNet, a more constrained network trained on signals standardised within each recording, identified the children less well: it reached 0.725 and 0.661 under record-wise evaluation, against 0.525 and 0.494 under subject-wise evaluation. For every model, the record-wise accuracy obtained with true labels was within a few points of the accuracy obtained with random labels, so most of it comes from identification rather than diagnosis, and the inflation grows with the capacity of the model to recognise the child.
5.3. The Optimism Follows Theorem 2
With children, Theorem 2 gives , and the measured identification rate predicts a record-wise balanced accuracy of for the 1-NN rule under permuted labels. The observed value over 20 permutations was (Figure 3a). The synthetic experiment covered identification rates from 0.02 to 1.00. Across the 80 simulated datasets, the prediction (3) and the observed balanced accuracy differed by 0.007 on average and by at most 0.027 (Figure 3b), with no systematic deviation, in agreement with the fact that the theorem is an identity in expectation. The size of the optimism is thus governed by a single, measurable quantity: when is close to 0.8, as here, a classifier with no access to the diagnosis will appear to be 90% accurate.
5.4. Honest Subject-Wise Benchmark
Table 2 and Figure 5a compare the child-level representations under subject-wise evaluation. Mean log band power of the oddball task with the fixed pipeline, the representation specified in advance as the final model, gave an area under the curve of and a balanced accuracy of . Regional averaging gave a similar area under the curve with four times fewer features (0.743), and averaging the three tasks gave the highest balanced accuracy (0.674) but a lower area under the curve (0.695). Concatenating the tasks, adding relative power or using the median instead of the mean did not help. The MLP ensemble did worse than logistic regression on the same features (balanced accuracy 0.624, AUC 0.674), and so did the end-to-end convolutional networks of Experiment 1, whose subject-wise child-level areas under the curve stayed close to 0.5 (Table 1).
Two results deserve comment. First, tuning the hyper-parameters by nested cross-validation lowered every estimate, by 0.01 to 0.05 in balanced accuracy and by 0.03 to 0.06 in area under the curve. With 43 training children per fold, the inner folds contain about nine children each, and the choice of hyper-parameters is itself noisy [8,32]. The fixed pipeline avoids this source of variance, and its estimate is not biased by selection because it was set before the evaluation; but the comparison shows how fragile performance differences of a few points are at this sample size. Second, the representations built from covariance matrices failed. The tangent-space representation of oddball covariances stayed at chance, and the invariant representation of task reactivity, although exactly invariant to linear mixing (Lemma 3), gave areas under the curve below 0.5. Values below chance of this size are expected under the null with stratified folds and a flexible model (Remark 1) and indicate the absence of signal rather than a reversed one.
5.5. Final Model
Over the ten repetitions, the final model had a balanced accuracy of , an area under the curve of , a sensitivity of and a specificity of . When the probabilities of each child were averaged over the repetitions, the balanced accuracy was 0.705 (95% bootstrap interval 0.578–0.823) and the area under the curve 0.752 (0.611–0.869); sensitivity was 0.690 (0.517–0.844) and specificity 0.720 (0.542–0.880). The width of these intervals, about 0.25, is typical of a sample of 54 children [8].
The permutation test confirmed that the model captured diagnostic information (Figure 4b). Over 500 permutations of the labels between children, the mean area under the curve of the full subject-wise procedure was 0.498, its 95th percentile 0.646, and only three permutations reached the observed value of 0.736, giving . For the balanced accuracy, the observed value was 0.673, the null mean 0.504 and .
The coefficients of the model, expressed per standard deviation of each feature (Figure 5b), point to a familiar pattern. Higher theta power over frontal, central and midline electrodes increased the predicted probability of dyslexia, whereas higher alpha and beta power over the left temporal electrodes (T3, T5) and beta power over the lateral frontal electrodes (F7, F8) decreased it. Excess theta and reduced faster activity have often been reported in dyslexic children [3,4], and the left temporal region is central to the reading network. These coefficients describe a regularised multivariate model and should not be read as independent effects of each feature.
Figure 5.
Representations and model coefficients. (a) Subject-wise area under the curve of the child-level representations with the fixed pipeline (mean over ten repetitions; error bars, standard deviation where recorded); the label inside each bar gives the balanced accuracy. Orange: final model. (b) Coefficients of the final model fitted on all children, expressed as the change in the logit per standard deviation of each log band-power feature. Orange: higher power increases the probability of dyslexia; blue: it decreases it.
Figure 5.
Representations and model coefficients. (a) Subject-wise area under the curve of the child-level representations with the fixed pipeline (mean over ten repetitions; error bars, standard deviation where recorded); the label inside each bar gives the balanced accuracy. Orange: final model. (b) Coefficients of the final model fitted on all children, expressed as the change in the logit per standard deviation of each log band-power feature. Orange: higher power increases the probability of dyslexia; blue: it decreases it.

5.6. Robustness to Channel Gains
Random gains on the electrodes of the test children degraded the final model steadily (Figure 6a, Table 3). Its balanced accuracy fell from 0.673 without perturbation to 0.656, 0.648, 0.618 and 0.584 for maximal gain factors of 1.1, 1.25, 1.5 and 2, and its area under the curve from 0.736 to 0.617. Gain-augmented training lowered the unperturbed accuracy to 0.629 but degraded more slowly, to 0.601 at a factor of 2. The gain-invariant model, built on the maximal invariant of Theorem 3, was by construction unaffected: its balanced accuracy was 0.621 and its area under the curve 0.638 at every level. Below a gain factor of about 1.5 the absolute model remained the most accurate, and above it the invariant model did.
The certified radii explain this behaviour and show that the empirical curves understate the fragility of the absolute model (Figure 6b). For the absolute model, the constant of Theorem 4 had a median of 53.7 across folds, and the median certified radius of a test child corresponded to a gain factor of only 1.049: for half of the children, there exists a set of gains of at most 5% on every electrode that changes the diagnosis. Only 19% of the children were certified against gains of 10%, and 1.5% against gains of 25%. Correctly classified children had larger radii than misclassified ones (median gain factors 1.064 and 1.031), which is expected since they lie further from the decision boundary. Gain augmentation reduced to 22.0 and raised the median certified factor to 1.077, with 39% of children certified at 10%. For the gain-invariant model, was zero to machine precision, as Corollary 2 requires, and every child was certified for every gain. Random gains change the prediction less often than worst-case gains because the effects of independent gains on different channels partly cancel, which is why the empirical accuracy decreases slowly while the certified fraction collapses.
6. Discussion
6.1. Principal Findings
This study combined a small number of exact results with experiments designed to test them. Three findings stand out. First, the inflation of accuracy produced by record-wise evaluation is not an occasional artefact but a predictable quantity. For the nearest-neighbour rule it is given in closed form by the identification rate of the children, and in our data this rate was so high that a classifier with no access to the diagnosis appeared to be 90% accurate at the epoch level and perfectly accurate at the level of the child. Logistic regression on Riemannian features and ShallowConvNet reached the same level with permuted labels, and EEGNet and band-power logistic regression were inflated to a lesser degree, which shows that the mechanism is not specific to the classifier used in the theorem. Second, an honest subject-wise evaluation of a simple child-level spectral model gave a balanced accuracy of 0.66 and an area under the curve of 0.74, clearly above chance by a permutation test that respects the structure of the data, but far from the accuracies often reported for this problem. Third, this model is fragile with respect to electrode gains: for half of the children, gains of 5% on each electrode can be chosen to change the prediction. The invariant model that removes this fragility costs about four points of balanced accuracy and ten points of area under the curve.
6.2. Implications for Published Accuracies
Theorem 2 turns a qualitative warning into a calculation that any reader can carry out. The identification rate only requires the features and the child of each epoch, not the labels, and it can be computed in a few seconds. A study that reports a record-wise accuracy close to has not shown that its features carry information about dyslexia, however sophisticated its classifier. On the dataset analysed here, two earlier studies reported high accuracies [6,7]. We do not claim that their results are due to leakage, since their features and protocols differ from ours and we did not reproduce them, but our experiments show that record-wise evaluation on these recordings reaches 0.90 to 0.92 without any diagnostic information. Reported accuracies of this order on this dataset are therefore uninformative unless the evaluation keeps the epochs of each child together.
Remark 3 adds that averaging predictions over the epochs of a child, which might seem to restore a child-level analysis, does not help: what matters is whether the child was present in the training set. The same reasoning applies to other grouping factors that make samples similar, such as sessions, recording days or sites [13,30], and to data augmentation performed before the split.
6.3. Deep Networks on Small Clinical Samples
ShallowConvNet reached record-wise accuracies as high as the best classical models, both with true and with permuted labels, EEGNet reached lower but still inflated values, and both fell to chance under subject-wise evaluation. With 54 children, a network that learns spatial and temporal filters from raw epochs has ample capacity to learn the identity of each child, and little opportunity to learn a pattern shared by children of the same group. This agrees with the observation that, with small training sets, well-regularised linear models remain competitive in EEG classification [44], and with the report that segment-based splits inflate the accuracy of deep networks for EEG-based diagnosis [17]. Deep learning may become useful for this problem once datasets of several hundred children are available, or with self-supervised pre-training on large unlabelled EEG corpora [43], but on the samples currently available its apparent superiority depends on the evaluation.
6.4. Accuracy Against Invariance
Theorem 3 shows that any classifier that is fully invariant to electrode gains can only use the shape of the spectrum of each channel, and must ignore the absolute level of each channel. In our data, this restriction cost accuracy: the invariant model reached a balanced accuracy of 0.62 and an area under the curve of 0.64, against 0.67 and 0.74 for the absolute model without perturbation. Part of the diagnostic information therefore lies in absolute power or in its topography, which is also what the coefficients of the absolute model suggest. Theorem 4 quantifies the price of using this information: the absolute model is certified only against small gains. Gain augmentation sits between the two, trading part of the accuracy for a larger certified radius.
Which of these models should be preferred depends on the intended use. Within one laboratory, with one amplifier and controlled impedances, the absolute model is more accurate. Across devices or sites, where gains may differ by tens of percent, the invariant model is the safer choice, and the crossing point in Figure 6a, near a gain factor of 1.5, gives an idea of where the balance shifts. In all cases, the certified radius is cheap to compute for affine models and could be reported for every prediction, together with the probability.
6.5. Why the Invariant Covariance Representation Failed
The representation of task reactivity by generalised eigenvalues of whitened covariance pencils had attractive mathematical properties: exact invariance to any linear mixing of the channels common to the recordings of a child (Lemma 3) and stability under bounded noise (Proposition 3). It nevertheless carried no diagnostic information. Two explanations are plausible. The first is that the changes in spatial covariance between the three visual tasks are similar in dyslexic and typically reading children: the tasks differ in their demands on attention and working memory, and these demands may reorganise the EEG in the same way in both groups. The second is that invariance removes too much: the representation is blind to everything that is common to the three tasks, including absolute power, which carried most of the signal in the band-power model. Invariance is a property of the representation, and discriminability is a property of the data; the two must be checked separately.
6.6. Recommendations
From the theory and the experiments, we derive the following practical recommendations for EEG-based classification of developmental disorders.
- Split the data by child, so that no child contributes to both the training and the test set of a fold, and state this explicitly.
- Report the identification rate of the features and, when record-wise results are shown for comparison, the value expected under the null hypothesis.
- Test significance with permutations of the labels between children, repeating the complete pipeline, including any feature selection and tuning, for each permutation.
- Fix the pipeline in advance or tune it by nested cross-validation, and report repeated cross-validation with the variability across repetitions and confidence intervals that reflect the number of children.
- Report the sensitivity of the model to plausible measurement changes, such as electrode gains, and, for affine models, the certified radius of Theorem 4.
6.7. Limitations
Several limitations should be kept in mind. The sample is small, 54 children from a single clinic and a single amplifier, and the confidence intervals of the final model are wide. The public release does not include age and sex, and the dyslexic and typically reading children may differ in age, which affects spectral power [25,26]; the band-power model may capture part of such a difference. The group sizes in the public files also differ from those described in earlier reports of the same study. Theorem 2 is exact for the 1-NN rule only; for other classifiers the identification rate is a diagnostic rather than a formula, even though the convolutional and Riemannian models reached the predicted level in our data. The gain model of Section 3.3 is a first-order description of the sensor; it does not capture changes in noise, reference or electrode position, which require the more general mixing model of Section 3.4 or explicit models of the measurement. Finally, the networks were trained with a single standard configuration and were evaluated with one permutation each, which was enough to show leakage but not to estimate the variability of their null distribution.
6.8. Future Work
The theory can be extended in three directions. For k-nearest-neighbour rules and kernel classifiers, the identification rate can be replaced by the probability that the vote is dominated by epochs of the same child, which leads to similar but less explicit formulas. For deep networks, the identification capacity of the learned representation could be measured directly on the penultimate layer. On the measurement side, certified radii can be derived for gains combined with cross-talk, using the bound of Proposition 3, and for nonlinear classifiers with Lipschitz constraints. Empirically, the most important step is a larger, multi-site sample with age and sex, in which the trade-off between accuracy and invariance can be measured across real devices rather than simulated gains.
7. Conclusions
Classifying children with dyslexia from short EEG epochs is a problem in which evaluation matters more than the choice of classifier. We proved that, when the EEG carries no diagnostic information, subject-wise cross-validation has an expected balanced accuracy of exactly one half, whereas record-wise cross-validation of a nearest-neighbour classifier reaches , a value fixed by the rate at which an epoch is matched to its own child. On an open dataset of 54 children, this rate was 0.81, the theorem predicted a record-wise balanced accuracy of 0.904 with random labels, and we observed 0.903. Riemannian logistic regression and ShallowConvNet reached the same level, and every model fell to chance when the children were kept apart.
Evaluated subject-wise, a child-level model of oddball band power reached a balanced accuracy of 0.66 and an area under the curve of 0.74, significant by a permutation test over children (). Deep networks did not exceed chance, and covariance representations that are exactly invariant to channel mixing carried no diagnostic signal. Modelling electrode gains as a group action, we derived the maximal invariant of log band power and the exact certified radius of affine classifiers. The absolute model was certified only against gains of about 5% for half of the children, while the gain-invariant model was fully robust at a cost in accuracy.
The EEG carries some information about dyslexia, but much less than published accuracies suggest. The tools developed here are simple: an identification rate, a permutation test over children and a certified radius. They can be applied to any dataset in which several samples come from each person, and they give readers and reviewers a direct way to tell honest performance from leakage.
Supplementary Materials
The following supporting information can be downloaded at the website of this paper posted on Preprints.org. File S1: analysis code, derived input data, numerical results and figures.
Author Contributions
Conceptualization, A.A., K.K., S.A. and Sh.A.; methodology, A.A. and S.A.; software, A.A. and K.K.; validation, A.A., K.K., S.A. and Sh.A.; formal analysis, A.A. and S.A.; investigation, A.A.; resources, A.A.; data curation, A.A., K.K., S.A. and Sh.A.; writing—original draft preparation, A.A., K.K., S.A. and Sh.A.; writing—review and editing, A.A., K.K., S.A. and Sh.A.; visualization, A.A., K.K., S.A. and Sh.A.; supervision, A.A. and K.K.; project administration, A.A. and K.K.; All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Ethical review and approval were waived for this study because it is a secondary analysis of de-identified data that are publicly available on the Open Science Framework. The data were originally collected for a master’s thesis at the University of Tehran; no ethics committee or approval number is reported in the published descriptions of the dataset [7,20].
Informed Consent Statement
According to the original report, written informed consent was obtained from the parents and verbal assent from the children [20].
Data Availability Statement
The EEG data analysed in this study are openly available on the Open Science Framework at https://osf.io/2n94v [21]. The analysis code, the derived input data and all numerical results are provided as Supplementary Material (File S1).
Acknowledgments
We thank Salahadin Lotfi and colleagues for making their dataset publicly available.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| AUC | Area under the receiver operating characteristic curve |
| BA | Balanced accuracy |
| BP | Log band power |
| CV | Cross-validation |
| EEG | Electroencephalography |
| LR | Logistic regression |
| MLP | Multilayer perceptron |
| NB | 1-back task with pictures |
| 1-NN | One-nearest-neighbour rule |
| OB | Oddball task |
| SNB | Visuospatial 1-back task |
| TS | Riemannian tangent space |
References
- Peterson, R.L.; Pennington, B.F. Developmental dyslexia. Lancet 2012, 379, 1997–2007. [Google Scholar] [CrossRef]
- Lyon, G.R.; Shaywitz, S.E.; Shaywitz, B.A. A definition of dyslexia. Ann. Dyslexia 2003, 53, 1–14. [Google Scholar] [CrossRef]
- Cainelli, E.; Vedovelli, L.; Carretti, B.; Bisiacchi, P. EEG correlates of developmental dyslexia: a systematic review. Ann. Dyslexia 2023, 73, 184–213. [Google Scholar] [CrossRef]
- Papagiannopoulou, E.A.; Lagopoulos, J. Resting state EEG hemispheric power asymmetry in children with dyslexia. Front. Pediatr. 2016, 4, 11. [Google Scholar] [CrossRef]
- Xue, H.; Wang, Z.; Tan, Y.; Yang, H.; Fu, W.; Xue, L.; Zhao, J. Resting-state EEG reveals global network deficiency in dyslexic children. Neuropsychologia 2020, 138, 107343. [Google Scholar] [CrossRef]
- Parmar, S.; Paunwala, C. Early detection of dyslexia based on EEG with novel predictor extraction and selection. Discov. Artif. Intell. 2023, 3, 33. [Google Scholar] [CrossRef]
- Kheyrkhah Shali, R.; Setarehdan, S.K. The impact of electrode reduction in the diagnosis of dyslexia. In Proceedings of the 2020 27th National and 5th International Iranian Conference on Biomedical Engineering (ICBME), Tehran, Iran, 26–27 November 2020; pp. 118–125. [Google Scholar] [CrossRef]
- Varoquaux, G. Cross-validation failure: small sample sizes lead to large error bars. NeuroImage 2018, 180, 68–77. [Google Scholar] [CrossRef]
- Combrisson, E.; Jerbi, K. Exceeding chance level by chance: the caveat of theoretical chance levels in brain signal classification and statistical assessment of decoding accuracy. J. Neurosci. Methods 2015, 250, 126–136. [Google Scholar] [CrossRef]
- Näpflin, M.; Wildi, M.; Sarnthein, J. Test–retest reliability of resting EEG spectra validates a statistical signature of persons. Clin. Neurophysiol. 2007, 118, 2519–2524. [Google Scholar] [CrossRef]
- da Silva Castanheira, J.; Orozco Perez, H.D.; Misic, B.; Baillet, S. Brief segments of neurophysiological activity enable individual differentiation. Nat. Commun. 2021, 12, 5713. [Google Scholar] [CrossRef]
- Campisi, P.; La Rocca, D. Brain waves for automatic biometric-based user recognition. IEEE Trans. Inf. Forensics Secur. 2014, 9, 782–800. [Google Scholar] [CrossRef]
- Saeb, S.; Lonini, L.; Jayaraman, A.; Mohr, D.C.; Kording, K.P. The need to approximate the use-case in clinical machine learning. GigaScience 2017, 6, gix019. [Google Scholar] [CrossRef]
- Kapoor, S.; Narayanan, A. Leakage and the reproducibility crisis in machine-learning-based science. Patterns 2023, 4, 100804. [Google Scholar] [CrossRef]
- Varoquaux, G.; Raamana, P.R.; Engemann, D.A.; Hoyos-Idrobo, A.; Schwartz, Y.; Thirion, B. Assessing and tuning brain decoders: cross-validation, caveats, and guidelines. NeuroImage 2017, 145, 166–179. [Google Scholar] [CrossRef]
- Poldrack, R.A.; Huckins, G.; Varoquaux, G. Establishment of best practices for evidence for prediction: a review. JAMA Psychiatry 2020, 77, 534–540. [Google Scholar] [CrossRef]
- Brookshire, G.; Kasper, J.; Blauch, N.M.; Wu, Y.C.; Glatt, R.; Merrill, D.A.; Gerrol, S.; Yoder, K.J.; Quirk, C.; Lucero, C. Data leakage in deep learning studies of translational EEG. Front. Neurosci. 2024, 18, 1373515. [Google Scholar] [CrossRef]
- Li, R.; Johansen, J.S.; Ahmed, H.; Ilyevsky, T.V.; Wilbur, R.B.; Bharadwaj, H.M.; Siskind, J.M. The perils and pitfalls of block design for EEG classification experiments. IEEE Trans. Pattern Anal. Mach. Intell. 2021, 43, 316–333. [Google Scholar] [CrossRef]
- Lotfi, S.; Rostami, R.; Shokoohi-Yekta, M.; Ward, R.T.; Motamed-Yeganeh, N.; Mathew, A.S.; Lee, H.J. Effects of computerized cognitive training for children with dyslexia: an ERP study. J. Neurolinguist. 2020, 55, 100904. [Google Scholar] [CrossRef]
- Lotfi, S.; Ward, R.T.; Mathew, A.S.; Shokoohi-Yekta, M.; Rostami, R.; Motamed-Yeganeh, N.; Larson, C.L.; Lee, H.J. Limited visual working memory capacity in children with dyslexia: an ERP study. NeuroRegulation 2022, 9, 98–109. [Google Scholar] [CrossRef]
- Lotfi, S. Effects of Computerized Cognitive Training for Children with Dyslexia: An ERP Study [Dataset]. Open Science Framework. 2021. Available online: https://osf.io/2n94v (accessed on 17 August 2026).
- Ramus, F.; Rosen, S.; Dakin, S.C.; Day, B.L.; Castellote, J.M.; White, S.; Frith, U. Theories of developmental dyslexia: insights from a multiple case study of dyslexic adults. Brain 2003, 126, 841–865. [Google Scholar] [CrossRef]
- Goswami, U. A temporal sampling framework for developmental dyslexia. Trends Cogn. Sci. 2011, 15, 3–10. [Google Scholar] [CrossRef]
- Lehongre, K.; Ramus, F.; Villiermet, N.; Schwartz, D.; Giraud, A.L. Altered low-gamma sampling in auditory cortex accounts for the three main facets of dyslexia. Neuron 2011, 72, 1080–1090. [Google Scholar] [CrossRef]
- Clarke, A.R.; Barry, R.J.; McCarthy, R.; Selikowitz, M. Age and sex effects in the EEG: development of the normal child. Clin. Neurophysiol. 2001, 112, 806–814. [Google Scholar] [CrossRef]
- Hill, A.T.; Clark, G.M.; Bigelow, F.J.; Lum, J.A.G.; Enticott, P.G. Periodic and aperiodic neural activity displays age-dependent changes across early-to-middle childhood. Dev. Cogn. Neurosci. 2022, 54, 101076. [Google Scholar] [CrossRef]
- Stone, M. Cross-validatory choice and assessment of statistical predictions. J. R. Stat. Soc. Ser. B 1974, 36, 111–147. [Google Scholar] [CrossRef]
- Arlot, S.; Celisse, A. A survey of cross-validation procedures for model selection. Stat. Surv. 2010, 4, 40–79. [Google Scholar] [CrossRef]
- Nadeau, C.; Bengio, Y. Inference for the generalization error. Mach. Learn. 2003, 52, 239–281. [Google Scholar] [CrossRef]
- Roberts, D.R.; Bahn, V.; Ciuti, S.; Boyce, M.S.; Elith, J.; Guillera-Arroita, G.; et al. Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Ecography 2017, 40, 913–929. [Google Scholar] [CrossRef]
- Kriegeskorte, N.; Simmons, W.K.; Bellgowan, P.S.F.; Baker, C.I. Circular analysis in systems neuroscience: the dangers of double dipping. Nat. Neurosci. 2009, 12, 535–540. [Google Scholar] [CrossRef]
- Varma, S.; Simon, R. Bias in error estimation when using cross-validation for model selection. BMC Bioinform. 2006, 7, 91. [Google Scholar] [CrossRef]
- Hosseini, M.; Powell, M.; Collins, J.; Callahan-Flintoft, C.; Jones, W.; Bowman, H.; Wyble, B. I tried a bunch of things: the dangers of unexpected overfitting in classification of brain data. Neurosci. Biobehav. Rev. 2020, 119, 456–467. [Google Scholar] [CrossRef]
- Vabalas, A.; Gowen, E.; Poliakoff, E.; Casson, A.J. Machine learning algorithm validation with a limited sample size. PLoS ONE 2019, 14, e0224365. [Google Scholar] [CrossRef]
- Arbabshirani, M.R.; Plis, S.; Sui, J.; Calhoun, V.D. Single subject prediction of brain disorders in neuroimaging: promises and pitfalls. NeuroImage 2017, 145, 137–165. [Google Scholar] [CrossRef]
- Gasser, T.; Bächer, P.; Steinberg, H. Test–retest reliability of spectral parameters of the EEG. Electroencephalogr. Clin. Neurophysiol. 1985, 60, 312–319. [Google Scholar] [CrossRef]
- Finn, E.S.; Shen, X.; Scheinost, D.; Rosenberg, M.D.; Huang, J.; Chun, M.M.; Papademetris, X.; Constable, R.T. Functional connectome fingerprinting: identifying individuals using patterns of brain connectivity. Nat. Neurosci. 2015, 18, 1664–1671. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
- Roy, Y.; Banville, H.; Albuquerque, I.; Gramfort, A.; Falk, T.H.; Faubert, J. Deep learning-based electroencephalography analysis: a systematic review. J. Neural Eng. 2019, 16, 051001. [Google Scholar] [CrossRef]
- Craik, A.; He, Y.; Contreras-Vidal, J.L. Deep learning for electroencephalogram (EEG) classification tasks: a review. J. Neural Eng. 2019, 16, 031001. [Google Scholar] [CrossRef]
- Lawhern, V.J.; Solon, A.J.; Waytowich, N.R.; Gordon, S.M.; Hung, C.P.; Lance, B.J. EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. J. Neural Eng. 2018, 15, 056013. [Google Scholar] [CrossRef]
- Schirrmeister, R.T.; Springenberg, J.T.; Fiederer, L.D.J.; Glasstetter, M.; Eggensperger, K.; Tangermann, M.; Hutter, F.; Burgard, W.; Ball, T. Deep learning with convolutional neural networks for EEG decoding and visualization. Hum. Brain Mapp. 2017, 38, 5391–5420. [Google Scholar] [CrossRef]
- Banville, H.; Chehab, O.; Hyvärinen, A.; Engemann, D.A.; Gramfort, A. Uncovering the structure of clinical EEG signals with self-supervised learning. J. Neural Eng. 2021, 18, 046020. [Google Scholar] [CrossRef]
- Lotte, F.; Bougrain, L.; Cichocki, A.; Clerc, M.; Congedo, M.; Rakotomamonjy, A.; Yger, F. A review of classification algorithms for EEG-based brain–computer interfaces: a 10 year update. J. Neural Eng. 2018, 15, 031005. [Google Scholar] [CrossRef]
- Barachant, A.; Bonnet, S.; Congedo, M.; Jutten, C. Multiclass brain–computer interface classification by Riemannian geometry. IEEE Trans. Biomed. Eng. 2012, 59, 920–928. [Google Scholar] [CrossRef]
- Congedo, M.; Barachant, A.; Bhatia, R. Riemannian geometry for EEG-based brain–computer interfaces; a primer and a review. Brain-Comput. Interfaces 2017, 4, 155–174. [Google Scholar] [CrossRef]
- Yger, F.; Berar, M.; Lotte, F. Riemannian approaches in brain–computer interfaces: a review. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 1753–1762. [Google Scholar] [CrossRef]
- Pennec, X.; Fillard, P.; Ayache, N. A Riemannian framework for tensor computing. Int. J. Comput. Vis. 2006, 66, 41–66. [Google Scholar] [CrossRef]
- Bhatia, R. Positive Definite Matrices; Princeton University Press: Princeton, NJ, USA, 2007. [Google Scholar] [CrossRef]
- Zanini, P.; Congedo, M.; Jutten, C.; Said, S.; Berthoumieu, Y. Transfer learning: a Riemannian geometry framework with applications to brain–computer interfaces. IEEE Trans. Biomed. Eng. 2018, 65, 1107–1116. [Google Scholar] [CrossRef]
- Rodrigues, P.L.C.; Jutten, C.; Congedo, M. Riemannian Procrustes analysis: transfer learning for brain–computer interfaces. IEEE Trans. Biomed. Eng. 2019, 66, 2390–2401. [Google Scholar] [CrossRef]
- Sabbagh, D.; Ablin, P.; Varoquaux, G.; Gramfort, A.; Engemann, D.A. Predictive regression modeling with MEG/EEG: from source power to signals and cognitive states. NeuroImage 2020, 222, 116893. [Google Scholar] [CrossRef]
- Lehmann, E.L.; Romano, J.P. Testing Statistical Hypotheses, 3rd ed.; Springer: New York, NY, USA, 2005. [Google Scholar] [CrossRef]
- Cohen, J.; Rosenfeld, E.; Kolter, Z. Certified adversarial robustness via randomized smoothing. In Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA, 9–15 June 2019; pp. 1310–1320. [Google Scholar] [CrossRef]
- Brodersen, K.H.; Ong, C.S.; Stephan, K.E.; Buhmann, J.M. The balanced accuracy and its posterior distribution. In Proceedings of the 20th International Conference on Pattern Recognition, Istanbul, Turkey, 23–26 August 2010; pp. 3121–3124. [Google Scholar] [CrossRef]
- Phipson, B.; Smyth, G.K. Permutation p-values should never be zero: calculating exact p-values when permutations are randomly drawn. Stat. Appl. Genet. Mol. Biol. 2010, 9, 39. [Google Scholar] [CrossRef]
- Welch, P. The use of fast Fourier transform for the estimation of power spectra: a method based on time averaging over short, modified periodograms. IEEE Trans. Audio Electroacoust. 1967, 15, 70–73. [Google Scholar] [CrossRef]
- Horn, R.A.; Johnson, C.R. Matrix Analysis, 2nd ed.; Cambridge University Press: Cambridge, UK, 2012. [Google Scholar] [CrossRef]
- Gramfort, A.; Luessi, M.; Larson, E.; Engemann, D.A.; Strohmeier, D.; Brodbeck, C.; et al. MEG and EEG data analysis with MNE-Python. Front. Neurosci. 2013, 7, 267. [Google Scholar] [CrossRef]
- Hanley, J.A.; McNeil, B.J. The meaning and use of the area under a receiver operating characteristic (ROC) curve. Radiology 1982, 143, 29–36. [Google Scholar] [CrossRef]
- Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall: New York, NY, USA, 1993. [Google Scholar] [CrossRef]
- Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef]
- Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar] [CrossRef]
Figure 1.
Evaluation schemes and final model. (a) In record-wise cross-validation, the epochs are split at random, so every test child also contributes epochs to the training set. (b) In subject-wise cross-validation, all epochs of a child are in the same fold. Each square is an epoch and each column a child; one fold is shown. (c) The child-level spectral model used in Experiments 3 to 5. All steps that are fitted to data are fitted on the training children of each fold only.
Figure 1.
Evaluation schemes and final model. (a) In record-wise cross-validation, the epochs are split at random, so every test child also contributes epochs to the training set. (b) In subject-wise cross-validation, all epochs of a child are in the same fold. Each square is an epoch and each column a child; one fold is shown. (c) The child-level spectral model used in Experiments 3 to 5. All steps that are fitted to data are fitted on the training children of each fold only.

Figure 2.
Leakage in record-wise evaluation. Epoch-level balanced accuracy of five classifiers under record-wise (blue) and subject-wise (orange) 5-fold cross-validation, (a) with the true diagnostic labels and (b) with labels permuted between children. BP, log band power; TS, Riemannian tangent space; LR, logistic regression; 1-NN, nearest neighbour. Error bars: standard deviation over permutations (one permutation for the networks). The dashed line marks chance.
Figure 2.
Leakage in record-wise evaluation. Epoch-level balanced accuracy of five classifiers under record-wise (blue) and subject-wise (orange) 5-fold cross-validation, (a) with the true diagnostic labels and (b) with labels permuted between children. BP, log band power; TS, Riemannian tangent space; LR, logistic regression; 1-NN, nearest neighbour. Error bars: standard deviation over permutations (one permutation for the networks). The dashed line marks chance.

Figure 3.
Verification of Theorem 2. (a) Record-wise balanced accuracy of the 1-NN rule as a function of the identification rate under the null hypothesis: theoretical line with , 80 synthetic datasets (blue) and the Lotfi data with permuted labels (orange, mean ± standard deviation over 20 permutations). (b) Observed against predicted balanced accuracy for the synthetic datasets; the dashed line is the identity.
Figure 3.
Verification of Theorem 2. (a) Record-wise balanced accuracy of the 1-NN rule as a function of the identification rate under the null hypothesis: theoretical line with , 80 synthetic datasets (blue) and the Lotfi data with permuted labels (orange, mean ± standard deviation over 20 permutations). (b) Observed against predicted balanced accuracy for the synthetic datasets; the dashed line is the identity.

Figure 4.
Final model under subject-wise evaluation. (a) Receiver operating characteristic curves of the ten cross-validation repetitions (thin lines) and of the probabilities averaged over repetitions (thick line). (b) Null distribution of the cross-validated area under the curve over 500 permutations of the labels between children, and observed value.
Figure 4.
Final model under subject-wise evaluation. (a) Receiver operating characteristic curves of the ten cross-validation repetitions (thin lines) and of the probabilities averaged over repetitions (thick line). (b) Null distribution of the cross-validated area under the curve over 500 permutations of the labels between children, and observed value.

Figure 6.
Robustness to electrode gains. (a) Subject-wise balanced accuracy when random gains with maximal factor a are applied to the test children, for the absolute model, the gain-augmented model and the gain-invariant model (mean ± standard deviation over repetitions and draws). (b) Fraction of test children whose prediction is certified, by Theorem 4, against every set of gains with factor at most on each electrode.
Figure 6.
Robustness to electrode gains. (a) Subject-wise balanced accuracy when random gains with maximal factor a are applied to the test children, for the absolute model, the gain-augmented model and the gain-invariant model (mean ± standard deviation over repetitions and draws). (b) Fraction of test children whose prediction is certified, by Theorem 4, against every set of gains with factor at most on each electrode.

Table 1.
Balanced accuracy of epoch-level classifiers under record-wise and subject-wise 5-fold cross-validation (Experiment 1; 6,360 epochs, 54 children). Permuted: labels permuted between children; mean ± standard deviation over permutations (20 for BP + LR and BP + 1-NN, 10 for TS + LR, 1 for the networks). Child: probabilities averaged over the epochs of each child. AUC: child-level area under the curve.
Table 1.
Balanced accuracy of epoch-level classifiers under record-wise and subject-wise 5-fold cross-validation (Experiment 1; 6,360 epochs, 54 children). Permuted: labels permuted between children; mean ± standard deviation over permutations (20 for BP + LR and BP + 1-NN, 10 for TS + LR, 1 for the networks). Child: probabilities averaged over the epochs of each child. AUC: child-level area under the curve.
| Record-wise | Subject-wise | |||||
|---|---|---|---|---|---|---|
| Model | Labels | Epoch BA | Child BA | Epoch BA | Child BA | Child AUC |
| BP + LR | true | 0.756 | 0.906 | 0.522 | 0.461 | 0.548 |
| permuted | 0.724 ± 0.031 | 0.867 ± 0.043 | 0.507 ± 0.054 | 0.512 ± 0.091 | 0.506 ± 0.110 | |
| TS + LR | true | 0.919 | 1.000 | 0.534 | 0.528 | 0.593 |
| permuted | 0.914 ± 0.015 | 0.998 ± 0.005 | 0.494 ± 0.038 | 0.495 ± 0.065 | 0.495 ± 0.073 | |
| BP + 1-NN | true | 0.909 | 1.000 | 0.525 | 0.516 | 0.565 |
| permuted | 0.903 ± 0.005 | 1.000 ± 0.000 | 0.493 ± 0.027 | 0.476 ± 0.083 | 0.476 ± 0.081 | |
| ShallowConvNet | true | 0.904 | 0.904C | 0.498 | 0.498C | 0.512 |
| permuted | 0.907 | 0.907C | 0.496 | 0.496C | 0.491 | |
| EEGNet | true | 0.725 | 0.725C | 0.525 | 0.525C | 0.554 |
| permuted | 0.661 | 0.661C | 0.494 | 0.494C | 0.440 | |
BA, balanced accuracy; BP, log band power; LR, logistic regression; TS, Riemannian tangent space; 1-NN, nearest neighbour.
Table 2.
Subject-wise performance of child-level representations (Experiment 3; 54 children, ten repetitions of stratified 5-fold cross-validation, mean ± standard deviation over repetitions). Fixed: pipeline with 10 principal components and inverse regularisation 0.5, set before the evaluation. Nested: both hyper-parameters chosen by inner cross-validation. LR, logistic regression; MLP, ensemble of multilayer perceptrons.
Table 2.
Subject-wise performance of child-level representations (Experiment 3; 54 children, ten repetitions of stratified 5-fold cross-validation, mean ± standard deviation over repetitions). Fixed: pipeline with 10 principal components and inverse regularisation 0.5, set before the evaluation. Nested: both hyper-parameters chosen by inner cross-validation. LR, logistic regression; MLP, ensemble of multilayer perceptrons.
| Fixed pipeline | Nested tuning | ||||
|---|---|---|---|---|---|
| Representation (classifier) | Dim. | BA | AUC | BA | AUC |
| Band power, oddball, mean (LR; final model) | 85 | 0.662 ± 0.019 | 0.740 ± 0.021 | 0.624 ± 0.039 | 0.690 |
| Band power, oddball, mean (MLP) | 85 | 0.624 ± 0.044 | 0.674 ± 0.031 | – | – |
| Band power, oddball, median (LR) | 85 | 0.638 ± 0.039 | 0.722 | 0.618 ± 0.039 | 0.679 |
| Regional band power, oddball (LR) | 20 | 0.650 ± 0.033 | 0.743 | 0.638 ± 0.046 | 0.712 |
| Regional absolute + relative power, oddball (LR) | 40 | 0.640 ± 0.037 | 0.708 | 0.626 ± 0.054 | 0.677 |
| Band power, three-task average (LR) | 85 | 0.649 ± 0.032 | 0.669 | 0.614 ± 0.042 | 0.646 |
| Regional band power, three-task average (LR) | 20 | 0.674 ± 0.026 | 0.695 | 0.648 ± 0.031 | 0.656 |
| Regional band power, three tasks concatenated (LR) | 60 | 0.638 ± 0.027 | 0.690 | 0.614 ± 0.032 | 0.638 |
| Regional absolute + relative, three-task average (LR) | 40 | 0.643 ± 0.018 | 0.672 | 0.598 ± 0.035 | 0.619 |
| Tangent space, oddball covariances (LR) | 459 | 0.493 ± 0.051 | 0.550 ± 0.051 | – | – |
| Invariant task reactivity (LR) | 162 | 0.464 ± 0.075 | 0.430 ± 0.062 | – | – |
| Invariant task reactivity (MLP) | 162 | 0.430 ± 0.049 | 0.403 ± 0.050 | – | – |
| Invariant reactivity + band power (LR) | 247 | 0.519 ± 0.062 | 0.523 ± 0.056 | – | – |
BA, balanced accuracy; AUC, area under the receiver operating characteristic curve; Dim., number of features. Standard deviations of the AUC are given where they were recorded.
Table 3.
Robustness to random channel gains applied to the test children (Experiment 5; five repetitions of 5-fold subject-wise cross-validation, 20 draws of the gains per level). Gains: uniform in . Certified radius: median over test children and folds of the exact radius of Theorem 4, expressed as a gain factor.
Table 3.
Robustness to random channel gains applied to the test children (Experiment 5; five repetitions of 5-fold subject-wise cross-validation, 20 draws of the gains per level). Gains: uniform in . Certified radius: median over test children and folds of the exact radius of Theorem 4, expressed as a gain factor.
| Balanced accuracy for maximal gain factor a | Certified | |||||
|---|---|---|---|---|---|---|
| Model | 1 | 1.1 | 1.25 | 1.5 | 2 | radius |
| Absolute spectrum | 0.673 | 0.656 | 0.648 | 0.618 | 0.584 | 1.049 |
| Gain-augmented training | 0.629 | 0.623 | 0.628 | 0.621 | 0.601 | 1.077 |
| Gain-invariant spectrum | 0.621 | 0.621 | 0.621 | 0.621 | 0.621 | ∞ |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.