A method for EEG signal recognition based on adaptive multi-view deep learning framework
By adopting an adaptive multi-view deep learning framework of brain function separation and integration mechanism in EEG signals, combined with the attention mechanism, the problem of insufficient EEG signal recognition accuracy in the existing technology is solved, and higher EEG signal classification accuracy is achieved. and brain region feature differentiation effects.
Patent Information
- Application Number
- CN202211274741.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-10-18
AI Technical Summary
In the existing technology, the recognition accuracy of motor imaging EEG signals of EEG signals is insufficient, and signals in multiple brain functional areas cannot be effectively distinguished, which limits the breadth and accuracy of recognition of all brain regions.
Using an adaptive multi-view deep learning framework based on brain function separation and integration mechanism, the EEG signal is divided into different local views of brain functional areas, and the weights of different areas are learned through the attention mechanism, and local and global deep features are combined to improve discrimination. sex.
It significantly improves the classification accuracy of motor imagination EEG signals of EEG signals, enhances the discriminability of features in different brain areas, and verifies its effectiveness on multiple motor imagination EEG data sets.
Smart Images

Figure CN115607169B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of deep learning and motor imagery EEG signal recognition, and in particular to an EEG signal recognition method based on an adaptive multi-view deep learning framework. Background Art
[0002] Electroencephalogram (EEG) signals are widely used in brain-computer interface systems due to their high temporal resolution, good portability, and non-invasiveness. According to different neural patterns, EEG signals can be divided into multiple modes such as motor imagery, P300, and steady-state visual evoked potential (SSVEP). Among them, EEG signals based on motor imagery can be used to detect an individual's motor intention in a self-paced manner without any external stimulation, and are widely used in brain-computer interfaces. Due to the potential role of motor imagery brain-computer interfaces, they have been used in rehabilitation treatment for disabled patients, control of wheelchairs or smart home devices, and other entertainment activities such as games.
[0003] In recent years, researchers have integrated attention mechanisms into neural networks and used them for EEG signal recognition, achieving good results. For example, by integrating multiple attention mechanisms into convolutional neural networks, they are used to extract the time, space, and spatiotemporal features of EEG signals. Based on the fully convolutional neural network (FCN), three deep attention models are proposed: a fully convolutional neural network based on a temporal attention mechanism (FCN_TA), a fully convolutional neural network based on a spatial attention mechanism (FCN_SA), and a fully convolutional neural network based on a spatiotemporal attention mechanism (FCN_STA). Experiments show that the three models have a certain improvement in the accuracy of EEG signal recognition. In addition, some researchers have proposed a convolutional recursive attention model (CRAM), which uses CNN to encode EEG features and adopts a recursive attention mechanism to obtain the timing information of EEG signals, thereby improving the generalization performance of the network. However, the accuracy of motor imagery EEG signals of EEG-specific deep neural networks in the prior art needs to be improved.
[0004] The prior art publication number CN114504468A discloses a hand full-finger rehabilitation training and evaluation system based on artificial intelligence technology, builds a deep convolutional neural network model based on the attention mechanism, first identifies the user's movement intention by collecting EEG signals corresponding to the sixteen electrodes of the brain electrode cap, drives the intelligent rehabilitation hand device to make corresponding movements, and assists the user to complete the hand full-finger rehabilitation training. The signal range of its recognition is relatively narrow, which is not suitable for full-area recognition of the brain, and cannot distinguish one or some corresponding brain function signals in multiple brain function areas.
[0005] Deep learning methods can learn high-level abstract feature representations and are widely used in various fields, achieving good feature representation and recognition effects. At present, deep learning technology is also used by researchers in the study of EEG signal feature extraction and pattern classification. Most of the existing deep learning methods extract features from EEG signals from the perspectives of time domain, frequency domain, and spatial domain, and do not construct EEG recognition networks from the perspective of brain function separation and integration mechanisms, leaving room for further improvement in EEG recognition accuracy.
[0006] Therefore, based on the brain function separation and integration mechanism, the present invention divides the EEG signal into different local perspectives according to the functional areas of the brain such as the frontal lobe, parietal lobe and temporal lobe, and regards the entire brain area as a global perspective. According to the multi-perspective learning principle, an adaptive multi-perspective deep neural network reflecting the brain function separation and integration mechanism is constructed. The present invention focuses on the following: ① A multi-perspective deep learning framework based on the brain function separation and integration mechanism is proposed, which can simultaneously learn the deep features of EEG signals from different brain regions; ② A method that can adaptively learn the discriminative features of brain regions is proposed, and the weights of different brain region perspectives are learned by using the attention mechanism to enhance the influence of brain regions with greater contribution on the model, while reducing the influence of brain regions with less contribution, and further improve the classification accuracy of motor imagery EEG signals. Summary of the invention
[0007] 1. Technical problems to be solved:
[0008] In view of the above technical problems, the present invention provides an EEG signal recognition method based on an adaptive multi-view deep learning framework, which divides the EEG signal into different local perspectives according to the brain functional areas such as the frontal lobe, parietal lobe and temporal lobe, and regards the entire brain area as a global perspective, and uses the EEG signals under different perspectives as input data. The deep features of different local perspectives are learned using an EEG-specific convolutional neural network, and the importance of different local perspectives is adaptively learned using an attention mechanism; then, the global perspective EEG signal deep features are learned using the same EEG-specific convolutional neural network, the local and global deep features are combined, and the contribution of the local and global deep features is adaptively learned using the attention mechanism again, so that the EEG signal deep features are more discriminative.
[0009] 2. Technical solution:
[0010] A method for recognizing electroencephalogram signals based on an adaptive multi-view deep learning framework, characterized in that it comprises the following steps:
[0011] Step 1: Bring the preprocessed EEG signal into a preset EEG-specific deep neural network to extract all local perspective features and global perspective features; the local perspective is a local perspective corresponding to each brain functional area; the global perspective is a global perspective corresponding to all brain functional areas;
[0012] Step 2: Construct an adaptive multi-view weighted attention mechanism deep neural network based on local view features and global view features and train it; use the attention mechanism to learn the weights between the local view of different brain functional areas, and use the attention mechanism to learn the weights between the weighted local view features and the global view; combine the local features through the weights; and output discriminative deep features.
[0013] Furthermore, the EEG signal preprocessing and feature extraction in step 1 specifically include:
[0014] S11: The time period of the preset EEG signal is T, there are N channels, and the time period T includes s×f time points, s represents seconds, and f represents the sampling frequency;
[0015] The whole brain is divided into J different functional areas, where N is greater than or equal to J; each brain functional area corresponds to at least one channel of EEG signal; the kth channel signal in the EEG signal is represented as Where k = 1, 2, ..., N, j = 1, 2, ..., J, represents the observed value of the kth EEG channel at time point t; the superscript j represents the EEG signal of the kth channel Located in the jth brain functional area;
[0016] S12: According to different brain functional areas, each functional area corresponds to a local perspective; N channels are classified into J areas according to their corresponding functional areas, so as to obtain the EEG signal of each local perspective, which is expressed as:
[0017] Region 1:
[0018] Region 2:
[0019] …
[0020] Region J:
[0021] (1) In this formula, the jth brain functional area corresponds to the jth local visual angle; n j Indicates that the jth brain functional area has n j channels, and satisfy the condition n 1 +n 2 +…+nJ =N;
[0022] The EEG signal of the global perspective is the combination of all the EEG signals of the local perspective, expressed as:
[0023] G=[L 1 ,L 2 ,…,L J ] (2);
[0024] S13: Inputting the EEG signal of the local perspective and the EEG signal of the global perspective into a preset EEG-specific convolutional neural network, the local perspective feature of each local perspective and the global perspective feature of the global perspective can be obtained.
[0025] Furthermore, the preset EEG-specific convolutional neural network includes a ConvNet_S model, a ConvNet_D model structure, and an EEGNet model structure.
[0026] Furthermore, step 2 specifically includes the following steps:
[0027] S21: Each local view feature is represented as Through the global pooling layer, X j The spatial information of is compressed into a feature map e with a dimension of C; then the jth local original depth feature ej is:
[0028]
[0029] (3)In the formula, H and W represent the length and width of the convolution kernel respectively;
[0030] S22: e j Input two consecutive fully connected layers to obtain the category score s, s∈R of each local view, as shown in formula (4):
[0031]
[0032] (4)W j ∈R C×C , v j ∈R C represents the weight, b j ∈R C is the bias, σ(·) represents the sigmoid function;
[0033] S23: Concatenate the category scores of J local perspectives to obtain the attention representation s = [s 1 ,s 2 ,…s J ]∈R J ; Input s into two consecutive fully connected layers again, and we can get:
[0034] m=W″σ(W′s)+b′ (5);
[0035] (5) In the formula, m∈R J , W″∈R J×J and W′∈R J×J represents the weight, b′∈R J is the bias, σ(·) represents the sigmoid function;
[0036] Input m into the softmax function, that is, formula (6), and obtain the probability output vector P of the depth features under multiple local perspectives:
[0037] p = softmax(m) (6);
[0038] S24, multiply each component in the probability output vector by the depth feature under the corresponding local perspective to obtain J weighted local perspectives, and weight the multiple local perspective features to obtain a combined local feature Z l :
[0039]
[0040] S25: The global viewing angle feature is expressed as The global view feature Xg, all local view features Xj, and the weight calculation between the two are performed as in steps S22-S24 to obtain the discriminative depth feature Z g ∈R C×H×W .
[0041] Furthermore, it also includes using a preset classification error function to evaluate the output discriminative deep features and update the adaptive multi-view weighted attention mechanism deep neural network parameters; specifically including:
[0042] First, the discriminative deep feature Z g Input the fully connected layer for encoding, and input the encoded vector z into the final softmax function;
[0043]
[0044] (8)W l,g and b l,g Represent the weight and bias of the classification layer respectively;
[0045] The classification error is calculated using the cross entropy loss function of formula (9):
[0046]
[0047] (9) In the formula, y c and They represent the true label of vector z and the predicted probability of belonging to category c respectively.
[0048] Furthermore, the brain functional areas include frontal lobe, central lobe, parietal lobe, occipital lobe, and temporal lobe; and the local perspective corresponds to the frontal lobe perspective, central perspective, parietal lobe perspective, occipital lobe perspective, and temporal lobe perspective.
[0049] 3. Beneficial effects:
[0050] (1) This method divides EEG signals into different local perspectives according to brain functional areas such as the frontal lobe, parietal lobe and temporal lobe, and regards the entire brain area as a global perspective, and uses EEG signals at different perspectives as input data. The EEG-specific convolutional neural network is used to learn the deep features of different local perspectives and the deep features of the global perspective; the attention mechanism is used to adaptively learn the importance of different local perspectives to obtain the combined local deep features; then the local and global deep features are combined and the attention mechanism is used again to adaptively learn the contribution of the local and global deep features, making the EEG signal deep features more discriminative.
[0051] (2) The adaptive multi-view deep learning framework proposed in this paper can extract discriminative deep features of EEG signals from different brain regions and adaptively learn the importance of different brain regions. The experimental results on two motor imagery EEG datasets verify the effectiveness of the proposed framework. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is the overall process framework diagram of the present invention;
[0053] Figure 2 is a calculation flow chart of adaptive multi-view weight calculation in the present invention;
[0054] Figure 3 The ConvNet_S model structure is one of the preset EEG-specific convolutional neural networks in the present invention;
[0055] Figure 4 The ConvNet_D model structure is one of the preset EEG-specific convolutional neural networks in the present invention;
[0056] Figure 5 The EEGNet model structure is one of the preset EEG-specific convolutional neural networks in the present invention;
[0057] Figure 6 It is the input perturbation network prediction correlation diagram of the comparison algorithm in the specific embodiment on the BCIIV IIa data set subject A3;
[0058] Figure 7Feature visualization analysis of the comparison algorithm in the specific embodiment on the Low Limbs MI-BCI dataset subject S7. DETAILED DESCRIPTION
[0059] The present invention will be described in detail below with reference to the accompanying drawings. Specific embodiment:
[0061] As attached Figure 1 , 2 As shown, the present invention proposes an adaptive multi-perspective deep learning model that integrates multi-perspective learning and adaptive weight learning mechanisms. First, the EEG signal is divided into multiple local perspectives of different brain regions, and the entire brain area is regarded as a global perspective. A multi-perspective deep learning framework that can reflect the separation and integration mechanism of brain functions is constructed; then, the importance between multiple perspectives is adaptively learned using the attention mechanism. This model can not only learn the EEG deep features of different brain regions, but also adaptively learn the weight distribution of each brain region.
[0062] The collected EEG data sets used in this embodiment include BCI IV IIa data set and Low Limbs MI-BCI data set to conduct experiments to verify the effectiveness of the present invention.
[0063] (1) BCI IV IIa dataset: This dataset contains EEG data of 9 subjects (A1-A9). The EEG data of each subject was collected in two time periods. Each subject performed four types of motor imagery tasks: left hand, right hand, feet, and tongue. Each type of imagery task has 144 samples. The experiment selected 288 EEG data from the first phase as the training set and 288 data from the second phase as the test set.
[0064] (2) Low Limbs MI-BCI Dataset: This dataset contains EEG data from 10 subjects (S1-S10). Each subject performed a motor imagery task with or without lower limbs under the visual guidance of a virtual system, for a total of 200 trials. The first 140 EEG data were selected for training, and the remaining data were used for testing.
[0065] Table 1 shows the electrode divisions of different brain regions corresponding to the above two data sets; the present invention still uses a 5th-order Butterworth filter to pre-process the above EEG raw data with a 4-38 Hz bandpass filter and then uses it as input data.
[0066] Table 1 Electrode division of different brain regions corresponding to different experimental data sets
[0067]
[0068] The comparison algorithm settings include: AMCNN_S, AMCNN_D, AMCNN_E, FCN_TA (Fully Convolutional Neural Network based on Temporal Attention Mechanism), FCN_SA (Fully Convolutional Neural Network based on Spatial Attention Mechanism), FCN_STA (Fully Convolutional Neural Network based on Spatiotemporal Attention Mechanism), CRAM (Convolutional Recursive Attention Model based on Temporal Dynamics); EEGNet, ConvNet_S, ConvNet_D. AMCNN_S, AMCNN_D, and AMCNN_E are three adaptive multi-view deep convolutional neural net-works (AMCNN).
[0069] The backbone network, i.e. the preset EEG-specific convolutional neural network, uses Shallow Convnet (ConvNet_S) Figure 3 、Deep Convnet (ConvNet_D) Figure 4 、EEGNet Figure 5 .
[0070] (1) Shallow ConvNet network architecture:
[0071] Shallow ConvNet (ConvNet_S) is a neural network model developed inspired by the FBCSP algorithm and specifically used for EEG signal recognition. ConvNet_S consists of 4 layers. Figure 3 The network structure is shown, with the BCI IV IIa dataset as the network input. Figure 3 As shown in the figure, the network input samples are 22 channels in total, and each channel has EEG signal data with 1125 sampling points, that is, the size of the input sample matrix is 22×1125. The first two layers of the network are convolutional layers. The first layer is used to convolve the temporal information of the EEG data. The 40 convolution kernels used are of size 1×25 and have a step size of 1, which is equivalent to 40 time domain filters, corresponding to the steps of extracting different frequency features in the FBCSP algorithm. The second layer is used to convolve the spatial information of the EEG data. The 40 convolution kernels used are of size E×1 and have a step size of 1, where E represents the number of electrode channels, that is, the features of all 22 channels at this moment are convolved, which is equivalent to extracting spatial features with 40 spatial domain filters, corresponding to the CSP algorithm.
[19] The spatial filtering step in .
[0072] Next comes the square nonlinear activation function and average pooling layer. The pooling window size is 1×75 and the step length is 15. The features extracted by the convolution layer are locally averaged. The activation function used is the log function. The above steps correspond to the log-variance feature extraction step in the FBCSP algorithm, which is also similar to the feature extraction of differential entropy.
[0073] The last layer is a fully connected layer with a softmax activation function. The softmax function can map the outputs of multiple neurons to the interval (0, 1), and the sum is 1. This is equivalent to the classification step in the FBCSP algorithm.
[0074] Note that here ConvNet_S adds a BN layer before the square nonlinear activation function, and a dropout layer is added after the log activation function, with the parameter set to 0.5. The batch size used in the training of this network is 64, and the Adam algorithm is used for optimization.
[0075] Compared with the FBCSP algorithm, ConvNet_S integrates all steps into one network, adaptively adjusts the parameters of all steps during network training, and can be directly used for multi-classification problems.
[0076] (2) Deep ConvNet network architecture
[0077] The second convolutional neural network Deep ConvNet (ConvNet_D) used in EEG recognition has a structure that is not much different from the general convolutional neural network structure. Figure 4 shown.
[0078] from Figure 4 As can be seen from the figure, ConvNet_D contains 5 modules, of which the first 4 modules are convolutional pooling modules and the last one is a classification module. Next, we will introduce the modules of ConvNet_D using the BCI IV IIa dataset as input data. The step size of all convolution kernels in the ConvNet_D network is 1, and the step size of the pooling window is 3.
[0079] Module 1 includes three layers of networks. The first layer is a time domain convolution layer, with a total of 25 convolution kernels for convolution of the EEG signal of each channel, and the convolution kernel size is 10; the second layer is a spatial convolution layer, with a convolution kernel size equal to the number of channels of the EEG signal, and the number of convolution kernels is also 25; the third layer is a maximum pooling layer. The final output size of convolution pooling module 1 is 25×372. Module 2 includes two layers of networks. The first layer is a convolution layer containing 50 convolution kernels, with a convolution kernel size of 10, which extracts deep features; the second layer is also a maximum pooling layer, which reduces the number of network outputs by two-thirds. The final output size of convolution pooling module 2 is 50×121. The structures of modules 3 and 4 are almost the same as module 2, and the number of convolution kernels is increased to 100 and 200 respectively. The final output size of module 3 is 100×37, and the output size of module 4 is 200×9.
[0080] The final classifier module still uses a fully connected layer plus a softmax activation function, and all samples are divided into four categories: left hand, right hand, feet, and tongue.
[0081] Except for the first time-domain convolution layer, which has no activation function, all other convolution layers use the ELU activation function. Like ConvNet_S, ConvNet_D also adds BN layer and dropout layer. The BN layer is added before each ELU activation function. At the same time, the input of convolutional pooling module 2 and convolutional pooling module 3 is dropout to suppress overfitting, and the parameter setting is also 0.5. In addition, the loss function, batch size and optimization method of this network are the same as those of ConvNet_S.
[0082] Compared with ConvNet_S, ConvNet_D is more like a traditional convolutional neural network, with more layers, in-depth feature mining, and the widely used ELU activation function. ConvNet_S is a convolutional neural network designed according to the FBCSP algorithm, which is better at decoding frequency band power features, and fewer layers means less computing time.
[0083] (3) EEGNet network architecture
[0084] The third deep neural network is EEGNet, which is a compact neural network based on EEG signals. Because it uses deep and separable convolutions for EEG signal recognition, it is robust and performs well in a series of BCI tasks. Its model structure is as follows Figure 5 shown.
[0085] Figure 5 The first column is the input of the EEGNet network, and the input data size of the BCI IV IIa dataset is also used as the input sample.
[0086] The second column contains 8 convolution kernels, all of which are 1×64 in size. The temporal convolution kernel with a step size of 1 is used to learn temporal information.
[0087] The third column contains 16 convolution kernels, all of which are C×1 in size. The deep convolution kernel with a stride of 1 is used to learn spatial features. Here C also refers to the number of channels of the EEG signal; next is the ELU activation function and the average pooling layer, with a pooling window size of 1×4 and a stride of 1.
[0088] The fourth column contains 16 convolution kernels, all of which are 1×6 in size and separable convolution kernels with a stride of 1. Separable convolution is a combination of depthwise convolution and pointwise convolution. Depthwise convolution learns the temporal information of each feature, and pointwise convolution selects more effective features and superimposes them together. Similarly, the convolution operation is followed by the ELU activation function and the average pooling layer. The pooling window size is 1×8 and the stride is 1.
[0089] The fifth column is the fully connected layer plus the softmax activation function, which is used for EEG feature classification.
[0090] The BN layer in the EEGNet network is added after each convolutional layer, and the dropout layer is added after the average pooling layer. The parameter is set to 0.25. Its loss function, batch size, and optimization method are the same as the previous two convolutional neural networks.
[0091] Compared with ConvNet_S and ConvNet_D, EEGNet uses deep and separable convolutions to perform EEG signal recognition, building a compact convolutional neural network suitable for different BCI paradigms. It has strong generalization and its network structure can achieve good results in experiments on multiple data sets.
[0092] In summary, the above three typical deep neural networks can achieve good EEG recognition effects in EEG recognition tasks.
[0093] The algorithm process proposed by the present invention is as follows:
[0094] Input preprocessed EEG data.
[0095] Outputs adaptive multi-view deep neural network parameters and EEG prediction output.
[0096] Specific steps:
[0097] Step 1: Divide the N channels of the EEG signal into J local view angles L according to formula (1): 1 ,L 2 ,…,L J , and the global perspective G=[L 1 ,L2 ,…,L J ];
[0098] Step 2: L 1 ,L 2 ,…,L J ,G are sequentially input into CNN to obtain multi-view global and local depth features
[0099] Step 3: According to equations (5) to (7), the attention mechanism is used to adaptively learn the weights between local multi-view depth features and the weights between local and global features, and the EEG depth discriminant feature Z is obtained by adding them together;
[0100] Step 4 uses the cross entropy loss function to calculate the classification error;
[0101] Step 5: Back propagation updates the network parameters and optimizes the model.
[0102] Experimental results and analysis
[0103] For the BCI IV IIa dataset and the Low Limbs MI-BCI dataset, the hyperparameter settings of the model in the present invention are consistent with the three EEG recognition-specific neural networks, namely the ConvNet_S model, the ConvNet_D model structure, and the EEGNet model structure. The Adam optimization algorithm is used to train the network, and the mini-batch size is set to 64 and 20 respectively, and the learning rate is 10 -3 , the weight decay coefficient is set to 0.015. In order to compare the recognition effects of various algorithms, the present invention uses two indicators, accuracy (ACC) and F1-score (F1), to evaluate the algorithm performance.
[0104] Table 2 shows the EEG signal classification performance of each comparison algorithm and this algorithm on 9 subjects on the BCI IV IIa dataset, and Table 3 shows the recognition effect of each comparison algorithm and this algorithm on the Low Limbs MI-BCI dataset.
[0105] Table 2 Recognition effect of the comparison algorithm on the BCI IV IIa dataset
[0106]
[0107]
[0108] Table 3 Recognition effect of the comparison algorithm on the Low Limbs MI-BCI dataset
[0109]
[0110] From the above two tables, it can be clearly seen that: First, by comparing the three adaptive multi-view deep neural networks proposed in the present invention with the three benchmark neural networks, it can be found that in most cases ACC and F1-score have been greatly improved, indicating the effectiveness of the adaptive multi-view deep learning framework proposed in the present invention. Compared with EEGNet, AMCNN_E greatly improved 4 out of 9 subjects, and the average ACC and F1 were improved by more than 1%. Similarly, the classification effect of AMCNN_S greatly improved 3 out of 9 subjects compared with ConvNet_S, and the average ACC and F1 were both improved by about 2.3%. In addition, compared with EEGNet, AMCNN_E greatly improved 8 out of 9 subjects, and the average ACC and F1 were both improved by about 7.5%. The above experimental results show that the adaptive multi-view deep learning framework proposed in the present invention can effectively learn the discriminative features of motor imagery EEG signals and can improve the recognition performance of CNN.
[0111] Figure 6 The graph shows the correlation between the input perturbation network prediction of the baseline algorithm ConvNet_D and the proposed algorithm AMCNN_D on the EEG signal of subject A3 in the BCI IV IIa dataset. The colors of different depths represent the correlation between the change in the amplitude of the EEG signal and the change in the network prediction. Figure 6 The results show that both methods show typical spatial distribution patterns. In particular, when imagining left / right hand movement, negative correlation appears in the left / right hand contralateral sensorimotor area; while when imagining foot movement, negative correlation appears in the central area. The results of AMCNN_D of the present invention show a more significant spatial distribution pattern than ConvNet_D. Figure 6 The experimental results in once again show that the proposed method can effectively utilize multi-view learning technology and attention mechanism to automatically learn EEG discriminative deep features, thereby effectively improving the recognition effect of the network.
[0112] To further verify the effectiveness of the proposed adaptive multi-view deep learning framework, the present invention tests the EEG recognition effect on the self-collected dataset Low Limbs MI-BCI. It can be seen from the results in Table 3 that the classification results of the method proposed in the present invention are better than other methods on most subjects. Among them, compared with EEGNet, AMCNN_E significantly improved 2 of the 10 subjects. Similarly, compared with the benchmark algorithm, AMCNN_S and AMCNN_D significantly improved 6 and 8 of the 10 subjects, respectively. In addition, the average ACC and F1 of AMCNN_S, AMCNN_D and AMCNN_E were improved by 1.8%, 3.7% and 8.7%, and 2.1%, 4% and 9.1% respectively compared with the benchmark algorithm. The experimental results once again verified the effectiveness of the method proposed in the present invention.
[0113] Table 4 Adaptive weight calculation results
[0114]
[0115] Table 4 shows the adaptive weight results of the proposed method for different brain regions in the dataset BCI IV IIa subjects A4 and A7 and the dataset Low Limbs MI-BCI subjects S4 and S7. The calculated weights of the central and parietal regions of the brain are significantly greater than those of other brain regions, indicating that these two brain regions play a greater role in the EEG recognition process of motor imagery. This is consistent with the fact that when imagining movement, the spatial distribution of the EEG signal energy change on the scalp corresponds to the sensorimotor cortex, which is mainly located in the central and parietal regions.
[0116] In order to evaluate the feature learning ability of the proposed adaptive multi-view deep learning framework, the t-SNE embedding representation of the features learned by the backbone network and the proposed method is given on the Low Limbs MI-BCI dataset S7 subjects. “·” indicates lower limb imagined movement and “×” indicates no lower limb imagined movement. The visualization effect is shown in Figure 2. Figure 7 As shown in the figure, it can be seen that the EEG data features learned by the three algorithms AMCNN_E, AMCNN_S and AMCNN_D have better inter-class separability and more obvious separability.
[0117] In summary, the adaptive multi-view deep learning framework proposed in this invention can extract discriminative deep features of EEG signals in different brain regions and adaptively learn the importance of different brain regions. The experimental results on two motor imagery EEG datasets verify the effectiveness of the proposed framework.
[0118] Although the present invention has been disclosed as above in terms of preferred embodiments, they are not intended to limit the present invention. Anyone skilled in the art can make various changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection defined by the claims of this application.
Claims
1. A method for EEG signal recognition based on an adaptive multi-view deep learning framework, characterized in that: The following steps are involved: Step 1: Bring the preprocessed EEG signal into the preset EEG-specific deep neural network to extract all local and global perspective features; The local perspective is a local perspective corresponding to each brain functional area; the global perspective is a global perspective corresponding to all brain functional areas; Step 2: Construct an adaptive multi-view weighted attention mechanism deep neural network based on local view features and global view features and train it; use the attention mechanism to learn the weights between the local view of different brain functional areas, and use the attention mechanism to learn the weights between the weighted local view features and the global view; combine the weights to obtain the combined local features; Thus, discriminative deep features are output; In step 1, the EEG signal preprocessing and feature extraction specifically include: S11: The time period of the preset EEG signal is T, there are N channels, and the time period T includes s×f time points, s represents seconds, and f represents the sampling frequency; The whole brain is divided into J different functional areas, where N is greater than or equal to J; each brain functional area corresponds to at least one channel of EEG signal; the kth channel signal in the EEG signal is represented as Where k = 1, 2, ..., N, j = 1, 2, ..., J, represents the observed value of the kth EEG channel at time point t; the superscript j represents the EEG signal of the kth channel Located in the jth brain functional area; S12: According to different brain functional areas, each functional area corresponds to a local perspective; N channels are classified into J areas according to their corresponding functional areas, so as to obtain the EEG signal of each local perspective, which is expressed as: (1) In this formula, the jth brain functional area corresponds to the jth local visual angle; n j Indicates that the jth brain functional area has n j channels, and satisfy the condition n1+n2+...+n J =N; The EEG signal of the global perspective is the combination of all the EEG signals of the local perspective, expressed as: G=[L1,L2,…,L J ] (2); S13: Inputting the EEG signal of the local perspective and the EEG signal of the global perspective into a preset EEG-specific convolutional neural network, the local perspective feature of each local perspective and the global perspective feature of the global perspective can be obtained; Step 2 specifically includes the following steps: S21: Each local view feature is represented as j=1,2,…,J; Deep feature representation of EEG data at each local perspective Through the global pooling layer, X j The spatial information of is compressed into a feature map e with a dimension of C; then the jth local original depth feature ej is: (3)In the formula, H and W represent the length and width of the convolution kernel respectively; S22: e j Input two consecutive fully connected layers to obtain the category score s for each local view j , As shown in formula (4) (4) In the formula, represents the weight, is the bias, σ(·) represents the sigmoid function; S23: Concatenate the category scores of J local perspectives to obtain the attention representation Inputting s into two consecutive fully connected layers again, we can get: m=W″σ(W′s)+b′ (5); (5) In the formula, and represents the weight, is the bias, σ(·) represents the sigmoid function; Input m into the softmax function, that is, formula (6), and obtain the probability output vector P of the depth features under multiple local perspectives: p = softmax(m) (6); S24, multiply each component in the probability output vector by the depth feature under the corresponding local perspective to obtain J weighted local perspective features, and weight the multiple local perspective features to obtain a combined local feature Z l : S25: The global viewing angle feature is expressed as Global deep feature representation of EEG data from a global perspective The discriminative depth feature is obtained by performing weight calculation as in steps S21-S24 on the global view feature Xg, all local view features Xj and the two.
2. The method for EEG signal recognition based on an adaptive multi-view deep learning framework according to claim 1, characterized in that: The preset EEG-specific convolutional neural network includes ConvNet_S model, ConvNet_D model structure, and EEGNet model structure.
3. The method for EEG signal recognition based on an adaptive multi-view deep learning framework according to claim 1, characterized in that: It also includes using a preset classification error function to evaluate the output discriminative deep features and update the parameters of the adaptive multi-view weighted attention mechanism deep neural network; specifically including: First, the discriminative deep feature Z g Input the fully connected layer for encoding, and input the encoded vector z into the final softmax function; (8)W l,g and b l,g Represent the weight and bias of the classification layer respectively; The classification error is calculated using the cross entropy loss function of formula (9): (9) In the formula, y c and They represent the true label of vector z and the predicted probability of belonging to category c respectively.
4. The method for EEG signal recognition based on an adaptive multi-view deep learning framework according to claim 1, characterized in that: The brain functional areas include frontal lobe, central lobe, parietal lobe, occipital lobe, and temporal lobe; the local perspective corresponds to the frontal lobe perspective, central perspective, parietal lobe perspective, occipital lobe perspective, and temporal lobe perspective.
Citation Information
Patent Citations
Hand full finger rehabilitation training and evaluation system based on artificial intelligence technology
CN114504468A
