Multi-domain feature fusion network decoding method

Through the multi-domain feature fusion network (MFFNCA) model, combined with LSTM/GRU, CNN, CSP and time-frequency analysis PSD and DE technology, the time domain, spatial domain and frequency domain features of the EEG signal are extracted and fused to solve the problem of fine motor imagination decoding The problem of low precision is solved, and higher decoding accuracy and robustness are achieved.

CN118734249AInactive Publication Date: 2024-10-01HANGZHOU DIANZI UNIV

Patent Information

Application Number
CN202410970676.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology fails to make full use of the information in each feature domain, resulting in the decoding accuracy of fine motor imagery being difficult to reach the ideal state, and the calculation is complex and the generalization ability needs to be verified.

Method used

The multi-domain feature fusion network (MFFNCA) model is used to extract the time domain, spatial domain and frequency domain features of the EEG signal through LSTM/GRU, CNN, CSP and time-frequency analysis PSD and DE technologies, and through feature fusion and fully connected layers Achieve high-precision classification prediction.

Benefits of technology

It significantly improves the decoding accuracy of fine motor brain-computer interfaces, captures more comprehensive signal features, and avoids the problem of insufficient single-domain feature information. Experimental results show that MFFNCA achieved an average accuracy of 70.13% on the MI-2 data set. Better than other comparison methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734249A_ABST
    Figure CN118734249A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-domain feature fusion network decoding method. In order to overcome the problem of poor fine action decoding effect caused by insufficient utilization of feature information in the prior art, the method comprises the following steps: respectively decoding EEG signals based on each feature extraction network in a multi-domain feature fusion network; respectively selecting one decoding effect from each feature extraction network, and combining the decoding effects to obtain an MFFNCA network; the MFFNCA network is provided with two parallel forward channels, the first channel extracts time domain features and spatial domain features, the second channel independently extracts frequency domain features, feature extraction results of the two channels are fused, and classification prediction is completed through a full connection layer and a Sigmoid function. Time domain, space domain and frequency domain features of the EEG signals are extracted respectively, and one channel is combined with channel attention, a residual module, GRU and CNN to enhance the spatial-temporal features; the other channel independently processes frequency domain characteristics; the challenges of multi-domain feature extraction and fusion are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence and machine learning, and in particular to a multi-domain feature fusion network decoding method. Background Art

[0002] In the field of fine motor imagery, current technologies widely use deep learning models such as LSTM, GRU, and CNN, combined with feature extraction methods such as CSP, PSD, and DE, as well as classifiers such as SVM and LDA, to achieve decoding and classification of motor imagery. As a compact network designed specifically for EEG signals, EEGNet effectively extracts EEG signal features through different convolution blocks. In addition, ensemble learning strategies are also used to integrate multi-channel information to improve decoding performance. Despite the diversity of technologies and certain achievements, current technologies fail to fully utilize the rich information contained in each feature domain, resulting in the difficulty in achieving the ideal decoding accuracy of fine motor imagery. The lack of effective fusion and complementarity between the various technologies limits the improvement of overall performance. Therefore, the existing methods do not utilize all feature information and do not enhance feature information, resulting in low decoding effect of the same upper limb fine movements, which is still a problem to be solved.

[0003] For example, a "cognitive signal decoding method based on time-frequency-space attention decoupling" disclosed in Chinese patent literature, with announcement number CN118228771A, includes first constructing a cognitive signal decoding system based on time-frequency-space attention decoupling, which is composed of a frequency domain feature extraction module based on multi-view attention, a spatial domain feature extraction module based on dynamic brain connection map attention, a fusion module, a time domain feature extraction module based on local time sliding window attention, and an aggregation module, and then preparing the data set required for training the decoding system, using the training set in the data set to train the decoding system to obtain a trained decoding system. Finally, the trained decoding system is used to carry out cognitive classification tasks on the input brain cognitive data set to obtain cognitive classification results. It can solve the problems of low global feature utilization and low decoding accuracy caused by mutual interference of feature extraction in different domains to a certain extent. However, its calculation is relatively complex and its generalization ability needs to be verified, and further optimization is needed to improve practical performance. Summary of the invention

