Next Article in Journal
Single-Energy Metal Artifact Reduction (SEMAR) in Ultra-High-Resolution CT Angiography of Patients with Intracranial Implants
Next Article in Special Issue
Clinical Spasticity Assessment Assisted by Machine Learning Methods and Rule-Based Decision
Previous Article in Journal
Rapid Identification of Benign Gallbladder Diseases Using Serum Surface-Enhanced Raman Spectroscopy Combined with Multivariate Statistical Analysis
Previous Article in Special Issue
A Machine Learning-Based Severity Prediction Tool for the Michigan Neuropathy Screening Instrument
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automated Detection of Seizure Types from the Higher-Order Moments of Maximal Overlap Wavelet Distribution

by
Joseph Mathew
1,2,*,
Natarajan Sivakumaran
1 and
P. A. Karthick
1
1
Physiological Measurements and Instrumentation Laboratory, Department of Instrumentation and Control Engineering, National Institute of Technology, Tiruchirappalli 620015, Tamil Nadu, India
2
Department of Applied Electronics and Instrumentation Engineering, Rajagiri School of Engineering and Technology, Cochin 682039, Kerala, India
*
Author to whom correspondence should be addressed.
Diagnostics 2023, 13(4), 621; https://doi.org/10.3390/diagnostics13040621
Submission received: 31 December 2022 / Revised: 29 January 2023 / Accepted: 2 February 2023 / Published: 8 February 2023

Abstract

:
In this work, an attempt has been made to develop an automated system for detecting electroclinical seizures such as tonic-clonic seizures, complex partial seizures, and electrographic seizures (EGSZ) using higher-order moments of scalp electroencephalography (EEG). The scalp EEGs of the publicly available Temple University database are utilized in this study. The higher-order moments, namely skewness and kurtosis, are extracted from the temporal, spectral, and maximal overlap wavelet distributions of EEG. The features are computed from overlapping and non-overlapping moving windowing functions. The results show that the wavelet and spectral skewness of EEG is higher in EGSZ than in other types. All the extracted features are found to have significant differences (p < 0.05), except for temporal kurtosis and skewness. A support vector machine with a radial basis kernel designed using maximal overlap wavelet skewness yields a maximum accuracy of 87%. In order to improve the performance, the Bayesian optimization technique is utilized to determine the suitable kernel parameters. The optimized model achieves the highest accuracy of 96% and an MCC of 91% in three-class classification. The study is found to be promising, and it could facilitate the rapid identification process of life-threatening seizures.

1. Introduction

Epilepsy is one of the most common and devastating neurological disorders that affect people of all ages [1]. It is characterized by repetitive seizures, which are the results of abnormal and excessive brain activity. Certain seizures that are frequently accompanied by stereotypical clinical manifestations are referred to as electroclinical seizures. Tonic-clonic seizures (TCSZ) and complex partial seizures are typical examples of electroclinical seizures. In the case of TCSZ, the patient suffers severely due to the stiffening and twitching of the muscles. This also sometimes leads to a sudden unexpected death in epilepsy (SUDEP) if the patient is unattended [2]. On the contrary, seizures that could be associated with clinical manifestations and do not involve any clinical changes are called electrographic (EGSZ) [3]. Generalized and focal non-specific seizures are examples of electrographic seizures.
Video EEG is considered a golden standard method for the identification of electroclinical seizures, and it is one of convenient procedures followed in the clinical settings. One of the difficulties of this technique is that it cannot be implemented outside the clinical settings. In addition, the evaluation of video EEG is a tiring and time-consuming task for neurologists. Furthermore, the evaluation is subjective, and there is also a short supply of neurologists. It is reported that the therapeutic decisions and clinical trials of TCSZ remained unresolved due to a lack of reliable evidence of clinical manifestations [4]. Therefore, this study aims to develop an automated system to identify seizure types within a short span of time after the onset using scalp EEG.
Several time, frequency, and time-frequency approaches have been developed for the detection of epileptic and normal EEG signals. Short-time Fourier transform measures such as spectral peaks, surface area, and energy have been explored for the differentiation of epileptic and normal EEG signals [5]. Numerous machine learning and deep learning algorithms have been experimented with for the detection of these abnormal events [6,7,8]. In recent studies, researchers have shown interest in developing an EEG signal-processing framework for identifying electroclinical seizures. Accelerometer-based wearable devices have been used to provide objective data about the occurrences of tonic-clonic seizures [9]. Several time and frequency features of intracranial EEG have been employed to predict impending tonic-clonic seizures [2].
Wavelet transform is a popular time-frequency analysis tool used to capture the transient variations present in the signals [10]. The Maximal overlap discrete wavelet transform (MODWT), is an advancement of the discrete wavelet transform that accounts for the issues associated with sample size. It is a scale-invariant, highly redundant, nonorthogonal transform. The redundancy of this advanced technique makes it easier to match the decomposed wavelet and scaling coefficients with the original time series at each level, allowing for a quick comparison of the series and its decomposition. In addition, the coefficients of MODWT for various scales are found to be uncorrelated in most of the cases, which helps in deriving useful statistical measures for the prediction problems [11,12].
Recent research shows that the statistical distribution of EEG provides useful information about underlying pathological conditions. The statistical measures, namely the mean, variance, skewness, and kurtosis of wavelet coefficients, are found to have significant differences between seizure onset and spread regions [13]. Variations in spectral kurtosis have been utilized as one of the major criteria for detecting high-frequency oscillations (HFOs) in epileptic EEG [14,15]. In order to overcome the tiring process of identifying spikes and HFOs, spectral skewness has also been shown to be useful in separating epileptic and non-epileptic channels [16]. However, the applicability of higher-order moments has not been explored for the detection of different seizure types. In particular, it is essential to investigate the usefulness of these higher-order moments extracted from time, frequency, and time-frequency domains. To the best of our knowledge, the effectiveness of these moments in different domains has not been explored in epilepsy research.
In this study, an attempt has been made to develop an automated system for the detection of seizure types such as tonic-clonic, complex partial, and electrographic seizures from the higher-order statistical measures of scalp EEG. The skewness and kurtosis are extracted from time, frequency, and maximal overlap wavelet distributions for different window sizes with and without overlap. The extracted features are used to design models based on a support vector machine with a radial basis kernel function. Further, the kernel parameters are optimized using a Bayesian algorithm for better performance.

