A dual-input time-domain feature enhancement method based on EEG motor imagery
The EEG time-domain feature extraction method through the dual-input key value attention mechanism solves the problem of low EEG motor imagination classification accuracy in the existing technology and achieves higher recognition accuracy and noise tolerance.
Patent Information
- Application Number
- CN202110201099.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing brainwave feature extraction methods are difficult to take into account the time domain, frequency domain, and spectral density, and the classification accuracy of brainwave motor imagery is not high, especially when there are obstacles in the transfer of model parameters between individuals.
EEG time-domain feature extraction method using dual-input key value attention mechanism, filtering EEG data through finite impulse response filter, sliding segmentation and combining with 1D dual-input key value attention mechanism to extract ERD/ERS features and improve motor imagination recognition effect.
It improves the classification accuracy of electroencephalogram motor imagery, enhances the fault tolerance of noise signals, and adapts to individual differences and environmental changes.
Smart Images

Figure CN113081003B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electroencephalogram signal processing, and in particular to a dual-input time-domain feature enhancement method based on electroencephalogram motion imagery. Background Art
[0002] Existing brain wave feature extraction methods are difficult to take into account the time domain, frequency domain, and spectral density. To avoid this problem, in the research of brain wave machine learning, people began to use end-to-end models to achieve classification and recognition to meet the high real-time requirements of brain-computer interaction. To achieve end-to-end machine learning of brain waves, from raw data (EEG Raw Data) input to the final output classifier, classification and recognition results, etc., there is no need for too much manual setting. The use of multi-layer neural networks can couple any nonlinear function. This is not just pre-processing the input data and using traditional network learning features based on prior knowledge for classification; it can also embed neural pattern conversion algorithms into nonlinear learning networks, such as attention mechanisms, back propagation, decision trees, greedy pursuit algorithms, etc., making the fitting of data more flexible. It has a high degree of robustness and fault tolerance to noise signals, and can completely approximate complex nonlinear relationships. In recent years, neural pattern conversion algorithms have become a core component of brain-computer interaction systems. However, since EEG information is easily disturbed and lost by the external environment, and individual activity patterns vary greatly, the classification accuracy of motor imagery needs to be improved. In addition, the sensory motor rhythm (SMR) neurophysiological process usually changes with the passage of time, environmental changes, and changes between subjects, thus hindering the transfer of training model parameters between subjects.
[0003] Currently, the time domain features of end-to-end EEG motion imagery mainly extract ERD / ERS features, but its disadvantage is that the classification accuracy is not high. Summary of the invention
[0004] In view of the above defects or deficiencies in the prior art, the purpose of the present invention is to provide a dual-input time domain feature enhancement method based on EEG motor imagery. The method adopts an EEG time domain feature extraction method using a dual-input key value attention mechanism to further refine the ERD / ERS features and improve the motor imagery recognition effect.
[0005] In order to solve the above problems, in a first aspect, the present invention provides a dual-input time domain feature enhancement method based on EEG motor imagery, the method comprising:
[0006] Data filtering: use a finite impulse response filter to filter the EEG data through bandpass filtering, and then perform sliding segmentation to obtain the input data of the learning network;
[0007] Data segmentation: ERD appears within 2-3 seconds after the occurrence of the evoked signal, and ERS appears after 4-5 seconds. Each time, the subjects follow the evoked prompts to imagine the movement for 4 seconds. In order to prevent the loss of ERD and ERS information, a multi-channel EEG signal segmentation technique is used according to their occurrence rules: from each motor imagery signal, it is segmented with a 2-second time window according to a sliding step of 100ms, and in order to meet the learning of the 1D dual-input key value attention mechanism in the training network, the latter starting time point in the dual input is 100ms later than the previous one;
[0008] Pattern recognition.
[0009] In a second aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the computer program.
[0010] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to:
[0011] When the computer program is executed by a processor, the method described in the embodiment of the present application is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The embodiments of the present invention will be described below with reference to the accompanying drawings, wherein
[0013] Figure 1 The schematic diagram of the dual-input time-domain feature enhancement process based on EEG motor imagery of the present application is shown;
[0014] Figure 2 A schematic diagram of the data segmentation strategy for dual-head input of the present application is shown. DETAILED DESCRIPTION
[0015] In order to make the invention purpose, technical process and technical innovation of the present invention more clearly described, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in each embodiment of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0016] To achieve the above objectives, the present invention provides a dual-input time domain feature enhancement method based on EEG motor imagery. The main process is as follows: Figure 1As shown, the method includes:
[0017] Data filtering, for EEG signals, a finite impulse response filter is used to filter the EEG data through bandpass filtering, and then sliding segmentation is performed to obtain the input data of the learning network; ERD / ERS can provide important information features for motor imagery analysis. ERD / ERS has information on time series. The longer the sequence, the more information it contains. However, it is constrained by the computing power of computer memory, CPU, GPU, etc., as well as the computing power constraints of BMI, which requires high timeliness. The original EEG data with an acquisition frequency of 1000Hz is downsampled, with a downsampling rate of 1 / 4, that is, 250Hz, and a bandpass filter of 4 to 40Hz is used to generate training input data to increase the calculation speed.
[0018] Data segmentation: ERD appears within 2 to 3 seconds after the evoked signal occurs, and ERS appears after 4 to 5 seconds. Each time, the subjects follow the evoked prompts to imagine the movement for 4 seconds. Figure 2 As shown in a in Figure 1, in order to prevent the loss of ERD and ERS information, a multi-channel EEG signal segmentation technique is used according to their occurrence rules: from each motor imagery signal, slide according to the step size of 100ms, that is, Figure 2 The Sliding Time in b is divided into 2s time windows, that is, Figure 2 The Time Size in b, and in order to meet the learning of the 1D dual-input key value attention mechanism in the training network, the latter starting time point in the dual input is 100ms later than the previous one;
[0019] Pattern recognition.
[0020] In particular, the method also includes network parameter settings and processing procedures: first, a one-dimensional convolution with a kernel of 32 is performed to extract different feature maps, and then MaxPool 1D is used to continue downsampling. At this time, the amplitude feature value with a time width of 0.25s is learned. Then, to prevent data overflow, normalization is performed first. Finally, to prevent overfitting, half of the data is Dropout, which contains a peak or trough of ERD / ERS.
[0021] In order to better understand the present invention, the above is described in detail in conjunction with specific examples of the present invention, but it is not intended to limit the present invention. Any simple modification made to the above embodiments based on the technical essence of the present invention still falls within the scope of the technical solution of the present invention.
[0022] As another aspect, the present application further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the computer program.
[0023] As another aspect, the present application further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the aforementioned device in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the aforementioned programs are used by one or more processors to execute the method described in the embodiment of the present application.
[0024] Any reference to the storage medium used in the embodiments of the present application may include non-volatile, volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), optical disk (including CD-ROM read-only memory (CD-ROM) and digital versatile disk (DVD)), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external high-speed cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM).
[0025] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (Programmable Gate Array; hereinafter referred to as: PGA), a field programmable gate array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
[0026] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0027] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software and firmware. If the integrated module is implemented in the form of software and firmware and sold or used as an independent product, it can be transferred from a storage medium or a network to a computer with a dedicated hardware structure for functional implementation.
[0028] It should also be noted that the steps of performing the above series of processes can naturally be performed in chronological order according to the order of description, but do not necessarily need to be performed in chronological order. Some steps can be performed in parallel or independently of each other.
[0029] Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present application. Any person skilled in the art can change, modify, replace and modify the above embodiments without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention is not limited thereto, and should be based on the scope defined by the claims.
Claims
1. A dual-input time-domain feature enhancement method based on EEG motor imagery, the method comprising: Data filtering: use a finite impulse response filter to filter the EEG data through bandpass filtering, and then perform sliding segmentation to obtain the input data of the learning network; Data segmentation: ERD appears within 2-3 seconds after the occurrence of the evoked signal, and ERS appears after 4-5 seconds. Each time, the subjects follow the evoked prompts to imagine the movement for 4 seconds. In order to prevent the loss of ERD and ERS information, a multi-channel EEG signal segmentation technique is used according to their occurrence rules: from each motor imagery signal, it is segmented with a 2-second time window according to a sliding step of 100ms, and in order to meet the learning of the 1D dual-input key value attention mechanism in the training network, the latter starting time point in the dual input is 100ms later than the previous one; Pattern recognition, for the training data set, extract test data according to the data filtering steps and data segmentation steps, and then combine the trained model to perform SoftMax classification and discrimination.
2. The method according to claim 1, characterized in that The method also includes network parameter setting and processing: first, a one-dimensional convolution with a kernel of 32 is performed to extract different feature maps, and then MaxPool 1D is used to continue downsampling. At this time, the amplitude feature value with a time width of 0.25s is learned. Then, to prevent data overflow, normalization is performed first. Finally, to prevent overfitting, half of the data is Dropout, which contains a peak or trough of ERD / ERS.
3. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.
4. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is used to: implement the method according to any one of claims 1 to 2 when the computer program is executed by a processor.
