NeuroGRIP: Retrieval-Augmented Graph Refinement for Knowledge-Grounded EEG Seizure Diagnosis

Lincan Li, Zheng Chen, Yushun DongarXiv 2026

TL;DR

NeuroGRIP bridges the gap between data-driven deep learning and clinical expertise by using a Retrieval-Augmented Generation (RAG) framework to prune noisy, medically implausible connections from EEG brain network graphs. By grounding Spatial-Temporal Graph Neural Networks (STGNNs) in a structured knowledge graph built from authoritative medical guidelines, it simultaneously boosts seizure detection accuracy and provides clinically verifiable explanations.

What Problem Does This Paper Address?

Electroencephalography (EEG) is the gold standard for non-invasive seizure diagnosis, capturing the complex, dynamic way seizure activity originates in a focal area and spreads across the brain. To model these spatial and temporal dependencies, researchers increasingly rely on Spatial-Temporal Graph Neural Networks (STGNNs).

However, existing STGNN approaches suffer from a major flaw: they are purely data-driven. Because EEG data is notoriously noisy, these models often learn redundant, clinically impossible connections between brain regions. This lack of "clinical plausibility" makes doctors hesitant to trust their predictions. On the flip side, simply throwing Large Language Models (LLMs) at raw EEG data doesn't work either; without proper domain grounding, LLMs are prone to hallucinations and can miss critical biomarkers. NeuroGRIP addresses this by explicitly injecting expert medical knowledge directly into the graph-learning process.

Methods

NeuroGRIP introduces a multi-stage pipeline that combines graph neural networks with a specialized GraphRAG architecture:

  1. Knowledge Base & KG Construction: The authors curated a domain-specific knowledge base from authoritative international epilepsy guidelines (including ILAE, AES, and NICE). They used GPT-4o to perform Named Entity Recognition (NER) across 12 medical categories and extract clinical triplets (head, relation, tail) to form a structured medical Knowledge Graph (KG).
  2. STGNN Initial Prediction: A base STGNN processes the raw multichannel EEG signals to generate an initial, potentially noisy "raw" brain connectivity graph ($G^{raw}_t$).
  3. Semantic Alignment Query (SemAlignQuery): To match continuous EEG data with discrete text, NeuroGRIP projects the STGNN's channel embeddings into the KG's semantic space using a shared projection head. It aggregates $k$-hop local neighborhoods to form context-aware subgraph queries.
  4. Knowledge-Based Relation Retrieval: Using BioBERT embeddings and FAISS (Facebook AI Similarity Search), the system retrieves the top-$M$ most relevant clinical triplets from the KG for each local subgraph.
  5. RAG-Guided Graph Calibration: Each predicted edge is assigned a confidence score based on three factors: semantic similarity to the retrieved triplets, the reliability of the medical source (e.g., official guidelines are weighted higher than case reports), and relation-level alignment. Edges that fall below a specific confidence threshold are pruned.
The NeuroGRIP Framework Architecture

Datasets

The framework was evaluated on two widely recognized public EEG seizure datasets:

  • TUSZ (Temple University Hospital EEG Seizure Corpus) v1.5.2: One of the largest clinical EEG corpora available, containing 5,612 EEG recordings with 3,050 annotated seizures across 19 channels.
  • CHB-MIT Scalp EEG Database: A pediatric dataset containing 844 hours of 22-channel scalp EEG recordings from 23 subjects, offering a look at patient-specific variability on a smaller recording scale.

Key Insights and Ideas

  • Data-Driven Graphs are Over-Connected: Purely data-driven STGNNs tend to over-connect electrodes, creating dense, noisy graphs. Injecting clinical priors acts as an effective regularizer, forcing the model to favor sparser, biologically meaningful structures.
  • Knowledge Compensates for Limited Context: NeuroGRIP showed more pronounced performance gains on shorter (12-second) EEG clips than on longer (60-second) clips. This indicates that when temporal data is scarce, external medical knowledge effectively steps in to guide the model toward the right spatial structure.
  • RAG Beyond Text: While RAG is traditionally used to fetch text documents for language models, this paper demonstrates that RAG can successfully calibrate continuous graph structures by aligning neural embeddings with symbolic knowledge spaces.

Key Results

NeuroGRIP was tested alongside five prominent STGNN baselines (including Dist-DCRNN, Corr-DCRNN, NeuroGNN, GraphS4mer, and EvoBrain).

  • Performance Boost: Integrating NeuroGRIP consistently improved F1-scores and AUROC across all baselines and datasets. For instance, pairing it with EvoBrain yielded the highest overall performance, pushing AUROC to 0.921 on TUSZ 12s clips.
  • Graph Sparsification: The framework successfully reduced edge density across the board, proving its ability to eliminate redundant and noisy connections.
Figure 3. (a) ROC curves of baseline models integrated with NeuroGRIP for seizure detection. (b) AUROC comparison of baseline STGNN models with and without NeuroGRIP. (c) Edge density of learned brain graphs before and after NeuroGRIP enhancement.
  • Qualitative Plausibility: In case studies, NeuroGRIP correctly pruned spurious connections (such as $Cz-P3$ and $FP2-F8$) that standard STGNNs mistakenly highlighted during early pre-seizure stages, while preserving neurologically grounded links like $F3-C3$ and $P4-O2$.

Limitations and Future Work

While NeuroGRIP marks a significant step forward, the authors note a few areas for improvement:

  • Dependence on the Initial KG: The framework's accuracy is tightly bound to the quality of the LLM-constructed knowledge graph. Any biases or extraction errors introduced by the LLM during the pipeline's setup could impact downstream pruning.
  • Static Thresholding: The edge pruning relies on a fixed threshold ($\rho$), which might require manual tuning when adapting the framework to different clinical environments or alternative EEG montages.

Future work could focus on developing adaptive thresholding mechanisms and expanding the knowledge base to incorporate multimodal clinical data, such as patient electronic health records.

Summary updated

BibTeX
@misc{li2026neurogrip,
  author = {Lincan Li and Zheng Chen and Yushun Dong},
  title = {{NeuroGRIP: Retrieval-Augmented Graph Refinement for Knowledge-Grounded EEG Seizure Diagnosis}},
  year = {2026},
  eprint = {2607.14314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.14314},
}
Figure