Electroencephalogram signal emotion recognition method based on transfer learning

Through the feature engineering of the ISBA-MKSADA algorithm and the MKMMD-SADA model, the problem of poor generalization ability and overfitting of the EEG signal emotion recognition model in the cross-subject recognition task is solved, achieving higher recognition rate and stability. Suitable for users of different personalities, ages, genders and regions.

CN118535898APending Publication Date: 2024-08-23TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410653569.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing EEG signal emotion recognition models have poor generalization ability in cross-subject recognition tasks, lack of universality, and cannot effectively shield differences in different personalities, ages, genders, races, and regions, resulting in low recognition rates and model overfitting. .

Method used

The ISBA-MKSADA algorithm is used to extract the characteristic domain features of the EEG signal through feature engineering, and the distance function is used to select the source domain subject. The MKMMD-SADA model is combined with the MKMMD-SADA model for domain adaptation and sub-domain alignment to reduce the impact of pseudo-label errors and improve the generalization of the model. and stability.

Benefits of technology

It improves the cross-subject recognition performance of the EEG signal emotion recognition model, enhances the adaptability to different user groups, reduces the over-fitting phenomenon of the model, and improves the recognition rate and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535898A
    Figure CN118535898A
Patent Text Reader

Abstract

The invention discloses an electroencephalogram signal emotion recognition method based on transfer learning. According to the method, emotion related information is extracted from features of different feature domains of electroencephalogram signals, a proper subject is selected to serve as source data of a training model through a distance function, the model training time is shortened, MK-MMD is used for carrying out domain adaptation on a target domain and a source domain, and the model training efficiency is improved. In addition, a label predictor is used for carrying out sub-field alignment on a prediction label of target domain data, and label smoothing is used for reducing the influence of an error label on sub-field alignment, so that the negative migration phenomenon is reduced, and the emotion recognition performance of an independent task of a main body is improved. The feature information is enriched, the robustness of the network structure is enhanced, and the final classification result is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emotional computing, mainly to the field of electroencephalogram (EEG) signal emotion recognition. Specifically, the present invention provides an EEG signal emotion recognition method based on transfer learning. Background Art

[0002] With the development of science and technology, emotion and emotion classification, emotion recognition, emotion computing and other fields have gradually become hot research areas. In particular, emotion recognition has developed rapidly in recent years. The feature extraction and classifiers involved are constantly being improved and strengthened, and the emotion database is also gradually increasing. Emotion is a spontaneous reaction under external stimulation, which will have immediate physical behavior and psychological reaction changes. Therefore, in scientific research, emotion recognition can be carried out through scientific measurement and simulation. At present, emotion recognition is mainly carried out in two ways: one is the external behavior measurement method, which judges and recognizes human emotions through external behavior performance such as human voice, facial expression, and behavior posture; the other is the EEG signal measurement method, which measures respiration, heart rate, body temperature, EEG and other EEG signals for emotion recognition.

[0003] Studying the relationship between EEG signals and emotions can enable researchers to express certain emotions or identify emotions by using some EEG signals. In the future, emotion recognition will come in handy in various fields of life and have a huge impact. The significance of emotion recognition research is huge, and emotion recognition has a wide range of applications in artificial intelligence, health care, and safe driving.

[0004] Emotion recognition is the main content of emotional computing research. Emotional computing is to give computers the ability to recognize, understand and express human emotions, so as to understand and analyze human emotions or moods and respond accordingly to achieve the purpose of human-computer interaction. At present, emotion recognition is mainly carried out in two ways: one is the external behavior measurement method, which judges and recognizes human emotions through external behavior such as human voice, facial expressions, and behavior postures; the other is the EEG signal measurement method, which recognizes emotions by measuring EEG signals such as breathing, heart rate, body temperature, and EEG.

