Rhythm motion decoding method based on electroencephalogram signals

Through the TDCA-CSP method, combined with task discriminant component analysis and co-spatial patterns, it solves the problem of being unable to decode fine movements and multi-category movements in the existing technology, achieves high-accuracy decoding of movement frequency and limbs, and improves brain-computer interfaces. The number of categories that can be sorted.

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

Patent Information

Application Number
CN202410592534.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-23
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

Existing motion decoding methods based on EEG signals cannot effectively decode fine motion information, such as the movements of different fingers, and the accuracy of multi-category motion decoding is low and it is difficult to distinguish motion frequencies.

Method used

The TDCA-CSP method, which combines task discriminant component analysis (TDCA) and common spatial pattern (CSP), is used to generate the optimal spatial filter through data preprocessing, two-stage data enhancement and linear discriminant analysis, combined with support vector machine (SVM) Classification, achieving simultaneous decoding of frequencies and limbs.

Benefits of technology

It improves the accuracy of motion decoding, realizes the classification of multiple rhythmic motions, and improves the precision and accuracy of decoding, reaching a 6-category motion decoding accuracy of 72.92±14.83%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535979A
    Figure CN118535979A
Patent Text Reader

Abstract

The invention discloses a rhythm motion decoding method based on electroencephalogram signals, and relates to the field of electroencephalogram signal processing and brain-computer interfaces, and the method comprises a task discriminant component analysis (TDCA) method, namely, a TDCA method, and a common spatial pattern (CSP) method, namely, a TDCA-CSP technology. A sample obtains a predicted frequency through TDCA, and then obtains predicted limbs, including a left hand and a right hand, through CSP; in the training stage, a TDCA spatial filter used for frequency classification and a CSP spatial filter used for limb classification are obtained through training of training data of each category; in a test stage, samples are sent to the TDCA-CSP decoding framework, and frequency and limb prediction is carried out. According to the method, based on a TDCA-CSP decoding framework, the frequency of the motion and the corresponding limbs can be decoded at the same time, and therefore classification of various rhythm motions is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to electroencephalogram (EEG) signal processing and brain-computer interface, and in particular to a rhythmic motion decoding method based on EEG signals. Background Art

[0002] Brain computer interfaces (BCI) technology can provide an effective way to reconstruct limb motor function and rehabilitation of motor function. Among them, BCI based on electroencephalogram (EEG) has attracted extensive attention due to the characteristics of EEG being non-invasive and having high temporal resolution.

[0003] The basis for achieving motor function reconstruction is to decode movement-related information from EEG signals. Traditional movement decoding methods are based on sensorimotor rhythm (SMR). When a limb, such as the left or right hand, performs actual or imagined movements, energy changes in the α and β frequency bands will occur in the limb-correlated areas of the sensorimotor cortex. By analyzing the distribution of energy changes in brain areas, the limbs of actual or imagined movements can be decoded. However, SMR-based movement decoding can only decode the limbs corresponding to the movement, but cannot decode more detailed movement-related information. In addition, the spatial resolution of EEG is limited, and it is difficult to support the decoding of fine limbs such as different fingers. Therefore, SMR-based movement decoding can basically only achieve four categories of left hand / right hand / feet / tongue.

[0004] In addition, the accuracy of multi-classification (greater than 4 categories) motion decoding based on EEG signals is generally low. For example, Schwarz et al. conducted a 7-class motion decoding study on single-handed / double-handed grasping tasks and rest, with an accuracy of 38.0%±6.6%. Jia et al. also decoded 7 types of motion tasks, including elbow flexion and extension, forearm pronation / supination, hand closure / opening, and rest, with an accuracy of 41.93%±7.8%. Although such an accuracy rate is significantly higher than the random level, there is still a large gap from the needs of practical applications.

[0005] In recent years, some researchers have found that when performing movements, observing movements, or imagining movements, if the movements are rhythmic, that is, repeated at a fixed frequency, then the corresponding motor cortex of the limb in the brain will also produce EEG activities of the same frequency and twice the frequency. This brain activity is called steady-state movement-related rhythm (SSMRR). If the characteristics of SSMRR can be fully utilized, it is expected that the decoding of moving limbs and movement frequencies can be achieved at the same time, thereby expanding the number of categories that can be classified for movement decoding. However, there is currently a lack of better decoding methods to fully utilize the characteristics of SSMRR to decode rhythmic movements of different frequencies.

[0006] Therefore, technicians in this field are committed to developing a rhythmic movement decoding method based on SSMRR in EEG signals, so as to simultaneously decode moving limbs and movement frequencies with a high accuracy, increase the number of classifiable brain-computer interface systems, and lay a solid foundation for achieving more flexible brain-computer interaction. Summary of the invention

