Group brain-computer interface cooperative control system and method based on SSVEP (Steady-State Visual Evoked Potential)
By designing a group brain-computer interface collaborative control system based on SSVEP, TCP/IP and UDP protocols are used to process data from multiple EEG acquisition devices, achieving efficient collaborative control among multiple people and solving the problem that a single system cannot achieve group competition. The issue of cooperation improves the effect of motor function rehabilitation in medical rehabilitation.
Patent Information
- Application Number
- CN202410796740.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing brain-computer interface system is mainly a single system, which cannot effectively realize collaborative control and interaction between multiple people, especially in complex environments, and lacks the function of group competition and cooperation, resulting in ineffective applications in fields such as medical rehabilitation. good.
A group brain-computer interface collaborative control system based on SSVEP is designed, including a brain-controlled game stimulation module, a data receiving module, a process control module, a data analysis module and a message communication module. It collects and processes multiple data through TCP/IP and UDP protocols. The data from the EEG collection device is decoded and identified using the FBCCA algorithm to achieve collaborative control between multiple people.
It achieves efficient collaborative control between multiple people, improves the data processing efficiency and real-time performance of the system, enhances stability and reliability in complex environments, stimulates patients' enthusiasm, and promotes the rehabilitation and reconstruction of motor functions.
Smart Images