2. Materials and Methods

2.1. Description of Data

This study uses Temple University Hospital (TUH) data corpus, which is publicly available for analysis [17]. The database contains the patient report, which includes the details of medical history, clinical manifestations, and medications consumed by the patients. In this work, we considered seizures with clinical symptoms, namely tonic-clonic seizures (TCSZ), complex partial seizures (CPSZ), and seizures without any clinical manifestations. The seizures without medical complications are said to be electrographic seizures (EGSZ), and they may be classified as either focal or generalized based on the involvement of cortex regions. Only epileptic seizures recorded at 400 Hz are considered in this work. The total numbers of seizure onset channels associated with TCSZ, CPSZ, and EGSZ are 83, 114, and 282 respectively.
The TUH EEG Corpus consists of more than 40 unique channels configurations [18]. These channels were optimized into temporal central parasagittal montage. This was done to reduce the dimensionality and to provide reasonable level of performance [19]. This study considers only the contacts involved in the seizure onset regions. All onset channels were identified as per the annotation guidelines [20].

2.2. Feature Extraction

Feature extraction is an important step in the analysis of biomedical signals. It helps in obtaining vital information from the signals. In this study, the higher-order moments, namely, skewness, and kurtosis are extracted from the time, frequency, and time-frequency domains of EEG signals. Short-Time Fourier Transform (STFT) has been utilized to compute the power spectrum and spectral asymmetry. The mathematical expression for STFT is given by:
X n , ω = m = x m w n m e j ω n
where x m is a short-time part of the input signal x n at time n, w n is the window function, and X n , ω is time-frequency coefficients. The discrete STFT is defined as:
X n , l = X n , ω ω = 2 π l N
N is the number of discrete frequencies and l = 0 , 1 , 2 N 1
The spectrogram in logarithmic scale is:
S n , l = l o g X n , k 2

2.2.1. Temporal Skewness and Kurtosis

In probability theory and statistics, skewness is a measure of the asymmetry of the probability distribution of a real-valued random variable. If the distribution is skewed to right side, then the value of skewness is said to be positive, whereas if the distribution is skewed to left side, the skew value will be negative.
The skewness (SKT) is defined by [21]:
S K T = E x μ 3 σ 3  
where μ and σ represent the mean and standard deviation of the distribution.
Kurtosis is a metric that determines whether a data distribution is tailed or peaked, and it is a useful tool for detecting outliers. The kurtosis of a normal distribution is zero. Distributions with a high kurtosis have heavy tails, while distributions with a low kurtosis have light tails. The mathematical expression of kurtosis is given by:
K U T = E x μ 4 σ 4  

2.2.2. Spectral Skewness (SSS) and Kurtosis (SKs)

The spectral skewness measures the asymmetry of the spectral power distribution around its centroid. The mathematical expression of this measure is given by [22],
S S S = k = b 1 b 2   ( f k μ 1 ) 3 s k ( μ 2 ) 3 k = b 1 b 2 s k
where b1 and b2 are band edges, k is frequency corresponding to bin k, μ 1 is spectral centroid, μ 2 is spectral spread, and s k is the spectral value at bin k.
Spectral kurtosis is a measure of the spectral flatness around its centroid. The mathematical expression is given by [22]:
S K s = k = b 1 b 2 f k μ 1 4 s k μ 2 4 k = b 1 b 2 s k

2.2.3. Maximal Overlap Discrete Wavelet

