EEG Signal Analysis for Diagnosing Neurological Disorders Using Discrete Wavelet Transform and Intelligent Techniques †

Analysis of electroencephalogram (EEG) signals is essential because it is an efficient method to diagnose neurological brain disorders. In this work, a single system is developed to diagnose one or two neurological diseases at the same time (two-class mode and three-class mode). For this purpose, different EEG feature-extraction and classification techniques are investigated to aid in the accurate diagnosis of neurological brain disorders: epilepsy and autism spectrum disorder (ASD). Two different modes, single-channel and multi-channel, of EEG signals are analyzed for epilepsy and ASD. The independent components analysis (ICA) technique is used to remove the artifacts from EEG dataset. Then, the EEG dataset is segmented and filtered to remove noise and interference using an elliptic band-pass filter. Next, the EEG signal features are extracted from the filtered signal using a discrete wavelet transform (DWT) to decompose the filtered signal to its sub-bands delta, theta, alpha, beta and gamma. Subsequently, five statistical methods are used to extract features from the EEG sub-bands: the logarithmic band power (LBP), standard deviation, variance, kurtosis, and Shannon entropy (SE). Further, the features are fed into four different classifiers, linear discriminant analysis (LDA), support vector machine (SVM), k-nearest neighbor (KNN), and artificial neural networks (ANNs), to classify the features corresponding to their classes. The combination of DWT with SE and LBP produces the highest accuracy among all the classifiers. The overall classification accuracy approaches 99.9% using SVM and 97% using ANN for the three-class single-channel and multi-channel modes, respectively.


Introduction
The electroencephalogram (EEG) signals reflect the electrical activities of brain behaviors. The signal-processing techniques based on EEG signals analysis form an important clinical tool for monitoring and diagnosing neurological brain disorders such as autism spectrum disorder (ASD) and epilepsy disorders because they reflect the electrical activities or disorders of neurons in the human brain. Brain disorders, such as ASD and epilepsy disorders, are defined by such activities in the human brain. Currently, most brain disorder diagnoses are performed manually by neurologists or skilled clinicians accuracy was the highest at an age of six months. In the work of Alhaddad et al. [19], they used optimum preprocessing techniques in their study and employed two feature-extraction techniques: time and frequency domains (raw data and Fast Fourier Transform (FFT)). In the classification, they used a fisher linear discriminant as a classifier and obtained an overall classification accuracy up to 90%. In another study, the same dataset and processing techniques used by Alhaddad were used by Alsaggaf et al. [20] to diagnose ASD, but they did not employ filtering techniques and obtained an accuracy of 80.27%. Fan et al. [21] presented spectral features of EEG signals in conjunction with therapist ratings of behavioral connections, enjoyment, discouragement, boredom, and difficulty to train a group of classification models. They used seven classification techniques, namely, Bayes network, naive Bayes, multilayer perceptron, SVM, KNN, decision tree classifier (J48), and random forest, and compared the results thereof to obtain an overall classification accuracy between 75% and 85%. In our recent work [22], we used two types of neurological brain disorders dataset epilepsy and autism disorders and studied the effect of multi-channel processing on the diagnosis accuracy. DWT was combined with SD, kurtosis and LPB as a feature-extraction techniques and SVM technique is used as a classifier. We obtained an overall classification accuracy up to 98% and 96.5% for epilepsy and autism, respectively.
In the present study, we have developed a single system that diagnoses neurological brain disorders in two modes with high accuracies. The first mode is the diagnosis of two classes: epilepsy versus Neurotypical and ASD versus Neurotypical. The second mode, which is the most important contribution to this study, is the diagnosis of three classes: epilepsy versus ASD versus neurotypical. Different feature extraction and EEG classification techniques are investigated to assist neurologists in the diagnosis of those neurological brain disorders. After applying the preprocessing technique, the most important method for feature extraction, DWT, is used. With this method, we have combined several techniques-logarithmic band power (LBP), standard deviation (SD), variance, kurtosis, and Shannon entropy (SE)-and used four types of classifiers-LDA, SVM, KNN, and ANNs-for our investigations.
The remainder of this work is arranged as follows. Section 2 describes the EEG data used description and EEG signal preprocessing and processing methods, including filtering, feature extraction, and classification techniques. Section 3 presents the results and discussion. Finally, Section 4 presents the conclusion and future work.

