Automated Detection of Epileptic Spikes and Seizures Incorporating a Novel Spatial Clustering Prior

Hanyang Dong, Shurong Sheng, Xiongfei Wang, Jia-Hong Gao, Yi Sun, Wanli Yang, Kuntao Xiao, Pengfei Teng, Guoming Luan, Zhao Lv · DOI

Abstract

Identifying epileptic spikes and seizures in Magnetoencephalography (MEG) and Electroencephalography (EEG) is a critical yet labor-intensive task in clinical neurology. This paper presents MEEG-ResNet3D, a deep learning framework that integrates a spatial clustering prior to capture regional spiking patterns. By grouping sensors based on physical proximity and utilizing 3D convolutions, the model effectively distinguishes true epileptic events from morphologically similar noise. Validated on large-scale MEG and EEG datasets, the framework achieves state-of-the-art performance, demonstrating the importance of spatial context in neural signal analysis.

The Challenge of Automated Spike Detection

Identifying epileptic spikes—brief electrical disturbances—is a cornerstone of epilepsy diagnosis and surgical planning. However, manual review of multi-channel recordings is labor-intensive and requires specialized expertise. Automated models often struggle with two primary issues:

  1. Ignoring Spatial Context: Many models treat signal channels as independent streams, failing to account for "regional spiking characteristics" where sensors physically near each other record the same event from different perspectives.
  2. Morphological Similarity: It is notoriously difficult for AI to distinguish between a true epileptic spike and a "non-epileptic spike" caused by biological noise (like eye blinks) that may look similar in a single channel but originate from different brain regions.
Comparison of non-epileptic and epileptic spike clips in raw MEG signals.

Methodology: Incorporating Spatial Priors

The researchers introduced a paradigm shift by reorganizing how neural networks process brain data through a Spatial Clustering Prior. Instead of feeding raw channel lists into a network, they use K-means clustering to group sensors based on their 3D coordinates ($x, y, z$) on the head. This ensures the model's input structure reflects the physical reality of the brain's anatomy.

MEEG-ResNet3D Architecture

The framework, illustrated below, consists of several key modules:

  • Prior Extraction Module: Creates 3D coordinates and performs spatial clustering to define sensor groups.
  • 3D Input Encoding: Reorganizes the 2D signal (channels × time) into a 3D volume (clusters × sensors-per-cluster × time). This allows the model to use 3D convolutions to learn features across space and time simultaneously.
  • Spatial Attention Module: A novel component that calculates "intra-cluster" and "inter-cluster" attention, helping the model focus on the most relevant groups of sensors and the most important channels within those groups.
The MEEG-ResNet3D architecture, featuring the Prior Extraction Module and the 3D-convolutional pipeline.

Key Insights and Results

The core innovation of this work is the realization that spikes are spatial events as much as temporal ones. By forcing the network to look at clusters of nearby sensors, the model can better distinguish localized epileptic activity from global noise.

Performance Benchmarks

The model was validated on two major datasets: the private Sanbo-CMR (MEG) dataset and the public TUSZ (EEG) dataset.

  • MEG Spike Detection: Achieved an F1 score of 94.73%, outperforming the previous state-of-the-art by 1.85%.
  • EEG Seizure Detection: Achieved a weighted F1 score of 93.2%, a 3.8% improvement over leading Graph Neural Network (GNN) models.
  • Ablation Proof: When researchers "scrambled" sensor positions (removing the spatial prior), performance dropped significantly, confirming that the spatial arrangement is the primary driver of the model's high accuracy.

Conclusion and Future Work

MEEG-ResNet3D demonstrates that incorporating physical sensor locations as a structural prior significantly enhances the detection of epileptic events. Future research will explore more complex coordinate mapping systems and the integration of frequency-domain data to provide the model with even greater diagnostic context. While the results on the Sanbo-CMR dataset are promising, further validation on large-scale public MEG datasets will be essential for clinical adoption.

Summary updated

BibTeX
@inproceedings{dong2024automated,
  author = {Hanyang Dong and Shurong Sheng and Xiongfei Wang and Jia-Hong Gao and Yi Sun and Wanli Yang and Kuntao Xiao and Pengfei Teng and Guoming Luan and Zhao Lv},
  title = {{Automated Detection of Epileptic Spikes and Seizures Incorporating a Novel Spatial Clustering Prior}},
  booktitle = {BIBM},
  year = {2024},
  doi = {10.1109/bibm62325.2024.10822337},
}
Figure