[0005] Compared with external behaviors such as speech, facial expressions and body postures, EEG signals are more able to reflect people's true emotions because they are not under subjective human control. Emotion, as a high-level function of the human brain, has the functions of transmitting information and regulating behavior. There is an important connection between emotion and the brain. At the same time, EEG signals have the advantages of non-invasive measurement and high temporal resolution. They have gradually become a research hotspot in the field of emotion recognition and have been successfully applied in brain-computer interfaces, artificial intelligence, and medical health. The recognition rate of current emotion recognition models mostly depends on the sample objects studied, and the generalization ability is poor. There is a lack of a model with good universality that can shield the differences between users of different personalities, different age groups, different genders, different races, and different regions. Summary of the invention

[0006] In the field of cross-subject emotion recognition tasks for EEG signals, the present invention proposes the ISBA-MKSADA algorithm. The model consists of feature engineering technology, source domain subject selection and MKMMD-SADA model. The present invention first extracts the features of different feature domains of EEG signals through feature engineering, calculates the subject similarity using the distance function, selects the appropriate number of source domain subjects to reduce the noise interference of irrelevant subjects, and then uses the MKMMD-SADA model to reduce the distribution difference between the source domain and the target domain using the multi-core maximum mean difference, and uses the label predictor to predict the average label of the target domain as the category label, reducing the impact of pseudo-label errors, and using the sub-domain discriminator to use the fine-grained information of the source domain and the target domain for category domain alignment. In the detailed processing of the model, in order to solve the overfitting phenomenon of the model, the present invention adds dropout, improved cross entropy function, and L2 regularization to the model to improve the generalization and stability of the model.

[0007] The technical solution of the present invention is as follows:

[0008] The overall subject-independent emotion recognition algorithm proposed in the present invention is mainly divided into three parts: feature engineering, source domain subject selection and MKMMD-SADA (Multi-kernel Maximum Mean Difference-Subdomain Domain Adaptation) model. Feature engineering mainly uses eight features of five frequency domains of 32 channels of processed EEG signals as the features of the subject. The source domain subject selection uses the distance function to select the k subjects closest to the test subject object as the source domain subject data training model. The subject-independent emotion recognition model based on MKMMD-SADA includes three submodules, namely, a feature extractor for extracting deep domain invariant features, a label predictor for emotion recognition tasks, and a subdomain discriminator for class information alignment.

[0009] Feature engineering is crucial to the algorithm results. The feature engineering of the present invention integrates the time information, frequency domain information, nonlinear information and asymmetric information of the EEG signal. EEG signals have information in different feature domains. How to integrate the information in different feature domains of EEG signals is a more important issue in EEG signal feature engineering. The present invention uses simple symmetrical electrode data subtraction to mine the information related to emotion recognition between the asymmetric characteristics of the left and right hemispheres of the EEG signal, and uses feature extraction technology to mine the frequency domain information, time-frequency domain information, non-dynamic characteristics, and the temporal relationship between features of the EEG signal for emotion recognition.

[0010] Source domain subject selection is to use the distance function to select suitable subjects as source domain data. Most of the existing work uses subjects other than the target domain subject as the source domain subject, but the number of source domain subjects is large, and there are subject data that are irrelevant to the target domain subject, which will lead to negative transfer and information redundancy problems. The present invention uses a distance function that can measure the similarity between subject data as a standard, selects two subject data as source domain subjects, reduces irrelevant information with the target domain subject, and can reduce negative transfer phenomena that may be caused by irrelevant information. At the same time, reducing the amount of data in the source domain can speed up the training speed, and a source domain that is closer in size to the target domain data can also enhance the effect of domain adaptation.

[0011] The subject-independent emotion recognition model based on MKMMD-SADA is a model for domain adaptation and sub-domain alignment of source domain and target domain data. The MKMMD-SADA module of the present invention is composed of three sub-modules, which uses multi-core maximum mean difference to align the source domain with the target domain in the last layer of the feature extractor, and uses the label predictor as the pseudo-label of the target domain data to align the category domain of the target domain and the source domain, thereby enhancing the cross-subject emotion recognition performance. This sub-domain alignment can utilize the fine information of the label, achieve a more fine-grained alignment than the alignment of the entire domain, and use label smoothing to reduce the impact of negative migration caused by the erroneous information of the target domain pseudo-label. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 Overall model structure diagram of EEG signal emotion recognition method based on transfer learning