Methods
In this section, the proposed feature-extraction and classification techniques are described, as well as their validation using MATLAB software tools (MathWorks, Natick, MA, USA). The block diagram of the proposed method is shown in Figure 1, which highlights the proposed methods based on DWT. In this diagram, the EEG data are first read and then the eye artifacts have been removed from the recorded signals by ICA technique. Then, after artifacts removing process, the EEG signals will be segmented into fixed time windows of 50 s. Next, we feed the output of the segmentation process into a band-pass filter to remove the noises. To extract the features of EEG signals, construct the feature vectors, and improve classification accuracy, LBP, SD, variance, kurtosis, and entropy are used along with DWT.
In the proposed system, linear discriminant analysis LDA, SVM, KNN, and ANN techniques were applied as classifiers. We implemented and verified all possible combinations of the proposed methods.

Dataset Descriptions
Three types of datasets have been used for implementing and verifying our methods. The first two datasets are used for epilepsy diagnosis, and the third is used for autism diagnosis. The first dataset is supplied by the Bonn University, Germany, and included five sets, named A, B, C, D, and E. Each set contains exactly one hundred single-channel EEG signals. Sets A and B were collected from scalp EEGs of neurotypical persons, whereas sets C, D, and E were collected using intracranial EEGs from epileptic persons. The total period of each signal is approximately 23.6 s. The data were collected with a sampling frequency of 173.61 Hz. The reference provided in [23] shows a more detailed description of this dataset. The research team from MIT, USA [24], provides the second dataset, which includes 906 h of EEG data collected from 23 epileptic patients. In this study, only data for the first twelve epileptic subjects were used, along with those of eleven neurotypical subjects. This data includes 23 EEG channels with a sampling frequency of 256 Hz [25].
The third dataset was supplied by King Abdulaziz University (KAU) Brain-Computer Interface (BCI) Group, Jeddah, Saudi Arabia. The dataset was collected in a relaxed state and split into two groups: the first group was named the neurotypical group and included data from ten healthy volunteer subjects (all males, age 9-16 years) with typical intelligence and without any mental disorders. The second group was labeled the autistic group and included nine subjects (six males and three females, aged 10-16 years) with ASD. The EEG signals were collected from the subjects' scalps in a relaxed state using an EEG data-acquisition system that included the following components: a g.tec EEG cap with high accuracy, 16 Ag/AgCl sensors (electrodes) based on the 10-20 international acquisition system, g.tec USB amplifiers (gtec medical engineering company, Schiedlberg, Austria), and BCI2000 software (The Brain-Computer Interface R&D Program at the Wadsworth Center of the New York State Department of Health in Albany, NY, USA). The dataset was filtered by a band-pass filter with a passband of 0.1-60 Hz, and a notch filter was used with a stopband frequency of 60 Hz. All EEG signals were digitized at a sampling frequency of 256 Hz. The EEG collection time ranged from 12 to 40 min for autistic patients with a total of up to 173 min. For neurotypical patients, the recording varied between 5 and 27 min with a total of up to 148 min.

Preprocessing
In the EEG signals acquisition stage, the EEG data were recorded with the artifacts, noises and interferences from different sources such as the magnetic field of electronic devices, mobiles wave, power-line, blood pressure, breathing, limb movement, or other human parties [26,27]. In this study, the first step in the preprocessing stage is to apply the ICA technique and adaptive filtering in order to remove the eye artifacts [28]. The EEG signals that were recorded from four electrodes around the eyes are used as reference signals to remove eye blinks artifacts. Then, the EEG dataset is split into an equal segments with a specific length to ensure that the amount of information is equal in each segment. In the present study, 50 s is selected as a segment length because it produced better experimental results. After the EEG signals were segmented, the EEG segments were filtered to remove the noises and interferences generated during EEG signal recording. The filtering technique aims to remove all the noise and interference, enhancing the signal to noise ratio to improve and increase the classification accuracy results. In this work, different filtering methods were used such as finite impulse response (FIR) filters (Equiripple, Kaiserwin, etc.) and infinite impulse response (IIR) filters (Chebyshev I, Chebyshev II, Butterworth, Elliptic, etc.). However, Elliptic band pass (0.1-60 Hz) provides better experimental results compared with the other types of filters because the implementation of the elliptic filter requires less memory, less calculation and provides reduced delay time.

