KnowEEG: Explainable Knowledge Driven EEG Classification

Amarpal Sahota, Navid Mohammadi Foumani, Raúl Santos-Rodríguez, Zahraa S. Abdallah · OpenReview

Abstract

Electroencephalography (EEG) is a method of recording brain activity that shows significant promise in applications ranging from disease classification to emotion detection and brain-computer interfaces. Recent advances in deep learning have improved EEG classification performance yet model explainability remains an issue. To address this key limitation of explainability we introduce KnowEEG; a novel explainable machine learning approach for EEG classification. KnowEEG extracts a comprehensive set of per-electrode features, filters them using statistical tests, and integrates between-electrode connectivity statistics. These features are then input to our modified Random Forest model (Fusion Forest) that balances per electrode statistics with between electrode connectivity features in growing the trees of the forest. By incorporating knowledge from both the generalized time-series and EEG-specific domains, KnowEEG achieves performance comparable to or exceeding state-of-the-art deep learning models across five different classification tasks: emotion detection, mental workload classification, eyes open/closed detection, abnormal EEG classification, and event detection. In addition to high performance, KnowEEG provides inherent explainability through feature importance scores for understandable features. We demonstrate by example on the eyes closed/open classification task that this explainability can be used to discover knowledge about the classes. This discovered knowledge for eyes open/closed classification was proven to be correct by current neuroscience literature. Therefore, the impact of KnowEEG will be significant for domains where EEG explainability is critical such as healthcare.

Introduction

In recent years, the field of Electroencephalography (EEG) classification has been dominated by deep learning (DL) architectures like Transformers and CNNs. While these models have pushed the boundaries of accuracy in tasks like emotion detection or disease diagnosis, they suffer from a major flaw: opacity. In clinical or high-stakes environments, "the model said so" isn't enough; researchers and doctors need to know why a signal was classified as abnormal.

Traditional feature-based methods (using hand-crafted statistics) are explainable but have historically struggled to generalize across different datasets or match the raw power of DL. KnowEEG aims to close this gap, proving that a knowledge-driven, feature-based approach can be just as powerful as deep learning while providing a clear audit trail of its decisions.

Methods

The core of KnowEEG is a two-threaded architecture designed to capture both local and global brain dynamics:

Overview of the KnowEEG architecture, illustrating the dual-thread feature extraction process and the Fusion Forest model.
  1. Thread One (Per-Electrode Features): The system extracts 783 features per electrode using the tsfresh library. These include basic statistics (mean, variance) and complex time-series descriptors (autocorrelation, permutation entropy). To prevent overfitting, it uses non-parametric statistical tests (like Mann-Whitney U) to filter out uninformative features.
  2. Thread Two (Between-Electrode Connectivity): This thread calculates how different brain regions interact. It uses standard metrics like Coherence and Phase Lag Index, but also introduces Functional Power Connectivity (FPC)—a metric that captures spatial differences in oscillatory power across the brain.
  3. The Fusion Forest: Standard Random Forests can be skewed if one feature set is much larger than another. The authors developed the "Fusion Forest," which independently selects random subsets from both feature modes (local stats and connectivity) before fitting each tree. This ensures that connectivity data isn't "drowned out" by the thousands of per-electrode statistics.

Datasets

The authors evaluated KnowEEG across five diverse, publicly available datasets to ensure it wasn't a "one-hit wonder":

  • DREAMER: Emotion detection (arousal/valence).
  • STEW: Mental workload classification (rest vs. multitasking).
  • Crowdsourced: Eyes open vs. eyes closed detection.
  • TUEV: EEG event detection (spikes, artifacts, etc.).
  • TUAB: Abnormal vs. normal EEG classification.

Key Results and Insights

KnowEEG was compared against seven state-of-the-art baselines, including heavy-hitting deep learning models like EEG2Rep and EEG Conformer.

  • Performance: Across 10 performance metrics (Accuracy, AUROC, F1), KnowEEG achieved the best result in 5/10 and the second-best in 4/10. Notably, in the STEW dataset for mental workload, KnowEEG significantly outperformed all competitors, achieving ~77.8% accuracy compared to the next best at ~74.3%.
  • Explainability: The model provides inherent explainability through feature importance scores. For the eyes open/closed task, the model correctly identified that features from the Occipital region (the brain's visual processing center) were the most important. Specifically, top-ranked features like Permutation Entropy in the Occipital lobe align perfectly with known neurophysiological changes during eye closure.
  • Efficiency: Unlike modern self-supervised DL models (like EEG2Rep or BIOT), KnowEEG runs entirely on CPUs. This makes high-performance EEG analysis accessible to researchers without expensive hardware clusters.

Conclusion

KnowEEG demonstrates that a knowledge-driven approach can match or exceed the performance of "black box" deep learning models while providing critical explainability. By forcing the model to look at both connectivity and local statistics simultaneously via the Fusion Forest, it captures a holistic view of brain activity. Future work involves testing KnowEEG on Brain-Computer Interface (BCI) datasets and real-world clinical data for neurodegenerative diseases like Alzheimer’s and Parkinson’s, where uncovering "unknown" biomarkers is essential.

Summary updated

BibTeX
@misc{sahota2025knoweeg,
  author = {Amarpal Sahota and Navid Mohammadi Foumani and Raúl Santos-Rodríguez and Zahraa S. Abdallah},
  title = {{KnowEEG: Explainable Knowledge Driven EEG Classification}},
  year = {2025},
  eprint = {2505.00541},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.00541},
}
Figure