A method for EEG signal recognition based on local-order global learning strategy

Through the local upgrade global learning strategy, combined with local feature extraction, K-order directed dynamic upgrade and graph learning module, the problem of insufficient adaptability of brain region functional connection and cognitive tasks in the existing technology is solved, and the EEG signal is improved Accuracy and generalization performance of identification.

CN118177832BActive Publication Date: 2024-11-01TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311829098.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-11-01
Estimated Expiration
2043-12-27

AI Technical Summary

Technical Problem

The existing EEG signal recognition technology lacks exploration of one-to-one or one-to-many brain regions functional connections, and cannot adapt to changes in global connections in different cognitive tasks, resulting in reduced recognition accuracy.

Method used

Using a method based on the local upgrade global learning strategy, the local feature extraction module, K-order directed dynamic upgrade learning module and graph learning module are used to extract the channel characteristics of the EEG signal, fuse the brain functional area features, and calculate the global brain area. Cross-correlation and classification using attention mechanisms.

Benefits of technology

The accuracy and generalization performance of EEG signal recognition are improved, and the active differences in brain regions under different cognitive tasks are dynamically detected, gradually fusion from local to global, enhancing the recognition effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118177832B_ABST
    Figure CN118177832B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for recognizing electroencephalogram signals based on a local ascending global learning strategy, including obtaining electroencephalogram signals to be recognized; constructing an electroencephalogram signal recognition model and pre-training; using a local feature extraction module to extract the pairwise relationship related to the inter-channel features of the electroencephalogram signals to be recognized; using a K-order directed dynamic ascending learning module to fuse the features of all two brain functional areas, and extracting the first-order hidden features between the two brain functional areas; then calculating the correlation scores of the strength of the internal connectivity of the brain functional areas, taking the highest active first-order joint brain area under the scene state as the basic brain functional area, gradually fusing the remaining brain functional areas, and obtaining a global brain functional area feature map; using a graph learning module to calculate the mutual correlation between the channels of the global brain area according to the global brain functional area feature map, and then using an attention mechanism to perform self-update and classification to obtain an electroencephalogram signal recognition result. The present invention can improve the accuracy and generalization performance of electroencephalogram signal recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electroencephalogram (EEG) signal recognition, and in particular to an EEG signal recognition method based on a local-order-elevated global learning strategy. Background Art

[0002] Brain-computer interface is an advanced technology that can convert human brain information and computer signals and communicate directly. There are many signal sources and signal modes for evaluating and analyzing brain signals, among which EEG is a widely used non-invasive signal with high temporal resolution.

[0003] In recent years, deep learning methods have shown better performance than traditional machine learning in fatigue detection, emotion recognition, motor imagery tasks, etc. Most previous studies directly input artificially extracted EEG features, such as power spectral density and differential entropy, into the classifier for classification. With the development of deep learning, convolutional neural networks and recurrent neural networks have become more efficient and reliable in extracting features from EEG, and have further explored spatial and temporal information. Later, the introduction of graph neural networks can explore more spatial domain information through the spatial topological structure of electrode channels, and further learn local and global spatial feature information. A study based on motor imagery classification proposed a hybrid deep network based on CNN and LSTM networks to simultaneously extract and learn the spatial and temporal features of MI signals, and achieved good results.

[0004] Recently, learning strategies based on psychological and biological prior knowledge combined with graph networks have made great breakthroughs in decoding the dynamic changes of brain function and physiological and psychological states. Traditional graph neural networks directly learn the correlation between channels through prior graphs, such as Pearson's correlation coefficient (COR), Phase Locking Value (PLV) and Partial Directed Coherence (PDC). Studies on mental fatigue have used three frequency domain measurement methods to estimate the functional connectivity of the brain (oherence, phase lag index and partial directed coherence), but this modeling method has great limitations in understanding the complex brain of different individuals under different cognitive tasks, so it lacks learning about the functional organization, connection and transformation of local circuits in each brain region and each functional region. In addition, the activity of the brain in different states requires the joint work of each brain region, so the internal functional changes of each brain region will also have a certain activation or inhibition effect on other brain regions. Research in the field of emotional computing has proposed a new sparse constraint to improve the dynamic graph convolutional neural network (DGCNN) to constrain and optimize the functional relationship between brain regions.