[0004] The present invention mainly solves the problem of poor fine movement decoding effect caused by insufficient utilization of feature information in the prior art; it provides a multi-domain feature fusion network decoding method, which constructs an MFFNCA model and integrates multiple technologies such as LSTM / GRU, CNN, CSP, time-frequency analysis PSD and DE to extract the time domain, spatial domain and frequency domain features of EEG signals respectively. The model is divided into two-channel processing, one channel combines channel attention, residual module, GRU and CNN to enhance spatiotemporal features; the other channel independently processes frequency domain features. Through feature fusion and fully connected layers, high-precision classification prediction is achieved, which effectively solves the challenges of multi-domain feature extraction and fusion, and improves the accuracy and robustness of EEG signal decoding.

[0005] The above technical problems of the present invention are mainly solved by the following technical solutions: The present invention includes: a multi-domain feature fusion network composed of time domain, space domain and frequency domain feature extraction networks, and each feature extraction network in the multi-domain feature fusion network is used to decode EEG signals respectively; a decoding effect is selected from each feature extraction network to combine to obtain an MFFNCA network; the MFFNCA network sets two parallel forward channels, channel one extracts time domain features and space domain features, channel two extracts frequency domain features separately, and the feature extraction results of the two channels are fused and classification prediction is completed through a fully connected layer and a Sigmoid function. The multi-domain feature fusion network (MFFNCA) can decode EEG signals more comprehensively and fully by combining time domain, space domain and frequency domain feature extraction networks.

[0006] Preferably, the attention module for enhancing spatial information is introduced in channel one to obtain channel attention, and the residual module is introduced to restore the time domain information based on the input data and its dimension to obtain the feature extraction results of the spatial and time domains; DE is directly used in channel two to extract frequency domain features from the input data; the outputs of the feature extraction results of the two channels are flattened and merged to obtain the fused feature dimensions. By introducing the attention and residual modules to enhance the spatial and temporal features, and directly extracting the frequency domain features with DE, the comprehensiveness of the features is improved after fusion, and the decoding accuracy and stability are enhanced.

[0007] Preferably, the attention module calculates the weight matrix of each channel by analyzing the relationship between channels of the input data. The weight matrix reflects the contribution of different channels to the final features. The input data is weighted based on the weights to enhance the information of important channels and suppress the information of secondary channels. The attention module dynamically adjusts the channel weights to enhance key information, suppress redundancy, and improve feature expression capabilities and model performance.

[0008] Preferably, before extracting spatial features, the channel dimension of the input data is increased to meet the requirements of CNN. After the channel dimension is increased, the spatial features are extracted using CNN, four convolutional layers are set, and the spatial feature dimensions are recalculated and restored before output, which can enhance the feature expression ability and improve the model's ability to capture complex spatial features. Preferably, the size of the fully connected neural network is set to an array consisting of the dimension and the number of categories; the sigmod function is responsible for compressing the value to 0-1, and the function is set to satisfy the sum of the output values ​​of the fully connected neural networks with the same number as the number of categories, so that they are equal to 1. The fully connected layer cooperates with Sigmoid to ensure that the output sum is 1, realize probabilistic classification, and improve the rationality and accuracy of classification decisions.

[0009] As a preferred method, the method also includes the step of visualizing the data set to evaluate the classification effect: using the t-SNE algorithm to map the feature-extracted data to a two-dimensional space, and drawing a scatter plot to intuitively display the classification effect of the sample; comparing the sample distribution before and after feature extraction to verify the effectiveness of feature extraction in improving classification accuracy and discrimination. It can visually display the classification effect, verify the improvement of feature extraction on classification, and enhance the understanding and optimization direction of the model.

