Task state EEG channel attention map feature acquisition method based on frequency correlation analysis
Through frequency correlation analysis and graph convolution technology, task-related features in EEG signals are extracted, which solves the problem of spatial feature extraction of brain areas in EEG signals and improves the efficiency and accuracy of task-state EEG decoding.
Patent Information
- Application Number
- CN202410755272.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult to effectively extract task-related spatial distribution characteristics of brain areas and causal and interactive relationships between different brain areas from EEG signals with existing technology, resulting in low task-state EEG decoding efficiency.
A task-state EEG channel attention map feature acquisition method based on frequency correlation analysis is adopted, through short-time Fourier transform, energy feature extraction and tiling reconstruction, brain network topology map construction, hub node attention mechanism and graph convolution, etc. , calculate the frequency correlation and functional connectivity between channels, construct task correlation graph features, and use the residual network for learning and classification prediction.
It improves the efficiency of brain information decoding, accurately extracts task-related graph features, enhances the understanding of the frequency domain neural synergy mechanism of the brain during task execution, and improves the accuracy of task-state EEG decoding.
Smart Images

Figure CN118734055A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of brain information decoding, and in particular relates to a method for acquiring characteristics of task-state EEG channel attention maps based on frequency correlation analysis. Background Art
[0002] Brain science is recognized as a frontier of science and technology. Brain research and application based on information science mainly include three aspects: brain information acquisition, brain information decoding and application. Brain information decoding, also known as brain intention information feature extraction and recognition, is one of the most important research areas in brain science. Its purpose is to interpret brain intention by capturing spontaneous or induced EEG data. At present, many studies have begun to focus on the spatial distribution of the brain to obtain task-related graph features, such as using graph convolutional neural networks (GCNs) and graph attention networks (GATs). However, there are still certain difficulties in mining spatial node information associated with tasks to obtain graph features. Due to the low spatial resolution characteristics of EEG, it is difficult to directly obtain the spatial distribution characteristics of brain regions associated with tasks from multi-channel signals, and the causal and interactive relationships between channel signals in different brain regions are also unclear. When the brain performs specific tasks, the participation and interaction of different brain functional areas are different. Summary of the invention
[0003] The purpose of the present invention is to mine the task-related graph feature space from the brain network topology structure and guide task-state EEG decoding. A method for acquiring task-state EEG channel attention graph features based on frequency correlation analysis is proposed.
[0004] The present invention focuses on the task-state brain network graph expression of frequency correlation analysis between EEG channels. At the same time, three methods are used to calculate connectivity in brain functional connectivity analysis, and the connectivity of EEG frequency band data features between channels is calculated from different angles, further expressing more effective interaction information of different spatial nodes. The interactive information is graphed, and then the graph features associated with the task are obtained through channel attention. The graph features obtained by this method can improve the efficiency of brain information decoding.
[0005] The specific technical solution is:
[0006] Step 1: pre-process the time series EEG signal and connect the channel and the time series EEG signal in series;
[0007] Step 2: Use short-time Fourier transform to convert the EEG signals connected in series in step 1 into the time-frequency domain;
[0008] Step 3: extract the energy features of the frequency band in the time-frequency domain of step 2 and perform energy feature flattening reconstruction;
[0009] Step 4: Use the energy characteristics of each channel obtained in step 3 to construct a task-state brain network topology map of the frequency correlation between channels;
[0010] Step 5: Use the brain network topology map obtained in step 4 to input into the hub node attention mechanism to obtain the graph features for decoding task associations;
[0011] Step 6: Use the residual network to learn the acquired graph features and use the softmax function to perform task classification prediction.
[0012] The specific steps of step 2 are:
[0013] Use STFT transform to calculate the time-frequency information of EEG data:
[0014]
[0015] Where w(t-τ) is a window function and s(τ) is the signal to be transformed.
[0016] Step three is as follows:
[0017] Extract the energy features in step 2, and use the Parseval energy integral equation to select the energy of each frequency band signal after STFT transformation:
[0018] E ij =∫S ij (t) 2 dt(2)
[0019] Where S ij is the reconstructed signal, i,j represents the jth frequency band of the i-th channel.
[0020] Step 4 is as follows:
[0021] After obtaining the EEG frequency band energy features in step 3, three functional connectivity analysis methods are used to analyze the correlation of energy features of different channels. As the basis for graph connection edges, the connectivity of EEG frequency band data features between channels is calculated from different angles:
[0022] Normalized mutual information NMI quantifies the amount of information two signals share with each other. Define ρ(x) = P r {X = x} and ρ(y) = P r {Y=y} is the probability density function of variables X and Y.
[0023]
[0024] Normalized mutual information is used to measure the connectivity between variables:
[0025]
[0026] Where X and Y represent the energy feature sets of different frequency bands of different channels, I(X; Y) represents the mutual information, and I Norm (X; Y) is the normalized mutual information, and ρ(x, y) represents the probability that the random variables x and y take a certain value at the same time. They represent the Shannon entropy of variables X and Y, respectively. The normalized mutual information between two EEG channels can be used to measure the strength of the functional connection between these electrodes.
[0027] Pearson correlation coefficient PCC is used to measure the correlation between two X c ={x1,x2,...,x n} and Y c ={y1,y2,...,y n}Linear correlation between variables:
[0028]
[0029] Where X c ,Y c Respectively represent the energy feature sets of different frequency bands of different channels, and Represent the mean of the observed variables, and n represents the number of frequency bands. The Pearson correlation coefficient is essentially a normalized measure of covariance, and the resulting value is between -1 and 1. X,Y When it is -1, it means the negative correlation reaches the maximum, when it is 1, it means the positive correlation reaches the maximum, and when it is 0, it means there is no correlation between the variables.
[0030] Phase lock value PLV, also known as phase synchronization index, is a phase-based functional connectivity analysis method that can measure the phase difference between two channel signals or feature vectors. It is defined as:
[0031]
[0032] in Represents different channel signals x t and t The phase value of T represents the different time points where the frequency band is taken. The phase lock value ranges from [0,1]. The larger the phase lock value, the stronger the phase synchronization correlation between variables. Based on different connectivity analyses, effective task association graph knowledge can be obtained to provide assistance.
[0033] Step 5 is as follows:
[0034] After the EEG graph structure is constructed in step 4, the task-related graph knowledge is obtained through the hub node attention mechanism and graph convolution. The constructed EEG spatial graph structure G = (V, ε) is input into the decision window of V, and the channel nodes are modulated for attention, V = [v1, ..., v i ,...v N ] represents the set of channel nodes after the graph structure is constructed in step 4, ε = [(v1,v2), (v2,v3), ..., (v i ,v j )] represents the set of node edges, and then generates the spatial representation of the input EEG signal Where N is the total number of nodes, (v i ,v j ) indicates that there is an edge between the i-th node and the j-th node, and r i The i-th node ν i spatial expression.
[0035] Second, a simple gating mechanism is adopted to exploit the aggregate information, which is parameterized by two fully connected layers FC. The gating mechanism dynamically generates differential weights for individual nodes according to the importance of task decoding participation.
[0036] m=w2(tanh(w1R+b1))+b2 (7)
[0037] Among them, parameters w1 and w2 are the parameters of the first and second fully connected layers respectively. b1 and b2 are the bias terms of the two fully connected layers. is the attention mask generated by the spatial attention mechanism, and then, V is modulated by the attention mask m as follows:
[0038]
[0039] Among them, V represents the set of the above channel nodes, V' represents the reconstructed channel node obtained after the attention mask is assigned, Represents point-by-point multiplication. Through the hub attention mechanism, the EEG spatial graph structure is reconstructed. Since only the node values are reconstructed, the reconstructed graph is G'={V',A}, where A represents the adjacency matrix constructed by the node set after node reconstruction and the original node edge set.
[0040] Through EEG graph construction, we try to learn a graph structure that is optimized to generate new task-related spatial graph knowledge. And we hope to reconstruct the graph node values based on the topological connections of node V' with other nodes and their values. Obviously, the stronger the connection between two nodes, the higher the level of inter-node dependency. Therefore, the values of nodes and edges not only change with the input signal, but are also constrained by the underlying graph structure relationship. Here, we hope to learn a set of parameters that describe the underlying graph structure.
[0041] Graph convolution GCN is applied to the input graph G' to modulate the value of the graph node V'. Graph convolution, also known as spectral graph filtering, extends the convolution operation to the graph domain using spectral filters calculated from the normalized graph Laplacian operator. The Laplacian matrix of the graph G can be expressed as:
[0042] L=DA(9)
[0043] Where D is the degree matrix of the graph, d ii =∑ j a ij , a ij It represents the weight of the edge between the i-th and j-th nodes, d ii represents the sum of the weights of all edges connected to node i. Here, d ij The sum range is from 1 to N, where N is the total number of nodes in the graph. Since the adjacency matrix A is symmetric and semi-positive, it can be decomposed by eigendecomposition. Orthogonalize and diagonalize as follows:
[0044] L=UΛU T (10)
[0045] where Λ is the diagonal matrix of eigenvalues (spectrum), and U is the corresponding eigenvector, U T is the transpose of the eigenvector U. For a given spatial signal Its graph Fourier transform can be expressed as follows:
[0046]
[0047] The graph convolution operator *g can be applied as follows through spectral graph convolution:
[0048] g θ * g z=g θ (L)z=g θ (UΛU T )z=Ug θ (Λ)U T z(12)
[0049] where g θ (·) represents the filter function, gθ (Λ) represents a set of diagonal matrices containing learnable parameters Θ to describe the graph structure, and z is The inverse transform of .
[0050] At runtime, the convolution process parameterized by parameter Θ accepts an instantiation of node V' (i.e., z∈V') and the adjacency matrix A as input and generates a graph G'={V',ε'} as output, where V',ε' are the updated node set and node edge set after convolution. Note that G' is a weighted graph of the original EEG graph structure G. Here G' is further modulated by the graph convolution layer to generate G'. Graph convolution is applied to the instantiation of G' (i.e., G'={V',A'}), where A' represents the new adjacency matrix constructed by the updated V' node set and ε' node edge set. Assuming that filters are used in the graph convolution, it will present a hub node spatial structure that is closely related to the task. These spatial structures will be regarded as features from a spatial topological perspective. Finally, through further processing by the neural network, these features will be used to guide the decoding of task-state EEG signals.
[0051] Step 6 is as follows:
[0052] After obtaining the graph features in step 5, they are input into the residual network for learning. ResNet overcomes the gradient vanishing problem in deep neural networks by introducing the concept of residual learning, allowing the network to reach unprecedented depth. In ResNet, each layer learns the residual (i.e., difference) between the input and output instead of directly learning the output. This structure is implemented through jump connections, allowing the gradient to propagate directly to earlier layers. A residual unit is as follows:
[0053] e=F(c,{W i}+c)(13)
[0054] c and e are the input and output vectors of the layer under consideration. The function F(c,{W i}) represents the residual mapping to be learned.
[0055] In the EEG signal decoding task, ResNet can deeply explore the complex patterns and features in EEG signals and improve classification accuracy. At the same time, its residual structure helps maintain stable training in deep networks, prevent overfitting, and better process high-dimensional and time-series EEG data. The acquired graph features are input into the residual network for learning, and finally the task is classified and predicted through softmax, which is defined as follows:
[0056]
[0057] In the formula, f iis the output of the ith node, h is the number of output nodes, and also the number of classification categories. The softmax function can be used to convert the output values of multiple classifications into a probability distribution in the range of [0,1]. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a diagram of an implementation scheme for extracting frequency band energy characteristics of the present invention;
[0059] Figure 2 This is a diagram of an implementation scheme for constructing a brain network topology structure for frequency correlation between channels according to the present invention;
[0060] Figure 3 It is a diagram of an implementation plan for obtaining a task association diagram feature of the present invention;
[0061] Figure 4 It is the ResNet classification network structure diagram of the present invention;
[0062] Figure 5 It is the technical roadmap of the task-state EEG channel attention map feature acquisition solution based on frequency correlation analysis of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] Embodiment 1: A method for acquiring characteristics of task-state EEG channel attention graph based on frequency correlation analysis, comprising the following steps:
[0065] Step 1: pre-process the time series EEG signal and connect the channel and the time series EEG signal in series;
[0066] Step 2: Use short-time Fourier transform to convert the EEG signals connected in series in step 1 into the time-frequency domain;
[0067] Step 3: extract the energy features of the frequency band in the time-frequency domain of step 2 and perform energy feature flattening reconstruction;
[0068] Step 4: Use the energy characteristics of each channel obtained in step 3 to construct a task-state brain network topology map of the frequency correlation between channels;
[0069] Step 5: Use the brain network topology map obtained in step 4 to input into the hub node attention mechanism to obtain the graph features for decoding task associations;
[0070] Step 6: Use the residual network to learn the acquired graph features and use the softmax function to perform task classification prediction.
[0071] Among them, step 2 to step 6 specifically include:
[0072] 1. Frequency band energy feature extraction strategy
[0073] Figure 1 This is the feature extraction method adopted in the present invention. By analyzing the EEG energy distribution in different frequency bands, the activity patterns of the brain in different states can be understood. STFT can analyze signals in both time and frequency domains at the same time. By decomposing the signal and extracting the energy of each frequency band, a set of rich features can be obtained, which are helpful for subsequent EEG decoding tasks. The extraction of time-frequency information is shown in formula (1).
[0074]
[0075] Where w(t-τ) is a window function and s(τ) is the signal to be transformed.
[0076] The transformed EEG signal is used to extract the frequency band energy features, as shown in the following formula (2).
[0077] E ij =∫S ij (t) 2 dt(2)
[0078] Where S ij is the reconstructed signal, i,j represents the jth frequency band of the i-th channel.
[0079] Analyzing the energy of different frequency bands provides a dynamic and detailed way to understand EEG signals and enhances the ability of decoding and classification tasks. In addition, the extracted energy feature vectors are reconstructed and tiled, which can integrate information from different frequency bands and comprehensively reflect the overall energy distribution, which helps to fully understand the characteristics and properties of the signal.
[0080] 2. Strategy for constructing brain network topology structure with frequency correlation between channels
[0081] Figure 2 The present invention adopts three types of connectivity analysis to construct a correlation graph structure. After obtaining the EEG frequency band energy characteristics, it is also necessary to construct a brain network graph based on different channel information. In the brain functional connectivity analysis, the present invention intends to adopt three functional connectivity analysis methods: 1) normalized mutual information, 2) Pearson correlation coefficient, 3) phase locking value as the basis for the graph connection edge, and calculate the connectivity of the EEG frequency band data characteristics between channels from different angles. The specific formulas are shown in (3)-(6):
[0082] Normalized mutual information NMI quantifies the amount of information two signals share with each other. Define ρ(x) = P r {X = x} and ρ(y) = P r {Y=y} is the probability density function of variables X and Y.
[0083]
[0084] Normalized mutual information is used to measure the connectivity between variables:
[0085]
[0086] Where I(X;Y) represents mutual information, I Norm (X; Y) is the normalized mutual information, and ρ(x, y) represents the probability that the random variables x and y take a certain value at the same time.
[0087] They represent the Shannon entropy of variables X and Y, respectively. The normalized mutual information between two EEG channels can be used to measure the strength of the functional connection between these electrodes.
[0088] Pearson correlation coefficient PCC is used to measure the correlation between two X c ={x1,x2,...,x n} and Y c ={y1,y2,...,y n}Linear correlation between variables.
[0089]
[0090] Where X c ,Y c Respectively represent the energy feature sets of different frequency bands of different channels, and Represent the mean of the observed variables, and n represents the number of frequency bands. The Pearson correlation coefficient is essentially a normalized measure of covariance, and the resulting value is between -1 and 1. X,Y When it is -1, it means the negative correlation reaches the maximum, when it is 1, it means the positive correlation reaches the maximum, and when it is 0, it means there is no correlation between the variables.
[0091] Phase lock value PLV, also known as phase synchronization index, is a phase-based functional connectivity analysis method that can measure the phase difference between two channel signals or feature vectors. It is defined as:
[0092]
[0093] in Represents different channel signals x t andt The phase value of T represents the different time points where the frequency band is taken. The phase lock value ranges from [0,1]. The larger the phase lock value, the stronger the phase synchronization correlation between variables. Based on different connectivity analyses, effective task association graph knowledge can be obtained to provide assistance.
[0094] 3. Obtaining Task Association Graph Feature Strategy
[0095] Figure 3 This is a method for obtaining task-related graph features. After the EEG graph structure is constructed, the task-related graph knowledge is obtained through the hub node attention mechanism and graph convolution. The constructed EEG spatial graph structure G = (V, ε) is input into the decision window of V, and the channel nodes are modulated for attention, V = [v1,...,v i ,...v N ] represents the set of channel nodes after the graph structure is constructed in step 4, ε = [(v1,v2), (v2,v3), ..., (v i ,v j )] represents the set of node edges, and then generates the spatial representation of the input EEG signal Where N is the total number of nodes, (v i ,v j ) indicates that there is an edge between the i-th node and the j-th node, and r i The i-th node ν i The spatial expression of
[0096] Second, a simple gating mechanism is adopted to exploit the aggregate information, which is parameterized by two fully connected layers FC. The gating mechanism dynamically generates differential weights for individual nodes according to the importance of task decoding participation.
[0097] m=w2(tanh(w1R+b1))+b2 (7)
[0098] Among them, parameters w1 and w2 are the parameters of the first and second fully connected layers respectively. b1 and b2 are the bias terms of the two fully connected layers. is the attention mask generated by the spatial attention mechanism, and then, V is modulated by the attention mask m as follows:
[0099]
[0100] Among them, V represents the set of the above channel nodes, V' represents the reconstructed channel node obtained after the attention mask is assigned, Represents point-by-point multiplication. Through the hub attention mechanism, the EEG spatial graph structure is reconstructed. Since only the node values are reconstructed, the reconstructed graph is G'={V',A}, where A represents the adjacency matrix constructed by the node set after node reconstruction and the original node edge set.
[0101] Through EEG graph construction, we attempt to learn a graph structure that is optimized to generate new task-related spatial graph knowledge. And we hope to reconstruct the graph node values based on the topological connections of node V' with other nodes and their values. Obviously, the stronger the connection between two nodes, the higher the level of inter-node dependency. Therefore, the values of nodes and edges not only change with the input signal, but are also constrained by the underlying graph structure relationships. Here, we can hope to learn a set of parameters that describe the underlying graph structure.
[0102] Graph convolution GCN is applied to the input graph G' to modulate the value of the graph node V'. Graph convolution, also known as spectral graph filtering, extends the convolution operation to the graph domain using spectral filters calculated from the normalized graph Laplacian operator. The Laplacian matrix of the graph G can be expressed as:
[0103] L=DA(9)
[0104] Where D is the degree matrix of the graph, d ii =∑ j a ij , a ij It represents the weight of the edge between the i-th and j-th nodes, d ii represents the sum of the weights of all edges connected to node i. Here, d ij The sum range is from 1 to N, where N is the total number of nodes in the graph. Since the adjacency matrix A is symmetric and semi-positive, it can be decomposed by eigendecomposition. Orthogonalize and diagonalize as follows:
[0105] L=UΛU T (10)
[0106] where Λ is the diagonal matrix of eigenvalues (spectrum), and U is the corresponding eigenvector, U T is the transpose of the eigenvector U. For a given spatial signal Its graph Fourier transform can be expressed as follows:
[0107]
[0108] The graph convolution operator *g can be applied as follows through spectral graph convolution:
[0109] g θ * g z=g θ (L)z=g θ(UΛU T )z=Ug θ (Λ)U T z(12)
[0110] where g θ (·) represents the filter function, g θ (Λ) represents a set of diagonal matrices containing learnable parameters Θ to describe the graph structure, and z is The inverse transform of .
[0111] At runtime, the convolution process parameterized by parameter Θ accepts an instantiation of node V' (i.e., z∈V') and the adjacency matrix A as input and generates a graph G'={V',ε'} as output, where V',ε' are the updated node set and node edge set after convolution. Note that G' is a weighted graph of the original EEG graph structure G. Here G' is further modulated by the graph convolution layer to generate G'. Graph convolution is applied to the instantiation of G' (i.e., G'={V',A'}), where A' represents the new adjacency matrix constructed by the updated V' node set and ε' node edge set. Assuming that filters are used in the graph convolution, it will present a hub node spatial structure that is closely related to the task. These spatial structures will be regarded as features from a spatial topological perspective. Finally, through further processing by the neural network, these features will be used to guide the decoding of task-state EEG signals.
[0112] 4. Deep learning model building strategy
[0113] Figure 4 This is the residual network model block diagram. ResNet overcomes the gradient vanishing problem in deep neural networks by introducing the concept of residual learning, allowing the network to reach unprecedented depth. In ResNet, each layer learns the residual (i.e., difference) between the input and output instead of directly learning the output. This structure is implemented through jump connections, allowing the gradient to propagate directly to earlier layers. A residual unit is as follows:
[0114] e=F(c,{W i}+c)(13)
[0115] c and e are the input and output vectors of the layer under consideration. The function F(c,{W i}) represents the residual mapping to be learned.
[0116] In the EEG signal decoding task, ResNet can deeply explore the complex patterns and features in EEG signals and improve classification accuracy. At the same time, its residual structure helps maintain stable training in deep networks, prevent overfitting, and better process high-dimensional and time-series EEG data. The acquired graph features are input into the residual network for learning, and finally the task is classified and predicted through softmax, which is defined as follows:
[0117]
[0118] In the formula, f i is the output of the ith node, h is the number of output nodes, and also the number of classification categories. The softmax function can be used to convert the output values of multiple classifications into a probability distribution in the range of [0,1].
[0119] 5. Summary
[0120] Due to the low spatial resolution of EEG, it is complicated to directly extract the spatial features of brain regions related to specific tasks from multi-channel EEG signals. In addition, the interactions and causal relationships between different brain regions are often difficult to clearly identify. During the execution of a specific task, the degree of involvement of each brain functional area and its interaction pattern are different, which is particularly critical for accurate task-state EEG decoding. Therefore, how to capture the local correlation of the brain when performing a specific task, and how to construct features based on this correlation to improve decoding efficiency is a difficult problem.
[0121] The present invention proposes a method for extracting features of attention graphs of task-state EEG channels based on frequency correlation analysis. This method can effectively explore the neural synergy mechanism between brain regions at the frequency domain level when the brain performs specific tasks. By analyzing the correlation and strength of these synergies, the graph features that are crucial to EEG decoding can be accurately extracted, thereby providing strong support for the subsequent decoding process. This method can enhance the present invention's understanding of the dynamics of brain functional networks. In addition, this work can also contribute to further research and practical applications in the field of EEG decoding.
[0122] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A method for acquiring the feature of task-state EEG channel attention map based on frequency correlation analysis, characterized in that: The steps include: Step 1: pre-process the time series EEG signal and connect the channel and the time series EEG signal in series; Step 2: Use short-time Fourier transform to convert the EEG signals connected in series in step 1 into the time-frequency domain; Step 3: extract the energy features of the frequency band in the time-frequency domain of step 2 and perform energy feature flattening reconstruction; Step 4: Use the energy characteristics of each channel obtained in step 3 to construct a task-state brain network topology map of the frequency correlation between channels; Step 5: Use the brain network topology map obtained in step 4 to input into the hub node attention mechanism to obtain the graph features for decoding task associations; Step 6: Use the residual network to learn the acquired graph features and use the softmax function to perform task classification prediction.
2. The method for acquiring the feature of the task-state EEG channel attention map based on frequency correlation analysis according to claim 1 is characterized in that: The specific steps of step 2 are: Use STFT transform to calculate the time-frequency information of EEG data: Where w(t-τ) is a window function and s(τ) is the signal to be transformed.
3. The method for acquiring the feature of the task-state EEG channel attention map based on frequency correlation analysis according to claim 1, characterized in that: The step three is specifically as follows: Extract the energy features in step 2, and use the Parseval energy integral equation to select the energy of each frequency band signal after STFT transformation: E ij =∫S ij (t) 2 dt(2) Where S ij is the reconstructed signal, i,j represents the jth frequency band of the i-th channel.
4. The method for acquiring the feature of the task-state EEG channel attention map based on frequency correlation analysis according to claim 1, characterized in that: The step 4 is specifically as follows: After obtaining the EEG frequency band energy characteristics in step 3, three functional connectivity analysis methods are used to analyze the correlation of energy characteristics of different channels as the basis for graph connection edges, and the connectivity of EEG frequency band data characteristics between channels is calculated from different angles: Normalized mutual information NMI quantifies the amount of information shared between two signals, and defines ρ(x) = P r {X = x} and ρ(y) = P r {Y=y} is the probability density function of variables X and Y; Normalized mutual information is used to measure the connectivity between variables: Where X and Y represent the energy feature sets of different frequency bands of different channels, I(X; Y) represents the mutual information, and I Norm (X; Y) is the normalized mutual information, ρ(x, y) represents the probability that random variables x and y take a certain value at the same time, represent the Shannon entropy of variables X and Y, respectively. The normalized mutual information between two EEG channels is used to measure the strength of functional connectivity between these electrodes; Pearson correlation coefficient PCC is used to measure the correlation between two X c ={x1,x2,...,x n } and Y c ={y1,y2,...,y n }Linear correlation between variables: Where X c ,Y c Respectively represent the energy feature sets of different frequency bands of different channels, and represents the mean of the observed variable, n represents the number of frequency bands, and the Pearson correlation coefficient is essentially a normalized measure of covariance. The value of the result is between -1 and 1. X,Y When it is -1, it means that the negative correlation reaches the maximum, when it is 1, it means that the positive correlation reaches the maximum, and when it is 0, it means that there is no correlation between the variables; Phase lock value PLV, also known as phase synchronization index, is a phase-based functional connectivity analysis method that measures the phase difference between two channel signals or feature vectors; it is defined as: in Represents different channel signals x t and t The phase value of the task association graph is obtained based on different connectivity analyses, and T represents the time point at which the frequency band is taken. The phase lock value ranges from [0,1]. The larger the phase lock value, the stronger the phase synchronization correlation between the variables.
5. The method for acquiring the feature of the task-state EEG channel attention map based on frequency correlation analysis according to claim 1, characterized in that: The step five is specifically as follows: After the EEG graph structure is constructed in step 4, the task association graph knowledge is obtained through the hub node attention mechanism and graph convolution. The constructed EEG spatial graph structure G = (V, ε) is input into the decision window of V, and the channel nodes are modulated for attention. V = [v1, ..., v i ,...v N ] represents the set of channel nodes after the graph structure is constructed in step 4, ε = [(v1,v2), (v2,v3), ..., (v i ,v j )] represents the set of node edges, and then generates the spatial representation of the input EEG signal Where N is the total number of nodes, (v i ,v j ) indicates that there is an edge between the i-th node and the j-th node, and r i The i-th node ν i spatial expression; Second, a simple gating mechanism is used to exploit the aggregate information. The parameters of the mechanism are constructed by two fully connected layers FC. The gating mechanism dynamically generates differential weights for individual nodes according to the importance of task decoding participation: m=w2(tanh(w1R+b1))+b2 (7) Among them, parameters w1 and w2 are the parameters of the first and second fully connected layers respectively, b1 and b2 are the bias terms of the two fully connected layers, is the attention mask generated by the spatial attention mechanism, and then, V is modulated by the attention mask m as follows: Among them, V' represents the reconstructed channel node obtained after the attention mask is assigned. Represents point-by-point multiplication. Through the hub attention mechanism, the EEG spatial graph structure is reconstructed. Since only the node values are reconstructed, the reconstructed graph is G'={V',A}, where A represents the adjacency matrix constructed by the node set and the node edge set after the node reconstruction. Through the EEG graph construction, an attempt is made to learn a graph structure that is optimized to generate new task-related spatial graph knowledge, and it is hoped that the graph node values can be reconstructed based on the topological connection between the node V' and other nodes and their values. Obviously, the stronger the connection between two nodes, the higher the level of inter-node dependency. Therefore, the values of nodes and edges not only change with the input signal, but are also constrained by the underlying graph structure relationship. Here, it is hoped that a set of parameters that describe the underlying graph structure can be learned. Apply graph convolution GCN to the input graph G' to modulate the value of the graph node V'. Graph convolution, also known as spectral graph filtering, extends the convolution operation to the graph domain using a spectral filter calculated from the normalized graph Laplacian operator. The Laplacian matrix of the graph G is expressed as: L=DA(9) Where D is the degree matrix of the graph, d ii =Σ j a ij , a ij It represents the weight of the edge between the i-th and j-th nodes, d ii Represents the sum of the weights of all edges connected to node i. Here, d ij The summation range is from 1 to N. Since the adjacency matrix A is symmetric and semi-positive, the eigendecomposition is Orthogonalize and diagonalize as follows: L=UΛU T (10) where Λ is the diagonal matrix of eigenvalues and U is the corresponding eigenvector, U T is the transpose of the eigenvector U. For a given spatial signal The Fourier transform of the graph is shown as follows: The graph convolution operator *g is applied through spectral graph convolution as follows: g θ * g z=g θ (L)z=g θ (UΛU T )z=Ug θ (Λ)U T z(12) where g θ (·) represents the filter function, g θ (Λ) represents a set of diagonal matrices containing learnable parameters Θ to describe the graph structure, and z is The inverse transformation of At runtime, the convolution process parameterized by parameter Θ accepts an instantiation of node V', i.e., z∈V', and the adjacency matrix A as input, and generates a graph G" = {V", ε'} as output, where V", ε' are the updated node set and node edge set after convolution. Note that G' is a weighted graph of the original EEG graph structure G. Here G' is further modulated by the graph convolution layer to generate G", and the graph convolution is applied to the instantiation of G", i.e., G" = {V", A'}, where A' represents the new adjacency matrix constructed by the updated V" node set and ε' node edge set. Assuming that filters are used in the graph convolution, it will present a hub node spatial structure that is closely related to the task. These spatial structures will be regarded as features from a spatial topological perspective. Finally, through further processing by the neural network, these features will be used to guide the decoding of task-state EEG signals.
6. The method for acquiring the feature of the task-state EEG channel attention map based on frequency correlation analysis according to claim 1, characterized in that: The step six is specifically as follows: ResNet overcomes the gradient vanishing problem in deep neural networks by introducing the concept of residual learning, allowing the network to reach unprecedented depth. In ResNet, each layer learns the residual between input and output, that is, the difference, rather than directly learning the output. This structure is implemented through jump connections, allowing the gradient to propagate directly to earlier layers. A residual unit is as follows: e=F(c,{W i }+c)(13) c and e are the input and output vectors of the layer under consideration, and the function F(c,{W i }) represents the residual mapping to be learned; The acquired graph features are input into the residual network for learning, and finally the task is classified and predicted through softmax, which is defined as follows: In the formula, f i is the output of the ith node, h is the number of output nodes, which is also the number of classification categories. The softmax function is used to convert the output values of multiple classifications into a probability distribution in the range of [0,1].
Citation Information
Cited By
Epilepsy electroencephalogram signal recognition method, system and equipment and storage medium
CN119279509A
Epilepsy detection method and system based on multi-band brain function network
CN120982974A
Brain network analysis method based on hypergraph and gravitation model
CN122634537A
A brain network analysis method based on hypergraph and gravity model
CN122634537B
Method for processing brain signals
RU2848137C1