[0005] Therefore, an advanced learning strategy for efficiently fitting the connectivity within the brain and between brain functional areas has become a research hotspot. Some works have developed advanced local and global adjacency matrices to learn dynamically changing brain functional networks. Studies have found that the functional relationship between electrodes may be highly localized and sparse, so sparse dynamic graph convolutional neural networks (SparseDGCNN) have been proposed to learn the dynamic characteristics of brain networks from local and global perspectives. In addition, the local global graph neural network (LGGNet) divides brain regions through biological prior knowledge to establish spatial connections within brain regions, merges the locally learned spatial features and obtains global connections through convolution fusion to improve decoding performance, but it cannot identify the complex connections and hidden features between a single brain region and multiple brain regions.

[0006] The defects of the above existing technologies are as follows: (1) they lack the exploration of one-to-one or one-to-many brain region functional connections; (2) they lack the research on the gradual exploration of the adaptability of global connections in different cognitive tasks; (3) the negative impact of complex brain mechanisms on the model recognition effect has not been resolved. These defects have led to the reduction of the recognition accuracy of existing EEG signals. Summary of the invention

[0007] In view of the above-mentioned deficiencies in the prior art, the present invention provides an EEG signal recognition method based on a local-order-upgraded global learning strategy.

[0008] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0009] A method for recognizing electroencephalogram signals based on a local-order global learning strategy comprises the following steps:

[0010] Obtaining the EEG signal to be identified;

[0011] Constructing an EEG signal recognition model and pre-training it; the EEG signal recognition model includes a local feature extraction module, a K-order directed dynamic order-up learning module and a graph learning module;

[0012] The local feature extraction module is used to extract the pairwise relationship between the channel features of the EEG signal to be identified, and the local feature information of each brain functional area is obtained;

[0013] The K-order directed dynamic ascending learning module is used to fuse the features of all pairwise brain functional areas, and the first-order hidden features between the pairwise brain functional areas are extracted to obtain the first-order joint brain functional area feature map; then the correlation scores of the strength of the internal connectivity of the brain functional areas are calculated, and the most active first-order joint brain area under the scene state is taken as the basic brain functional area, and the remaining brain functional areas are gradually integrated to obtain the global brain functional area feature map;

[0014] The graph learning module is used to calculate the cross-correlation between channels in the global brain area according to the feature map of the global brain functional area, and then the attention mechanism is used for self-updating and classification to obtain the EEG signal recognition result.

[0015] The present invention has the following beneficial effects:

[0016] The present invention constructs an EEG signal recognition model including a local feature extraction module, a K-order directed dynamic up-order learning module and a graph learning module, which can dynamically detect the active differences of brain areas under different states in different cognitive tasks, and gradually integrate from local brain areas to global brain areas, thereby improving the accuracy and generalization performance of EEG signal recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flowchart of an EEG signal recognition method based on a local-to-global learning strategy;

[0018] Figure 2 This is a structural diagram of the EEG signal recognition model;

[0019] Figure 3 This is a schematic diagram of the rising process of SALK;

[0020] Figure 4 Schematic diagram of the brain patterns learned by LAG on the SEEDIV dataset. DETAILED DESCRIPTION

[0021] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0022] Example

[0023] like Figure 1 As shown, the embodiment of the present invention provides an EEG signal recognition method based on a local-to-global learning strategy, comprising the following steps S1 to S5:

[0024] S1, obtaining the EEG signal to be identified;

[0025] In this embodiment, step S1 first acquires the EEG signal to be identified to obtain the EEG data to be identified.

[0026] S2. Construct an EEG signal recognition model and pre-train it; the EEG signal recognition model includes a local feature extraction module, a K-order directed dynamic order-up learning module and a graph learning module;

[0027] In this embodiment, the EEG signal recognition model constructed in step S2 is as follows: Figure 2 As shown, it specifically includes a local feature extraction module, a K-order directed dynamic upgrade learning module and a graph learning module.