Wavelet transform is one of the most powerful time-frequency approaches for exploring the non-stationary variations of signals. In wavelet technique, the signals are represented as a linear combination of shifted and dilated versions of the mother wavelet. It provides good time-frequency resolution. One of the merits of wavelet is that it provides optimal time and frequency localization at low frequencies (long window) and high frequencies (short window), respectively. Continuous wavelets are represented by multiplying the integral of a signal by its scaled and shifted version. The mathematical expression of wavelet transform is:
C W T a , b = 1 a x t ψ t b a d t
where a and b are scaling and shifting parameters, respectively. ψ is wavelet function. One of the most reliable and digital implementations of wavelet transform is discrete wavelet transform (DWT). This is implemented using an efficient Mallat algorithm. This method is based on a filter bank decomposition. It uses a set of high-pass and low-pass filters that compute detail coefficients (D1 − Dj) and approximation coefficient (Aj), respectively, at decomposition level j. In general, approximate coefficients represent low frequencies and detailed coefficients denote high frequencies. The DWT that uses the power of two is very convenient and efficient for discrete signals such as EEG [23].
The Discrete Wavelet Transform (DWT) that uses power of two is very convenient and efficient for discrete signals like EEG. The expression for DWT is:
D W T j , k = 1 2 j x t ψ t k 2 j 2 j d t 9
The scaling parameter is set to 2 j and shifting function is set to 2 j k , where k = −∞… −2, −1, 0, 1, 2, … and j = 1, 2, … . j is number of levels, which is fixed to six in this study.
The analysis in this work makes use of the maximum overlap discrete wavelet transform (MODWT). Selecting the appropriate wavelet is essential for signal analysis because there are several wavelet families available for signal categorization. The mother wavelet is selected based on the experimenter’s convenience and needs depending on the sort of bio-signal to be studied. The most popular wavelet for DWT research and the one with the best detection rate, according to the literature, is Daubechies. It has been found that the shape and frequency characteristics of Daubechies 4 (db4) wavelet is similar to that of EEG signals manifested during the seizures [24]. Therefore, Daubechies wavelet of order of 4 (db4) is selected as a wavelet function. It suggests that the most used and effective wavelet for seizure detection is db4. The MODWT is a linear filtering operation that transforms a series into coefficients related to variations over a set of scales. The traditional DWT approach is a highly redundant and nonorthogonal transformation [25]. But MODWT retains down-sampled values at each level of the decomposition that would be otherwise discarded by the DWT. The mathematical expressions for computing MODWT coefficients are:
W ˜ j , t = l = 0 L j 1 h j , l X t l
V ˜ j , t = l = 0 L j 1 g j , l X t l
where h j , l and g j , l are the filter functions, t = 0, … N − 1, N is the length of signal samples, and l = 0, 1, … L − 1, and L is the width of the filter. The jth level of detail and approximation coefficients are:
D ˜ j , t = l = 0 L j 1 h j , l W t + l
A ˜ j , t = l = 0 L j 1 g j , l V t + l
The signal can be reconstructed using X n = l = 0 j D ˜ j + A ˜ j
Figure 1 depicts the jth level wavelet decomposition of signal. Applying the MODWT to a time series requires specifying parameters such as a wavelet filter and the level of decomposition. In this study, Daubechies wavelet filter is used for low-pass and high-pass filtering purposes, and the number of levels is fixed to six.
The signals are subjected to six-level decomposition, and the higher-order moments, namely skewness and kurtosis, are extracted from the coefficients. The Hann windowing function is employed to extract all the features in different domains. The features are computed from window lengths of 0.5 s and 1 s with and without overlapping. Overlap is designated as a percentage (0%) and 25% and 50 % of overlapping lengths are used in this study. The mathematical expressions of Hann windowing function [26]
H a n n   W n = 0.5 1 c o s 2 π n N + 1 R N n
where n = 1 , 2 , N .

2.3. Support Vector Machine (SVM)

Support Vector Machine (SVM) is a supervised learning algorithm that separates two classes by creating an optimal decision boundary between them [27]. When the features of different classes have nonlinear relationship, then the linear SVM algorithm may not be a reliable choice. In this case, a kernel trick can be considered for the classification purpose. The kernel tricks will transform the data into higher dimensional space, where the classes can be linearly separated. In this study, a radial basis kernel is used to construct the decision boundary. Kernel equation of radial basis function is given by [28]:
k x , y = exp x y 2 2 σ 2
k e r n e l   s c a l e γ = 1 2 σ 2
where x y is distance between x and y.

2.4. Bayesian Optimization

The purpose of Bayesian algorithm is to provide optimal solution for the objective functions. It is widely utilized in the field of cutting-edge artificial intelligence to tune the hyper parameters. It has been reported that the technique clearly outperformed the genetic algorithm, particle swarm optimization, and other algorithms [29]. Recently, it has been applied to tune the hyper parameters of machine learning algorithm [30]. It uses Gaussian process and acquisition function for the optimization task. In each iteration, the surrogate model was updated, and acquisition function finds the next potential point to evaluate the objective function. The expression for the objective function of SVM [31] is:
m i n ω , ξ = 1 2 ω 2 + C i ξ i
where ω represents the hyperplane vector, and C is the weight of the penalty function, which is defined by the sum of all ξ slack variables. This process will continue until the global minimum is reached.
Two important parameters of RBF-SVM classifier are kernel scale and box constraint. Kernel scale (ℽ) specifies the shape of the peak, and box constraint (C) controls the tradeoff between maximization and errors of training data. In this research, Bayesian optimization technique is employed to enhance the performance of classification tasks by fixing the suitable values for kernel scale and C.
The performance of the model is analyzed using the following metrics, namely, sensitivity (SN), specificity (SP), precision (PR), accuracy (Ac), and F1-score (F1). The mathematical representation is given below.
S N = T P T P + F N
S P = T N T N + F P  
P R = T P T P + F P  
A c = T P + T N T P + T N + F P + F N  
F 1 = 2 T P 2 T P + F P + F N  
where TP = True Positive, TN= True Negative, FP = False Positive, and FN = False Negative.
Although measures such as accuracy and F1 score are popular in the evaluation of classification models, the Matthews correlation coefficient (MCC) is one of the more reliable measures for both binary and multi class classification [32,33]. MCC only yields a high score if all four parameters have high scores. In other words, if any value in the confusion matrix goes down, the MCC score also drops, whereas F1 score is insensitive to TP and highly sensitive to FN [33]. Therefore, in order to evaluate the model performance, MCC is also incorporated in this research. The mathematical expression of MCC is written as:
M C C = T P × T N F P × F N T P + F P T P + F N T N + F P T N + F N  
Figure 2 illustrates the proposed seizure type detection system that uses the higher-order moments from maximal overlap wavelet distribution.

