Skip to main content

Epilepsy seizure prediction with few-shot learning method

Abstract

Epileptic seizures prediction and timely alarms allow the patient to take effective and preventive actions. In this paper, a convolutional neural network (CNN) is proposed to diagnose the preictal period. Our goal is for those epileptic patients in whom seizures occur late and it is very challenging to record the preictal signal for them. In the previous works, generalized methods were inevitably used for this group of patients which were not very accurate. Our approach to solve this problem is to provide a few-shot learning method. This method, having the previous knowledge, is trained with only a small number of samples, learns new tasks and reduces the efforts to collect more data. Evaluation results for three patients from the CHB–MIT database, for a 10-min seizure prediction horizon (SPH) and a 20-min seizure occurrence period (SOP), averaged sensitivity of 95.70% and a false prediction rate (FPR) of 0.057/h and for the 5-min prediction horizon and the 25-min seizure occurrence period averaged sensitivity of 98.52% and a false prediction rate of (FPR) of 0.045/h. The proposed few-shot learning method, based on previous knowledge gained from the generalizable method, is regulated with a few new patient samples for the patient. Our results show that the accuracy obtained in this method is higher than the generalizable methods.

1 Introduction

Epileptic seizures are transient signs or symptoms of abnormal, intense, and synchronous activities of the nervous system caused by electrical discharge from neurons. Approximately 50–60 million people worldwide have epilepsy [1]. In some patients, seizures may occur every few months or even every few years. Despite the low frequency of clinical symptoms, unpredictable seizures have profound effects on the patient's life [2].

Seizures, due to their unpredictability, often cause stress in the patient. More than 99.95% of the times, the patient is not having a seizure and should be able to live a relatively normal life, but the patient is always concerned that seizure can occur at any time and this affects their daily lives, often leading to anxiety and depression and lowering their quality of life [3]. The ability to accurately predict the seizures and to provide early warning before seizure occurrence can make significant changes in the lives of people with epilepsy, giving them greater confidence and freedom, as well as reducing sudden deaths in patients with epilepsy. In these cases, patients can take medication when necessary and not constantly. The electroencephalogram (EEG) signal has a higher temporal resolution than other brain imaging modalities and is used to predict more epileptic seizures. The EEG signal is a multivariate time series of a nonlinear and multidimensional system, so only complex nonlinear functions with a high degree of freedom can reveal the complex relationship between them. Today, there are significant advances in the field of machine learning, powerful algorithms such as the CNNs are utilized, since they have good results in natural language processing, object detection and classification and they acted very strongly to discover complex structures in data [4, 5]. One of the hypotheses for predicting epilepsy is that changes in brainwave patterns occur as we approach ictal. There are two perspectives for identifying these changes during the preictal interval that in one view, only the preictal interval is analyzed and it is compared to the threshold level [6]. In the second perspective, the distinctive patterns between the preictal and interictal intervals are identified and a binary classification is performed [7]. The commonality between these two perspectives is the extraction of the best features from the EEG signal. Many models have been used to predict seizures, yet the lack of efficient way for prediction still exists.

Most of the work done to diagnose and predict epileptic seizures is such that a number of time domain features such as median, mean, variance, standard deviation, maximum and minimum, etc.; frequency domain features such as power spectrum density, etc.; time–frequency domain features such as wavelet transform coefficients, Pseudo-Winger–Will, etc.; and chaotic features such as fractal dimension, approximate entropy and spectral entropy and correlation dimension, etc. are manually extracted. The combination of them is best described by the expert. In [6], they predicted epileptic seizures by introducing a similarity index based on symbolic dynamics techniques (statistical behavior of local extremes) with the sensitivity of 63.75% and FPR = 0.33/h for 21 patients from the Freiburg database and sensitivity of 96.66% and FPR = 0.33/h for eight patients.

