Skip to main content

ORIGINAL RESEARCH article

Front. Neurol., 15 October 2021
Sec. Epilepsy

Identification of Epileptogenic and Non-epileptogenic High-Frequency Oscillations Using a Multi-Feature Convolutional Neural Network Model

\nGuoping Ren,Guoping Ren1,2Yueqian Sun,,Yueqian Sun1,2,3Dan WangDan Wang4Jiechuan Ren,Jiechuan Ren1,2Jindong DaiJindong Dai5Shanshan MeiShanshan Mei6Yunlin LiYunlin Li7Xiaofei WangXiaofei Wang8Xiaofeng YangXiaofeng Yang9Jiaqing Yan
Jiaqing Yan10*Qun Wang,,
Qun Wang1,2,3*
  • 1Department of Neurology, Beijing Tiantan Hospital, Capital Medical University, Beijing, China
  • 2China National Clinical Research Center for Neurological Diseases, Beijing, China
  • 3Collaborative Innovation Center for Brain Disorders, Beijing Institute of Brain Disorders, Capital Medical University, Beijing, China
  • 4Department of Neurology, Xingtai People's Hospital, Hebei, China
  • 5Department of Functional Neurosurgery, Beijing Haidian Hospital, Beijing, China
  • 6Department of Neurology, Xuanwu Hospital, Capital Medical University, Beijing, China
  • 7Department of Neurosurgery, Capital Institute of Pediatrics, Children's Hospital, Beijing, China
  • 8Department of Neurology, National Center for Children's Health, Beijing Children's Hospital, Capital Medical University, Beijing, China
  • 9Guangzhou Laboratory, Guangzhou, China
  • 10College of Electrical and Control Engineering, North China University of Technology, Beijing, China

Accurately identifying epileptogenic zone (EZ) using high-frequency oscillations (HFOs) is a challenge that must be mastered to transfer HFOs into clinical use. We analyzed the ability of a convolutional neural network (CNN) model to distinguish EZ and non-EZ HFOs. Nineteen medically intractable epilepsy patients with good surgical outcomes 2 years after surgery were studied. Five-minute interictal intracranial electroencephalogram epochs of slow-wave sleep were selected randomly. Then 5 s segments of ripples (80–200 Hz) and fast ripples (FRs, 200–500 Hz) were detected automatically. The EZs and non-EZs were identified using the surgery resection range. We innovatively converted all epochs into four types of images using two scales: original waveforms, filtered waveforms, wavelet spectrum images, and smoothed pseudo Wigner–Ville distribution (SPWVD) spectrum images. Two scales were fixed and fitted scales. We then used a CNN model to classify the HFOs into EZ and non-EZ categories. As a result, 7,000 epochs of ripples and 2,000 epochs of FRs were randomly selected from the EZ and non-EZ data for analysis. Our CNN model can distinguish EZ and non-EZ HFOs successfully. Except for original ripple waveforms, the results from CNN models that are trained using fixed-scale images are significantly better than those from models trained using fitted-scale images (p < 0.05). Of the four fixed-scale transformations, the CNN based on the adjusted SPWVD (ASPWVD) produced the best accuracies (80.89 ± 1.43% and 77.85 ± 1.61% for ripples and FRs, respectively, p < 0.05). The CNN using ASPWVD transformation images is an effective deep learning method that can be used to classify EZ and non-EZ HFOs.

Introduction

Pathological high frequency oscillations (HFOs) have been proposed as a promising biomarker for the epileptogenic zone (EZ) (1). They are defined as four continuous oscillations within the 80–500 Hz range whose amplitudes are significantly higher than the baseline. They are commonly divided into ripples (80–200 Hz) and fast ripples (FRs, 200–500 Hz) (2). Resection of areas with high HFO occurrence ratios is associated with good surgical outcomes (3). In addition, there is an ongoing multi-center study that compares the clinical values of interictal HFOs with the epileptogenicity index and interictal/preictal functional connectivity alterations for surgical decision making in patients with focal cortical dysplasia (4). HFOs (especially ripples) can be recorded both inside and outside the seizure onset zone (SOZ) or EZ (5, 6). HFOs located in the hippocampus, sensorimotor cortex, or occipital lobe may be related to physiological activities (7, 8) such as memory consolidation (9) or visual perceptual learning (10). The existence of physiological HFOs influence the accuracy to identify EZs using HFOs in some brain areas. In addition, FRs outside the EZ disappear concurrently after resection of FRs inside the EZ in patients with good surgical outcomes. This indicates the presence of an epileptogenic network (11). Our previous retrospective study also found that not all of the brain tissues that produce HFOs need to be removed completely for good surgical outcomes (12). Therefore, subsequent studies focus on further development of novel methods to classify EZ and non-EZ HFOs to delineate the EZ range accurately.

Deep learning is a type of algorithm that automatically establishes rules for classifying data and uses these rules to predict unknown data (13). These algorithms involve probability theory, statistics, approximation theory, convex analysis, algorithmic complexity theory, etc. They are developed using artificial neural networks, which form abstract high-level features by combining low-level features to discover distributed feature representations in data. Deep learning has been applied to image recognition, speech recognition, brain circuits reconstructing, and many other areas of scientific research (13). It uses various structures such as deep confidence networks (DBNs) and convolutional neural networks (CNNs), that can express a variety of data with different relations between dimensions. CNNs have been applied to electrophysiological data analysis. They perform well in decoding of task-related electroencephalogram (EEG) data and classification of EEG signals in various brain–computer interface tasks (1416). Furthermore, CNNs have been implemented for automatic HFOs detection (1719). However, the use of CNNs to differentiating EZ and non-EZ HFOs has not been studied. Therefore, this retrospective study used a multi-feature CNN model to perform deep learning of EZ and non-EZ HFO characteristics and established a corresponding mathematical classification model to assist in surgical decision making.