Feature Extraction
The feature-extraction method is important for EEG signal processing to achieve the best possible performance. The EEG signals are recorded and segmented into long time-series, which is necessary for working with a very small number of values that describe the characteristics of the EEG signal. These values are called features and are aggregated into a vector named the feature vector. Thus, the feature-extraction methods are defined as the techniques that transform signals into a feature vector. There are several types of feature-extraction techniques used to extract features. In the present work, the most popular and widespread technology has been used, namely, DWT. In this study, we propose the use of DWT based on LBP, SD, variance, kurtosis, and entropy to form the feature vectors.
The STFT is unsuitable for analyzing non-stationary signals, such as EEG. This is because STFT offers a constant resolution at all frequencies. To analyze different frequencies with different resolutions, the wavelet transform technique, which uses multi-resolution, is employed. In addition, the wavelet transform can offer a smaller number of features for the signal to be processed; this implies that it may be suitable for avoiding the associated dimensionality problem. Thus, wavelet transforms analyze the characteristics of the signal in the time and frequency domains by decomposing such signals into several functions using a single function [29]. This function is called the mother function and is given by where x and y are the scaling and shifting parameter, respectively, and S is the wavelet space.
The following equation shows the wavelet transform.
In this work, we employed DWT because it provides a highly efficient wavelet representation. In first-level decomposition, low-and high-pass filters are frequently employed for obtaining the representation of the digital signal as an approximation (A1) and detail (D1) coefficients. The equation that defines DWT decomposition is as follows: where d j,k and C j,k represent the approximation and detail coefficients, respectively, n is the level and ∅ is the function of scale. The first approximation is decomposed, and the process is repeated again. At the end of the process, the number of decomposed signals is n+1. In this study, we employed Daubechies 4 (db4) as the mother wavelet function; level 4 is selected because it provides the best characteristics for signal features that are classified successfully. The DWT technique decomposes a filtered signal into approximation (A1: 0.1-30 Hz) and detail (D1: 30-60 Hz) coefficients to obtain the first level of decomposition. The approximation coefficients in the first level are further decomposed into the approximation (A2: 0.1-15 Hz) and detail (D2: 15-30 Hz) coefficients in the second level. In the third level, the approximation coefficients in the second level are decomposed into the approximation (A3: 0.1-8 Hz) and detail (D3: 8-15 Hz) coefficients. Finally, the approximation coefficients in the third level are further decomposed into the approximation (A4: 0.1-4 Hz) and detail (D4: 4-8 Hz) coefficients in the fourth level. Finally, coefficients D1-D4 and A4 are obtained as shown in Figure 2 [22]. After obtaining all detail coefficients in every level (D1, D2, D3 and D4) and approximation coefficients in last level (A4), different combinations of these coefficients were tested to obtain the best result. However, the highest overall classification accuracy was achieved using all of them. S(n) is a discrete signal, where n = 1, 2, . . . , N, and N is the number of signal samples; the feature vectors were formed using the following techniques: The variance of the signal where µ s is the mean of signal samples [30]. The SD of the signal where µ s is the mean of signal samples [31]. The kurtosis of the signal where E[ ] is the expected value, µ s is the mean, and σ s are the mean and standard deviation of signal samples [32]. The non-normalized SE [33] The LBP of the signal [34]