In the last few years, various methods have been proposed to select the most appropriate combination of features and classifiers, including the results of extracting linear features from the EEG signal, such as autoregressive coefficients [8]. The emergence of dynamical systems theory introduced several nonlinear properties using features of Lempel–Ziv, noise level, correlation entropy complexity, and correlation dimension of intracranial EEG with the sensitivity of 86.7% and 92.9% with FPR = 0.126/h and 0.096 /h for SOP = 30 min and 10-s forecast horizon [9]. Spike rate used in this work [10]. For the CHB–MIT database, tailored feature extractions are customized and performed independently for each patient with a sensitivity of 98% and an FPR of less than 0.05/h [11]. With synchronization information, achieved a 95.4% sensitivity and FPR of 0.36/h [12].

A patient-specific method using the common spatial pattern (CSP) for feature extraction was reported with linear discriminant analysis (LDA) classifier with 89% sensitivity, FPR = 0.39/h, and SPH = 120 min for 24 CHB–MIT database patients [13]. In [14], the authors presented a patient-specific prediction algorithm using multiple features of spectral power of EEG signals and support vector machine (SVM) for classification, and reported sensitivity of 97.5% and FPR = 0.27/h for 18 Freiburg patients as well. In [15], authors have used the Recurrent Neural Network (RNN) to learn temporal dependencies between successive samples. Manual extraction of features is not only time-consuming but also imperfect. When faced with a wide range of data, it is challenging to engineer features and achieve high-level features. Generalized networks remove this constraint and allow data features to be extracted and learned without explicit structural information, and create an automated feature extraction path. In [16], they achieved FPR = 0.11–0.02/h and sensitivity 99% using the features of statistical moments, zero crossings, wavelet transform coefficients, PSD, graph theory, cross-correlation and using Long–Short-Term Memory (LSTM) for CHB–MIT data for 15–120 min SOP and zero SPH. In [17], using resting-state functional magnetic resonance imaging (rs-fMRI), EEG and LSTM achieved 96% sensitivity. In another study, they used convolution neural network on Functional near-infrared spectroscopy (fNIRS) and EEG data of 49 patients to reach 95.24–100% sensitivity [18]. In [19], using CNN, SVM for data set of 5 dogs and 2 patients, achieved 0.72% sensitivity. Used CNN and wavelet, was obtained sensitivity of 87.8% and an FPR of 0.147/h [20]. However, patient-specific feature-based tasks are generally high sensitivity and low FPR. Because the best feature combination is extracted and performed independently for each patient. However, the biggest problem with these methods is that they have to access a lot of preictal signals from each patient, which is difficult, especially in patients who have seizures late. The next problem with these methods is the manual extraction of features that is both time-consuming and error prone. In this work, to resolve these problems, we use the Few-shot learning method which requires a small amount of data from each patient and convolutional neural networks are also used to extract the feature, which eliminates the need for manual feature extraction.

The rest of the paper is organized as follows. We first describe the proposed method in the next section. Evaluation method, database and experimental results are given in Sect. 3. Section 4 presents discussion and comparisons and Sect. 5 finally concludes the paper.

2 Proposed method

In this section, we will present the database, preprocessing, and the details of the proposed methods for predicting epileptic seizures.

2.1 Database

EEG signals are recorded in two ways: intracranial EEG (iEEG) and scalp EEG. In the iEEG technique, the electrodes are located exactly on the brain and it is an invasive method, but in the scalp EEG method, the registration is done on the scalp and it is easy to register, so because it is non-invasive and more accessible, the scalp EEG is used for this work.

Boston Children’s Hospital (CHB)–MIT data set [21]. Included scalp EEG data from 23 subjects with 844 h of continuous EEG recording and 163 seizures. All signals were sampled at 256 samples per second with a 16-bit resolution. The EEG signals were captured with the use of 22 electrodes. In this study, we consider patients whose signal was recorded at least 30 min before the seizure. In this work we will use data from 18 patients and 16 common channels.

2.2 Preprocessing