3. Results

The main aim of this work is to develop a scalp EEG based automated system for the classification of TCSZ, CPSZ, and EGSZ. The first four seconds of onset are considered with an intention of predicting seizures early from the onset. The representative signals of EGSZ, CPSZ, and TCSZ are shown Figure 3. The box represents the electrical activities of the brain from the seizure onset that are considered for the analysis.
Figure 4 depicts the spectrogram of the representative signals of TCSZ, CPSZ and EGSZ. It is apparent from the spectrograms that the power of the signal at lower frequency range is more in all the seizures. However, in TCSZ, a large amount of power is distributed even in the high frequency regions. Figure 5 represents the MODWT decomposition of representative signal of TCSZ, CPSZ and EGSZ. The sixth level decomposition yields seven different frequency bands that include six detailed coefficients and one approximate co-efficient (D1, D2, D3, D4, D5, D6, and A6). The frequency components associated with D1, D2, D3, D4, D5, D6 and A6 are 100–200 Hz, 50–100 Hz, 25–50 Hz, 12.5–25 Hz, 6.25–12.5 Hz, 3.12–6.25, and 0–3.12 Hz, respectively.
Figure 6 presents the distribution of temporal, spectral, and wavelet skewness and kurtosis extracted from the window length of 0.5 s with 50% overlap. The box plot shows the distribution of average skewness and kurtosis computed from each EEG channel. The median of skewness and kurtosis are found to be higher in EGSZ than TCSZ and CPSZ in spectral and wavelet domain. In the case of temporal skewness and kurtosis, only a very little difference can be seen in the median values among seizure types. It is also noticed that the percentage of overlap in temporal measures is higher than in spectral and wavelet measures. The results of the ANOVA test show that all the extracted features except the temporal kurtosis and skewness are found to have significant difference between the seizure types (p < 0.05). The number of EEG channels in the different seizures seemed to be highly imbalanced, and therefore, the development of detection models will lead to unreliable performance. There are several solutions for handling the class imbalances. These include techniques such as undersampling and oversampling. In the undersampling technique, we randomly select a number of samples from the majority class, whereas oversampling entails creating artificial examples of the minority class. The synthetic minority oversampling technique and adaptive synthetic algorithms are examples of oversampling [34].
In this study, random undersampling (RUS) technique was adapted to handle the class imbalance. RUS approach selects 83 samples at random from the majority class and ensures that the data balance is maintained for training and testing. The developed model was evaluated using 10-fold cross-validation. Table 1 compares the performance of temporal, spectral and wavelet measures for different window sizes and overlapping lengths. It can be observed that wavelet and spectral skewness performed better than others. In particular, the wavelet skewness from the 500 ms window with 50% overlap yielded the highest accuracy of 87% in detecting these three seizure types. Beside this, the model based on spectral skewness achieved a maximum accuracy of 85.9%. The performance of temporal skewness and kurtosis is lower when compared to spectral and wavelet models. To increase the performance of the models further, the hyper parameters of RBF-SVM are optimized using the Bayesian approach. For the optimization, we considered only the feature sets computed from a 500 ms window length with 50% overlap, which could provide maximum performance.
Table 2 lists the optimized parameter values, along with the accuracy. It was found that the temporal skewness and kurtosis obtain the best feasible points when the parameters (C, ℽ) were at (6.3, 10.4) and (2.43, 7.65) respectively. For temporal skewness, it took 124 milliseconds to reach the best minimum objective function value of 0.1192. Temporal kurtosis model could obtain the minimum function value of 0.14132 in 138 milliseconds. Similarly, the model based on spectral skewness has obtained the feasible objective function value of 0.0141. At this point, the hyperparameter values were 6.86 for C and 7.18 for ℽ. The time taken to complete the optimization process was 138 milliseconds. For the model based on spectral kurtosis, the minimum value of objective function is 0.134 and its hyperparameters were 1.5 (C) and 2.74 (ℽ). Figure 7 depicts the optimization process of models based on the wavelet skewness and kurtosis in 30 evaluations. From these results, it can be observed that the box constraint and kernel scale values of wavelet skewness are lower than the skewness from temporal and spectral domain. It can be seen that the wavelet skewness yields a maximum accuracy of around 96% for C = 2.84 and ℽ = 6.34. Overall, the detection rate increased by about a minimum of 9% after optimization. It was also found that the performances of wavelet kurtosis and spectral skewness and kurtosis were considerably improved due to the Bayesian optimization.
The metrics of the improved models are shown in Table 3. The performances of wavelet and spectral skewness are similar. However, the maximum SP, F1, and MCC values are observed in the model designed using wavelet skewness. The results show that the model can detect the three seizure types with the SN of 94.7%, SP of 97.3%, PR of 94.8%, F1- score of 94.7%, and MCC of 91.4%. The highest MCC values show the effectiveness of wavelet skewness in the automated recognition of epileptic seizure types. It is also important to note that the accuracy of the wavelet kurtosis increased by about 10% after optimization. There were also some notable improvements in the temporal skewness-based classification models. However, the detection rate was not as similar to the other measures. The maximum MCC found in temporal skewness was only 74, whereas in the case of wavelet skewness, the model achieved 91.

