A method and system for EEG emotion recognition integrating spatiotemporal interactive neural network

By integrating spatiotemporal interactive neural networks and using time-step shared convolution and spatial interactive multi-layer perceptrons, the problem of insufficient utilization of time and space features in EEG signals is solved, and the accuracy and practical application capabilities of EEG emotion recognition are improved.

CN116861211BActive Publication Date: 2024-09-06SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310674320.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2024-09-06
Estimated Expiration
2043-06-08

AI Technical Summary

Technical Problem

Existing EEG emotion recognition methods based on deep learning make insufficient use of the spatial and temporal information of EEG signals, resulting in limited recognition accuracy and increased model complexity, making it difficult to effectively apply in real-life scenarios.

Method used

The fusion spatio-temporal interactive neural network is used to capture the common features of consecutive time steps through time-step shared convolution, and the spatial expression of the features is enhanced through the spatial interactive multi-layer perceptron. It is combined with down-sampling convolution to extract time-space features for emotion recognition. .

Benefits of technology

It improves the accuracy and computational efficiency of EEG emotion recognition, reduces the complexity of the model, enhances the realizability in practical application scenarios, and achieves accurate recognition of EEG emotions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116861211B
    Figure CN116861211B
Patent Text Reader

Abstract

The present invention relates to the field of emotion recognition technology, and in particular to an EEG emotion recognition method integrating a spatiotemporal interactive neural network, including: inputting EEG signal data into an EEG emotion recognition model, constructing a 2D matrix representation of the EEG signal according to the position of the EEG acquisition electrode; capturing the common features of multiple continuous time steps from both low-dimensional and high-dimensional levels through time step sharing convolution, and enhancing the information expression of the original input; reducing the time dimension and extracting time-space features that are highly correlated with emotion categories through downsampling convolution; realizing information interaction between multiple subspace regions through spatial interactive multilayer perceptrons, and enhancing the spatial dependence of features; constructing an emotion classification task, obtaining the probability of the emotion category in each task, and completing emotion recognition. The present invention is based on fewer EEG acquisition electrodes, enhances the temporal expression and potential spatial dependence of EEG signals, and further improves the classification accuracy and generalization ability of EEG emotion recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emotion recognition technology, and in particular to an electroencephalogram emotion recognition method and system integrating a spatiotemporal interactive neural network. Background Art

[0002] As the highest level of human cognitive activities, emotions directly affect many aspects of people's daily lives, including learning, decision-making, and social interaction. Physiological signals truly and objectively reflect people's emotional states, among which electroencephalogram (EEG) directly records the neural activity signals related to emotions in the cerebral cortex. In the task of emotion recognition, EEG signals can accurately reflect people's emotional states. With the rapid development of brain-computer interface technology, EEG signals have been widely used in emotion recognition.

[0003] EEG signals are multi-channel, multi-electrode time series, so they have temporal, spatial, and spectral characteristics. In the existing technology, popular deep learning methods such as convolutional neural networks, recurrent neural networks, and Transformer architectures have been successfully applied to EEG emotion recognition. However, convolutional neural networks can effectively capture local information but ignore global information; recurrent neural networks and Transformer architectures can effectively mine the temporal information of EEG but ignore spatial information.

[0004] It can be seen that the existing EEG emotion recognition methods based on deep learning lack the use of spatial and temporal information of EEG signals, which leads to limited accuracy in emotion recognition and increases the complexity of the model, which is not suitable for deployment and application in real scenes. Therefore, in the EEG emotion recognition method, how to fully capture the temporal and spatial characteristics of EEG is still a difficult problem that needs to be solved. Summary of the invention

[0005] To this end, the technical problem to be solved by the present invention is to overcome the problem that the EEG emotion recognition method based on deep learning in the prior art lacks the utilization of the spatial information and temporal information of EEG signals, which leads to limited accuracy in emotion recognition, increases the complexity of the model, and does not utilize the layout and application in real scenarios.

[0006] In order to solve the above technical problems, the present invention provides an EEG emotion recognition method integrating spatiotemporal interactive neural network, and the specific steps include:

[0007] S1. Input the EEG signal data into the EEG emotion recognition model. According to the position of the EEG acquisition electrodes, put the EEG signal collected by each EEG electrode into a 2D matrix of h×w to construct a 2D matrix representation of the EEG signal. According to the time window length T, divide the EEG signal of each channel into samples of time length T, so that the size of each sample is T×h×w, and perform 0-1 normalization on the EEG data of each channel.