Materials and Methods

Patient Population

The patient inclusion criteria consisted of the following: (1) intractable epilepsy patients that were addressed via EZ removal surgery at the Epilepsy Centre of Beijing Haidian Hospital between January 2013 and December 2015; (2) implantation of subdural grids or depth electrodes followed by intracranial EEG monitoring with video at a sampling rate of 2,000 Hz for at least one entire night; and (3) at least 2 years of patient follow-up after surgery to confirm an Engel I surgical outcome. Patients with serious EEG artifacts or a lack of surgical data were excluded.

Patients over 18 years of age and the legal guardian or next of kin for those under 18 gave informed consent in agreement with the requirements dictated by the Research Ethics Board of Beijing Haidian Hospital. Patients were still under antiepileptic drug therapy at the time of the recording. However, the drug doses might have been tapered in some patients to induce seizures so that the SOZ could be identified.

Electrode Placement and Intracranial Electroencephalogram Recording

Several types of electrodes were implanted in putative epileptogenic areas based on previous non-invasive pre-surgical evaluations. A combination of cortical strips, grid electrodes (contact diameter 4 mm with 2.5 mm of exposure and 10 mm of spacing between contact centers; Beijing Huakehengsheng Healthcare Co., Ltd., Beijing, China), and mesiotemporal depth electrodes (1.2 mm diameter, eight 2 mm-long contacts, 10 mm between contacts; Beijing Huakehengsheng Healthcare Co., Ltd., Beijing, China) were implanted. Preimplantation magnetic resonance imaging (MRI) and post-implantation computer tomography (CT) scans were used to locate each contact anatomically along the electrode trajectory.

Data were recorded starting on the day after electrode implantation. Data for HFO analysis were acquired at 2,000 Hz using a 32- or 256-channel Nicolet recording system (Natus Medical Incorporated, San Carlos, CA, United States). The recordings were performed in a monitoring unit that was under video surveillance.

Delineation of Epileptogenic Zone and Non-epileptogenic Zone

The EZ was identified by neurologists and neurosurgeons based on long-term intracranial EEG monitoring. The resected channels were confirmed by comparing the fusion of pre-surgical MRI and CT with post-surgical MRI. EZ was defined as the area of the cortex that generates seizures, and which should be removed to make the patient seizure-free. In this study, all of the included patients had Engel I surgical outcomes at least 2 years after surgery. Therefore, we considered the tissues that were resected to be the EZ and the non-resected areas to be non-EZ tissues. All electrodes in EZ and non-EZ were included for analysis.

Data Selection and High-Frequency Oscillations Detection

We chose a slow-wave sleep segment as this period includes less muscle activity and more HFOs than other periods. We used the same method as several previous studies (12, 20). We then selected a random 5 min segment during the slow wave sleep period of each patient. All data were selected from interictal periods that occurred at least 2 h from a seizure. Data with artifacts or noise such as sharp transients with absolute amplitudes >6 standard deviations (SD) from the baseline mean amplitude or irregular signals, were not selected. The data were transformed into a bipolar montage for further analysis. Our preliminary algorithm automatically detected HFOs based on maximum peak points (12, 21). “False HFOs” that were probably caused by filtering of spikes or sharp transients were automatically deleted. Because ripples and FRs have different generation mechanisms and electrophysiological characteristics, the algorithm was designed to analyze the two types of HFOs separately. We defined ripples as any eight consecutive peak points with absolute amplitudes >3.5 SD from the baseline mean amplitude, of which six peak points were more than nine SD above the baseline mean amplitude. FRs were identified as any eight consecutive peak points with absolute amplitudes >3 SD above the baseline mean amplitude, of which four peak points were more than 10.5 SD above the baseline mean amplitude. After HFO detection, 5 s original EEG epochs centered on the HFOs were automatically extracted. The epochs were categorized as EZ or non-EZ HFOs according to the resection scope. Before deep learning, the same number of ripples or FRs epochs were selected randomly from the EZ and non-EZ data from all patients. Of these, 70% were made the training dataset, 15% were used in the validation dataset, and 15% became the test dataset. The training and validation datasets were used to train and adjust the parameters, whereas the test dataset was used to test the network accuracy.

Classification of High-Frequency Oscillations Using Convolutional Neural Networks

CNN represents a common deep learning method with relatively few parameters and good performance (22, 23). Therefore, we chose this type of deep learning structure for data classification. The network structure is shown in Figure 1. Our CNN model consisted of input, convolutional, batch normalization, max pooling, fully-connected, dropout, and softmax layers. For ripples, the original images were 200 × 120 × 1 pixel. For FRs, the original images were 400 × 300 × 1 pixel. Then we used bicubic interpolation method to resize images to 96 × 96 × 1 pixel for use as input data (“imresize” function in Matlab 2019b). The training images used in this study included four types of transformations. The EZ and non-EZ HFOs were defined as “0” and “1,” respectively. Three sets of convolution and max pooling layers were adopted to improve the classification accuracy. Since the Rectified Linear Unit (ReLU) function has good non-linear mapping characteristics, it was adopted uniformly as the transformation function. The rate of initial learning during network training, was set to 0.01. The validation and test data sets were also converted into 96 × 96 × 1 pixel images and used as input to the trained network. The final test data outputs were again labeled “0” or “1” to distinguish the classification results. Then, the actual and output labels were compared. The identification was correct if the test data actual and output labels matched. Otherwise, it was wrong. Finally, this process was performed for 100 rounds to measure the stabilizing effect of the network and determine the classification accuracy.