LDA and SVM Techniques
Both LDA and SVM classification techniques use hyperplane separation to classify their inputs. LDA is a generalization of Fisher's linear discriminant and is dependent on the covariance matrices and mean vectors of the feature vectors for individual classes. LDA also uses a hyperplane to differentiate between classes, reducing the variance within the class and exploiting the variance between the classes [35]. The SVM classifier is a supervised learning approach that analyzes data and distinguishes patterns and is used for classification and regression analysis. Given a set of training examples, an SVM training algorithm builds a model (i.e., the separation hyperplane) that assigns new examples into single categories [36]. In the present study, we used a linear SVM because a non-linear SVM is expected to have higher computational costs and longer computation time. In essence, the SVM is a binary (two-class) classifier. To address the three-class classification problem, in this study, we combine three SVM classifiers using a one-versus-all method.

KNN and ANN Techniques
The KNN classifier is the simplest machine-learning algorithm and distinguishes objects by a majority vote of its k-nearest neighbors [37]. In the current work, k is selected to equal five for all experiments. We have also used ANN as a classifier, which is an information-processing system that simulates the process of human cognition. During the training process, the feature vectors are applied to the network to adjust its variable parameters, weights, and biases. Thus, the relationships between input and output patterns were captured. In the present work, an ANN system has been designed with one layer in each section-the input, hidden, and output layers-using MATLAB. The hidden layers have been designed with five nodes and the output layer with a number of nodes equal to the number of output classes. In contrast, the number of nodes in the input layer depends on the number of obtained features.
In this technique, the dataset is arbitrarily separated into k equal parts (subsets) [38]. All the subsets are employed for training except for one used in the testing phase (for validation). This procedure was repeated k times (k-fold), where each subset is used once for testing. In this experiment, we used 10-fold cross-validation, where all the EEG signal features were loaded from the feature vector that was extracted from the feature-extraction section and transmitted to the cross-validation section. Next, these features were split into a 90% subset for training and a 10% subset for testing. Each time, a vector was transmitted into the testing classifier. Then, the cross-validation algorithm compared the result of the testing classifier with the state of the original test features for validation. This process was repeated ten times; each time, one vector was transmitted into the testing classifier. Finally, the results were averaged to produce a single overall classification accuracy. Figure 3 shows the cross-validation methodology for 10-fold cross-validation.
where M total is the total number of vectors to be classified, M(k) correct is the number of correct vectors in k iteration, and k max is the number of folds.

Results and Discussion
As mentioned earlier, what distinguishes this study from previous studies is that we worked to develop a single system that diagnoses neurological disorders in two modes with high accuracies. The first mode is the diagnosis of two classes: epilepsy versus Neurotypical and ASD versus Neurotypical. The second mode, which is the most important contribution to this study, is the diagnosis of three classes: epilepsy versus ASD versus Neurotypical. For this purpose, the ICA technique is used to remove the artifacts from the raw signals. Then, the EEG signals were segmented into fixed time windows and then filtered using a band-pass elliptic filter with a frequency band of 0.1-60 Hz. Next, the features were extracted from the EEG signal frequency bands; delta, theta, alpha, beta, and gamma using DWT combined with the LBP, SD, variance, kurtosis, and entropy methods. Finally, four types of classifiers are employed-LDA, SVM, KNN, and ANNs-for our investigations. In the following subsections, the classification accuracy results of the proposed methods will be presented, analyzed, and discussed for both two-class and three-class and both single-channel mode and multi-channel mode diagnosis using three types of EEG datasets: Bonn university dataset, CHB-MIT dataset and King Abdulaziz University dataset.

Two-Class Classification
We began with two types of neurological brain disorders: epilepsy and ASD. The comparisons of EEGs for epileptic and neurotypical patients and those of autistic and neurotypical patients are presented separately. In our work, single-channel and multi-channel modes were studied, and in our proposed system, several feature-extraction methods were combined with several classification methods. Figures 4-6 show two-dimensional plots of feature vectors extracted by LBP, SD, kurtosis, and entropy. The plots of the features extracted from the autistic with neurotypical, epileptic with neurotypical, and autistic and epileptic with neurotypical datasets are shown in Figures 4-6, respectively. Delta and theta bands are selected and plotted to show the scattering of EEG signal features and show the features that will be classified easily and correctly. It is clear from the figures that the features extracted by DWT with entropy and LBP can be better separated than those extracted by other approaches. After the features are extracted, the LDA, SVM, KNN, and ANN techniques are applied to classify the extracted features, and the results are compared. In this part, the classification accuracies have been computed for epilepsy and autism compared to neurotypical subjects (two class) based on DWT with different feature-extraction methods and four types of classifiers as follows.

