Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.04.11.648468

Dissociating physiological ripples and epileptiform discharges with vision transformers

Abstract

Two frequently studied bursts of neural activity in the hippocampus are normal physiological ripples and abnormal interictal epileptiform discharges (IEDs). While they are different waveforms, IEDs are notoriously picked up as false positives when using typical automated ripples detectors which are prone to sharp edge artifacts. This has created challenges for studying ripples and IEDs independently. We leveraged recent advances in computer vision on time-frequency feature representations to enable more comprehensive and objective dissociation of these phenomena. We retrospectively evaluated human intracranial recordings from 46 hippocampal depth electrode sites among 17 patients with focal epilepsy, the majority of whom had a seizure-onset zone/network involving the hippocampus. We implemented a common human ripple detection algorithm and broadband spectrograms of all detected "ripple candidates" were projected into low-dimensional space. We segmented them using k-means to infer pseudo-labels for probable ripples and probable IEDs. Independently, human expert IED labels were manually annotated for comparison. State-of-the-art vision transformer models were implemented on individual spectrograms to approach ripple vs. IED dissociation as an image classification problem. We detected 31,847 ripple/IED candidates, and a median 3.9% per patient (range: 0-47.2%) were IEDs based on expert label overlap. Low-dimensional projection of spectrograms separated canonical IEDs vs. ripples better than raw or ripple-filtered waveforms. Canonical ripple and IED candidates emerged at opposite poles with a continuous landscape of intermediates in between. A binary vision transformer model trained on expert-labeled IED vs. non-IED candidate spectrograms with 5-fold cross-validation showed a mean area under the curve (AUC) of 0.970 and mean precision-recall curve of 0.694, both significantly above chance. To evaluate generalizability, we implemented a leave-one-patient-out cross-validation approach, in which training on pseudo-labels and testing on expert-labeled data demonstrated near-expert performance (mean AUC 0.966 across patients, range 0.892-0.997). Transformer-derived attention maps revealed that models were tuned to triangle-like edge artifact spatial features in the spectrograms. Model-derived probabilities (i.e. of being an IED) for all candidates demonstrated continuous transitions between ripples vs. IEDs, as opposed to binary clustering. The delineation between ripples and IEDs appears best represented as a gradient (i.e. not binary) due to physiological ripple features overlapping with sharpened and/or high frequency pathophysiological IED features. Vision transformers nevertheless perform virtually at human expert levels in dissociating these phenomena by leveraging time-frequency spatial features enabled by neural data spectrograms. Such tools applied to spectrotemporal representations may augment comprehensive investigations in cognitive neurophysiology and epileptiform signal biomarker optimization for closed-loop applications.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhang, D., Kleen, J.. 2025-04-18. Dissociating physiological ripples and epileptiform discharges with vision transformers. https://doi.org/10.1101/2025.04.11.648468

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Different hippocampal subfield volumes predict source memory performance and general cognitive ability in an adult lifespan sample

Modest positive associations between episodic memory performance and whole hippocampal and hippocampal subfield volumes have been reported in numerous prior studies. A smaller number of studies have reported associations between hippocampal volume and performance on tests of non-mnemonic cognition. The present study examined whether these associations were evident in a lifespan sample of cognitively healthy adults. Of particular interest was whether any identified associations were sensitive to age, and whether associations between subfield volumes and mnemonic and non-mnemonic performance were subfield dependent. We acquired high-resolution T1- and T2-weighted structural images from 163 adults (18-87 years of age). Participants also undertook a comprehensive neuropsychological test battery and an in-scanner test of source memory. Principal components analysis was employed to reduce the neuropsychological test scores to 5 cognitive components. Two components reflected memory performance while the other three reflected different aspects of non-mnemonic cognition. Hippocampal subfields (Cornu Ammonis (CA)1, CA2-3, dentate gyrus (DG) and subiculum) were segmented and measured with the Automated Segmentation of Hippocampus Subfields (ASHS) package. Source memory performance was selectively associated across participants with CA2-3 volume. By contrast, both mnemonic and non-mnemonic component scores derived from the test battery were associated exclusively with the volume of the DG. All associations were age-invariant. The findings indicate that different cognitive domains can be dissociated by virtue of their associations with different hippocampal subfields. Of importance, these associations appear to be life-long and hence are unlikely to reflect individual differences in age-related decline in structural integrity.

neuroscience↗

Cell type specific astrocytic feedback regulates excitation inhibition balance and cortical network dynamics

Astrocytes actively regulate synaptic transmission and neuronal excitability, yet their role in orchestrating macroscopic cortical network regimes and slow-wave oscillations remains an active area of reasearch. This study investigates how bidirectional neuron astrocyte interactions shape emergent population dynamics using a computational network model of excitatory and inhibitory neurons coupled to an astrocyte. The results identify astrocytic feedback topology, rather than astrocytic coupling strength alone, as a key determinant of emergent cortical network dynamics. By systematically dissecting pathway-specific connectivity, it has been shown that the neuronal population driving astrocytic activation and the neuronal population receiving gliotransmission jointly determine whether the network occupies asynchronous irregular (AI), synchronous irregular (SI), synchronous regular(SR), asynchronous regular(AR) or quiescent regimes.Directing gliotransmission selectively onto excitatory neurons consistently promotes population synchrony regardless of the population influencing astrocytic dynamics, whereas selective modulation of inhibitory interneurons induces network quiescence via strong suppression. Under dual-target gliotransmission, network synchrony is dictated by the population driving astrocytic dynamics: excitatory-only drive promotes synchrony, while combined or inhibitory-specific drive preserves asynchronous states. Furthermore, the model reveals that astrocytic signaling kinetics provide an additional temporal control mechanism that regulates the frequency and persistence of self sustained up states.

neuroscience↗

VCP inhibition prevents cone photoreceptor degeneration in the cpfl1 mouse model of achromatopsia

Achromatopsia (ACHM) is a rare autosomal recessive retinal disorder characterized by absent cone photoreceptor function from early life, leading to severe visual impairment. Mutations in genes involved in the cone phototransduction cascade frequently result in elevated cyclic guanosine monophosphate (cGMP) levels and activation of stress pathways, including endoplasmic reticulum (ER) stress and the unfolded protein response. Targeting common downstream mechanisms rather than individual mutations may provide a broadly applicable therapeutic strategy. Here, we investigated whether pharmacological inhibition of valosin-containing protein (VCP), a key regulator of ER and protein homeostasis, can prevent cone degeneration in the spontaneous cone photoreceptor function loss 1 (cpfl1) mouse model of ACHM. Organotypic culture of retinal explants from cpfl1 mice were treated with the selective VCP inhibitor ML240. Cone survival, cell death, opsin expression and localization were assessed by TUNEL assay, immunohistochemistry, and quantitative image analysis. ML240 treatment significantly increased cone density and improved cone opsin expression and trafficking to the outer segments (OSs) in cpfl1 explants compared to controls. Importantly, rhodopsin trafficking in rod photoreceptors was unaffected, indicating that VCP inhibition did not impair normal rod phototransduction. These findings demonstrate that VCP inhibition by ML240 effectively preserves cone photoreceptors and improves cone-specific functional markers in the cpfl1 model. Targeting VCP may represent a mutation-independent therapeutic strategy for preventing cone death in ACHM.

neuroscience↗