FIGURE 1
www.frontiersin.org

Figure 1. Architecture of the convolutional neural network (CNN) model. The CNN model consists of input, convolutional, batch normalization, max pooling, fully connected, dropout, and softmax layers.

Our null hypothesis was that the classification is random. This null hypothesis could be rejected when the accuracy of the CNN network to classify EZ and non-EZ HFOs is higher than 50%.

Electroencephalogram Feature Transformation

Because the EEG data were one-dimensional, they could not be input directly to the CNN. Transformation of the EEG data into two-dimensional images was required. In our study, the classification accuracy of CNN using various two-dimensional images were compared. The EEG data were converted into four types of images: original waveforms, filtered waveforms, wavelet spectrum images, and smoothed pseudo Wigner–Ville distribution spectrum images.

Original Waveform

The original waveform is one of the most direct and commonly used two-dimensional image transformation methods. First, since the durations of most HFOs were <1 s, and FRs were usually shorter than ripples (24, 25), 200 ms (for ripples) or 100 ms (for FRs) epochs centered on each HFO were extracted from the original EEG data. This transformation used two scales to draw the EEG. In the fixed scale, the amplitude scale of the EEG signal was within ±1,000 μV when an EEG epoch was drawn. This scale could restore the morphology of the original data well. In the fitted scale, the maximum absolute EEG signal value α μV was calculated. Then, the EEG amplitude scale was within ±α μV when the signal was drawn. This scale could effectively eliminate differences between EEG signal baseline conditions caused by different references or equipment.

Filtered Waveform

The filtered waveform is a two-dimensional image transformation method whose result is most similar to EEG morphology when manually analyzing HFOs. First, the data were filtered using a finite impulse response (FIR) filter with a hamming window. They were band-passed by 80–200 Hz for ripples with window length of 330 points and 200–500 Hz for FRs with window length of 132 points. Then, 200 ms (for ripples) or 100 ms (for FRs) HFO-centered filtered EEG epochs were extracted. Again, two types of scales were used to draw the filtered signal. In the fixed scale, the amplitude scale of the ripple was within ±50 μV and the FR was within ±10 μV when an HFO segment was plotted. The fitted scale process was the same as that used with the preceding original waveform.

Wavelet Spectrum Image

Time-frequency spectrum images can transform one-dimensional EEG signals from the time domain to the time-frequency domain and are widely used in EEG signal processing. The most popular algorithms include short-time Fourier transforms, wavelet transforms, and empirical-mode decomposition. In this study, a Morlet wavelet with a center frequency of eight was used for analysis (12). Ripples were drawn with a frequency range of 80–200 Hz and a step size of 1 Hz. FRs were drawn with a frequency range of 200–500 Hz and a step size of 1 Hz. In order to remove the influence of boundary effects on the wavelet graph, wavelet spectra of 1,000 ms epochs centered on the extracted 5 s data were calculated. Then, partial wavelet spectrum graphs with durations of 200 ms (for ripples) or 100 ms (for FRs) centered on the 5 s graphs were restored.

The scales were similar to those of other transformations. In the fixed scale, the wavelet spectrum energy mapping range was within 0–1,000 μV2 for ripples and within 0–10 μV2 for FRs when the wavelet spectrum image was plotted. In the fitted scale, the maximum absolute value α μV2 of wavelet spectrum was computed. When the wavelet spectrum graph was drawn, the wavelet spectrum energy scale was within 0 α μV2.

Smoothed Pseudo Wigner–Ville Distribution Spectrum Image

The Wigner–Ville distribution is widely used in the field of time-frequency feature extraction. It is a powerful, appealing tool for the analysis of non-stationary, non-linear, and transient signals (26). This method has higher temporal and frequency resolutions than wavelet transforms. However, cross-term interference occurs when this algorithm is applied to signals with multiple frequency components. We used a smoothed pseudo Wigner–Ville distribution (SPWVD) to reduce this influence. The SPWVD improves on WVD by using windowed smoothing for time-frequency analysis. This method can reduce interference from cross terms with little loss in time and frequency resolution, and is thus more suitable for EEG analysis.

The central point of each HFO was set as time 0, and data from 500 ms before and after this point were used for SPWVD analysis. This study used a Kaiser window with a length of 1,000 ms and a frequency of 1,000 Hz to smooth in time and frequency. For a continuous signal x(t), the WVD is defined as:

WVDx (t,f)=-x(t+τ2)x*(t-τ2)e-j2πfτ dτ.    (1)

For a discrete signal with N samples, the distribution becomes:

WVDx (n,k)=m=-NNx(n+m/2)x*(n-m/2)e-j2πkm/N.    (2)

The SPWVD used independent windows to smooth in time and frequency:

SPWVDxg,H (t,f)=-g(t)H(f)x(t+τ2)x*(t-τ2)e-j2πfτ dτ.    (3)

where g(t) is the smoothed window of time domain, and H(f) is the smoothed window of frequency domain.

Since the frequency components of the EEG signals follow power laws, the energy in the time-frequency SPWVD diagram decays rapidly as the frequency increases. Therefore, it is difficult to distinguish high-frequency information in the SPWVD time-frequency spectrum. We used the following improvements to solve this problem.

