WaveNet's Precision in EEG Classification
Casper van Laar, Khubaib Ahmed
TL;DR
This work demonstrates that a WaveNet architecture, originally designed for raw audio, can effectively classify EEG signals into physiological, pathological, artifact, and noise categories. By leveraging dilated causal convolutions and residual/skip connections, the model captures both fine-grained and long-range temporal dependencies, and is trained with adaptive dropout and focal loss to handle class imbalance. The approach achieves a high average F1 score and strong noise/artifact discrimination, while remaining robust across data from multiple hospitals, albeit with some confusion between physiological and pathological patterns. The study shows practical potential for scalable, real-time EEG analysis and suggests avenues for cross-domain extensions and interpretability, including applications to spike sorting and integration with hybrid architectures.
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 percent 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.