[0010] Preferably, LSTM and GRU are used as candidate time domain feature extraction networks, CNN and CSP are used as candidate spatial domain feature extraction networks, and PSD and DE are used as candidate frequency domain feature extraction networks to decode EEG signals; when constructing the model of the MFFNCA network, a residual module is introduced to assist feature extraction by adding an identity mapping. Multiple candidate networks are screened optimally, and the residual module enhances feature extraction, making the MFFNCA model decoding more accurate and improving the EEG signal analysis capability.

[0011] As a preferred method, the input data is directly processed using the discrete energy analysis method. The DE method calculates the energy distribution of the input data in the frequency domain, identifies the key frequency components in the signal, and thus extracts representative frequency domain features. The DE method directly analyzes the frequency domain energy, efficiently extracts key frequency features, simplifies the frequency domain feature extraction process, and improves feature representativeness and classification accuracy.

[0012] Preferably, the attention module obtains the channel attention by calculating the weight matrix of the channel; the output result of the attention module is assumed to have the same dimension as the input data. The same-dimensional output of the attention module can ensure that the channel weight is directly applied to the input, accurately enhance the key channel information, and improve the feature quality.

[0013] As a preferred method, the features extracted from the two channels are flattened, the multi-dimensional feature matrix is ​​converted into a one-dimensional feature vector, and the feature vectors are connected end to end to merge to obtain all the features of the two channels in multiple domains. Flattening and merging features can achieve effective conversion from multi-dimensional to one-dimensional, integrate multi-domain information, and improve the comprehensive feature representation capability of the model.

[0014] The beneficial effects of the present invention are: 1. A multi-domain feature fusion network decoding method of the present invention constructs a multi-domain feature fusion network (MFFNCA) to effectively fuse time domain, frequency domain and spatial domain features, significantly improving the decoding accuracy of fine motor brain-computer interface; compared with the single domain feature extraction method, MFFNCA can capture more comprehensive signal features and avoid the problem of insufficient single domain feature information; experimental results show that MFFNCA achieves an average accuracy of 70.13% on the MI-2 dataset, which is better than other comparison methods, proving the superiority of multi-domain feature fusion in improving decoding performance.

[0015] 2. A multi-domain feature fusion network decoding method of the present invention, MFFNCA network design is flexible and can be compatible with different feature extraction modules, such as LSTM, GRU for time domain feature extraction, CNN, CSP for spatial domain feature extraction, and PSD, DE for frequency domain feature extraction. This design not only enables MFFNCA to be customized and optimized according to different application scenarios and requirements, but also enhances its generalization ability; by introducing deep learning technologies such as residual modules and attention mechanisms, MFFNCA further improves the efficiency and effect of feature extraction, and provides strong support for the development of fine motor brain-computer interface technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is the overall structure diagram of the MFFNCA network of Example 2 of the present invention.

[0017] Figure 2 This is a 4-layer CNN network structure diagram of Example 2 of the present invention.

[0018] Figure 3 It is a comparison chart of different domain feature results of Example 2 of the present invention.

[0019] Figure 4 This is an initialization sample data diagram of Example 2 of the present invention.

[0020] Figure 5 This is a sample data diagram after feature extraction and combination according to Example 2 of the present invention.

[0021] Figure 6 This is a diagram of the accuracy change during the training process of Example 2 of the present invention.

[0022] Figure 7 Schematic diagram of confusion matrix of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0023] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.

[0024] Embodiment 1: A multi-domain feature fusion network of this embodiment includes the following contents: Step 1: Select and combine feature extraction networks.

[0025] To perform multi-domain feature extraction, first, feature extraction methods in the time domain, spatial domain, and frequency domain are selected from multiple candidate networks. Specifically, LSTM and GRU are used as candidate networks for time domain feature extraction, CNN and CSP are used as candidate networks for spatial domain feature extraction, and PSD and DE are used as candidate networks for frequency domain feature extraction.

[0026] Decoding effect evaluation and selection: By evaluating the decoding effect of each candidate network on EEG signals, a method with the best performance is selected from each type of feature extraction network and combined into an MFFNCA network. During the construction process, a residual module is introduced to enhance the feature extraction capability, and an identity mapping is added to assist in the transmission of information.