[0007] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is how to distinguish the motion frequency.

[0008] To achieve the above-mentioned purpose, the present invention provides a rhythmic movement decoding method based on EEG signals, characterized in that it includes Task-Discriminant Component Analysis, i.e., TDCA method, and Common Spatial Pattern, i.e., CSP method, collectively referred to as TDCA-CSP technology; the sample first obtains the predicted frequency through TDCA, and then obtains the predicted limbs, including the left hand and the right hand, through CSP; in the training stage, TDCA obtains an optimal spatial filter through the training data of various categories, and in the testing stage, the sample is sent to the corresponding CSP for left-hand and right-hand decoding.

[0009] Furthermore, the data in the method needs to be preprocessed, including bandpass filtering, 50Hz notch filtering to remove power frequency interference, downsampling, and artifact subspace reconstruction, i.e., ASR method, to remove electrooculogram and motion artifacts; the bandpass filtering refers to using a 4th-order Butterworth filter to perform 0.8-40Hz bandpass filtering; the downsampling refers to downsampling from 1024Hz to 256Hz.

[0010] Furthermore, when generating the spatial filter, TDCA is required to perform two-stage data enhancement on the data. Assuming that the data of each trial is Nc is the number of channels, Nt is the number of time sampling points; the first stage enhancement is to expand X to in is the enhanced data, The delayed data obtained by delaying X by l time sampling points; the second stage is enhanced to expand the data to in is the enhanced data, yes Projection into the orthogonal space of the sine-cosine reference signals.

[0011] Furthermore, if the delayed data exceeds the range of trial, the data is padded with zeros; the frequency of the sine-cosine reference signal used includes the frequency of the rhythmic movement task and its double frequency.

[0012] Furthermore, after the data is enhanced, a two-dimensional linear discriminant analysis (LDA) method is used to find the optimal spatial filter so as to maximize the difference between classes and minimize the difference within classes.

[0013] Furthermore, the spatial filter solving process includes constructing a matrix representing the difference between classes for Construct a matrix to represent intra-class differences for Where N trial Represents the total number of trials in the training data set, N class Total number of representative categories; represents the data of the i-th trial, Represents the average of the data of the category corresponding to the i-th trial; represents the average of the i-th category; Represents the average of all trials of all classes; optimal spatial filter By solving the following optimization problem: Selection The first N sub subspace, we get

[0014] Furthermore, in the test phase, the samples used for testing will first go through the same data enhancement process as the training data; then, they will go through the following template matching process

[0015]

[0016]

[0017] Finally, the predicted category is obtained

[0018] Furthermore, since each type of task corresponds to two labels, frequency and limb, the predicted category It also corresponds to two labels including frequency and limbs.

[0019] Furthermore, the CSP in the method includes two parts: CSP feature extraction and support vector machine (SVM) classification, which also need to be trained through training data; specifically, the left hand / right hand data at the same frequency is used to train the CSP at that frequency; the frequency range selected by the CSP is a 1 Hz frequency band centered on the twice frequency of the task frequency, and the frequency range must cover the twice frequency of the task frequency and is a narrower frequency band; after the CSP extracts the features, the features are used to train the corresponding SVM classifier; a set of CSP-SVM needs to be trained for the left and right hands at each frequency respectively.

[0020] Furthermore, after the test sample passes through the CSP-SVM, the prediction result of left hand / right hand is obtained, which together with the frequency prediction of TDCA constitutes a complete prediction label, and finally predicts which category the sample belongs to.

[0021] The present invention has the following technical effects:

[0022] (1) Based on the TDCA-CSP decoding framework, it is possible to simultaneously decode the frequency of movement and the corresponding limb, thereby achieving the classification of multiple rhythmic movements.

[0023] (2) TDCA-CSP can make full use of the time domain and spatial information in the SSMRR signal to achieve a higher decoding accuracy.

[0024] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a TDCA-CSP algorithm diagram of a preferred embodiment of the present invention;

[0026] Figure 2 is an electrode channel diagram of a preferred embodiment of the present invention;

[0027] Figure 3 It is an experimental paradigm for verification of a preferred embodiment of the present invention;

[0028] Figure 4 It is a decoding result confusion matrix of a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0029] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.

[0030] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.

[0031] To address the problems that the existing motion decoding methods based on EEG signals can only distinguish the movements of different limbs but cannot distinguish the frequency of movements; and the accuracy of multi-classification (greater than 4 categories) motion decoding based on EEG signals is generally low, we propose a TDCA-CSP decoding method for rhythmic movements.

[0032] Our data acquisition uses a 64-channel Biosemi Active Two system with a sampling frequency of 1024 Hz. The channel arrangement uses a 10-20 system (such as Figure 2 ).

