Method and device for generating artificial data of motor imagery based on empirical mode decomposition
Artificial data with real data characteristics are generated through empirical mode decomposition and co-spatial pattern algorithms, which solves the problems of long calibration time and low ease of use of the motor imagery-based BCI system, and improves the practicality of the system.
Patent Information
- Application Number
- CN202111129725.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-09-26
AI Technical Summary
Due to the small amount of data and large feature differences, brain-computer interface systems based on motor imagery are difficult to obtain high-performance classification models and require long-term calibration, resulting in user fatigue and low system usability.
The artificial data generation method of motor imagery based on empirical mode decomposition is used to generate artificial data with the same frequency domain and time domain characteristics by decomposing and combining real data, reducing calibration time, and combining co-space patterns and support vector machine algorithms. Perform feature extraction and classification.
It effectively shortens the calibration time for new users, improves the practicality and adaptability of the BCI system based on motor imagery, and improves the ease of use of the system.
Smart Images

Figure CN113849067B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial data generation of brain-computer interface (Brian Computer Interface, BCI for short), and in particular to a method and device for generating artificial data of motor imagery based on empirical mode decomposition. Background Art
[0002] Brain computer interface (BCI) technology establishes a non-muscle and peripheral nerve-independent information transmission channel between the human brain and the computer. This technology can collect and classify brain signals and convert them into control signals, thus achieving the purpose of information transmission without passing through peripheral nerves and muscle tissue. In 1997, Gert Pfurtscheller discovered that human left-hand and right-hand motor imagery are separable in certain frequency bands in the sensorimotor area of electroencephalography (EEG) signals. Therefore, brain-computer interface technology based on motor imagery can help patients with diseases such as amyotrophic lateral sclerosis control external devices.
[0003] The present invention studies the BCI system based on motor imagery. Event-related synchronization / desynchronization refers to the phenomenon that a specific frequency band of the electroencephalogram shows a decrease / increase in energy within a period of time after a certain thought event occurs, which can characterize the human's motor imagery intention in a specific part of the brain area. In 1991, the Wolpaw team used the mu rhythm to achieve one-dimensional cursor movement, making it possible for the brain-computer interface system based on motor imagery to control external devices. At present, the mainstream brain-computer interface system based on motor imagery can generally achieve four-command output according to the motor imagery of the left hand, right hand, foot and tongue. The performance of this type of brain-computer interface system is mainly measured by the online classification accuracy. The present invention discloses a method for generating artificial data of motor imagery based on empirical mode decomposition. The method realizes the expansion of the real data set and obtains generated data that is similar to the real data in terms of frequency domain and time domain characteristics.
[0004] The amount of BCI data based on motor imagery is small, and it is difficult to obtain a high-performance classification model. It also requires a long time for calibration, which can easily cause user fatigue and greatly reduce the usability of the brain-computer interface system. In order to overcome the problems of large feature differences and small amount of trainable data, the method of artificial data generation is introduced. A more adaptable classification model is obtained by training with real data and generated data. The model can adapt to the calibration of a small amount of new user EEG data to achieve the online mode recognition task. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method and device for generating artificial data of motor imagery based on empirical mode decomposition, which can replace the long-term data collection when a new user calibrates the system by artificially generating data, effectively shorten the calibration time and improve the practicality of the BCI system based on motor imagery.
[0006] In order to solve the above technical problems, the present invention provides a method for generating artificial data of motor imagery based on empirical mode decomposition, comprising:
[0007] Step S1, determining the number of trials m of artificial data that need to be generated;
[0008] Step S2, obtaining part of the user's real movement imagination data;
[0009] Step S3, performing empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and grouping them according to labels, wherein the labels correspond to different limb parts of the real motor imagery;
[0010] Step S4, for each group of data, randomly select a number of the real motor imagery data, and sum and average the intrinsic mode functions IMFs generated by the decomposition thereof to obtain artificial data of one trial;
[0011] Step S5, repeating step S4 to obtain artificial data of trial number m;
[0012] Step S6: output the artificial data.
[0013] According to one embodiment of the present invention, the method for generating motor imagery artificial data further comprises:
[0014] Step S7, combining the artificial data and the real motor imagery data, and extracting features using a common space pattern algorithm;
[0015] Step S8: Use support vector machine to build a classifier model and perform classification.
[0016] According to one embodiment of the present invention, in step S3, the empirical mode decomposition step includes:
[0017] Step S31, assuming that the real motor imagery data is x(t), let s(t) = x(t), initialize i = 0, r 0 (t) = x(t);
[0018] Step S32, calculating the local maximum and local minimum of s(t), and using interpolation to obtain the upper and lower envelopes of s(t);
[0019] Step S33, calculating the average value m(t) of the upper and lower envelopes of s(t);
[0020] Step S34, subtract m(t) from s(t) to obtain h(t)=s(t)-m(t), and determine whether h(t) meets the IMF condition;
[0021] Step S35, if h(t) does not meet the IMF condition, set s(t) = h(t) and return to step S32, otherwise go to step S36;
[0022] Step S36, obtain the i+1th IMF: IMF i+1 (t) = h(t);
[0023] Step S37, calculate r i+1 (t) = r i (t)-IMF i+1 (t);
[0024] Step S38, if r i+1 The upper and lower envelopes of (t) can be obtained and r i+1 (t) is not monotonic, then let s(t) = r i+1 (t), i=i+1, return to step S32.
[0025] According to one embodiment of the present invention, in step S1, 40% of the number of trials in a conventional calibration process is selected as the number of trials m.
[0026] According to one embodiment of the present invention, in step S2, the real movement imagery data of the left and right hands of the user are collected and marked according to the left hand or the right hand.
[0027] The present invention also provides a device for generating artificial data of motor imagery based on empirical mode decomposition, comprising:
[0028] A trial number generation module, adapted to determine the number of trials m of artificial data to be generated;
[0029] An acquisition module, which acquires part of the user's real motion imagination data;
[0030] a decomposition and grouping module, adapted to perform empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and group them according to labels, wherein the labels correspond to different limb parts of the real motor imagery;
[0031] A data generation module, adapted to obtain artificial data of the number of trials m, wherein the artificial data of each trial is obtained by randomly selecting a number of the real motor imagery data for each group of data, and decomposing the generated intrinsic mode functions IMFs and summing and averaging them;
[0032] An output module is adapted to output the artificial data.
[0033] According to one embodiment of the present invention, the motor imagery artificial data generation device also includes an evaluation module, which is suitable for merging the artificial data and real motor imagery data, and using a common space pattern algorithm to extract features; a classifier model is constructed through a support vector machine and classification is performed.
[0034] The present invention also provides a computer-readable medium having computer instructions stored thereon, which, when executed, execute the steps of the aforementioned method for generating artificial data of motor imagery based on empirical mode decomposition.
[0035] The present invention also provides an artificial data generation system, including a memory and a processor, wherein the memory stores computer instructions that can be run on the processor, and when the processor runs the computer instructions, the steps of the aforementioned method for generating artificial data of motion imagination based on empirical mode decomposition are executed.
[0036] The present invention provides a method and device for generating artificial data of motor imagery based on empirical mode decomposition, a computer-readable medium, and a generation system, which replace the long-term data collection when a new user calibrates the system with artificially generated data, can effectively shorten the calibration time and improve the practicality of the BCI system based on motor imagery. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein:
[0038] Figure 1 A flow chart of a method for generating artificial data of motor imagery based on empirical mode decomposition according to an embodiment of the present invention is shown;
[0039] Figure 2 A schematic diagram showing the Eigenmode Functions (IMFs) obtained by empirical mode decomposition of real motor imagery data;
[0040] Figure 3 A diagram showing a method for synthesizing artificial data using intrinsic mode functions (IMFs) is shown;
[0041] Figure 4 A schematic structural diagram of a device for generating artificial data of motor imagery based on empirical mode decomposition according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0044] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0045] When describing the embodiments of the present application in detail, for the sake of convenience, the cross-sectional views showing the device structure will not be partially enlarged according to the general scale, and the schematic views are only examples, which should not limit the scope of protection of the present application. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0046] For ease of description, spatial relationship words such as "under", "below", "below", "below", "above", "on", etc. may be used here to describe the relationship between one element or feature shown in the drawings and other elements or features. It will be understood that these spatial relationship words are intended to include other directions of the device in use or operation in addition to the direction depicted in the drawings. For example, if the device in the drawings is turned over, the direction of the element described as being "under" or "under" or "below" other elements or features will be changed to "above" the other elements or features. Thus, the exemplary words "under" and "below" can include both the up and down directions. The device may also have other orientations (rotated 90 degrees or in other orientations), so the spatial relationship descriptors used here should be interpreted accordingly. In addition, it will be understood that when a layer is referred to as being "between" two layers, it can be the only layer between the two layers, or there can be one or more layers in between.
[0047] In the context of the present application, a structure in which a first feature is described as being "on" a second feature may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which an additional feature is formed between the first and second features, such that the first and second features may not be in direct contact.
[0048] The motor imagery EEG signal is when the subject is imagining limb movements, and specific cortices of the brain are activated. At this time, EEG signals with certain patterns can be recorded on the motor cortex scalp using electrodes. This motor imagery EEG is a spontaneous EEG that is controlled by a person's voluntary will.
[0049] The human central nervous system consists of the spinal cord and brain. The brain is divided into three main regions: the brainstem, cerebellum, and cerebrum. The brainstem is an extension of the spinal cord that connects the cerebral cortex, spinal cord, and cerebellum, and is also the control center for motor reflexes. Within the nervous system, there are ascending tracts from the spinal cord that transmit information to the brainstem (such as pain or touch), and descending tracts that connect the cerebrum and cerebellum to motor neurons, thereby controlling skeletal muscle movement.
[0050] When a subject imagines a specific limb movement, the EEG signal of motor imagery is recorded by placing electrodes on the human scalp. The recorded brain potential is actually the superposition of the collective discharge of the neuronal population in the brain. Brain activity is related to different events and stimulus types. For example, sensory stimulation can cause changes in the collective activity of neurons, which can be observed in the EEG signal.
[0051] Before explaining in detail the method for generating artificial data for motor imagery based on empirical mode decomposition, the application scenario of the method is introduced first. Conventional motor imagery brain-computer interface systems require users to calibrate before use. A single trial requires the user to wear a signal acquisition device and imagine the corresponding limb movement for 4-8 seconds, with an interval of about 1 second between adjacent trials. User calibration usually requires collecting data from 100 to 200 trials, which is very time-consuming and easily fatigues the user. The artificial data generation method can reduce the calibration time of the motor imagery brain-computer interface system by first collecting part of the user's real data and then generating artificial data with the same frequency domain and time domain characteristics, thereby improving the practicality of the system.
[0052] Figure 1 A flow chart of a method for generating artificial data of motor imagery based on empirical mode decomposition according to an embodiment of the present invention is shown. Figure 2 A schematic diagram showing the eigenmode functions (IMFs) obtained by empirical mode decomposition of real motor imagery data. Figure 3 A method for synthesizing artificial data using intrinsic mode functions (IMFs) is shown. As shown in the figure, a method for generating artificial data for motor imagery based on empirical mode decomposition includes:
[0053] Step S1, determining the number of trials m of artificial data that need to be generated;
[0054] Step S2, obtaining part of the user's real movement imagination data;
[0055] Step S3, performing empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and dividing them into different groups according to labels, where the labels correspond to different limb parts of the real motor imagery, such as left hand and right hand;
[0056] Step S4, for each group of data, randomly select a number of real motor imagery data, and sum and average the intrinsic mode functions IMFs generated by the decomposition to obtain artificial data of one trial;
[0057] Step S5, repeating step S4 to obtain artificial data of trial number m;
[0058] Step S6, outputting artificial data.
[0059] Preferably, the motor imagery artificial data generation method further comprises:
[0060] Step S7, merging the artificial data and the real motor imagery data, and extracting features using a common space pattern algorithm;
[0061] Step S8, constructing a classifier model and performing classification using a support vector machine. A support vector machine is a generalized linear classifier that performs binary classification on data in a supervised learning manner, and its decision boundary is a maximum-margin hyperplane that is solved for the learning samples.
[0062] Preferably, in step S3, the empirical mode decomposition step includes:
[0063] Step S31, assuming that the real motor imagery data is x(t), let s(t) = x(t), initialize i = 0, r 0 (t) = x(t);
[0064] Step S32, calculating the local maximum and local minimum of s(t), and using interpolation to obtain the upper and lower envelopes of s(t);
[0065] Step S33, calculating the average value m(t) of the upper and lower envelopes of s(t);
[0066] Step S34, subtract m(t) from s(t) to obtain h(t)=s(t)-m(t), and determine whether h(t) meets the IMF condition;
[0067] Step S35, if h(t) does not meet the IMF condition, set s(t) = h(t) and return to step S32, otherwise go to step S36;
[0068] Step S36, obtain the i+1th IMF: IMF i+1 (t) = h(t);
[0069] Step S37, calculate r i+1 (t) = r i (t)-IMF i+1 (t);
[0070] Step S38, if r i+1 The upper and lower envelopes of (t) can be obtained and r i+1 (t) is not monotonic, then let s(t) = r i+1 (t), i=i+1, return to step S32, otherwise the empirical mode decomposition calculation ends;.
[0071] Preferably, in step S1, 40% of the number of trials in the conventional calibration process is selected as the number of trials m. The number of trials in the conventional calibration process is set empirically, generally 150 to 200 times, and the corresponding number of trials m is 60 to 80 times.
[0072] Preferably, in step S2, the real imaginary movement data of the user's left and right hands are collected and marked according to the left or right hand. For example, the real imaginary left hand movement data is marked as 1, and the real imaginary right hand movement data is marked as -1.
[0073] Figure 4 The schematic diagram of the structure of a motor imagery artificial data generation device based on empirical mode decomposition according to an embodiment of the present invention is shown. As shown in the figure, a motor imagery artificial data generation device based on empirical mode decomposition 400 includes a trial number generation module 401, an acquisition module 402, a decomposition and grouping module 403, a data generation module 404 and an output module 405.
[0074] The trial number generating module 401 is adapted to determine the trial number m of artificial data to be generated;
[0075] The acquisition module 402 is adapted to acquire part of the user's real motor imagery data;
[0076] The decomposition and grouping module 403 is adapted to perform empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and group them according to labels, wherein the labels correspond to different limb parts of the real motor imagery;
[0077] The data generation module 404 is adapted to obtain artificial data of the number of trials m, wherein the artificial data of each trial is obtained by randomly selecting a number of real motor imagery data for each group of data, and decomposing the generated intrinsic mode functions IMFs and summing and averaging them;
[0078] The output module 405 is adapted to output artificial data.
[0079] Preferably, the motor imagery artificial data generation device further comprises an evaluation module 406. The evaluation module 406 is adapted to merge the artificial data and the real motor imagery data, extract features using a common space pattern algorithm, and construct a classifier model and perform classification using a support vector machine.
[0080] The present invention also provides a computer-readable medium on which computer instructions are stored. When the computer instructions are executed, the steps of the aforementioned method for generating artificial data of motor imagery based on empirical mode decomposition are executed.
[0081] The present invention also provides an artificial data generation system, including a memory and a processor, wherein the memory stores computer instructions that can be run on the processor, and when the processor runs the computer instructions, the steps of the aforementioned method for generating artificial data of motion imagination based on empirical mode decomposition are executed.
[0082] Some aspects of the method for generating artificial data of motor imagery based on empirical mode decomposition of the present invention can be completely executed by hardware, can be completely executed by software (including firmware, resident software, microcode, etc.), or can be executed by a combination of hardware and software. The above hardware or software can be referred to as "data block", "module", "engine", "unit", "component" or "system". The processor can be one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors or combinations thereof. In addition, various aspects of the present application may be expressed as a computer product located in one or more computer-readable media, which includes computer-readable program code. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs...), smart cards, and flash memory devices (e.g., cards, sticks, key drives...).
[0083] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0084] The method and device for generating artificial motor imagery data based on empirical mode decomposition, computer-readable medium, and generation system proposed in the present invention can use the EMD algorithm to decompose the actually collected motor imagery EEG data into IMFs, and through the random combination of IMFs and superposition and averaging, can generate artificial data with the same frequency domain and time domain characteristics as the real data, thereby achieving the function of reducing the calibration time of the motor imagery brain-computer interface.
[0085] Although the present invention has been described with reference to the current specific embodiments, a person skilled in the art should recognize that the above embodiments are only used to illustrate the present invention, and various equivalent changes or substitutions may be made without departing from the spirit of the present invention. Therefore, any changes or modifications to the above embodiments within the spirit of the present invention will fall within the scope of the claims of this application.
Claims
1. A method for generating artificial data of motor imagery based on empirical mode decomposition, comprising: Step S1, determining the number of trials m of artificial data to be generated. In step S1, 40% of the number of trials in a conventional calibration process is selected as the number of trials m; Step S2, obtaining part of the user's real movement imagination data; Step S3, performing empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and grouping them according to labels, wherein the labels correspond to different limb parts of the real motor imagery; In step S3, the empirical mode decomposition step includes: Step S31, assuming that the real motor imagery data is x(t), let s(t)=x(t), initialize i=0, r0(t)=x(t); Step S32, calculating the local maximum and local minimum of s(t), and using interpolation to obtain the upper and lower envelopes of s(t); Step S33, calculating the average value m(t) of the upper and lower envelopes of s(t); Step S34, subtract m(t) from s(t) to obtain h(t)=s(t)-m(t), and determine whether h(t) meets the IMF condition; Step S35, if h(t) does not meet the IMF condition, set s(t) = h(t) and return to step S32, otherwise go to step S36; Step S36, obtain the i+1th IMF: IMF i+1 (t) = h(t); Step S37, calculate r i+1 (t) = r i (t)-IMF i+1 (t); Step S38, if r i+1 The upper and lower envelopes of (t) can be obtained and r i+1 (t) is not monotonic, then let s(t) = r i+1 (t), i=i+1, return to step S32; Step S4, for each group of data, randomly select a number of the real motor imagery data, and sum and average the intrinsic mode functions IMFs generated by the decomposition thereof to obtain artificial data of one trial; Step S5, repeating step S4 to obtain artificial data of trial number m; Step S6: output the artificial data.
2. The method for generating motor imagery artificial data according to claim 1, wherein: Also includes: Step S7, combining the artificial data and the real motor imagery data, and extracting features using a common space pattern algorithm; Step S8: Use support vector machine to build a classifier model and perform classification.
3. The method for generating motor imagery artificial data according to claim 1, wherein: In step S2, the real movement imagery data of the user's left and right hands are collected and marked according to the left hand or the right hand.
4. A motor imagery artificial data generation device based on empirical mode decomposition, applicable to the motor imagery artificial data generation method as claimed in claim 1, characterized in that: include: A trial number generation module, adapted to determine the number of trials m of artificial data to be generated; An acquisition module, which acquires part of the user's real motion imagination data; a decomposition and grouping module, adapted to perform empirical mode decomposition on the real motor imagery data to obtain a plurality of intrinsic mode functions IMFs, and group them according to labels, wherein the labels correspond to different limb parts of the real motor imagery; A data generation module, adapted to obtain artificial data of the number of trials m, wherein the artificial data of each trial is obtained by randomly selecting a number of the real motor imagery data for each group of data, and decomposing the generated intrinsic mode functions IMFs and summing and averaging them; An output module is adapted to output the artificial data.
5. The motor imagery artificial data generating device according to claim 4, characterized in that: It also includes an evaluation module, which is suitable for merging the artificial data and the real motor imagery data, and adopting a common space pattern algorithm to extract features; and constructing a classifier model through a support vector machine and performing classification.
6. A computer readable medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed, the steps of the method for generating artificial data of motor imagery based on empirical mode decomposition according to any one of claims 1 to 3 are executed.
7. An artificial data generation system, comprising a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, characterized in that: When the processor runs the computer instructions, the processor performs the steps of the method for generating motor imagery artificial data based on empirical mode decomposition according to any one of claims 1 to 3.