Figure CN118732845A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bioelectric signal processing, and in particular to a group brain-computer interface collaborative control system and method based on SSVEP. Background Art
[0002] Human society determines that individuals cannot be separated from the group and walk alone. This is a manifestation of human sociality. The result of individual development is bound to be close to the group. As a new way for people to interact with the external environment, the research on brain-computer interface (BCI) has become mature. Common BCIs include: motor imagery (MI), motion visual evoked potentials (mVEP) and steady-state visual evoked potentials (SSVEP). However, most of the current brain-computer interfaces are based on monomer systems, focusing on the interaction between a single subject and the machine, which is out of the essential attribute of people to participate in group competition and cooperation. Group BCI refers to the use of more mature BCI technology to simultaneously collect and process the EEG signals of each subject in the same group brain-computer interface system, and then use collaborative technology to realize the real-time interactive control of multiple subjects on the same external device, thereby realizing the group control system of BCI. The final link in the development of BCI theory is to use it in a variety of complex environments, and the collaborative cooperation between multiple people will be more efficient. In medical rehabilitation, the rehabilitation training of a single patient may have little effect. By taking advantage of the social attribute that people cannot be separated from the group, certain rules can be formulated to allow the group system of patients to establish a competitive or cooperative relationship with other people, thereby increasing the entertainment value of the rehabilitation process and speeding up the process of motor function rehabilitation and reconstruction. Summary of the invention
[0003] The main purpose of the embodiments of the present invention is to propose a group brain-computer interface collaborative control system and method based on SSVEP, aiming to design a system suitable for various group brain-computer interactions and collaborative control.
[0004] The technical solution of the present invention to solve the above technical problems is to provide a group brain-computer interface collaborative control system based on SSVEP, including:
[0005] A brain-controlled game stimulation module for displaying flashing blocks with visual stimulation functions and for displaying competitor scores;
[0006] A data receiving module, used to collect EEG data from multiple EEG collection devices through TCP / IP service protocol;
[0007] The process control module is used to receive the EEG data from the data receiving module and send the return message to the brain control game stimulation module for interaction;
[0008] Data analysis module, used to process EEG data of process control module;
[0009] The pattern recognition module is used to filter and perform singular value decomposition preprocessing on the EEG data processed by the data analysis module, decode the EEG signal through the FBCCA algorithm, and return the result to the process control module;
[0010] The message communication module is used to realize the binding of the UDP socket and the host port number, and set the status flag of the brain control game stimulation module according to the process status.
[0011] Furthermore, the TCP / IP service protocol includes 8 EEG data channel bits, 1 flag bit, 1 power bit and 1 redundant channel bit.
[0012] Furthermore, the data analysis module includes: a filter unit and a FBCCA recognition algorithm unit.
[0013] In order to solve the above technical problems, the present invention also proposes a group brain-computer interface control method based on SSVEP, comprising the following steps:
[0014] (1) Establishing TCP / IP connections with multiple EEG acquisition devices, collecting EEG data from multiple EEG acquisition devices in real time, and sending them to the group BCI control system via TCP / IP communication protocol;
[0015] (2) Select different game modes in the brain control game stimulation module selection interface, determine the stimulation mode, and send the start flag and end flag information to the process control module;
[0016] (3) When the process control module detects that the start flag information sent by the brain control game stimulation module is "1" and the end flag information is "0", it sends a START signal, first clears the recognition result and EEG data, and starts multiple processes to receive 11 channels of EEG data from different EEG acquisition devices;
[0017] (4) Encapsulated into EEG signals by the data analysis module;
[0018] (5) The encapsulated raw EEG signal is written into a stack buffer with a depth of 11 bits;
[0019] (6) sending the raw data in the stack buffer to the filter for EEG signal preprocessing;
[0020] (7) The preprocessed data is decoded through the FBCCA recognition algorithm to obtain the recognition results of different subjects;
[0021] (8) The recognition results are forwarded to the process control module, and the console prints the EEG signal recognition results of different subjects for debugging;
[0022] (9) At the same time as step (7), the recognition result is forwarded to the brain control game stimulation module, and the score is calculated based on the binary classification accuracy, and the display is updated;
[0023] (10) setting the start flag information received in step (3) to "0", and waiting again for the brain control game stimulation module in step (3) to send the flag information;
[0024] (11) When the brain-controlled game stimulation module sends the end flag information "1", the process control module closes the communication interface.
[0025] Furthermore, the step of packaging the data into an EEG signal by the data analysis module includes:
[0026] When the data analysis module receives the START signal from the process control module, it sends a START command to the TCP communication module to start receiving the message queues transmitted by different EEG acquisition devices;
[0027] When the message queue is not empty and is in task state at the current moment, the data parsing module will verify and remove the frame header and frame tail of the data frame to ensure that the data is valid. The size of each frame is 33 bytes, containing 11 bits of depth information, consisting of 8 EEG data channel bits, label bits, power bits, and redundant bits. The 8-channel EEG information in each frame is added to the stack cache variable, and the remaining information is also cached;
[0028] When the delay of the process control module reaches 3 seconds, the task state end command is sent and the cyclic reception of the EEG signal data frame stops.
[0029] Furthermore, the step of sending the raw data in the stack buffer area to the filter for EEG signal preprocessing includes:
[0030] Set the cutoff frequency of the Butterworth filter to f0 = 50Hz, f s =1KHz, quality factor Q = 35, determine the bandwidth of the filter, the formula is:
[0031]
[0032] Calculate the forward transfer coefficient b k , the formula is:
[0033]
[0034] Calculate the reverse transfer coefficient a m , the formula is:
[0035]
[0036] The input raw buffer data size of each channel is 3000 sampling points, the input matrix size is 8*3000, and the data passes through a Butterworth forward filter to obtain an output of the same dimension. The specific formula is as follows:
[0037]
[0038] The output of the Butterworth forward filter is used as the input of the Butterworth reverse filter. The specific formula is as follows:
[0039]
[0040] The results of the forward transfer filter and the reverse transfer filter are combined to make the final output consistent with the original data in phase and dimension. The formula is:
[0041] y filtfilt (n) = y forward (n)+y backward (n)
[0042] Delete the axis with dimension 1 in the output result, reduce the matrix dimension, and add it to the preprocessing temporary cache variable.
[0043] Furthermore, the steps of decoding the pre-processed data through the FBCCA recognition algorithm to obtain recognition results of different subjects include:
[0044] Create a multi-band Chebyshev type I filter and return the filter coefficients to extract frequency features and reduce noise on the data;
[0045] A canonical correlation analysis is performed on the EEG template data and the preprocessed EEG signal, and the vector product of the preprocessed data and the template signal is calculated to obtain the CCA input data. The calculation formula is:
[0046] data svd =data processed ×Q template
[0047] The output is used as the input of singular value decomposition, and the left singular matrix, singular value matrix and right singular matrix are output. Based on the singular value decomposition, the three largest singular values are selected to calculate the CCA index ρ. The formula is:
[0048] ρ=1.25×S0+0.67×S1+0.5×S2
[0049] By feedback weight W fb The index ρ is weighted and the weighting degree within the i-th frequency range is adjusted. The formula is:
[0050]
[0051] The frequency range is determined according to the index P, and a recognition result is obtained and returned.
[0052] Compared with the prior art, this application has the following advantages:
[0053] (1) This application can flexibly select different game stimulation modes and is suitable for a variety of group brain-computer interaction and collaborative control scenarios. This group rehabilitation training method can stimulate the enthusiasm of patients and accelerate the rehabilitation and reconstruction process of motor function during the rehabilitation process, which is better than single BCI training.
[0054] (2) This application uses collaborative technology to process multi-dimensional EEG signals, adopts a client-server model group interaction framework, and a message queue model communication mechanism to achieve collaborative control of the group BCI system, improve the data processing efficiency and real-time performance of the system, and ensure the stability and reliability of the system in complex environments. This makes it possible to more efficiently achieve group interaction and collaborative control in games, training or other applications involving cooperation or competition among multiple people;
[0055] (3) The present application has the ability to efficiently extract the features of high-dimensional EEG signals and can synchronously decode the EEG signals of a group of subjects, with the same recognition accuracy and stability as a single BCI. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0057] Figure 1 This is a system framework diagram of the group brain-computer interface collaborative control system based on SSVEP described in the present invention;
[0058] Figure 2 The TCP / IP data protocol format of the present invention;
[0059] Figure 3 This is the UDP message communication process of the present invention;
[0060] Figure 4 This is the EEG signal preprocessing process of the present invention;
[0061] Figure 5 This is the FBCCA EEG signal decoding process of the present invention. DETAILED DESCRIPTION
[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0063] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0064] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "several" or "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0065] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0066] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0067] The present invention proposes a group brain-computer interface collaborative control system and method based on SSVEP, aiming to.
[0068] The specific structure of the group brain-computer interface collaborative control system based on SSVEP proposed by the present invention will be described below in a specific embodiment:
[0069] In the technical solution of this embodiment, Figure 1As shown, a group brain-computer interface collaborative control system based on SSVEP includes:
[0070] A brain-controlled game stimulation module for displaying flashing blocks with visual stimulation functions and for displaying competitor scores;
[0071] A data receiving module, used to collect EEG data from multiple EEG collection devices through TCP / IP service protocol;
[0072] Specifically, the data receiving module is connected to multiple EEG acquisition devices via TCP / IP communication, collects EEG data in real time and sends it to the process control module, which distributes the data to the data analysis module. The TCP / IP service protocol includes 8 EEG data channel bits, 1 flag bit, 1 power bit, and 1 redundant channel bit.
[0073] The process control module is used to receive the EEG data from the data receiving module and send the return message to the brain control game stimulation module for interaction;
[0074] Specifically, the process control module calls the data analysis module interface to realize data splitting and packaging. Different processes of the process control module receive and process EEG data. The received raw EEG signals are preprocessed by the pattern recognition module. The preprocessing process is as follows: Figure 3 As shown, the filtered EEG signal is obtained, which is then decoded as the input of the FBCCA algorithm, and the return message is distributed to the brain control game stimulation module for interaction.
[0075] Data analysis module, used to process EEG data of process control module;
[0076] Specifically, the EEG data from multiple devices will be parsed and organized into 8-channel data packets. The frame header and frame tail of the data frame will be verified and removed to ensure that the data is valid. The size of each frame of data is 33 bytes, containing 11 bits of depth information, consisting of 8 EEG data channel bits, label bits, power bits, and redundant bits. The 8-channel EEG information in each frame is encapsulated into an EEG signal.
[0077] The pattern recognition module is used to filter and perform singular value decomposition preprocessing on the EEG data processed by the data analysis module, decode the EEG signal through the FBCCA algorithm, and return the result to the process control module;
[0078] Specifically, the raw EEG signal preprocessing uses Butterworth filter for forward filtering and reverse filtering, combined with dimensionality reduction processing, and the final result is stored in the preprocessing temporary cache variable, such as Figure 4As shown. The pattern recognition module filters and performs singular value decomposition preprocessing on the EEG signals cached in the preprocessing stage, decodes the EEG signals through the FBCCA algorithm, and returns the results to the process control module. The brain-controlled game stimulation module is responsible for generating visual stimulation and feedback on game operations, such as firing to hit the target and displaying the score.
[0079] The process of FBCCA algorithm decoding EEG signal is as follows: first, a multi-band Chebyshev type I filter is created. The system returns the filter characteristic parameters and saves them in variables for frequency feature extraction and noise reduction. Then, canonical correlation analysis (CCA) is performed on the EEG template data and the preprocessed EEG signal in each frequency range. After obtaining the CCA index, the frequency range is determined according to the weighted processing. Finally, the recognition result is obtained and returned, such as Figure 5 This process ensures accurate identification and classification of signals in different frequency ranges.
[0080] The message communication module is used to realize the binding of the UDP socket and the host port number, and set the status flag of the brain control game stimulation module according to the process status.
[0081] Specifically, the process control module is connected to the brain control game stimulation module through the message communication module, which is implemented through the UDP message communication module. The message communication process is as follows: Figure 3 As shown in Figure 1, when the task state is activated, the process enters the flashing stimulation stage, and all game interfaces begin to flash the stimulation blocks. The process control module will start multiple processes to receive data from different EEG acquisition devices. Each frame of EEG data consists of 8 EEG data channel bits, a label bit, a power bit, and 1 redundant channel, as shown in Figure 1. Figure 2 As shown, after being encapsulated by the data parsing module, it enters the stack buffer area with a depth of 11 bits.
[0082] It can be understood that this application adopts multi-process, TCP / IP and UDP communication technology. On the basis of a single BCI, through the group interaction framework of the client-server mode, the real-time EEG data of multiple clients are synchronously decoded and sent to the server, and finally the competitive operation of multi-person collaborative games on the server is realized. The system can collect EEG data from multiple devices in real time and process them in parallel. The accuracy of the group EEG decoding algorithm is ≥95%, and the response speed is ≤3s. Through the above system architecture and data flow, the problem of single system BCI ignoring group competitive cooperation behavior is effectively solved, providing reliable technical support for application scenarios such as multi-person collaborative games.
[0083] Furthermore, the TCP / IP service protocol includes 8 EEG data channel bits, 1 flag bit, 1 power bit and 1 redundant channel bit.
[0084] Furthermore, the data analysis module includes: a filter unit and a FBCCA recognition algorithm unit.
[0085] Example 2
[0086] A group brain-computer interface control method based on SSVEP, comprising the following steps:
[0087] (1) Establishing TCP / IP connections with multiple EEG acquisition devices, collecting EEG data from multiple EEG acquisition devices in real time, and sending them to the group BCI control system via TCP / IP communication protocol;
[0088] (2) Select different game modes in the brain control game stimulation module selection interface, determine the stimulation mode, and send the start flag and end flag information to the process control module;
[0089] (3) When the process control module detects that the start flag information sent by the brain control game stimulation module is "1" and the end flag information is "0", it sends a START signal, first clears the recognition result and EEG data, and starts multiple processes to receive 11 channels of EEG data from different EEG acquisition devices;
[0090] (4) Encapsulated into EEG signals by the data analysis module;
[0091] (5) The encapsulated raw EEG signal is written into a stack buffer with a depth of 11 bits;
[0092] (6) sending the raw data in the stack buffer to the filter for EEG signal preprocessing;
[0093] (7) The preprocessed data is decoded through the FBCCA recognition algorithm to obtain the recognition results of different subjects;
[0094] (8) The recognition results are forwarded to the process control module, and the console prints the EEG signal recognition results of different subjects for debugging;
[0095] (9) At the same time as step (7), the recognition result is forwarded to the brain control game stimulation module, and the score is calculated based on the binary classification accuracy, and the display is updated;
[0096] (10) setting the start flag information received in step (3) to "0", and waiting again for the brain control game stimulation module in step (3) to send the flag information;
[0097] (11) When the brain-controlled game stimulation module sends the end flag information "1", the process control module closes the communication interface.
[0098] Furthermore, the step of packaging the data into an EEG signal by the data analysis module includes:
[0099] When the data analysis module receives the START signal from the process control module, it sends a START command to the TCP communication module to start receiving the message queues transmitted by different EEG acquisition devices;
[0100] When the message queue is not empty and is in task state at the current moment, the data parsing module will verify and remove the frame header and frame tail of the data frame to ensure that the data is valid. The size of each frame is 33 bytes, containing 11 bits of depth information, consisting of 8 EEG data channel bits, label bits, power bits, and redundant bits. The 8-channel EEG information in each frame is added to the stack cache variable, and the remaining information is also cached;
[0101] When the delay of the process control module reaches 3 seconds, the task state end command is sent and the cyclic reception of the EEG signal data frame stops.
[0102] Furthermore, the step of sending the raw data in the stack buffer area to the filter for EEG signal preprocessing includes:
[0103] Set the cutoff frequency of the Butterworth filter to f0 = 50Hz, f s =1KHz, quality factor Q = 35, determine the bandwidth of the filter, the formula is:
[0104]
[0105] Calculate the forward transfer coefficient b k , the formula is:
[0106]
[0107] Calculate the reverse transfer coefficient a m , the formula is:
[0108]
[0109] The input raw buffer data size of each channel is 3000 sampling points, the input matrix size is 8*3000, and the data passes through a Butterworth forward filter to obtain an output of the same dimension. The specific formula is as follows:
[0110]
[0111] The output of the Butterworth forward filter is used as the input of the Butterworth reverse filter. The specific formula is as follows:
[0112]
[0113] The results of the forward transfer filter and the reverse transfer filter are combined to make the final output consistent with the original data in phase and dimension. The formula is:
[0114] yfiltfilt (n) = y forward (n)+y backward (n)
[0115] Delete the axis with dimension 1 in the output result, reduce the matrix dimension, and add it to the preprocessing temporary cache variable.
[0116] Furthermore, the steps of decoding the pre-processed data through the FBCCA recognition algorithm to obtain recognition results of different subjects include:
[0117] Create a multi-band Chebyshev type I filter and return the filter coefficients to extract frequency features and reduce noise on the data;
[0118] A canonical correlation analysis is performed on the EEG template data and the preprocessed EEG signal, and the vector product of the preprocessed data and the template signal is calculated to obtain the CCA input data. The calculation formula is:
[0119] data svd =data processed ×Q template
[0120] The output is used as the input of singular value decomposition, and the left singular matrix, singular value matrix and right singular matrix are output. Based on the singular value decomposition, the three largest singular values are selected to calculate the CCA index ρ. The formula is:
[0121] ρ=1.25×S0+0.67×S1+0.5×S2
[0122] Feedback weight The index ρ is weighted and the weighting degree within the i-th frequency range is adjusted. The formula is:
[0123]
[0124] The frequency range is determined according to the index P, and a recognition result is obtained and returned.
[0125] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A collective brain-computer interface collaborative control system based on SSVEP, characterized in that: include: A brain-controlled game stimulation module for displaying flashing blocks with visual stimulation functions and for displaying competitor scores; A data receiving module, used to collect EEG data from multiple EEG collection devices through TCP / IP service protocol; The process control module is used to receive the EEG data from the data receiving module and send the return message to the brain control game stimulation module for interaction; Data analysis module, used to process EEG data of process control module; The pattern recognition module is used to filter and perform singular value decomposition preprocessing on the EEG data processed by the data analysis module, decode the EEG signal through the FBCCA algorithm, and return the result to the process control module; The message communication module is used to realize the binding of the UDP socket and the host port number, and set the status flag of the brain control game stimulation module according to the process status.
2. The SSVEP-based group brain-computer interface collaborative control system according to claim 1 is characterized in that: The TCP / IP service protocol includes 8 channel bits, 1 flag bit, 1 power bit and 1 redundant channel bit.
3. The SSVEP-based group brain-computer interface collaborative control system according to claim 1 is characterized in that: The data analysis module includes: a filter unit and a FBCCA recognition algorithm unit.
4. A group brain-computer interface control method based on SSVEP, characterized in that: The following steps are involved: (1) Establishing TCP / IP connections with multiple EEG acquisition devices, collecting EEG data from multiple EEG acquisition devices in real time, and sending them to the group BCI control system via TCP / IP communication protocol; (2) Select different game modes in the brain control game stimulation module selection interface, determine the stimulation mode, and send the start flag and end flag information to the process control module; (3) When the process control module detects that the start flag information sent by the brain control game stimulation module is "1" and the end flag information is "0", it sends a START signal, first clears the recognition result and EEG data, and starts multiple processes to receive 11 channels of EEG data from different EEG acquisition devices; (4) Encapsulated into EEG signals by the data analysis module; (5) The encapsulated raw EEG signal is written into a stack buffer with a depth of 11 bits; (6) sending the raw data in the stack buffer to the filter for EEG signal preprocessing; (7) The preprocessed data is decoded through the FBCCA recognition algorithm to obtain the recognition results of different subjects; (8) The recognition results are forwarded to the process control module, and the console prints the EEG signal recognition results of different subjects for debugging; (9) At the same time as step (7), the recognition result is forwarded to the brain control game stimulation module, and the score is calculated based on the binary classification accuracy, and the display is updated; (10) setting the start flag information received in step (3) to "0" and waiting again for the brain control game stimulation module in step (3) to send the flag information; (11) When the brain-controlled game stimulation module sends the end flag information "1", the process control module closes the communication interface.
5. The SSVEP-based group brain-computer interface collaborative control method according to claim 4 is characterized in that: The step of packaging the EEG signal through the data analysis module includes: When the data analysis module receives the START signal from the process control module, it sends a START command to the TCP communication module to start receiving the message queues transmitted by different EEG acquisition devices; When the message queue content is not empty and is in the task state at the current moment, the data parsing module will verify and remove the frame header and frame tail of the data frame to ensure that the data is valid. The size of each frame of data is 33 bytes, containing 11 bits of depth information, consisting of 8 EEG data channel bits, label bits, power bits, and redundant bits. The 8-channel EEG information in each frame is added to the stack cache variable, and the remaining information is also cached; When the delay of the process control module reaches 3 seconds, the task state end command is sent and the cyclic reception of the EEG signal data frame stops.
6. The SSVEP-based group brain-computer interface collaborative control method according to claim 4 is characterized in that: The step of sending the raw data in the stack buffer area to the filter for preprocessing the EEG signal comprises: Set the cutoff frequency of the Butterworth filter to f0 = 50Hz, f s =1KHz, quality factor Q = 35, determine the bandwidth of the filter, the formula is: Calculate the forward transfer coefficient b k , the formula is: Calculate the reverse transfer coefficient a m , the formula is: The input raw buffer data size of each channel is 3000 sampling points, the input matrix size is 8*3000, and the data passes through a Butterworth forward filter to obtain an output of the same dimension. The specific formula is as follows: The output of the Butterworth forward filter is used as the input of the Butterworth reverse filter. The specific formula is as follows: The results of the forward transfer filter and the reverse transfer filter are combined to make the final output consistent with the original data in phase and dimension. The formula is: and filtfilt (n)=y forward (n)+y backward (n) Delete the axis with dimension 1 in the output result, reduce the matrix dimension, and add it to the preprocessing temporary cache variable.
7. The SSVEP-based group brain-computer interface collaborative control method according to claim 4 is characterized in that: The steps of decoding the pre-processed data through the FBCCA recognition algorithm to obtain recognition results of different subjects include: Create a multi-band Chebyshev type I filter and return the filter coefficients to extract frequency features and reduce noise on the data; A canonical correlation analysis is performed on the EEG template data and the preprocessed EEG signal, and the vector product of the preprocessed data and the template signal is calculated to obtain the CCA input data. The calculation formula is: date svd =date processed ×Q template The output is used as the input of singular value decomposition, and the left singular matrix, singular value matrix and right singular matrix are output. Based on the singular value decomposition, the three largest singular values are selected to calculate the CCA index ρ. The formula is: ρ=1.25×S0+0.67×S1+0.5×S2 By feedback weight W fb The index ρ is weighted and the weighting degree within the i-th frequency range is adjusted. The formula is: The frequency range is determined according to the index P, and a recognition result is obtained and returned.
Citation Information
Patent Citations
System and method for controlling brain computer interface (BCI) based on multimode fusion
CN102866775A
Information analysis and rehabilitation training system and method for auxiliary diagnosis of depression based on electroencephalogram
CN114748072A
Single-target SSVEP (Steady-State Visual Evoked Potential) recognition system and method based on data continuation
CN115192044A
SSVEP-MI control and rehabilitation training wheelchair based on AR
CN116687677A
Asymmetric EEG-based coding and decoding method for brain-computer interfaces
US20210173482A1
