Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability

Epileptic seizures are neurological events caused by abnormal electrical activity in the brain, frequently resulting in loss of consciousness, involuntary movements, or cognitive deficits. Electroencephalograms (EEGs) are essential for diagnosing epilepsy, but conventional detection techniques depen...

Full description

Saved in:
Bibliographic Details
Main Authors: Tawfeeq Shawly, Ahmed A. Alsheikhy
Format: Article
Language:English
Published: Elsevier 2025-09-01
Series:Egyptian Informatics Journal
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S1110866525001276
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849319329893449728
author Tawfeeq Shawly
Ahmed A. Alsheikhy
author_facet Tawfeeq Shawly
Ahmed A. Alsheikhy
author_sort Tawfeeq Shawly
collection DOAJ
description Epileptic seizures are neurological events caused by abnormal electrical activity in the brain, frequently resulting in loss of consciousness, involuntary movements, or cognitive deficits. Electroencephalograms (EEGs) are essential for diagnosing epilepsy, but conventional detection techniques depend on manual analysis, which can be labor-intensive and susceptible to inaccuracies. Recent developments in artificial intelligence (AI) and deep learning have facilitated the automation of seizure detection from EEG signals with improved accuracy. Nevertheless, current models frequently face challenges related to feature selection, interpretability, and computational demands. In this research, we introduce a cutting-edge deep learning methodology for the automated prediction of epilepsy, incorporating a Novel Attention Module (NAM) into a new Convolutional Neural Network (CNN) to improve the extraction of features from EEG signals. The proposed system employs Fourier Transform for feature extraction, utilizes Principal Component Analysis (PCA) for reducing dimensionality, and applies an optimized stochastic gradient descent approach with the Adam optimizer to enhance the learning process. We articulate the mathematical characteristics of feature selection driven by NAM, delineate the convergence attributes of the loss function, and present measures of explainability through Shapley Additive Explanations (SHAP). The model underwent training, validation, and testing with three publicly accessible EEG datasets sourced from PhysioNet and ResearchGate, thereby ensuring strong generalization across various datasets. A series of experiments were carried out to assess the effectiveness of the model by utilizing key performance metrics such as accuracy, sensitivity, specificity, and F1-score. The proposed methodology attained an accuracy of 99.3 %, an F1-score of 99.5 %, and both sensitivity and specificity at 99 %, showcasing its superior performance compared to existing models. Additionally, the computational complexity of the proposed framework was evaluated in terms of floating-point operations per second (FLOPs) and the total number of parameters, ensuring its efficiency for real-time biomedical applications. The incorporation of explainability techniques, including Shapley Additive Explanations (SHAP), enhances model transparency, which is beneficial for clinical decision-making. These findings suggest that the proposed attention-enhanced CNN framework serves as a reliable and interpretable tool for the early detection of epilepsy and patient monitoring.
format Article
id doaj-art-7a63803af82c4065bb70db1fc93a9ddd
institution Kabale University
issn 1110-8665
language English
publishDate 2025-09-01
publisher Elsevier
record_format Article
series Egyptian Informatics Journal
spelling doaj-art-7a63803af82c4065bb70db1fc93a9ddd2025-08-20T03:50:31ZengElsevierEgyptian Informatics Journal1110-86652025-09-013110073410.1016/j.eij.2025.100734Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretabilityTawfeeq Shawly0Ahmed A. Alsheikhy1Department of Electrical Engineering, Faculty of Engineering at Rabigh, King Abdulaziz University, Rabigh 21911, Saudi Arabia; King Salman Center for Disability Research, Riyadh 11614, Saudi ArabiaDepartment of Electrical Engineering, College of Engineering, Northern Border University, Arar 91431, Saudi Arabia; Corresponding author.Epileptic seizures are neurological events caused by abnormal electrical activity in the brain, frequently resulting in loss of consciousness, involuntary movements, or cognitive deficits. Electroencephalograms (EEGs) are essential for diagnosing epilepsy, but conventional detection techniques depend on manual analysis, which can be labor-intensive and susceptible to inaccuracies. Recent developments in artificial intelligence (AI) and deep learning have facilitated the automation of seizure detection from EEG signals with improved accuracy. Nevertheless, current models frequently face challenges related to feature selection, interpretability, and computational demands. In this research, we introduce a cutting-edge deep learning methodology for the automated prediction of epilepsy, incorporating a Novel Attention Module (NAM) into a new Convolutional Neural Network (CNN) to improve the extraction of features from EEG signals. The proposed system employs Fourier Transform for feature extraction, utilizes Principal Component Analysis (PCA) for reducing dimensionality, and applies an optimized stochastic gradient descent approach with the Adam optimizer to enhance the learning process. We articulate the mathematical characteristics of feature selection driven by NAM, delineate the convergence attributes of the loss function, and present measures of explainability through Shapley Additive Explanations (SHAP). The model underwent training, validation, and testing with three publicly accessible EEG datasets sourced from PhysioNet and ResearchGate, thereby ensuring strong generalization across various datasets. A series of experiments were carried out to assess the effectiveness of the model by utilizing key performance metrics such as accuracy, sensitivity, specificity, and F1-score. The proposed methodology attained an accuracy of 99.3 %, an F1-score of 99.5 %, and both sensitivity and specificity at 99 %, showcasing its superior performance compared to existing models. Additionally, the computational complexity of the proposed framework was evaluated in terms of floating-point operations per second (FLOPs) and the total number of parameters, ensuring its efficiency for real-time biomedical applications. The incorporation of explainability techniques, including Shapley Additive Explanations (SHAP), enhances model transparency, which is beneficial for clinical decision-making. These findings suggest that the proposed attention-enhanced CNN framework serves as a reliable and interpretable tool for the early detection of epilepsy and patient monitoring.http://www.sciencedirect.com/science/article/pii/S1110866525001276DisabilityPredictionEpilepsySeizureNAMEEG
spellingShingle Tawfeeq Shawly
Ahmed A. Alsheikhy
Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
Egyptian Informatics Journal
Disability
Prediction
Epilepsy
Seizure
NAM
EEG
title Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
title_full Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
title_fullStr Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
title_full_unstemmed Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
title_short Eeg-based detection of epileptic seizures in patients with disabilities using a novel attention-driven deep learning framework with SHAP interpretability
title_sort eeg based detection of epileptic seizures in patients with disabilities using a novel attention driven deep learning framework with shap interpretability
topic Disability
Prediction
Epilepsy
Seizure
NAM
EEG
url http://www.sciencedirect.com/science/article/pii/S1110866525001276
work_keys_str_mv AT tawfeeqshawly eegbaseddetectionofepilepticseizuresinpatientswithdisabilitiesusinganovelattentiondrivendeeplearningframeworkwithshapinterpretability
AT ahmedaalsheikhy eegbaseddetectionofepilepticseizuresinpatientswithdisabilitiesusinganovelattentiondrivendeeplearningframeworkwithshapinterpretability