First, for the specified frequency f, the SPWVD transformation was normalized by dividing by the maximum SPWVD value at all timepoints (Figures 2A,B). The normalized SPWVD transformation value was named the SPWVD index. The formulas are as follows:

Ŵtf={        0,        Wtf0Wtfmax(Mf),Wtf>0    (4)

where Ŵtf is the SPWVD transformation of HFO; t is time, which ranges from 0 to 1,000 ms; f is frequency, which ranges from 0 to 1,000 Hz; and Mf is the curve that contains the SPWVD transformation values and time information for a specific frequency f. The sample frequency is 2,000 Hz and the frequency interval is 0.5 Hz.

FIGURE 2
www.frontiersin.org

Figure 2. The smoothed pseudo Wigner–Ville distribution (SPWVD). (A) The original waveform of a 400 ms epoch. (B) Left: the first normalization of the SPWVD transformation (0–500 Hz). In this figure, all of the SPWVD transformation values are normalized by dividing all time points by the maximum SPWVD value. The normalized value (Ŵtf) is the SPWVD index. Middle: Re-normalized SPWVD. The Ŵtf in the left is re-normalized by dividing all time points in each HFO by the maximum SPWVD index in all frequencies. Right: Adjusted SPWVD (ASPWVD). The Ŵtf in the left were adjusted by dividing all HFOs time points by the median maximum SPWVD index. (C) Curve C for re-normalized SPWVD. This is curve C for this epoch from 80 to 500 Hz. The small rectangle in the figure is the enlargement of curve C for FR (200–500 Hz). (D) Curve C for the ASPWVD. This is curve C with the median maximum SPWVD index for all epochs from 80 to 500 Hz. The small rectangle in the figure is the enlargement of curve C for FR (200–500 Hz). (E) Ripple (80–200 Hz) SPWVD spectrum images. Left: the first normalization of the SPWVD spectrum image. Middle: Re-normalized SPWVD spectrum image. Right: the ASPWVD spectrum image. (F) FR (200–500 Hz) SPWVD spectrum image. Left: the first normalization of SPWVD spectrum image. Middle: Re-normalized SPWVD spectrum image. Right: the ASPWVD spectrum image. (E,F) indicate that the ASPWVD spectrum image provides higher time frequency resolution and less noise than the re-normalized SPWVD.

Second, we innovatively applied two further improvements to the algorithms in this study:

(1) The re-normalized SPWVD. After computing the normalized Wtf values for all of the frequencies (80–200 or 200–500 Hz) in an HFO, we obtained a curve C for each HFO and determined the maximum SPWVD index in the curve (Figure 2C). Then, the Wtf was re-normalized by dividing by the maximum SPWVD index at all frequencies for each HFO.

(2) The adjusted SPWVD (ASPWVD). Although SPWVD provides an improvement by adding windowed smoothing to the WVD, noise remains in the EEG. This can decrease the accuracy of time-frequency analysis. Therefore, we determined the median of the maximum SPWVD indexes of the C curves of SPWVD transformation for all HFOs (Figure 2D). Then, the SPWVD transformations of all of the HFOs were adjusted by dividing them by the median maximum SPWVD index. After adjustment, the WVD-related noise was suppressed and the features of the time-frequency were highlighted (Figures 2E,F). ASPWVD transformed images could obtain oscillation energy better while retaining their time frequency resolution.

Then, partial SPWVD spectrum graphs with durations of 200 ms (for ripples) or 100 ms (for FRs) that were centered on the 1,000 ms graphs were restored.

Statistical Analysis

In the current study, we sought to detect epileptic HFOs in EZs from HFOs in non-EZs. Therefore, true positive (TP) refer to cases where HFOs in EZs were classified correctly and false negative (FN) refer to cases where HFOs in EZs were classified as HFOs in non-EZs. False positive (FP) refers to cases where HFOs in non-EZs were classified as HFOs in EZs and true negative (TN) refer to cases where HFOs in non-EZs were classified correctly. The sensitivity, specificity, and accuracy are defined in the following equations:

Sensitivity=TPTP+FN ×100Specificity=TNTN+FP ×100Accuracy=TP+TNTP+FN+TN+FP ×100    (5)

All data are expressed as mean ± SD and were analyzed using Sigmaplot version 12.0 (Systat Software, Inc, San Jose, CA, USA). The one-way ANOVA was used to compare the accuracies of CNN networks using four types of transformation images. The Tukey test was used for pairwise comparisons. The t-test and Mann–Whitney rank sum test were used for normal distribution data and non-normal distribution data to compare the CNN classification results based on fixed-scale and fitted-scale images. A p < 0.05 was considered statistically significant.

Results

A total of 19 subjects with focal refractory epilepsy were included in the study (10 females). Their demographics and clinical characteristics are shown in Table 1. A total of 20,238 ripples (12,756 in EZs and 7,482 in non-EZs) and 5,189 FRs (3,146 in EZs and 2,043 in non-EZs) were detected automatically. Therefore, before deep learning, 7,000 ripple epochs and 2,000 FR epochs were selected randomly from the EZ and non-EZ groups for analysis.

TABLE 1
www.frontiersin.org

Table 1. Demographics and clinical characteristics.

Figure 3 shows the four types of ripple transformations with two scales. The re-normalized SPWVD image displays higher time-frequency resolution than the wavelet spectrum image. The ASPWVD further suppresses the WVD-related noise and highlights the features of HFOs. Figure 4 shows four types of FR transformations with two scales and excellent two-dimensional ASPWVD images. Figures 5, 6 show two-dimensional 96 × 96 × 1 pixel images of five different ripples or FRs from EZ and non-EZ that were put into the network.

FIGURE 3
www.frontiersin.org

Figure 3. Four ripple image transformations. Left: Transformations of a ripple. Right: Network inputs in the form of two-dimensional 96 × 96-pixel images that represent various transformations. (A) Transformations with fixed scales. From top to bottom are original waveforms, filtered (80–200 Hz) waveforms, wavelet spectrum images, and ASPWVD spectrum images. (B) Transformations with fitted scales. From top to bottom are original waveforms, filtered (80–200 Hz) waveforms, wavelet spectrum images, and re-normalized SPWVD images.

FIGURE 4
www.frontiersin.org

Figure 4. Four fast ripples (FRs) image transformations. Left: Transformations of a FR. Right: Network inputs in the form of two-dimensional pictures of 96 × 96 pixels that represent various transformations. (A) Transformations with fixed scales. From top to bottom are original waveforms, filtered (200–500 Hz) waveforms, wavelet spectrum images, and ASPWVD spectrum images. (B) Transformations with fitted scales. From top to bottom are original waveforms, filtered (200–500 Hz) waveforms, wavelet spectrum images, and re-normalized SPWVD spectrum images.

FIGURE 5
www.frontiersin.org

Figure 5. Network inputs in the form of two-dimensional pictures of ripples. (A) Two-dimensional pictures (96 × 96 × 1 pixel) of five ripples in different channels of EZs. Upper and lower four panels are fixed and fitted scales. The four panels are original waveforms, filtered (80–200 Hz) waveforms, wavelet spectrum images, and SPWVD spectrum images. (B) Two-dimensional pictures (96 × 96 × 1 pixel) of ripples in different channels of non-EZs. Upper and lower four panels are fixed and fitted scales. The four panels are original waveforms, filtered (80–200 Hz) waveforms, wavelet spectrum images, and SPWVD spectrum images.

FIGURE 6
www.frontiersin.org

Figure 6. Network inputs in the form of two-dimensional pictures of FRs. (A) Two-dimensional pictures (96 × 96 × 1 pixel) of five FRs in different channels of EZs. Upper and lower four panels are fixed and fitted scales. The four panels are original waveforms, filtered (200–500 Hz) waveforms, wavelet spectrum images, and SPWVD spectrum images. (B) Two-dimensional pictures (96 × 96 × 1 pixel) of ripples in different channels of non-EZs. Upper and lower four panels are fixed and fitted scales. The four panels are original waveforms, filtered (200–500 Hz) waveforms, wavelet spectrum images, and SPWVD spectrum images.

The classification performances of CNN models trained on four different transformations of EEG features with two scales are shown in Table 2. The accuracies of the CNN networks to classify EZ and non-EZ HFOs were higher than 50%. Therefore, the null hypothesis that the classification is random was rejected. Except for original ripple waveforms, the results from the CNN models that are trained using fixed-scale images are significantly better than those from models trained using fitted-scale images (p < 0.05, Figures 7, 8). Of the four models based on fixed-scale transformations, the CNN model based on the ASPWVD exhibits the best accuracies (80.89 ± 1.43% and 77.85 ± 1.61% for ripples and FRs, respectively, p < 0.05). The training and validation accuracies and losses of ripples and FRs are also displayed in Figures 7, 8.

TABLE 2
www.frontiersin.org

Table 2. Performance of convolutional neural networks (CNNs) trained using various electroencephalogram (EEG) data transformations.

FIGURE 7
www.frontiersin.org

Figure 7. Convolutional neural networks (CNN) accuracies for ripples classification. (A) Accuracies of CNNs for ripples classification using various transformations. The CNN network using the fixed-scale ASPWVD images provides the highest accuracy (p < 0.05). Except for original ripple waveforms, the results from CNN models that are trained using fixed-scale images are significantly better than those from models trained using fitted-scale images (p < 0.05). (B) CNN training and validation accuracies and losses are displayed. Asterisk (*) means a statistically significant difference.

FIGURE 8
www.frontiersin.org

Figure 8. CNN accuracies for FRs classification. (A) Accuracies of CNNs for FRs classification using various transformations. The CNN using the fixed-scale ASPWVD images provides the highest accuracy (p < 0.05). The results from CNN models that are trained using fixed-scale images are significantly better than those from models trained using fitted-scale images (p < 0.05). (B) CNN training and validation accuracies and losses are displayed. Asterisk (*) means a statistically significant difference.

Discussion

In this study, a multi-feature CNN network structure was used to explore a new method of identifying EZ and non-EZ HFOs. ASPWVD images were applied creatively to transform one-dimensional EEG data into two-dimensional signals and help to improve the accuracy of the CNN network. As a result, the CNN model based on ASPWVD images provided the best accuracies with fixed scales (80.89 ± 1.43% and 77.85 ± 1.61% for ripples and FRs, respectively).

CNNs are used widely for EEG signal analysis and perform well (2729). A traditional CNN structure was used to distinguish EZ and non-EZ HFOs in this study (30). We innovatively converted all epochs into four types of images with two scales. The CNN classification results produced by using networks that were trained using various EEG feature transformations indicated that fixed-scale image performance was usually significantly better than fitted-scale image performance. The fitted-scale images provided similar oscillation patterns of EZ and non-EZ HFOs. This led to ordinary classification performance. The better performance of CNNs that were trained using fixed-scale images indicates that there are potentially significant differences between the amplitudes of EZ and non-EZ HFOs. This finding is similar to previous results (31, 32).

The classification results from CNNs that were trained using ASPWVD transformed images were optimal. We applied this time-frequency analysis to transform one-dimensional EEG data into two-dimensional images. This succeeded because this method could reduce WVD-related noise and receive higher time-frequency analysis resolution than wavelet transformation. Therefore, more detailed time and frequency information of HFOs in the image was analyzed during convolution with the CNN than other transformations. This could help the CNN to identify oscillations more accurately. It is widely proven that physiological and pathological HFOs exhibit overlapping properties (33, 34), and different brain regions generate highly variable rates of physiological HFOs (7, 35). The differences between EZ and non-EZ HFOs are reflected mainly in the oscillation details. Thus, a method that adequately expresses oscillation details, such as the ASPWVD, can effectively assist CNN model in classification of EZ and non-EZ HFOs.

Our results indicate that CNNs can distinguish EZ and non-EZ HFOs, but the highest accuracy achieved is limited to 81%. Apart from the limitations of the method, this limited accuracy may be related to the inherent characteristics of the data for two reasons. First, the pervasiveness of physiological HFOs limits accuracy. Due to the presence of functional neural networks in the brain, physiological HFOs are distributed widely among EZ and non-EZ areas. Therefore, certain characteristics may overlap EZ and non-EZ HFOs. This increases the difficulty of classifying HFOs in these two areas. Second, the blurred boundaries of real EZs may affect accuracy. Although the surgical outcomes of the patients in our group were Engel I and we defined the EZ according to the resection scope, the brain area that was resected during surgery might be larger than the real EZ range.

In addition, the number of patients that could be included was limited because of the restrictive inclusion criteria, and the training, validation, and test datasets were from the same patients because of the limited number of patients. This might cause higher accuracies than it would have been achieved in a scenario where the model was tested on patients that were different from the ones used in training and validation. Due to the small number of FRs, the performance of CNNs to classify EZ and non-EZ FRs were not as good as ripples. In the future, we will include more patients to further train and test the CNN model. Accurate EZ and non-EZ HFOs training datasets can help to train CNNs better. Furthermore, we hope to optimize the network structure and improve HFO characteristic transformation in order to modify our algorithm further.

Conclusion

In this study, EZ and non-EZ HFOs were distinguished successfully using our multi-feature CNN model. Their classification was most effective when they used time-frequency information from EEG data that was filtered using the ASPWVD method. We innovatively proposed an optimized CNN model to classify EZ and non-EZ HFOs, though the accuracy of our CNN model is not yet sufficient for clinical use. In the future, accurate training datasets that distinguish physiological and pathological HFOs or occurrence of other network structures may enable deep learning networks to produce a simple, fast, and reliable system for classifying EZ and non-EZ HFOs.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics Statement

The studies involving human participants were reviewed and approved by Research Ethics Board of Beijing Haidian Hospital. Written informed consent to participate in this study was provided by the participants' legal guardian/next of kin.

Author Contributions

GR and JY contributed to designing the study, collecting, analyzing the data, and wrote a draft of the manuscript. All authors collected the data and interpreted the results and reviewed and revised the article and confirmed its final version.

Funding

The study was financially supported by the National Natural Science Foundation of China (81801280 to GR, 61803003 to JY, 81601126 to JR, 81971202 to XY), the Youth Research Fund of Beijing Tiantan Hospital affiliated to Capital Medical University (2017-YQN-01 to GR), the National Key R&D Program of China grant (2017YFC1307500 to QW), the Capital Health Research and Development of Special grants (2016-1-2011 and 2020-1-2013 to QW), the Beijing-Tianjin-Hebei Cooperative Basic Research Program (H2018206435 to QW), and the Beijing Natural Science Foundation (Z200024 to QW).

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher's Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1. Thomschewski A, Hincapie AS, Frauscher B. Localization of the epileptogenic zone using high frequency oscillations. Front Neurol. (2019) 10:94. doi: 10.3389/fneur.2019.00094

PubMed Abstract | CrossRef Full Text | Google Scholar

2. Zelmann R, Zijlmans M, Jacobs J, Chatillon CE, Gotman J. Improving the identification of high frequency oscillations. Clin Neurophysiol. (2009) 120:1457–64. doi: 10.1016/j.clinph.2009.05.029

PubMed Abstract | CrossRef Full Text | Google Scholar

3. Jacobs J, Zijlmans M, Zelmann R, Chatillon CE, Hall J, Olivier A, et al. High-frequency electroencephalographic oscillations correlate with outcome of epilepsy surgery. Ann Neurol. (2010) 67:209–20. doi: 10.1002/ana.21847

PubMed Abstract | CrossRef Full Text | Google Scholar

4. Hirsch E, Scholly J. Study of Predictive Biomarkers for Rational Management of Drug-Resistant Epilepsy Associated With Focal Cortical Dysplasia (SPREAD). Available online at: https://clinicaltrials.gov/ct2/show/NCT03321240?cond=focal+cortical+dysplasia&cntry=FR&draw=2&rank=2 (accessed October 7, 2021).

5. Sakuraba R, Iwasaki M, Okumura E, Jin K, Kakisaka Y, Kato K, et al. High frequency oscillations are less frequent but more specific to epileptogenicity during rapid eye movement sleep. Clin Neurophysiol. (2016) 127:179–86. doi: 10.1016/j.clinph.2015.05.019

PubMed Abstract | CrossRef Full Text | Google Scholar

6. Pail M, Rehulka P, Cimbalnik J, Dolezalova I, Chrastina J, Brazdil M. Frequency-independent characteristics of high-frequency oscillations in epileptic and non-epileptic regions. Clin Neurophysiol. (2017) 128:106–14. doi: 10.1016/j.clinph.2016.10.011

PubMed Abstract | CrossRef Full Text | Google Scholar

7. Frauscher B, von Ellenrieder N, Zelmann R, Rogers C, Nguyen DK, Kahane P, et al. High-frequency oscillations in the normal human brain. Ann Neurol. (2018) 84:374–85. doi: 10.1002/ana.25304

PubMed Abstract | CrossRef Full Text | Google Scholar

8. Melani F, Zelmann R, Mari F, Gotman J. Continuous high frequency activity: a peculiar SEEG pattern related to specific brain regions. Clin Neurophysiol. (2013) 124:1507–16. doi: 10.1016/j.clinph.2012.11.016

PubMed Abstract | CrossRef Full Text | Google Scholar

9. Axmacher N, Elger CE, Fell J. Ripples in the medial temporal lobe are relevant for human memory consolidation. Brain. (2008) 131:1806–17. doi: 10.1093/brain/awn103

PubMed Abstract | CrossRef Full Text | Google Scholar

10. Nagasawa T, Juhasz C, Rothermel R, Hoechstetter K, Sood S, Asano E. Spontaneous and visually driven high-frequency oscillations in the occipital cortex: intracranial recording in epileptic patients. Hum Brain Mapp. (2012) 33:569–83. doi: 10.1002/hbm.21233

PubMed Abstract | CrossRef Full Text | Google Scholar

11. van 't Klooster MA, van Klink NEC, Zweiphenning W, Leijten FSS, Zelmann R, Ferrier CH, et al. Tailoring epilepsy surgery with fast ripples in the intraoperative electrocorticogram. Ann Neurol. (2017) 81:664–76. doi: 10.1002/ana.24928

PubMed Abstract | CrossRef Full Text | Google Scholar

12. Ren G, Yan J, Yu Z, Wang D, Li X, Mei S, et al. Automated detector of high frequency oscillations in epilepsy based on maximum distributed peak points. Int J Neural Syst. (2018) 28:1750029. doi: 10.1142/S0129065717500290

PubMed Abstract | CrossRef Full Text | Google Scholar

13. LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. (2015) 521:436–44. doi: 10.1038/nature14539

PubMed Abstract | CrossRef Full Text | Google Scholar

14. Schirrmeister RT, Springenberg JT, Fiederer LDJ, Glasstetter M, Eggensperger K, Tangermann M, et al. Deep learning with convolutional neural networks for EEG decoding and visualization. Hum Brain Mapp. (2017) 38:5391–420. doi: 10.1002/hbm.23730

PubMed Abstract | CrossRef Full Text | Google Scholar

15. Tang Z, Li C, Sun S. Single-trial EEG classification of motor imagery using deep convolutional neural networks. Optik. (2017) 130:11–8. doi: 10.1016/j.ijleo.2016.10.117

CrossRef Full Text | Google Scholar

16. Lawhern VJ, Solon AJ, Waytowich NR, Gordon SM, Hung CP, Lance BJ. EEGNet: a compact convolutional network for EEG-based brain-computer interfaces. J Neural Eng. (2016) 15:056013. doi: 10.1088/1741-2552/aace8c

PubMed Abstract | CrossRef Full Text | Google Scholar

17. Ma K, Lai D, Chen Z, Zeng Z, Zhang X, Chen W, et al. Automatic detection of high frequency oscillations (80-500Hz) based on convolutional neural network in human intracerebral electroencephalogram. In: Annual International Conference of the IEEE Engineering in Medicine and Biology Society IEEE Engineering in Medicine and Biology Society Annual Conference. Berlin, Germany. Berlin (2019). pp. 5133–36.

Google Scholar

18. Zuo R, Wei J, Li X, Li C, Zhao C, Ren Z, et al. Automated detection of high-frequency oscillations in epilepsy based on a convolutional neural network. Front Comput Neurosci. (2019) 13:6. doi: 10.3389/fncom.2019.00006

PubMed Abstract | CrossRef Full Text | Google Scholar

19. Zhao B, Hu W, Zhang C, Wang X, Wang Y, Liu C, et al. Integrated automatic detection, classification and imaging of high frequency oscillations with stereoelectroencephalography. Front Neurosci. (2020) 14:546. doi: 10.3389/fnins.2020.00546

PubMed Abstract | CrossRef Full Text | Google Scholar

20. Ren G, Yan J, Sun Y, Ren J, Dai J, Mei S, et al. Association between interictal high-frequency oscillations and slow wave in refractory focal epilepsy with good surgical outcome. Front Human Neurosci. (2020) 14:335 doi: 10.3389/fnhum.2020.00335

PubMed Abstract | CrossRef Full Text | Google Scholar

21. Jiang C, Li X, Yan J, Yu T, Wang X, Ren Z, et al. Determining the quantitative threshold of high-frequency oscillation distribution to delineate the epileptogenic zone by automated detection. Front Neurol. (2018) 9:889. doi: 10.3389/fneur.2018.00889

PubMed Abstract | CrossRef Full Text | Google Scholar

22. Wang T, Lu C, Shen G, Hong F. Sleep apnea detection from a single-lead ECG signal with automatic feature-extraction through a modified LeNet-5 convolutional neural network. PeerJ. (2019) 7:e7731. doi: 10.7717/peerj.7731

PubMed Abstract | CrossRef Full Text | Google Scholar

23. Zhu H, Fang Q, He H, Hu J, Jiang D, Xu K. Automatic prediction of meningioma grade image based on data amplification and improved convolutional neural network. Comput Math Methods Med. (2019) 2019:7289273. doi: 10.1155/2019/7289273

PubMed Abstract | CrossRef Full Text | Google Scholar

24. Urrestarazu E, Chander R, Dubeau F, Gotman J. Interictal high-frequency oscillations (100-500 Hz) in the intracerebral EEG of epileptic patients. Brain. (2007) 130:2354–66. doi: 10.1093/brain/awm149

PubMed Abstract | CrossRef Full Text | Google Scholar

25. Wang S, Wang IZ, Bulacio JC, Mosher JC, Gonzalez-Martinez J, Alexopoulos AV, et al. Ripple classification helps to localize the seizure-onset zone in neocortical epilepsy. Epilepsia. (2013) 54:370–6. doi: 10.1111/j.1528-1167.2012.03721.x

PubMed Abstract | CrossRef Full Text | Google Scholar

26. Boashash B, Black P. An efficient real-time implementation of the Wigner-Ville distribution. IEEE Trans Acoust. (1987) 35:1611–18. doi: 10.1109/TASSP.1987.1165070

CrossRef Full Text | Google Scholar

27. Wei X, Zhou L, Chen Z, Zhang L, Zhou Y. Automatic seizure detection using three-dimensional CNN based on multi-channel EEG. BMC Med Inform Decis Mak. (2018) 18:111. doi: 10.1186/s12911-018-0693-8

PubMed Abstract | CrossRef Full Text | Google Scholar

28. Acharya UR, Oh SL, Hagiwara Y, Tan JH, Adeli H, Subha DP. Automated EEG-based screening of depression using deep convolutional neural network. Comput Methods Prog Biomed. (2018) 161:103–13. doi: 10.1016/j.cmpb.2018.04.012

PubMed Abstract | CrossRef Full Text | Google Scholar

29. Gonzalez HA, Yoo J, Elfadel IM. EEG-based emotion detection using unsupervised transfer learning. Annu Int Conf IEEE Eng Med Biol Soc. (2019) 2019:694–97. doi: 10.1109/EMBC.2019.8857248

PubMed Abstract | CrossRef Full Text | Google Scholar

30. Lecun Y, Bottou L. Gradient-based learning applied to document recognition. Proc IEEE. (1998) 86:2278–324. doi: 10.1109/5.726791

CrossRef Full Text | Google Scholar

31. Cimbalnik J, Brinkmann B, Kremen V, Jurak P, Berry B, Gompel JV, et al. Physiological and pathological high frequency oscillations in focal epilepsy. Ann Clin Transl Neurol. (2018) 5:1062–76. doi: 10.1002/acn3.618

PubMed Abstract | CrossRef Full Text | Google Scholar

32. Bruder JC, Dumpelmann M, Piza DL, Mader M, Schulze-Bonhage A, Jacobs-Le Van J. Physiological ripples associated with sleep spindles differ in waveform morphology from epileptic ripples. Int J Neural Syst. (2017) 27:1750011. doi: 10.1142/S0129065717500113

PubMed Abstract | CrossRef Full Text | Google Scholar

33. Alkawadri R, Gaspard N, Goncharova II, Spencer DD, Gerrard JL, Zaveri H, et al. The spatial and signal characteristics of physiologic high frequency oscillations. Epilepsia. (2014) 55:1986–95. doi: 10.1111/epi.12851

PubMed Abstract | CrossRef Full Text | Google Scholar

34. Matsumoto A, Brinkmann BH, Matthew Stead S, Matsumoto J, Kucewicz MT, Marsh WR, et al. Pathological and physiological high-frequency oscillations in focal human epilepsy. J Neurophysiol. (2013) 110:1958–64. doi: 10.1152/jn.00341.2013

PubMed Abstract | CrossRef Full Text | Google Scholar

35. von Ellenrieder N, Frauscher B, Dubeau F, Gotman J. Interaction with slow waves during sleep improves discrimination of physiologic and pathologic high-frequency oscillations (80-500 Hz). Epilepsia. (2016) 57:869–78. doi: 10.1111/epi.13380

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: high frequency oscillations, epileptogenic zone, convolutional neural network, adjusted smoothed pseudo Wigner–Ville distribution, refractory focal epilepsy

Citation: Ren G, Sun Y, Wang D, Ren J, Dai J, Mei S, Li Y, Wang X, Yang X, Yan J and Wang Q (2021) Identification of Epileptogenic and Non-epileptogenic High-Frequency Oscillations Using a Multi-Feature Convolutional Neural Network Model. Front. Neurol. 12:640526. doi: 10.3389/fneur.2021.640526

Received: 11 December 2020; Accepted: 06 September 2021;
Published: 15 October 2021.

Edited by:

Andrea Romigi, Istituto Neurologico Mediterraneo Neuromed (IRCCS), Italy

Reviewed by:

Hidenori Sugano, Juntendo University, Japan
Umit Aydin, King's College London, United Kingdom

Copyright © 2021 Ren, Sun, Wang, Ren, Dai, Mei, Li, Wang, Yang, Yan and Wang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Qun Wang, wangq@ccmu.edu.cn; Jiaqing Yan, redyjq@gmail.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.