[0027] Step 2: MFFNCA network architecture design and feature fusion.

[0028] Set up dual-channel parallel processing, counted as two parallel forward channels, to process features in different domains respectively. Channel 1 extracts features in the time and space domains, and channel 2 extracts features in the frequency domain.

[0029] The attention module is introduced in channel 1 to enhance the spatial information. Before extracting the spatial features, the attention module is introduced to calculate the weight matrix between channels, thereby enhancing the information of important channels and suppressing the information of minor channels. The weight matrix reflects the contribution of different channels to the final features.

[0030] Perform spatial feature extraction to increase the channel dimension of the input data to meet the requirements of CNN, and then use a CNN network containing four convolutional layers to extract spatial features. Restore the time domain information through the residual module to ensure the effective retention of time domain features. Perform time domain feature assistance. While extracting spatial features, combine the output of the time domain feature extraction network (such as LSTM or GRU) to achieve the initial fusion of time domain and spatial domain features.

[0031] In channel 2, the discrete energy analysis (DE) method is directly used to extract frequency domain features of the input data. The DE method analyzes the energy distribution of the signal in the frequency domain, identifies the key frequency components, and extracts representative frequency domain features.

[0032] Perform feature fusion and classification prediction, flatten the features extracted from the two channels, that is, convert the multi-dimensional feature matrix into a one-dimensional feature vector, and connect the feature vectors of the two channels end to end to merge them into the final fusion feature. Set a fully connected layer, whose size is determined by the fused feature dimension and the number of categories. Use the Sigmoid function to compress the output value to between 0 and 1, and ensure that the sum of the output corresponding to the classification label is equal to 1 through a specific design to complete the classification prediction.

[0033] Step 3: Perform data evaluation and visual analysis.

[0034] Use the t-SNE (t-distributed Stochastic Neighbor Embedding) algorithm to map the feature-extracted data into a two-dimensional space and draw a scatter plot. The scatter plot can be used to visually display the classification effect of the samples and observe the distribution of samples of different categories. Compare the sample distribution before and after feature extraction to evaluate the effectiveness of the feature extraction process in improving classification accuracy and discrimination. Through the visualization results, it can be intuitively seen whether feature extraction helps to better separate samples of different categories, thereby verifying the rationality and effectiveness of the MFFNCA network design.

[0035] Embodiment 2: A multi-domain feature fusion network of this embodiment, such as Figure 1-7 As shown, further description of Example 1 includes the following steps: Step 1: Use the time domain feature extraction network LSTM and GRU, the spatial domain feature extraction network CNN, CSP, and the frequency domain feature extraction network PSD and DE to decode the EEG signal respectively. According to the decoding effect, a method is selected from each domain to form the MFFNCA model, and the features of the spatiotemporal domain are enhanced by adding residual modules and attention modules.

[0036] When dealing with electroencephalogram (EEG) signal decoding, time domain, spatial domain and frequency domain feature extraction are common analysis methods. Each method has its own unique advantages and application scenarios. The following is a summary of the time domain feature extraction network LSTM and GRU, the spatial domain feature extraction network CNN, CSP (Common Spatial Patterns), and the frequency domain feature extraction methods PSD (power spectral density) and DE (differential entropy) in EEG signal decoding: Time domain feature extraction: LSTM and GRU: LSTM (Long Short-Term Memory Network) and GRU (Gated Recurrent Unit) are variants of RNN (Recurrent Neural Network) and are specifically designed to handle long-term dependencies in sequence data. LSTM and GRU solve the gradient vanishing and gradient exploding problems in traditional RNN by introducing gating mechanisms such as forget gates, input gates, and output gates. In EEG signal decoding, LSTM and GRU can capture the timing information in the signal, such as the phase and amplitude changes of brain waves, which can be used for tasks such as classification and prediction.