[0008] S2. Divide each sample into M consecutive time steps according to the time dimension, denoted as P t , t∈[1,M]; P t They are input into the time step shared convolution in turn, capturing the common features of multiple consecutive time steps from both low-dimensional and high-dimensional levels, and obtaining the common features F of the consecutive M time steps in the sample t ; Combine the common features F according to the time dimension t , and taking the sample as the residual, adding it to the concatenated feature to obtain the feature MF;

[0009] S3, construct a downsampling convolution, input the feature MF into the downsampling convolution, reduce the time dimension of the data, and extract the time-space features that are highly correlated with the emotion category to obtain the time-space feature map C∈R (T / 8)×h×w ;

[0010] S4. Operate the spatial dimension of the time-space feature map C and divide it into N p×p sub-regions, expressed as Where i = 1, 2, ..., N, j = 1, 2, ..., T / 8; according to the time dimension of the time-space feature map C, the (T / 8) feature maps are concatenated and represented as C i ∈R 1×[(T / 8)×p×p] , therefore, the feature map C formed by N splicing i Finally, the feature map C is constructed 0 ∈R N×[(T / 8 ) ×p×p] ;

[0011] The feature map C 0 Transpose, and perform multi-layer perceptron operation on each sub-region after transposition, so that the spatial information between each sub-region interacts, further strengthening the spatial expression of the feature, and obtaining the feature map C 1 ; Again for feature map C 1 Transpose to get the feature map C 2 , the feature map C 0 As the residual and feature map C 2 Add and normalize the layers to get the feature map C A ;

[0012] S5. Based on the three dimensions of emotion valence, arousal and dominance, three emotion classification tasks are constructed, each of which contains two categories; the feature map C is categorized using a fully connected layer. A Perform binary classification in the three emotion classification tasks respectively, obtain the probability of emotion category in each task, and complete emotion recognition.

[0013] In one embodiment of the present invention, in S1, the EEG signal data selects 14 channels to be input into the EEG emotion recognition model, including channels AF3, AF4, F7, F3, F4, F8, FC5, FC6, T7, T8, P7, P8, O1, and O2.

[0014] In one embodiment of the present invention, in S2, the time step shared convolution includes two 2D convolution layers, the first 2D convolution reduces the time dimension, and the second 2D convolution enlarges the time dimension to an initial size.

[0015] In one embodiment of the present invention, in S3, the downsampling convolution includes three 2D convolution layers, each of which reduces the time dimension of the feature MF to 1 / 2 of the initial state, keeps the spatial dimension unchanged, and simultaneously extracts time-space features that are highly correlated with the emotion category.

[0016] In one embodiment of the present invention, each of the 2D convolutional layers is provided with an activation function, a batch normalization layer and a Dropout layer.

[0017] In one embodiment of the present invention, the multilayer perceptron includes two fully connected layers and a GELU activation function.

[0018] In one embodiment of the present invention, in S5, the feature map C is processed using a fully connected layer. A When performing binary classification in the three classification tasks, the Softmax function is used to calculate the emotion category with the maximum probability. The formula is:

[0019]

[0020] Among them, x i represents the output value of the i-th neuron, x c represents the output value of the cth neuron, C is the number of neurons, Represents the output value of all neurons.

[0021] In one embodiment of the present invention, the step of training the EEG emotion recognition model includes:

[0022] Collecting the EEG information of the subjects, constructing an EEG emotion data set, and asking the subjects to evaluate their emotions and score them from three dimensions: valence, arousal, and dominance, so as to determine the true label of the emotion category; dividing the EEG emotion data set into a training set and a test set according to a preset ratio;

[0023] The EEG signal data of the training set is input into the EEG emotion recognition model to obtain the probability of the emotion category in each task; during training, the cross entropy loss function is used to minimize the difference between the classification result and the true label, and the Adam optimizer is used to optimize the loss function and update the learning rate;

[0024] The performance of the EEG emotion recognition model was evaluated on the test set using classification accuracy, standard deviation, training and testing time.

[0025] In one embodiment of the present invention, the cross entropy loss function L is formulated as:

[0026]

[0027] Where N is the number of samples and M is the number of categories. If the classified category is the same as the true category, y ic is 1, otherwise it is 0; p ic represents the probability that sample i belongs to category c.

[0028] The present invention also provides an EEG emotion recognition system integrating a spatiotemporal interactive neural network, comprising:

