An epilepsy detection method based on EEG single sample deep learning
Through a single-sample deep learning method based on EEG signals, combined with time domain, frequency domain and time-frequency domain information, a convolutional neural network is constructed for epilepsy detection, which solves the problem of poor performance in the single-sample case in the existing technology and achieves high performance. Accuracy and stability of epilepsy detection.
Patent Information
- Application Number
- CN202210488314.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-06
AI Technical Summary
Existing epilepsy detection methods based on deep learning have poor performance in single-sample situations and require a large number of labeled training samples, and traditional methods rely on complex manual feature extraction.
Using a single-sample deep learning method based on EEG signals, through the combination of time domain, frequency domain and time-frequency domain information, signal enhancement and transform domain sequence calculation are performed, and a convolutional neural network is constructed for epilepsy detection, using multi-input single-output convolution The neural network structure and feature fusion mechanism reduce the number of training samples required and improve detection accuracy.
This method improves the accuracy and stability of epilepsy detection in the case of a single epilepsy EEG sample and a single epilepsy-free EEG sample, reduces the requirement for the number of labeled samples, and avoids the complex feature extraction process in traditional methods.
Smart Images

Figure CN114886438B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the biomedical field, and in particular to an epilepsy detection method based on EEG single sample deep learning. Background Art
[0002] About 1% of the world's population (about 65 million people) suffer from epilepsy, which is more than the total number of people with Parkinson's disease, Alzheimer's disease and multiple sclerosis. About 2 / 3 of epilepsy patients can be treated with drugs, and the rest may need surgical intervention. Epileptic seizures are characterized by sudden and repeated attacks, which may cause falls, suffocation, and even death in severe cases. Therefore, epileptic seizure detection is crucial for epilepsy warning and treatment. Epileptic seizure detection is mainly based on electroencephalogram (EEG) signals. Traditional methods mainly extract corresponding features from EEG signals based on feature engineering technology, and then complete detection based on the extracted features. These features include time domain features, frequency domain features, and time-frequency domain features. After the features are extracted, various classifiers can be used to classify brain wave signals. Regardless of the classifier used, the quality of the designed features will affect the performance of epilepsy detection. In recent years, with the development of deep learning technology, many works have also used deep learning for epilepsy detection. Unlike traditional feature engineering, deep learning methods automatically learn features from EEG signals and further complete detection tasks without the need for complex manual feature design processes, and have achieved better performance than traditional methods in many scenarios. However, current epilepsy detection methods based on deep learning require a large number of labeled training samples to complete the training of deep learning models. In the case of a very small number of samples (especially single samples, that is, only one epileptic EEG signal sample and one normal EEG signal sample), the performance of these deep learning-based epilepsy detection methods will be greatly reduced. Therefore, there is an urgent need to improve the performance of epilepsy detection methods based on deep learning in the case of single samples. Summary of the invention
[0003] Based on the above analysis, the present invention aims to provide an epilepsy detection method based on single-sample deep learning, which improves the accuracy of epilepsy detection by combining the time domain, frequency domain and time-frequency domain information of EEG signals, while avoiding the complex manual feature extraction process of traditional epilepsy detection algorithms. The present invention discloses an epilepsy detection method based on EEG single-sample deep learning, comprising the following steps:
[0004] Step 1: Collect EEG signals
[0005] Collect EEG signal samples when epileptic seizures occur and EEG signal samples when there is no epileptic seizure, respectively. There is one EEG signal sample in each case, and they are all discretized digital signal sequences with equal length.
[0006] Step 2: Enhance EEG signal samples
[0007] Two EEG signal samples are enhanced respectively, and the sample enhancement includes three steps: random interception of signal segments, signal noise addition, and power normalization. The length of the intercepted signal segment is fixed to N and is less than the original signal length. The signal noise addition superimposes a randomly generated noise sequence on the intercepted signal segment, and the length is consistent with the signal segment length. The power normalization normalizes the power of the signal segment after noise addition to 1. The enhancement process is repeated multiple times. After enhancement, a sequence of epileptic seizure EEG signal segments and a sequence of non-epilepsy seizure EEG signal segments are obtained, and a total of 2M EEG signal segment sequences are obtained;
[0008] Step 3: Calculate the EEG transform domain sequence
[0009] For the 2M EEG signal segment sequences, respectively calculate the transform domain sequence of each signal segment sequence, including an EEG Fourier transform sequence, an EEG wavelet transform sequence, and an EEG variational modal decomposition sequence, wherein the EEG Fourier transform sequence is obtained by performing Fourier transform on the EEG signal segment sequence, extracting the real part, the imaginary part and the amplitude, and splicing them; the EEG wavelet transform sequence is obtained by performing discrete wavelet transform on the EEG signal segment sequence, and then splicing the approximate components at each scale; the EEG variational modal decomposition sequence is obtained by performing variational modal decomposition on the EEG signal segment sequence, and then splicing each modal component;
[0010] Step 4: Construct EEG training and validation sets
[0011] The 2M EEG signal segment sequences are randomly divided into 2 sets, each containing M signal segment sequences, as EEG training sets and validation sets for deep learning training, each sample data in the training set and validation set includes a discrete EEG sequence, an EEG Fourier transform sequence, an EEG wavelet transform sequence, an EEG variational modal decomposition sequence and a sample label, and the sample label is determined according to whether the corresponding EEG signal segment sequence is from the epilepsy onset period. If it is from the EEG signal collected during an epileptic seizure, the epilepsy label is "epilepsy", otherwise it is "normal";
[0012] Step 5: Construct a convolutional neural network for epilepsy classification
[0013] Construct a convolutional neural network for epilepsy classification. The convolutional neural network is in the form of multiple inputs and single outputs. The inputs include EEG sequence, EEG Fourier transform sequence, EEG wavelet transform sequence, and EEG variational modal decomposition sequence. Four branches are used to correspond to four input sequences respectively. The deep features extracted by the four branches are spliced in the feature fusion layer. The spliced features are sent to the fully connected layer for classification, and finally the confidence is output through softmax.
[0014] Step 6: Train the Convolutional Neural Network
[0015] Using the training set and the validation set to train the convolutional neural network, and obtain optimal network parameters corresponding to the convolutional neural network;
[0016] Step 7: Obtain the EEG signal to be detected
[0017] Collect the EEG signal to be detected, the length of which is not less than N;
[0018] Step 8: Intercept the EEG signal segment to be detected
[0019] The EEG signal to be detected is subjected to a signal segment random interception and power normalization operation, wherein the intercepted signal segment has a fixed length and is smaller than the original signal length, and the power of the intercepted signal segment is normalized to 1 by power normalization, and the process is repeated multiple times to obtain L EEG signal segments to be detected;
[0020] Step 9: Calculate the EEG transform domain sequence to be detected
[0021] For the L EEG signal segment sequences to be detected, respectively calculate the transform domain sequence of each signal segment sequence, including an EEG Fourier transform sequence, an EEG wavelet transform sequence, and an EEG variational modal decomposition sequence, wherein the EEG Fourier transform sequence is obtained by performing Fourier transform on the EEG signal segment sequence, extracting the real part, the imaginary part and the amplitude, and splicing them; the EEG wavelet transform sequence is obtained by performing discrete wavelet transform on the EEG signal segment sequence, and then splicing the approximate components at each scale; the EEG variational modal decomposition sequence is obtained by performing variational modal decomposition on the EEG signal segment sequence, and then splicing each modal component;
[0022] Step 10: Epilepsy judgment
[0023] The L EEG signal segments to be detected and the transform domain sequence are sequentially input into the trained convolutional neural network to obtain the confidence of the L signal segments to be detected on the epilepsy category, and the L confidences are fused, and a decision is made based on the fused confidences to obtain the final epilepsy detection result. The specific fusion decision method is: calculate the average value of the L confidences where p iRepresents the confidence value of the i-th sample in the epilepsy class. If If the condition is positive, it is judged as epilepsy, otherwise it is judged as normal.
[0024] Compared with the prior art, the present invention can at least achieve the following beneficial effects:
[0025] 1. The present invention only uses a single epilepsy EEG sample and a single non-epilepsy EEG sample, and completes the training of the epilepsy detection model through sample enhancement and redundant input of time domain EEG and transform domain EEG, which greatly reduces the requirement of the epilepsy detection model for the number of labeled EEG training samples.
[0026] 2. The present invention integrates the feature information of different transformations and components of the EEG signal sequence, obtains the feature information of different transformations and components through multiple independent neural networks, and then uses a feature fusion mechanism to integrate the extracted feature vectors to mine the feature information in the EEG signal from different angles. This fusion method is more stable than the method using a single sequence, and is beneficial to improving the stability of epilepsy detection.
[0027] 3. The present invention randomly divides the EEG signal samples to be detected, inputs them into a trained epilepsy detection convolutional neural network model, and further makes a decision through confidence fusion, which is beneficial to improving the accuracy of epilepsy detection.
[0028] Other features and advantages of the present invention will be described in the following description, and some advantages may become apparent from the description, or may be understood by practicing the present invention. The purpose and other advantages of the present invention may be realized and obtained through the contents particularly pointed out in the description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;
[0030] Figure 1 This is a flow chart of the epilepsy detection method based on EEG single sample deep learning of the present invention;
[0031] Figure 2 The convolutional neural network architecture constructed for epilepsy classification;
[0032] Figure 3 The specific structure of the convolutional neural network used in each branch. DETAILED DESCRIPTION
[0033] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0034] like Figure 1 As shown, the epilepsy detection method based on EEG single sample deep learning of the present invention includes the following steps:
[0035] Step S1: Collect EEG signals
[0036] Collect EEG signal samples when epileptic seizures occur and when there is no epileptic seizure. There is one EEG signal sample in each case. They are all discretized digital signal sequences with equal length. The sampled EEG signal sequence s(n) = s(t)δ T (t), where s(t) is the analog domain EEG signal, δ T (t) is the impulse function, T = 1 / F s is the sampling period, F s is the sampling frequency.
[0037] Step S2: Enhance EEG signal samples
[0038] Two EEG signal samples are enhanced respectively, and the sample enhancement includes three steps: random signal segment interception, signal noise addition and power normalization. The enhancement process is repeated many times. After enhancement, epileptic seizure EEG signal segment sequences and M epileptic seizure-free EEG signal segment sequences are obtained, totaling 2M EEG signal segment sequences. The specific process of each step is as follows.
[0039] Step S2-1: Randomly intercept signal segments
[0040] A signal segment is randomly intercepted from the original EEG signal sample. The length of the intercepted signal segment is fixed to N and is smaller than the original signal length. The intercepted EEG signal segment can be expressed as s t (n) = s(n+b), where n = 0, 1, ..., N-1, and N is less than the length N of the original signal sequence s(n) s A positive integer, b is a randomly generated integer less than N s -N is a non-negative integer.
[0041] Step S2-2: Signal Noise Addition
[0042] Signal noising is to superimpose a randomly generated noise sequence on the intercepted signal segment. The noise sequence obeys Gaussian distribution. The generation process is as follows: first generate a Gaussian distribution sequence w(n) with a mean of 0 and a variance of 1, n = 0, 1, ..., N-1, and then multiply it by the amplitude a to obtain aw(n), where a is a random number greater than 0 and less than 1. The signal segment after noisy can be expressed as s w (n) = s t (n)+aw(n), n=0,1,…,N-1.
[0043] Step S2-3 Power normalization
[0044] Power normalization normalizes the power of the noised signal segment to 1. The normalized EEG signal segment is
[0045] Step S3: Calculate EEG transform domain sequence
[0046] For the 2M EEG signal segment sequences, the transform domain sequence of each signal segment sequence is calculated respectively, including an EEG Fourier transform sequence, an EEG wavelet transform sequence, and an EEG variational modal decomposition sequence.
[0047] The calculation process of the EEG Fourier transform sequence is as follows: the EEG signal segment sequence x(n) is subjected to discrete Fourier transform to obtain the Fourier transformed sequence k=0,1,…,N-1,calculate x f The real part of (k) gives R x (k), calculate x f The imaginary part of (k) is I x (k), calculate x f The magnitude of (k) is A x (k), R x (k) I x (k) and A x (k) Finish by concatenating them into a vector and get the EEG Fourier transform sequence x F (n), with a length of 3N.
[0048] The calculation process of EEG wavelet transform sequence is as follows: P-order discrete wavelet transform is performed on the EEG signal segment sequence x(n), the mother wavelet uses the "db1" wavelet, P is greater than 1 and less than floor(log2(N)), where floor(log2(N)) represents the largest integer not exceeding log2(N), and the approximate components and detail coefficients after each order of wavelet transform are concatenated into a vector, and the EEG wavelet transform sequence x is obtained. W (n).
[0049] The EEG signal segment sequence x(n) is subjected to variational modal decomposition to obtain K variational modal components and 1 residual component, where the variational modal component x v,k (n) Satisfaction
[0050]
[0051]
[0052] where w kis the center frequency of the kth component, and δ(n) is the Dirac function. The K variational modal components and the residual components are concatenated into a vector to obtain the EEG variational modal decomposition sequence x V (n), with a length of (K+1)N.
[0053] Step S4: Construct EEG training set and validation set
[0054] The 2M EEG signal segment sequences are randomly divided into two sets, each containing M signal segment sequences, as EEG training sets and validation sets for deep learning training. The sample data in the training set and validation set include discrete EEG sequence, EEG Fourier transform sequence, EEG wavelet transform sequence, EEG variational mode decomposition sequence and sample label. A single sample can be represented as {[x(n), x F (n), x W (n), x V (n)], Y}, where Y is the sample label, and the sample label is determined according to whether the corresponding EEG signal segment sequence comes from the epilepsy onset period. If it comes from the EEG signal collected during an epileptic seizure, the epilepsy label is "epilepsy", otherwise it is "normal".
[0055] Step S5: Constructing epilepsy classification convolutional neural network
[0056] Construct a convolutional neural network for epilepsy classification, wherein the convolutional neural network is in the form of multiple inputs and single outputs, such as Figure 2 As shown in Figure 1, four branches are used to extract features from four input sequences, namely, the EEG signal segment sequence x(n), the EEG Fourier transform sequence x F (n), EEG wavelet transform sequence x W (n), EEG variational mode decomposition sequence x V (n). After several layers of lightweight convolution, a feature map corresponding to each input sequence is generated. Then, global average pooling is used to convert the feature map mapping into a feature vector. The feature vectors obtained by the four branches are represented as F1, F2, F3, and F4 respectively. The four feature vectors are fused in the feature fusion layer, and the fused feature vector in Indicates that the features are concatenated together. Fusion features are considered to be more stable than single feature vectors because this structure can fully utilize the advantages of each feature. The decision of epilepsy detection is modeled as a binary classification problem, with the label "0" representing "normal" and the label "1" representing "epilepsy". In the constructed neural network, the output layer of the last layer is a fully connected layer with two neurons, and the softmax operation is then performed to obtain the probability of belonging to 0 and 1, which can be expressed as i=0,1. iis the input of softmax, is the output of softmax.
[0057] The convolutional neural networks used in the four branches adopt the same structure, and all convolutional layers are one-dimensional convolutions, such as Figure 3 As shown in the figure. "Conv,16,31×1" indicates that the convolution layer is a traditional convolution, the number of convolution kernels is 16, the convolution kernel size is 31×1, and "DConv" indicates a depth-separable convolution. The "Conv" layer in the figure corresponds to a sequence convolution layer + batch normalization layer + activation layer, where the activation function is Relu. "Max_Pool" is a maximum pooling layer with a stride of 2, and "Global_Avgpool" is a global average pooling layer. There is no parameter optimization for this layer.
[0058] Step S6: training convolutional neural network
[0059] The convolutional neural network is trained using the training set, and the performance of the network is verified using the validation data set after the network has been trained for a period of time. The training method uses the stochastic gradient descent method, and the loss function uses the cross entropy. To prevent overfitting, l2 regularization is added to the loss function to penalize the network parameters to prevent the network parameter values from being too large, and the penalty factor is set to 10 -4 When the accuracy on the validation set does not improve for more than two consecutive rounds, stop training and save the parameters with the highest accuracy on the validation set during training as the optimal convolutional neural network parameters.
[0060] Step S7: Obtain the EEG signal to be detected
[0061] Collect the EEG signal to be detected and obtain y(n), n = 0, 1, ..., N y -1, its length is N y >N.
[0062] Step S8: intercept the EEG signal segment to be detected
[0063] The EEG signal to be detected is subjected to signal segment random interception and power normalization operations. This process is repeated multiple times to obtain L EEG signal segments to be detected. The specific signal segment interception and normalization operations are as follows.
[0064] Step S8-1: Randomly intercept signal segments
[0065] A signal segment is randomly intercepted from the EEG signal sample y(n) to be detected. The length of the intercepted signal segment is fixed to N. The intercepted EEG signal segment can be expressed as yt(n)=y(n+c), where n=0, 1, ..., N-1, and c is a randomly generated number less than N. y -N is a non-negative integer.
[0066] Step S8-2 Power Normalization
[0067] The power of the intercepted signal is normalized to 1, and the normalized EEG signal segment to be detected is
[0068] Step S9: Calculate the EEG transform domain sequence to be detected
[0069] For the L EEG signal segment sequences to be detected, the transform domain sequence of each signal segment sequence is calculated respectively, including the EEG Fourier transform sequence, the EEG wavelet transform sequence, and the EEG variational modal decomposition sequence. The specific calculation process is consistent with that in step S3.
[0070] Step S10: Epilepsy determination
[0071] The L EEG signal segments to be detected and the transform domain sequence are sequentially input into the trained convolutional neural network to obtain the confidence of the L signal segments to be detected on the epilepsy category, and the L confidences are fused, and a decision is made based on the fused confidences to obtain the final epilepsy detection result. The specific fusion decision method is: calculate the average value of the L confidences where p i Represents the confidence value of the i-th sample in the epilepsy class. If If the condition is positive, it is judged as epilepsy, otherwise it is judged as normal.
[0072] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0073] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. An epilepsy detection method based on EEG single sample deep learning, characterized in that: The steps include: Step 1: Collect EEG signals Collect EEG signal samples when epileptic seizures occur and EEG signal samples when there is no epileptic seizure, respectively. There is one EEG signal sample in each case, and they are all discretized digital signal sequences with equal length. Step 2: Enhance EEG signal samples The two EEG signal samples are enhanced respectively. The sample enhancement includes three steps: random signal segment interception, signal noise addition and power normalization. The length of the intercepted signal segment is fixed to And it is less than the original signal length. Signal noise is added by superimposing a randomly generated noise sequence on the intercepted signal segment, and the length is consistent with the signal segment length. Power normalization normalizes the power of the noised signal segment to 1. This enhancement process is repeated many times, and the enhanced result is Sequence of epileptic seizure EEG signal segments and Sequences of EEG signal segments without epileptic seizures, a total of 2 A sequence of EEG signal segments; Step 3: Calculate the EEG transform domain sequence Regarding the 2 EEG signal segment sequences are obtained, and the transform domain sequence of each signal segment sequence is calculated respectively, including an EEG Fourier transform sequence, an EEG wavelet transform sequence, and an EEG variational modal decomposition sequence, wherein the EEG Fourier transform sequence is obtained by performing Fourier transform on the EEG signal segment sequence, extracting the real part, the imaginary part and the amplitude, and splicing them; the EEG wavelet transform sequence is obtained by performing discrete wavelet transform on the EEG signal segment sequence, and splicing the approximate components at each scale; the EEG variational modal decomposition sequence is obtained by performing variational modal decomposition on the EEG signal segment sequence, and splicing each modal component; Step 4: Construct EEG training and validation sets The 2 The EEG signal segment sequences are randomly divided into two sets, each containing signal segment sequences as EEG training sets and validation sets for deep learning training. Each sample data in the training set and validation set includes a discrete EEG sequence, an EEG Fourier transform sequence, an EEG wavelet transform sequence, an EEG variational modal decomposition sequence, and a sample label. The sample label is determined according to whether the corresponding EEG signal segment sequence is from the epilepsy onset period. If it is from the EEG signal collected during an epileptic seizure, the epilepsy label is "epilepsy", otherwise it is "normal"; Step 5: Construct a convolutional neural network for epilepsy classification Construct a convolutional neural network for epilepsy classification. The convolutional neural network is in the form of multiple inputs and single outputs. The inputs include EEG sequence, EEG Fourier transform sequence, EEG wavelet transform sequence, and EEG variational modal decomposition sequence. Four branches are used to correspond to four input sequences respectively. The deep features extracted by the four branches are spliced in the feature fusion layer. The spliced features are sent to the fully connected layer for classification, and finally the confidence is output through softmax. Step 6: Train the Convolutional Neural Network Using the training set and the validation set to train the convolutional neural network, and obtain optimal network parameters corresponding to the convolutional neural network; Step 7: Obtain the EEG signal to be detected Collect the EEG signal to be detected, the length of which is not less than ; Step 8: Intercept the EEG signal segment to be detected The EEG signal to be detected is subjected to random signal segment interception and power normalization operations. The intercepted signal segment length is fixed and smaller than the original signal length. The power normalization normalizes the power of the intercepted signal segment to 1. This process is repeated multiple times to obtain EEG signal segments to be detected; Step 9: Calculate the EEG transform domain sequence to be detected Regarding the a sequence of EEG signal segments to be detected, and respectively calculating a transform domain sequence of each signal segment sequence, including an EEG Fourier transform sequence, an EEG wavelet transform sequence, and an EEG variational modal decomposition sequence, wherein the EEG Fourier transform sequence is obtained by performing Fourier transform on the EEG signal segment sequence, extracting the real part, the imaginary part, and the amplitude, and then splicing them; the EEG wavelet transform sequence is obtained by performing discrete wavelet transform on the EEG signal segment sequence, and then splicing the approximate components at each scale; The EEG variational modal decomposition sequence is obtained by performing variational modal decomposition on the EEG signal segment sequence and then concatenating each modal component; Step S10: Epilepsy determination Sequentially The convolutional neural network trained by inputting the EEG signal segment sequence to be detected together with the transform domain sequence is obtained. The confidence of the signal segment to be detected on the epilepsy class is The confidence levels are fused, and a decision is made based on the fused confidence levels to obtain the final epilepsy detection result.
2. The epilepsy detection method according to claim 1, characterized in that: In the step of enhancing the EEG signal sample, the signal is denoised by superimposing a randomly generated noise sequence on the intercepted signal segment. The noise sequence obeys a Gaussian distribution. The generation process is as follows: first, a Gaussian distribution sequence with a mean of 0 and a variance of 1 is generated. , , then multiply by the amplitude get ,in A random number greater than 0 and less than 1.
3. The epilepsy detection method according to claim 1, characterized in that: The calculation steps of the EEG transform domain sequence are: EEG signal segment sequence Perform discrete Fourier transform to obtain the sequence after Fourier transform ,calculate The real part of ,calculate The imaginary part of ,calculate The amplitude is obtained ,Will , and The final concatenation is performed into a vector to obtain an EEG Fourier transform sequence with a length of ; EEG signal segment sequence conduct Order discrete wavelet transform, Greater than 1 and less than ,in Representatives no more than The maximum integer of , and the approximate components and detail coefficients after each order of wavelet transform are concatenated into a vector, and the EEG wavelet transform sequence is obtained; EEG signal segment sequence Perform variational mode decomposition to obtain The EEG variational modal decomposition sequence is obtained by concatenating each variational modal component and residual component into a vector. .
4. The epilepsy detection method according to claim 1, characterized in that: The input size of each branch of the convolutional neural network is the same as the size of the corresponding sequence. The intermediate layer of each branch includes at least one convolution layer, one pooling layer, and one nonlinear layer, and all convolution kernels are one-dimensional convolutions. The feature fusion layer integrates the feature vectors obtained by the four branches to form a fusion feature. , and its calculation process is ,in Represents a concatenation operation.
5. The epilepsy detection method according to claim 1, characterized in that: The confidence fusion and epilepsy judgment during epilepsy judgment include the following steps: calculating The average of the confidence ,in Indicates The confidence value of the sample on the epilepsy class, if , it is judged as epilepsy, otherwise it is judged as normal.