[0013] Figure 2 Source domain subject selection module flow chart

[0014] Figure 3 MKMMD-SADA module details DETAILED DESCRIPTION

[0015] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0016] The main technical process of the present invention is to perform feature engineering on EEG signals, select source domain subjects based on the features of each subject, and finally perform domain alignment on the data of the source domain and the target domain. The following is a detailed description of the implementation methods in order:

[0017] 1. Feature Engineering

[0018] In order to reduce the time of feature engineering and ensure the effect of independent emotion recognition of the subject, after many experiments, the algorithm of the present invention sets the window to 1s and extracts eight features from the five frequency bands of the EEG signal data of 32 channels in the DEAP dataset. The specific steps of feature engineering will be introduced next.

[0019] 1) Reduce the EEG differences among subjects: In each experiment, DEAP not only collected 60s EEG signals of subjects when they were watching videos, but also collected 3s EEG signals of subjects when they were in a calm mood. The feature engineering in the model in this chapter uses these 3s EEG signals as the baseline signals of the subjects, and uses the EEG signals of the subjects in a calm state to calibrate the EEG signals in various emotional states, that is, the 60s original EEG signals are subtracted from the 3s baseline signals to reduce the differences between the EEG signals of the subjects; 2) The 32-channel EEG signals of the DEAP dataset have 14 symmetrical electrodes in the left and right brains respectively. In order to extract emotion-related information using the asymmetric characteristics of the brain, the 14 electrode data of the right brain are subtracted from the electrode data in the symmetrical position of the left brain as the data for feature extraction; 3) Feature domain conversion: Use segments to perform time-frequency domain analysis on each segmented signal. This module uses the fast Fourier algorithm to transform the original data into the frequency domain space; 4) Extract the power spectrum in the five frequency bands of the 32 channels of each EEG signal Intensity (PSI), average energy, maximum energy and differential entropy, a total of eight features are used as all features; 5) Accumulated time information: Since the generation of emotions by the human body is a continuously changing process, there is an implicit time series relationship between the features of EEG signals. In order to extract relevant information for emotion recognition through the relationship between the frequency domain features of EEG signals and time, this experiment first splits the signal into multiple sub-time domain signal segments in the time domain, and then performs Fourier transform on each sub-time domain signal segment respectively. Finally, the features extracted in the two windows are used as the features of the same sample to obtain information related to the emotion recognition task in time. Finally, each subject can generate 1200 samples, each sample has 2*5*32*8 (2 windows*5 frequency bands*32 channels*8 features) features, forming a 2560D feature vector.

[0020] 2. Source domain subject selection

[0021] After feature engineering of the 32 subject data of the DEAP dataset, 32*1200*2560 feature samples were obtained. For each test subject, the Manhattan distance function was used to calculate the two source domain subjects that are most similar to the test subject, and these subject data were used as the source domain corresponding to each test subject for model training.

[0022] 3. Subject-independent emotion recognition module based on MKMMD-SADA

[0023] The subject-independent emotion recognition module based on MKMMD-SADA proposed in the present invention puts the source domain and the target domain into a feature extractor formed by stacking multiple one-dimensional convolutional layers, and uses MK-MMD in the last layer of the feature extractor to perform domain adaptation on the source domain data and the target domain data. In order to use category information for a deeper domain alignment, the label is used as the basis for division, and the same category is the same sub-domain, and the sub-domain discriminator is used to align the sub-domains respectively. In order to reduce the impact of incorrect labels on the applicability of sub-domains, the subject-independent emotion recognition module based on MKMMD-SADA performs label smoothing on the target domain data, thereby reducing the impact of the negative transfer phenomenon.

