bioRxiv Science⌕ Search

bioRxiv · 10.1101/2025.09.11.675707

Building an Ecosystem of Seizure Localization Methods: Neural Fragility as the First Step

Abstract

The current treatment for drug-resistant epilepsy (DRE) is surgical intervention, which relies on accurate identification of the seizure onset zone (SOZ) using intracranial EEG (iEEG) data. iEEG analysis with computational epileptogenic zone identification algorithms (CEZIAs) is a promising step towards better SOZ localization and surgical outcomes. A key step in validation and adoption of CEZIAs is to allow for widespread shared development and validation of code and data. We describe a set of three R packages to achieve this goal. Our ecosystem of seizure localization methods involves a straightforward analysis pipeline, standardized data formatting and storage, and completely documented and open-source code. The TableContainer package allows for easy storage and manipulation of table data, serving as groundwork for the Epoch package, which is specifically geared towards iEEG data. The Epoch package allows for cropping, resampling, and visualization of iEEG data and provides publicly downloadable iEEG data for reproducibility. Finally, the EZFragility package uses these two foundational packages to analyze iEEGs for SOZ localization using the Neural Fragility method described by Li et al. EZFragility was built using the same core principles as the original method but included several enhancements in computational efficiency and user experience. It accurately reproduces neural fragility results for both sample patients used in the original paper. This project serves as the first step towards building an open-source, reproducible ecosystem of seizure localization methods in R. Future steps include the addition of other CEZIAs using the framework and sample data already made available by these packages. Significance StatementLocalization of the seizure onset zone (SOZ) is a critical step in surgical treatment of drug-resistant epilepsy. Computational epileptogenic zone identification algorithms (CEZIAs) are promising potential tools to aid in clinical decision-making. However, shared development and verification of CEZIAs is difficult due to obscured source code, variable data structures, and limited data availability. The EZFragility software package1 is the first step in building a collaborative ecosystem of CEZIAs that can be downloaded, tested, and used without these roadblocks. EZFragility1 and its dependent packages TableContainer2 and Epoch3 are freely available on the Comprehensive R Archive Network (CRAN), with source code viewable on GitHub. They provide an open-source framework for CEZIA code, data formatting, and data access, all with extensive documentation.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Wang, J., LESAGE, A.-C., Zhou, O., Malagaris, I., O'Leary, S., Rodriguez, L. C., Silveira, D. C., Wang, Z., Zhang, Y., Karas, P. J.. 2025-09-17. Building an Ecosystem of Seizure Localization Methods: Neural Fragility as the First Step. https://doi.org/10.1101/2025.09.11.675707. https://biorxiv.science/record/biorxiv%3A10.1101%2F2025.09.11.675707/building-an-ecosystem-of-seizure-localization-methods-neural-fragility-as-the-first-step

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↗