[0037] Spatial feature extraction: CNN (Convolutional Neural Network): CNN extracts local features from images or sequence data through convolutional layers and pooling layers. In EEG signal decoding, CNN can process multi-channel EEG signals collected by multiple electrodes, using convolutional layers to capture the spatial features of each channel, and performing feature dimensionality reduction and sampling through pooling layers. CNN is particularly suitable for extracting spatiotemporal features of EEG signals, that is, capturing features in both the temporal and spatial dimensions.

[0038] CSP (Common Spatial Patterns): CSP is a method for extracting EEG signal features by finding a set of spatial filters to maximize the variance difference between different categories of EEG signals. CSP features are widely used in brain-computer interfaces (BCI) and EEG signal classification tasks, and can effectively extract and characterize the difference characteristics between different categories of EEG signals. CSP features perform well in reducing signal dimensions and improving classification performance, which helps subsequent pattern recognition and classification algorithms.

[0039] Frequency domain feature extraction: PSD (power spectral density): PSD is a common method for analyzing the frequency domain characteristics of random signals, reflecting the power distribution of the signal at different frequency components. In EEG signal analysis, PSD is used to extract the frequency domain characteristics of the signal to help understand the energy distribution and change pattern of the signal in different frequency bands. PSD features have important application value in EEG signal classification, disease detection and brain function research.

[0040] DE (Differential Entropy): DE is a feature extraction method based on entropy theory, which extracts dynamic features by calculating the differential entropy of the signal. In EEG signal decoding, DE features can reflect the nonlinear dynamic changes of the signal and help capture the complexity and diversity of the signal. DE features perform well in tasks such as emotion classification and motor imagery, but in specific applications, it may be necessary to combine other features for comprehensive analysis.

[0041] The time domain feature extraction networks LSTM and GRU provide important support for classification and prediction tasks by capturing the timing information in EEG signals. The spatial domain feature extraction networks CNN and CSP extract the temporal and spatial features of EEG signals through convolution operations and spatial filters, respectively. The frequency domain feature extraction methods PSD and DE focus on the frequency domain characteristics and dynamic changes of the signal, providing a new perspective for EEG signal analysis. These feature extraction methods have their own advantages and can be selected and combined according to specific tasks and data characteristics to achieve more accurate EEG signal decoding.

[0042] Step 2: The overall structure of the MFFNCA network is as follows Figure 1 shown.

[0043] Specifically, the input features of MFFNCA are represented as X∈η B*N*F , where B represents batch_size, N represents the number of channels, and F represents the number of sampling points. Considering that the extraction of frequency domain features will destroy the time domain information, the model is divided into two forward channels. The first forward channel consists of channel attention, residual module, time domain feature extraction module and spatial domain feature extraction module; the second forward channel consists of frequency domain feature extraction module alone. At the end of the model, the features extracted from the two forward channels are fused to complete the classification prediction.

[0044] In the first forward pass, the channel attention module is first introduced to enhance the spatial information. This module is based on the attention module and achieves different attention to different channels by calculating the weight matrix of different channels. The output size of the channel attention module is X C ∈η B*N*F , which is the same dimension as the input data. At the same time, the residual module is introduced to restore the time domain information, and the output is X R ∈η B*N*F =X+X C It is worth noting that before extracting spatial features, it is necessary to add a channel dimension to the input data to meet the requirements of CNN. The dimension increase process can be expressed as: R ∈η B*N*F to X′∈η B*1*N*F Then, CNN is used to extract spatial features. This method contains four convolutional layers, such as Figure 2 As shown. At this time, the spatial feature dimension becomes X S ∈η B*16*1*25 , in order to adapt to the extraction of time domain features, X S Restore to X′ S ∈η B*16*25 Finally, the two-layer GRU method is used to extract time domain features, and the output dimension becomes X T ∈η B*16*25 .