4. Discussion

In this work, maximal overlap wavelet transform of higher-order moments is proposed to differentiate the TCSZ, CPSZ, and EGSZ from scalp EEG. The effectiveness of the proposed measure is evaluated for Hann window functions. Wavelet domain features yield maximum performance compared to temporal and spectral domain features. It is also found that 50% of overlap with 0.5 s data perform the maximum in all domains. There are several wavelet families available for signal characterization, and choosing the right wavelet is crucial for signal analysis. The Daubechies family of wavelets with order 2 or 4, which offered better results for biosignal characterization, has been used mostly in the research work [24]. Decomposition levels also play an important role in optimization process [35]. However, in this study, it is observed that there is no significant change in the classification accuracy after the 6th level of decomposition. Further, the impact of optimizing the kernel parameters is also investigated in this research. The detection rate before and after the optimization is presented in Figure 8.
Several studies on epilepsy mainly focused on discriminating seizure and non-seizure events over the past decades. There are only a few studies that have made an attempt to develop algorithms for the detection of seizure types. Table 4 provides a brief comparison of our proposed work with the models based on classical learning algorithms reported in the literature. Wavelet decomposition methods were widely used for the detection of seizure types. Three features, namely fuzzy entropy, logarithmic of the squared norm, and fractal dimension, were computed from the wavelet coefficients of EEG signals. These coefficients were decomposed by two-band energy localized orthogonal wavelet filter bank. These features, along with the quadratic SVM model, yielded a maximum accuracy of 79.34% and an F1 score of 88% [36]. In another study, features such as root mean square value, variance, standard deviation, log entropy, and maximum frequency were extracted from coefficients and were used to develop models based on bagged tree and k N N . The maximum accuracy of 82% was achieved with the bagged tree algorithm [37]. The energy of the wavelet coefficients was also exploited for the characterization of EEG signals during TCSZ and EGSZ. The classification accuracy of 87% was achieved with the k N N model based on these measures [38]. Recently, the SVM-polynomial kernel-based learning model with the entropy from the seven scale wavelet coefficients was shown to be useful in detecting the TCSZ with a maximum accuracy of 95% [39].
In this work, machine learning models based on higher-order moments from three domains and RBF-SVM are proposed to differentiate three types of seizures, namely TCSZ, CPSZ, and EGSZ from scalp EEG. The impact of optimizing kernel parameters is also investigated in this research. It is observed that wavelet skewness performs better than others. The results show that the proposed system can differentiate the TCSZ, CPSZ, and EGSZ with an average accuracy and MCC of 96% and 91.4%, respectively. It is important to note that the proposed system utilizes only four seconds of signals from the seizure onset for the detection of seizures. The computational load for the calculation of wavelet skewness is only 2.3 milliseconds per channel. Therefore, the proposed system could be used either in clinical settings or at home to detect the seizures with and without clinical manifestations. The model is developed using MATLAB R 2019b and implemented on an Intel® Core™ i7 8550U with the clock frequency of 1.80 GHz. The study considers relatively a low number of epileptic channels for the development and testing of automated seizure detection system. This limitation will be overcome by incorporating a greater number of seizures in the future.

5. Conclusions

In this research, a system is proposed to differentiate the TCSZ, CPSZ and EGSZ from the scalp EEG. For this purpose, the EEG signals from Temple University and Hospital database are considered for the analysis. Recent studies have shown that higher-order moments provide valuable information about pathological conditions. Therefore, in this study, an attempt has been made to analyze the applicability of the skewness and kurtosis from three different signal processing domains in the detection of TCSZ, CPSZ, and EGSZ. The variations of skewness and kurtosis in time, frequency, and time-frequency domains are analyzed for varied window sizes with and without overlap. Further, these features are used to design a model based on SVM-RBF for classification purposes. Then, the random undersampling technique is implemented to avoid issues related to class imbalance. The results show that the wavelet and spectral measures are higher in EGSZ than TCSZ and CPSZ. The maximum accuracy of 87% is achieved from the model based on wavelet skewness. In order to improve the performance, the Bayesian optimization technique is adapted to find suitable kernel parameters of RBF. The performance of the model is improved by around 9% after optimization. The highest accuracy of 96%, F1-measure of 94.7%, and precision of 94.8% are obtained by the wavelet skewness for the three-class classification. Therefore, it appears that the proposed model has the potential to detect seizure types and improve the efforts of therapeutic decisions. The proposed seizure prediction framework can also be extendable for applications related to wearable sensors.

Author Contributions

Conceptualization, J.M., N.S. and P.A.K.; Methodology, J.M.; Validation, N.S. and P.A.K.; Formal analysis, N.S. and P.A.K.; Investigation, J.M., N.S. and P.A.K.; Data curation, J.M. and N.S.; Writing—original draft, J.M.; Writing—review & editing, P.A.K.; Supervision, N.S. and P.A.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Early Career Research Award of Science and Engineering Research Board (SERB), India by grant number ECR/2018/1370.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Acknowledgments

