A BCI multi-task method and system based on interactive interface
Through the BCI multi-task method based on the interactive interface, users can customize the experimental paradigm and multi-task control parameters, generate and control multiple tasks, solve the single-task control and design complex problems of the existing BCI system, and improve the flexibility of the system. and applicability.
Patent Information
- Application Number
- CN202310332639.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-03-30
AI Technical Summary
The existing BCI system can only control a single task and cannot be flexibly adjusted. The design and implementation process are complex and cumbersome, which limits its application. Especially when adding new tasks, it needs to be redesigned and coded, making it unfriendly to developers.
Using the BCI multi-task method based on the interactive interface, through the experimental design system composed of the multi-task design module and the experimental paradigm design module, an interactive interface is provided for users to customize the experimental paradigm and multi-task control parameters, generate commonly used BCI experimental paradigms, and use the brain The electrical signal processing module and multi-task execution module implement multi-task control to avoid re-building or modifying the code.
It greatly simplifies the design work of the experimental paradigm and multi-task control system, improves the flexibility of the BCI system, realizes the multi-task control function, enriches the application approaches of the BCI system, and reduces the difficulty of development.
Smart Images

Figure CN116483341B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of human-computer interaction technology, and in particular to a BCI multi-tasking method and system based on an interactive interface. Background Art
[0002] The Brain Computer Interface (BCI) collects and analyzes the brain's bioelectric signals, allowing people to express their thoughts or manipulate external devices directly through their brains instead of through body movements or language. It provides a new way for the human brain to interact effectively with external devices. Therefore, it has been successfully used to help patients with motor disabilities control devices such as household appliances and wheelchairs, thereby improving their quality of life.
[0003] At present, the BCI system is not mature enough in practical applications. The main reason is that the BCI system can only control a single task, not multiple tasks at the same time, so it cannot be flexibly adjusted according to user needs. However, the design and implementation process of the BCI system is very complex and cumbersome, and requires high code design and implementation capabilities of programmers. In particular, when a new task is added to the BCI system, the BCI system needs to redesign the task module and write code. The design and implementation process is very cumbersome and time-consuming, which is very unfriendly to program developers and greatly limits the application of BCI.
[0004] In summary, the existing BCI systems have a single control task and lack flexibility. Both the design of the BCI experimental paradigm and the design of BCI task control require rewriting the code, which is an extremely cumbersome process. There is an urgent need to develop a friendly and flexible BCI multi-task system. Summary of the invention
[0005] The present invention provides a BCI multi-tasking method and system based on an interactive interface to at least solve the above problem and meet the above needs.
[0006] An embodiment of the present invention discloses a BCI multi-tasking method based on an interactive interface, comprising:
[0007] S1. Establish an experimental design system consisting of a multi-task design module and an experimental paradigm design module, and an experimental processing system consisting of an experimental paradigm generation module, an EEG signal processing module and a multi-task execution module;
[0008] S2. The multi-task design module provides a first interactive interface, through which the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using a communication protocol;
[0009] S3. The experimental paradigm design module provides a second interactive interface, through which the user designs the experimental paradigm, completes the preliminary configuration of the experimental paradigm and the setting of experimental paradigm-related parameters, and sends the experimental paradigm-related parameters to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using a communication protocol;
[0010] S4. Generate a commonly used BCI experimental paradigm through the experimental paradigm generation module, match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the display, and receive the instructions of the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms;
[0011] S5. Provide the preprocessing and classification algorithms required by the commonly used BCI experimental paradigm through the EEG signal processing module, match the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms, process the collected EEG data according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then send the classification results to the multi-task execution module using the communication protocol, and perform jump switching operations between experimental paradigms by receiving instructions from the multi-task execution module;
[0012] S6. The parameters sent by the multi-task design module and the experimental paradigm design module are mapped one-to-one through the multi-task execution module and saved in a file. The mapping information required to perform the corresponding operation is matched according to the classification result sent by the EEG signal processing module when the system is running, and then the software, hardware operation or jump switching operation between experimental paradigms associated with the classification result is executed.
[0013] In an embodiment of the present invention, in S2, for software control tasks, it includes: application path, number of applications, text information describing the operation, feature images of software buttons and text box components required to control the operation, number of left-clicks, whether the right button is clicked, and whether to call a typewriter; for hardware control tasks, it is necessary to configure the hardware's IP address and port, text information describing the operation, and hardware operation instructions related to the operation.
[0014] In an embodiment of the present invention, in S2, the multi-task design module automatically generates a task identifier and an operation identifier for each operation and task, and both the task identifier and the operation identifier are digital sequences and are unique; the task identifier is used to represent different software or hardware, and the operation identifier is used to represent different software or hardware control operations.
[0015] In an embodiment of the present invention, in S2, the parameters required for the experimental paradigm design include: task identification, operation identification, and text information describing the operation; the parameters required for multi-task execution include: task identification, operation identification, pictures of software buttons and text box components required to control the operation, the keyboard and mouse operation sequence required for the control software, whether to call a typewriter, hardware operation instructions, and the IP address and port parameters of the hardware.
[0016] In an embodiment of the present invention, in S3, the preliminary configuration of the experimental paradigm needs to be quickly completed according to the information sent by the multi-task design module through the network communication protocol; wherein, according to the task identifier, operation identifier and text information describing the operation sent by the multi-task design module, an experimental paradigm interface is generated and associated for each task identifier, and a stimulation block is generated and associated for each operation identifier, and the text information of the stimulation block is set to the descriptive text information of the corresponding operation, thereby completing the preliminary configuration of the experimental paradigm parameters.
[0017] In an embodiment of the present invention, in S3, the experimental paradigm related parameters include the number of experimental paradigm interfaces, the experimental paradigm type of each experimental paradigm interface, the classification algorithm of the experimental paradigm, the stimulation time, the number of stimulation blocks, the stimulation block information, the stimulation block size and the task identifier of the jump target experimental paradigm interface; wherein, the number of experimental paradigm interfaces must be greater than or equal to the number of control software and hardware, and additional experimental paradigm interfaces are only used to realize the selection and jump of experimental paradigm interfaces; the number of stimulation blocks must be greater than or equal to the number of operations of the task associated with the current experimental paradigm interface, and additional stimulation blocks are used for experimental paradigm interface jump.
[0018] In the embodiment of the present invention, in S5, the preprocessing associated with the experimental paradigm interface refers to, for the SSVEP experimental paradigm, screening out the occipital lead channel, filtering the occipital lead signal with a 4th-order Butterworth bandpass filter in the 7-90 Hz frequency band, and then filtering it with a Chebyshev 50 Hz notch filter; for the P300 experimental paradigm, screening out the occipital lead channel, filtering the occipital lead signal with a 4th-order Butterworth bandpass filter in the 3-20 Hz frequency band, and then filtering it with a Chebyshev 50 Hz notch filter.
[0019] In the embodiment of the present invention, in S6, executing the software operation means that the multi-task execution module matches the algorithm classification results to obtain all the data for executing the software operation, specifically: the software button required for the operation, the picture of the text box component, and the keyboard and mouse operation sequence; the multi-task execution module uses a template matching algorithm to perform feature matching on the feature picture and the computer screen shot to obtain the position coordinates of the software button or text box, and uses the mouse and keyboard control function to perform corresponding keyboard and mouse operations on the obtained coordinates;
[0020] In S6, executing the hardware operation means that the multi-task execution module indexes the algorithm classification results to obtain all the data for executing the hardware operation, specifically: hardware operation instructions related to the operation, hardware IP address and port; the multi-task execution module sends the instructions to the IP address and port of the hardware using the communication protocol, and the hardware executes the corresponding operation when receiving the instructions.
[0021] In the embodiment of the present invention, the jump switching operation between the experimental paradigms in S4, S5 and S6 means that when the user gazes at the jump stimulation block of the experimental paradigm interface, the EEG signal processing module processes the collected EEG data, and sends the classification result to the multi-task execution module using the communication protocol, the multi-task execution module matches the classification result, obtains the task identifier of the jump target experimental paradigm interface, and sends the task identifier to the experimental paradigm generation module and the EEG signal processing module using the communication protocol;
[0022] The experimental paradigm generation module receives the task identifier, matches the task identifier to obtain the experimental paradigm type and information of all stimulation blocks associated with the task identifier, and displays these stimulation blocks on the display to implement the jump switching operation of the experimental paradigm interface;
[0023] When the EEG signal processing module receives the task identifier, it matches the task identifier, obtains the preprocessing process and classification algorithm associated with the task identifier, and uses the preprocessing process and classification algorithm to process the subsequent EEG data.
[0024] Another aspect of the embodiment of the present invention discloses a BCI multi-task system based on an interactive interface, which is used to implement any of the above-mentioned BCI multi-task methods based on an interactive interface;
[0025] The BCI multi-task system based on the interactive interface includes:
[0026] Experimental design system, consisting of a multi-task design module and an experimental paradigm design module;
[0027] The experimental processing system consists of an experimental paradigm generation module, an EEG signal processing module, and a multi-task execution module;
[0028] The multi-task design module is used to provide a first interactive interface, through which the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using a communication protocol;
[0029] The experimental paradigm design module is used to provide a second interactive interface, through which the user designs the experimental paradigm, completes the preliminary configuration of the experimental paradigm and the setting of experimental paradigm related parameters, and sends the experimental paradigm related parameters to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using a communication protocol;
[0030] The experimental paradigm generation module is used to generate a commonly used BCI experimental paradigm, and match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, and then call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the display, and receive the instructions of the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms;
[0031] The EEG signal processing module is used to provide the preprocessing and classification algorithms required by the commonly used BCI experimental paradigm, and match the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms, perform data processing on the collected EEG data according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then send the classification results to the multi-task execution module using a communication protocol, and perform jump switching operations between experimental paradigms by receiving instructions from the multi-task execution module;
[0032] The multi-task execution module is used to perform one-to-one mapping of the parameters sent by the multi-task design module and the experimental paradigm design module, and save them into a file, and match the mapping information required to execute the corresponding operation according to the classification result sent by the EEG signal processing module when the system is running, and then execute the software, hardware operation associated with the classification result or jump switching operation between experimental paradigms.
[0033] In summary, the present invention has at least the following beneficial effects:
[0034] The present invention adopts a customized interactive interface method, through which experimental paradigm parameters and multi-task control system parameters can be defined by the user, and BCI experimental paradigm and multiple control tasks can be automatically generated, which greatly simplifies the design of experimental paradigm and multi-task control system; that is, users can define multi-task, experimental paradigm and other related design parameters through the interactive interface, and the brain-computer interface (Brain Computer Interface, BCI) multi-task system can automatically generate the experimental paradigm interface, EEG signal processing module and multi-task execution module by calling parameters, thereby realizing the BCI system without rebuilding or modifying the code.
[0035] The present invention adopts a layered concept, so that each experimental paradigm can control different tasks and realize multiple functions, which greatly enriches the task control function of the BCI system and improves the flexibility of the BCI system, thereby providing a new way for the application and popularization of the BCI system in real life. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the description of the embodiments 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 these drawings without paying creative work.
[0037] Figure 1 It is a schematic diagram of the BCI multi-task system based on the interactive interface involved in the present invention.
[0038] Figure 2 It is a flowchart of the BCI multi-task method based on interactive interface involved in the present invention.
[0039] Figure 3 Schematic diagram of the experimental paradigm design interface involved in the present invention.
[0040] Figure 4 A schematic diagram of the software tasks of the multi-task control design interface involved in the present invention.
[0041] Figure 5 A schematic diagram of the hardware tasks of the multi-task control design interface involved in the present invention. DETAILED DESCRIPTION
[0042] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the embodiments of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0043] The disclosure below provides many different embodiments or examples to implement different structures of the embodiments of the present invention. In order to simplify the disclosure of the embodiments of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the embodiments of the present invention. In addition, the embodiments of the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed.
[0044] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0045] like Figure 1 and Figure 2 As shown, an embodiment of the present invention discloses a BCI multi-tasking method based on an interactive interface, comprising:
[0046] S1. Establish an experimental design system consisting of a multi-task design module and an experimental paradigm design module, and an experimental processing system consisting of an experimental paradigm generation module, an EEG signal processing module and a multi-task execution module.
[0047] S2. A first interactive interface is provided through the multi-task design module, and the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution through the first interactive interface, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using the communication protocol.
[0048] Multi-task design related parameters, for software control tasks, include: application path, number of applications, text information describing the operation, characteristic images of components such as software buttons and text boxes required for the operation, number of left-clicks, whether the right button is clicked, whether to call the typewriter, and other parameters; among them, the images of components such as software buttons and text boxes required for the operation, such as using the login function of the software, the corresponding component image is the login button image of the software login interface.
[0049] For hardware control tasks, you need to configure the hardware IP address and port, text information describing the operation, hardware operation instructions related to the operation, and other parameters. After the parameter settings are completed, you can use the "Save" function to save the parameters to the multi-task design parameter file so that you can use them directly in the future without having to configure the parameters.
[0050] When configuring parameters, the multi-task design module automatically generates a task ID and an operation ID for each operation and task. Both the task ID and the operation ID are digital sequences and are unique. The task ID is used to represent different software or hardware, and the operation ID is used to represent different software or hardware control operations.
[0051] The parameters required for experimental paradigm design include: task identification, operation identification, and text information describing the operation; the parameters required for multi-task execution include: task identification, operation identification, pictures of software buttons and text boxes and other components required for the operation, the keyboard and mouse operation sequence required for the control software, whether to call a typewriter, hardware operation instructions, and hardware IP address and port parameters.
[0052] S3. A second interactive interface is provided through the experimental paradigm design module. The user designs the experimental paradigm through the second interactive interface, completes the preliminary configuration of the experimental paradigm and the setting of relevant parameters of the experimental paradigm, and sends the relevant parameters of the experimental paradigm to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using the communication protocol.
[0053] The preliminary configuration of the experimental paradigm needs to be quickly completed according to the information sent by the multi-task design module through the network communication protocol; the user can also complete the preliminary configuration manually.
[0054] Among them, the experimental paradigm design module can generate and associate an experimental paradigm interface for each task identifier according to the task identifier, operation identifier and text information describing the operation sent by the multi-task design module, and generate and associate a stimulation block for each operation identifier, and set the text information of the stimulation block to the descriptive text information of the corresponding operation, thereby completing the preliminary configuration of the experimental paradigm parameters.
[0055] The experimental paradigm related parameters include the number of experimental paradigm interfaces, the experimental paradigm type of each experimental paradigm interface (SSVEP or P300), the classification algorithm of the experimental paradigm, the stimulation time, the number of stimulation blocks, the stimulation block information (phase, frequency or continuous highlight time), the stimulation block size unit (pixel) and the task identification of the jump target experimental paradigm interface. Among them, the number of experimental paradigm interfaces must be greater than or equal to the number of control software and hardware. The additional experimental paradigm interface is only used to realize the selection and jump of the experimental paradigm interface. The number of stimulation blocks must be greater than or equal to the number of operations associated with the current experimental paradigm interface. The additional stimulation blocks are used to jump the experimental paradigm interface (for example, jump from layer A to layer B). Such stimulation blocks are called jump stimulation blocks. The classification algorithms for the SSVEP experimental paradigm include FBCCA, TRCA, OACCA, etc., and the classification algorithms for the P300 experimental paradigm include SVM, CNN, etc. Finally, all the generated stimulation blocks in the system can be dragged at will, and users can drag the required stimulation blocks to the required position according to their own wishes.
[0056] S4. Generate common BCI experimental paradigms through the experimental paradigm generation module, match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the monitor, and receive instructions from the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms.
[0057] S5. The EEG signal processing module provides the preprocessing and classification algorithms required for the commonly used BCI experimental paradigm, and matches the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms. The collected EEG data is processed according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then the classification results are sent to the multi-task execution module using the communication protocol. The jump switching operation between experimental paradigms is performed by receiving instructions from the multi-task execution module.
[0058] The preprocessing associated with the experimental paradigm interface means that for the SSVEP experimental paradigm, the occipital lead channel is screened out, the occipital lead signal is filtered with a 4th-order Butterworth bandpass filter in the 7-90 Hz frequency band, and then filtered with a Chebyshev 50 Hz notch filter; for the P300 experimental paradigm, the occipital lead channel is screened out, the occipital lead signal is filtered with a 4th-order Butterworth bandpass filter in the 3-20 Hz frequency band, and then filtered with a Chebyshev 50 Hz notch filter.
[0059] S6. The parameters sent by the multi-task design module and the experimental paradigm design module are mapped one-to-one through the multi-task execution module and saved in a file. The mapping information required to perform the corresponding operation is matched according to the classification result sent by the EEG signal processing module when the system is running, and then the software, hardware operation associated with the classification result or the jump switching operation between experimental paradigms is executed.
[0060] Executing software operations means that the multi-task execution module matches the algorithm classification results to obtain all the data for executing software operations, specifically: pictures of software buttons, text boxes and other components required for the operation, keyboard and mouse operation sequences, etc. The multi-task execution module uses a template matching algorithm to match the feature image with the computer screen shot to obtain the position coordinates of the software button or text box, and uses the mouse and keyboard control function to perform corresponding keyboard and mouse operations on the obtained coordinates.
[0061] Executing hardware operations means that the multi-task execution module indexes the algorithm classification results and obtains all the data for executing hardware operations, specifically: hardware operation instructions related to the operation, hardware IP address and port, etc. The multi-task execution module sends the instructions to the IP address and port of the hardware using the communication protocol, and the hardware executes the corresponding operation after receiving the instructions.
[0062] The jump switching operation between the experimental paradigms in S4, S5 and S6 means that when the user looks at the jump stimulation block of the experimental paradigm interface, the EEG signal processing module processes the collected EEG data and sends the classification results to the multi-task execution module using the communication protocol, the multi-task execution module matches the classification results, obtains the task identifier of the jump target experimental paradigm interface, and sends the task identifier to the experimental paradigm generation module and the EEG signal processing module using the communication protocol;
[0063] When the experimental paradigm generation module receives the task identifier, it matches the task identifier to obtain the experimental paradigm type and information of all stimulation blocks associated with the task identifier, and displays these stimulation blocks on the display to realize the jump switching operation of the experimental paradigm interface;
[0064] When the EEG signal processing module receives the task identifier, it matches the task identifier, obtains the preprocessing process and classification algorithm associated with the task identifier, and uses the preprocessing process and classification algorithm to process the subsequent EEG data.
[0065] like Figure 1 and Figure 2 As shown, another aspect of the embodiment of the present invention discloses a BCI multi-task system based on an interactive interface, which is used to implement any of the above-mentioned BCI multi-task methods based on an interactive interface;
[0066] The BCI multi-task system based on the interactive interface includes:
[0067] Experimental design system, consisting of a multi-task design module and an experimental paradigm design module;
[0068] The experimental processing system consists of an experimental paradigm generation module, an EEG signal processing module, and a multi-task execution module;
[0069] The multi-task design module is used to provide a first interactive interface, through which the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using a communication protocol;
[0070] The experimental paradigm design module is used to provide a second interactive interface, through which the user designs the experimental paradigm, completes the preliminary configuration of the experimental paradigm and the setting of experimental paradigm related parameters, and sends the experimental paradigm related parameters to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using the communication protocol;
[0071] The experimental paradigm generation module is used to generate common BCI experimental paradigms, match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the display, and receive instructions from the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms;
[0072] The EEG signal processing module is used to provide the preprocessing and classification algorithms required by the commonly used BCI experimental paradigms, and to match the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms, to process the collected EEG data according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then to send the classification results to the multi-task execution module using the communication protocol, and to perform jump switching operations between experimental paradigms by receiving instructions from the multi-task execution module;
[0073] The multi-task execution module is used to map the parameters sent by the multi-task design module and the experimental paradigm design module one-to-one, save them in files, and match the mapping information required to execute the corresponding operations according to the classification results sent by the EEG signal processing module when the system is running, and then execute the software, hardware operations associated with the classification results or jump switching operations between experimental paradigms.
[0074] In a specific embodiment, if Figure 4 and Figure 5 As shown, the following steps are used to explain in detail the process of the BCI multi-task system based on the interactive interface controlling the WeChat software (software task) and the robotic arm hardware (hardware task). The steps are as follows:
[0075] Step 1: In the multi-task control design interface, the user sets the software and hardware task execution related parameters in the software and hardware tabs respectively. The hardware operation design is similar to the software operation design, and the software operation design is described in detail here. Click "Software" to set the software. In this embodiment, the WeChat software is logged in, contacts are selected, upswiped, downswiped, messages are input, sent, and exited. Only one software is controlled. Enter "1" in the "Number of Controlled Software", click "OK", and click "Select Application" to select the application path of WeChat in the opened resource manager. Click the "Program 1" sub-tab. Since these operations have no pre-operations, only the basic operations need to be set, but the pre-operations are exactly the same as the basic operation settings.
[0076] In the basic operation, click "+" to add an operation to the basic operation. Set the login operation here. Click the screenshot on the right to take a screenshot of the login button of the WeChat application. Then get the "Feature Image Address". Set the "Name", "Number of Left Clicks", "Scroll Wheel", "Right Click", and "Whether to Use a Typewriter" to "Login", "1", "0", "0", and "0" respectively. Click "OK" to complete the operation design, and then set the next operation. The setting methods for other operations are the same as here, and will not be repeated here. When performing control tasks on multiple software, you also need to click "Program 2", "Program 3", etc. to complete the design of other control tasks. After the software settings are completed, click "Hardware" to complete the design of the hardware task. After the settings are completed, click "Save File" to save the multi-task design parameters to the multi-task design parameter file, and click "Send" to send the parameters required for multi-task execution and the experimental paradigm design to the multi-task execution module and the experimental paradigm design module using the UDP communication protocol.
[0077] Step 2: The user enters the experimental paradigm design interface (such as Figure 3 As shown in the figure, the user clicks "Network Flow" to receive the parameters sent by the multi-task design module, and then clicks "Complete Initialization", and multiple experimental paradigm interfaces are automatically generated. Since WeChat and the robotic arm are controlled at the same time, the number of layers is displayed as 2 at this time. Since it is necessary to choose to control WeChat or the robotic arm, 3 layers of jump experimental paradigm interfaces are required. The first layer selects the hardware and software to use, and the other two layers select which software to use and which hardware to use respectively. Set the number of layers to 5 and click "OK". In this example, the experimental paradigm interface for controlling the WeChat task is designed. Set it to "JFPM-SSVEP" in "Paradigm", select the "FBCCA" classification algorithm, and then click "OK".
[0078] In "Time", set "Stimulus", "Feedback", and "Transfer" to "2.0", "1.0", and "1.0" respectively. Since the operations for WeChat include logging in, selecting contacts, swiping up, swiping down, entering messages, sending, and exiting, the "Number" here is 7. If you do not need to use WeChat but do not want WeChat to exit, you need to return to the home interface to select other control tasks, so you also need a jump stimulus block, so the "Number" here is set to 8, indicating that there are 8 stimulus blocks in this experimental paradigm interface. Enter "Length and Width" as "82,82", click "OK", and 8 stimulus blocks will be generated, of which 7 blocks have the same name as the name in the operation design of the multi-task control design interface, and the other block is a jump stimulus block. Check "Automatically generate width and height", set the rows and columns to "2,4", and click "OK". At this time, the 8 stimulus blocks are automatically arranged into two rows and four columns. At this time, the position layout of the stimulus blocks can also be changed by dragging the stimulus blocks with the mouse. Click the "Login" stimulus block, set "Frequency" and "Phase" to "8.0" and "0" respectively in "Target", and click "OK".
[0079] Then set up the next stimulation block. For the jump stimulation block, for example, the "input" stimulation block will jump to the typewriter experimental paradigm interface, or set the jump stimulation block to return to the initial interface. Here is a detailed explanation of the operation of returning to the initial interface. Click the blank stimulation block, check the "jump" checkbox in the target, set the "jump level" to 1, set "text", "frequency" and "phase" to "return", "14.0" and "0" respectively, and click "OK". When all experimental paradigm interface settings are completed, click "Start" to send the parameters required for experimental paradigm generation and the parameters of the newly added jump stimulation block and jump experimental paradigm interface to the experimental paradigm generation module, multi-task execution module and EEG signal processing module using the UDP communication protocol. After completing the above work, the experimental paradigm interface is displayed on the monitor.
[0080] Step 3: The user puts on the EEG cap and starts collecting EEG data. The user presses the Enter key, and the user can look at the stimulation block to run the control tasks and operations he needs according to his needs. At this time, the EEG signal processing module continues to process the EEG signal and sends the classification results to the multi-task execution module using the UDP communication protocol. The multi-task execution module completes the operations required by the user according to the parameters set by the user. If the user needs to use the WeChat login function, the user first looks at "Software" and "WeChat" respectively to enter the WeChat function experimental paradigm interface. At this time, the computer opens the WeChat interface synchronously, and then looks at the "Login" stimulation block. The multi-task execution module simulates a left-click operation on the WeChat "Login" button, and WeChat completes the login operation.
[0081] The above-described embodiments are used to illustrate the present invention, not to limit the present invention, so changes in the exemplified values or replacement of equivalent elements should still fall within the scope of the present invention.
[0082] From the above detailed description, it can be understood by those skilled in the art that the present invention can indeed achieve the aforementioned objectives and is in compliance with the provisions of the Patent Law.
[0083] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. It should be pointed out that any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0084] It should be noted that the above description of the relevant process is only for example and explanation, and does not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to the process under the guidance of this specification. However, these modifications and changes are still within the scope of this specification.
[0085] The basic concepts have been described above. Obviously, for those of ordinary skill in the art who have read this application, the above invention disclosure is only for example and does not constitute a limitation of this application. Although not explicitly stated here, those of ordinary skill in the art may make various modifications, improvements and amendments to this application. Such modifications, improvements and amendments are suggested in this application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of this application.
[0086] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0087] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful combination of processes, machines, products or substances, or any new and useful improvements thereto. Therefore, various aspects of the present application may be implemented entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "units", "modules" or "systems". In addition, various aspects of the present application may take the form of a computer program product embodied in one or more computer-readable media, wherein computer-readable program code is contained therein.
[0088] The computer program code required for the operation of each part of the application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., such as C programming language, VisualBasic, Fortran2103, Perl, COBOL2102, PHP, ABAP, such as Python, Ruby and Groovy dynamic programming language or other programming languages. The program code can be run completely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on the remote computer, or run completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0089] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this application. For example, although the implementation of the various components described above can be embodied in a hardware device, it can also be implemented as a pure software solution, for example, installation on an existing server or mobile device.
[0090] Similarly, it should be noted that in order to simplify the description disclosed in this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of the application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this method of the application should not be interpreted as reflecting the intention that the claimed object requires more features than those explicitly stated in each claim. On the contrary, the subject of the invention should have fewer features than the above single embodiment.
Claims
1. A BCI multi-task method based on interactive interface, It is characterized in that include: S1. Establish an experimental design system consisting of a multi-task design module and an experimental paradigm design module, and an experimental processing system consisting of an experimental paradigm generation module, an EEG signal processing module and a multi-task execution module; S2. The multi-task design module provides a first interactive interface, through which the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using a communication protocol; S3. The experimental paradigm design module provides a second interactive interface, through which the user designs the experimental paradigm, completes the preliminary configuration of the experimental paradigm and the setting of experimental paradigm-related parameters, and sends the experimental paradigm-related parameters to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using a communication protocol; S4. Generate a commonly used BCI experimental paradigm through the experimental paradigm generation module, match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the display, and receive the instructions of the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms; S5. Provide the preprocessing and classification algorithms required by the commonly used BCI experimental paradigm through the EEG signal processing module, match the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms, process the collected EEG data according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then send the classification results to the multi-task execution module using the communication protocol, and perform jump switching operations between experimental paradigms by receiving instructions from the multi-task execution module; S6. The parameters sent by the multi-task design module and the experimental paradigm design module are mapped one-to-one through the multi-task execution module, and saved in a file, and the mapping information required for performing the corresponding operation is matched according to the classification result sent by the EEG signal processing module when the system is running, and then the software, hardware operation or jump switching operation between experimental paradigms associated with the classification result is performed; Among them, the jump switching operation between the experimental paradigms in S4, S5 and S6 means that when the user looks at the jump stimulation block of the experimental paradigm interface, the EEG signal processing module processes the collected EEG data, and sends the classification results to the multi-task execution module using the communication protocol, the multi-task execution module matches the classification results, obtains the task identifier of the jump target experimental paradigm interface, and sends the task identifier to the experimental paradigm generation module and the EEG signal processing module using the communication protocol; The experimental paradigm generation module receives the task identifier, matches the task identifier to obtain the experimental paradigm type and information of all stimulation blocks associated with the task identifier, and displays these stimulation blocks on the display to implement the jump switching operation of the experimental paradigm interface; When the EEG signal processing module receives the task identifier, it matches the task identifier, obtains the preprocessing process and classification algorithm associated with the task identifier, and uses the preprocessing process and classification algorithm to process the subsequent EEG data.
2. The BCI multi-task method based on the interactive interface according to claim 1, It is characterized in that In S2, for software control tasks, it includes: application path, number of applications, text information describing the operation, characteristic images of software buttons and text box components required to control the operation, number of left-clicks, whether the right-click is clicked, and whether to call the typewriter; for hardware control tasks, it is necessary to configure the hardware IP address and port, text information describing the operation, and hardware operation instructions related to the operation.
3. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S2, the multi-task design module automatically generates a task identifier and an operation identifier for each operation and task, and both the task identifier and the operation identifier are digital sequences and are unique; the task identifier is used to represent different software or hardware, and the operation identifier is used to represent different software or hardware control operations.
4. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S2, the parameters required for the experimental paradigm design include: task identification, operation identification, and text information describing the operation; the parameters required for multi-task execution include: task identification, operation identification, pictures of software buttons and text box components required for operation control, keyboard and mouse operation sequences required for control software, whether to call a typewriter, hardware operation instructions, and hardware IP address and port parameters.
5. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S3, the preliminary configuration of the experimental paradigm needs to be quickly completed according to the information sent by the multi-task design module through the network communication protocol; wherein, according to the task identifier, operation identifier and text information describing the operation sent by the multi-task design module, an experimental paradigm interface is generated and associated for each task identifier, and a stimulation block is generated and associated for each operation identifier, and the text information of the stimulation block is set to the descriptive text information of the corresponding operation, thereby completing the preliminary configuration of the experimental paradigm parameters.
6. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S3, the experimental paradigm related parameters include the number of experimental paradigm interfaces, the experimental paradigm type of each experimental paradigm interface, the classification algorithm of the experimental paradigm, the stimulation time, the number of stimulation blocks, the stimulation block information, the stimulation block size and the task identifier of the jump target experimental paradigm interface; wherein, the number of experimental paradigm interfaces must be greater than or equal to the number of control software and hardware, and the additional experimental paradigm interfaces are only used to realize the selection and jump of the experimental paradigm interface; the number of stimulation blocks must be greater than or equal to the number of operations of the task associated with the current experimental paradigm interface, and the additional stimulation blocks are used for the experimental paradigm interface jump.
7. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S5, the preprocessing associated with the experimental paradigm interface means that for the SSVEP experimental paradigm, the occipital lead channel is screened out, and the occipital lead signal is filtered with a 4th-order Butterworth bandpass filter in the 7-90 Hz frequency band, and then filtered with a Chebyshev 50 Hz notch filter; for the P300 experimental paradigm, the occipital lead channel is screened out, and the occipital lead signal is filtered with a 4th-order Butterworth bandpass filter in the 3-20 Hz frequency band, and then filtered with a Chebyshev 50 Hz notch filter.
8. The BCI multi-task method based on an interactive interface according to claim 1, It is characterized in that In S6, executing the software operation means that the multi-task execution module matches the algorithm classification results to obtain all the data for executing the software operation, specifically: the software buttons and text box component images required for the operation, and the keyboard and mouse operation sequence; the multi-task execution module uses a template matching algorithm to perform feature matching on the feature image and the computer screen shot to obtain the position coordinates of the software button or text box, and uses the mouse and keyboard control function to perform corresponding keyboard and mouse operations on the obtained coordinates; In S6, executing the hardware operation means that the multi-task execution module indexes the algorithm classification results to obtain all the data for executing the hardware operation, specifically: hardware operation instructions related to the operation, hardware IP address and port; the multi-task execution module sends the instructions to the IP address and port of the hardware using the communication protocol, and the hardware executes the corresponding operation when receiving the instructions.
9. A BCI multi-task system based on interactive interface, It is characterized in that Used to implement the BCI multi-task method based on an interactive interface as described in any one of claims 1 to 8; The BCI multi-task system based on the interactive interface includes: Experimental design system, consisting of a multi-task design module and an experimental paradigm design module; The experimental processing system consists of an experimental paradigm generation module, an EEG signal processing module, and a multi-task execution module; The multi-task design module is used to provide a first interactive interface, through which the user customizes the parameters required for the experimental paradigm design and the parameters required for the multi-task execution, and sends the parameters required for the experimental paradigm design and the parameters required for the multi-task execution to the experimental paradigm design module and the multi-task execution module using a communication protocol; The experimental paradigm design module is used to provide a second interactive interface, through which the user designs the experimental paradigm, completes the preliminary configuration of the experimental paradigm and the setting of experimental paradigm related parameters, and sends the experimental paradigm related parameters to the EEG signal processing module, the experimental paradigm generation module and the multi-task execution module using a communication protocol; The experimental paradigm generation module is used to generate a commonly used BCI experimental paradigm, and match the parameters sent by the experimental paradigm design module with the implemented experimental paradigm, and then call the implemented experimental paradigm stimulation interface, display each experimental paradigm interface on the display, and receive the instructions of the multi-task execution module through the communication protocol to complete the jump switching operation between experimental paradigms; The EEG signal processing module is used to provide the preprocessing and classification algorithms required by the commonly used BCI experimental paradigm, and match the parameters sent by the experimental paradigm design module with the implemented preprocessing and classification algorithms, perform data processing on the collected EEG data according to the preprocessing and classification algorithm operations associated with the current experimental paradigm interface, and then send the classification results to the multi-task execution module using a communication protocol, and perform jump switching operations between experimental paradigms by receiving instructions from the multi-task execution module; The multi-task execution module is used to perform one-to-one mapping of the parameters sent by the multi-task design module and the experimental paradigm design module, and save them into a file, and match the mapping information required to execute the corresponding operation according to the classification result sent by the EEG signal processing module when the system is running, and then execute the software, hardware operation associated with the classification result or jump switching operation between experimental paradigms.