In this work, 16 raw EEG channels are used simultaneously. Two-dimensional (2D) CNN convolution is required. Our method is based on two-class classification to distinguish the preictal from the interictal. However, it is essential to know how long the preictal interval starts from the seizure onset and how long it lasts, because if the Seizure prediction horizon (SPH) is longer, the patient has enough time for coping and taking vital actions. The seizure occurrence period (SOP) should not be long so that the patient is less anxious. In trial 1, we consider the signal 5 min before the ictal to 30 min before the ictal, that is a 25 min interval that is considered as the preictal interval. This means SOP = 25 min and SPH = 5 min. In trial 2, we consider the signal 10 min before the ictal to 30 min before the ictal, that is a 20 min interval is considered as the preictal interval. This means that SOP = 20 min and SPH = 10 min as shown in Fig. 1. SPH is the space of between the alarm and the onset of the SOP. For the alarm to be true, seizures should begin after SPH and within the SOP. Passing the signal through a bandpass filter, we select the middle frequency of 0.5–100 Hz, and we eliminate a 60 Hz frequency power line noise via a notch filter.

Fig. 1
figure 1

Preictal intervals used in Trial 1 and Trial 2

After normalization, by passing a sliding window with a length of 5 s with variable overlap, segments with a length of 1280 samples are selected from the preictal and interictal range equally due to the balance of data in both classes. One of the essential issues in classification is the balance of the data set which means that each class has an equal number of data. Due to the fact that in the database used, the length of the preictal period is short in a number of patients. To select segments from preictal intervals with shorter lengths, the variable overlap is used in learning phase. It is noteworthy that overlapping segments are not used in the test. As a result, each segment is a two-dimensional matrix with a size of 16*1280, which means that each channel with a length of 5 s (1280 samples) is located in a row.

2.3 Generalizable

The proposed generalizable method consists of a CNN architecture in first stage for feature extraction and a SVM for binary classification. Deep architecture allows the reuse of features (mid-level features that are shared between all classes). It has also the potential to create high-level features.

CNN is a feed-forward network inspired by the animal visual cortex. CNNs can detect complex structures in data. They require little preprocessing, meaning that the model itself is responsible for learning the features extracted manually in traditional algorithms [22]. Automatic feature extraction from raw data, without the need for prior knowledge and without the need for an expert or a specialist, as well as the concept of hierarchical learning in it, has made it essential to do this work. It has been shown that in the early layers, low-level features are learned, and as it deepens, higher level concepts are learned [20, 23]. In this model, Dropout and max-pooling layers are used to prevent overfitting [24]. The batch normalization technique is used in all layers for faster training and improved accuracy [25]. The model used has an end-to-end learning architecture, that is learning from the raw EEG without any feature extraction.

Two layers of the convolutional layer are applied to the input, which is an EEG signal with size (n * 16 * 1280), n is the number of input data sets. Each convolution layer contains a 3*3 kernel and single stride. Dropout and batch normalization is applied to all layers. A max-pooling layer of 2*2 size is then applied in with two strides. Afterward, the convolution output is first flattened and then an FC (fully connected) with two hidden layers and one output layer is used. In every two hidden layers, the Dropout and Batch normalization is performed. The two neurons of the last layers use the soft-max activation function and the rest of the layers use the ReLU activation function. In the second case, an SVM classifier is used instead of employing fully connected layers and a soft-max activation function. The generalizable method architecture is shown in Fig. 2.

Fig. 2
figure 2

Proposed generalizable method

2.4 Few-shot learning

The main method in the discussion, which is the primary purpose of this work, is called few-shot learning (FSL), which we will examine.

Few-shot learning is a machine learning method that aims to achieve good performance with the help of limited data [26, 27]. FSL methods are trained with just a few examples of labeled data. FSL can quickly learn new tasks that have little data with the help of prior knowledge and reduce the effort to collect more data [28, 29]. FSL methods can be classified into three groups:

  1. 1.

    Data: Enhancing educational data sets using methods such as manual data augmentation in preprocessing or techniques such as Generative Adversarial Networks (GANs) to generate unrecognizable synthetic data.

  2. 2.

    Model: Reducing the number of network learnable parameters with methods, such as parameter sharing.

  3. 3.

    Algorithm: Using models that have already been trained for related tasks. Transferring prior knowledge from a pre-trained model to do the same work is known as transfer learning [30].