We gratefully acknowledge the support of the Science and Engineering Research Board (SERB). We thank Temple University Hospital (TUH), USA for sharing the seizure data for this work.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Lee-Lane, E.; Torabi, F.; Lacey, A.; Fonferko-Shadrach, B.; Harris, D.; Akbari, A.; Lyons, R.A.; Rees, M.I.; Sawhney, I.; Halcox, J.; et al. Epilepsy, antiepileptic drugs, and the risk of major cardiovascular events. Epilepsia 2021, 62, 1604–1616. [Google Scholar] [CrossRef]
  2. Karthick, P.A.; Tanaka, H.; Khoo, H.M.; Gotman, J. Secondary generalization from a focal onset seizure in intracerebral EEG. Clin. Neurophysiol. 2018, 29, 1030–1040. [Google Scholar] [CrossRef] [PubMed]
  3. Fernández, I.S.; Abend, N.S.; Arndt, D.H.; Carpenter, J.L.; Chapman, K.E.; Cornett, K.M.; Dlugos, D.J.; Gallentine, W.B.; Giza, C.C.; Goldstein, J.L.; et al. Electrographic seizures after convulsive status epilepticus in children and young adults: A retrospective multicenter study. J. Pediatr. 2014, 164, 339–346. [Google Scholar] [CrossRef] [PubMed]
  4. Elger, C.E.; Hoppe, C. Personal View Diagnostic challenges in epilepsy: Seizure under-reporting and seizure detection. Lancet Neurol. 2018, 17, 279–288. [Google Scholar] [CrossRef] [PubMed]
  5. Ramos-Aguilar, R.; Olvera-López, J.A.; Olmos-Pineda, I.; Sánchez-Urrieta, S. Feature extraction from EEG spectrograms for epileptic seizure detection. Pattern Recognit. Lett. 2020, 13, 202–209. [Google Scholar] [CrossRef]
  6. Savadkoohi, M.; Oladunni, T.; Thompson, L. A machine learning approach to epileptic seizure prediction using Electroencephalogram (EEG) Signal. Biocybern. Biomed. Eng. 2020, 40, 1328–1341. [Google Scholar] [CrossRef]
  7. Yadav, V.P.; Sharma, K.K. Variational mode decomposition-based seizure classification using Bayesian regularized shallow neural network. Biocybern. Biomed. Eng. 2021, 41, 402–418. [Google Scholar] [CrossRef]
  8. Abdulhay, E.; Elamaran, V.; Chandrasekar, M.; Balaji, V.V.; Narasimhan, K. Automated diagnosis of epilepsy from EEG signals using ensemble learning approach. Pattern Recognit. Lett. 2020, 139, 174–181. [Google Scholar] [CrossRef]
  9. Milo, M. Automated Detection of Tonic—Clonic Seizures Using 3-D Accelerometry and Surface Electromyography in Pediatric Patients. IEEE J. Biomed. Health Inform. 2016, 20, 1333–1341. [Google Scholar]
  10. Liu, Y.; Zhou, W.; Yuan, Q.; Chen, S. Automatic seizure detection using wavelet transform and SVM in long-term intracranial EEG. IEEE Trans. Neural Syst. Rehabil. Eng. 2012, 20, 749–755. [Google Scholar] [CrossRef] [PubMed]
  11. Follis, J.L.; Lai, D. Variability analysis of epileptic EEG using the maximal overlap discrete wavelet transform. Health Inf. Sci. Syst. 2020, 8, 26. [Google Scholar] [CrossRef] [PubMed]
  12. Rodrigues, D.V.Q.; Zuo, D.; Li, C.A. MODWT-Based Algorithm for the Identification and Removal of Jumps/Short-Term Distortions in Displacement Measurements Used for Structural Health Monitoring. IoT 2022, 3, 60–72. [Google Scholar] [CrossRef]
  13. Karthick, P.A.; Tanaka, H.; Khoo, H.M.; Gotman, J. Could we have missed out the seizure onset: A study based on intracranial EEG. Clin. Neurophysiol. 2020, 131, 114–126. [Google Scholar] [CrossRef] [PubMed]
  14. Zhang, T.; Chen, W.; Li, M. Complex-valued distribution entropy and its application for seizure detection. Biocybern. Biomed. Eng. 2020, 40, 306–323. [Google Scholar] [CrossRef]
  15. Chakraborty, M.; Mitra, D. Epilepsy seizure detection using kurtosis based VMD’s parameters selection and bandwidth features. Biomed. Signal Process. Control 2021, 64, 102255. [Google Scholar]
  16. Mooij, A.H.; Frauscher, B.; Gotman, J.; Huiskamp, S.G.J. A skew-based method for identifying intracranial EEG channels with epileptic activity without detecting spikes, ripples, or fast ripples. Clin. Neurophysiol. 2020, 131, 183–192. [Google Scholar] [CrossRef]
  17. Shah, V.; Von Weltin, E.; Lopez SMchugh, J.R.; Veloso, L. The Temple University Hospital Seizure Detection Corpus. Front. Neuroinform. 2018, 12, 83. [Google Scholar] [CrossRef]
  18. Harati, A.; López, S.; Obeid, I.; Picone, J.; Harati, A.; Choi, S.; Tabrizi, M.; Obeid, I.; Picone, J.; Jacobson, M. The temple university hospital eeg corpus. In Proceedings of the 2013 IEEE Global Conference on Signal and Information Processing, Austin, TX, USA, 3–5 December 2013. [Google Scholar]
  19. Shah, V.; Golmohammadi, M.; Ziyabari, S.; Von Weltin, E.; Obeid, I.; Picone, J. Optimizing channel selection for seizure detection. In Proceedings of the 2017 IEEE Signal Processing in Medicine and Biology Symposium (SPMB), Philadelphia, PA, USA, 2 December 2017. [Google Scholar]
  20. Ochal, D.; Rahman, S.; Ferrell, S.; Elseify, T.; Obeid, I.; Picone, J. The Temple University Hospital EEG Corpus: Annotation Guidelines. Institute for Signal and Information Processing Report; National Science Foundation: Alexandria, VA, USA, 2020; Volume 1.
  21. Krishnan, S. Biomedical Signal Analysis for Connected Healthcare; Elsevier: Amsterdam, The Netherlands, 2021. [Google Scholar]
  22. Peeters, G. A large set of audio features for sound description (similarity and classification) in the CUIDADO project. CUIDADO Ist Proj. Rep. 2004, 54, 1–25. [Google Scholar]
  23. Chen, D.; Wan, S.; Xiang, J.; Bao, F.S. A high-performance seizure detection algorithm based on Discrete Wavelet Transform (DWT) and EEG. PLoS ONE 2017, 12, e0173138. [Google Scholar] [CrossRef]
  24. Kim, J.; Caire, G.; Molisch, A.F. Quality-aware streaming and scheduling for device-to-device video delivery. IEEE ACM Trans. Netw. 2015, 24, 2319–2331. [Google Scholar] [CrossRef]
  25. Cornish, C.R.; Bretherton, C.S.; Percival, D.B. Maximal overlap wavelet statistical analysis with application to atmospheric turbulence. Bound.-Layer Meteorol. 2006, 119, 339–374. [Google Scholar] [CrossRef]
  26. Prabhu, K.M. Window Functions and Their Applications in Signal Processing; Taylor & Francis: Abingdon, UK, 2014; p. 404. [Google Scholar]
  27. Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
  28. Cervantes, J.; Garcia-lamont, F.; Rodríguez-mazahua, L.; Lopez, A. A comprehensive survey on support vector machine classification: Applications, challenges and trends. Neurocomputing 2020, 408, 189–215. [Google Scholar] [CrossRef]
  29. Xie, W.; Nie, W.; Saffari, P.; Robledo, L.F.; Yves, P. Landslide hazard assessment based on Bayesian optimization—support vector machine in Nanping City. Nat. Hazards 2021, 109, 931–948. [Google Scholar] [CrossRef]
  30. Gaspar, P.; Carbonell, J.; Oliveira, J.L. On the parameter optimization of Support Vector Machines for binary classification. J. Integr. Bioinform. 2012, 9, 33–43. [Google Scholar] [CrossRef]
  31. Victoria, A.H.; Maragatham, G. Automatic tuning of hyperparameters using Bayesian optimization. J. Syst. Evol. 2021, 12, 217–223. [Google Scholar] [CrossRef]
  32. Chicco, D.; Tötsch, N.; Jurman, G. The Matthews correlation coefficient (MCC) is more reliable than balanced accuracy, bookmaker informedness, and markedness in two-class confusion matrix evaluation. BioData Min. 2021, 14, 13. [Google Scholar] [CrossRef]
  33. Chicco, D.; Jurman, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef]
  34. Shi, Q.; Zhang, H. Fault Diagnosis of an Autonomous Vehicle with an Improved SVM Algorithm Subject to Unbalanced Datasets. IEEE Trans. Ind. Electron. 2021, 68, 6248–6256. [Google Scholar] [CrossRef]
  35. Gandhi, T.; Panigrahi, B.K.; Anand, S. A comparative study of wavelet families for EEG signal classification. Neurocomputing 2011, 74, 3051–3057. [Google Scholar] [CrossRef]
  36. Sharma, M.; Patel, S.; Acharya, U.R. Automated detection of abnormal EEG signals using localized wavelet filter banks. Pattern Recognit. Lett. 2020, 133, 188–194. [Google Scholar] [CrossRef]
  37. McCallan, N.; Davidson, S.; Ng, K.Y.; Lan, D.B.F.; McLaughlin, J.P. Seizure Classification of EEG based on Wavelet Signal Denoising Using a Novel Channel Selection Algorithm. arXiv 2021, arXiv:2109.00852. [Google Scholar]
  38. Joseph, M.; Sivakumaran, N.; Karthick, P.A. Detection of seizure types from the wavelet energy of scalp eeg. Biomed. Sci. Instrum. 2021, 57, 2–14. [Google Scholar]
  39. Mathew, J.; Manuskandan, S.R.; Sivakumaran, N.; Karthick, P.A. Detection of Tonic-Clonic Seizures using Wavelet Entropy of Scalp EEG. In Proceedings of the 2021 43rd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Guadalajara, Mexico, 1–5 November 2021. [Google Scholar]
