Abstract
Epilepsy is one of the most serious nervous system diseases; it can be diagnosed accurately by video electroencephalogram. In this study, we analyzed microstate epileptic electroencephalogram (EEG) to aid in the diagnosis and identification of epilepsy. We recruited patients with focal epilepsy and healthy participants from the Third Xiangya Hospital and recorded their resting EEG data. In this study, the EEG data were analyzed by microstate analysis, and the support vector machine (SVM) classifier was used for automatic epileptic EEG classification based on features of the EEG microstate series, including microstate parameters (duration, occurrence, and coverage), linear features (median, second quartile, mean, kurtosis, and skewness) and non-linear features (Petrosian fractal dimension, approximate entropy, sample entropy, fuzzy entropy, and Lempel–Ziv complexity). In the gamma sub-band, the microstate parameters as a model were the best for interictal epilepsy recognition, with an accuracy of 87.18%, recall of 70.59%, and an area under the curve of 94.52%. There was a recognition effect of interictal epilepsy through the features extracted from the EEG microstate, which varied within the 4~45 Hz band with an accuracy of 79.55%. Based on the SVM classifier, microstate parameters and EEG features can be effectively used to classify epileptic EEG, and microstate parameters can better classify epileptic EEG compared with EEG features.
Keywords: epilepsy, EEG microstate, EEG features, SVM classifier
1. Introduction
Epilepsy is one of the most common neural diseases, with recurrent, persistent, and episodic characteristics [1]. Epilepsy is transient, stereotyped, recurrent, and sudden. Abnormal electrical activity in the brain causes short-lived seizures [2]. According to the International League Against Epilepsy (ILAE), epilepsy can be diagnosed as two or more seizures within an interval of 24 h. Epilepsy is a state of abnormal neural activity, which is caused by the hypersynchronous discharge of neurons. At this time, neurons show extremely active discharge activity, which induces seizures, including a loss of consciousness, tics, etc. Epilepsy affects 8% of the world’s population, both directly and indirectly [2], and patients with epilepsy (PWEs) rarely realize or predict the onset of a seizure before it occurs, which increases the risk of physical harm. The early diagnosis and subsequent evaluation of epilepsy is crucial. Due to delays in epilepsy diagnosis and untimely and inappropriate treatments, many patients develop serious complications, such as cognitive disorders, emotional disorders, etc. During a seizure, ictal epileptiform discharges (IEDs) are produced, which is a necessary condition for the diagnosis of epilepsy [3]. However, a short-term interval electroencephalogram (EEG) cannot accurately record the IEDs; therefore, the diagnosis of PWEs is based on video electroencephalogram (VEEG) in clinical practice. When interictal, electrical activity in the brains of PWEs remains relatively normal, usually without epileptiform discharges, which adds difficulty to the diagnosis of epilepsy [4]. Moreover, long-term EEG is relatively expensive, and the required labor is relatively high. Therefore, if short-term EEG can be used for the early diagnosis of epilepsy, it will greatly reduce the burden on doctors and patients. With technological developments, the number of electrodes used in clinical EEG technology has gradually developed, from the 16-lead conventional EEG to 512-lead EEG. With the greater number of electrodes, more information can be recorded by the EEG, and the more likely the doctor is to make a diagnosis. Whether low-lead or high-lead EEG is used, there will be noise during recording, such as noise caused by muscle movement [5], eye blinks [6], etc. Therefore, it is necessary to remove the noise through processing. In this study, we used microstate analysis to classify and diagnose epilepsy through short-term EEG recorded by a 128-lead EEG instrument.
To study changes in the nervous system of the brain, EEG signals provide valuable information through the oscillatory dynamics of brain waves. EEG generally refers to scalp EEG, which is used to record the electric potential of the entire scalp generated by electrical activity in the brain, and there are advantages of high temporal resolution non-invasiveness [7]. Previous studies have shown that EEG can be used as a potential biomarker to diagnose various neuropsychiatric disorders, such as schizophrenia [5], depression [7], epilepsy [8], emotional disorders [9], etc. Compared with traditional time–frequency domain analysis methods, microstate analysis, representing the current state of brain topological activity, has been studied with some success.
EEG microstates are short-lived quasi-stable electrical activity patterns in the cortex that suggest the presence of neural networks [10]. EEG microstate analysis began in 1987 with the work of Lehman et al. [11]. It indicates that the scalp potential topography is in a relatively stable state within 60~120 ms, and then quickly switches to another state and remains stable. The semi-stable nature is referred to as the EEG microstate [11]. EEG microstate is a common method used to study large-scale neural networks, which combines the temporal and spatial information of EEG, enabling the observation of millisecond-level changes in EEG topography. Lehman found that the topology of the scalp voltage topography of the resting-state EEG did not change continuously or randomly over time. Following Lehman, some researchers found that the topology of the scalp voltage topography remained stable for a certain period of time, and was then quickly converted into another scalp voltage topography and remained stable for a certain period of time, in which the intensity of the scalp voltage topography was variable [12], but the topology was constant. There are four common map shapes of microstates, named A, B, C, and D, which indicate changes in the activity of brain neurons and reflect different neurological functions of the brain [13]. These four microstates are related to four known functional systems, where each system is activated by specific cognitive functions and sensory inputs. Quantitative determination of the onset and duration of microstates can yield information related to neuronal electrical activity, which can be used for neurological-disease-related analysis [9,14]. In 2021, a study by Annamaria Painold et al. suggested that changes in brain nerve activity and functional deficits may lead to changes in EEG microstates [15].
Compared with other EEG analysis methods, microstate-based EEG analysis has several advantages. The most important of these is that the EEG microstate topographic map can be defined at any data point independently, enabling the observation of millisecond-level changes in electrical topographic maps [16]. Therefore, EEG microstates are more suitable for the rapid analysis of the dynamics of large-scale EEG activity. Microstate EEG analysis simultaneously integrates EEG signals from all electrodes to create a global functional representation that reflects the overall functional state of the brain [12]. Therefore, EEG microstate analysis represents an effective, low-cost, and maneuverable electrophysiology method for studying large-scale neural networks [17].
EEG microstate analysis can be used to detect rapid, dynamic activity in large-scale neuro-networks. Therefore, this study incorporated the microstate analysis of epileptic high-lead EEG to accurately extract the spatial and temporal information of epileptic EEG. In this study, the microstate analysis of high-lead EEG during the interictal period of epilepsy was carried out in order to obtain a model that can effectively classify the interictal EEG of PWEs and assist in the diagnosis of epilepsy.
2. Materials and Methods
This study was an EEG classification experiment based on EEG microstate analysis. It was based on the support vector machine (SVM) classifier, which was used to compare the effects of different feature extraction methods on EEG classification. The technology roadmap is shown in Figure 1.
Figure 1.
The technology roadmap of this paper.
2.1. Subjects and EEG Recording and Preprocessing
This was a single-center research study, and it passed the ethical review of the Third Xiangya Hospital (ID: 22187). EEG recordings were obtained from 32 PWEs and 20 healthy subjects, who were recruited from the Third Xiangya Hospital. The inclusion and exclusion criteria were as follows. Inclusion criteria: (1) diagnosed with focal epilepsy by two professional doctors according to the 2017-ILAE standard; (2) age ≥ 15 years or head circumference matched with electrode cap. Exclusion criteria: (1) history of other brain-related conditions (trauma, infection, etc.); (2) unable to complete EEG tasks independently; (3) unable to consent to EEG examination. Each participant received a 128-lead EEG examination with the GSN system, whose sampling rate was 1000 Hz, and the duration was 5 min. For each instance, 5 EEG values, with a duration of 45 s, were extracted to minimize noise and artifacts.
For the measurement data which showed a normal distribution, t-tests were selected for statistical analysis, and for the measurement data that did not fulfil the normal distribution and the count data, Mann–Whitney U nonparametric tests were selected for the statistical analysis.
We preprocessed all data through EEGLAB (2020b), a plug-in for MATLAB (vR2020b), to remove artifacts and noise, including filtering (0.5~4 Hz, 4~8 Hz, 8~13 Hz, 13~30 Hz, 30~45 Hz, 45~80 Hz, and 4~45 Hz), ICA, removal of the bad conductors, and the selection of non-IED data. Due to interference and the influence of patients, such as a sudden seizure or hyperactivity symptoms, which caused a large amount of artifacts that could not be removed, we finally obtained 135 epileptic EEG data values and 83 healthy EEG data values, whose duration was 45 s.
2.2. Microstate Analysis
For microstate analysis, we followed the standard steps for microstate segmentation proposed by Murray et al. We used MATLAB (vR2020b) and the EEGLAB toolbox to carry out the analysis. First, we calculated the field strength at each moment (the global field power (GFP)). GFP is defined as
where is the electrode voltage vector (united as µv) at time t, n is the number of electrodes, and represents the voltage of the th electrode. In topographic maps with distinct or many peaks, when the GFP is high, the signal-to-noise ratio tends to be high; when the GFP is low, the signal-to-noise ratio tends to be low. We selected the topographic map at the peak of the GFP as the original topographic map to describe the surrounding EEG signals, which can effectively reduce the redundancy of EEG signals and the computational load. Four types of microstate topographic maps were selected as the original model topographic maps through cross-validation [13]. Subsequently, each original topographic map was spatially clustered to obtain the final model topographic map, in order to maximize the similarity between EEG samples and their designated microstate prototypes. In this study, we applied K-means spatial clustering. The flow chart of EEG microstate analysis is shown in Figure 2.
Figure 2.
Flow chart of EEG microstate analysis. Each EEG datum point was used to calculate the GFP curve of each data point. We plotted the potential of all electrodes at the time of local maximum of the GFP curve to generate the original topographic map. The original maps were subjected to the clustering algorithm, which grouped submitted maps into a group of clusters (4 maps) according to the terrain similarity. Finally, the clustering map was inversely fitted to the GFP curve, and each data point was marked with the most relevant clustering map. Therefore, EEG signals were converted into EEG microstate sequences.
2.2.1. K-Means Clustering
In this study, we adopted the spatial clustering algorithm based on K-means clustering, as shown in Figure 3. The GMD value provided an electric-field-independent metric that describes the topological difference between two electric field topographic maps. The GMD value is defined as
Figure 3.
Microstate category recognition process based on K-means clustering.
In the formula, represents the voltage value of the first topographic map, represents the voltage value of the second topographic map, and refers to the number of electrodes. The range of GMD values is from 0 to 2. Zero means that the two maps are completely consistent, and two represents the polarities of the two maps on the contrary. The algorithm of K-means clustering comes from the research of Koening et al. [12]. For each model topographic map, we will obtain a time series of spatial correlation coefficients, and for each original topographic map, we can obtain a model topographic map figure with the lowest GMD. Based on these results, we calculated the overall proportion of variance explained (GEV, which describes the proportion of variance explained by the model topographic map over all original topographic maps) for the four selected model topographic maps. We matched the model topographic map with the original topographic map based on the GMD value, marked the original map as the type with the smallest GMD, and superimposed all the original topographic maps marked with the same model topographic map to obtain four new topographic patterns. (4) We repeated step 3 until the GEV value did not increase (i.e., the GEV reached the highest level), and the final four-mode topographic map is obtained. The original scalp potential topography obtained by each subject at each time was compared and matched with the microstate (pattern topographic map) obtained by clustering, the four microstates were marked as A, B, C, and D, and the subjects were obtained. The corresponding EEG microstate time series parameters were calculated. In the EEG microstate analysis, we extracted microstate parameters and EEG signal features, and we used them as models to classify epileptic EEG using the SVM classifier.
2.2.2. EEG Microstate Parameters
The basic temporal dynamics of microstates are described by occurrence, duration and coverage. The occurrence rate reflects the average times per second dominated by microstates. The duration is defined as the average duration (in milliseconds) of a given microstate. The coverage rate reflects the fraction of time for which a given microstate is active. These fractions are directly extracted through the algorithm in EEGLAB. In this study, the parameters (occurrence, duration, and coverage) were used as a model to classify epileptic EEG signals.
2.3. Feature Extraction
EEG signals are nonlinear; therefore, nonlinear features are commonly extracted to accurately classify signals. In this study, five types of linear features and five types of nonlinear features were extracted from the EEG microstate in the sub-band of 4~45, which is usually used in EEG analysis [18]. The linear features were the mean, second quartile, median, skewness, and kurtosis. The nonlinear features were the Petrosian fractal dimension (PFD), Lempel–Ziv complexity (LZC), and entropies (approximate entropy, sample entropy and fuzzy entropy).
2.3.1. Linear Feature Extraction
Some time–frequency features were used in signal processing in the time–frequency domain. These are governed by the equations given in Table 1.
Table 1.
Calculation formula linear features.
| Formula | |
|---|---|
| Median |
, N is an odd , N is an even |
| Mean | |
| Skewness | |
| Kurtosis |
2.3.2. Nonlinear Feature Extraction
PFD
The Petrosian fractal dimension (PFD) is a chaotic algorithm used to calculate EEG signal complexity [19]. The PFD quickly computes fractal dimensions by converting signals into binary sequences. It is governed by the following equation:
Here, denotes the number of signals, and denotes the number of changes in the signal.
LZC
Based on the binary coarse-grained algorithm, we calculated the mean and threshold of LZC, compared the amplitude and threshold, and converted the original signal into a 0–1 sequence [20]. Then, the number of distinct patterns in the sequence was calculated from the complexity of the signal. It was governed by the following equation:
where , n is the length of the time series and i is the coarse-grained degree of the time series.
Entropy
Entropy measures the chaos within a system and is useful in measuring the ambiguity and variability in signals. In this study, four entropies were studied, including the approximate entropy (ApEn) [21], sample entropy (SampEn) [22] and fuzzy entropy [23].
ApEn is defined as
where , N is the length of the time series, r is the similarity capacity, and m is the embedded dimension.
SampEn is defined as
where , is the probability that the distance between the vector and the vector is less than r, N is the length of time series, r is the similarity capacity, and m is the embedded dimension.
Fuzzy entropy is defined as
where , N is the length of the time series, r is the similarity capacity, and m is the embedded dimension.
2.4. Training/Test Set Split
To avoid overfitting, we used cross-validation for the classification experiments. However, the data were amplified from a limited number of patients; therefore, specific data segmentation was required to prevent the classifier from learning the pattern of each patient. To this end, we randomly selected one PWE and one healthy person; for each participant, we included five data values with the same labels as the test set. The data of the other 26 PWE and 17 healthy participants (225 subjects in total) were applied in the cross-validation experiment as a training set.
2.5. EEG Signal Classification
SVM is a binary classification model. It can be divided into a linear model and nonlinear models according to the type of input data [24]. In our study, the EEG data were divided into a testing set with 1 epileptic EEG datum point and 1 heathy EEG datum point, and a training set. Then, we chose leave-one-out cross-validation to complete the classification task of epileptic EEG [25,26,27].
The extracted microstate parameter set and feature set were input into the SVM classifier separately. SVM has good generalization capacities to prevent overfitting. Compared with other classifiers, SVM has high robustness and generality to non-stationary signals and is widely used in machine learning analysis.
2.6. Evaluation of Classifier
The SVM classifier belongs to the second type of classifier, and its classification results are “Yes” and “No”. We defined the EEG of epileptic patients as “positive EEG” and the EEG of healthy subjects as “negative EEG”. We used accuracy, recall, and specificity to evaluate the classification efficiency of the SVM classifier for epileptic EEG in this study. TP (true positive) is the amount of positive EEG data predicted by the model as positive samples; FP (false positive) is the amount of negative EEG data predicted by the model as positive samples; FN (false negative) is defined as the amount of positive data predicted by the model as negative samples; and TN (true negative) is the amount of negative EEG data predicted by the model as negative samples. Then, we calculated the accuracy, recall, and specificity according to TP, FP, FN, and TN.
The receiver operating characteristic (ROC) curve is a plot with recall on the y-axis and specificity on the x-axis. The area under the ROC curve (AUC) is a measure of the model performance. For practical situations, an AUC of over 70% is desirable [28].
3. Results
3.1. Participants’ Information
Our study recruited 44 participants, including 27 PWEs and 17 healthy participants. Their details are presented in Table 2. The clinical details of the PWEs are shown in Table 3. There was no significant difference in age, gender, and education level between PWEs and healthy participants (p > 0.05), as shown in Table 2.
Table 2.
Demographic characteristics of two subject groups. a means that a t-test was used. b means that the Mann–Whitney U nonparametric test was used.
| Group | N | Gender (n) b | Age (Years) a | Education Level b | ||||
|---|---|---|---|---|---|---|---|---|
| Male | Female | Mean ± SD | Primary School | Junior High School | High School | University Graduate | ||
| PWEs | 27 | 7 | 20 | 1 | 6 | 7 | 13 | |
| CONs | 17 | 5 | 12 | 2 | 1 | 0 | 14 | |
| p value | 0.803 | 0.288 | 0.084 | |||||
Table 3.
PWE participants’ information.
| Number | Gender | Age (Yds) | Course of Epilepsy (Yds) | Abnormal Focus of VEEG |
|---|---|---|---|---|
| 01 | Female | 40 | 10 | Frontal lobe |
| 02 | Male | 20 | 5 | Anterior temporal area |
| 03 | Female | 27 | 1.5 | Anterior temporal area |
| 04 | Female | 38 | 34 | - |
| 05 | Male | 20 | 6 | Frontal lobe |
| 06 | Female | 31 | 8 | Frontal pole |
| 07 | Male | 19 | 4 | Central frontal area |
| 08 | Female | 32 | 8 | Middle temporal area |
| 09 | Female | 44 | 28 | Temporal lobe |
| 10 | Female | 21 | 3 | Frontal lobe |
| 11 | Female | 30 | 4 | Anterior temporal area |
| 12 | Female | 50 | 7 | Anterior temporal area |
| 13 | Female | 21 | 3 | Anterior temporal area |
| 14 | Female | 16 | 1 | Frontal lobe |
| 15 | Female | 20 | 12 | Central frontal area |
| 16 | Female | 23 | 3 | Anterior temporal area |
| 17 | Female | 18 | 10 | Right frontal lobe |
| 18 | Female | 18 | 9 | Frontal lobe |
| 19 | Male | 40 | 40 | Anterior temporal area |
| 20 | Female | 18 | 3.5 | Frontal pole |
| 21 | Female | 18 | 3.5 | Central frontal area |
| 22 | Female | 32 | 1 | Central frontal area |
| 23 | Male | 19 | 11 | Frontal lobe |
| 24 | Female | 23 | 5 | Anterior-middle temporal area |
| 25 | Female | 15 | 11 | - |
| 26 | Male | 26 | 6 | Anterior temporal area |
| 27 | Male | 21 | 0.5 | Anterior-middle temporal area |
In this section, the classification results of epilepsy and healthy states, in the absence of IEDs, from 128-lead EEG data are presented based on the EEG microstate parameters and the features of EEG signals.
Microstate maps across all participants from all sub-bands are shown in Figure 4. To identify any resemblance in the topographies from different sub-bands, topographic analysis was performed to compare microstate maps among sub-bands. No significant difference was observed in any microstate map in any sub-band.
Figure 4.
Topographies of the selected global microstate classes retrieved from the clustering algorithm for sub−bands.
3.2. EEG Microstates Parameters’ Classification
In this section, the classification of EEG microstate parameters is presented. Table 4 shows the performance of EEG microstate parameters in the SVM classifier. The results of three evaluation indexes (accuracy, recall, and specificity), at different EEG frequency sub-bands, are given. There were differences in performance in the classification of epilepsy when using the EEG features extracted from different frequency bands. The classification results of different sub-bands through SVM are shown in Table 4 and Figure 5. It is observed that the EEG microstate parameters are more suitable for the EEG classification of epilepsy in these sub-bands (α-band, β-band, and γ-band), with an accuracy of 87.18%, recall of 70.59%, and specificity of 100.00%. Furthermore, the results show that the δ-band and high band (45~80 Hz) do not contain important data for microstate analysis, because the accuracy, recall, specificity, and AUC are much lower than those of other sub-bands.
Table 4.
EEG microstate parameters (frequency of occurrence, average duration, and proportion of time) and SVM classifier results.
| Number | Sub-Band | Accuracy | Recall | Specificity | AUC |
|---|---|---|---|---|---|
| 1 | δ (0.5~4 Hz) | 0.5750 | 0 | 1 | 0.6947 |
| 2 | θ (4~8 Hz) | 0.7750 | 0.5294 | 0.9565 | 0.8605 |
| 3 | α (8~13 Hz) | 0.8293 | 0.5882 | 1 | 0.9165 |
| 4 | β (13~30 Hz) | 0.8283 | 0.5882 | 1 | 0.9182 |
| 5 | γ (30~45 Hz) | 0.8718 | 0.7059 | 1 | 0.9452 |
| 6 | 45~80 Hz | 0.6571 | 0.5882 | 0.7222 | 0.6508 |
Figure 5.
Line charts of classification results of EEG microstate parameters in different sub-bands, in which the number of sub-bands on the x-axis is the same as in Table 4. Four criteria were used to evaluate the classifier model. Obviously, the classification effect of the classifier model in the γ-band was better than in other sub-bands.
The ROC curves for different sub-bands are shown in Figure 6. Comparing the AUC in different frequency bands, we found that the EEG microstate parameters in the gamma frequency band had the best effect on subject classification, because the AUC of the gamma band was higher than that of other sub-bands for the microstate parameters. Moreover, it was found that the alpha band and beta band performed relatively well. The results are presented in Table 4.
Figure 6.
The ROC curve of epilepsy classification using the SVM classifier using microstate parameters as feature inputs, plotted with recall as same as the true positive rate (TPR) on the y-axis, and specificity as the same as the false positive rate (FPR) on the x-axis. (a) The ROC curve of the EEG microstate parameters in the delta (0.5~4 Hz) frequency band using the SVM classifier; (b) The EEG microstate parameters in the θ (4~8 Hz) frequency band using SVM. The ROC curve of the classifier classification; (c) The ROC curve of the α (8~13 Hz) frequency band EEG microstate parameters using the SVM classifier; (d) The β (13~30 Hz) curve. The ROC curve of the EEG microstate parameters of the frequency band classified by the SVM classifier; (e) The ROC curve of the EEG microstate parameters of the γ (30~45 Hz) frequency band classified by the SVM classifier; (f) The ROC curve of the EEG microstate parameters in the 45~80 Hz frequency band using the SVM classifier.
3.3. EEG Feature Set Classification
In this section, the classification of EEG signal features that were extracted from the EEG microstate time series for each single channel in 4~45 Hz is presented. Table 5 shows the performance of the EEG single features in the SVM classifier. The results for accuracy, recall and specificity are presented. We can conclude that the SVM classifiers which use the feature set that included the median, mean, second quartile, kurtosis, skewness, fuzzy entropy, PFD approximate entropy, sample entropy, and LZC could effectively classify epileptic EEG signals, with an accuracy of 79.55%, recall of 81.84%, and specificity of 76.47%.
Table 5.
The classification results of epilepsy and healthy control subjects by feature set input SVM classifier.
| EEG Signal Features Set | Classification Accuracy (%) | Recall (%) | Specificity (%) |
|---|---|---|---|
| Median, second quartile, mean, kurtosis, skewness, fuzzy entropy, PFD, ApEn, SampEn, LZC | 79.55 | 81.84 | 76.47 |
4. Discussion
In this study, we analyzed the epileptic EEG microstate sequence, and we could intelligently classify epileptic EEG through the features of the microstate sequence. We analyzed the EEG microstates of 27 epileptic EEG signals and 17 healthy EEG signals. Based on the microstate analysis, we extracted the microstate parameters and microstate sequence feature set and input them into the SVM classifier to classify the epileptic EEG signals. Based on the SVM classifier, the microstate parameters (duration, occurrence, and coverage) with an accuracy of 87.18% and the feature set (median, mean, second quartile, kurtosis, skewness, fuzzy entropy, PFD approximate entropy, sample entropy, and LZC) with an accuracy of 79.55%, extracted from the EEG microstate sequence with an accuracy of 79.55%, could be used as a classification model to classify epileptic EEG signals.
In 2018, Kiran et al. used machine learning to classify the EEG microstate parameters of the EEG of PWEs, and the classification accuracy rate could reach more than 76.1%; they also described the microstate changes of intractable epilepsy [8]. The results suggest that large-scale EEG microstate changes exist in PWEs, and this change can be used as a bioelectrical marker for the intelligent identification of epilepsy [23]. In this study, based on machine learning, the SVM classifier used the EEG microstate parameters as a classification model to classify the interictal EEG signals of epileptic patients and the resting EEG signals of healthy subjects. We found that in the γ (30~45 Hz) frequency band, the classification model was the most accurate for the epilepsy group and the heathy group, reaching 87.18%. This result is inconsistent with the results of Ahmedi et al. [23] on the classification of epilepsy EEG signals and psychogenic non-epileptic interictal EEG; their results showed that β (13~30 Hz) had the best classification effect. In this study, we selected patients with focal epilepsy as the experimental group; Ahmedi et al. [23] did not clearly define the epilepsy categories, and the seizure mechanism of PWEs with different parts or categories was inconsistent, which may have led to differences in the results of the two studies. These findings [8,23] demonstrate that we can efficiently classify epilepsy and healthy patients’ short-range EEG signals using machine learning algorithms based on EEG microstate parameters in the absence of abnormal epilepsy discharges.
EEG signals have linear and nonlinear characteristics [20,29]. In recent years, various models have been proposed for different EEG signal data, and feature extraction and feature classification are frequently used in various diseases, such as the diagnosis and monitoring of neuropsychiatric diseases [30]. Based on the amplitude-integrated electroencephalography (aEEG) and compress spectrum array (CDSA) theory, Abend et al. [31] performed the EEG identification of epileptic seizures; the sensitivity of identifying long-term epileptic discharges was 88%, whereas the sensitivity of identifying short-term epileptic discharges was 40% [31]. The researchers [32] then used the short-term index to classify EEG signals, revealing pathological brain electrical activity, and achieved 99.6% accuracy in the classification of healthy and pathological EEG. This means that EEG signatures can effectively identify disease EEG signals. In this study, we also combined the high temporal resolution of EEG microstates to extract the EEG signal features of the EEG microstate time series and input them into an SVM classifier to classify PWEs versus healthy subjects. Compared with previous research using epileptic interictal EEG as a subject, we obtained a better model with relatively high classification accuracy, and we chose the short-term interictal EEG signal as a research object to make the model more universal. However, compared with previous research [23,33] using EEG during the ictal stage, there was a poor classification effect and low accuracy achieved by the classification model in this study. Following an analysis of previous research materials and methods, the main reasons for the inconsistent results may be as follows: different EEG recording methods, and different EEG amplitude and frequency evolution due to different epilepsy periods selected by EEG.
Multivariable analysis based on machine learning provides an opportunity to understand the system by analyzing many features simultaneously [34]. Therefore, we can reduce the I-type error and obtain the optimization model through multivariable analysis. In other words, features extracted from EEG data can be combined with a variety of analyses to develop more reliable and effective models. Previous studies have reported that EEG features can been used to identify a variety of neuropsychiatric diseases, such as epilepsy [23] and schizophrenia [13]. To verify the effect of EEG microstate parameters used for epileptic EEG, we extracted the EEG feature set from EEG microstate series and compared the effect of the EEG feature set with the EEG microstate parameters. The result showed that the classification effect of microstate parameters with an accuracy of 87.18% was better than that of EEG features with an accuracy of 79.55%. Based on the results, we can suggest that the microstate parameters contain information which is difficult to obtain through traditional EEG analysis. This means that microstate parameters can be used as a diagnostic biomarker classifying epilepsy. Compared with previous studies [23,35], there were some limitations in this research: (1) this was a single-center study, and the collection of samples was limited; (2) because we chose the interictal EEG, the results could not represent the EEG signals of epileptic patients; (3) due to the low-quality EEG recording and processing technology, the EEG microstate topographic map that we obtained was not completely consistent with previous research, and there was noise interference, which greatly limits our follow-up research. Despite these limitations, the current results report the microstate changes in epilepsy. Even in the absence of epileptic discharge, the accuracy of the feature prediction of epilepsy reached 87.18%. We anticipate a follow-up study of large-sample, multi-center EEG microstates for epilepsy identification.
5. Conclusions
In this study, we explored the possibility of using short-range high-lead EEG signals between seizures for the automatic classification of epilepsy. Therefore, based on microstate analysis technology, we extracted microstate parameters and EEG signal features to classify epileptic EEG signals using the SVM classifier. We found that the microstate parameters (accuracy rate of 89.18%) and EEG features (accuracy rate of 79.55%) extracted from microstate sequences can effectively classify epileptic EEG signals. Moreover, compared with EEG features, microstate parameters can more effectively classify epileptic EEG signals. However, this conclusion has some limitations. We expect that this discovery can be verified by large-sample and multi-center experiments in the future. In addition, we expect to use a variety of classifiers to complete the classification of epileptic EEG to study the impact of classifiers on the intelligent classification of epilepsy.
Abbreviations
| VEEG | Video electroencephalogram |
| EEG | Electroencephalogram |
| PWEs | Patients with epilepsy |
| SVM | Support vector machines |
| PFD | Petrosian fractal dimension |
| ApEn | Approximate entropy |
| LZC | Lempel–Ziv complexity |
| AUC | Area under the curve |
| ILAE | International League Against Epilepsy |
| IEDs | Ictal epileptiform discharges |
| Ms | Millisecond |
| GFP | Global field power |
| Hz | Hertz |
| GMD | Global map dissimilarity |
| GEV | Global explained variance |
| TP | True positive |
| FP | False positive |
| FN | False negative |
| TN | True negative |
| ROC | Receiver operating characteristic |
| aEEG | Amplitude-integrated electroencephalography |
| CDSA | Compress spectrum array |
Author Contributions
Conceptualization, L.Y. and Z.S.; methodology, Z.S. and D.L.; software, D.L. and L.Y.; validation, L.Y.; formal analysis, L.Y.; investigation, L.Y., J.H. and D.L.; resources, L.Y.; data curation, L.Y.; writing—original draft preparation, L.Y.; writing—review and editing, Z.S. and J.H.; supervision, W.Z.; funding acquisition, Z.S. All authors have read and agreed to the published version of the manuscript.
Institutional Review Board Statement
This study was conducted in accordance with the Declaration of Helsinki and approved by the Institutional Review Board of the Third Xiangya Hospital (protocol code 22187, 6 September 2022).
Informed Consent Statement
Informed consent was obtained from all the subjects involved in the study.
Data Availability Statement
The data are not publicly available due to patients’ privacy protection.
Conflicts of Interest
The authors declare no conflict of interest.
Funding Statement
The project is supported by the National Natural Science Foundation of China (81671296).
Footnotes
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Koutroumanidis M., Arzimanoglou A., Caraballo R., Goyal S., Kaminska A., Laoprasert P., Oguni H., Rubboli G., Tatum W., Thomas P., et al. The Role of EEG in the Diagnosis and Classification of the Epilepsy Syndromes: A Tool for Clinical Practice by the ILAE Neurophysiology Task Force (Part 1) Epileptic. Disord. 2017;19:233–298. doi: 10.1684/epd.2017.0935. [DOI] [PubMed] [Google Scholar]
- 2.Koutroumanidis M., Arzimanoglou A., Caraballo R., Goyal S., Kaminska A., Laoprasert P., Oguni H., Rubboli G., Tatum W., Thomas P., et al. The Role of EEG in the Diagnosis and Classification of the Epilepsy Syndromes: A Tool for Clinical Practice by the ILAE Neurophysiology Task Force (Part 2) Epileptic. Disord. 2017;19:385–437. doi: 10.1684/epd.2017.0952. [DOI] [PubMed] [Google Scholar]
- 3.Thangavel P., Thomas J., Sinha N., Peh W.Y., Yuvaraj R., Cash S.S., Chaudhari R., Karia S., Jin J., Rathakrishnan R., et al. Improving Automated Diagnosis of Epilepsy from EEGs beyond IEDs. J. Neural Eng. 2022;19:066017. doi: 10.1088/1741-2552/ac9c93. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Nhu D., Janmohamed M., Antonic-Baker A., Perucca P., O’Brien T.J., Gilligan A.K., Kwan P., Tan C.W., Kuhlmann L. Deep Learning for Automated Epileptiform Discharge Detection from Scalp EEG: A Systematic Review. J. Neural Eng. 2022;19:051002. doi: 10.1088/1741-2552/ac9644. [DOI] [PubMed] [Google Scholar]
- 5.Phadikar S., Sinha N., Ghosh R., Ghaderpour E. Automatic Muscle Artifacts Identification and Removal from Single-Channel EEG Using Wavelet Transform with Meta-Heuristically Optimized Non-Local Means Filter. Sensors. 2022;22:2948. doi: 10.3390/s22082948. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Zorzos I., Kakkos I., Ventouras E.M., Matsopoulos G.K. Advances in Electrical Source Imaging: A Review of the Current Approaches, Applications and Challenges. Signals. 2021;2:378–391. doi: 10.3390/signals2030024. [DOI] [Google Scholar]
- 7.Barkley G.L., Baumgartner C. MEG and EEG in Epilepsy. J. Clin. Neurophysiol. 2003;20:163–178. doi: 10.1097/00004691-200305000-00002. [DOI] [PubMed] [Google Scholar]
- 8.Rajagopalan S.S., Bhardwaj S., Panda R., Reddam V.R., Ganne C., Kenchaiah R., Mundlamuri R.C., Kandavel T., Majumdar K.K., Parthasarathy S., et al. Machine Learning Detects EEG Microstate Alterations in Patients Living with Temporal Lobe Epilepsy. Seizure. 2018;61:8–13. doi: 10.1016/j.seizure.2018.07.007. [DOI] [PubMed] [Google Scholar]
- 9.Ahmed M.Z.I., Sinha N., Phadikar S., Ghaderpour E. Automated Feature Extraction on AsMap for Emotion Classification Using EEG. Sensors. 2022;22:2346. doi: 10.3390/s22062346. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Lehmann D. Past, Present and Future of Topographic Mapping. Brain Topogr. 1990;3:191–202. doi: 10.1007/BF01128876. [DOI] [PubMed] [Google Scholar]
- 11.Lehmann D., Ozaki H., Pal I. EEG Alpha Map Series: Brain Micro-States by Space-Oriented Adaptive Segmentation. Electroencephalogr. Clin. Neurophysiol. 1987;67:271–288. doi: 10.1016/0013-4694(87)90025-3. [DOI] [PubMed] [Google Scholar]
- 12.Koenig T., Prichep L., Lehmann D., Sosa P.V., Braeker E., Kleinlogel H., Isenhart R., John E.R. Millisecond by Millisecond, Year by Year: Normative EEG Microstates and Developmental Stages. NeuroImage. 2002;16:41–48. doi: 10.1006/nimg.2002.1070. [DOI] [PubMed] [Google Scholar]
- 13.Kim K., Duc N.T., Choi M., Lee B. EEG Microstate Features for Schizophrenia Classification. PLoS ONE. 2021;16:e0251842. doi: 10.1371/journal.pone.0251842. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Chu C., Wang X., Cai L., Zhang L., Wang J., Liu C., Zhu X. Spatiotemporal EEG Microstate Analysis in Drug-Free Patients with Parkinson’s Disease. NeuroImage Clin. 2019;25:102132. doi: 10.1016/j.nicl.2019.102132. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Faber P.L., Milz P., Reininghaus E.Z., Mörkl S., Holl A.K., Kapfhammer H.-P., Pascual-Marqui R.D., Kochi K., Achermann P., Painold A. Fundamentally Altered Global- and Microstate EEG Characteristics in Huntington’s Disease. Clin. Neurophysiol. 2021;132:13–22. doi: 10.1016/j.clinph.2020.10.006. [DOI] [PubMed] [Google Scholar]
- 16.Musaeus C.S., Nielsen M.S., Høgh P. Microstates as Disease and Progression Markers in Patients With Mild Cognitive Impairment. Front. Neurosci. 2019;13:563. doi: 10.3389/fnins.2019.00563. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Britz J., Van De Ville D., Michel C.M. BOLD Correlates of EEG Topography Reveal Rapid Resting-State Network Dynamics. NeuroImage. 2010;52:1162–1170. doi: 10.1016/j.neuroimage.2010.02.052. [DOI] [PubMed] [Google Scholar]
- 18.Alazrai R., Homoud R., Alwanni H., Daoud M.I. EEG-Based Emotion Recognition Using Quadratic Time-Frequency Distribution. Sensors. 2018;18:2739. doi: 10.3390/s18082739. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Yousefzadeh F., Pirzad Jahromi G., Mokari Manshadi E., Hatef B. The Effect of Prostration (Sajdah) on the Prefrontal Brain Activity: A Pilot Study. Basic Clin. Neurosci. 2019;10:257–268. doi: 10.32598/bcn.9.10.195. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Abásolo D., James C.J., Hornero R. Non-Linear Analysis of Intracranial Electroencephalogram Recordings with Approximate Entropy and Lempel-Ziv Complexity for Epileptic Seizure Detection; Proceedings of the 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society; Lyon, France. 22–26 August 2007; pp. 1953–1956. [DOI] [PubMed] [Google Scholar]
- 21.Bruhn J., Röpcke H., Hoeft A. Approximate Entropy as an Electroencephalographic Measure of Anesthetic Drug Effect during Desflurane Anesthesia. Anesthesiology. 2000;92:715–726. doi: 10.1097/00000542-200003000-00016. [DOI] [PubMed] [Google Scholar]
- 22.Richman J.S., Moorman J.R. Physiological Time-Series Analysis Using Approximate Entropy and Sample Entropy. Am. J. Physiol.-Heart Circ. Physiol. 2000;278:H2039–H2049. doi: 10.1152/ajpheart.2000.278.6.H2039. [DOI] [PubMed] [Google Scholar]
- 23.Ahmadi N., Pei Y., Carrette E., Aldenkamp A.P., Pechenizkiy M. EEG-Based Classification of Epilepsy and PNES: EEG Microstate and Functional Brain Network Features. Brain Inform. 2020;7:6. doi: 10.1186/s40708-020-00107-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Purushothaman G., Vikas R. Identification of a Feature Selection Based Pattern Recognition Scheme for Finger Movement Recognition from Multichannel EMG Signals. Australas. Phys. Eng. Sci. Med. 2018;41:549–559. doi: 10.1007/s13246-018-0646-7. [DOI] [PubMed] [Google Scholar]
- 25.Merry K.J., Macdonald E., MacPherson M., Aziz O., Park E., Ryan M., Sparrey C.J. Classifying Sitting, Standing, and Walking Using Plantar Force Data. Med. Biol. Eng. Comput. 2021;59:257–270. doi: 10.1007/s11517-020-02297-4. [DOI] [PubMed] [Google Scholar]
- 26.Thomas J., Thangavel P., Peh W.Y., Jing J., Yuvaraj R., Cash S.S., Chaudhari R., Karia S., Rathakrishnan R., Saini V., et al. Automated Adult Epilepsy Diagnostic Tool Based on Interictal Scalp Electroencephalogram Characteristics: A Six-Center Study. Int. J. Neural Syst. 2021;31:2050074. doi: 10.1142/S0129065720500744. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Zhang F., Petersen M., Johnson L., Hall J., O’Bryant S.E. Recursive Support Vector Machine Biomarker Selection for Alzheimer’s Disease. J. Alzheimers Dis. 2021;79:1691–1700. doi: 10.3233/JAD-201254. [DOI] [PubMed] [Google Scholar]
- 28.Rice M.E., Harris G.T. Comparing Effect Sizes in Follow-up Studies: ROC Area, Cohen’s d, and r. Law Hum. Behav. 2005;29:615–620. doi: 10.1007/s10979-005-6832-7. [DOI] [PubMed] [Google Scholar]
- 29.Acharya U.R., Faust O., Kannathal N., Chua T., Laxminarayan S. Non-Linear Analysis of EEG Signals at Various Sleep Stages. Comput. Methods Programs Biomed. 2005;80:37–45. doi: 10.1016/j.cmpb.2005.06.011. [DOI] [PubMed] [Google Scholar]
- 30.Diykh M., Li Y., Wen P. Classify Epileptic EEG Signals Using Weighted Complex Networks Based Community Structure Detection. Expert Syst. Appl. 2017;90:87–100. doi: 10.1016/j.eswa.2017.08.012. [DOI] [Google Scholar]
- 31.Abend N.S., Dlugos D., Herman S. Neonatal Seizure Detection Using Multichannel Display of Envelope Trend. Epilepsia. 2008;49:349–352. doi: 10.1111/j.1528-1167.2007.01425.x. [DOI] [PubMed] [Google Scholar]
- 32.Li Q., Gao J., Huang Q., Wu Y., Xu B. Distinguishing Epileptiform Discharges From Normal Electroencephalograms Using Scale-Dependent Lyapunov Exponent. Front. Bioeng. Biotechnol. 2020;8:1006. doi: 10.3389/fbioe.2020.01006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Falco-Walter J. Epilepsy—Definition, Classification, Pathophysiology, and Epidemiology. Semin. Neurol. 2020;40:617–623. doi: 10.1055/s-0040-1718719. [DOI] [PubMed] [Google Scholar]
- 34.Roy S., Kiral-Kornek I., Harrer S. Deep Learning Enabled Automatic Abnormal EEG Identification; Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); Honolulu, HI, USA. 18–21 July 2018; pp. 2756–2759. [DOI] [PubMed] [Google Scholar]
- 35.Liu H., Tang H., Wei W., Wang G., Du Y., Ruan J. Altered Peri-Seizure EEG Microstate Dynamics in Patients with Absence Epilepsy. Seizure. 2021;88:15–21. doi: 10.1016/j.seizure.2021.03.020. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The data are not publicly available due to patients’ privacy protection.






