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

TL;DR

Researchers have developed MEEG-ResNet3D, a deep learning framework that incorporates a "spatial clustering prior" to automate the detection of epileptic spikes and seizures. By grouping brain sensors based on their physical proximity before processing, the model effectively captures regional spiking patterns, outperforming state-of-the-art methods on both MEG and EEG datasets.

What Problem Does This Paper Address?

Identifying epileptic spikes (brief electrical disturbances) and seizures in Magnetoencephalography (MEG) and Electroencephalography (EEG) is a cornerstone of epilepsy diagnosis and surgical planning. However, manual review of these multi-channel recordings is incredibly labor-intensive and requires highly specialized expertise.

While many automated deep learning models exist, they often suffer from two main flaws:

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

Methods

The authors introduce a paradigm shift in how neural networks "see" brain data:

  • 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 that the model's input structure reflects the physical reality of the brain's anatomy.
  • 3D Input Encoding: They reorganize 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 both space and time simultaneously.
  • MEEG-ResNet3D: A custom 17-layer 3D Residual Network designed specifically for this 3D input.
  • Spatial Attention Module: A novel component within the network that calculates "intra-cluster" and "inter-cluster" attention. This helps the model focus on the most relevant groups of sensors and the most important channels within those groups when making a classification.

Datasets

The model was validated on two major datasets:

  1. Sanbo-CMR (MEG): A large, private dataset containing 306-channel MEG recordings from 132 subjects, meticulously annotated by expert neurophysiologists.
  2. TUSZ (Temple University Seizure Detection): The largest public EEG dataset. The authors used version 2.0.0, focusing on 19 channels across hundreds of subjects to test the model's generalizability to different recording modalities.

Key Insights and Ideas

  • Regionality is the Key: The "aha moment" of the paper is that spikes are not just temporal events; they are spatial ones. By forcing the network to look at clusters of nearby sensors, the model can better distinguish a localized epileptic spike from global noise.
  • 3D Convolutions > 2D: While 2D CNNs are standard for images, the authors show that 3D CNNs are superior for neural signals because they can preserve the hierarchical relationship between a specific sensor, its immediate neighbors (the cluster), and the brain as a whole.
  • Interpretability via Grad-CAM: The authors used activation maps to show that the model actually "looks" at specific clusters corresponding to the spike's origin. This provides a level of clinical explainability, as a doctor can see where the model detected the spike.

Key Results

The proposed MEEG-ResNet3D set new benchmarks for performance:

  • MEG Spike Detection: Achieved an F1 score of 94.73% on the Sanbo-CMR dataset, outperforming the previous state-of-the-art (ResNet3D-18) by 1.85%.
  • EEG Seizure Detection: Achieved a weighted F1 score of 93.2% on the TUSZ dataset, a significant 3.8% improvement over the leading DCRNN-GNN model.
  • Ablation Proof: When the researchers "scrambled" the sensor positions (removing the spatial prior), the performance dropped significantly, proving that the spatial arrangement is indeed the "secret sauce" of their high accuracy.

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • Coordinate Mapping: The current clustering relies on Euclidean coordinates. Future work could explore more complex coordinate systems or "scalp maps" to improve clustering accuracy.
  • Data Integration: The researchers plan to investigate integrating frequency-domain data (like Fourier transforms) alongside the time-series data to provide the model with even more diagnostic context.
  • Dataset Access: The primary MEG dataset (Sanbo-CMR) is private; validating the model on other large-scale public MEG datasets would further solidify its robustness.

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