[0029] Memory for storing computer programs;

[0030] A processor is used to implement the steps of the above-mentioned method for EEG emotion recognition integrating spatiotemporal interactive neural network when executing the computer program.

[0031] The above technical solution of the present invention has the following advantages compared with the prior art:

[0032] The EEG emotion recognition method integrating the space-time interactive neural network described in the present invention uses time-step sharing convolution to divide the time dimension into multiple continuous time steps, captures the common features of multiple continuous time steps from both low-dimensional and high-dimensional levels and splices them, thereby enhancing the temporal expression of EEG signals. Using a spatial interactive multi-layer perceptron, the feature map is segmented from the spatial dimension and spliced ​​from the temporal dimension, and information interaction is performed between multiple subspace regions, further strengthening the spatial expression of features and enhancing the spatial dependence of EEG signals.

[0033] Therefore, the method is based on time-step shared convolution and spatial interactive multilayer perceptron to further explore the temporal and spatial characteristics of EEG emotion features, which to a certain extent solves the problem of insufficient utilization of spatial and temporal information of EEG signals in existing EEG emotion recognition methods. It has the advantages of high computational efficiency, high recognition accuracy and strong generalization ability.

[0034] In addition, the present invention uses fewer EEG acquisition electrodes, which reduces the training and testing time of the model while ensuring recognition accuracy, thereby improving feasibility in actual application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to make the content of the present invention easier to understand in detail, the present invention is further described below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein

[0036] Figure 1 It is a flow chart of an EEG emotion recognition method integrating a spatiotemporal interactive neural network according to the present invention;

[0037] Figure 2 It is an overall framework diagram of an EEG emotion recognition method integrating a spatiotemporal interactive neural network according to the present invention;

[0038] Figure 3 It is a schematic diagram of a specific method for constructing a 2D matrix representation of an EEG signal in the present invention;

[0039] Figure 4 It is a schematic diagram of the spatial region division of the present invention;

[0040] Figure 5 It is a structural diagram of the spatial interactive multilayer perceptron in the present invention;

[0041] Figure 6 3 is a comparison diagram of the results of ablation experiments in an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0043] Reference Figure 1 and Figure 2 As shown, the present invention discloses an EEG emotion recognition method integrating a spatiotemporal interactive neural network, and the specific steps are as follows:

[0044] S1. Input the EEG signal data into the EEG emotion recognition model, refer to Figure 3As shown, the present invention selects 14 channels that are highly related to emotions, including channels AF3, AF4, F7, F3, F4, F8, FC5, FC6, T7, T8, P7, P8, O1, and O2, in order to reduce the number of channels to improve the feasibility in practical application scenarios. The EEG signal is subjected to a 0.1-45 Hz bandpass filter, and then the EEG signal collected by each EEG electrode is placed into a 2D matrix of h×w according to the position of the EEG acquisition electrode to construct a 2D matrix representation of the EEG signal.

[0045] In this embodiment, the time window T is 1 second. According to the time window length T, the EEG signal of each channel is divided into samples of time length T, that is, the EEG signals of all time nodes are arranged in time order into T h×w 2D matrices, so that the size of each sample is T×h×w, and the EEG data of each channel is normalized to 0-1.

[0046] S2. The common features of the continuous time steps of the sample are extracted through time-step sharing convolution, the common features of multiple continuous time steps are captured from both low-dimensional and high-dimensional levels, and the information expression of the original input is enhanced.

[0047] Each sample is divided into M consecutive time steps according to the time dimension, denoted as P t , where t∈[1,M]. t They are input into the time step shared convolution in turn, capturing the common features of multiple consecutive time steps from both low-dimensional and high-dimensional levels, and obtaining the common features F of the consecutive M time steps in the sample t . Combine the common features F according to the time dimension t , and taking the sample as the residual, adding it to the concatenated feature to enhance the information expression of the original input, and obtaining the feature MF.

[0048] The time-step shared convolution includes two 2D convolution layers, the first 2D convolution reduces the time dimension, and the second 2D convolution enlarges the time dimension to the initial size. Each 2D convolution layer is provided with an activation function, a batch normalization layer, and a Dropout layer.

[0049] S3. Construct downsampling convolution to reduce the time dimension and extract time-space features that are highly correlated with emotion categories.

[0050] The feature MF is input into the downsampling convolution to reduce the time dimension of the data and extract the time-space features that are highly correlated with the emotion category to obtain the time-space feature map C∈R (T / 8)×h×w .