Two-Class Neurotypical vs. Epilepsy (Single-Channel)
For single-channel EEGs of epilepsy, we used a dataset provided by Bonn University where 100 segments from set A for neurotypical and 100 segments from set E for epileptic were considered. Table 1 shows the classification accuracies of neurotypical and epilepsy for single-channel EEG signals based on our approaches. From Table 1, it can be seen that the combination of DWT with LBP and entropy are better than other combinations for single-channel EEG data and that the KNN classifier is a good classifier to achieve the highest classification accuracies. By comparing our results in this section with other studies, we find that our work produced a better classification accuracy values than those reported in Nigam and grape [3] study that used Non-linear filter with ANN classifier with accuracy value 97.2%. Our study provides classification accuracy values 99.5 ± 0.5 using DWT + LBP and entropy with all classifiers, but DWT +entropy with KNN classifier produced accuracy value 98.5 ± 0.5%. Further, we find that our study provides the classification accuracy values better than the study of Kannathal et al. [4] that utilized entropies and ANFIS classifier with accuracy value 92.2%. Our approaches produced the classification accuracy values better than Sadati et al. [5] study. Sadati et al. [5] used DWT with ANFN classifier to achieve 85.9%. This study achieved classification accuracy values higher than the classification accuracy reported in Ocak [6], which utilized approximation entropy and ANN to achieve 96% classification accuracy.
However, studies by Chen [10] and Djemili et al. [11] achieved classification accuracy values equal to the values reported in this study. Chen [10] utilized dual-tree complex wavelet transform (DTCWT) with KNN classifier while Djemili et al. [11] used empirical mode decomposition (EMD) and multilayer perceptron neural network (MLPNN) classifier.
The results achieved in this paper can be compared in more detail with the other studies listed in Table 3. Our study produced better results than similar studies reported in the literatures.