[0024] Among them, the size of the convolution kernel in the feature extractor follows the rule of large on both sides and small in the middle. First, the source domain data and the target domain data are input into the feature extractor, which contains two convolution blocks and a global average pooling layer. N EEG signal features of size F×1 are input into the first convolution block, where the features are multiple features of all channels and all frequency bands of an EEG signal sample. The input features first pass through a convolution layer with a convolution kernel size of 8, then a convolution layer with a convolution kernel size of 5 and a stride of 3, and then a maximum pooling layer with a pooling window of 2 to downsample the data. After each layer, a batch normalization layer is used to normalize the intermediate layer data. The intermediate layer features after the first convolution block are input into the second convolution block, which includes a convolution layer with a convolution kernel size of 5 and a stride of 3 and a convolution layer with a convolution kernel size of 8. Finally, the deep features of the two convolution blocks are input into the global average pooling layer. Through the average pooling operation, the global average pooling can effectively extract the global feature information and obtain the final deep features.

[0025] The label predictor and sub-domain discriminator have the same structure, consisting of three fully connected layers and two dropout layers. The deep features extracted by the feature extractor pass through a fully connected layer with 128 neurons, followed by a fully connected layer with 32 neurons. To prevent overfitting, these two fully connected layers are followed by a dropout layer with a loss probability of 0.5. The number of neurons in the last fully connected layer is consistent with the number of categories, and the Softmax regression classifier is used to achieve the target output category.

[0026] Obviously, the described embodiment is only one possible embodiment of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

Claims

1. A method for emotion recognition of EEG signals based on transfer learning, including three modules: feature engineering, source domain subject selection and cross-subject emotion recognition module based on MKMMD-SADA. First, feature engineering is used to extract features of different feature domains of EEG signals to obtain more emotion information. Then, a distance function is used to select subjects that are more similar to the test subject from many source domain subjects as source domain subjects to reduce the occurrence of negative transfer. Finally, the MKMMD-SADA (Multi-kernel Maximum Mean Difference-Subdomain Domain Adaptation) model is used to reduce the feature distribution difference between the source domain and the target domain, and fine-grained sub-domain alignment is performed according to label information, thereby improving the subject-independent emotion recognition performance. The specific steps include: First, feature engineering is performed on the original EEG signal with a window of 1s. Eight different features of 32 channels and 5 frequency bands in two windows of the EEG signal are extracted to form a 2560D feature vector; The Manhattan distance function is used to calculate the similarity between the features of the 32 subjects, and the two most similar subjects are selected as the source domain subjects for each test subject; The source domain and the target domain pass through the subject-independent emotion recognition module based on MKMMD-SADA. The feature extractor contains two convolution blocks and a global average pooling layer. N EEG signal features of size F×1 are input to the first convolution block, where the features are multiple features of all channels and frequency bands of an EEG signal sample; the input features first pass through a convolution layer with a convolution kernel size of 8, and then pass through a convolution layer with a convolution kernel size of 5 and a step size of 3, and then a maximum pooling layer with a pooling window of 2 to downsample the data. After each layer, a batch normalization layer is used to normalize the intermediate layer data; the intermediate layer features after the first convolution block are input to the second convolution block, which includes a convolution layer with a convolution kernel size of 5 and a step size of 3 and a convolution layer with a convolution kernel size of 8; finally, the deep features after the two convolution blocks are input to the global average pooling layer. Through the average pooling operation, global average pooling can effectively extract global feature information and obtain the final deep features; The label predictor and sub-domain discriminator have the same structure, consisting of three fully connected layers and two dropout layers. The deep features extracted by the feature extractor pass through a fully connected layer with 128 neurons, followed by a fully connected layer with 32 neurons. To prevent overfitting, these two fully connected layers are followed by a dropout layer with a loss probability of 0.

5. The number of neurons in the last fully connected layer is consistent with the number of categories, and the Softmax regression classifier is used to achieve the target output category.

2. According to claim 1, the EEG signal emotion recognition method based on transfer learning is characterized in that the emotional information of EEG signals at different angles is extracted, the source domain subject selection reduces the amount of data and speeds up the calculation speed, and the prediction labels are used to perform domain adaptation on the sub-domains of the source domain and the target domain, thereby improving the accuracy of cross-subject emotion recognition.