[0051] The downsampling convolution includes three 2D convolution layers, each of which reduces the time dimension of the feature MF to 1 / 2 of the initial state, keeps the spatial dimension unchanged, and simultaneously extracts time-space features that are highly correlated with the emotion category. Each 2D convolution layer is provided with an activation function, a batch normalization layer, and a Dropout layer.

[0052] S4. Divide the time-space feature map C into spatial regions, construct a spatial interactive multi-layer perceptron, realize information interaction in multiple subspace regions, and enhance the spatial dependency of features.

[0053] The time-space feature map C is divided into spatial regions. Figure 4 As shown, the spatial dimension of the time-space feature map C is operated and divided into N p×p sub-regions, which are expressed as Where i = 1, 2, ..., N, j = 1, 2, ..., T / 8. According to the time dimension of the time-space feature map C, the (T / 8) feature maps are concatenated and represented as C i ∈R 1×[(T / 8)×p×p] Therefore, the feature map C formed by N concatenations i Finally, the feature map C is constructed 0 ∈R N ×[(T / 8)×p×p] .

[0054] Construct a spatial interactive multilayer perceptron. Figure 5 As shown, the feature map C 0 Transpose, and perform multi-layer perceptron operation on each sub-region after transposition, that is, perform spatial information interaction between each sub-region, further strengthen the spatial expression of features, and obtain feature map C 1 The multilayer perceptron includes two fully connected layers and a GELU activation function. 1 Transpose to get the feature map C 2 , the feature map C 0 As the residual and feature map C 2 Add and normalize the layers to get the feature map C with enhanced spatial dependency A .

[0055] S5. Construct emotion classification tasks, obtain the probability of emotion categories in each task, and complete emotion recognition.

[0056] According to the three dimensions of emotion valence, arousal and dominance, three emotion classification tasks are constructed, each of which contains two categories; the feature map C is categorized using a fully connected layer. A Perform binary classification in the three emotion classification tasks respectively, obtain the probability of emotion category in each task, and complete emotion recognition.

[0057] Use the fully connected layer to map the feature map C A When performing binary classification in the three classification tasks, the Softmax function is used to calculate the emotion category with the maximum probability. The formula is:

[0058]

[0059] Among them, x i represents the output value of the i-th neuron, x c represents the output value of the cth neuron, C is the number of neurons, Represents the output value of all neurons.

[0060] In order to solve the problem that the existing EEG emotion recognition methods do not capture the temporal and spatial features of EEG signal data sufficiently, which leads to limited recognition accuracy, increases the complexity of the model, and does not utilize the layout and application in real scenarios, the present invention further explores the temporal and spatial features of emotional features in EEG signal data, increases the temporal expression of EEG signals by capturing the common features of continuous time steps, enhances the spatial dependence of EEG signals through the local spatial region interaction of EEG emotion features, improves the classification performance of the EEG emotion recognition model, and realizes the accurate recognition of EEG emotions. In addition, the present invention is based on fewer EEG acquisition electrodes, which improves the feasibility in actual application scenarios.

[0061] The present invention also provides another specific embodiment to illustrate the process of training the EEG emotion recognition model, and compares the training results with the currently advanced deep learning algorithms MLF-CapsNet, NAS and ECNN-C to further verify the beneficial effects of the present invention.

[0062] The EEG signal data for training the EEG emotion recognition model may be an existing EEG data set based on emotion recognition recorded in literature, or may be EEG information of subjects collected on-site.

[0063] This embodiment uses the DEAP EEG emotion dataset to train the EEG emotion recognition model. The dataset was collected from 32 subjects, of which 50% were male and 50% were female, aged 19-37 years old. The dataset records the EEG signals and peripheral physiological signals of each subject when watching 40 60s music videos. Before watching the video, there is a 3s baseline signal, and the EEG signal is mainly recorded by 32 electrode channels. After watching the video, the subjects scored from 1 to 9 from the three dimensions of emotional valence, arousal and dominance to evaluate their emotions and determine the true label of the emotion category.

[0064] The original EEG signals were mainly recorded from 32 electrode channels, sampled at 512 Hz, and passed through the noise of muscle movement, a 4-45 Hz bandpass filter, and down-sampled to 128 Hz.

[0065] The EEG emotion dataset is divided into a training set and a test set according to a preset ratio.