[0028] For example, the EEG signal recognition model of this embodiment is for a multi-classification task scenario, taking three data sets as an example, represented as D = {D d}, d = {1, 2, 3}. Then, each D d By dividing the brain regions into M subsets according to their functions, we can obtain B = {B M For the convenience of explanation, in the subsequent steps, the fatigue data set is used as an example to present the recognition process of the model.

[0029] S3, using a local feature extraction module to extract the pairwise relationship between the channel features of the EEG signal to be identified, and obtain the local feature information of each brain functional area;

[0030] In this embodiment, step S3 uses a local feature extraction module to extract the pairwise relationship between the channel features of the EEG signal to be identified, and obtains the local feature information of each brain functional area, which specifically includes the following steps S31 to S35:

[0031] S31, using the Ghost module to generate multiple frequency band feature node values ​​according to the EEG signal to be identified;

[0032] S32, using a point convolution module to generate multiple EEG channels of the same length according to multiple frequency band feature node values, and obtaining a channel mapping diagram generated by mapping the channels to a new space;

[0033] S33, using the frequency band attention module to compress the channel mapping map and calculate the frequency band attention feature node value; at the same time, using the spatial attention module to reduce the dimension of the channel mapping map and calculate the spatial attention feature node value; finally, the frequency band attention feature node value and the spatial attention feature node value are fused to generate a spatial mapping map of each brain functional area;

[0034] S34, using the BiGRU module to capture the temporal dependency between channels in the spatial map, and obtain an enhanced spatial map of each brain functional area;

[0035] S35. Use a fully connected layer to perform kernel-level fusion on the channel map and the enhanced spatial map of each brain functional area, capture the local features of the nodes in each brain functional area, and obtain the local feature node values ​​of each brain functional area.

[0036] Exemplarily, the local feature extraction module is used to learn the connection between nodes in each brain functional area to capture local features. Learning the connectivity within the node through the fully connected operation is usually computationally expensive and requires a large number of parameters, especially when the EEG data is divided into frequency bands, the number of channels is large, and the number of time points is large. Therefore, this embodiment uses relationship perception to learn local global attention. The main idea is to use the pairwise relationship related to the features between channels to represent the local global structural information of the feature node. The specific calculation is as follows. For E with N samples M =(X 1 , X 2 , ..., X N )∈R B×C×T , where B, C, and T represent the number of frequency bands, channels, and time points of the sample, respectively. Use the Ghost module to generate multiple frequency band feature node values. The calculation formula is as follows:

[0037]

[0038] Among them, Φ i,j represents the jth linear operation, b i,j represents the bias vector, and X represents the sample of node features.

[0039] Next, point convolution is used to generate T EEG channels of the same length. The calculation process is as follows:

[0040]

[0041] Where m represents the number of electrode channels contained in a subset, h p,j Represents the calculation process of point convolution, w p,j (y) represents the learnable parameter, b p,j Represents the bias vector.

[0042] This can be used to obtain the channel mapping graph generated by mapping the channel to the new space.

[0043]

[0044] Among them, h i (y p,j ) indicates that point convolution is used to calculate y p,j ,y p,j Indicates that the Ghost module generates multiple frequency band feature node values. Represents the Nth node feature.

[0045] Next, use the band attention to squeeze G C Compress C*T to 1*1 to calculate the band attention feature node value. At the same time, use spatial attention to convert G CThe dimension of B in is reduced to 1 to calculate the spatial attention feature node value. Finally, the band attention feature node value and the spatial attention feature node value are fused to generate the spatial mapping map of each brain functional area.

[0046]

[0047] Among them, BA and SA represent frequency band attention and spatial attention, respectively.

[0048] Get G S After that, it is input into BiGRU to capture the temporal dependency between channels to strengthen the connection between EEG and different cognitive tasks, thereby capturing the enhanced spatial mapping of each brain functional area.

[0049]

[0050] Among them, l represents the number of layers of GRU.

[0051] Finally, and Capture the local features of nodes in each brain functional area through the core-level fusion of the fully connected layer:

[0052]

[0053] Among them, θ represents the parameter of the core-level fusion layer.

[0054] Therefore, the local characteristic node values ​​of each brain functional area can be obtained:

[0055] L=(L 1 , L 2 , ..., L M )

[0056] S4. Use the K-order directed dynamic ascending learning module to fuse the features of all the two brain functional areas, and extract the first-order hidden features between the two brain functional areas to obtain the first-order joint brain functional area feature map; then calculate the correlation score of the strength of the internal connectivity of the brain functional areas, take the most active first-order joint brain area under the scene state as the basic brain functional area, and gradually fuse the remaining brain functional areas to obtain the global brain functional area feature map;

[0057] In this embodiment, step S4 utilizes a K-order directed dynamic ascending learning module to fuse features of all the brain function areas in pairs, and extracts the first-order hidden features between the brain function areas in pairs, to obtain a first-order joint brain function area feature map, which specifically includes the following steps S41 to S43:

[0058] S41, performing singular value decomposition on the local feature node values ​​of each brain functional area, then extracting the frequency domain features of the two brain functional areas and performing feature fusion to obtain frequency domain feature information containing the two brain functional areas;

[0059] S42, using the frequency domain feature information of the two brain functional areas, respectively updating the internal channel importance weights of the two brain functional areas affected by the frequency domain information, to obtain a brain area feature map;

[0060] S43. Perform singular value decomposition on the brain region feature map, extract the first-order hidden features between any two brain functional regions, and obtain a first-order joint brain functional region feature map.

[0061] Wherein step S43 performs singular value decomposition on the brain region feature map, extracts the first-order hidden features between the two brain functional areas, and obtains the first-order joint brain functional area feature map, which specifically includes the following steps S431 to S435:

[0062] S431, performing singular value decomposition on the brain region feature map to extract first-order time domain information;

[0063] S432, fusing the extracted first-order time domain information to obtain first-order time domain fusion information;

[0064] S433, merging the internal channel importance weights of the two brain functional areas to obtain global channel information of the two brain functional areas;

[0065] S434, using the first-order time domain fusion information to update the global channel information of the two brain functional areas, and obtain the first-order brain functional area hidden features;

[0066] S435. Fusing the first-order brain function area hidden features with the brain area feature map to obtain a complete first-order joint brain function area feature map.

[0067] Exemplarily, the K-order directed dynamic ascending learning module first performs brain region fusion, and gradually expands the local features of each brain region to global features. First, all pairs of brain regions are feature fused, and the first-order hidden features between the two brain regions are extracted to obtain the first-order generated graph features. The specific calculation is as follows. Given a subclassification task, for the i-th and j-th brain regions, U consists of pairs of local brain region feature node values, and its form is:

[0068]

[0069] Among them, BC 1 represents the first-order joint brain area, and M represents the number of divided brain areas.

[0070] First, the local feature node value L of each brain region is decomposed by singular value decomposition (SVD) to eliminate redundant data and better perform feature fusion. First, the frequency domain features of the two brain regions are extracted, and the two features are fused to obtain the frequency domain feature information containing the two brain regions. The calculation formula is as follows:

[0071]

[0072]

[0073] Among them, U, σ, and V obtained by singular value decomposition are converted into two parts: U and A. U is the frequency domain feature information extracted by singular value decomposition, and A is the channel importance weight within the brain area.

[0074] Then use the first-order frequency domain fusion information Ui j The internal channel importance weights of the two brain regions affected by the frequency domain information are updated separately. The calculation process is as follows:

[0075]

[0076] Then, the brain feature map obtained by frequency domain update is again processed by singular value decomposition and After transposition, decomposition is performed to extract time domain information. First, the extracted first-order time domain information is fused. Secondly, the channel importance weights of the two decomposed brain regions are merged to obtain the global channel information of the two brain regions. Then, the fused first-order time domain information is used to update the merged global channel information of the two brain regions to obtain the first-order brain region hidden features. Finally, the learned first-order joint brain region hidden features and the original brain function area feature map are fused to obtain a complete first-order joint brain function area feature map. The specific calculation process is as follows:

[0077]

[0078]

[0079]

[0080] L n ={L ij}, with n=1, 2,..., M(M-1) / 2

[0081] in, represents the principal component extracted from the i-th brain region, represents the principal component extracted from the jth brain region, represents the weight parameters of each channel in the i-th brain region, represents the weight parameter of each channel in the jth brain region, T represents the matrix transpose symbol, represents the characteristic value of each channel of the i-th brain region, represents the characteristic value of each channel in the jth brain region, represents the internal features of the i-th brain region, represents the internal features of the jth brain region, represents the high-order hidden features learned by the fusion of two brain regions i and j, L ij represents the joint brain region feature containing the original feature signals of brain regions i and j and the high-order hidden features, L n represents the nth-order associated brain area, and n represents the order of the associated brain area.

[0082] In this embodiment, step S4 calculates the correlation score of the strength of the internal connectivity of the brain function area, takes the highest active first-order joint brain area under the scene state as the basic brain function area, gradually integrates the remaining brain function areas, and obtains the global brain function area feature map, which specifically includes the following steps S44 to S46:

[0083] S44, calculating the correlation score of the strength of internal connectivity of each brain functional area according to the first-order joint brain functional area feature map;

[0084] S45, calculating the fusion channel feature attention value according to the channel shared attention vector and the correlation score of the internal connectivity strength of each brain functional area;

[0085] S46. Select the joint brain functional area with the strongest internal connectivity based on the comparison of the fusion channel feature attention values, and continue to fuse the remaining brain functional areas to obtain a global brain functional area feature map.

[0086] The step S44 calculates the correlation score of the strength of the internal connectivity of each brain functional area according to the first-order joint brain functional area feature map, and specifically includes the following steps S441 to S442:

[0087] S441, using a weight matrix to perform nonlinear transformation on each channel feature of the first-order joint brain function area feature map, and using a time-domain shared attention vector to update the map correlation features of each channel;

[0088] S442: Fuse the graph correlation features of each channel to obtain the correlation score of each channel.

[0089] After step S442, it also includes: after calculating the correlation score of the first-order joint brain function area feature map of the set annotation, using the three standard deviation method to select the average of the data within the three standard deviation range to select the strongly correlated brain areas of the batch, and at the same time selecting the data outside the three standard deviation range as noise data.

[0090] Exemplarily, the K-order directed dynamic up-scaling learning module then performs adaptive up-scaling. In order to find the main active areas of the brain in different states under different scenarios, a correlation score for calculating the strength of the internal connectivity of the brain region is proposed. The main active first-order joint brain area under the scenario state is used as the basic brain area, and the remaining brain areas are gradually integrated.

[0091] First, the correlation score of each channel in each joint brain region is calculated, using the weight matrix W∈R BT×T The characteristics of this channel in the joint brain area Perform a nonlinear transformation and then apply the time domain shared attention vector q t =R T×1 The characteristic attention value of each channel is obtained and used to update the original graph features of each channel. Here, the negative correlation and weight are regarded as the strong or weak correlation of the internal connectivity of the brain area. The updated graph correlation features of each channel are fused to obtain the correlation score of each channel. By applying the channel shared attention vector q c =R C×1 After the fusion channel feature attention value is normalized and limited to [0, 1], the joint brain area with the strongest internal connectivity is selected through comparison. The specific calculation formula is as follows:

[0092]

[0093]

[0094]

[0095]

[0096] in, represents the attention weight of each channel in the brain area, q t represents the channel shared attention vector, represents the nth order joint brain area, b represents the bias vector, c represents the cth channel, C represents the number of channels, represents the joint brain region connectivity score of the cth channel, T represents the time point, S n represents the connectivity score of the nth associated brain region, σ sig represents the sigmoid function, represents the connectivity score of the ith associated brain region, B 1 represents the first-order joint brain area with the highest internal connectivity, argmax represents the joint brain area with the largest score, and abs represents the absolute value.

[0097] In order to adapt to batch processing in deep learning training, after calculating the correlation score of a batch, the average of the data within the three-sigma rule of thumb in the batch is taken to select the strongly correlated brain areas of the batch. At the same time, a small amount of data outside the three-sigma rule of thumb can be used as noise to increase the robustness of the model. The specific calculation formula is:

[0098] Pr(μ-3σ≤S≤μ+3σ)≈0.95

[0099] Among them, Pr represents the probability that the correlation data is distributed within the range of 3σ, μ represents the standard deviation, σ represents the variance, and S represents the correlation score.

[0100] Based on the calculated optimal joint brain area, continue to fuse the remaining brain areas to find high-order hidden features, and finally obtain the global brain function area feature map. The whole upgrade process is as follows:

[0101]

[0102] Among them, G represents the global brain topology, Ascending Stage represents the ascending process, and BC k represents the k-th order joint brain area, k represents the order, B k-1 represents the k-1th order brain area, U k-1 represents the principal component extracted from the k-1th order brain region, A k-1 represents the weight parameters of each channel in the k-1th order brain region, It means that the k-th order brain area is a joint brain area that integrates single domain features. represents the principal component extracted from the joint brain regions that integrates the single domain features at the k-1th order, represents the weight parameters of each channel of the joint brain region that integrates the single domain features at the k-1th order, represents the principal component extracted from the i-th brain region, represents the weight parameters of each channel in the ith brain region, and SCORE represents the calculation process of the connectivity score.

[0103] S5. Use the graph learning module to calculate the cross-correlation between channels in the global brain area based on the feature map of the global brain functional area, and then use the attention mechanism to perform self-update and classification to obtain the EEG signal recognition result.

[0104] In this embodiment, step S5 uses the graph learning module to calculate the cross-correlation between channels of the global brain region according to the global brain function region feature map, and then uses the attention mechanism to perform self-update and classification to obtain the EEG signal recognition result, which specifically includes the following steps S51 to S54:

[0105] S51, performing dimension conversion and feature fusion on the feature map of the global brain function area to obtain the cross-correlation between each channel of the global brain function area;

[0106] S52, using the DGCNN module to update the original node features according to the cross-correlation between channels in the global brain functional area;

[0107] S53, adopt the intention mechanism to self-update the graph learning module;

[0108] S54, input the output feature map of the updated graph learning module into the fully connected layer for classification to obtain the EEG signal recognition result.

[0109] Exemplarily, the graph learning module obtains the cross-correlation between channels in the global brain region through dimension conversion feature fusion based on the feature node values ​​of the global brain function area learned in the above steps, that is, the pairwise relationship values ​​between B×C feature nodes. The calculation formula is as follows:

[0110]

[0111] Then build a graph learning module based on DGCNN, and update the original node features with the learned global structure G:

[0112] Graph = DGCNN(G, DE)

[0113] Among them, Graph represents the brain network features learned by the dynamic graph neural network, and DE represents differential entropy.

[0114] Then, the attention mechanism is used to update the graph learning module:

[0115]

[0116] AG=Graph_score*Graph

[0117] Among them, Graph_score represents the weight score calculated by the attention mechanism. Indicates a fully connected layer with a convolution kernel of 1*1. represents a fully connected layer with a convolution kernel of 1*C, θ 1 ,θ 2 represents the parameters of the two fully connected layers, and AG represents the graph features updated after the attention weights.

[0118] Finally, the input is sent to the fully connected layer for classification:

[0119]

[0120] Among them, y pred represents the predicted label, represents a fully connected layer with a convolution kernel of 1*class, class represents the number of categories, σ sig represents the Sigmoid function, θ′ and θ″ represent the parameters of the two fully connected layers.

[0121] The present invention uses cross entropy for classification in a multi-classification scenario. In the existing c-classification problem, (x, y) is a sample in the training set, where x is the sample attribute and y∈[0,1] c is the sample category label, input x into the model to get the sample category prediction Use cross entropy loss to calculate class predictions The distance between the true value y is calculated as follows:

[0122]

[0123] In the binary classification scenario, the mean square error loss function is used to calculate the average value of the sum of the squares of the difference between the predicted value and the true value. The calculation formula is as follows:

[0124]

[0125] where x i is the model prediction output, y i is the real value, and n is the number of elements contained in the input and output.

[0126] The pre-training process of the present invention uses the BP algorithm for back propagation to dynamically learn the potential optimal graph adjacency matrix. The network update process is as follows:

[0127] Loss=CE&MSE(y true ,y pred )+α||Θ||

[0128] Among them, y true is the true label vector of the training data, y pred is the predicted label. Θ is the model parameter, α is the trade-off regularization weight to prevent model overfitting in parameter learning, CE is the cross entropy, and MSE is the mean square error.

[0129] The present invention constructs a K-order adaptive up-order network for adaptive up-order fusion brain regions, captures high-order potential patterns, calculates the internal connectivity of the fused brain region, selects the brain region that is fused with the K-order brain region in the current state to obtain the highest internal connectivity, and gradually fuses the K-order brain region with other brain regions to obtain a global generated graph containing first-order features and high-order potential patterns between all brain regions. Finally, based on the dynamic graph convolutional neural network (DGCNN, the state classification of different cognitive tasks can be performed to improve the accuracy and generalization performance of EEG signal recognition.

[0130] Verification Example

[0131] The present invention has carried out verification experiments on three EEG datasets of different cognitive tasks (SEED-VIG, SEED-IV, BCI_C_IV_2a), and has verified the robustness and generalization of the proposed learning strategy in decoding cognitive tasks. In the experiment, based on previous studies, the commonly used features of various cognitive tasks were used: fatigue (raw data), emotion (differential entropy), and motor imagery (power spectral density), and the EEG features of various cognitive tasks were filtered into 5 frequency bands through a bandpass filter, and the range of each frequency band was roughly (delta 0.5-4Hz, theta 4-8Hz, alpha 8-14Hz, beta 12-30Hz, gamma 30-50Hz), the graph convolution order was set to 2, and the dropout coefficient was 0.5. The model parameters were optimized using the Adam optimizer using a gradient descent strategy. The learning rate search range for different cognitive tasks and different experimental subjects was [0.001, 0.1], and the search range for the L2 regularization coefficient was [0.005, 0.1].

[0132] In order to verify the learning strategy of the present invention, the present invention conducted a classification scheme of cross-subject experiments based on previous studies. In the comparative experiment, the present invention reproduced some advanced models and compared them with the SALK proposed by the present invention and the most advanced methods. The present invention will introduce in detail the experimental results of cross-subject experiments in various cognitive tasks.

[0133] The present invention takes the optimal brain region combination method for fatigue identification in SEED-VIG as an example to verify the necessity of SALK. SALK in Table 1 represents the adaptive improvement strategy proposed by the present invention.

[0134] Table 1 Ablation study based on SALK (results are shown in the form of ACC / F1 score (%))

[0135]

[0136] Local and Global respectively mean that the local brain area is calculated first, then the order is upgraded and the brain area is directly fused and then calculated. Figure 3 and Figure 4 As shown. It can be found that when the model directly learns global features, the recognition effect when there are fewer brain regions is worse than the recognition effect of first fusing local brain regions for learning. As the number of brain regions increases, the global advantage gradually emerges. However, both methods directly fuse brain regions without extracting hidden relationships between brain regions. The SALK method proposed in the present invention can effectively learn the potential relationship patterns between local brain regions, so the fatigue recognition accuracy and f1 score are 3.2% and 2.15% and 2.7% and 2.9% higher than the above two methods, respectively.

[0137] 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.

[0138] 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 comprising 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.

[0139] 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 A step that specifies a function in one or more boxes.

[0140] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0141] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A method for EEG signal recognition based on local-order global learning strategy, characterized in that: The following steps are involved: Obtaining the EEG signal to be identified; Constructing an EEG signal recognition model and pre-training it; the EEG signal recognition model includes a local feature extraction module, a K-order directed dynamic order-up learning module and a graph learning module; The local feature extraction module is used to extract the pairwise relationship between the channel features of the EEG signal to be identified, and the local feature node value of each brain functional area is obtained; The K-order directed dynamic ascending learning module is used to fuse the features of all pairwise brain functional areas, and the first-order hidden features between the pairwise brain functional areas are extracted to obtain the first-order joint brain functional area feature map; then the correlation scores of the strength of the internal connectivity of the brain functional areas are calculated, and the most active first-order joint brain area under the scene state is taken as the basic brain functional area, and the remaining brain functional areas are gradually integrated to obtain the global brain functional area feature map; The K-order directed dynamic ascending learning module is used to fuse the features of all the two brain functional areas, and the first-order hidden features between the two brain functional areas are extracted to obtain the first-order joint brain functional area feature map, which specifically includes the following steps: The local feature node values ​​of each brain functional area are subjected to singular value decomposition, and then the frequency domain features of the two brain functional areas are extracted and fused to obtain the frequency domain feature information containing the two brain functional areas; The frequency domain feature information of the two brain functional areas is used to respectively update the internal channel importance weights of the two brain functional areas affected by the frequency domain information to obtain a brain area feature map; Perform singular value decomposition on the brain region feature map, extract the first-order hidden features between the two brain functional areas, and obtain the first-order joint brain functional area feature map, which specifically includes: Perform singular value decomposition on the brain region feature map to extract the first-order time domain information; The extracted first-order time domain information is fused to obtain first-order time domain fusion information; The internal channel importance weights of the two brain functional areas are combined to obtain the global channel information of the two brain functional areas; The first-order time-domain fusion information is used to update the global channel information of the two brain functional areas, and the first-order hidden features of the brain functional areas are obtained; The first-order brain function area hidden features are fused with the brain area feature map to obtain a complete first-order joint brain function area feature map; the graph learning module is used to calculate the cross-correlation between the channels of the global brain area according to the global brain function area feature map, and then the attention mechanism is used for self-updating and classification to obtain the EEG signal recognition result.

2. The method for EEG signal recognition based on local-order global learning strategy according to claim 1, characterized in that: The local feature extraction module is used to extract the pairwise relationship between the channel features of the EEG signal to be identified, and the local feature node value of each brain functional area is obtained, which specifically includes the following steps: Using the Ghost module to generate multiple frequency band feature node values ​​according to the EEG signal to be identified; A point convolution module is used to generate multiple EEG channels of the same length according to the values ​​of multiple frequency band feature nodes, and a channel mapping diagram generated by mapping the channels to the new space is obtained; The frequency band attention module is used to compress the channel mapping image and calculate the frequency band attention feature node value; at the same time, the spatial attention module is used to reduce the dimension of the channel mapping image and calculate the spatial attention feature node value; finally, the frequency band attention feature node value and the spatial attention feature node value are fused to generate the spatial mapping image of each brain functional area; The BiGRU module is used to capture the temporal dependency between channels in the spatial map, and the enhanced spatial map of each brain functional area is obtained; The fully connected layer is used to perform kernel-level fusion on the channel map and the enhanced spatial map of each brain functional area to capture the local features of the nodes in each brain functional area and obtain the local feature node values ​​of each brain functional area.

3. The method for EEG signal recognition based on local-order global learning strategy according to claim 1, characterized in that: Calculate the correlation score of the strength of the internal connectivity of the brain functional area, take the highest active first-order joint brain area under the scene state as the basic brain functional area, gradually integrate the remaining brain functional areas, and obtain the global brain functional area feature map, which specifically includes the following steps: The correlation score of the strength of internal connectivity of each brain functional area is calculated based on the first-order joint brain functional area feature map; The fused channel feature attention value is calculated based on the correlation score between the channel shared attention vector and the strength of the internal connectivity of each brain functional area; According to the comparison of the attention values ​​of the fusion channel features, the joint brain functional area with the strongest internal connectivity is selected, and the remaining brain functional areas are further fused to obtain the global brain functional area feature map.

4. The method for EEG signal recognition based on local-order global learning strategy according to claim 3, characterized in that: Calculating the correlation score of the strength of internal connectivity of each brain functional area based on the first-order joint brain functional area feature map specifically includes the following steps: The weight matrix is ​​used to perform nonlinear transformation on the channel features of the first-order joint brain functional area feature map, and the time-domain shared attention vector is used to update the map correlation features of each channel; The graph correlation features of each channel are fused to obtain the correlation score of each channel.

5. The method for EEG signal recognition based on local-order global learning strategy according to claim 4, characterized in that: After calculating the correlation scores of the first-order joint brain function area feature maps with set annotations, the three-standard deviation method is used to select the average of the data within the three-standard deviation range to select the strongly correlated brain areas of the current batch, and the data outside the three-standard deviation range is selected as noise data.

6. The method for EEG signal recognition based on local-order global learning strategy according to claim 1, characterized in that: The graph learning module is used to calculate the cross-correlation between channels in the global brain region according to the feature map of the global brain function area, and then the attention mechanism is used for self-updating and classification to obtain the EEG signal recognition result, which specifically includes the following steps: Perform dimension conversion and feature fusion on the feature map of global brain function areas to obtain the cross-correlation between channels of the global brain function areas; The DGCNN module is used to update the original node features according to the cross-correlation between channels in the global brain functional area; Use attention mechanism to self-update graph learning module; The output feature map of the updated graph learning module is input into the fully connected layer for classification to obtain the EEG signal recognition result.

7. The method for EEG signal recognition based on local-order global learning strategy according to claim 1, characterized in that: The cross entropy loss function is used for classification.

8. The method for EEG signal recognition based on local-order global learning strategy according to claim 1, characterized in that: Pre-training uses the BP algorithm for back-propagation to dynamically learn the potential optimal graph adjacency matrix.