Cross-subject emotion recognition method, electronic equipment and storage medium

The encoder-decoder model is used to convert EEG signals, which solves the problem of low accuracy caused by differences in EEG signal patterns across subjects' emotion recognition, and achieves higher emotion recognition accuracy, especially in neutral emotions. Recognition has been significantly improved.

CN118568566AActive Publication Date: 2024-08-30SHANGHAI JIAOTONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410700598.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In cross-subject emotion recognition, due to differences in EEG signal patterns of different subjects, it is difficult to achieve high-accuracy cross-subject emotion recognition with existing technology.

Method used

The encoder-decoder model is used to convert the differential entropy features of the EEG signals of different subjects. The EEG converter is trained through the one-to-one unlabeled data of the source domain and the target domain, and the labeled data of the source domain is migrated. to the target domain, and use the migrated data to train an emotion classifier for emotion recognition.

Benefits of technology

The accuracy of emotion recognition across subjects has been improved, especially the accuracy of neutral emotion classification on the SEED-V data set has been significantly improved, proving the effectiveness of the EEG converter in reducing data distribution differences and improving the accuracy of emotion recognition. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568566A
    Figure CN118568566A
Patent Text Reader

Abstract

The invention discloses a cross-subject emotion recognition method, electronic equipment and a storage medium, the cross-subject emotion recognition method comprises the following steps: training an electroencephalogram converter by using label-free data in one-to-one correspondence of a source domain and a target domain; migrating labeled data of a source domain to a target domain by using the electroencephalogram converter; training an emotion classifier by using the migrated data of the source domain; and performing emotion recognition on the labeled data of the target domain by using the trained emotion classifier. According to the method provided by the embodiment of the invention, the characteristics of the time alignment data are fully utilized, the performance in an experiment is superior to that of other domain adaptation algorithms, and a new thought is provided for cross-subject emotion recognition. Furthermore, according to the embodiment of the invention, the DE features of different subjects are converted by adopting an encoder-decoder model, so that the conversion capability of the electroencephalogram converter and the effectiveness of the electroencephalogram converter in the aspect of improving the cross-subject emotion recognition accuracy are proved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of emotion recognition, and in particular to a method for cross-subject emotion recognition, an electronic device, and a storage medium. Background Art

[0002] Emotional states have a great impact on people's physical health and behavioral decisions. Emotion recognition helps to explore the mechanism of emotion generation, which is of great significance in the fields of psychology and neuroscience. In the field of human-computer interaction (HCI), accurate emotion recognition can enable machines to provide users with more humane services. EEG signals, eye movement signals, facial expressions and other features can reflect emotions to a certain extent. Among them, EEG signals are electrical signals generated by brain neuron activity, reflecting the overall state of the brain. Emotion recognition based on EEG signals can achieve a high accuracy rate. However, there are certain differences in EEG signal patterns among different subjects, which leads to a significantly lower emotion recognition accuracy of the cross-subject model than the subject-dependent model. Therefore, it is necessary to consider the impact of individual differences in cross-subject emotion recognition. Summary of the invention

[0003] The embodiments of the present invention provide a cross-subject emotion recognition method, an electronic device, and a storage medium, which are used to solve at least one of the above-mentioned technical problems.

[0004] In a first aspect, an embodiment of the present invention provides a method for cross-subject emotion recognition, comprising: training an EEG converter using one-to-one corresponding unlabeled data from a source domain and a target domain; migrating labeled data from the source domain to the target domain using the EEG converter; training an emotion classifier using the migrated source domain data; and performing emotion recognition on labeled data from the target domain using the trained emotion classifier.

[0005] In a second aspect, an embodiment of the present invention provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the above-mentioned cross-subject emotion recognition methods of the present invention.

[0006] In a third aspect, an embodiment of the present invention provides a storage medium, in which one or more programs including execution instructions are stored, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute any of the above-mentioned cross-subject emotion recognition methods of the present invention.

[0007] In a fourth aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program stored on a storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes any one of the above-mentioned cross-subject emotion recognition methods.

[0008] The method of the embodiment of the present application fully utilizes the characteristics of time-aligned data, and performs better than other domain adaptation algorithms in experiments, providing new ideas for cross-subject emotion recognition. Furthermore, the embodiment of the present application uses an encoder-decoder model to convert the DE features of different subjects, demonstrating the conversion capability of the EEG converter and its effectiveness in improving the accuracy of cross-subject emotion recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0010] Figure 1 A flowchart of a method for cross-subject emotion recognition provided by an embodiment of the present invention;

