Epilepsy affects millions worldwide, making timely seizure detection crucial for effective treatment and enhanced well-being. Electroencephalogram (EEG) analysis offers a non-intrusive solution, but its visual interpretation is prone to errors and requires a lot of time. Many existing works focus solely on achieving competitive levels of accuracy without considering processing speed or the computational complexity of their models. This study aimed to develop an automated technique for identifying epileptic seizures in EEG data through analysis methods. The efforts have been primarily focused on achieving high accuracy results by operating exclusively within a narrow frequency band of the signal, while also aiming to minimize computational complexity. In this article, a new automated approach is presented for seizure detection by combining signal processing and machine learning techniques. The proposed method comprises four stages: (1) Preprocessing: Savitzky–Golay filter to remove the background noise. (2) Decomposition: discrete wavelet transform (DWT) to extract spontaneous alpha and beta frequency bands. (3) Feature extraction: six features (mean, standard deviation, skewness, kurtosis, energy, and entropy) are computed for each frequency band. (4) Classification: a support vector machine (SVM) method classifies signals as normal or containing a seizure. The method was assessed using two publicly available EEG datasets. For the alpha band, the highest achieved accuracy was 92.82%, and for the beta band it was 90.55%, which demonstrates adequate capability in both bands for accurate seizure detection. Furthermore, the obtained low computational cost suggests a potentially valuable application in real-time assessment scenarios. The obtained results indicate its capacity as a valuable instrument for diagnosing epilepsy and monitoring patients. Further research is necessary for clinical validation and potential real-time deployment.
Health and well-being, both mental and physical, depend largely on adequate sleep. Many conditions arise from a disrupted sleep cycle, significantly deteriorating the quality of life of those affected. The analysis of the sleep cycle provide valuable information about sleep stages, which are employed in sleep medicine for the diagnosis of numerous diseases. The clinical standard for sleep data recording is polysomnography (PSG), which records electroencephalogram (EEG), electrooculogram (EOG), electromyogram (EMG), and other signals during sleep activity. Recently, machine learning approaches have exhibited high accuracy in applications such as the classification and prediction of biomedical signals. This study presents a hybrid neural network architecture composed of convolutional neural network (CNN) layers, bidirectional long short-term memory (BiLSTM) layers, and attention mechanism layers in order to process large volumes of EEG data in PSG files. The objective is to design a framework for automated feature extraction. To address class imbalance, an epoch-level random undersampling (E-LRUS) method is proposed, discarding full epochs from majority classes while preserving the temporal structure, unlike traditional methods that remove individual samples. This method has been tested on EEG recordings acquired from the public Sleep EDF Expanded database, achieving an overall accuracy rate of 78.67% along with an F1-score of 72.10%. The findings show that this method proves to be effective for sleep stage classification in patients.