[0066] The EEG signal data of the training set is input into the EEG emotion recognition model to obtain the probability of the emotion category in each task.

[0067] During training, the cross entropy loss function is used to minimize the difference between the classification results and the corresponding true labels, and the Adam optimizer is used to optimize the loss function and update the learning rate.

[0068] Use cross entropy as the loss function to calculate the loss index during training. The loss function L is defined as:

[0069]

[0070] Where N is the number of samples and M is the number of categories. If the classified category is the same as the true category, y ic is 1, otherwise it is 0; p ic represents the probability that sample i belongs to category c.

[0071] Finally, the performance of the EEG emotion recognition model was evaluated on the test set using classification accuracy, standard deviation, training and testing time as indicators.

[0072] In order to further illustrate the beneficial effects of the present invention, in this embodiment, the method of the present invention is compared with the currently advanced deep learning algorithms MLF-CapsNet, NAS and ECNN-C.

[0073] The parameters set in the experiment include: Adam optimizer is used to minimize the classification cross entropy loss function, and the learning rate is 5e-4. The number of heads of the multi-head self-attention mechanism is set to 4, and a total of 80 epochs are trained. When the training is completed for 5 epochs and the loss does not decrease, the learning rate is reduced by 80%, the Dropout value is set to 0.3, and the early stopping strategy is used during the training process.

[0074] Based on the DEAP emotion recognition EEG dataset, the classification results of the proposed method are compared with advanced deep learning algorithms. The specific results are shown in Table 1.

[0075]

[0076] Table 1. Classification results of different methods on the DEAP-based emotion recognition EEG dataset

[0077] Table 1 shows the average classification accuracy and standard deviation of the current advanced deep learning model and the method of the present invention based on the DEAP emotion recognition EEG dataset on 32 subjects. It can be found that the present invention has achieved the highest average classification accuracy of 98.56%, 98.70% and 98.63% in the three binary classification tasks, and also achieved a lower standard deviation. It proves that compared with the current advanced deep learning model, the method of the present invention improves the classification performance of the EEG emotion recognition model and achieves more accurate recognition of EEG emotions.

[0078] At the same time, in this embodiment, the ablation experiment method is used to analyze the effectiveness of the time-step shared convolution and spatial interactive multi-layer perceptron proposed in the present invention.

[0079] The model containing only downsampling convolution is used as the baseline and named Base-CNN. The ablation experiment results refer to Figure 6 As shown in the figure, the average classification accuracy and standard deviation of Base-CNN and the present invention in three binary classification tasks are shown. It can be found that the model of the present invention has higher classification accuracy and lower standard deviation than the baseline model, which proves that the time-step shared convolution and spatial interaction multi-layer perceptron capture the temporal and spatial features of EEG signals more comprehensively, further improving the classification accuracy.

[0080] Experimental results show that the EEG emotion recognition method based on time-step shared convolution and spatial interactive multi-layer perceptron proposed in this paper has good classification performance and strong generalization ability.

[0081] In addition, we also compared the training and testing time of the method of the present invention with the current advanced deep learning models. The specific results are shown in Table 2.

[0082]

[0083] Table 2. Training and testing time of different methods based on DEAP dataset

[0084] Table 2 shows the training and testing time of the current advanced deep learning model and the method of the present invention on the DEAP dataset. It can be found that the method of the present invention has a shorter training and testing time, making it possible to apply it to actual scenarios.

[0085] The above experiments show that the present invention achieves accurate recognition of EEG emotions, improves classification performance and improves feasibility in practical application scenarios, and can provide a reference for the development of the field of EEG emotion recognition technology.

[0086] The specific embodiment of the present invention also provides an EEG emotion recognition system integrating a spatiotemporal interactive neural network, including:

[0087] Memory for storing computer programs;

[0088] A processor is used to implement the steps of the above-mentioned method for EEG emotion recognition integrating spatiotemporal interactive neural network when executing the computer program.