Two-Class Neurotypical vs. Epilepsy (Multi-Channel)
For multi-channel EEGs of epilepsy, we used a dataset provided by CHB-MIT with 23 channels. The utilized dataset comprised 11 neurotypical subjects and 12 epileptic subjects. Table 2 shows the classification accuracies of neurotypical and epileptic subjects for multi-channel EEG signals based on our approaches. From Table 2, it can be seen that a combination of DWT with LBP and entropy are better than other combinations for multi-channel EEG data and that the SVM classifier is a good choice to achieve the highest classification accuracies. In general, for neurotypical and epilepsy diagnosis, single-channel EEG signals provide better accuracy than multi-channel EEG signals. Overall, the combination of DWT + (Entropy or LBP) + KNN and DWT + (Entropy or LBP) + SVM achieved the highest accuracies for single-channel and multi-channel EEG signals, respectively. By comparing our results with other studies, we find that our study achieved the classification accuracy up to 99% higher than the other studies. Khan et al. [39] used CHB-MIT dataset and utilized DWT with LDA classifier to achieve classification accuracy up to 91.8%, and Subasi [40] used DWT and dynamic fuzzy neural network (DFNN) classifier to produce a classification accuracy value of 93.1%. Further, our study produced classification accuracy higher than Yuan et al. [40]. Yuan et al. [41] used the fractal intercept derived from fractal geometry as a nonlinear feature and the relative fluctuation as a linear feature and used Extreme learning machine (ELM) algorithm as a classifier to achieve a classification accuracy of up to 94.9%. The results achieved in this paper can be compared in more detail with the other studies listed in Table 3. Our study produced better results than similar studies. In this section the classification accuracy results of the proposed methods for autism diagnosis will be presented and discussed for two-class single channel mode. For single-channel EEGs of autism disorders, we use a dataset from King Abdulaziz University. The dataset comprises 10 neurotypical subjects and 9 autistic subjects. Table 4 shows the classification accuracies of neurotypical and autism for single-channel EEG signals based on our approaches. From Table 4, it can be seen that a combination of DWT with LBP and entropy is better than other combinations for single-channel EEG data and that the ANN and KNN classifiers can achieve the highest classification accuracies. In this section, the classification accuracy results of the proposed methods for autism diagnosis will be presented and discussed for two-class multi-channel mode. The King Abdulaziz University dataset is used for multi-channel autism diagnosis. Table 5 shows the classification accuracies of neurotypical and autistic subjects for multi-channel EEG signals based on our approaches. From Table 5, it can be seen that a combination of DWT with LBP and entropy is better than other combinations for multi-channel EEG data and that the ANN and KNN classifiers can achieve the highest classification accuracies. In general, for neurotypical and autism diagnosis, multi-channel EEG signals provide better accuracy than single-channel EEG signals. Overall, the combination of DWT + (Entropy or LBP) + ANN achieved the highest accuracies for both single-channel and multi-channel signals. By comparing our results in this section with other studies, we find that our work provides better classification accuracy values than those reported in other studies. Sheikhani et al. [13] used the short-time Fourier transform (STFT) and then used k-nearest neighbors (KNN) as a classifier to achieve classification accuracy up to 82.4%. In a later study [14], they developed the proposed method to obtain an accuracy of 96.4%. Ahmadlou et al. [16] discussed a visibility graph (VG) technique with wavelet and an enhanced probabilistic neural network classifier (EPNN) to obtain an accuracy of around 95.5%. Bosl [18] used the minimum mean-square error and KNN, naive Bayesian, and support vector machine (SVM) to produce classification accuracy ranged between 70% and 100%. A study by Alhaddad et al. [19] used time and frequency domains (raw data and Fast Fourier Transform (FFT)) and a fisher linear discriminant as a classifier to provide an overall classification accuracy up to 90%. The results achieved in this paper can be compared in more detail with the other studies listed in Table 6. Our study produced better results than similar studies reported in the literature.

Three-Class Classification
Finally, the three-class classification has been implemented. Epilepsy, ASD, and neurotypical data have been collected and presented. In our work, three-class diagnosis with single-channel and multi-channel mode have been studied. In our proposed system, several combinations of feature-extraction methods with several classification methods have been applied to achieve good accuracy. The classification accuracies have been computed for epileptic, autistic, and neurotypical individuals based on DWT with different feature-extraction methods and four types of classifiers.

Three-Class Neurotypical vs. Epilepsy vs. Autism (Single-Channel)
For single-channel three-class diagnosis, we used a dataset from Bonn university comprising of 100 segments from set A for neurotypical and 100 segments from set E for epileptic and autistic and a dataset of 9 subjects provided by the King Abdulaziz University. Table 7 shows the classification accuracies of neurotypical, epilepsy, and autism for single-channel EEG signals based on our approaches. From Table 7, it can be seen that a combination of DWT with LBP and entropy is better suited than other combinations for single-channel EEG data and that all classifiers work well with the previous combinations to achieve the highest classification accuracies. For multi-channel three-class diagnosis, we used a dataset provided by MIT-USA with 23 channels. The dataset comprises 11 neurotypical subjects and 12 epileptic subjects. In addition, a dataset of 9 subjects was provided by King Abdulaziz University. Table 8 shows the classification accuracies of neurotypical, epilepsy, and autism data from multi-channel EEG signals based on our approaches. From Table 8, it can be seen that a combination of DWT with LBP and entropy is better suited than other combinations for multi-channel EEG data and that all classifiers work well with the previous combinations to achieve the highest classification accuracies. By observing the results in two-class diagnosis (epilepsy versus Neurotypical and ASD versus Neurotypical), the methods proposed in this study show better performance and higher accuracies than those results in some previous studies. Besides, the results related to three-class diagnosis also show a high accuracy reaching up to 99% in some approaches. These results confirm the rigidity of the proposed methods despite the increase in the number of classes.
Finally, we know most brain disorder diagnoses are performed manually by neurologists or skilled clinicians through visual inspection of EEG signals. Therefore, the proposed system can assist medical doctors and clinicians in order to diagnose neurological brain disorder automatically. With the proposed system, the number of neurologists that is limited can be reduced and diagnosis time is saved. The human brain is the most complex part of the human body and provides a wide variety of information related to neurological disorders. However, related to our study results, the proposed system can diagnose neurological brain disorders easily, successfully, and accurately.
Regarding the overfitting problem of the utilized intelligent classifiers, the research team tried to prevent this problem by several ways. K-fold cross validation technique was used in order to estimate the accuracy of classifier model and prevent the overfitting problem. It allows to train and test the classifier model k-times on different subsets of training data and build up to estimate the performance of the classifier model on unknown data. Then, the intelligent classifiers are trained with the 90% of EEG features because the training of classifiers with more features reduces the chances of overfitting. Next, the capacity of the classifier network is reduced in order to reduce the network complexity and avoid the overfitting problem. For example, one input, one hidden, and one output layer are selected, and the number of neurons in the hidden layer is reduced in ANN classifier. Finally, the early stopping process is investigated to measure classifier performance and stop the training of the classifier before passing the stopping point in order to prevent the overfitting problem. For example, the maximum number of iterations allowed in the SVM classifier is selected, and the maximum number of epochs, neural network gradient, mu, and performance parameters in ANN classifier are chosen carefully in order to satisfy the early stopping process and prevent the overfitting problem.

