WaveNet’s Precision in EEG Classification
Casper David van Laar, Khubaib Ahmed · 2025
Read WaveNet’s Precision in EEG Classification by Casper David van Laar, Khubaib Ahmed (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-15947.txt.
Introduction
Casper van Laar and Khubaib Ahmed automate the sorting of brain signals recorded from inside the skull. Such records must be split into normal activity and epileptic activity. Power-line noise and other non-brain artefacts form two more classes. Expert visual review is the old route. It cannot keep pace with the growth in volume and complexity of these records.
Their WaveNet model comes from raw audio synthesis. It uses dilated causal convolutions and residual links. Those parts capture both fine detail and long-range timing in the signal. The model trains on a large public labelled set from two hospitals. It beats earlier general convolutional and recurrent methods on the test split. Noise and artefact classes are split with precision near the top of the scale. Normal and epileptic classes overlap a bit. The authors call that overlap clinically sensible, and they note that new settings remain untested.
Catalog record
| CREATOR | Casper David van Laar, Khubaib Ahmed |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 26 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2510-15947
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
WaveNet’s Precision in EEG Classification Casper David van Laar, Khubaib Ahmed Abstract This study introduces a WaveNet-based deep learning model designed to automate the classification of EEG signals into physiological, pathological, artifact, and noise categories. Traditional methods for EEG signal classification, which rely on expert visual review, are becoming increasingly impractical due to the growing complexity and volume of EEG recordings. Leveraging a publicly available annotated dataset from Mayo Clinic and St. Anne’s University Hospital, the WaveNet model was trained, validated, and tested on 209,232 samples with a 70/20/10 % split. The model achieved a classification accuracy exceeding previous CNN and LSTM-based approaches, and was benchmarked against a Temporal Convolutional Network (TCN) baseline. Notably, the model distinguishes noise and artifacts with high precision, although it reveals a modest but explainable degree of misclassification between physiological and pathological signals, reflecting inherent clinical overlap. WaveNet’s architecture, originally developed for raw audio synthesis, is well-suited for EEG data due to its use of dilated causal convolutions and residual connections, enabling it to capture both fine-grained and long-range temporal dependencies. The research also details the preprocessing pipeline, including dynamic dataset partitioning and normalization steps that support model generalization. I Introduction The classification of EEG data into physiological, pathological, and noise categories is essential for accurate neurophysiological analysis and clinical diagnostics. Traditional methods rely heavily on expert visual review, which is not scalable given the increasing volume and complexity of EEG recordings. Trained EEG technologists are crucial in identifying abnormalities and enhancing patient outcomes. Manual EEG review by neurophysiologists and technologist is prone to errors, non-scalability, subjectivity, and inconsistencies due to varying expertise, fatigue, and cognitive biases [ 1 ] . In contrast, automated models [ 2 , 3 ] are scalable, mitigate oversight, and use deep learning (DL) to discern subtle EEG patterns, improving reliability for precise diagnoses and treatments. A Temporal Convolutional Network (TCN) is a type of DL neural network designed for processing sequential data. WaveNet is a specific type of TCN that excels at handling the intricate temporal characteristics of audio waveforms due to its architecture, which includes dilated causal convolutions and residual connections [ 4 ] . In WaveNet, causal convolutions ensure that the output at a time step depends on the current and previous time steps, mimicking the autoregressive nature of time series data like EEG signals. This is crucial as it prevents information leakage from future time steps into the current prediction. EEG data are continuous signals reflecting the brain’s electrical activity, exhibiting complex temporal dependencies and dynamic variations [ 5 ] . The architecture is particularly well-suited for this task, as it can capture both fine-grained and long-range temporal dependencies in the data. This capability makes WaveNet a strong option for EEG data classification: • Temporal Dynamics: WaveNet’s ability to model long-range dependencies and temporal patterns aligns well with capturing EEG signals’ temporal dynamics. EEG signals fit this description perfectly, as they exhibit complex temporal dependencies and variations (see Figure 1 and 2 for examples). • Hierarchical Features: WaveNet’s hierarchical nature allows it to learn multi-scale features, crucial for identifying patterns in EEG data at different temporal resolutions. High-resolution features are captured by lower layers, while higher layers capture long-term, low-resolution patterns. This hierarchical feature extraction is crucial for modeling complex temporal dynamics in sequential data, which can allow the model to differentiate between physiological and pathological EEG data (Figures 1 and 2 ) and noise or artifacts. • High Resolution: WaveNet can capture detailed variations in EEG signals, essential for accurate classification, like the differences in the peaking behaviour of the EEG signals of pathological and healthy patients (Fig. 1 and Fig. 2 ). Therefore, we propose using a WaveNet model to automate the classification of EEG data. To provide context, we also benchmark its performance against a TCN baseline. WaveNet’s architecture makes it well-suited for capturing the complex temporal patterns in EEG signals. Automating EEG data classification with WaveNet will not only enhance efficiency and accuracy but also ensure more consistent and reliable diagnostics, ultimately improving patient outcomes and advancing the field of neurophysiology. Fig. 1: Healthy physiological signals. Characterized by a steep incline and decline before and after the peak. Fig. 2: Example of abnormal brain activity observed in epilepsy-prone neurons is identified by a sharp wave transient. Indicated by the red arrow one can see this abnormal transient, a high frequency oscillation (HFO) can be observed riding atop the peak of the spikes. II Related works Accurate detection of epileptiform spikes is essential for the diagnosis and clinical management of epilepsy. Earlier methods relied heavily on manual annotation or rule-based algorithms, which are time consuming and subject to inter-rater variability, while recent deep learning approaches show promise in automating EEG spike classification by learning features directly from raw or minimally processed signals [ 6 ] . Initial work applied convolutional neural networks (CNNs) to this task. Johansen et al. [ 7 ] reported a CNN-based classifier with an area under the curve (AUC) of 95 %, effectively identifying epileptiform spikes with high sensitivity and low false positive rates. Nejedly et al. [ 3 ] extended this approach by combining graphoelement-derived features with both CNN and long short-term memory (LSTM) architectures, achieving F1 scores of 0.81 and 0.80, respectively. Their specialized patient tuned CNN model for pathological activity classification reached an average F1 score of 0.96. They also explored artifact rejection in intracerebral EEG using CNN-based classifiers [ 2 ] , improving reliability by filtering out physiological noise from the input signals. Subsequent research incorporated attention mechanisms into recurrent models to better capture temporal dependencies. Fukumori, Yoshida, and Tanaka [ 8 ] proposed a self-attentive recurrent neural network that dynamically emphasized relevant time steps, achieving an average accuracy of 90 % in epileptic spike detection. Similarly, Rukhsar and Tiwari [ 9 ] introduced an Attention Recurrent Neural Network (ARNN) that applied self-attention across multi-channel EEG data. Evaluated on datasets like CHB-MIT and canine EEG from the Mayo Clinic and North Carolina State University, the model achieved an average F1 score of 0.94 and outperformed LSTM and Vision Transformer baselines. However, ARNN remains a specialized model trained and evaluated within specific datasets, and its performance on cross-patient or cross-institution data remains an open question. These developments reflect a broader trend toward hybrid deep learning architectures that combine spatial and temporal modeling. The integration of CNNs, RNNs, and attention mechanisms has improved classification accuracy and continues to shape efforts toward real-time and/or scalable EEG analysis. III Dataset The dataset for this article comprises annotated intracranial EEG recordings from Mayo Clinic (MN, USA) and St. Anne’s University Hospital (Brno, Czech Republic). The dataset includes EEG data labelled into three categories: physiological activity, pathological/epileptic activity, and artifactual signals. Each data sample of 3 seconds is stored in a .mat file with a sampling frequency of 5kHz and consists of a vector with dimensions (1,15000) containing a total of 209,232 samples. Comprehensive instructions for dataset usage are provided in the associated scientific papers [ 2 ] [ 3 ] . IV Methods IV-A Preprocessing steps The preprocessing steps involved loading EEG data from .mat files stored in directories, and organizing them into HDF5 format. This format optimizes storage and