[0033] The data needs to be preprocessed before use. Common preprocessing processes include bandpass filtering (specifically, a 4th-order Butterworth filter can be used for 0.8-40Hz bandpass filtering), 50Hz notch filtering to remove power frequency interference, downsampling (specifically, downsampling from 1024Hz to 256Hz), and artifact subspace reconstruction (ASR) to remove electrooculogram and motion artifacts.

[0034] The TDCA-CSP method includes two parts: Task-Discriminant Component Analysis (TDCA) and common spatial pattern (CSP). The sample first obtains the predicted frequency through TDCA, and then obtains the predicted limb (left hand / right hand) through CSP. Specifically, TDCA-CSP is a trained method. Before use, you need to collect a test data set for training.

[0035] TDCA obtains an optimal spatial filter through training data of various categories. First, TDCA performs two-stage data enhancement on the data. Assume that the data of each trial is Nc is the number of channels, and Nt is the number of time sampling points. The first stage enhancement is to expand X to in is the enhanced data, It is obtained by delaying X by l time sampling points. If the delayed data exceeds the range of trial, the data is padded with zeros. The second stage enhancement is to expand the data to in is the enhanced data, yes Projection into the orthogonal space of sine-cosine reference signals. The frequencies of the sine-cosine reference signals used include the frequency of the rhythmic movement task and its double frequency.

[0036] After data enhancement, the optimal spatial filter is obtained through two-dimensional linear discriminant analysis (LDA), the principle of which is to maximize the difference between classes and minimize the difference within classes. Construct a matrix that represents the difference between classes for Construct a matrix to represent intra-class differences for Where N trial Represents the total number of trials in the training data set, N class Represents the total number of categories. represents the data of the i-th trial, Represents the average of the data for the category corresponding to the i-th trial. represents the average of the i-th category. Represents the average of all trials for all classes. The optimal spatial filter By solving the following optimization problem: Generally, choose The first N sub subspace, we get

[0037] In the testing phase, the samples used for testing will first go through the same data augmentation process as the training data. After that, the predicted category will be obtained through the following template matching process:

[0038]

[0039]

[0040] In particular, since each task corresponds to two labels, frequency and limb part, the predicted category It also contains two labels. In the TDCA-CSP method, we only use TDCA's prediction of frequency, and do not use the prediction of limbs such as left hand / right hand. According to the frequency prediction result, the sample is sent to the corresponding CSP for left hand / right hand decoding.

[0041] CSP includes CSP feature extraction and SVM (support vector machine) classification, which also needs to be trained through training data. Specifically, the left hand / right hand data at the same frequency is used to train the CSP at that frequency. The frequency range selected by CSP is a 1Hz frequency band centered on the double frequency of the task frequency (for example, the rhythmic movement task frequency is 1.5Hz, and the selected frequency band is 2.5Hz-3.5Hz. This selection method can also be adjusted according to actual conditions, but the principle is to cover the double frequency of the task frequency and it is a narrower frequency band). After CSP extracts features, the features are used to train the corresponding SVM classifier. (For example, there are 6 types of rhythmic movement tasks: 1Hz-left hand, 1Hz-right hand; 2Hz-left hand, 2Hz right hand; 3Hz left hand, 3Hz right hand, then a set of CSP-SVM needs to be trained for the left and right hands at each frequency).

[0042] After the test sample passes through CSP (CSP-SVM), the prediction result of left hand / right hand is obtained, which together with the frequency prediction of TDCA constitutes a complete prediction label, and finally predicts which category the sample belongs to. The prediction process of the test sample is as follows: Figure 1 As shown. (The TDCA and CSP in the figure are already trained).

[0043] In order to verify the effect of the method of the present invention on rhythmic movement decoding, data from 15 subjects were collected through experiments. The experimental process is described as follows: During the entire experiment, the participants sat in a comfortable chair in the electric stimulation shielded room. Task prompts were presented through the display in front of them. The sound metronome provides beats of a specified frequency. Participants were asked to perform rhythmic flexion and extension movements using the index and middle fingers of the designated hand. There are three task frequencies, 1.2Hz, 2.0Hz and 2.8Hz, so there are 6 types of tasks for the left and right hands and three frequency combinations. This experiment includes 10 runs, each run contains 30 trials, and the 30 trials include 5 times each of the 6 types of tasks (in random order). The timing of each trial is as follows Figure 3 As shown. At the beginning of the trial, a cross appeared on a black screen, and the subject was required to focus on the center of the cross. After 3 seconds, the task instructions appeared, including an arrow pointing to the left or right (corresponding to the left or right hand) and the task frequency prompt. The sound metronome started 1 second later and lasted for 5 seconds. During this stage, the subject was required to perform finger flexion and extension in synchronization with the sound rhythm with the corresponding hand. This was followed by a 3-second rest.