Conclusions and Future Study
EEG signal-analysis techniques have been improved in recent years because the EEG reflects neurological brain activity and is an important tool for diagnosing neurological brain disorders, such as autism, epilepsy, and Alzheimer's disease. In this study, we develop a single system that diagnoses neurological diseases: epilepsy vs. Neurotypical, ASD vs. Neurotypical, and epilepsy vs. ASD vs. Neurotypical. In order to increase the diagnosis accuracy in the developed system, we investigate different techniques for EEG feature extraction and classification for single-channel mode and multi-channel mode EEGs. The different datasets used in this work are provided by Bonn University, Germany; MIT, USA; and King Abdulaziz University (KAU), Jeddah, Saudi Arabia, to evaluate our proposed design. The ICA technique is used to remove the eye blinks artifacts from EEG dataset. Then, the EEG data are segmented and filtered to remove the noise and interference, and then the EEG features are extracted from the filtered signal by DWT to decompose the filtered signal into its sub-bands. Five statistical methods are investigated to extract the features from the EEG sub-bands. The features are used as the inputs to four different classifiers to categorize the features into their corresponding classes. The combination of DWT with SE and LBP produces the highest accuracy for all classifiers. For epilepsy diagnosis, the classification accuracy approaches 100% with all classifiers and 99% with KNN for the two-class single-channel and multi-channel EEGs, respectively. For autism diagnosis, the classification accuracy reaches up to 91.5% and 99% with ANN for two-class single-channel and multi-channel modes, respectively.
The results of our proposed methods, whether two-class diagnosis and three-class diagnosis, show better performance and higher accuracies than those results in some previous studies. The overall classification accuracy approaches 99.9% with SVM and 97% with ANN for the three-class single-channel and multi-channel data, respectively. These results confirm the rigidity of the proposed methods despite the increase in the number of classes. In general, to distinguish neurotypical, epileptic, and autistic patients, single-channel EEG signals provide better accuracy than multi-channel EEG signals. Overall, the combination of DWT + (Entropy or LBP) + SVM and DWT + (Entropy or LBP) + ANN achieved the highest accuracies for single-channel and multi-channel data, respectively. In future work, we will test and evaluate our proposed methods with other datasets. Another neurological disorder will be included in our study. Our own dataset will be recorded in our lab for several types of neurological brain disorders.
Author Contributions: Conceptualization, funding acquisition, project administration, and supervision were performed by F.A.A.; data curation, formal analysis, methodology, and software were performed by K.A.; investigation, resources, and validation were performed by A.M.A.; visualization, writing-original draft preparation, and writing-review and editing were performed by M.A. All authors have read and agreed to the published version of the manuscript.