Comparison between epilepsy and migraine based on feature fusion and multiple machine learning models using electroencephalogram
Abstract
Epilepsy and migraine are prone to clinical misdiagnosis due to overlapping clinical manifestations, while the limited availability of electroencephalogram (EEG) data further complicates accurate differential diagnosis. To address this challenge, this study proposes a three-class classification framework for epilepsy, migraine, and healthy controls based on EEG signals collected from 36 participants. After preprocessing the raw EEG data with a 0.5–60 Hz bandpass filter, 15 features were extracted, including 12 statistical features and three nonlinear dynamical features. Four machine learning models, namely support vector machine (SVM), random forest (RF), LightGBM, and XGBoost, were systematically evaluated for classification performance. Among them, XGBoost achieved the best overall results, with a test accuracy of 0.90 and superior performance across all major evaluation metrics. Feature importance analysis based on the gain metric of XGBoost identified the Hurst exponent as the most influential feature. Notably, its inter-group distribution differences were highly consistent with the pathological characteristics of epilepsy and migraine. These findings suggest that EEG-based feature fusion combined with machine learning provides an effective strategy for multi-class neurological disease classification, and that the Hurst exponent may serve as a promising biomarker for the differential diagnosis of epilepsy and migraine.