[0044] Based on the data collected in the above experiments, a 10×5-fold cross validation was performed. The results show that the TDCA-CSP algorithm in the present invention can achieve a 6-category motion decoding accuracy of 72.92±14.83% (the confusion matrix is ​​shown in Figure 4 ), demonstrating the effectiveness of the TDCA-CSP method for decoding rhythmic motion.

[0045] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A rhythmic motion decoding method based on EEG signals, characterized in that: It includes Task-Discriminant Component Analysis, i.e. TDCA method, and Common Spatial Pattern, i.e. CSP method, collectively known as TDCA-CSP technology; the sample first obtains the predicted frequency through TDCA, and then obtains the predicted limbs through CSP, including the left hand and the right hand; in the training stage, the TDCA spatial filter for frequency classification and the CSP spatial filter for limb classification are obtained through training data of various categories; During the testing phase, the samples are fed into the TDCA-CSP decoding framework for frequency and limb prediction.

2. The rhythmic motion decoding method based on EEG signals as claimed in claim 1, characterized in that: The data in the method needs to be preprocessed, including bandpass filtering, 50Hz notch filtering to remove power frequency interference, downsampling, and artifact subspace reconstruction, i.e., ASR method, to remove electrooculogram and motion artifacts; the bandpass filtering refers to using a 4th-order Butterworth filter to perform 0.8-40Hz bandpass filtering; the downsampling refers to downsampling from 1024Hz to 256Hz.

3. The rhythmic motion decoding method based on EEG signals as claimed in claim 2, characterized in that: When generating the spatial filter, TDCA is required to perform two-stage data enhancement on the data. Assume that the data of each trial is Nc is the number of channels, Nt is the number of time sampling points; The first stage is enhanced to expand X to in is the enhanced data, Delayed data obtained by delaying X by l time sampling points; The second stage is enhanced to expand the data into in is the enhanced data, yes Projection into the orthogonal space of the sine-cosine reference signals.

4. The rhythmic motion decoding method based on EEG signals as claimed in claim 3, characterized in that: If the delayed data exceeds the range of trial, the data is padded with zeros; the frequency of the sine-cosine reference signal used includes the frequency of the rhythmic movement task and its double frequency.

5. The rhythmic motion decoding method based on EEG signals as claimed in claim 4, characterized in that: After the data enhancement, the optimal spatial filter is obtained through two-dimensional linear discriminant analysis, namely LDA method, so as to maximize the difference between classes and minimize the difference within classes.

6. The rhythmic motion decoding method based on EEG signals as claimed in claim 5, characterized in that: The spatial filter solution process includes constructing a matrix representing the differences between classes for Construct a matrix to represent intra-class differences for Where N trial Represents the total number of trials in the training data set, N class Total number of representative categories; represents the data of the i-th trial, Represents the average of the data of the category corresponding to the i-th trial; represents the average of the i-th category; Represents the average of all trials of all classes; optimal spatial filter By solving the following optimization problem: Selection The first N sub subspace, we get 7. The rhythmic motion decoding method based on EEG signals as claimed in claim 6, characterized in that: In the test phase, the samples used for testing will first go through the same data enhancement process as the training data; then, they will go through the following template matching process Finally, the predicted category is obtained 8. The rhythmic motion decoding method based on EEG signals as claimed in claim 7, characterized in that: Since each type of task corresponds to two labels, frequency and limb, the predicted category It also corresponds to two labels including frequency and limbs.

9. The rhythmic motion decoding method based on EEG signals as claimed in claim 8, characterized in that: The CSP in the method includes two parts: CSP feature extraction and support vector machine SVM classification, which also needs to be trained through training data; specifically, the left hand / right hand data at the same frequency is used to train the CSP at that frequency; the frequency range selected by the CSP is a 1 Hz frequency band centered on the double frequency of the task frequency, and the frequency range must cover the double frequency of the task frequency and is a narrower frequency band; after the CSP extracts the features, the features are used to train the corresponding SVM classifier; a set of CSP-SVM needs to be trained for the left and right hands at each frequency respectively.

10. The rhythmic motion decoding method based on EEG signals as claimed in claim 9, characterized in that: After the test sample passes through the CSP-SVM, the prediction result of left hand / right hand is obtained, which together with the frequency prediction of TDCA constitutes a complete prediction label, and finally predicts which category the sample belongs to.

Citation Information

Patent Citations

  • Voice generation method and device based on electroencephalogram signal, terminal and storage medium

    CN113724687A

  • Motor imagery electroencephalogram decoding method based on spatial domain feature time-frequency transformation

    CN114533086A

  • Electroencephalogram signal feature processing method and device

    CN114692680A

  • Signal processing device, signal processing method and related products

    US20200241874A1