[0011] Figure 2 A schematic diagram of a solution provided by an embodiment of the present invention;

[0012] Figure 3 A schematic diagram of the structure of an electroencephalogram converter provided by an embodiment of the present invention;

[0013] Figure 4 The confusion matrix (%) of the baseline and EEG Converter+ baseline on SEED-V provided in one embodiment of the present invention (the feature extraction module of the emotion classifier is CNN);

[0014] Figure 5 A two-dimensional t-SNE visualization diagram of subject 4→subject 9 on the SEED dataset provided by an embodiment of the present invention;

[0015] Figure 6 The classification accuracy of SEED, SEED-IV and SEED-V by different methods provided in one embodiment of the present invention (mean ± standard deviation, percentage);

[0016] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] Please refer to Figure 1 , which shows a flow chart of a cross-subject emotion recognition method provided by an embodiment of the present invention.

[0019] like Figure 1 As shown, in step 101, the EEG converter is trained using unlabeled data in one-to-one correspondence between the source domain and the target domain;

[0020] In step 102, the labeled data in the source domain is migrated to the target domain using the EEG converter;

[0021] In step 103, the emotion classifier is trained using the migrated source domain data;

[0022] In step 104, the trained emotion classifier is used to perform emotion recognition on the labeled data in the target domain.

[0023] The method of the embodiment of the present application fully utilizes the characteristics of time-aligned data, performs better than other domain adaptation algorithms in experiments, and provides a new idea for cross-subject emotion recognition.

[0024] Among them, domain adaptation is a transfer learning method that aims to solve the problem of data distribution differences between the source domain and the target domain. Domain adaptation is applied to cross-subject emotion recognition and can achieve high accuracy. The domain adaptation algorithm projects the distribution of the source domain and the target domain into a common space, which enhances the generalization ability of the model and improves the accuracy of emotion classification in the target domain. However, if there is a one-to-one correspondence between samples in the source domain and the target domain, most of the existing domain adaptation algorithms do not consider this condition.

[0025] The encoder-decoder framework is often used for end-to-end generative models. The encoder converts the input into a feature vector, and the decoder uses the feature vector to generate the translation. Lu et al. proposed an EEG2EEG model based on the encoder-decoder architecture to convert the original EEG signals when different subjects viewed the same picture, and achieved good results in the experiment. Therefore, the encoder-decoder architecture can use the correspondence between the source domain and the target domain samples to help achieve the conversion of EEG signals.

[0026] In the task of emotion recognition, video clips are more commonly used emotion-inducing materials than pictures. In addition, using the differential entropy (DE) features of EEG signals for emotion recognition can achieve higher accuracy. In an embodiment of the present application, a cross-subject EEG converter (EEG Converter) is trained using time-aligned unlabeled data, and its encoder-decoder structure is similar to previous studies. The construction of the EEG converter is to convert the DE features of the source domain to the target domain to reduce data distribution differences, and use the converted DE features for emotion classification. The experimental results demonstrate the effectiveness of the EEG converter in the task of cross-subject emotion recognition.

[0027] In some optional embodiments, the EEG converter is implemented using an encoder-decoder structure, wherein the encoder performs feature extraction through a series of one-dimensional convolution operations and maximum pooling operations, and the decoder restores the feature-extracted data to its original size through a series of one-dimensional upsampling and convolution operations.

[0028] In some optional embodiments, the emotion classifier includes a feature extraction module and a classification module, the feature extraction module uses a multilayer perceptron or a convolutional neural network, and the classification module uses a linear layer to map the features extracted by the feature extractor to a preset output category.

[0029] In some optional embodiments, before using the one-to-one corresponding unlabeled data of the source domain and the target domain to train the EEG converter, the method further includes: for the data of the source domain and / or the target domain, extracting the EEG signal differential entropy features of each sample point, wherein the EEG signal differential entropy features include multiple frequency bands, and normalizing the data of each frequency band separately to eliminate the impact of the unbalanced distribution of data in different frequency bands on subsequent EEG conversion.

[0030] Further optionally, after extracting the differential entropy features of the EEG signals at each sample point, the method further includes: smoothing the differential entropy features of the EEG signals to remove drastically changing EEG signals that are not related to emotions. Before extracting the differential entropy features of the EEG signals at each sample point, the method further includes: downsampling the collected original EEG signals and preprocessing them through a bandpass filter to remove artifacts during preprocessing.

[0031] Further optionally, the use of one-to-one correspondence between the source domain and the target domain to train the EEG converter with unlabeled data includes: converting the differential entropy feature format of the EEG signal of each sample point by filling with 0, so that the sequence length of each frequency band of the input data is changed from 62 to 64; treating the 5 frequency bands of the input data as 5 channels, wherein the input sequence length of each channel is 64, using one-dimensional convolution during input to change the number of channels from 5 to 64, and restoring the number of channels to 5 during output; and using mean square error as the loss function to train the EEG converter.

[0032] The embodiment of the present application uses an encoder-decoder model to convert the DE features of different subjects, demonstrating the conversion capability of the EEG converter and its effectiveness in improving the accuracy of emotion recognition across subjects.

[0033] In the related technologies, there are domain adaptation algorithms such as DANN, CORAL, DAAN, and DDC. Among them, DANN (Domain-Adversarial Neural Network): The DANN algorithm introduces an additional domain classifier for adversarial training, making the features generated by the model as indistinguishable as possible in the source domain and the target domain, thereby improving the generalization ability of the model in the target domain. CORAL (Correlation Alignment): The CORAL algorithm minimizes the covariance difference between the feature distributions of the source domain and the target domain to make the feature distributions of the two domains more consistent to achieve the purpose of domain adaptation. DAAN (Dynamic Adversarial Adaptation Network): DAAN dynamically adjusts the focus of adversarial learning to more effectively achieve feature alignment between the source domain and the target domain. DDC (Deep Domain Confusion): DDC reduces the distribution difference between domains by minimizing the maximum mean difference between the source domain and the target domain at certain deep feature levels. This method aims to maintain the consistency of the features of the source domain and the target domain while reducing the confusion between the two.

[0034] If the data in the source domain and the target domain are time-aligned (there is a one-to-one correspondence), the inventors found that the above domain adaptation algorithms do not take advantage of this condition.

[0035] The original intention of designing the above algorithms is to deal with the distribution difference between the source domain and the target domain, which is mainly achieved through adaptation at the feature level, rather than using the correspondence between data. Therefore, the core mechanism of the algorithm focuses on how to make the features extracted by the model in the source domain and the target domain as similar as possible to achieve the purpose of domain adaptation, without paying attention to the possible one-to-one correspondence between the source domain and the target domain data. The problems caused by these defects are long-standing problems in this field.

[0036] If the above problems are to be solved, those skilled in the art will usually improve the feature extractor or loss function of the model. The solution of the embodiment of the present application includes two parts, namely, EEG migration and emotion classification, which is not easy to think of.

[0037] Existing domain adaptation algorithms (such as DANN, CORAL, DAAN, DDC, etc.) can transfer the knowledge of the source domain to the target domain to solve the problem of data distribution differences between the source and target domains when dealing with cross-subject emotion recognition problems, but these algorithms do not fully utilize the one-to-one correspondence between the source and target domain data. This application uses an Encoder-decoder structure (EEG Converter) to migrate EEG data of different subjects, and then classify them, and utilizes the one-to-one correspondence between the source and target domain data during model training.

[0038] The solution of the embodiment of the present application is roughly divided into four steps: training EEG Converter; using EEG Converter to transfer EEG; training emotion classifier; using emotion classifier to perform emotion recognition and calculate accuracy. The advantage is that the accuracy is improved.

[0039] Please refer to Figure 2 , which shows a schematic diagram of a solution of an embodiment of the present application.

[0040] like Figure 2 As shown, first, EEGConverter is trained using unlabeled data with one-to-one correspondence between the source domain and the target domain;

[0041] Secondly, use EEG Converter to migrate the labeled data from the source domain to the target domain;

[0042] Then, the source domain data migrated in step 2 is used to train the emotion classifier, which includes two modules: feature extraction (multi-layer perceptron MLP or convolutional neural network CNN) and classification (linear layer);

[0043] Finally, the emotion classifier is used to perform emotion recognition on the labeled EEG data of the target domain and the accuracy is calculated.

[0044] For EEG Converter, the differential entropy (DE) feature format of each sample point is first converted from 5×62 to 5×64 by padding 0. The 5 frequency bands of the input data are regarded as 5 channels, and the input sequence length of each channel is 64. The mean square error is used as the loss function.

[0045] Before emotion classification, EEG Converter was used to migrate the source domain data to the target domain. The one-to-one cross-subject emotion recognition accuracy on the SEED, SEED-IV, and SEED-V datasets was improved compared to other methods. The confusion matrix corresponding to the results on the SEED-V dataset: It can be seen that the migration mainly improved the classification accuracy of neutral emotions.

[0046] In the field of EEG-based emotion recognition, the time alignment condition between the source domain and the target domain EEG data is utilized, and EEG Converter is used for migration before classification to improve the accuracy of emotion recognition. The embodiment of the present application can protect the application of EEG Converter in the field of emotion recognition. Furthermore, the inventor can also use similar time alignment data processing technology for other transfer learning problems, which will not be elaborated here.

[0047] The implementation details of the embodiments of the present application are described in detail below through specific experiments and reasoning processes so that those skilled in the art can better understand the present application.

[0048] The embodiment of the present application uses the extracted EEG signal differential entropy (DE) features. The DE feature format of each sample point is 5×62: the DE feature can be divided into five frequency bands (delta: 1-3Hz; theta: 4-7Hz; alpha: 8-13Hz; beta: 14-30Hz; gamma: 31-50Hz). The EEG cap used in the experiment has 62 electrodes. The data of different subjects are aligned in time. The embodiment of the present application normalizes the data of each frequency band separately to eliminate the impact of the unbalanced distribution of data in different frequency bands on subsequent EEG conversion. The embodiment of the present application defines S unlabeled ={s1,...,s n_unlabeled} and T unlabeled ={t1,...,t n_unlabeled} is the time-aligned unlabeled data in the source domain and the target domain, that is, s i and t i is corresponding, and define S labeled ={s′1,...,s′ n_labeled} and T labeled ={t′1,...,t′ n_labeled} is the labeled data without time alignment in the source domain and the target domain. The model of the embodiment of the present application is divided into two parts: EEG converter and emotion classifier. The experimental process is as follows: Figure 2 shown.

[0049] EEG Converter

[0050] First, the DE feature format of each sample point is converted from 5×62 to 5×64 by padding 0. Then, the embodiment of the present application uses an encoder-decoder structure to implement EEG Converter, such as Figure 3 As shown. This embodiment of the application regards the 5 frequency bands of the input data as 5 channels, and the input sequence length of each channel is 64. A one-dimensional convolution with a kernel size of 3 is used to increase the number of channels from 5 to 64. The encoder performs feature extraction through a series of one-dimensional convolution and maximum pooling operations. In this process, the number of channels is doubled and the sequence length of each channel is divided by 2. The decoder consists of a series of one-dimensional upsampling and convolution operations to restore the original size. Finally, a convolution with a kernel size of 1 is used to restore the number of channels to 5. This embodiment of the application denotes EEG Converter as C, and uses the code from S unlabeled and T unlabeled The sample pairs (s i ,t i ) to train C. The present application embodiment hopes that s i Transformed by C, the result is as close to t as possible i C(s i ). This embodiment of the application uses mean square error as the loss function:

[0051]

[0052] Among them, N ch is the number of channels, l sq is the sequence length of each channel. After the training of the EEG converter C is completed, the inventors use the labeled data S in the source domain labeled Migrate to the target domain and obtain C(S labeled ).

[0053] Sentiment Classifier

[0054] The emotion classifier consists of a feature extraction module (using a multilayer perceptron (MLP) or a convolutional neural network (CNN)) and a classification module (using a linear layer to map features to output categories). labeled ) is used to train the emotion classifier, and then the embodiment of the present application predicts T in the target domain labeled , and calculate the classification accuracy.

[0055] Experimental dataset description

[0056] The data sets used in the embodiments of the present application are SEED, SEED-IV and SEED-V, with 15, 15 and 16 subjects, and 3, 4 and 5 emotions, respectively. The collected raw EEG signals are downsampled from 1000 Hz to 200 Hz and processed by a bandpass filter. EMG artifacts are removed in the preprocessing stage. The DE features of the EEG signals are calculated and then smoothed to remove drastically changing EEG signals that are not related to emotions.

[0057] In each data set, all subjects were required to conduct three experiments and watch several movie clips with emotion labels. The embodiment of the present application divides the movie clips of each experiment into two parts, A and B, which are used to train EEG Converter and emotion classifier respectively. In each experiment of SEED, part A contains 12 clips (4 negative, 4 positive, 4 neutral), and part B contains 3 clips (1 negative, 1 positive, 1 neutral); in each experiment of SEED-IV, part A contains 20 clips (5 happy, 5 sad, 5 neutral, 5 fear), and part B contains 4 clips (1 happy, 1 sad, 1 neutral, 1 fear); in each experiment of SEED-V, part A contains 10 clips (2 happy, 2 sad, 2 disgust, 2 neutral, 2 fear), and part B contains 5 clips (1 happy, 1 sad, 1 disgust, 1 neutral, 1 fear).

[0058] The data of different subjects in SEED, SEED-IV and SEED-V are all time-aligned. For part A, since emotion labels are not used in the EEG converter training process, the data can be regarded as unlabeled data in this embodiment of the application, which is different from the S in the previous embodiment. unlabeled and T unlabeled For part B, the embodiment of the present application does not use the time alignment condition, that is, it is assumed that the order of samples in part B is disrupted, so part B corresponds to S in the above embodiment. labeled and T labeled , which is used to train the emotion classifier. The reason for designing the experiment in this way is that if the emotion labels in Part A or the time alignment conditions in Part B are used, the labels of the target domain samples can be directly obtained from the corresponding source domain samples, which will become meaningless.

[0059] Implementation details

[0060] For each data set, the embodiment of the present application conducts a one-to-one cross-subject experiment, that is, each time the data of one subject is selected as the source domain, and the data of another subject is selected as the target domain. When training the EEG Converter, the embodiment of the present application uses the Adam optimizer, and the learning rates of SEED, SEED-IV, and SEED-V are 4e-4, 2e-3, and 1e-3, respectively. When training the emotion classifier, the embodiment of the present application uses the SGD optimizer with a learning rate of 5e-3.

[0061] Emotion Classification

[0062] The embodiments of the present application compare the effects of EEG Converter and several domain adaptation algorithms (ie, DANN, CORAL, DAAN, and DDC) in improving the accuracy of emotion classification across subjects.

[0063] The results of SEED, SEED-IV and SEED-V are as follows Figure 6 As shown. The baseline only contains the emotion classifier and does not contain migration. The embodiment of the present application uses part A of each dataset to train the EEG Converter and part B to train the emotion classifier (baseline). For consistency of comparison, in DANN, CORAL, DAAN and DD, the migration loss is calculated using part A of the dataset and the classification loss is calculated using part B. The results show that EEG Converter can make good use of the time alignment condition during migration and can significantly improve the accuracy of emotion classification.

[0064] Since SEED-V covers all emotion label categories in SEED and SEED-IV, the present embodiment plots the confusion matrix of the baseline and EEG converter + baseline on SEED-V to explore the specific impact of the EEG converter on emotion classification. Figure 6 As shown in Figure 2, when the emotion classifier uses the CNN structure for feature extraction, the EEG converter will significantly improve the accuracy of SEED-V. Figure 4 As shown in the figure, after conversion by the EEG converter, the classification accuracy of the emotion classifier for each emotion has improved, among which the classification accuracy of neutral emotions has improved most significantly.

[0065] Data distribution visualization

[0066] The embodiment of the present application uses t-SNE to visualize the data distribution of part B of the source subject and the target subject, such as Figure 5 shown. Figure 5A 2D t-SNE visualization of subject 4 → subject 9 on the SEED dataset is shown. Red represents the DE features of part B of subject 4 before conversion, blue represents the DE features of part B of subject 4 after conversion, and green represents the DE features of part B of subject 9. Due to the high density of points on the chart, the DE features contained in each movie clip form a line. After conversion, the distribution of DE features of part B of the source subject is closer to that of the target subject. This shows that the EEG converter trained on the part A data of the source and target subjects can be used for the conversion of part B data. After conversion, the distribution differences between different subjects are reduced, thereby improving the accuracy of the cross-subject model.

[0067] Figure 6 The classification accuracy of different methods for SEED, SEED-IV, and SEED-V is shown (mean ± SD, percentage).

[0068] In order to reduce the impact of individual differences on the accuracy of emotion recognition across subjects, domain adaptation algorithms are used to align the EEG features of different subjects. However, for time-aligned data with unknown labels, existing algorithms cannot fully utilize the correspondence between source domain and target domain data. The embodiment of the present application uses an encoder-decoder model to convert the DE features of different subjects, which proves the conversion ability of the EEG converter and its effectiveness in improving the accuracy of emotion recognition across subjects. The method proposed in the embodiment of the present application makes full use of the characteristics of time-aligned data, and its performance in experiments is better than other domain adaptation algorithms, providing new ideas for cross-subject emotion recognition.

[0069] In some other embodiments, the embodiments of the present invention further provide a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the cross-subject emotion recognition method in any of the above method embodiments;

[0070] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0071] Train the EEG converter using unlabeled data with one-to-one correspondence between the source and target domains;

[0072] Using the EEG converter to migrate labeled data from a source domain to a target domain;

[0073] Use the migrated source domain data to train a sentiment classifier;

[0074] Use the trained emotion classifier to perform emotion recognition on labeled data in the target domain.

[0075] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the cross-subject emotion recognition device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the cross-subject emotion recognition device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0076] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any of the above-mentioned cross-subject emotion recognition methods.

[0077] Figure 7 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, the device includes: one or more processors 710 and a memory 720, Figure 7 A processor 710 is taken as an example. The device of the cross-subject emotion recognition method may also include: an input device 730 and an output device 740. The processor 710, the memory 720, the input device 730 and the output device 740 may be connected via a bus or other means. Figure 7 The example of connecting via a bus is taken. The memory 720 is the above-mentioned non-volatile computer-readable storage medium. The processor 710 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 720, that is, the cross-subject emotion recognition method of the above-mentioned method embodiment is realized. The input device 730 can receive input digital or character information, and generate key signal input related to the user setting and function control of the communication compensation device. The output device 740 may include a display device such as a display screen.

[0078] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0079] As an implementation mode, the electronic device is applied to a cross-subject emotion recognition device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0080] Train the EEG converter using unlabeled data with one-to-one correspondence between the source and target domains;

[0081] Using the EEG converter to migrate labeled data from a source domain to a target domain;

[0082] Use the migrated source domain data to train a sentiment classifier;

[0083] Use the trained emotion classifier to perform emotion recognition on labeled data in the target domain.

[0084] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0085] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0086] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0087] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.

[0088] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0089] (5) Other electronic devices with data interaction functions.

[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cross-subject emotion recognition method, comprising: Train the EEG converter using unlabeled data with one-to-one correspondence between the source and target domains; Using the EEG converter to migrate labeled data from a source domain to a target domain; Use the migrated source domain data to train a sentiment classifier; Use the trained emotion classifier to perform emotion recognition on labeled data in the target domain.

2. The method according to claim 1, wherein: The EEG converter is implemented using an encoder-decoder structure, wherein the encoder performs feature extraction through a series of one-dimensional convolution operations and maximum pooling operations, and the decoder restores the feature-extracted data to its original size through a series of one-dimensional upsampling and convolution operations.

3. The method according to claim 1, wherein: The emotion classifier includes a feature extraction module and a classification module. The feature extraction module adopts a multi-layer perceptron or a convolutional neural network, and the classification module adopts a linear layer to map the features extracted by the feature extractor to a preset output category.

4. The method according to claim 1, wherein: Before training the EEG converter using the one-to-one correspondence of the unlabeled data in the source domain and the target domain, the method further includes: For the data in the source domain and / or the target domain, the differential entropy features of the EEG signals of each sample point are extracted, wherein the differential entropy features of the EEG signals include multiple frequency bands, and the data of each frequency band are normalized respectively to eliminate the influence of the unbalanced distribution of data in different frequency bands on the subsequent EEG conversion.

5. The method according to claim 4, wherein: After extracting the differential entropy feature of the EEG signal of each sample point, the method further includes: Smoothing the differential entropy features of the EEG signal to remove drastically changing EEG signals that are not related to emotions; Before extracting the differential entropy feature of the EEG signal of each sample point, the method further includes: The collected original EEG signals are downsampled and preprocessed through a bandpass filter to remove artifacts during preprocessing.

6. The method according to claim 4, wherein: The method of training the EEG converter using unlabeled data corresponding one to one between the source domain and the target domain comprises: By filling 0, the differential entropy feature format of the EEG signal of each sample point is converted so that the sequence length of each frequency band of the input data changes from 62 to 64; The five frequency bands of the input data are regarded as five channels, where the input sequence length of each channel is 64. One-dimensional convolution is used during input to change the number of channels from 5 to 64, and the number of channels is restored to 5 during output. The EEG converter is trained using mean squared error as the loss function.

7. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 6.

8. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Cross-subject EEG fatigue state classification method based on generative adversarial domain self-adaptation

    CN112274162A

  • Emotion recognition method and system, electronic equipment and storage medium

    CN116269377A

  • Multi-modal emotion recognition model training method and system and electronic equipment

    CN117171626A

  • Method for realizing a multi-channel convolutional recurrent neural network EEG emotion recognition model using transfer learning

    US20230039900A1