- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Computational Intelligence and Neuroscience
Volume 2012 (2012), Article ID 705140, 12 pages
A Fuzzy Logic System for Seizure Onset Detection in Intracranial EEG
Department of Electrical Engineering, University of North Dakota, Grand Forks, ND 58202, USA
Received 2 July 2011; Revised 1 October 2011; Accepted 4 November 2011
Academic Editor: Francois Benoit Vialatte
Copyright © 2012 Ahmed Fazle Rabbi and Reza Fazel-Rezai. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
We present a multistage fuzzy rule-based algorithm for epileptic seizure onset detection. Amplitude, frequency, and entropy-based features were extracted from intracranial electroencephalogram (iEEG) recordings and considered as the inputs for a fuzzy system. These features extracted from multichannel iEEG signals were combined using fuzzy algorithms both in feature domain and in spatial domain. Fuzzy rules were derived based on experts' knowledge and reasoning. An adaptive fuzzy subsystem was used for combining characteristics features extracted from iEEG. For the spatial combination, three channels from epileptogenic zone and one from remote zone were considered into another fuzzy subsystem. Finally, a threshold procedure was applied to the fuzzy output derived from the final fuzzy subsystem. The method was evaluated on iEEG datasets selected from Freiburg Seizure Prediction EEG (FSPEEG) database. A total of 112.45 hours of intracranial EEG recordings was selected from 20 patients having 56 seizures was used for the system performance evaluation. The overall sensitivity of 95.8% with false detection rate of 0.26 per hour and average detection latency of 15.8 seconds was achieved.
Epilepsy is the most common neurological disorder which affects 1–3% world’s population [1–3]. It is characterized by the occurrence of two or more unprovoked epileptic seizures which are abnormal rhythmic discharge of electrical activity of the brain [1–6]. A seizure is defined as a paroxysmal alteration of one or more neurological functions such as motor, behavior, and/or autonomic functions . Epileptic seizures are episodic, rapidly evolving temporary events. Typically, the duration of epileptic seizure is less than a minute [1–3]. Though the mechanism behind epileptic seizure is not completely known yet, a seizure event can be described as the increased network excitation of the neural networks with synchronous discharge as well as variable propagation in brain [1, 2]. In focal epilepsy, ictal manifestations may localize in a specific brain region, whereas in generalized epilepsy the whole brain could be candidate for seizure events [1, 2].
Electroencephalogram (EEG) is the most widely used measure for diagnosis of neurological disorders such as epilepsy in clinical settings. Long-term monitoring of EEG is one of the most efficient ways for diagnosis of epilepsy by providing information about patterns of brain electrical activity, type, and frequency of seizures, and seizure focus laterality [1–3, 7]. In long-term monitoring, ictal EEG recording is usually correlated with the clinical manifestation of seizure. If the recording site is where the seizure focus is located, the changes in EEG can occur before the clinical manifestations [1, 2]. In the case that electrodes are placed in remote location from the seizure onset site, the clinical manifestations may occur before any visual changes in EEG. Therefore, the placement of electrodes is a determining factor in seizure detection or early detection . The experts monitoring long-term EEG recordings usually look for earliest visually apparent changes in EEG to identify ictal onset . This information helps physician or caregiver to treat patients early in time with the available medications. However, the visual inspection of long-term EEG by clinicians is challenging since it is performed over several days to weeks due to the unknown nature of time of occurrence of seizures. The visual inspection of this large amount of data to identify seizure is very time consuming and monotonous as well [2–4, 7]. Therefore, an automatic seizure detection tool with high detection rate and considerably low false detection rate would have valuable application in clinical settings in epilepsy treatment [1–4, 7].
During a seizure event, increased abnormal synchronous firing occurs in the involved neural networks of brain. The pattern and shape of ictal EEG varies according to the brain region as well as types of recordings (intracranial or scalp EEG). A detection algorithm should be able to identify these dynamic changes in EEG with high sensitivity. One of the most common patterns found in ictal EEG is periodic sharp activity (6–8 Hz activity of a mesial temporal lobe-onset seizure) [1, 2]. The ictal onset and offset is also characterized by relatively high complexity signals. However, the ictal initiation patterns may vary from patient to patient. Though the patterns in different patients may vary depending on the type of seizures, proximity of the recording electrodes to the seizure onset site, types of recordings the ictal onset patterns, and early evolution of brain dynamics in a given patient are of similar types. Therefore, the algorithm parameters can be tuned in a patient-specific way to increase the specificity and sensitivity of detections [2, 3].
One of the applications of automatic seizure detection in clinical settings is to monitor patients and localize brain regions. As for medically intractable focal epilepsy, brain tissue of seizure focus is candidate of surgery and the source localization information helps neurologists in surgical procedure [1–3, 7]. Moreover, to provide patients an alternative to surgical treatment, much focus has been put on early detection or prediction of seizure providing sufficient time of intervention prior to clinical onset and ultimately preventing or controlling epilepsy . In theory of early detection, the ictal manifestation in EEG is expected to be detected several seconds to a few minutes earlier [2, 3]. Although the intervention time is crucial in designing a control device, an early detection tool capable of detecting seizure several minutes prior to clinical seizure onset would help the patients in avoiding serious injuries by taking proper action or using available medication to soothe the intensity of seizure frequency [3, 7].
Significant progress has been made in automatic detection of seizure in iEEG over the last couple of decades [2–4, 7–15]. Qu and Gotman  developed an automatic seizure detection method to detect various types of seizures in both surface and intracranial EEGs. It was based on decomposition of EEG into elementary waves and detecting paroxysmal bursts of rhythmic activities using relative amplitude, their duration, and rhythmicity . Murro et al.  developed a computerized method to detect complex partial seizures. The method used three EEG features, relative amplitude, dominant frequency, and rhythmicity. Discriminant analysis was used for decision making . In order to reasonably reduce the false alarm rate, Qu and Gotman  developed a warning system based on template matching which relies on availability of one sample seizure for subsequent detections of similar seizures in scalp and intracerebral EEG recordings. Later, Qu and Gotman  proposed a seizure onset detection system with high sensitivity and very low false positive rate. Osorio et al.  proposed an algorithm for real-time detection, quantitative analysis of seizures, and prediction of the clinical onsets. Grewal and Gotman  proposed an automatic seizure warning system for clinical use. Spectral features were extracted after filtering EEG in multiple bands and Bayes’ theorem was used along with spatio-temporal analysis. Though the system requires training in order to obtain the prior probabilities, no patient training is required at run time . In a different approach, Adeli et al.  performed wavelet sub-band analysis of EEG and five EEG bands as well as nonlinear analysis of EEG for detecting seizure and epilepsy. They used correlation dimension and largest lyapunov exponent to quantify nonlinear dynamics of EEG . Ghosh-Dastidar et al.  proposed a novel wavelet-chaos-neural network methodology for detecting epileptic seizures. Srinivasan et al.  proposed a neural network-based automatic seizure detection system using approximate entropy (ApEn) as the input feature. Gardner et al.  discussed a one-class support vector machine (SVM) novelty detection for seizures in iEEG by classifying short-time, energy-based statistics. The detector was validated on a sample of 41 interictal and 29 ictal epochs and yielded 97.1% sensitivity, mean detection latency of −7.58 seconds, but false positive rate (FPR) of 1.56 false positive per hour . Chan et al.  proposed a patient-specific algorithm for accurate measurement of seizure onset time detection. The algorithm makes use of spectral and temporal features and support vector machine as classifier . Ghosh-Dastidar and Adeli  presented a new supervised learning algorithm for Multispiking Neural Networks (MuSpiNN) which was applied in seizure detection. They have demonstrated better accuracy of MuSpiNN over single-spiking Spiking Neural Network (SNN) model . In a recent work, Zhang et al.  proposed a novel incremental learning scheme based on nonlinear dimensionality reduction for automatic seizure onset detection. They used continuous wavelet transform (CWT) for feature extraction and two-stage decision making which makes use of nonlinear dimensionality reduction and incremental learning schemes .
Recently, much focus has been put in detection of seizures early in time or eventually predicting it. There have not been much significant works performed in the area of seizure detection or early detection based on fuzzy logic approaches. Subasi  introduced the application of adaptive neurofuzzy inference system (ANFIS) for epileptic seizures detection and classification for normal and epileptic patients. This method combined the adaptive capabilities of artificial neural networks and qualitative approach of fuzzy logic and features were extracted using the wavelet transform (WT) . Aarabi et al.  presented an automatic method which uses fuzzy rule-based system to detect seizures in iEEG. Temporal, spectral, and complexity features extracted from iEEG were fed into two-stage decision-making systems where they were spatial-temporally integrated. Intermediate decision making was performed in the first stage using rule-based fuzzy inference system. Final decision was made using spatial combiner, feature combiner, and postprocessor .
In the area of seizure prediction and/or early detection, several problems or pitfalls have been identified which requires to be addressed properly and carefully in order to make further progress . Most of the methods available in the literature use single-feature extraction method followed by a predefined crisp threshold for final decision making . Nonlinear methods are popular to most of the researchers; however, most of these methods are sensitive to noise which may lead to wrong findings [18, 19]. Therefore, the advantages of nonlinear feature extraction methods over linear methods are yet to be justified . The selection of test dataset is also critical because direct comparisons of different studies or approaches are difficult unless those are applied to the same dataset . Proper statistical validation remains another major concern [19, 20]. To address one of these challenges, Feldwisch-Drentrup et al.  described a method using logical “AND” and “OR” combinations in order to combine two epileptic seizure prediction methods. The study shows improved performance for both the combinations, and the “AND” combination yielded highest sensitivity . In this study, we have applied fuzzy algorithms for combining more than two methods (four in this paper) for seizure onset detection. We utilized fuzzy “AND” combination instead of logical “AND” combination to study the feasibility of this method in early detection. The results show that this approach could be a promising solution to address some of the challenges in the area of early seizure detection and eventually seizure prediction.
In this paper, we present a fuzzy rule-based adaptive automatic seizure onset detection method. The overall method consists of several steps, preprocessing, artifacts detection, feature extraction, decision making using fuzzy logic, and postprocessing. Time domain, frequency domain, and entropy-based features are extracted from EEG segments. These features are combined using a set of fuzzy rules and another set of fuzzy rules are used to combine information spatially. Final decision was made by applying a threshold procedure to this spatial-temporal combination of multiple features. Artifacts detection algorithm was applied prior to feature extraction to identify segments corrupted with electrode movement and saturation artifacts. The information was stored to be used in postprocessing step. False detections caused by artifacts and other activities were rejected in the postprocessing steps.
2. Materials and Methods
2.1. EEG Recordings
The iEEG recordings were obtained from the Freiburg Seizure Prediction EEG (FSPEEG) database [22, 23]. The database contains iEEG data from 21 patients with medically intractable focal epilepsies. The sampling frequency of the data is 256 Hz. The database contains six channels with common reference, three located on the epileptogenic zone and three in remote locations [22, 23]. In this study, we selected iEEG datasets obtained from 20 patients to evaluate the performance of the proposed method. The total length of the data analyzed was 112.45 hours and total numbers of analyzed seizures were 56. The details of the iEEG data used in this study are shown in Table 4.
The multichannel iEEG data were segmented using a moving window analysis technique. The length of each segment was 2.5 seconds (640 data points) with overlap of 0.5 seconds (128 data points) between the adjacent windows along the whole iEEG recording. This window length was chosen as a way to divide the signals into quasistationary segments for correct computation of the characteristic features .
2.2.2. Artifacts Detection
Although iEEG data are usually less corrupted with artifacts comparing to scalp EEG, visual inspection confirmed the presence of saturation and electrode movement artifacts in some patient’s data. The data files obtained from the FSPEEG database also provide some information on artifacts, mostly movement artifacts and visual inspection was performed based on that information. We implemented an artifacts detection algorithm to identify the EEG segments corrupted with these two types of artifacts: saturation and electrode movement. Each segment with artifacts was marked and the information is stored in memory to be used later in the postprocessing step. The artifacts detection algorithm steps are discussed in following sections.
(A) Saturation Artifact
There were several cases of iEEGs corrupted with saturation artifacts. At the saturation time, iEEG signals have constant amplitude. The segments with saturation artifacts were identified by a derivative method. Every segment with zero derivatives was marked as segments with saturation artifacts . A median filter of window size 5 was used to remove all single-segment saturations. This prevents false detection of artifacts in other EEG segments rather than in the region of saturation.
(B) Electrode Movement Artifact
Electrode movement artifacts are usually caused by patient’s head movement or displacement of the electrode box. This type of artifact is of high amplitude with an upstroke . Analytical signal processing approach was utilized in order to detect envelope of iEEG segments using Hilbert transform . Average absolute envelope () was computed for each segment using the following equation: where is the absolute of the Hilbert transform  of iEEG segment and is the number of samples in each iEEG segment. The segments with artifacts were identified from the other EEG segments by applying a predetermined threshold () after normalizing within the interval . Threshold estimation is crucial since it is important not to label a seizure segment as a segment with movement artifacts. The threshold was determined by setting up a condition. The condition is the average absolute envelope of a segment has to be greater than the maximum of average amplitude of seizure segment to be considered as segment with artifacts. Therefore, it was confirmed that no seizure activities were falsely rejected as movement artifacts.
2.2.3. Filtering of EEG
All iEEG segments were band-pass filtered between 0.5 Hz to 100 Hz using a 4th-order digital Butterworth filter to mitigate high-frequency noise and low-frequency artifacts. The iEEG segments were then notch filtered to remove 50 Hz power line noise.
2.3. Feature Extraction
Time domain, frequency domain features, and entropy-based features were extracted from iEEG segments. The four features used in this study were average amplitude, rhythmicity (coefficient of variation of amplitude), dominant frequency, and entropy. These features are known to contain the most discriminant information for detecting seizure events [7–12, 18]. Features extraction methods are described briefly in the following sections.
2.3.1. Average Amplitude
Average amplitude (AVA) is a good measure for temporal evolution of partial seizures [7, 10, 18, 26]. During partial seizures, iEEG signals show rhythmic activity with a repetition frequency between 3 and 30 Hz [18, 26]. Therefore, to compute average amplitude, iEEG segments were first high-pass filtered above 3 Hz to remove low-frequency noise . Then, a peak detection algorithm based on the zero-crossings of the first derivative of iEEG signals was used to detect peaks . The amplitudes of the peaks were computed by taking average of the amplitudes of their half waves. Finally, the average amplitude () was computed by taking the average of the amplitudes of the detected peaks [18, 26].
Coefficient of variation of amplitude (CVA) is a measure of rhythmicity or regularities of ictal activities [18, 27]. During seizure evolution, the regularity of the amplitude of EEG tends to increase slowly; this increase is characterized by the CVA . In case of partial seizures, the signals exhibit strong rhythmic characteristics which likely to have regularity in amplitude . The coefficient of variation (CVA) quantifies the increased regularity observed during partial seizures [18, 27]. The CVA is defined as the ratio of the standard deviation of absolute amplitude to the mean absolute amplitude as  where is the standard deviation and is the mean of each iEEG segment [18, 27].
Entropy is a measure of “irregularity” or “uncertainty” and was initially introduced by Shannon in 1948 . The Shannon entropy () is computed as where are the probabilities of a datum in bin [18, 28]. Approximate entropy (ApEn) introduced by Pincus and Goldberger  is more appropriate to compute the entropy for short and noisy time series data. A low value of the entropy indicates that the time series is deterministic, whereas a high value indicates randomness. Therefore, a high value of entropy indicates the irregularities in the iEEG data. To compute ApEn, it is required to determine a run length and a tolerance window to measure the likelihood between runs of patterns [29, 30]. The tolerance window and embedding dimension are the two important parameters in computation of ApEn. In this study, Sample Entropy (SampEn) which is a variant of approximate entropy to quantify entropy of iEEG was used considering its robustness over ApEn [29, 30]. Sample Entropy is the negative natural logarithm of an estimate of the conditional probability that segments of length that match pointwise within a tolerance also match at the next point [18, 30]. This measure is a useful tool for investigating dynamics of biomedical signal and other time series.
2.3.4. Dominant Frequency
Dominant frequency () is defined as the peak with the maximum spectral power in the power spectrum of a signal . This feature is particularly important in distinguishing ictal activities from interictal activities by quantizing the frequency signature information mostly found in partial seizures. This is characterized by a high-frequency activity at seizure onset and a low-frequency activity at the end of the seizures [18, 26]. In this study, parametric spectrum estimation method, autoregressive modeling (AR) approach, was used to estimate the spectral frequency band of the short EEG segments. The AR model order was chosen according to Akaike information criterion (20 in this study) . The Burg method was used for computing the AR coefficients for short EEG segments . Then, the spectral power of a given segment is estimated using these AR coefficients. For every spectral peak, the spectral frequency band was defined as [ and ] where and are frequencies at rising and falling slopes of the peak with half the amplitude of the peak [10, 18]. The frequency of the peak with maximum spectral power is considered as the dominant frequency for the given segment .
2.4. Fuzzy Rule-Based Detection
2.4.1. Design of Fuzzy Inference System
In this study, we designed a multistage fuzzy rule-based system [33, 34] for seizure onset detection. Decision making was performed in three steps. We utilized the information obtained in spatial, temporal as well as feature domain to make the final decision. Therefore, the fuzzy system was comprised of three subsystems: (1) feature combiner, (2) spatial combiner, and (3) final decision making. Figure 1 shows the block diagram of overall system which includes preprocessing, feature extraction, fuzzy rule-based decision making, and postprocessing.
Four features ( were feed into the first fuzzy subsystem which is adaptive in nature (feature combiner): entropy (), dominant frequency (), average amplitude (, and coefficient variation of amplitude (. The second fuzzy subsystem (spatial combiner) was used to select four specified channels and combine the feature output from first fuzzy subsystem across channels. In final stage, another fuzzy subsystem was used followed by threshold parameter in order to classify an EEG segment as “normal” or “seizure.” The steps are discussed in detail in the following sections.
2.4.2. Adaptive Fuzzy Inference System
We have implemented the adaptive version of fuzzy inference system as described in the previous section. Four features were combined using a carefully designed fuzzy inference system. Before fuzzifying the feature variables, they were normalized into the interval of  using a min-max normalization method. Triangular and trapezoidal membership functions were assigned to the fuzzy input and output variables. Assigning membership function to the fuzzy input variables which are the features are extremely important and critical . We utilized fuzzy clustering to adaptively estimate the parameters for membership functions [35, 36]. Fuzzy c-means clustering [35, 36] was applied to each of the feature to generate cluster center for two classes: “normal” and “seizure.” Then cluster centers were used to generate the membership function by placing the fuzzy sets at the corresponding cluster centers. Two membership functions or fuzzy sets were considered for each of the four input features: low ( and high ( as shown in the Figure 2(a). and were obtained from the corresponding cluster centers. This way membership functions were estimated adaptively based on the characteristics of the feature sets and the fuzzy system works adaptively. For the fuzzy output variable (OP1), three levels were assigned as high (), medium (), and low () as shown in Figure 2(b). The values of threshold parameters chosen are , and . The OP1 is the final feature after combining the four features. We used triangular and trapezoidal membership functions for the ease of their implementation .
The set of fuzzy rules for combining the features are listed in Table 1. Fuzzy logic has been utilized to combine this information obtained in feature domain using the first set of rules. The qualitative approach of fuzzy logic is specifically suitable to combine the four features and map them onto a final feature time series. The fuzzy output variable (OP1) will only be high “” if and only if at least 3 feature input variables are high “” and OP1 will be medium “” if two feature input variables are high “”. Rest of the times OP1 will be low “” as shown in Table 2. Therefore, the imprecise boundaries of interictal EEG and uncertainty associated with features were addressed. For example, the behavior of rhythmicity alone may not hamper the performance of the overall system. More importantly, if any of the features is not able to detect subtle changes during seizure onset, a combination of the features using the fuzzy rules would we able to detect unless a seizure is missed due to nonspecific patterns. Similarly, spatial combination allows prioritizing the importance of in-focus channels due to their higher sensitivity to ictal activities.
2.4.3. Spatial-Temporal Combination
For spatial combination, trapezoidal membership functions were assigned to the fuzzy inputs and output variable (Figure 3). Two levels were considered for both the input ( where ) and output (OP2): low ( and high (. Three channels in epileptogenic zone (, and) were combined with one channel chosen from remote area (. These four channels were combined using another set of fuzzy rules based on experts’ reasoning (Table 1). The criteria was set based on the information that the channels in seizure onset area is more sensitive in detecting changes in EEG comparing to those from remote area [1–3]. It is expected that in-focus channels will detect earliest changes in EEG. In order to minimize the detection latency, we considered all three in-focus channels in drawing up the rules for spatial combination. However, there are interactions between different channels location in brain. Therefore, to have modularity of the detection algorithm we have also included one channel from remote area. The set of fuzzy rules for combining the final feature output (OP1) across channels are listed in Table 2.
In final decision stage, averaging was performed for 5 consecutive segments using moving average method. At the final stage, another fuzzy inference subsystem was utilized to combine channel combination (OP2) and segment average (SA) information. Four rules were defined for mapping onto an alarm output space for preliminary decision making as shown in Table 3.
2.4.4. Fuzzy Implication and Defuzzification Methods
2.5.1. Artifacts and False Detections Rejection
Before making the final decisions, the system scans each iEEG segments for artifacts. In artifacts detection step, segments with artifacts were identified and the information was stored to be used in postprocessing step. False detections caused by artifacts were filtered in this step. iEEG segments corrupted with artifacts were assigned a value of “0” which leaves the probability of detection to zero too. We have performed further analysis on false detections and labeled the false detection rate as uninteresting and interesting . The uninteresting false positives are mostly of short duration and caused due to residual artifacts and large amplitude rhythmic activities. We have rejected these short-length false detections by setting minimum length detection criteria .
2.5.2. Threshold Parameter
We applied a threshold procedure for final decision making. Whenever the alarm “SZ” crosses the threshold, a seizure event was detected. Each segment was assigned probability value of “0” for normal segment and “1” for seizure segment.
2.6. Performance Evaluation Parameters
Since the objective of the system is to detect seizure onsets, sensitivity is an important statistical measure for event-based performance evaluation. It measures the ability of a system to detect seizure correctly. It is the measure of true positive rate and defined as the ratio of the number of correctly detected seizure onsets to the total number of seizures [4, 12, 15]. It is expressed in percentage as follows: where and are defined as follows.
True Positive (TP)
The system detects a seizure that was annotated as seizure by the expert.
False Negative (FN)
The system misses a seizure that was annotated as seizure by the expert.
2.6.2. False Detection Rate
False detection rate (FDR/hour) is another important parameter for the system performance evaluation . It was computed by counting the false positives and divided by the total data length analyzed in the experiment for a given patient. To be successfully implementable in clinical settings, FDR should be considerably low so that neither the patient nor the caregivers have to wait too long under false alarms. However, usually it is better to detect the onset patterns with longer detection latency rather than missing them.
2.6.3. Detection Latency
Detection latency is the time delay between the system detected seizure onset and clinical seizure onset identified by experts [9–12, 18]. Detection latency was computed as the difference between the clinical seizure onset (expert detected seizure) and system-detected seizure onset [12, 18]. For an automatic detection algorithm or in case of early detection, the detection delay time is expected to be considerably low or negative for early detection.
3.1. Seizure Onset Detection
3.1.1. Changes in Characteristics Features
Before designing the fuzzy logic system, visual inspection was performed to identify the types of changes in characteristics features at the time of seizure onset as well as offset. In most cases, the values of average amplitude increases after a few seconds on seizure onset. The values of rhythmicity gradually increase during seizure onset followed by a decrease to a minimum then return to the interictal baseline level few seconds prior to seizure offset . In case of partial seizures, frequency activity increases right after the seizure onset up to a peak then gradually decreases to a low-frequency activity. Entropy values showed increase which reaches the maximum after a few seconds of seizure onset and fall down to interictal baseline at seizure offset. This means the complexity of signal increases during seizure. However, it does not increase to maximum right after the onset . In some patients the electrographic changes are identified before clinical onset. Such a seizure evolution profile and the behavior of the characteristics features are shown in Figure 4 (patient 9).
3.2. Threshold Estimation
A threshold procedure was used to make final decision and assigning probability value of “1” to ictal iEEG segment and “0” to normal iEEG segment. The threshold procedure was applied to preliminary results obtained at the output of final fuzzy subsystem where the spatiotemporal combination was performed. The threshold parameter was optimized in a patient-specific way. The setting was optimized prioritizing higher sensitivity and lower false detection rate. It was determined by plotting the histogram of alarms generated for each patient. We used threshold values outside two standard deviations above mean. The range was two to six standard deviations above mean.
3.3. False Detections
For all patients, all the false positives less than 9.5 s were rejected except for patient 18 where the minimum length criteria was lowered to 4 s due to the unusual short length of one seizure onset pattern. After rejecting unusual short-length false positives, the system yielded average false detection rate of 0.26 per hour.
3.4. Performance Evaluation
A total of 112.45 hours of iEEG dataset having 56 seizures were used for system performance evaluation. Out of 56 seizures analyzed, the system correctly detected 54 seizures, whereas 2 seizures were missed. Therefore, the overall sensitivity achieved was 95.8%; the false detection rate was 0.26/hour, and average detection latency was 15.8 seconds.
The data from patient 10 (of FSPEEG database) was discarded from the analysis due to the excessive presence of electrode movement artifacts based on the information obtained from the FSPEEG that in several occasions the measurement was exceeded, electrode box was disconnected, and reconnected as shown in Figure 5.
Event-based sensitivity is reported in percentage. A seizure onset is considered as an event to detect. The average detection latencies are listed in seconds. Short-length false detections could also be reduced using a median filter or considering spatial criteria. The median filtering approach was tried but it has been seen that it falsely rejects some true detections which are unusually of short lengths. Also, it affects the detection latency. To address this, we utilized a postprocessor to minimize the uninteresting false detections which are significantly shorter in length then average seizure duration for each patient as described in postprocessing section. The overall results are presented in Table 5.
4.1. Performance Comparison with Other Methods
Our method yielded average sensitivity of 95.8% with 0.26/h false detection rate. The average detection latency achieved was 15.8 seconds as shown in Table 5. The algorithm was developed in an unsupervised approach. We did not include the seizure free interictal data for evaluation purpose since there is no training involved. The dataset we used was constructed from the “ictal” data files from Freiburg project which have seizures with at least 50 minutes of preictal data and postictal data with no specified duration. Therefore, the false detection rate per hour is little higher comparing to other methods in the literature but reasonable considering the evaluation dataset.
Till date, many algorithms for epilepsy and seizure detection have been developed with different degrees of success [2–18]. Here, we have discussed briefly some of these methods providing a scope of comparison with our method. In a recent study, Zhang et al.  proposed an automatic patient-specific method for seizure onset detection using a novel incremental learning scheme based on nonlinear dimensionality reduction. Feature sets were extracted using continuous wavelet transform (CWT) . Considering computation time and resources, the choice of discrete wavelet transform might have been better. Their method was evaluated on iEEG recordings from 21 patients obtained from Freiburg project with duration of 193.8 hour and 82 seizures. They have reported average sensitivity of 98.8% with 0.25/h interesting false positive rate and average median detection delay of 10.8 s. Aarabi et al.  introduced a fuzzy rule-based system for epileptic seizure detection which yielded sensitivity of 98.7% and false detection rate of 0.27/h with detection delay of 11 s. In this paper, different thresholds were used for different patients and a postprocessor was utilized to reduce the false detections in two steps. First short-length detections (less than 5 s) and artifacts were rejected. Secondly, two consecutive detections were unified given that they are less than a predefined minimum time interval (set to 30 s) . Chan et al.  presented a novel patient-specific algorithm for seizure onset detection and accurate onset time determination. The algorithm extracts spectral and temporal features in five frequency bands within a sliding window and the feature windows were classified as containing or not containing a seizure onset using support vector machines (SVMs) . Support vector machine is a popular classification paradigm for epileptic seizure detection and prediction being used by many researchers in this area. In order to accurately localize the seizure onsets in time, the method makes use of clustering and regression analysis . Therefore, their algorithm yielded precise detection in time as reported in five of the six patients, at least 90% of the latencies are less than 3 s resulting median detection latency less than 100 ms with standard deviation less than 3 s . However, the method utilizing user-adjustable parameters allow tuning to achieve high detection sensitivity, low false positive rate, and low detection latencies. Standard cross-validation performance measures resulted sensitivities in the range of 80% to 98% and false positive rates from 0.12 to 2.8/h . Gardner et al.  presented a detection latency which is negative in time (−7.58 s) however with a higher false detection rate of 1.56 false detections per hour. Their system was evaluated on sample of 29 ictal and 41 interictal epochs and achieved 97.1% sensitivity . Grewal and Gotman  proposed an automatic warning system with high sensitivity and low false alarm rates for clinical use. The system required training and was tested on locally recorded dataset yielding 89.4% sensitivity with false detection rate of 0.22 per hour and mean detection latency of 17.1 seconds with user tuning .
The performance of our system is very much comparable to the other methods. It may not outperform the other methods in terms of all the performance measuring parameters. However, considering less mathematically complex design and lesser number of tuning parameters we have achieved similar results to other methods and in some cases better performance in terms of one or two performance measuring parameters.
4.2. Motivation and Advantage of Using Fuzzy Logic
The motivation behind our fuzzy rule-based approach is that fuzzy logic uses a much simpler rule-based design using natural language. Clinical neurologists mostly look at different features of seizure onset patterns as well as different channels to identify a seizure correctly. This is however complex to model mathematically and implement in computer programs. Fuzzy logic on the other hand provides a simpler design of approximate reasoning which can mimic human reasoning efficiently. We have developed our method in such way to mimic the experts’ reasoning in detecting seizure onset patterns. Furthermore, the system provides a possibility of lowering the detection latency by incorporating more sensitive features.
Fuzzy logic has been widely used in many signal processing and pattern recognition applications [33, 34]. Fuzzy rules can be defined using experts’ knowledge for decision making which are simpler to implement and modular as well. Increasing the number of rules one can increase the accuracy of the model. Processing speed can also be improved significantly with less complex mathematical analysis and modeling. Moreover, fuzzy logic is a useful method for nonlinear input-output mapping which is effective in seizure detection or early detection applications. Other popular methods such as artificial neural networks and support vector machines require training, complex mathematical analysis, and modeling. In this study, we utilized adaptive version of fuzzy logic system with a novel approach of combining information in feature as well as spatial and temporal domain. A comparison of performance of adaptive fuzzy logic system is shown over conventional hard threshold-based methods and nonadaptive fuzzy system in Table 6. Nonadaptive fuzzy system is where the membership functions were generated in a heuristic way. Adaptive fuzzy system clearly outperforms other methods by demonstrating better performance in terms of better sensitivity and significantly reduces false positive rates.
5. Conclusions and Future Work
In this paper, we presented a robust method of detecting seizure onset using adaptive fuzzy logic system. Considering significant progress in the area of automatic seizure detection, we mainly focused in designing a seizure onset detection system in order to study the possibility of warning the patient or caregiver early in time. We also demonstrated the applicability of fuzzy logic in early detection or prediction system by comparing the performance improvement over conventional hard threshold system. The adaptive version of the fuzzy system is capable of tuning some of the system parameters in a patient-specific way. This is crucial given the wide varieties of seizure types as well as stereotyped evolution and onset patterns in a given patient.
The algorithm was developed in MATLAB and tested offline. For fuzzy c-means clustering, we used MATLAB function fcm with default parameters (exponent of the partition matrix U: 2.0 and maximum number of iterations: 100). The overall system makes use of temporal information of iEEG as well as spatial information, since there are interactions between the channels, obtained from three channels located on seizure focus. Given the promising result of this study, adaptive fuzzy algorithms could provide a robust method for designing an early detection or prediction system. The possibility of reducing the detection latency for early detection largely depends on the features sensitivity to detect the preictal changes. Therefore, the performance of the system could be improved by incorporating feature selection techniques or choosing features that are sensitive to earliest electrographic changes in EEG.
In future work, more analysis will be performed based on the findings of this study to relate the iEEG findings with brain mechanisms. We will be looking into some of the specific patterns found in this study as well as study the data from several patients where interictal activities are stronger (patients 1, 2, 13, 18, and 21). Also, we will study the data patterns where there are excessive presence of interictal spikes or large amplitude rhythmic activities (patients 8, 10, and 18). These findings have been previously reported in the literature as well  and might be the reason for longer detection latencies in patients 8 and 21.
False alarms could be reduced significantly by considering the recent developments in artifacts detection techniques over standard threshold-based methods. In the present study, standard threshold-based movement artifacts detection method was used to avoid computational complexity. In future studies, a machine learning-based movement artifacts detection method will be included. Finally, we will attempt implementing a similar approach with relevant features in early detection of epileptic seizures and eventually targeting the goal of prediction.
The authors would like to thank the Epilepsy Center of the University Hospital of Freiburg, Germany for making the EEG database available. Financial support from ND EPSCoR through National Science Foundation Grant no. EPS-0814442 is gratefully acknowledged.
- J. M. Rho and R. Sankar, Epilepsy: Mechanisms, Models, and Translational Perspectives, CRC Press, New York, NY, USA, 2010.
- G. K. Bergey, P. J. Franaszczuk, and C. C. Jouny, “Early seizure detection: theoretical and applied,” in Epilepsy: Scientific Foundations of Clinical Practice, J. M. Rho, R. Sankar, and J. E. Cavazos, Eds., pp. 467–482, Marcel Dekker, New York, NY, USA, 2004.
- K. K. Jerger, T. I. Netoff, J. T. Francis et al., “Early seizure detection,” Journal of Clinical Neurophysiology, vol. 18, no. 3, pp. 259–268, 2001.
- V. Srinivasan, C. Eswaran, and N. Sriraam, “Approximate entropy-based epileptic EEG detection using artificial neural networks,” IEEE Transactions on Information Technology in Biomedicine, vol. 11, no. 3, pp. 288–295, 2007.
- A. B. Gardner, A. M. Krieger, G. Vachtsevanos, and B. Litt, “One-class novelty detection for seizure analysis from intracranial EEG,” Journal of Machine Learning Research, vol. 7, pp. 1025–1044, 2006.
- A. M. Chan, F. T. Sun, E. H. Boto, and B. M. Wingeier, “Automated seizure onset detection for accurate onset time determination in intracranial EEG,” Clinical Neurophysiology, vol. 119, no. 12, pp. 2687–2696, 2008.
- J. Gotman, “Automatic recognition of epileptic seizures in the EEG,” Electroencephalography and Clinical Neurophysiology, vol. 54, no. 5, pp. 530–540, 1982.
- A. M. Murro, D. W. King, J. R. Smith, B. B. Gallagher, H. F. Flanigin, and K. Meador, “Computerized seizure detection of complex partial seizures,” Electroencephalography and Clinical Neurophysiology, vol. 79, no. 4, pp. 330–333, 1991.
- H. Qu and J. Gotman, “A seizure warning system for long-term epilepsy monitoring,” Neurology, vol. 45, no. 12, pp. 2250–2254, 1995.
- H. Qu and J. Gotman, “A patient-specific algorithm for the detection of seizure onset in long-term EEG monitoring: Possible use as a warning device,” IEEE Transactions on Biomedical Engineering, vol. 44, no. 2, pp. 115–122, 1997.
- I. Osorio, M. G. Frei, and S. B. Wilkinson, “Real-time automated detection and quantitative analysis of seizures and short-term prediction of clinical onset,” Epilepsia, vol. 39, no. 6, pp. 615–627, 1998.
- S. Grewal and J. Gotman, “An automatic warning system for epileptic seizures recorded on intracerebral EEGs,” Clinical Neurophysiology, vol. 116, no. 10, pp. 2460–2472, 2005.
- H. Adeli, S. Ghosh-Dastidar, and N. Dadmehr, “A wavelet-chaos methodology for analysis of EEGs and EEG subbands to detect seizure and epilepsy,” IEEE Transactions on Biomedical Engineering, vol. 54, no. 2, pp. 205–211, 2007.
- S. Ghosh-Dastidar, H. Adeli, and N. Dadmehr, “Mixed-band wavelet-chaos-neural network methodology for epilepsy and epileptic seizure detection,” IEEE Transactions on Biomedical Engineering, vol. 54, no. 9, pp. 1545–1551, 2007.
- A. Subasi, “Application of adaptive neuro-fuzzy inference system for epileptic seizure detection using wavelet feature extraction,” Computers in Biology and Medicine, vol. 37, no. 2, pp. 227–244, 2007.
- S. Ghosh-Dastidar and H. Adeli, “A new supervised learning algorithm for multiple spiking neural networks with application in epilepsy and seizure detection,” Neural Networks, vol. 22, no. 10, pp. 1419–1431, 2009.
- Y. Zhang, G. Xu, J. Wang, and L. Liang, “An automatic patient-specific seizure onset detection method in intracranial EEG based on incremental nonlinear dimensionality reduction,” Computers in Biology and Medicine, vol. 40, no. 11-12, pp. 889–899, 2010.
- A. Aarabi, R. Fazel-Rezai, and Y. Aghakhani, “A fuzzy rule-based system for epileptic seizure detection in intracranial EEG,” Clinical Neurophysiology, vol. 120, no. 9, pp. 1648–1657, 2009.
- F. Mormann, R. G. Andrzejak, C. E. Elger, and K. Lehnertz, “Seizure prediction: the long and winding road,” Brain, vol. 130, no. 2, pp. 314–333, 2007.
- A. Aarabi, R. Fazel-Rezai, and Y. Aghakhani, “EEG seizure prediction: measures and challenges,” in Proceedings of the International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC '09), pp. 1864–1867, 2009.
- H. Feldwisch-Drentrup, B. Schelter, M. Jachan, J. Nawrath, J. Timmer, and A. Schulze-Bonhage, “Joining the benefits: combining epileptic seizure prediction methods,” Epilepsia, vol. 51, no. 8, pp. 1598–1606, 2010.
- R. Aschenbrenner-Scheibe, T. Maiwald, M. Winterhalder, H. U. Voss, J. Timmer, and A. Schulze-Bonhage, “How well can epileptic seizures be predicted? an evaluation of a nonlinear method,” Brain, vol. 126, no. 12, pp. 2616–2626, 2003.
- T. Maiwald, M. Winterhalder, R. Aschenbrenner-Scheibe, H. U. Voss, A. Schulze-Bonhage, and J. Timmer, “Comparison of three nonlinear seizure prediction methods by means of the seizure prediction characteristic,” Physica D, vol. 194, no. 3-4, pp. 357–368, 2004.
- J. S. Barlow, “Methods of analysis of nonstationary EEGs, with emphasis on segmentation techniques: a comparative review,” Journal of Clinical Neurophysiology, vol. 2, no. 3, pp. 267–304, 1985.
- J. F. Clearbout, Fundamentals of Geophysical Data Processing, McGraw-Hill, New York, NY, USA, 1976.
- R. Q. Quiroga, H. Garcia, and A. Rabinowicz, “Frequency evolution during tonic-clonic seizures,” Electromyography and Clinical Neurophysiology, vol. 42, no. 6, pp. 323–331, 2002.
- R. Yadav, R. Agarwal, and M. Swamy, “A novel dual-stage classifier for automatic detection of epileptic seizures,” in Proceedings of the 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBS '08), pp. 911–914, August 2008.
- C. Shannon, “A mathematical theory of communication,” Bell System Technical Journal, vol. 27, pp. 379–423, 623–656, 1948.
- S. M. Pincus and A. L. Goldberger, “Physiological time-series analysis: what does regularity quantify?” American Journal of Physiology—Heart and Circulatory Physiology, vol. 266, no. 4, pp. H1643–H1656, 1994.
- S. Pincus, “Approximate entropy (ApEn) as a complexity measure,” Chaos, vol. 5, no. 1, pp. 110–117, 1995.
- S. M. Kay, Modern Spectral Estimation: Theory and Application, Prentice Hall, Upper Saddle River, NJ, USA, 1988.
- J. P. Burg, Maximum Entropy Spectral Analysis, Stanford University, Department of Geophysics, Stanford, Calif, USA, 1975.
- L. A. Zadeh, “Fuzzy sets,” Information and Control, vol. 8, no. 3, pp. 338–353, 1965.
- L. H. Tsoukalas and R. E. Uhrigh, Fuzzy and Neural Approaches in Engineering, John Wiley & Sons, New York, NY, USA, 1997.
- S. Medasani, J. Kim, and R. Krishnapuram, “An overview of membership function generation techniques for pattern recognition,” International Journal of Approximate Reasoning, vol. 19, no. 3-4, pp. 391–417, 1998.
- J. C. Bezdek, C. Coray, R. Gunderson, and J. Watson, “Detection and characterization of cluster substructure: fuzzy c-lines,” SIAM Journal on Applied Mathematics, vol. 40, no. 2, pp. 339–357, 1981.