[0045] The MFFNCA network effectively improves the accuracy and efficiency of feature extraction by separating the extraction paths of time domain and frequency domain features and cleverly combining channel attention and residual mechanisms. In particular, the channel attention mechanism enhances the information of key channels, while the residual module ensures the integrity of time domain information. The combination of the two significantly improves the representation ability of spatial domain features. In addition, the independent frequency domain feature extraction path ensures the full mining of frequency domain information and avoids the loss of time domain information. Finally, the fusion strategy of multi-domain features further improves the model's processing capabilities and classification accuracy for complex signals.

[0046] Among them, in the field of fine motor imagery, existing technologies use methods such as Long Short-Term Memory (LSTM), Gate Recurrent Unit (GRU), Convolutional Neural Network (CNN), Common Spatial Patterns (CSP), Power Spectral Density (PSD), Differential Entropy (DE), Filter Bank Common Spatial Pattern (FBCSP) and other methods combined with classifiers such as Support Vector Machine (SVM) and Linear Discriminant Analysis (LDA) to complete decoding and classification tasks. In addition, EEGNet is a compact network based on CNN specifically for decoding electroencephalography (EEG) signals, which is mainly composed of three convolution blocks, namely: standard convolution block, deep convolution block and separable convolution block. In EEG signal research, ensemble learning strategies can also be used to integrate the outputs of multi-channel correlation networks and extract mutual information values ​​between channels as features to decode fine motor imagery tasks.

[0047] In the second forward pass, DE is used directly to extract the frequency domain features X from the input data X D ∈η B*N*5 Then, the output X of the two forward channels is T and X D Flatten the feature vectors and merge them to complete the final multi-domain feature fusion. The feature dimension after fusion becomes X F ∈η B*(80+N*5)Finally, a fully connected neural network of size (B*(80+N*5), C) and sigmoid function are used to complete the classification prediction. C represents the number of categories, and the sigmoid function is responsible for compressing the value to 0-1 and satisfying: Where f(i) represents the output value of the i-th neuron in the fully connected neural network.

[0048] Advantages of the present invention: Compared with other methods, the embodiments of the present invention have superior performance in the field of fine motor decoding brain-computer interface. Decoding experiments were performed on each subject in the three-category fine motor dataset MI-2 from the time domain, frequency domain and spatial domain. The average accuracy of the experiment is shown in Table 1.

[0049] Table 1 Decoding accuracy in time domain, frequency domain and spatial domain From the experimental results, we can see that in the spatial domain feature extraction method, the accuracy of both methods reached more than 60%, and the accuracy of CNN was slightly higher than that of CSP. In the time domain feature extraction method, the accuracy of GRU was only 50.22%, while the accuracy of LSTM was the lowest among all methods, only 44.91%. In the frequency domain feature extraction method, the accuracy of the DE method was 6.32% higher than the 55.35% of the PSD method. The overall results show that satisfactory decoding effect cannot be achieved by relying solely on single domain features.

[0050] Since the features extracted from a single domain cannot contain complete information, the features extracted from multiple domains are richer, so we combined the features from multiple domains for experiments. First, we combined the frequency domain and spatial domain features for experiments, and the combined method was FBCSP_SVM. Then, we combined the time domain and spatial domain features for experiments, and the combined method was Adaptive Spatial-Temporal Graph Convolution Network with Residuals (ASTGCNR). Finally, we used MFFNCA for experiments. The experimental comparison results of the three methods are shown in Figure 2. Figure 3 shown.

[0051] From the comparison results, we can see that the MFFNCA method has the highest accuracy of 70.13%. Although the accuracy of FBCSP_SVM and ASTGCNR is lower than that of MFFNCA, they are still higher than those of methods that only contain time domain, frequency domain or spatial domain features. This shows that the decoding effect of combining multi-domain features is better than that of single-domain features.

[0052] In order to evaluate the performance of MFFNCA, it is compared with FBCSP_LDA, DE_SVM, CSP_LDA, EEGNet and FBCSP_C2CM. The comparison experiments all use the fine motor brain-computer interface dataset MI-2. All experiments use the same data preprocessing method, and the training set and test set are divided in the same proportion to ensure fairness. The comparison indicator is the average accuracy obtained by all subjects. The comparison results are shown in Table 2.

