Epilepsy classification method and system based on EEG feature fusion deep learning model
Through a deep learning model based on EEG characteristics, combined with the wavelet scattering power spectral density energy map and the frequency spectrum density energy map, the problem of insufficient accuracy of epilepsy recognition in the existing technology is solved, and efficient and accurate epilepsy classification is achieved.
Patent Information
- Application Number
- CN202310841329.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-07-11
AI Technical Summary
Existing EEG technology has problems with insufficient identification accuracy and high cost in identifying epilepsy, making it difficult to effectively monitor and classify epileptic seizures.
A deep learning model based on EEG features is used to accurately identify and classify epilepsy through the fusion of the wavelet scattering power spectral density energy map and the frequency spectrum density energy map, which are input into the preset deep learning model.
By introducing the wavelet scattering algorithm and deep learning model, the accurate recognition and classification of epilepsy is achieved, the requirements for hardware facilities are reduced, and the operability and recognition accuracy of the model are improved.
Smart Images

Figure CN116898454B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart medical technology, and in particular to an epilepsy classification method and system based on an electroencephalogram feature fusion deep learning model. Background Art
[0002] Epilepsy is a typical chronic brain disease that can be induced by multiple causes and has the characteristics of easy recurrence and sudden onset. It is usually caused by abnormal and unstable synchronous discharge of neurons in the human brain. When treating epilepsy, doctors need to monitor the patient's physiological condition for a long time. Among the many available methods, high-resolution, affordable and non-invasive brain-computer interface technology, namely electroencephalogram (EEG), is one of the most commonly used physiological monitoring tools. EEG signals are periodic potential differences generated by neurons in the cerebral cortex that are not affected by external forces. They can provide clear and understandable images of the patient's brain activity at different times and can show in detail the different states of epileptic seizures. Statistics show that in the EEG of epilepsy patients, only a small number of patients have normal EEGs, and the vast majority of patients have abnormal EEGs, mainly manifested in the presence of spikes, spike-slow waves, sharp waves and other epileptic characteristic waves in the EEG between attacks. Therefore, it is of great significance to identify epilepsy through EEG signals. Summary of the invention
[0003] The present invention achieves accurate identification and classification of epilepsy by providing an epilepsy classification method and system based on EEG feature fusion deep learning model.
[0004] The present invention provides an epilepsy classification method based on an EEG feature fusion deep learning model, comprising:
[0005] Collect EEG signals;
[0006] Generate a wavelet scattering power spectrum density energy map and a frequency spectrum density energy map through the EEG signal;
[0007] Fusing the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map;
[0008] The fused feature map is input into a preset deep learning model, and an epilepsy classification result is output.
[0009] Specifically, generating a wavelet scattering power spectrum density energy map using the EEG signal includes:
[0010] Performing signal decomposition on the electroencephalogram signal to decompose it into frequency components having multiple harmonic components;
[0011] Using a multi-scale multi-directional complex wavelet to obtain the underlying features of the high-frequency components in the frequency components, taking the modulus of the high-frequency component coefficients by the underlying features to obtain the modulus of the high-frequency component coefficients;
[0012] The modulus of the high-frequency component coefficient is subjected to convolution scaling function averaging of the wavelet scattering feature through nonlinear operation to obtain a wavelet scattering feature having both translation invariance and local deformation stability;
[0013] The wavelet scattering characteristics are used to obtain the wavelet scattering power spectrum density, and a wavelet scattering power spectrum density energy map is generated.
[0014] Specifically, generating a frequency spectrum density energy map using the EEG signal includes:
[0015] Decomposing the EEG signal into overlapping blocks in the time domain;
[0016] Performing Fourier transform on each of the blocks to calculate the spectrum amplitude of each block;
[0017] The frequency spectrum amplitudes are measured and placed side by side to generate a frequency spectral density energy map.
[0018] Specifically, before generating the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map by using the EEG signal, the method further includes:
[0019] The EEG signal is decomposed into 2 3 A wavelet packet basis, wherein the wavelet packet basis includes a linear combination of low-frequency component coefficients and high-frequency component coefficients;
[0020] Selecting the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtaining the low-frequency component coefficients of the optimal wavelet packet basis decomposition;
[0021] Using the optimal wavelet packet basis to set an entropy standard, and using the entropy standard to calculate and obtain wavelet decomposition coefficients;
[0022] The wavelet decomposition coefficients whose absolute values are less than a threshold are set to 0, and the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold are retained, to obtain estimated values of the wavelet coefficients;
[0023] Performing wavelet reconstruction according to the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain a reconstructed EEG signal;
[0024] The reconstructed EEG signal is subjected to windowing and segmentation processing by using a preset sliding window and a preset step size.
[0025] Specifically, the threshold T is expressed by the formula Calculated; where cD1 is the first layer decomposition coefficient and N is the data length.
[0026] The present invention also provides an epilepsy classification system based on an EEG feature fusion deep learning model, comprising:
[0027] An EEG signal acquisition module, used for acquiring EEG signals;
[0028] A wavelet scattering power spectrum density energy map generation module, used to generate a wavelet scattering power spectrum density energy map through the EEG signal;
[0029] A frequency spectrum density energy map generation module, used to generate a frequency spectrum density energy map through the EEG signal;
[0030] An energy map fusion module, used for fusing the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map;
[0031] The epilepsy classification module is used to input the fused feature map into a preset deep learning model and output an epilepsy classification result.
[0032] Specifically, the wavelet scattering power spectrum density energy map generation module includes:
[0033] A first signal decomposition unit, used for performing signal decomposition on the EEG signal into frequency components having multiple harmonic components;
[0034] A modulus unit, used for obtaining the underlying features of the high-frequency components in the frequency components by using the multi-scale and multi-directional complex wavelet, and modulo the high-frequency component coefficients by using the underlying features to obtain the modulus of the high-frequency component coefficients;
[0035] A local average operation unit, used for performing convolution scaling function averaging on the wavelet scattering characteristics of the modulus of the high-frequency component coefficient through nonlinear operation to obtain a wavelet scattering characteristic with both translation invariance and local deformation stability;
[0036] The wavelet scattering power spectrum density energy map generating unit is used to obtain the wavelet scattering power spectrum density by using the wavelet scattering characteristics and generate a wavelet scattering power spectrum density energy map.
[0037] Specifically, the frequency spectrum density energy map generation module includes:
[0038] A second signal decomposition unit, used for performing signal decomposition on the EEG signal into overlapping blocks in the time domain;
[0039] A spectrum amplitude obtaining unit, used for performing Fourier transform on each of the blocks to calculate the spectrum amplitude of each block;
[0040] The frequency spectrum density energy diagram generating unit is used to measure the frequency spectrum amplitude and place them side by side to generate a frequency spectrum density energy diagram.
[0041] Specifically, it also includes:
[0042] The signal decomposition module is used to decompose the EEG signal into two 3 A wavelet packet basis, wherein the wavelet packet basis includes a linear combination of low-frequency component coefficients and high-frequency component coefficients;
[0043] An optimal wavelet packet basis obtaining module is used to select the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtain the low-frequency component coefficients of the optimal wavelet packet basis decomposition;
[0044] A wavelet decomposition coefficient calculation module, used to set an entropy standard using the optimal wavelet packet basis, and calculate the wavelet decomposition coefficient using the entropy standard;
[0045] A wavelet coefficient estimation value obtaining module, used for setting the wavelet decomposition coefficients whose absolute values are less than a threshold value to 0, and retaining the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold value, to obtain an estimation value of the wavelet coefficients;
[0046] A wavelet reconstruction module, used for performing wavelet reconstruction according to the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain a reconstructed EEG signal;
[0047] The windowing and segmenting module is used to perform windowing and segmenting processing on the reconstructed EEG signal through a preset sliding window and a preset step size.
[0048] Specifically, it also includes:
[0049] Threshold calculation module, used to calculate the The threshold T is obtained by calculation; wherein cD1 is the first layer decomposition coefficient, and N is the data length.
[0050] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0051] First, the EEG signal is collected, and the wavelet scattering power spectrum density energy map and frequency spectrum density energy map are generated through the EEG signal; then the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map are fused to obtain the fused feature map; then the fused feature map is input into the preset deep learning model, and the epilepsy classification result is output. By introducing the wavelet scattering algorithm to perform a series of feature map fusions, the multi-feature visualization energy spectrum analysis capability of the signal can be reflected, thereby achieving accurate identification and classification of epilepsy. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of an epilepsy classification method based on an EEG feature fusion deep learning model provided in an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of an epilepsy classification method based on an EEG feature fusion deep learning model provided in an embodiment of the present invention;
[0054] Figure 3 This is a schematic diagram of feature map fusion in an embodiment of the present invention;
[0055] Figure 4 It is a structural diagram of the CNN-LSTM parallel neural network in the deep learning model in an embodiment of the present invention;
[0056] Figure 5 It is a structural diagram of the CNN-LSTM serial neural network in the deep learning model in an embodiment of the present invention;
[0057] Figure 6 A module diagram of an epilepsy classification system based on an EEG feature fusion deep learning model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The embodiments of the present invention achieve accurate identification and classification of epilepsy by providing an epilepsy classification method and system based on EEG feature fusion deep learning model.
[0059] The technical solution in the embodiment of the present invention is to achieve the above technical effects, and the overall idea is as follows:
[0060] Firstly, the original EEG signals in the Boston Children's Hospital dataset were subjected to wavelet packet decomposition denoising and windowing segmentation processing. Then, the wavelet scattering algorithm was used to perform wavelet scattering power spectral density analysis on the denoised EEG signals to generate a wavelet scattering power spectral density energy map, which was then fused with the frequency spectral density energy map. The fused feature map was then used as input through a two-layer neural network combination model for serial and parallel training to achieve epilepsy classification.
[0061] Specifically, through the feature classification of the double-layer neural network combination model, the fused feature map is used as input, and serial and parallel training is performed respectively. The CNN model is used to obtain the relevant features of the input epileptic EEG signal through weight sharing and local receptive field mechanism, and the LSTM model is used to extract the time series features in the EEG signal by introducing a gate mechanism. At the same time, both the CNN structure and the LSTM structure use a simple model structure, which not only avoids the overfitting problem caused by the cumbersome model, but also reduces the time cost, reduces the hardware facility requirements, and improves the operability of the model.
[0062] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0063] See also Figure 1 , Figure 2 and Figure 3 , the epilepsy classification method based on EEG feature fusion deep learning model provided by the embodiment of the present invention includes:
[0064] Step S110: collecting EEG signals;
[0065] Step S120: generating a wavelet scattering power spectrum density energy map and a frequency spectrum density energy map through the EEG signal;
[0066] Specifically, a wavelet scattering power spectrum density energy map is generated by using an EEG signal, including:
[0067] The EEG signal is decomposed into frequency components with multiple harmonic components; the frequency components include high-frequency components and low-frequency components.
[0068] Multi-scale and multi-directional complex wavelets are used to obtain the underlying features of the high-frequency components in the frequency components. The high-frequency component coefficients are modulo the underlying features to obtain the modulus of the high-frequency component coefficients, thereby achieving a relatively stable high-frequency function local.
[0069] The modulus of the high-frequency component coefficients is averaged by the convolution scaling function of the wavelet scattering characteristics through nonlinear operation to obtain the wavelet scattering characteristics with both translation invariance and local deformation stability.
[0070] The wavelet scattering power spectrum density is obtained by using the wavelet scattering characteristics, and a wavelet scattering power spectrum density energy map is generated. The wavelet scattering power spectrum density analysis can reflect the energy changes of EEG signals, and a wavelet scattering power spectrum density energy map is generated to reflect the changes in wavelet scattering energy density in different stages of epilepsy. These differences are captured through deep learning, and the wavelet scattering power spectrum density energy map is used as the preprocessing feature of EEG signals in different epileptic states and as the input data for subsequent training.
[0071] Generate frequency spectral density energy map from EEG signal, including:
[0072] The EEG signal is decomposed into overlapping blocks in the time domain;
[0073] Perform Fourier transform on each block to calculate the spectrum amplitude of each block;
[0074] The spectrum amplitudes are measured and placed side by side to generate a frequency spectrum density energy map. The frequency spectrum density energy map can reflect the changes in frequency energy density at different stages of epilepsy. These differences are captured through deep learning, and the frequency spectrum density energy map is used as the preprocessing feature of EEG signals in different epileptic states and as input data for subsequent training.
[0075] In order to avoid the problems of weakness, instability and interference of the original EEG signal, before generating the wavelet scattering power spectrum density energy map and frequency spectrum density energy map through the EEG signal, it also includes:
[0076] The EEG signal is decomposed into 3 levels, 3 A wavelet packet basis, which contains a linear combination of low-frequency component coefficients and high-frequency component coefficients;
[0077] Select the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtain the low-frequency component coefficients of the optimal wavelet packet basis decomposition;
[0078] The entropy standard is set using the optimal wavelet packet basis, and the wavelet decomposition coefficients are calculated using the entropy standard;
[0079] Specifically, this step is described in detail, using logarithmic entropy, that is, Let log0 = 0, let x = {x j} is a space vector, B is a selected orthogonal basis, and Bx is the wavelet decomposition coefficient of x under the basis B. For x∈V, if M(Bx) is the smallest, then B is the optimal wavelet packet basis.
[0080] The wavelet decomposition coefficients whose absolute values are less than the threshold are set to 0, and the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold are retained or shrunk to obtain the estimated values of the wavelet coefficients;
[0081] give
[0082] Wavelet reconstruction is performed based on the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain the reconstructed EEG signal.
[0083] Specifically, the threshold T is given by the formula Calculated; where cD1 is the first layer decomposition coefficient and N is the data length.
[0084] The reconstructed EEG signal is subjected to windowing and segmentation processing by using a preset sliding window and a preset step size.
[0085] Specifically, the reconstructed EEG signal is windowed and segmented using a 4-s sliding window and a 2-s step size.
[0086] Step S130: fusing the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map;
[0087] Specifically, due to the different types of epilepsy, the source of epilepsy and the channels affected, it is necessary to conduct a specific EEG analysis for each patient, and adopt different channel selection strategies for different patients to ensure that the features extracted in different states after the channel selection will be more significant. A one-way ANOVA test was used to determine whether the channel had significant differences in the two states of the ictal period and the interictal period. When the significance result of the channel is less than 0.05, it indicates that the channel changes significantly during the interictal period and the ictal period, and the channel is retained as an important channel. Otherwise, it indicates that the channel does not have a significant difference, and it may be that the epileptic seizure has little effect on the channel, and the channel will not be discussed in detail. After the significance analysis, the remaining channels were retained. This was selected based on the main common channels of different patients. Finally, 12 channels were selected as the optimization of the data, which is actually 10 channels because of the repeated acquisition of the T8-P8 channel and the P7-T7 channel. The channels retained after channel screening are shown in Table 1:
[0088] Table 1 Channels retained after channel screening
[0089]
[0090] The channel optimized data is used to generate an optimized wavelet scattering power spectrum density feature map with a feature map of 12×32; combined with the optimized frequency spectrum density feature map with a feature map of 12×12, the two feature maps are fused into a new feature map of 12×44.
[0091] Step S140: Input the fused feature map into a preset deep learning model, and output an epilepsy classification result. The epilepsy EEG signal is classified into interictal, preictal and ictal phases based on the EEG multi-feature fusion deep learning model, thus achieving epilepsy classification.
[0092] Specifically, parallel combination deep learning feature classification and serial combination deep learning feature classification are used. The specific process is as follows:
[0093] See also Figure 4 ,The main framework of the parallel combination of deep learning ,feature classification network is input layer, feature extraction module and output layer.
[0094] The feature map after multi-feature fusion is input into the parallel combination neural network model through the input layer. There are two path structures in the model, namely the convolutional neural network structure and the long short-term memory network structure. Among them, the structure of the convolutional neural network is convolution layer-maximum pooling layer-convolution layer-maximum pooling layer. The convolutional neural network has the ability of representation learning, which can capture the characteristic information of the local connection of the EEG signal and classify the characteristics of the input data according to the hierarchical structure of the input data. The structure of the long short-term memory network is long short-term memory network layer-long short-term memory network layer. The long short-term memory network can learn long-distance dependencies and extract the temporal characteristics of the feature map.
[0095] All the features extracted from the convolutional neural network structure and the long short-term memory network structure are organically integrated and completely unified into the output layer (fully connected layer-fully connected layer), and then classified and output according to the SoftMax layer.
[0096] See also Figure 5 ,The main framework of the serial combination deep learning feature ,classification network consists of three parts: input layer, feature extraction module and output layer.
[0097] The input data first obtains the local associated time series features through the convolutional neural network structure, and the obtained time series features are used as the input of the long short-term memory network structure. Through the gating, forgetting and cyclic updating mechanisms unique to the long short-term memory network structure, the ability to extract EEG time series features is improved, and on this basis, the feature information processed by the convolutional neural network structure is deeply processed. In the serial combination deep learning structure, the 2nd to 5th layers are single convolutional neural network structures, and the 6th to 7th layers are single long short-term memory network structures. In addition, the fully connected layer and SoftMax layer of the output layer are synchronized with the parallel structure design.
[0098] The parameters of the CNN-LSTM network model are shown in Table 2. In order to prevent the model from overfitting, the parameter value of the Dropout structure is set to 0.5. Mini-Batching learning is selected for training, Batch-Size is set to 32, and cross entropy is selected as the loss function to describe the gap between the probability distribution of the experimental value and the label value. Both the parallel model and the serial model are trained for 200 epochs. The Adam optimization algorithm is suitable for non-steady-state targets and can be used as an optimizer to recalculate the network weights. The learning rate is 0.001, and the training set and the test set are divided in a ratio of 7:3.
[0099] Table 2 CNN-LSTM network model parameters
[0100]
[0101] See also Figure 6, the epilepsy classification system based on EEG feature fusion deep learning model provided by the embodiment of the present invention includes:
[0102] The EEG signal acquisition module 100 is used to acquire EEG signals;
[0103] In order to avoid the problems of weakness, instability and interference of the original EEG signal, it also includes:
[0104] Signal decomposition module is used to decompose EEG signals into 3 levels, 3 A wavelet packet basis, which contains a linear combination of low-frequency component coefficients and high-frequency component coefficients;
[0105] The optimal wavelet packet basis acquisition module is used to select the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtain the low-frequency component coefficients of the optimal wavelet packet basis decomposition;
[0106] The wavelet decomposition coefficient calculation module is used to set the entropy standard using the optimal wavelet packet basis, and calculate the wavelet decomposition coefficient using the entropy standard; specifically, this step is described in detail, using the logarithmic entropy, that is, Let log0 = 0, let x = {x j} is a space vector, B is a selected orthogonal basis, and Bx is the wavelet decomposition coefficient of x under the basis B. For x∈V, if M(Bx) is the smallest, then B is the optimal wavelet packet basis.
[0107] A wavelet coefficient estimation value acquisition module is used to set the wavelet decomposition coefficients whose absolute values are less than a threshold value to 0, and to retain or shrink the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold value, so as to obtain the estimated values of the wavelet coefficients;
[0108] A wavelet reconstruction module is used to perform wavelet reconstruction based on the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain a reconstructed EEG signal;
[0109] The windowing and segmentation module is used to perform windowing and segmentation processing on the reconstructed EEG signal through a preset sliding window and a preset step size.
[0110] Specifically, the windowing and segmenting module is used to perform windowing and segmenting processing on the reconstructed EEG signal through a sliding window of 4 seconds and a step size of 2 seconds.
[0111] Threshold calculation module, used to calculate the The threshold T is calculated, where cD1 is the first layer decomposition coefficient and N is the data length.
[0112] A wavelet scattering power spectrum density energy map generation module 200 is used to generate a wavelet scattering power spectrum density energy map through an EEG signal;
[0113] Specifically, the wavelet scattering power spectrum density energy map generation module 200 includes:
[0114] A first signal decomposition unit is used to decompose the EEG signal into frequency components with multiple harmonic components; the frequency components include high-frequency components and low-frequency components;
[0115] The modulus unit is used to obtain the underlying features of the high-frequency components in the frequency components by using multi-scale and multi-directional complex wavelets, and modulus the high-frequency component coefficients by the underlying features to obtain the modulus of the high-frequency component coefficients, thereby achieving a relatively stable high-frequency function local;
[0116] A local average operation unit is used to perform convolution scaling function averaging on the wavelet scattering characteristics of the modulus of the high-frequency component coefficients through nonlinear operation to obtain a wavelet scattering characteristic that has both translation invariance and local deformation stability;
[0117] The wavelet scattering power spectrum density energy map generation unit is used to obtain the wavelet scattering power spectrum density by using the wavelet scattering characteristics, and generate the wavelet scattering power spectrum density energy map. The wavelet scattering power spectrum density analysis can reflect the energy changes of the EEG signal, and generate the wavelet scattering power spectrum density energy map to reflect the changes of the wavelet scattering energy density in different periods of epilepsy. These differences are captured through deep learning, and the wavelet scattering power spectrum density energy map is used as the preprocessing feature of the EEG signal in different epileptic states and as the input data for subsequent training.
[0118] A frequency spectrum density energy map generation module 300 is used to generate a frequency spectrum density energy map through an EEG signal;
[0119] Specifically, the frequency spectrum density energy map generation module 300 includes:
[0120] A second signal decomposition unit is used to decompose the EEG signal into overlapping blocks in the time domain;
[0121] A spectrum amplitude obtaining unit, used for performing Fourier transform on each block to calculate the spectrum amplitude of each block;
[0122] The frequency spectrum density energy map generation unit is used to measure the spectrum amplitude and place it side by side to generate a frequency spectrum density energy map. The frequency spectrum density energy map can reflect the changes in frequency energy density in different stages of epilepsy. These differences are captured through deep learning, and the frequency spectrum density energy map is used as the preprocessing feature of the EEG signal under different epileptic states as input data for subsequent training.
[0123] An energy map fusion module 400 is used to fuse the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map;
[0124] The epilepsy classification module 500 is used to input the fused feature map into a preset deep learning model and output an epilepsy classification result. The epilepsy EEG signal is classified into interictal period, preictal period and ictal period based on the EEG multi-feature fusion deep learning model, thus achieving epilepsy classification.
[0125] The embodiment of the present invention provides an epilepsy classification method and system based on an EEG feature fusion deep learning model. The epileptic EEG signals are first subjected to wavelet packet decomposition and denoising, windowing and segmentation, and then multi-feature graph fusion is performed. Finally, the epileptic EEG signals are classified through a deep learning model to achieve the purpose of epilepsy classification.
[0126] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0127] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0130] The parts not described in detail in the embodiments of the present invention are all known technologies to those skilled in the art. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solutions of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. Epilepsy classification method based on EEG feature fusion deep learning model, It is characterized in that include: Collect EEG signals; Generate a wavelet scattering power spectrum density energy map and a frequency spectrum density energy map through the EEG signal; Fusing the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map; Inputting the fused feature map into a preset deep learning model, and outputting an epilepsy classification result; By introducing the wavelet scattering algorithm to fuse a series of feature maps, the multi-feature visualization energy spectrum analysis capability of the signal can be reflected; Before generating the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map by using the EEG signal, the method further includes: The EEG signal is decomposed into 2 3 A wavelet packet basis, wherein the wavelet packet basis includes a linear combination of low-frequency component coefficients and high-frequency component coefficients; Selecting the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtaining the low-frequency component coefficients of the optimal wavelet packet basis decomposition; Using the optimal wavelet packet basis to set an entropy standard, and using the entropy standard to calculate and obtain wavelet decomposition coefficients; Specifically, using logarithmic entropy, let Let log0 = 0, let x = {x j } is a space vector, B is a selected orthogonal basis, Bx is the wavelet decomposition coefficient of x under the basis B; for x∈V, if M(Bx) is the smallest, then B is the optimal wavelet packet basis; The wavelet decomposition coefficients whose absolute values are less than a threshold are set to 0, and the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold are retained, to obtain estimated values of the wavelet coefficients; Performing wavelet reconstruction according to the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain a reconstructed EEG signal; The reconstructed EEG signal is subjected to windowing and segmentation processing by using a preset sliding window and a preset step size.
2. The epilepsy classification method based on the EEG feature fusion deep learning model as claimed in claim 1, It is characterized in that The step of generating a wavelet scattering power spectrum density energy map using the EEG signal comprises: Performing signal decomposition on the EEG signal to decompose it into frequency components having multiple harmonic components; Using a multi-scale multi-directional complex wavelet to obtain the underlying features of the high-frequency components in the frequency components, taking the modulus of the high-frequency component coefficients by the underlying features to obtain the modulus of the high-frequency component coefficients; The modulus of the high-frequency component coefficient is subjected to convolution scaling function averaging of the wavelet scattering feature through nonlinear operation to obtain a wavelet scattering feature having both translation invariance and local deformation stability; The wavelet scattering characteristics are used to obtain the wavelet scattering power spectrum density, and a wavelet scattering power spectrum density energy map is generated.
3. The epilepsy classification method based on EEG feature fusion deep learning model as claimed in claim 1, It is characterized in that The step of generating a frequency spectrum density energy diagram using the EEG signal comprises: Decomposing the EEG signal into overlapping blocks in the time domain; Performing Fourier transform on each of the blocks to calculate the spectrum amplitude of each block; The frequency spectrum amplitudes are measured and placed side by side to generate a frequency spectral density energy map.
4. The epilepsy classification method based on the EEG feature fusion deep learning model as claimed in claim 1, It is characterized in that The threshold T is given by the formula Calculated; where cD1 is the first layer decomposition coefficient and N is the data length.
5. Epilepsy classification system based on EEG feature fusion deep learning model, It is characterized in that include: An EEG signal acquisition module, used for acquiring EEG signals; A wavelet scattering power spectrum density energy map generation module, used to generate a wavelet scattering power spectrum density energy map through the EEG signal; A frequency spectrum density energy map generation module, used to generate a frequency spectrum density energy map through the EEG signal; An energy map fusion module, used for fusing the wavelet scattering power spectrum density energy map and the frequency spectrum density energy map to obtain a fused feature map; An epilepsy classification module, used for inputting the fused feature map into a preset deep learning model and outputting an epilepsy classification result; By introducing the wavelet scattering algorithm to fuse a series of feature maps, the multi-feature visualization energy spectrum analysis capability of the signal can be reflected; Also includes: The signal decomposition module is used to decompose the EEG signal into two 3 A wavelet packet basis, wherein the wavelet packet basis includes a linear combination of low-frequency component coefficients and high-frequency component coefficients; An optimal wavelet packet basis obtaining module is used to select the wavelet packet basis that minimizes the loss function as the optimal wavelet packet basis, and obtain the low-frequency component coefficients of the optimal wavelet packet basis decomposition; The wavelet decomposition coefficient calculation module is used to set the entropy standard using the optimal wavelet packet basis and calculate the wavelet decomposition coefficient using the entropy standard; specifically, using the logarithmic entropy, that is, Let log0 = 0, let x = {x j } is a space vector, B is a selected orthogonal basis, Bx is the wavelet decomposition coefficient of x under the basis B; for x∈V, if M(Bx) is the smallest, then B is the optimal wavelet packet basis; A wavelet coefficient estimation value obtaining module, used for setting the wavelet decomposition coefficients whose absolute values are less than a threshold value to 0, and retaining the wavelet decomposition coefficients whose absolute values are greater than or equal to the threshold value, to obtain an estimation value of the wavelet coefficients; A wavelet reconstruction module, used for performing wavelet reconstruction according to the low-frequency component coefficients decomposed by the optimal wavelet packet basis and the estimated values of the wavelet coefficients to obtain a reconstructed EEG signal; The windowing and segmenting module is used to perform windowing and segmenting processing on the reconstructed EEG signal through a preset sliding window and a preset step size.
6. The epilepsy classification system based on EEG feature fusion deep learning model as claimed in claim 5, It is characterized in that The wavelet scattering power spectrum density energy map generation module includes: A first signal decomposition unit, used for performing signal decomposition on the EEG signal into frequency components having multiple harmonic components; A modulus unit, used for obtaining the underlying features of the high-frequency components in the frequency components by using the multi-scale and multi-directional complex wavelet, and modulo the high-frequency component coefficients by using the underlying features to obtain the modulus of the high-frequency component coefficients; A local average operation unit, used for performing convolution scaling function averaging on the wavelet scattering characteristics of the modulus of the high-frequency component coefficient through nonlinear operation to obtain a wavelet scattering characteristic with both translation invariance and local deformation stability; The wavelet scattering power spectrum density energy map generating unit is used to obtain the wavelet scattering power spectrum density by using the wavelet scattering characteristics and generate a wavelet scattering power spectrum density energy map.
7. The epilepsy classification system based on EEG feature fusion deep learning model as claimed in claim 5, It is characterized in that The frequency spectrum density energy map generation module comprises: A second signal decomposition unit, used for performing signal decomposition on the EEG signal into overlapping blocks in the time domain; A spectrum amplitude obtaining unit, used for performing Fourier transform on each of the blocks to calculate the spectrum amplitude of each block; The frequency spectrum density energy diagram generating unit is used to measure the frequency spectrum amplitude and place them side by side to generate a frequency spectrum density energy diagram.
8. The epilepsy classification system based on EEG feature fusion deep learning model as claimed in claim 5, It is characterized in that Also includes: Threshold calculation module, used to calculate the The threshold T is obtained by calculation; wherein cD1 is the first layer decomposition coefficient, and N is the data length.
