bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.11.25.768266

DualBranchEEG: A Dual-Branch CNN BiLSTM Network with Temporal Attention and Spectral Features for Three Class EEG Seizure Classification

Abstract

Automated seizure detection from electroencephalography (EEG) is a key step toward closed-loop brain-computer interface (BCI) systems and clinical decision support. We present DualBranchEEG, a dual-branch network that fuses (i) a temporal branch--a three-block 1-D convolutional encoder, a two-layer bidirectional LSTM and an additive attention layer--operating on the raw z-scored waveform, with (ii) a spectral branch--an MLP on log-power spectral density (PSD) features from Welch's method. We evaluate three-class classification (normal, interictal, ictal) on the Bonn University EEG dataset (500 single-channel recordings, 173.61 Hz) using a single stratified 70/15/15 split (seed 42). We position this work as a transparent reference implementation and exploratory comparison, not as evidence of superiority. A CNN-BiLSTM baseline (728,387 parameters; last-time-step readout, no attention, no augmentation) attains 96.00% test accuracy (72/75) and a macro AUC-ROC of 0.9795; five-fold stratified cross-validation of this baseline gives 98.40 {+/-} 1.52% accuracy and 0.9952 {+/-} 0.0071 AUC-ROC. The full DualBranchEEG (823,556 parameters) attains the same 96.00% test accuracy, macro F1 of 0.9543 and macro AUC-ROC of 0.9952. In the ablation, CNN-only, BiLSTM-only and CNN+BiLSTM+attention variants each reach 94.67%, and the full model is one test recording better; with only 75 test recordings these differences lie within sampling uncertainty (95% Wilson interval for 96.00%: 88.9-98.6%). Band-power differences between all class pairs are significant in all five canonical EEG bands. Grad-CAM, t-SNE and attention visualisations are reported as qualitative diagnostics only. We document all known methodological limitations, including PSD standardisation fitted on all 500 recordings and Welch's default 50% segment overlap.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Singh, R., Cherukuri, J. V., Somanna, A., Jauhari, S.. 2026-11-27. DualBranchEEG: A Dual-Branch CNN BiLSTM Network with Temporal Attention and Spectral Features for Three Class EEG Seizure Classification. https://doi.org/10.64898/2026.11.25.768266. https://biorxiv.science/record/biorxiv%3A10.64898%2F2026.11.25.768266/dualbrancheeg-a-dual-branch-cnn-bilstm-network-with-temporal-attention-and-spectral-features-for-thr

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite bioRxiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related preprints

Translational Post-Fatality Evaluation of Novel CNS Gene Therapy Risk for CAP-002

Adeno-associated virus capsids engineered for receptor-mediated crossing of the blood-brain barrier after intravenous delivery represent a major advance for central nervous system gene therapy, but the first dosing in the CAP-002 clinical trial for STXBP1-related disorders resulted in patient death due to cerebral edema, uncovering a novel safety risk. Investigation of the ADAM15 mechanism mediating CAP-002's brain tropism supports conservation between non-human primates and humans but that it may activate cellular stress response signaling in endothelial cells while crossing barriers. A subsequent limited macaque case series evaluated doses beyond regulatory toxicology requirements, as the original IND-enabling toxicology studies did not show brain toxicity. In animals dosed at exposures substantially exceeding the clinical dose associated with the fatal CAP-002 event and in the absence of prophylactic corticosteroids, magnetic resonance imaging revealed focal cerebral edema and neuropathological review identified signs of vascular fragility corroborating the clinical case study. This finding supports the development of novel safety paradigms for intravenously administered brain-targeting vectors. Given that another engineered capsid with an ADAM15-independent mechanism did not produce acute brain toxicity up to 2.5x1014 vg/kg in non-human primates, the extent to which these observations generalize to other blood-brain barrier-crossing capsids remains unclear.

neuroscience↗

Hopfield networks trained with natural images express orientation selectivity

Orientation selectivity in the primary visual cortex is usually framed as a feedforward computation, although V1 contains dense recurrent circuitry capable of storing and transforming population activity. We ask whether orientation selectivity emerges in unsupervised recurrent networks trained only on natural images. We studied two related models, both using a Hopfield network to model a V1 columnar pinwheel structure. The two models include a single-receptive-field Hopfield network and a tiled V1 network containing many local populations with explicit within- and cross-receptive-field connectivity. Both models replicate orientation selectivity levels observed in neurophysiology after Hebbian learning. We find that natural image activity contains orientation specific structure that recurrent circuitry can amplify or erase. This orientation specific structure can be learned and mirrored simply by unsupervised Hebbian learning on natural images.

neuroscience↗

Ignoring hemispheric homology miscalibrates parcel-level null models and cross-validation of brain maps: a simulation study and reanalysis

Background: Brain maps are compared region by region with two tools: spin tests, which assess the correlation between two maps against randomly rotated copies of one map, and prediction models, which are assessed on held-out regions (cross-validation). Both treat regions as observations, yet a region and its homologue in the other hemisphere are near-duplicates. We examined whether ignoring this hemispheric homology distorts both tools, using simulated maps unrelated to the predictors, so that every significant result is a false positive, simulated maps with a known signal, and 12 ENIGMA disorder maps of cortical thickness. Results: Real maps were nearly symmetric, but the rotated maps of common spin tests were not, because the two spheres of the standard template are not mirror images. With 68 regions, the conventional spin on this template declared 9% of correlations between unrelated maps significant, against 6% for a symmetric spin, which moves homologous regions together; 5% is expected. Multivariate analyses were affected more. A regression of an unrelated simulated map on 28 predictors, fitted to all regions and tested against null maps, was significant for 51% of maps with the conventional spin and 8% with the symmetric spin. With the conventional spin and random cross-validation folds, which train the model on homologues of the test regions, 39% of maps appeared predictable; when bilateral blocks of cortex were held out, 3-4% did. In the ENIGMA data, a regression on receptor maps fitted to all regions was significant for 10 of 12 maps with the conventional spin and for 1 with the symmetric spin. The remedies were incomplete with 360 regions, and bilateral blocks reduced the power of ridge regression for strong signals. Conclusions: Null models for brain maps should keep their bilateral structure, and cross-validation should keep a region and its homologue on the same side of every split and hold out spatial blocks. In real data, the conclusions of an analysis depended on these choices. The reanalysis alone cannot show which protocol is correct; in the simulations, the protocols that respect homology came closest to the nominal error rate.

neuroscience↗