[0053] Table 2 Comparative test results Comparison Method Accuracy (%) FBCSP_C2CM 69.96 DE_SVM 61.67 CSP_LDA 63.91 EEGNet 67.63 FBCSP_LDA 66.69 MFFNCA 70.13 The comparison results show that FBCSP_C2CM, which combines the spatial domain and the frequency domain, also achieved an accuracy of 69.96%, which is only 0.17% lower than MFFNCA and 3.27% higher than FBCSP_LDA, indicating that deep learning methods have stronger decoding capabilities than machine learning methods. EEGNet only extracts single-domain features, so the decoding accuracy is lower than FBCSP_C2CM and MFFNCA. MFFNCA combines the features of three domains and deep learning, so its performance is better than other comparison methods, reaching the highest accuracy of 70.13%.

[0054] Figures and brief descriptions of the figures: In order to observe the classification effect of the samples more intuitively, t-SNE is used to map the data into a two-dimensional space and then draw a scatter plot. Figure 4 and Figure 5 A visual example is shown.

[0055] For data that has only been preprocessed without feature extraction, samples of different categories appear disordered in space and have obvious overlaps, as shown in Figure 4 After extracting the time domain, spatial domain and frequency domain features, the samples show order in space. The samples of the same category are clustered together, and the samples of different categories are distant from each other, as shown in Figure 2. Figure 5 shown.

[0056] In addition, the training accuracy and test accuracy of MFFNCA during the training process are visualized, such as Figure 6 As shown. And the confusion matrix is ​​drawn for the final classification results, as shown Figure 7 As shown in the figure. At the beginning, the training accuracy and test accuracy increased rapidly with the increase in the number of training times. After about 50 training times, the model reached stability and the accuracy gradually stabilized. From the confusion matrix, it can be seen that the classification accuracy of the "rest" class is the highest, while the classification results of the other two classes are lower than that of the "rest" class due to the greater difficulty of classification.

[0057] In a new example verification, in order to verify the necessity of the channel attention module and the residual module in the MFFNCA method, an ablation experiment was performed to verify it: the attention module and the residual module were removed. The ablation experiment results are shown in Table 5.1.

[0058] Table 5.1 Ablation experiment results There are channel attention modules and residual modules (%) No channel attention module and residual module (%) 70.13 69.57 From the experimental results, we can see that the method with channel attention module and residual module has achieved the highest accuracy of 70.13%, indicating that the channel attention module can accurately assign weights to different electrode channels, and the residual module can enhance the time domain information. In addition, the method without channel attention module and residual module still has higher decoding accuracy than the single domain feature method, which further proves the decoding superiority of MFFNCA.

[0059] In another new example verification, in order to study the impact of different decoding methods on the same subject and the differences between the same method in different subjects, Table 5.2 lists in detail the accuracy of DE_SVM, CNN, GRU, FBCSP_SVM, ASTGCNR and MFFNCA on each subject. By comparing the results, we can more comprehensively evaluate the impact of different methods on decoding.

[0060] Table 5.2 Accuracy of different methods on each subject Table 5.2 Accuracy of different methods on each subject As can be seen from Table 5.3, the same method shows different decoding accuracies on different subjects, indicating that the data quality of different subjects is different. At the same time, different methods also show different decoding accuracies on the same subject, indicating that there are differences in the decoding ability of different methods for the same data. Among them, the GRU method obtained the lowest decoding accuracy of 32.78% in subject 11, while MFFNCA obtained the highest decoding accuracy of 88.33% in subject 16. The average accuracy of all methods on subject 7 was 76.00%, the highest among all subjects, while the lowest average accuracy of 56.02% was obtained on subject 11. The difference in the average accuracy between the two is as high as 19.98%, indicating that there is noise in the data of subject 11, resulting in a low decoding effect. At the same time, it further shows that the quality of data also has a great impact on the decoding accuracy.

[0061] It should be understood that the embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope limited by the appended claims of the application.

Claims