For the definition of transfer learning, denote the domain Q = {H, P(X)} for feature space H and marginal probability distribution P(X), where X = {× 1, …, xm}  H. A task K included a label space Y and target predictive function f: H → Y, defined by K = {Y, f(x)} is learned by the training data consisting of pairs {xi, yi}, where xi  X and yi  Y. Given a source domain QS and learning task KS, a target domain QT and learning task KT, where QS ≠ QT or KS ≠ KT, transfer learning goals to modify the learning of the target predictive function fT(.) in QT using the knowledge in QS and KS [31].

Transferring previous knowledge from the proposed generalizable method which has been trained with the data of 15 subjects in the CHB_MIT database is used to extract the feature. The weights of the convolution layers are not updated and the classifier layers are fine-tuned using only a few data from the patient. By freezing the weights of the CNN layers, we have reduced the number of learnable parameters and, in fact, implemented the concept of parameter sharing. A block diagram of both methods is given in Fig. 3. To increase the data manually, which was described in the pre-processing section, a slider window with variable overlap was used to increase the training data.

Fig. 3
figure 3

Proposed method block diagram

In this method, which is a patient-specific method, we use several methods for FSL. Using transfer learning methods, parameter sharing, Manually Data Augmentation together in this method has improved its performance.

The generalizable method includes the input of 15 patients who enter CNN after preprocessing and then use SVM or FC as a classifier. In the few-shot learning method, a new patient's data is entered to a CNN, which is the same as CNN used in the previous generalizable method, and it finally is applied to the classifier layers to update weights of the classifier layers for the new patient.

3 Results and discussion

We define the following parameters to evaluate and compare these methods for different preictal intervals:

  1. a)

    Seizure prediction horizon (SPH) is defined as the interval between the alarm and the onset of the seizure occurrence period (SOP). For the alarm to be actual, seizures should begin after SPH and within the SOP.

  2. b)

    False prediction rate per hour (FPR/h) is the number of incorrect alarms per hour when they are positively predicted, but no seizure occurs in the SOP [7].

  3. c)

    Sensitivity is determined the percentage of rightly predicted seizures divided on the all seizures.

  4. d)

    Area Under the Curve (AUC) of the Receiver Operating Characteristics (ROC) curve It is one of the most essential evaluation metrics for checking any classification method’s performance. sections.

3.1 Generalizable method results

Generalizable method that we trained with 15 patients from the CHB–MIT database. The evaluation results of this method with the leave-one-out cross-validation (LOOCV) method for trial 1 and trial 2 are shown in tables 1 and 2. The LOOCV technique uses all data except one for training and the residuum data for the method testing. This garlic is repeated N times; N presents the number of data folders. With this work all data will be used to train and test the method. The method error rate is equal to the average error rate per iteration. For comparison of the results, the average of sensitivity, FPR, and AUC for 15 patients are calculated and given in the table.

Table 1 Test results of the generalizable method for Trial 1 (SOP = 25 min, SPH = 5 min)
Table 2 Test results of the generalizable method for Trial 2 (SOP = 20 min, SPH = 10 min)

3.2 Few-shot learning method results

To evaluate the few-shot learning method, used six seizures from subject Chb03 of which three seizures were used for fine-tuning the method and three seizures were excluded for method testing. We repeated the above experiment for subject Chb10 and subject Chb16 in the same way. The test results of few-shot learning method are given in tables 3 and 4.

Table 3 Test results of the few-shot learning method for Trial 1 (SOP = 25 min, SPH = 5 min)
Table 4 Test results of the few-shot learning method for Trial 2 (SOP = 20 min, SPH = 10 min)