[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.

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

[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0093] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A method for EEG emotion recognition integrating spatiotemporal interactive neural network, characterized in that: The specific steps include: S1. Input the EEG signal data into the EEG emotion recognition model. According to the position of the EEG acquisition electrodes, put the EEG signal collected by each EEG electrode into a 2D matrix of h×w to construct a 2D matrix representation of the EEG signal. According to the time window length T, divide the EEG signal of each channel into samples of time length T, so that the size of each sample is T×h×w, and perform 0-1 normalization on the EEG data of each channel. S2. Divide each sample into M consecutive time steps according to the time dimension, denoted as P t , t∈[1,M]; P t They are input into the time step shared convolution in turn, capturing the common features of multiple consecutive time steps from both low-dimensional and high-dimensional levels, and obtaining the common features F of the consecutive M time steps in the sample t ; Combine the common features F according to the time dimension t , and take the sample as the residual, add it to the concatenated features to obtain the feature MF; S3, construct a downsampling convolution, input the feature MF into the downsampling convolution, reduce the time dimension of the data, and extract the time-space features that are highly correlated with the emotion category, Get the time-space feature map C∈R (T / 8)×h×w ; S4. Operate the spatial dimension of the time-space feature map C and divide it into N p×p sub-regions, expressed as Where i = 1, 2, ..., N, j = 1, 2, ..., T / 8; according to the time dimension of the time-space feature map C, the (T / 8) feature maps are concatenated and represented as C i ∈R 1×[(T / 8)×p×p] , therefore, the feature map C formed by N splicing i Finally, the feature map C is constructed 0 ∈R N×[(T / 8)×p×p] ; The feature map C 0 Transpose, and perform multi-layer perceptron operation on each sub-region after transposition, so that the spatial information between each sub-region interacts, further strengthening the spatial expression of the feature, and obtaining the feature map C 1 ; Again for feature map C 1 Transpose to get the feature map C 2 , the feature map C 0 As the residual and feature map C 2 Add and normalize the layers to get the feature map C A ; S5. Based on the three dimensions of emotion valence, arousal and dominance, three emotion classification tasks are constructed, each of which contains two categories; the feature map C is categorized using a fully connected layer. A Perform binary classification in the three emotion classification tasks respectively, obtain the probability of emotion category in each task, and complete emotion recognition.

2. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1 is characterized in that: In S1, the EEG signal data selects 14 channels to be input into the EEG emotion recognition model, including channels AF3, AF4, F7, F3, F4, F8, FC5, FC6, T7, T8, P7, P8, O1, and O2.

3. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1 is characterized in that: In S2, the time-step shared convolution includes two 2D convolution layers, the first 2D convolution reduces the time dimension, and the second 2D convolution enlarges the time dimension to an initial size.

4. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1, characterized in that: In S3, the downsampling convolution includes three 2D convolution layers, each of which reduces the time dimension of the feature MF to 1 / 2 of the initial state, keeps the spatial dimension unchanged, and simultaneously extracts time-space features that are highly correlated with the emotion category.

5. A method for EEG emotion recognition integrating spatiotemporal interactive neural network according to any one of claims 3 or 4, characterized in that: Each of the 2D convolutional layers is provided with an activation function, a batch normalization layer and a Dropout layer.

6. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1, characterized in that: In S4, the multilayer perceptron includes two fully connected layers and a GELU activation function.

7. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1, characterized in that: In S5, a fully connected layer is used to map the feature map C A When performing binary classification in the three classification tasks, the Softmax function is used to calculate the emotion category with the maximum probability. The formula is: Among them, x u represents the output value of the u-th neuron, x c represents the output value of the cth neuron, C is the number of neurons, Represents the output value of all neurons.

8. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 1, characterized in that: The steps of training the EEG emotion recognition model include: Collecting the EEG information of the subjects, constructing an EEG emotion data set, and asking the subjects to evaluate their emotions and score them from three dimensions: valence, arousal, and dominance, so as to determine the true label of the emotion category; dividing the EEG emotion data set into a training set and a test set according to a preset ratio; The EEG signal data of the training set is input into the EEG emotion recognition model to obtain the probability of the emotion category in each task; during training, the cross entropy loss function is used to minimize the difference between the classification result and the true label, and the Adam optimizer is used to optimize the loss function and update the learning rate; The performance of the EEG emotion recognition model was evaluated on the test set using classification accuracy, standard deviation, training and testing time.

9. The method for EEG emotion recognition integrating spatiotemporal interactive neural network according to claim 8, characterized in that: The cross entropy loss function L formula is: Where n represents the number of samples and m represents the number of categories. If the classified category is the same as the true category, y kv is 1, otherwise it is 0; p kv It represents the probability that sample k belongs to category v.

10. An EEG emotion recognition system integrating spatiotemporal interactive neural network, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of a method for EEG emotion recognition integrating a spatiotemporal interactive neural network as described in any one of claims 1 to 9 when executing the computer program.