1. A multi-domain feature fusion network decoding method, characterized in that: The multi-domain feature fusion network consists of time domain, spatial domain and frequency domain feature extraction networks, specifically including: S1: Decode EEG signals based on each feature extraction network in the multi-domain feature fusion network; select a decoding effect from each feature extraction network and combine them to obtain the MFFNCA network; S2: The MFFNCA network sets up two parallel forward channels. Channel 1 extracts time domain features and spatial domain features, and channel 2 extracts frequency domain features alone. The feature extraction results of the two channels are fused and the classification prediction is completed through the fully connected layer and the Sigmoid function.

2. A multi-domain feature fusion network decoding method according to claim 1, characterized in that: S2.1: In channel 1, an attention module that enhances spatial information is introduced to obtain channel attention. Based on the input data and its dimension, a residual module is introduced to restore the temporal information to obtain feature extraction results in the spatial and temporal domains. S2.2: DE is directly used to extract frequency domain features from input data in channel 2; S2.3: Flatten the outputs of the feature extraction results of the two channels and merge them to obtain the fused feature dimension.

3. A multi-domain feature fusion network decoding method according to claim 2, characterized in that: In S2.1, the attention module calculates the weight matrix of each channel by analyzing the relationship between channels of the input data. The weight matrix reflects the contribution of different channels to the final features. The input data is weighted based on the weights to enhance the information of important channels and suppress the information of secondary channels.

4. A multi-domain feature fusion network decoding method according to claim 2, characterized in that: In S2.1, before extracting spatial features, the channel dimension of the input data is increased to meet the requirements of CNN. After the channel dimension is increased, CNN is used to extract spatial features, four convolutional layers are set, and the spatial feature dimension is recalculated and restored before output.

5. The multi-domain feature fusion network decoding method according to claim 2 is characterized in that: In S2.3, the size of the fully connected neural network is set to an array consisting of the dimension and the number of categories; the sigmod function is responsible for compressing the value to 0-1, and the function is set to satisfy the sum of the output values ​​of the fully connected neural networks from the first to the same number as the number of categories, so that they are equal to 1.

6. A multi-domain feature fusion network decoding method according to claim 1 or 2 or 3 or 4 or 5, characterized in that: It also includes S3: Visualize the data set to evaluate the classification effect: S3.1: Use the t-SNE algorithm to map the data after feature extraction to two-dimensional space, and draw a scatter plot to intuitively display the classification effect of the sample; S3.2: Compare the sample distribution before and after feature extraction to verify the effectiveness of feature extraction in improving classification accuracy and discrimination.

7. The multi-domain feature fusion network decoding method according to claim 1 is characterized in that: In S1, LSTM and GRU are used as candidate time domain feature extraction networks, CNN and CSP are used as candidate spatial domain feature extraction networks, PSD and DE are used as candidate frequency domain feature extraction networks to decode EEG signals; when constructing the model of the MFFNCA network, a residual module is introduced to assist feature extraction by adding an identity mapping.

8. The multi-domain feature fusion network decoding method according to claim 2 is characterized in that: In S2.2, the discrete energy analysis method is directly used to process the input data. The DE method calculates the energy distribution of the input data in the frequency domain, identifies the key frequency components in the signal, and thus extracts representative frequency domain features.

9. A multi-domain feature fusion network decoding method according to claim 2 or 4, characterized in that: In S2.1, the attention module obtains the channel attention by calculating the channel weight matrix; it is assumed that the output result of the attention module has the same dimension as the input data.

10. The multi-domain feature fusion network decoding method according to claim 2, characterized in that: In S2.3, the features extracted from the two channels are flattened, the multi-dimensional feature matrix is ​​converted into a one-dimensional feature vector, and the feature vectors are connected end to end one by one to obtain all the features of the two channels in multiple domains.

Citation Information

Patent Citations

  • Cognitive signal decoding method based on time-frequency-space attention decoupling

    CN118228771A

Cited By

  • Electroencephalogram signal emotion detection method based on multi-stage feature fusion

    CN119655762A