To compare better the results of both methods, three patients who were not used in the generalizable method were tested with both methods and the results are shown in fig. 4. The sensitivity of the FSL method is better, especially when the SVM is used. For Shorter SPH, there is more sensitivity and there is a tradeoff between the SPH and the sensitivity. Averaged sensitivity for three patients in the 5-min prediction horizon and the 25-min seizure occurrence period is 98.52% and a false prediction rate of 0.045/h. These results easily show the outperformance of the proposed method in predicting seizures with only a few records.

Fig. 4
figure 4

Sensitivity chart for three CHB–MIT patients with different methods and trials. (G3 = Generalizable method for patient Chb03, FSL3 = FSL method for patient Chb03)

4 Discussion

The works done to predict epilepsy are either patient-specific or generalizable. The patient's specific methods are more accurate and the reason is to choose the best combination of features for that patient. Among the generalizable technique, those that have used deep neural networks, especially CNN, have more acceptable results. Most importantly, they do not require hand-crafted feature extraction and feature engineering. They also have better generalizability. However, all of the above methods require a lot of data. Recording the preictal EEG signal from an epileptic patient is complexed and annoying for the patient and in some cases impossible. In this work, we have presented a method called few-shot learning that is suitable for patients who have difficulty recording the preictal signal or may eventually have several signals available.

In this article, we first trained the network with data from 15 patients, and once we used SVM and once FC as a classifier, we froze the weights of CNN layers. In the next step, we tuned the above network for the data of a new patient, and in fact, we updated the weights of the classifier layers.

The proposed FSL method, having the prior knowledge gained from the generalizable method, is adjusted for the patient with only a few samples of preictal EEG signal from the new patient. This method reduces the effort to collect more data. Figure 4 shows that the accuracy obtained in this method is higher than generalizable methods. In addition to the fact that there is no need for long recordings, another advantage of this method over the patient-specific method is that it does not require hand crafted feature extraction, feature selection and model personalization, and it can be changed quickly for a new patient.

In this work the evaluation results showed a mean sensitivity of 98.52% and FPR = 0.045/h for the 5 min prediction horizon and the 25 min seizure occurrence period which is improved compared to previous works [7] with an equal forecast horizon. For the 10 min SPH and the 20 min SOP, we reached an average sensitivity of 95.70% and FPR = 0.057/h. In the references [33,34,35], the preictal interval is considered exactly at the beginning of the ictal interval, which means SPH = 0, while the higher the forecast horizon, the better. Tables 1, 2, 3, and 4 show that the higher the SPH, the lower the sensitivity. In the proposed method, the SPH is relatively high, about 5–10 min, which is suitable for the patient's preventive measures, and the SOP is low, about 20–25 min, which makes the patient wait less for occurrence and have less anxiety. In Table 5, we see that tasks [16, 20, 32, 36, 37] are less sensitive than our work and also have a higher false prediction rate per hour, which shows the superiority of our FSL method. Examining the results in both methods shows that SVM instead of FC is better for classification. The use of the SVM classifier, in trial 1 and trial 2 has increased the sensitivity by 2.71% and 3.50%. Figure 4 shows that the test results of the FSL method with three seizures from the Chb03 patient are more accurate than the test results of the generalizable method on the same patient. The results have also improved for the Chb10 and Chb16 patients. By comparing the results, we showed that setting up a generalizable method for a specific patient by the FSL method is more efficient and accurate. To compare the obtained results with some state-of-the-art, in Table 5, which show that there is relatively good sensitivity and FPR for this prediction horizon in our work.

Table 5 Comparison of the results of the state-of-the-art

The ideal work in the field of epilepsy prediction is to reach high sensitivity and low FPR on a high seizure prediction horizon (SPH) and a low seizure occurrence period (SOP). Our main goal in this work is epileptic patients in whom seizures occur late and there is not much data available about them. The above proposed method is trained with only a small number of samples and the results are closer to the ideal compared to other works.

5 Conclusions

Seizure prediction allows the patient to take effective and preventive measures and also make a variety of treatments for patient possible. For example, instead of continuous medication that causes neurological complications, treatment can only be given at the necessary times when the onset is likely to occur. For example, patients who are taking persistent antiepileptic drugs can take seizure drugs, such as episodic ones. We used EEG signals that do not require surgery and are recorded on the scalp for this task. In this paper, a new few-shot learning perspective was proposed to predict epileptic seizures based on multi-channel raw EEG signals. In the proposed method, recording a long signal is not required. The method works with low amount of data, short time, without employing an expert, is adjustable for each new patient and is more efficient compared to patient-specific methods and other generalizable methods that were examined. This study provided a promising solution for seizure prediction with multi-channel raw EEG for patients with a low frequency of seizures or even for patients who do not have the conditions for long-term recording of EEG signals. In the next works, we will use different data sets in different age ranges along with data set CHB–MIT, which is mostly related to children, to further evaluate the efficiency of our model.

Availability of data and materials

https://physionet.org/content/chbmit/1.0.0/chb20/.

References

  1. Liang LC, Xiao B, Hsaio WH, Tseng V (2019) Epileptic seizure prediction with multi-view convolutional neural networks. IEEE Access 7:170352–170361

    Article  Google Scholar 

  2. Freestone DR, Karoly PJ, Cook MJ (2017) A forward-looking review of seizure prediction. Curr Opin Neurol 30:167–173

    Article  Google Scholar 

  3. Salvatierra N, Sakanishi R, Flores C (2020) Epileptic Seizure prediction from scalp EEG using ratios of spectral power. IEEE, New York, IEEE engineering international research conference (EIRCON) Lima, Peru. https://doi.org/10.1109/EIRCON51178.2020.9254056

    Book  Google Scholar 

  4. Brock A, De S, Simonyan K, Smith SL (2021) High-Performance Large-Scale Image Recognition Without Normalization. arXiv:2102. 06171.  https://doi.org/10.48550/arXiv.2102.06171

  5. Hasanpour SH, Rouhani M, Fayyaz M, Sabokrou M, Adeli E (2018) Towards Principled Design of Deep Convolutional Networks: Introducing SimpNet. arXiv:1802.06205. https://doi.org/10.48550/arXiv.1802.06205

  6. Niknazar H, Nasrabadi AM (2016) Epileptic Seizure prediction using a new similarity index for chaotic signals. Int J Bifurcat Chaos 26:165–186

    Article  MathSciNet  Google Scholar 

  7. Truong ND, Nguyen AD, Kuhlmann M, Bonyadi MR, Yang J, Ippolito S, Kavehei O (2018) Convolutional neural networks for seizure prediction using intracranial and scalp electroencephalogram. Neural Netw 105:104–111

    Article  Google Scholar 

  8. Chisci L, Mavino A, Perferi G, Sciandrone M, Anile C, Colicchio G, Fuggetta F (2010) Real-time epileptic seizure prediction using ar models and support vector machines. IEEE Trans Biomed Eng 57:1124–1132

    Article  Google Scholar 

  9. Aarabi A, He B (2017) Seizure prediction in patients with focal hippocampal epilepsy. Clin Neurophysiol 128:1299–1307

    Article  Google Scholar 

  10. Li S, Zhou W, Yuan Q, Liu Y (2013) Seizure prediction using spike rate of intracranial EEG. IEEE Trans Neural Syst Rehabil Eng 21:880–886

    Article  Google Scholar 

  11. Zhang Z, Parhi K (2016) Low-Complexity seizure prediction from iEEG/sEEG using spectral power and ratios of spectral power. IEEE Trans Biomed Circuits Syst 10:693–706

    Article  Google Scholar 

  12. Parvez M, Paul M (2017) Seizure prediction using undulated global and local features. IEEE Trans Biomed Eng 64:208–217

    Article  Google Scholar 

  13. Alotaiby TN, Alshebili SA, Alrshoud SR (2017) Epileptic seizure prediction using CSP and LDA for scalp EEG signals. Comput Intell Neurosci. https://doi.org/10.1155/2017/1240323

    Article  Google Scholar 

  14. Park Y, Luo L, Parhi K, Netoff T (2011) Seizure prediction with spectral power of EEG using cost-sensitive support vector machines. Epilepsia 52:1761–1770

    Article  Google Scholar 

  15. Prasad SC, Prasad P (2014) Deep recurrent neural networks for time series prediction. arXiv. https://doi.org/10.48550/arXiv.1407.5949

    Article  Google Scholar 

  16. Tsiouris ΚM, Pezoulas VC, Zervakis M, Konitsiotis S, Koutsouris DD, Fotiadis DI (2018) A Long short-term memory deep learning network for the prediction of epileptic seizures using EEG signals. Comput Biol Med 99:24–37

    Article  Google Scholar 

  17. Hosseini MP, Tran TX, Pompili D, Elisevich K, Zadeh HS (2020) Multimodal data analysis of epileptic EEG and rs-fMRI via deep learning and edge computing. Artif Intell Med 104:813–823

    Article  Google Scholar 

  18. Rosas RR, Guevara E, Peng K, Nguyen DK, Lesage F, Pouliot P, Lima WE (2019) Prediction of epileptic seizures with convolutional neural networks and functional near-infrared spectroscopy signals. Comput Biol Med 111:103355

    Article  Google Scholar 

  19. Liang J, Lu R, Zhang C, Wang F (2016) Predicting seizures from electroencephalography recordings: a knowledge transfer strategy. IEEE international conference on healthcare informatics, Chicago.

  20. Khan H, Marcuse I, Fields M, Swann K, Yener B (2018) Focal onset seizure prediction using convolutional. IEEE Trans Biomed Eng 65:2109–2118

    Article  Google Scholar 

  21. Shoeb A, Edwards H, Connolly J, Bourgeois B, Treves T, Guttag J (2004) Patient-specific seizure onset detection. Epilepsy Behav 5:483–498

    Article  Google Scholar 

  22. Krizhevesky A, Sutskever I, Honton GE (2012) Imagenet classification with deep convolutional neural networks. Commun ACM 60:1097–1105

    Google Scholar 

  23. Shajil N, Mohan S, Srinivasan P, Arivudaiyanambi J, Murrugesan AA (2020) Multiclass classification of spatially filtered motor imagery EEG signals using convolutional neural network for BCI based applications. J Med Biol Eng 40:663–672. https://doi.org/10.1007/s40846-020-00538-3

    Article  Google Scholar 

  24. Srivastava N, Hinton G, Krizhevsky A (2014) Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res 15:1929–1958

    MathSciNet  MATH  Google Scholar 

  25. Bjorck J, Gomes C, Selman B, Weinberger KQ (2018) Understanding batch normalization. arXiv. https://doi.org/10.48550/arXiv.1806.02375

    Article  Google Scholar 

  26. Ke L, Pan M, Wen W, Li D (2020) Compare Learning: Bi-Attention Network for Few-Shot Learning. in 2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) Barcelona. 

  27. Wang Y, Yao Q, Kwok J, Ni LM (2020) Generalizing from a few examples: a survey on few-shot learning. arXiv 53(3):1–34 .https://doi.org/10.48550/arXiv.1904.05046

  28. Kaufmann K, Lane H, Liu X, Vecchio CS (2021) Efficient few-shot machine learning for classification of EBSD patterns. Sci Rep 11:8172

    Article  Google Scholar 

  29. Alajaji D, Alhichri HS, Ammour N, Alajlan N (2020) Few-Shot Learning for Remote Sensing Scene Classification. Mediterranean and Middle-East Geoscience and Remote Sensing Symposium (M2GARSS) Tunis. 

  30. Wu J, Zhao Z, Sun C, Yan R, Chen X (2020) Few-shot transfer learning for intelligent fault diagnosis of machine. Measurement 166:108202

    Article  Google Scholar 

  31. Lin YP, Jung TP (2017) Improving EEG-based emotion classification using conditional transfer learning. Front Hum Neurosci 11:3342017

    Google Scholar 

  32. Cho D, Min B, Kim J, Lee B (2017) EEG-based prediction of epileptic seizures using phase synchronizationelicited from noise-assisted multivariate empirical mode decomposition. IEEE Trans Neural Syst Rehabil Eng 25:1309–1318

    Article  Google Scholar 

  33. Alotaiby TN, Alshebili SA, Alrshoud SR (2017) Epileptic seizure prediction using CSP and LDA for scalp EEG signals. Comput Intell Neurosci 2017:323–334

    Article  Google Scholar 

  34. Ozcan AR, Erturk S (2017) Seizure prediction in scalp EEG using 3D convolutional neural networks with an image-based approach. IEEE Trans Neural Syst Rehabil Eng 27:2284–2293

    Article  Google Scholar 

  35. Hisham D, Magdy BA (2019) Efficient epileptic seizure prediction based on deep learning. IEEE Trans Biomed Circuits Syst 13:804–813

    Article  Google Scholar 

  36. Qin Y, Zheng H, Chen W, Qin Q, Han C (2020) Patient-specific Seizure Prediction with Scalp EEG Using Convolutional Neural Network and Extreme Learning Machine. 39th Chinese Control Conference (CCC) Shenyang 2020. 

  37. Yang X, Zhao J, Sun Q, Lu J, Ma X (2021) An effective dual self-attention residual network for seizure prediction. IEEE Trans Neural Syst Rehabil Eng 29:1604–1613

    Article  Google Scholar 

Download references

Acknowledgements

Not applicable.

Funding

Not applicable.

Author information

Authors and Affiliations

Authors

Contributions

J N. conceived of the presented idea and developed the theory and performed the computations. A.M.N. and M.B.M. and S.R. verified the analytical methods and supervised the findings of this work. All authors discussed the results and contributed to the final manuscript. All authors read and approved the final manuscript.

Authors information

Jamal Nazari received B.Sc degree in electrical engineering from Shoushtar Islamic Azad University, Shoushtar, Iran in 2009 and M.Sc degree in information and communication technology from Iran University Of Science And Technology, Tehran, Iran in 2013. He is currently pursuing PhD at the Faculty of Electrical, Biomedical and Mechatronics Engineering, Qazvin branch, Islamic Azad University, Qazvin, Iran in biomedical engineering. Ali Motie Nasrabadi received the BS degree in Electronic Engineering in 1994 and the MSc and PhD degrees in Biomedical Engineering in 1999 and 2004 respectively, from Amirkabir University of Technology, Tehran, Iran. In 2004, he joined the biomedical engineering department, Faculty of Engineering, Shahed University, Tehran, Iran. and since 2017, he has been a full Professor there. His current research interests include Biomedical Signal Processing, Nonlinear Time Series Analysis and Computational Neuroscience. Mohammad Bagher Menhaj received the Ph.D. degree from Oklahoma State University (OSU), Stillwater, in 1992. Then, he became a Postdoctoral Fellow with OSU. In 1993, he joined Amirkabir University of Technology, Tehran, Iran. From December 2000 to August 2003, he was with the School of Electrical and Computer Engi-neering, Department of Computer Science, OSU, as a Visiting Faculty Member and a Research Scholar. Somayeh Raiesdana graduated in biomedical engineering at the technical university of Amirkabir,Tehran, Iran and received the Ph.D. degree from the department of biomedical engineering of Azad University,Tehran, Iran. She is an assistant professor of biomedical engineering at Qazvin Azad University in Iran. Her research interests include computational neuroscience, artificial intelligence and bio-inspired robotic.

Corresponding author

Correspondence to Jamal Nazari.

Ethics declarations

Competing interests

Not applicable.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Nazari, J., Motie Nasrabadi, A., Menhaj, M.B. et al. Epilepsy seizure prediction with few-shot learning method. Brain Inf. 9, 21 (2022). https://doi.org/10.1186/s40708-022-00170-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s40708-022-00170-8

Keywords