Figure 1. Overview of Wavelet decomposition. Dj is details at jth level and aj is approximation at jth level.
Figure 1. Overview of Wavelet decomposition. Dj is details at jth level and aj is approximation at jth level.
Diagnostics 13 00621 g001
Figure 2. Block diagram representation of proposed system.
Figure 2. Block diagram representation of proposed system.
Diagnostics 13 00621 g002
Figure 3. Representative EEG channel of (a) EGSZ, (b) CPSZ and (c) TCSZ. The electrical activities of brain from onset are highlighted in the box.
Figure 3. Representative EEG channel of (a) EGSZ, (b) CPSZ and (c) TCSZ. The electrical activities of brain from onset are highlighted in the box.
Diagnostics 13 00621 g003
Figure 4. Spectrogram of (a) EGSZ, (b) CPSZ and (c) TCSZ. Hann window function is used to extract power spectrum of the signals. Colors indicate the intensity of power component with respect to frequency.
Figure 4. Spectrogram of (a) EGSZ, (b) CPSZ and (c) TCSZ. Hann window function is used to extract power spectrum of the signals. Colors indicate the intensity of power component with respect to frequency.
Diagnostics 13 00621 g004
Figure 5. Maximal overlap discrete wavelet transform of representative signals. (a) EGSZ, (b) CPSZ, and (c) TCSZ.
Figure 5. Maximal overlap discrete wavelet transform of representative signals. (a) EGSZ, (b) CPSZ, and (c) TCSZ.
Diagnostics 13 00621 g005
Figure 6. Distribution of (a) temporal skewness, (b) temporal kurtosis (c) spectral skewness (d) spectral kurtosis (e) wavelet skewness and (f) wavelet kurtosis. Window function of 0.5 s with an overlap of 50%.
Figure 6. Distribution of (a) temporal skewness, (b) temporal kurtosis (c) spectral skewness (d) spectral kurtosis (e) wavelet skewness and (f) wavelet kurtosis. Window function of 0.5 s with an overlap of 50%.
Diagnostics 13 00621 g006
Figure 7. Bayesian optimization of hyperparameters of RBF-SVM. (a,b) represent the optimization process of wavelet skewness and (c,d) represents the minimization process of wavelet kurtosis. The objective function values, kernel parameters in 30 evaluations are shown.
Figure 7. Bayesian optimization of hyperparameters of RBF-SVM. (a,b) represent the optimization process of wavelet skewness and (c,d) represents the minimization process of wavelet kurtosis. The objective function values, kernel parameters in 30 evaluations are shown.
Diagnostics 13 00621 g007
Figure 8. Barchart of detection rate (%) in temporal, spectral and wavelet domains (a) after optimization (b) before optimization.
Figure 8. Barchart of detection rate (%) in temporal, spectral and wavelet domains (a) after optimization (b) before optimization.
Diagnostics 13 00621 g008
Table 1. Accuracy of detection models.
Table 1. Accuracy of detection models.
SkewnessKurtosis
Window size0.5 s1 s0.5 s1 s
Overlap (%)02550025500255002550
Temporal domain73.574.574.668.370.561.171.369.474.467.267.275
Spectral domain83.685.085.981.484.984.377.774.478.77576.777.3
Wavelet domain85.383.287.182.181.781.079.480.781.380.278.579.3
Table 2. Average accuracy after optimization of RBF-SVM.
Table 2. Average accuracy after optimization of RBF-SVM.
SkewnessKurtosis
MethodBox Constraint (C)Kernel Scale (ℽ)Accuracy (%)Box Constraint (C)Kernel Scale (ℽ)Accuracy (%)
Temporal domain6.310.484.222.437.6581.83
Spectral domain6.867.1891.531.52.7490.76
Wavelet domain2.846.3496.121.7315.690.96
Table 3. Performance metrics of RBF SVM after the optimization.
Table 3. Performance metrics of RBF SVM after the optimization.
Skewness (%)Kurtosis (%)
MethodSNSPPRF1MCCSNSPPRF1MCC
Temporal87.685.885.586.574.283.181.982.182.671.7
Spectral95.393.993.193.290.192.589.589.190.885.6
Wavelet94.797.394.894.791.492.796.392.692.690.0
Table 4. Comparison of classical machine learning based seizure type detection methods.
Table 4. Comparison of classical machine learning based seizure type detection methods.
AuthorsMethod + ClassifiersPerformance
Sharma et al. [36]Wavelet filter banks + SVMAc-79.34%; F1 = 88%
Niamh M et al. [37]Wavelet + k-NN + bagged treeAc = 82%
M. Joseph et. al. [38]Wavelet energy + k-NNAc = 87.6%
M. Joseph et al. [39]Wavelet entropy + SVMAc = 95.5%, F1 = 95.9%
ProposedSpectral skewness + SVMAc = 95.18%; F1 = 95.24%; MCC = 0.90%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mathew, J.; Sivakumaran, N.; Karthick, P.A. Automated Detection of Seizure Types from the Higher-Order Moments of Maximal Overlap Wavelet Distribution. Diagnostics 2023, 13, 621. https://doi.org/10.3390/diagnostics13040621

AMA Style

Mathew J, Sivakumaran N, Karthick PA. Automated Detection of Seizure Types from the Higher-Order Moments of Maximal Overlap Wavelet Distribution. Diagnostics. 2023; 13(4):621. https://doi.org/10.3390/diagnostics13040621

Chicago/Turabian Style

Mathew, Joseph, Natarajan Sivakumaran, and P. A. Karthick. 2023. "Automated Detection of Seizure Types from the Higher-Order Moments of Maximal Overlap Wavelet Distribution" Diagnostics 13, no. 4: 621. https://doi.org/10.3390/diagnostics13040621

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop