A method for motor imagery intention recognition based on individual EEG signal migration
Through the individual EEG signal migration method, CSP algorithm and LDA classifier are used to perform EEG signal correction and intensity compensation to build an integrated recognition model, which solves the problem of long training time for new individuals in the BCI system and improves the recognition accuracy and system applicability.
Patent Information
- Application Number
- CN202111201598.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-10-15
AI Technical Summary
In the actual application of the motor imagery BCI system, each user needs to spend a long time to collect a large number of EEG signals for individual training, which causes inconvenience and hinders the practicality and applicability of the system.
Using a method based on individual EEG signal migration, spatial features are extracted through the CSP algorithm, spatial filters are designed, EEG signal correction and ERD/ERS intensity compensation are performed, multiple recognition models are established combined with the LDA classifier, and the confidence score evaluation and Fusion builds an integrated recognition model to identify motor imagination intentions.
It effectively reduces the training time for new individuals, improves system practicability, removes the spatial feature differences of individual EEG signals, eliminates ERD/ERS intensity differences, improves recognition accuracy, and builds a robust recognition model.
Smart Images

Figure CN115969389B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of bioinformatics, pattern recognition and brain-computer interaction, and in particular to a method for recognizing motor imagery intention based on individual electroencephalogram signal migration. Background Art
[0002] Brain-computer interface (BCI) allows users to interact with computers simply through brain activity. Among various types of BCI, BCI based on motor imagery EEG signals has become a hot topic of research at home and abroad in recent years. Motor imagery BCI has shown good prospects in many fields, for example, providing a new way of interaction for disabled users of rehabilitation assistive devices.
[0003] Motor imagery is a spontaneous conscious activity that uses the brain to imagine limb movements without actual movement. When the subject imagines a limb (such as the left / right hand) movement, changes in the energy of the μ rhythm (8-12Hz) and β rhythm (13-30Hz) frequency bands will occur in the sensorimotor area of the brain. This electrophysiological activity phenomenon is called event-related desynchronization (ERD) and event-related synchronization (ERS), respectively. Usually, the common spatial pattern (CSP) algorithm is used to extract spatial modality and ERD / ERS intensity changes as EEG features, and a linear discriminant classifier is used to establish a specific motor imagery intention recognition model for each individual EEG data.
[0004] Due to various factors such as physical state, emotion, and environment, the motor imagery EEG of individuals varies greatly, making it difficult to establish a universal recognition model with universal applicability, and a large number of individual EEG signals need to be collected for training before the actual BCI system is applied. The transfer learning of existing individual EEG signals to a small number of new individual EEG signals can reduce the training time required when the BCI system is used, which has important application value. At present, Luo Haoyuan of South China University of Technology (China Patent CN 113010013A) proposed a motor imagery EEG transfer learning method based on Wasserstein distance, and used Wasserstein distance to train a deep transfer learning model. Wu Dongrui of Huazhong University of Science and Technology (CN 110851783A) proposed a heterogeneous label space transfer learning method for brain-computer interface calibration, using Riemann distance to improve the model learning ability of new users. Li Mingai of Beijing University of Technology (China Patent CN 102306303B) proposed a method for extracting EEG signal features based on small training samples, and constructed a regularized spatial filter to improve the stability of small sample EEG features and classification accuracy. In current research and applications, there is no method for identifying motor imagery intention based on the migration of individual EEG signals.
[0005] It can be seen that in the actual application of motor imagery BCI system, each user needs to spend a long time to collect a large amount of EEG signals for individual training, which causes great inconvenience and hinders the practicality and applicability of BCI system. It is an important problem that needs to be solved at present to establish a robust recognition model based on the migration of individual EEG signals by using the difference between the existing individual EEG signals and the small amount of EEG signals of new individuals. Summary of the invention
[0006] In view of the deficiencies of the prior art or the need for improvement, the present invention provides a method for identifying motor imagery intention based on individual EEG signal migration, which aims to solve the problem of improving the model recognition accuracy of new individual EEG signals by using existing individual EEG signals when there are a small number of new individual EEG signals.
[0007] To achieve the above purpose, the technical solution adopted by the present invention is:
[0008] A method for identifying motor imagery intention based on individual EEG signal migration, including an EEG signal correction process and an integrated recognition process;
[0009] The EEG signal correction process comprises the following steps:
[0010] 1.1) Acquire the EEG signals of existing individuals as source EEG signals, and collect the EEG signals of new individuals as target EEG signals;
[0011] 1.2) Using the CSP algorithm, different spatial filters are designed to extract the spatial features of the source and target EEG signals respectively;
[0012] 1.3) Correct the EEG spatial characteristics of the source individual;
[0013] 1.4) Compensate the corrected source individual ERD / ERS intensity for building the LDA recognition model;
[0014] The integrated identification process includes the following steps:
[0015] 2.1) Using LDA classifier, a separate LDA recognition model is established for each source individual;
[0016] 2.2) Evaluate each LDA recognition model;
[0017] 2.3) Based on all LDA recognition models, an integrated recognition model of multi-LDA fusion is established to identify the motor imagery intention.
[0018] The source individual EEG signal D in step 1.1) s ∈R c×l , s=1,2,...,N, N is the total number of individuals, the EEG signal D of the target individual t ∈R c×l , c is the number of EEG channels, and l is the number of sampling points.
[0019] In step 1.2), the spatial filters of the source individual EEG signals are W s ∈R c×2m , the extracted source individual EEG spatial feature is F s =W s T D s ; The spatial filter of the target individual EEG signal is W t ∈R c×2m , the extracted EEG spatial feature of the target individual is F t =W t T D t , 2m is the feature dimension after spatial filtering of the CSP algorithm.
[0020] The correction of the source individual EEG spatial features in step 1.3) is to calculate the correction matrix θ between the source individual EEG spatial features and the target individual EEG spatial features, so that the corrected source individual EEG spatial features F s ′=θF s and the target individual EEG spatial feature F t Minimize, that is where ||·||F is the Frobenius norm.
[0021] In step 1.3), the correction matrix θ between the source individual EEG spatial features and the target individual EEG spatial features, its optimal solution θ * Obtained through the following optimization criteria:
[0022]
[0023] Among them, α is the constraint factor, P is the constraint matrix, I is the identity matrix, and the constraint matrix P is defined as:
[0024]
[0025] Among them, the matrix element is p ij =e -d(i,j) (i,j=1,2,...,c), d(i,j) is the Euclidean distance between channel i and channel j,
[0026] By using the singular value decomposition method, the optimal solution of the correction matrix θ is calculated as:
[0027] θ * =VU T
[0028] Where V and U are A=W s T W t +2αP decomposition matrix, that is: V T AU=W s T W t +2αP.
[0029] The ERD / ERS intensity compensation process in step 1.4) is as follows: first, the corrected source individual EEG spatial feature F s ′=θF s and the target individual EEG spatial feature F t Calculate the ERD / ERS intensity of the source individual EEG respectively s ERD / ERS and target individual ERD / ERS intensity Power t ERD / ERS
[0030] and
[0031] Among them, Log(·) is the logarithmic function, Var(·) is the variance function,
[0032] Then, the intensity compensation coefficient is calculated as
[0033] Finally, the corrected source individual ERD / ERS intensity is compensated, i.e. cPower s ERD / ERS =(δ+1)·Power s ERD / ERS .
[0034] The input sample of the LDA classifier in step 2.1) is the corrected ERD / ERS intensity feature of the source individual and the ERD / ERS intensity feature of the target individual, that is, sample = [cPower s ERD / ERS ,Power t ERD / ERS ], a separate classification model is established for each source individual:
[0035]
[0036] Among them, ω s and b s are the linear projection vector and bias value of the LDA recognition model of the sth source individual respectively.
[0037] In step 2.2), each LDA recognition model is evaluated using a confidence score, and the confidence score is as follows:
[0038]
[0039] Among them, χ s is the confidence of the LDA recognition model of the sth source individual, accuracy s is the classification accuracy of the s-th source individual LDA recognition model, Σ w,s is the intra-class dispersion of the LDA recognition model for the sth source individual.
[0040] The integrated recognition model of multi-LDA fusion in step 2.3) is:
[0041]
[0042] When LDA fusion When it is greater than zero, the output of the integrated recognition model is category 1. fusion When it is less than zero, the output of the integrated recognition model is category 2.
[0043] The category 1 and category 2 represent the left-hand motor imagery intention and the right-hand motor imagery intention, respectively.
[0044] The present invention has the following beneficial effects and advantages:
[0045] 1. The present invention utilizes a small amount of EEG signals of a new individual, combined with the EEG signals of existing individuals in the data set, to correctly identify motor imagery intentions. In practical applications, it can effectively reduce the training time of new individuals and improve the practicality of the system.
[0046] 2. The present invention designs a spatial feature correction matrix that can effectively remove the spatial feature differences in the distribution of EEG signals of different individuals in the brain area;
[0047] 3. The present invention introduces the ERD / ERS intensity compensation coefficient to map the EEG signals of different individuals into spatial features, thereby eliminating the differences in ERD / ERS intensity in the spatial features;
[0048] 4. The present invention trains a recognition model for each existing individual EEG signal, introduces a confidence coefficient for model evaluation, fuses multiple existing individual recognition models together, and constructs an integrated recognition model for new individual EEG signals; BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flow chart of the method of the present invention;
[0050] Figure 2 It is a comparison diagram of the spatial characteristic distribution of the existing individual EEG signal before and after correction and the spatial characteristic distribution of the new individual EEG signal of the present invention;
[0051] Figure 3 It is a comparison diagram of the sample distribution of the existing individual EEG signal before and after correction and the sample distribution of the new individual EEG signal of the present invention. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0053] like Figure 1 Shown is a flow chart of the method of the present invention.
[0054] The existing individual EEG signals and the new individual EEG signals are defined as the source individual EEG signals D s ∈R c×l (s=1,2,...,N, N is the total number of existing individuals) and the target individual EEG signal D t ∈R c×l (c is the number of EEG channels, l is the number of sampling points).
[0055] Using the CSP algorithm, the spatial filters of the source individual EEG signal and the target individual EEG signal are designed as W s ∈R c×2m and W t ∈R c×2m(2m is the feature dimension after spatial filtering of the CSP algorithm), the extracted EEG spatial features are F s =W s T D s and F t =W t T D t .
[0056] The EEG spatial feature correction process is to calculate the correction matrix θ between the source individual EEG spatial feature and the target individual EEG spatial feature, so that the corrected source individual EEG spatial feature F s ′=θF s and the target individual EEG spatial feature F t Minimize, that is where ||·|| F is the Frobenius norm.
[0057] The optimal solution of the correction matrix θ between the source individual EEG spatial features and the target individual EEG spatial features can be obtained by the following optimization criteria:
[0058]
[0059] Among them, α is the constraint factor, P is the constraint matrix, and I is the identity matrix. The constraint matrix P is defined as:
[0060]
[0061] Among them, the matrix element is p ij =e -d(i,j) (i,j=1,2,...,c), d(i,j) is the Euclidean distance between channel i and channel j.
[0062] By using the singular value decomposition method, the optimal solution of the correction matrix θ is calculated as:
[0063] θ * =VU T
[0064] Where V and U are A=W s T W t +2αP decomposition matrix, that is: V T AU=W s T W t +2αP.
[0065] Figure 2 It is a comparison between the spatial feature distribution of the existing individual EEG signals before and after correction and the spatial feature distribution of the new individual EEG signals.
[0066] The ERD / ERS intensity compensation process is as follows: First, the corrected source individual EEG spatial feature F s ′=θF s and the target individual EEG spatial feature F t The ERD / ERS intensity was calculated as
[0067] and
[0068] Among them, Log(·) is the logarithmic function and Var(·) is the variance function.
[0069] Then, the intensity compensation coefficient is calculated as Finally, the corrected source individual ERD / ERS intensity is compensated, i.e. cPower s ERD / ERS =(δ+1)·Power s ERD / ERS .
[0070] LDA classifier is used to establish a separate recognition model. The input samples of the classifier are the corrected ERD / ERS intensity features of the source individual and the ERD / ERS intensity features of the target individual, that is, sample = [cPower s ERD / ERS ,Power t ERD / ERS ]. A separate classification model is established for each source individual:
[0071]
[0072] Among them, ω s and b s are the linear projection vector and bias value of the sth source individual LDA classification model respectively.
[0073] Figure 3 It is a comparison between the sample distribution of the existing individual EEG signals before and after correction and the sample distribution of the new individual EEG signals.
[0074] Each LDA recognition model is evaluated using a confidence score, which is calculated as follows:
[0075]
[0076] Among them, χ s is the confidence of the LDA recognition model of the sth source individual, accuracy s is the classification accuracy of the s-th source individual LDA recognition model, Σ w,sis the intra-class dispersion of the LDA recognition model for the sth source individual.
[0077] The integrated recognition model of multiple LDA fusions is established as follows:
[0078]
[0079] Finally, when LDA fusion When it is greater than zero, the output of the integrated classifier is category 1 (representing the left hand motor imagery intention). fusion When it is less than zero, the output of the ensemble classifier is category 2 (representing right-hand motor imagery intention).
Claims
1. A method for identifying motor imagery intention based on individual EEG signal migration, characterized in that: Including EEG signal correction process and integrated recognition process; The EEG signal correction process comprises the following steps: 1.1) Acquire the EEG signals of existing individuals as source EEG signals, and collect the EEG signals of new individuals as target EEG signals; 1.2) Using the CSP algorithm, different spatial filters are designed to extract the spatial features of the source and target EEG signals respectively; 1.3) Correct the EEG spatial characteristics of the source individual; 1.4) Compensate the corrected source individual ERD / ERS intensity for building the LDA recognition model; The integrated identification process includes the following steps: 2.1) Using LDA classifier, a separate LDA recognition model is established for each source individual; 2.2) Evaluate each LDA recognition model; 2.3) Based on all LDA recognition models, an integrated recognition model of multi-LDA fusion is established to identify the motor imagery intention; In step 1.2), the spatial filters of the source individual EEG signals are W s ∈R c×2m , the extracted source individual EEG spatial feature is F s =W s T D s ; The spatial filter of the target individual EEG signal is W t ∈R c×2m , the extracted EEG spatial feature of the target individual is F t =W t T D t , 2m is the feature dimension after spatial filtering of the CSP algorithm; The correction of the source individual EEG spatial features in step 1.3) is to calculate the correction matrix θ between the source individual EEG spatial features and the target individual EEG spatial features, so that the corrected source individual EEG spatial features F s ′=θF s and the target individual EEG spatial feature F t Minimize, that is where ||·|| F is the Frobenius norm; In step 1.3), the correction matrix θ between the source individual EEG spatial features and the target individual EEG spatial features, its optimal solution θ * Obtained through the following optimization criteria: Among them, α is the constraint factor, P is the constraint matrix, I is the identity matrix, and the constraint matrix P is defined as: Among them, the matrix element is p ij =e -d(i,j) , i,j=1,2,...,c, d(i,j) is the Euclidean distance between channel i and channel j, By using the singular value decomposition method, the optimal solution of the correction matrix θ is calculated as: θ * =VU T Where V and U are A=W s T W t +2αP decomposition matrix, that is: V T AU=W s T W t +2αP; The ERD / ERS intensity compensation process in step 1.4) is as follows: first, the corrected source individual EEG spatial feature F s ′=θF s and the target individual EEG spatial feature F t Calculate the ERD / ERS intensity of the source individual EEG respectively s ERD / ERS and target individual ERD / ERS intensity Power t ERD / ERS Among them, Log(·) is the logarithmic function, Var(·) is the variance function, Then, the intensity compensation coefficient is calculated as Finally, the corrected source individual ERD / ERS intensity is compensated, i.e. cPower s ERD / ERS =(δ+1)·Power s ERD / ERS ; The input sample of the LDA classifier in step 2.1) is the corrected ERD / ERS intensity feature of the source individual and the ERD / ERS intensity feature of the target individual, that is, sample = [cPower s ERD / ERS ,Power t ERD / ERS ], a separate classification model is established for each source individual: Among them, ω s and b s are the linear projection vector and bias value of the LDA recognition model of the s-th source individual respectively; In step 2.2), each LDA recognition model is evaluated using a confidence score, and the confidence score is as follows: Among them, χ s is the confidence of the LDA recognition model of the sth source individual, accuracy s is the classification accuracy of the s-th source individual LDA recognition model, Σ w,s is the intra-class dispersion of the LDA recognition model of the sth source individual; The integrated recognition model of multi-LDA fusion in step 2.3) is: When LDA fusion When it is greater than zero, the output of the integrated recognition model is category 1. fusion When it is less than zero, the output of the integrated recognition model is category 2.
2. The method for identifying motor imagery intention based on individual EEG signal migration according to claim 1, characterized in that: The source individual EEG signal D in step 1.1) s ∈R c×l , s=1,2,...,N, N is the total number of individuals, the EEG signal D of the target individual t ∈R c×l , c is the number of EEG channels, and l is the number of sampling points.
3. The method for identifying motor imagery intention based on individual EEG signal migration according to claim 1, characterized in that: The category 1 and category 2 represent the left-hand motor imagery intention and the right-hand motor imagery intention, respectively.
Citation Information
Cited By
Cross-subject domain adaptive motor imagery decoding method fusing EEG-fNIRS and application
CN121479641A
