ThinkNet: Evolutionary Deep Ensembles for Efficient Motor-Imagery EEG Classification

Abdul Basit, Saim Rehman, Muhammad ShafiqueBHI 2026

TL;DR

If you train a brain–computer interface (BCI) decoder on a group of people and deploy it on a brand-new user without any calibration, how do you pick the best model? ThinkNet is a strict, auditable evaluation and model-selection framework for subject-independent motor-imagery EEG decoding. Its sobering—and refreshing—finding is that while compact models consistently outperform bulky ones, standard source-subject validation is surprisingly unreliable at picking the winning architecture family for an unseen person.

What Problem Does This Paper Address?

Motor-imagery brain–computer interfaces (MI-BCIs) translate imagined movements—like squeezing a left hand or moving your feet—into control commands from non-invasive EEG signals. Ideally, a BCI should work "out of the box" on a new user without requiring tedious per-person calibration, and it should run fast enough on embedded hardware for real-time control.

In practice, two headaches get in the way:

  1. Massive inter-subject variability: Everyone's brainwaves look different. A model tuned on eight people can easily stumble on the ninth.
  2. Leaky evaluation: In the literature, reported accuracies often depend heavily on preprocessing, data splits, or model-selection rules where information from the held-out test subject accidentally leaks into normalization, architecture choice, or ensemble selection.

ThinkNet asks a clean, practical question: When the target user is completely unavailable during training, which compact decoder and inference policy should we choose using only source-subject validation—and how much can we actually trust that choice?

Methods

ThinkNet is not a new neural network block; it is a validation-controlled selection and evaluation protocol built around strict Leave-One-Subject-Out (LOSO) cross-validation. Every fold holds out one subject for testing and uses only the remaining source subjects for normalization, training, validation, and policy selection.

Fig. 1. ThinkNet methodology. In fold-specific search and gating, source data support normalization, validation, and selection without held-out-subject feedback. Fixed unsupervised signal cleaning is applied without labels or model feedback.

Its pipeline has four key stages:

  • Standardized Preprocessing: Raw EEG trials undergo missing-sample repair, unsupervised EOG-guided Independent Component Analysis (ICA) to attenuate eye-blink artifacts (using no class labels or model feedback), 4–40 Hz band-pass filtering, 50 Hz notch filtering, average referencing, and train-only channel-wise z-score normalization.
  • Evolutionary Configuration Search: Instead of hand-picking hyperparameters, ThinkNet uses evolutionary search to optimize a joint accuracy–size fitness score: $$F(\theta) = w_a \widetilde{\text{Acc}}_{\text{val}}(\theta) - w_p \widetilde{\log(\text{Params})}(\theta)$$ The authors run both a compact depthwise-separable search (1,647 candidates) and a broad 10-family search (15,390 candidates across compact CNNs, temporal convolutions, filter banks, and transformers), plus a budget-matched random-search control.

  • Validation-Gated Inference: Rather than blindly ensembling models, ThinkNet uses a validation gate (with margin $m = 0$) to decide between the validation-best single model and three ensemble policies (logit averaging, softmax averaging, or majority vote).

  • Frozen Post-Discovery Benchmark: Separately, the authors freeze seven representative configurations—including their discovered compact decoder—and evaluate them across all LOSO folds.

Datasets

  • BCI Competition IV-2a (Session T): The primary benchmark, consisting of 9 subjects, 22 EEG channels, 4 motor-imagery classes (left hand, right hand, feet, tongue), and 288 trials per subject.
  • Lee2019 / OpenBMI (Session 1): A larger 54-subject dataset (62 channels, 2 classes, 100 trials per subject) used as an independent, frozen-configuration LOSO consistency check for size–performance and selector-regret patterns.

Key Insights and Ideas

  • Source validation is a weak compass under subject shift: In the 10-family search, picking the family with the highest source-validation accuracy beat uniform random choice by 1.72 percentage points (40.01% vs. 38.29%). However, it failed to beat a simple fixed-family EEGNet policy (40.29%) and trailed the non-deployable "test-best" family by 6.08 points. Within-fold rank transfer was weak ($\rho = 0.256$).
  • Compactness wins: Across both datasets, compact models ($\le 25\text{K}$ parameters) consistently occupied the high-accuracy region, averaging 2.83 points higher than noncompact models on BCI IV-2a and 2.94 points higher on Lee2019.
  • Evolution's real superpower is shrinking models, not boosting accuracy: Compared to budget-matched random search, evolutionary search achieved higher source-validation accuracy and selected 22.8% smaller models (by geometric mean parameter count), but showed no detected held-out accuracy gain ($-0.81$ points).
  • Gated ensembles help, but at a cost: Validation-gated ensembling improved mean accuracy for compact models, though individual subject gains varied (5 of 9 subjects improved, 2 tied, 2 worsened) and inference latency increased.

Key Results

  • Compact Decoder Performance: In the frozen benchmark, the ThinkNet compact decoder achieved 44.35 ± 15.70% accuracy with just 4.9K parameters, 19 KiB of FP32 weights, and 0.99 ms batch-1 CUDA inference latency on a Jetson AGX Orin (essentially matching the EEGNet baseline at 44.06 ± 16.04% and 0.98 ms).
  • Gated Ensemble Gains: For the compact-six model set, validation gating boosted mean accuracy by 2.47 points (from 40.84% to 43.31%), while increasing Orin latency from 2.24 ms (validation-best single model) to 9.41 ms (compact-six logit averaging).

Limitations and Future Work

The authors are candid about what this work does not show:

  • Selector reliability: The biggest bottleneck in zero-target MI-EEG is that source validation does not reliably identify the best architecture family for an unseen user.
  • Offline, single-session scope: All experiments are offline and single-session; cross-session drift, online closed-loop control, and clinical effectiveness remain outside the current evidence.

Future work should focus on subject-shift-aware validation strategies and target adaptation methods that can safely bridge the gap between source-trained models and new users.

Summary updated

BibTeX
@inproceedings{basit2026thinknet,
  author = {Abdul Basit and Saim Rehman and Muhammad Shafique},
  title = {{ThinkNet: Evolutionary Deep Ensembles for Efficient Motor-Imagery EEG Classification}},
  booktitle = {BHI},
  year = {2026},
  url = {https://openreview.net/forum?id=P9IJ7TjP8w},
}
Figure