Search bioRxiv⌕ Search

bioRxiv · 10.1101/2023.01.24.525308

TSD: Transformers for Seizure Detection

Abstract

Epilepsy is a common neurological disorder that sub-stantially deteriorates patients safety and quality of life. Electroencephalogram (EEG) has been the golden-standard technique for diagnosing this brain disorder and has played an essential role in epilepsy monitoring and disease management. It is extremely laborious and challenging, if not practical, for physicians and expert humans to annotate all recorded signals, particularly in long-term monitoring. The annotation process often involves identifying signal segments with suspected epileptic seizure features or other abnormalities and/or known healthy features. Therefore, automated epilepsy detection becomes a key clinical need because it can greatly improve clinical practices efficiency and free up human expert time to attend to other important tasks. Current automated seizure detection algorithms generally face two challenges: (1) models trained for specific patients, but such models are patient-specific, hence fail to generalize to other patients and real-world situations; (2) seizure detection models trained on large EEG datasets have low sensitivity and/or high false positive rates, often with an area under the receiver operating characteristic (AUROC) that is not high enough for potential clinical applicability. This paper proposes Transformers for Seizure Detection, which we refer to as TSD in this manuscript. A Transformer is a deep learning architecture based on an encoder-decoder structure and on attention mechanisms, which we apply to recorded brain signals. The AUROC of our proposed model has achieved 92.1%, tested with Temple Universitys publically available electroencephalogram (EEG) seizure corpus dataset (TUH). Additionally, we highlight the impact of input domains on the models performance. Specifically, TSD performs best in identifying epileptic seizures when the input domain is a time-frequency. Finally, our proposed model for seizure detection in inference-only mode with EEG recordings shows outstanding performance in classifying seizure types and superior model initialization.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ma, Y., Liu, C., Ma, M. S., Yang, Y., Truong, N. D., Kavehei, O.. 2023-01-24. TSD: Transformers for Seizure Detection. https://doi.org/10.1101/2023.01.24.525308

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

KEEP EXPLORING

Related preprints

Comparative study of chlorophyll measurement in Physcomitrium patens moss using a conventional microscope adapted for combined 2D+1D imaging and spectral analysis

Imaging spectroscopy often requires expensive and complex equipment. Here we show a simple procedure for attaching a standard miniature fiber spectrometer to a conventional microscope, allowing easy integration of 2D imaging with 1D high-resolution spectral measurements. This combination provides much of the benefit of a full imaging spectrometer without the large equipment investment, and we provide instructions for modifying microscopes to this setup and the present measurements of living cells that demonstrate their performance. Using this setup, we compare the quantitative measurement of chlorophyll concentration in Physcomitrium patens moss using color imaging and spectral sampling.

bioengineering↗

De novo designed single-domain antibodies protect against lethal cobra venom neurotoxicity in vivo

Generative protein design can now rapidly produce de novo binders with high affinity and functional activity against a wide range of targets, including lethal snake venom toxins. However, so far most reported successes rely on new-to-nature scaffolds with limited therapeutic precedent. Single-domain antibodies (VHHs) offer a clinically validated alternative scaffold that can bind and neutralize long-chain -neurotoxins, which are some of the most lethal components in snake venoms. Here we compare three recently established de novo design models with VHH-design capabilities (Germinal, RFantibody, and BoltzGen) for their ability to generate VHHs against the neurotoxin -cobratoxin from the monocled cobra (Naja kaouthia). Using standardized model inputs and evaluation criteria based on AlphaFold3 interface confidence (ipTM) and RMSD self-consistency, we find that Germinal was the only method to generate designs passing stringent in silico criteria for experimental testing. We therefore performed a larger Germinal design campaign employing three different VHH frameworks and experimentally validated 46 designs in vitro. Of these, 42 expressed as soluble proteins and we identified four binding hits derived from two of the three tested frameworks. Of the four binders, two lead candidates were further characterized and demonstrated high affinity (KDs of 4.1 nM and 10.8 nM), monomeric behavior and low polyreactivity, indicating favorable biophysical and developability properties, as well as functional toxin neutralization in vitro. To assess their therapeutic potential we investigated their ability to protect against -cobratoxin toxicity in vivo. Both candidates fully protected mice after -cobratoxin challenge, with 100% survival compared to a lethal control. One candidate also retained notable neutralization capacity against whole venom of Naja kaouthia with a survival of 56%, while the other protected 22% when tested in a rescue setting. Together, we demonstrate that de novo VHH design can generate high affinity single-domain antibodies with in vivo protection against lethal cobra venom neurotoxicity, and provide practical insights into method- and framework-dependent performance.

bioengineering↗

Simple Feedback for Complex Movement: Capturing Whole-Limb Reorganization during Single-IMU Gait Retraining

Clinical gait retraining typically relies on multi-sensor arrays and high-dimensional feedback displays, imposing setup and interpretation burdens that limit routine clinical deployment. We developed a single-IMU visual biofeedback system that delivers real-time feedback of Lower Limb Trajectory Error (LLTE), a composite kinematic error metric integrating knee position and shank angle across the stance phase. Twenty able-bodied adults walked on a treadmill under two visual biofeedback targets (flexed-knee, extended-knee) while receiving either corrected (n=10) or uncorrected (n=8) feedback, where the correction accounted for limb orientation at initial contact. LLTE and stance-phase knee kinematics adapted consistently under the flexed-knee target for both feedback groups, with feedback formulation moderating the temporal trajectory of change. Adaptation toward the extended-knee target was limited, likely because participants were already operating near terminal knee extension and because the scalar error metric provided limited directional information for correction. Ankle range of motion (ROM) changed significantly across the stance phase under both target conditions, while hip ROM did not. Multiscale multivariate sample entropy (MSMVSE) increased monotonically with time scale across all conditions, with no statistically distinguishable difference between corrected and uncorrected feedback. These results suggest that single-IMU LLTE biofeedback can modify gait mechanics and that adaptation was expressed across multiple lower-limb segments rather than through changes at a single joint.

bioengineering↗