Brain computer interface-based intent prediction method and apparatus, device, and storage medium

By using multi-model training and reward mechanisms in the brain-computer interface pre-training phase, the existing technology problems of long pre-training time and difficulty in cooperating with macaques are solved, and the pre-training speed of the brain-computer interface decoder and the cooperating degree of macaques are improved. Promoted the development of brain-computer interface technology.

WO2024197695A1PCT designated stage expired Publication Date: 2024-10-03SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI

Patent Information

Application Number
PCT/CN2023/085047
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing brain-computer interface technology requires re-adjusting parameters and re-training models in the pre-training stage, which takes a long time. It is also difficult to obtain effective cooperation when macaques are used as test subjects, making the experiment difficult.

Method used

By using a display device to display the points to be moved in the pre-training stage, and pseudo-randomly generating target points, the movement trajectory data and EEG data of the macaque's operating handle are obtained, multi-model training is performed, and the optimal model is selected as the brain-computer interface decoding in the prediction stage. device, and provide rewards when the task is successful to motivate the macaques to cooperate.

Benefits of technology

It speeds up the pre-training of the brain-computer interface decoder, improves the cooperation of the macaques, simplifies the experimental process, complies with the policy environment, and is conducive to promoting the development of brain-computer interface technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023085047_03102024_PF_FP_ABST
    Figure CN2023085047_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a brain computer interface-based intent prediction method and apparatus, a device, and a storage medium. The method comprises: displaying on a display device a point to be moved, and pseudo-randomly generating a target point in any direction around the point to be moved; when a test subject starts to execute a touch trial, acquiring movement trajectory data when the test subject operates a handle to move the point to be moved, and collecting electroencephalographic data of the test subject; when the point to be moved touches the target point, performing direction category tagging on the movement trajectory data according to the position of the target point; training multiple models by using the direction category tag of the movement trajectory data and the electroencephalographic data, and according to the training result, selecting an optimal model from the multiple models as a brain computer interface decoder in a prediction stage; and predicting a movement intent of the test subject by means of the brain computer interface decoder. The present application can greatly increase the pre-training speed of the brain computer interface decoder.
Need to check novelty before this filing date? Find Prior Art

Description

Intention prediction method, device, equipment and storage medium based on brain-computer interface Technical Field

[0001] The present application belongs to the field of brain-computer interface application technology, and in particular relates to an intention prediction method, device, equipment and storage medium based on brain-computer interface. Background Art

[0002] The Brain Computer Interface (BCI) is a direct connection pathway established between the brain and external devices, and is an important means for humans to explore and develop the brain. The brain-computer interface uses a decoding algorithm to detect the spontaneous sensorimotor rhythms in the sensorimotor area of ​​the brain when the user imagines limb movements to determine the type of limb movement imagined by the current user, thereby realizing human-computer interaction and control of machine equipment. At present, the application of brain-computer interface technology is still in the experimental research stage, and the problems with using humans or macaques as test subjects are: due to the immaturity of the technical chain and possible safety hazards, it is difficult to obtain humans as test subjects in the current policy environment, and when using macaques as test subjects, it is difficult to get the macaques to cooperate and make corresponding movements, resulting in greater experimental difficulty. At the same time, the existing technology for the pre-training stage of brain-computer interfaces often requires readjustment of parameters and retraining of models, resulting in a long pre-training stage.

[0003] Summary of the Invention

[0004] The present application provides a method, apparatus, device and storage medium for intention prediction based on a brain-computer interface, aiming to solve at least one of the above-mentioned technical problems in the prior art to a certain extent.

[0005] In order to solve the above problems, this application provides the following technical solutions:

[0006] A method for predicting intention based on a brain-computer interface, comprising:

[0007] In the pre-training stage, the point to be moved is displayed on a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved;

[0008] When the test subject begins to perform the touch task, obtaining movement trajectory data of the test subject when operating the handle to move the point to be moved, and collecting EEG data of the test subject; wherein the test subject is a macaque monkey;

[0009] When the point to be moved touches the target point, the movement trajectory data is labeled with a direction category according to the position of the target point;

[0010] Performing multi-model training using the direction category labels of the movement trajectory data and the EEG data, and selecting the optimal model from the multiple models as a brain-computer interface decoder in the prediction stage based on the training results;

[0011] In the prediction stage, the EEG data of the test subject is input into the brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention for the point to be moved.

[0012] The technical solution adopted in the embodiment of the present application further includes: before labeling the movement trajectory data with a direction category according to the position of the target point, it also includes:

[0013] The timing starts from the execution of the touch task, and the host computer determines whether the point to be moved touches the target point within the set time. If so, the host computer sends an instruction to the single-chip. After receiving the instruction, the single-chip sends a high / low level to control the electromagnetic relay to open and provide a reward to the test subject, and closes after opening for a set time.

[0014] The technical solution adopted in the embodiment of the present application further includes: labeling the movement trajectory data with a direction category according to the position of the target point is specifically as follows:

[0015] The movement trajectory data includes two dimensions. The movement trajectory data is labeled with direction categories according to the dimensions and the position of the target point, and the labeled direction category labels are sent to the training data queue together with the EEG data.

[0016] The technical solution adopted in the embodiment of the present application further includes: before performing multi-model training using the direction category labels of the movement trajectory data and the EEG data, it also includes:

[0017] Determine whether the touch task has been executed a set number of times. If it has not been executed a set number of times, re-execute the touch task. If it has been executed a set number of times,

[0018] The host computer performs n filtering methods on the direction category labels and EEG data in the data queue to be trained, and generates n groups of data sets for model training.

[0019] The technical solution adopted in the embodiment of the present application also includes: the upper computer performs n types of filtering processing on the direction category labels and EEG data in the training data queue, specifically:

[0020] The EEG data are filtered in n different frequency bands respectively. During each filtering process, only the EEG data within the set frequency band is retained, and the EEG data and direction category labels generated by each filtering process are used as a set of data sets for model training.

[0021] The technical solution adopted in the embodiment of the present application also includes: the multi-model training using the labeled movement trajectory data and EEG data is specifically as follows:

[0022] The n sets of data sets are input into n different models for training respectively, and an optimal model is selected from the n different models as the brain-computer interface decoder in the prediction stage according to the training results; the n different models include convolutional neural networks, deep neural networks, long short-term memory networks, reinforcement learning networks and / or Kalman filters.

[0023] The technical solution adopted in the embodiment of the present application further includes: the output of the prediction result of the movement intention of the test subject to the point to be moved by the brain-computer interface decoder includes:

[0024] When starting prediction, the handle is removed, the point to be moved is displayed on a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved;

[0025] Collecting EEG data of the test subject in the current time period, inputting the EEG data into a brain-computer interface decoder, and outputting a prediction result of the test subject's movement intention for the point to be moved to a host computer through the brain-computer interface decoder;

[0026] The host computer compares the movement intention prediction result with the position of the target point to determine whether the movement intention prediction is correct. If it is wrong, the point to be moved is controlled to remain in place; if it is correct,

[0027] Controlling the display device to display that the point to be moved touches the target point, sending an instruction to the single-chip through the host computer, and the single-chip controlling the electromagnetic relay to open according to the instruction to provide a reward to the test subject;

[0028] Returning the determination result of whether the movement intention prediction result is correct to the brain-computer interface decoder, and the brain-computer interface decoder updates the weight parameter according to the determination result;

[0029] The point to be moved is controlled to reset, and the position of the target point is randomly updated, and then the movement intention prediction for the next time period is performed again.

[0030] Another technical solution adopted in the embodiment of the present application is: an intention prediction device based on a brain-computer interface, comprising:

[0031] Display module: used to display the point to be moved and pseudo-randomly generate a target point in any direction around the point to be moved;

[0032] A data acquisition module is used to obtain the movement trajectory data of the test subject when the test subject uses the operating handle to move the point to be moved when the test subject starts to perform the touch task, and to collect the EEG data of the test subject; wherein the test subject is a macaque monkey;

[0033] Data labeling module: used for labeling the movement trajectory data with a direction category according to the position of the target point when the point to be moved touches the target point;

[0034] Model training module: used to perform multi-model training using the direction category labels of the movement trajectory data and the EEG data, and select the optimal model from the multiple models as the brain-computer interface decoder in the prediction stage according to the training results;

[0035] Intention prediction module: used to input the EEG data of the test subject into the brain-computer interface decoder during the prediction stage, and output the prediction result of the test subject's movement intention for the point to be moved through the brain-computer interface decoder.

[0036] Another technical solution adopted by the embodiment of the present application is: a device, the device comprising a processor and a memory coupled to the processor, wherein:

[0037] The memory stores program instructions for implementing the brain-computer interface-based intention prediction method;

[0038] The processor is used to execute the program instructions stored in the memory to control the intention prediction method based on the brain-computer interface.

[0039] Another technical solution adopted in the embodiment of the present application is: a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute the intention prediction method based on the brain-computer interface.

[0040] Compared with the prior art, the beneficial effects produced by the embodiments of the present application are as follows: the intention prediction method, device, equipment and storage medium based on the brain-computer interface of the embodiments of the present application use macaques as test subjects. In the pre-training stage of the brain-computer interface decoder, by obtaining the movement trajectory data and EEG data of the operating handle of the macaque when performing the touch task, multiple models are trained together according to the movement trajectory data and EEG data, and the optimal model is selected from the multiple models according to the training results as the brain-computer interface decoder in the prediction stage, thereby accelerating the pre-training speed of the brain-computer interface decoder; at the same time, when the touch task is successfully performed, a reward is provided to the test subject, thereby motivating the test subject to better cooperate and make corresponding actions, further improving the pre-training speed of the brain-computer interface decoder. Through the implementation of this application, the pre-training speed of the brain-computer interface decoder can be greatly improved, and it is easier to verify the effect of the brain-computer interface decoder. Using macaques as test subjects is in line with the current policy environment and is conducive to promoting the development of brain-computer interface technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] FIG1 is a flowchart of a method for predicting intention based on a brain-computer interface according to a first embodiment of the present application;

[0042] FIG2 is a flowchart of a method for predicting intention based on a brain-computer interface according to a second embodiment of the present application;

[0043] FIG3 is a schematic diagram of the positional relationship between the point to be moved and the target point provided in an embodiment of the present application;

[0044] FIG4 is a schematic diagram of direction category labels for movement trajectory data according to an embodiment of the present application;

[0045] FIG5 is a schematic diagram of a multi-model training process according to an embodiment of the present application;

[0046] FIG6 is a flow chart of a method for predicting movement intentions by a brain-computer interface decoder during the prediction phase of an embodiment of the present application;

[0047] FIG7 is a schematic structural diagram of an intention prediction device based on a brain-computer interface according to an embodiment of the present application;

[0048] FIG8 is a schematic diagram of the device structure of an embodiment of the present application;

[0049] FIG9 is a schematic diagram of the structure of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0051] The terms "first," "second," and "third" in this application are used only for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of such features. In the description of this application, "multiple" means at least two, for example, two, three, etc., unless otherwise specifically defined. All directional indications in the embodiments of this application (such as up, down, left, right, front, back...) are only used to explain the relative positional relationship, movement, etc. between the components under a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications also change accordingly. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products, or devices.

[0052] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0053] Specifically, please refer to Figure 1, which is a flow chart of the intention prediction method based on brain-computer interface of the first embodiment of the present application. The intention prediction method based on brain-computer interface of the first embodiment of the present application includes the following steps:

[0054] S100: In the pre-training stage, the point to be moved is displayed on a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved;

[0055] S110: When the test subject begins to perform the touch task, obtaining movement trajectory data of the test subject when operating the handle to move the point to be moved, and collecting EEG data of the test subject; wherein the test subject is a macaque monkey;

[0056] S120: When the point to be moved touches the target point, label the movement trajectory data with a direction category according to the position of the target point;

[0057] S130: Perform multi-model training using the direction category labels of the movement trajectory data and the EEG data, and select the optimal model from the multiple models as a brain-computer interface decoder in the prediction stage according to the training results;

[0058] S140: In the prediction stage, the EEG data of the test subject is input into the brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention for the point to be moved.

[0059] Please refer to Figure 2, which is a flow chart of the intention prediction method based on brain-computer interface according to the second embodiment of the present application. The intention prediction method based on brain-computer interface according to the second embodiment of the present application comprises the following steps:

[0060] S200: In the pre-training stage, the point to be moved is displayed on a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved;

[0061] In this step, the display device includes, but is not limited to, the display screen of a smart device such as a PC or tablet. The point to be moved is the center point of the handle control. The peripheral direction of the generated target point and the number of times N are generated can be set according to the actual application scenario. In this embodiment, N is preferably set to 8. Figure 3 shows the positional relationship between the point to be moved and the target point in this embodiment.

[0062] S210: Start executing the single touch task (trial), obtain the movement trajectory data of the test subject when the handle moves the point to be moved through the host computer, and collect the EEG data of the test subject through the EEG data acquisition device;

[0063] In this step, the display device, the host computer and the handle are connected to each other. The test subject uses the operating handle to control the movement of the point to be moved in the display device and contact the target point on its periphery. When the test subject operates the handle, the movement trajectory data of the handle is obtained in real time by the host computer, and the EEG signal of the test subject is synchronously collected by the EEG data acquisition device worn by the test subject.

[0064] In the embodiment of the present application, the test subject is a macaque monkey, and the EEG data acquisition device collects EEG data in a manner including but not limited to non-invasive acquisition, invasive acquisition, or semi-invasive acquisition. Non-invasive acquisition involves placing multiple EEG (Electroencephalogram) electrodes in close contact with different locations on the test subject's scalp to collect EEG data from the test subject. Invasive acquisition involves implanting electrodes into the test subject's cerebral cortex to collect EEG data from the test subject. Semi-invasive acquisition involves implanting a brain-computer interface into the test subject's cranial cavity but collecting EEG data outside the cerebral cortex. The specific acquisition method can be selected according to the actual application scenario.

[0065] S220: Start timing from the execution of the single touch task, and determine through the host computer whether the point to be moved touches the target point within the set time. If yes, execute S230; otherwise, execute S200 again;

[0066] S230: Sending a command to the single chip via the host computer. After receiving the command, the single chip sends a high / low level to control the electromagnetic relay to open and provide a reward to the test subject, and then close after opening for a set time.

[0067] In this step, the host computer, single-chip, and electromagnetic relay are connected in sequence. When the macaque manipulates the handle so that the point to be moved touches the target point on its periphery, the host computer sends a command to the single-chip microcomputer. The single-chip microcomputer generates a high / low level based on the command to control the electromagnetic relay to open for a certain period of time. During this period, the macaque is provided with liquid or food rewards, thereby motivating the macaque to better cooperate and perform the corresponding actions, which is conducive to the smooth progress of the experiment. It can be understood that the opening time of the electromagnetic relay can be set according to the actual application scenario.

[0068] S240: Label the movement trajectory data corresponding to the current touch task with the corresponding direction category according to the position of the target point, and send the direction category label of the movement trajectory data and the EEG data into the data queue to be trained;

[0069] In this step, the queue of data to be trained includes, but is not limited to, using the Queue function in the Python programming language. Labeling the trajectory data with corresponding direction categories is as follows: the trajectory data consists of two dimensions, each ranging from -1 to 1, represented by an array (a, b). The trajectory data is labeled with direction categories based on the dimensions and the location of the target point. Specifically, Figure 4 shows a schematic diagram of the direction category labels for trajectory data in an embodiment of the present application.

[0070] S250: Determine whether the execution times of the single touch task have reached the set times. If not, re-execute S200 to S240. If it has reached the set times, execute S260.

[0071] S260: performing n filtering processes on the direction category labels and EEG data in the training data queue by the host computer, respectively, to generate n sets of data sets for model training;

[0072] In this step, after the touch task is completed, the host computer main program uses a multi-threaded call to treat the direction category labels and EEG data in the training data queue for n types of filtering preprocessing. The n types of filtering preprocessing are specifically as follows: filtering the EEG data in n different frequency bands, and only retaining the EEG data within the set frequency band during each filtering process. The EEG data and the direction category labels generated by each filtering process are used as a set of data sets for model training. It can be understood that the n value and the filter frequency band size can be set according to the actual application scenario. For example, when the n value is set to 4, the EEG data are filtered in 4 different frequency bands. During each filtering process, the EEG data of the four frequency bands of 4-8 Hz, 8-13 Hz, 13-40 Hz and 40-80 Hz are retained, and the EEG data and the direction category labels of each frequency band are used as a set of data sets, thereby obtaining 4 sets of data sets for model training.

[0073] S270: Inputting n sets of data sets into n different models for training respectively, and selecting an optimal model from the n models according to the training results as a brain-computer interface decoder in the prediction stage;

[0074] In this step, after multiple models of multiple groups of data are trained, the training effect of each model can be seen through the main thread of the host computer, and an optimal model is selected from multiple models as the brain-computer interface decoder in the prediction stage. By training multiple models together, the pre-training speed of the brain-computer interface decoder is improved. Among them, n different models include but are not limited to CNN (Convolutional Neural Networks), DNN (Deep Nueral Network, deep neural network), LSTM (Long Short-Term Memory, long short-term memory network), RL (Reinforcement Learning, reinforcement learning network) or / and Kalman filter, etc. Taking CNN, LSTM, RL and Kalman filter as examples, the multi-model training process of the embodiment of the present application is shown in Figure 5.

[0075] S280: In the prediction stage, the EEG data of the test subject is input into the trained brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention to the moving point;

[0076] In this step, please refer to FIG6 , which is a flowchart of the embodiment of the present application for predicting movement intention by using the brain-computer interface decoder in the prediction stage, which specifically includes the following steps:

[0077] S281: When starting prediction, remove the handle, display the point to be moved on the display device, and pseudo-randomly generate a target point in any direction around the point to be moved;

[0078] S282: Collecting EEG data of the test subject in the current time period through the EEG data acquisition device, inputting the EEG data into a brain-computer interface decoder, and outputting the prediction result of the test subject's movement intention to the moving point to the host computer through the brain-computer interface decoder;

[0079] The movement intention prediction result is the direction category label of the test subject's intention to control the moving point to move toward the target point.

[0080] S283: The host computer compares the movement intention prediction result with the position of the target point to determine whether the movement intention prediction is correct. If it is wrong, execute S284; if it is correct, execute S285;

[0081] S284: Control the point to be moved to remain in its original position and execute S286;

[0082] S285: Control the display device to show that the point to be moved touches the target point, and send a command to the single-chip through the host computer. The single-chip controls the electromagnetic relay to open according to the command to provide a reward to the test subject.

[0083] S286: returning the determination result of whether the movement intention prediction result is correct to the brain-computer interface decoder, and the brain-computer interface decoder updates the weight parameter according to the determination result;

[0084] S287: After controlling the point to be moved to reset and randomly updating the position of the target point on its periphery, S281 is re-executed to predict the movement intention for the next time period.

[0085] Based on the above, the embodiment of the present application forms a closed-loop adaptive brain-computer interface system by continuously looping the prediction of the movement intention of the test subject and the weight update of the brain-computer interface decoder, thereby achieving the purpose of the macaque using brain-computer interface technology to control the movement of the point to be moved by mind control.

[0086] The second embodiment of the present application is a method for predicting intentions based on a brain-computer interface using macaques as test subjects. In the pre-training stage of the brain-computer interface decoder, by obtaining the movement trajectory data and EEG data of the operating handle of the macaque when performing the touch task, multiple models are trained together based on the movement trajectory data and EEG data, and the optimal model is selected from the multiple models based on the training results as the brain-computer interface decoder in the prediction stage, thereby accelerating the pre-training speed of the brain-computer interface decoder. At the same time, when the touch task is successfully performed, a reward is provided to the test subject, thereby motivating the test subject to better cooperate and make corresponding actions, further improving the pre-training speed of the brain-computer interface decoder. In the prediction stage, the EEG data of the test subject is input into the trained brain-computer interface decoder, and the brain-computer interface decoder is used to predict the movement intention of the test subject. Through the implementation of this application, the pre-training speed of the brain-computer interface decoder can be greatly improved, and it is easier to verify the effect of the brain-computer interface decoder. Using macaques as test subjects is in line with the current policy environment and is conducive to promoting the development of brain-computer interface technology.

[0087] Please refer to FIG7 , which is a schematic diagram of the structure of the intention prediction device based on the brain-computer interface according to an embodiment of the present application. The intention prediction device 40 based on the brain-computer interface according to the embodiment of the present application includes:

[0088] Display module 41: used to display the point to be moved and pseudo-randomly generate a target point in any direction around the point to be moved;

[0089] Data acquisition module 42: used for acquiring movement trajectory data of the test subject when the test subject uses the operating handle to move the point to be moved when the test subject starts to perform the touch task, and collecting EEG data of the test subject; wherein the test subject is a macaque monkey;

[0090] The data labeling module 43 is configured to label the movement trajectory data with a direction category according to the position of the target point when the point to be moved touches the target point;

[0091] Model training module 44: used to perform multi-model training using the direction category labels of the movement trajectory data and the EEG data, and select the optimal model from the multiple models as the brain-computer interface decoder in the prediction stage according to the training results;

[0092] Intention prediction module 45: used to input the EEG data of the test subject into the brain-computer interface decoder during the prediction stage, and output the prediction result of the test subject's movement intention for the point to be moved through the brain-computer interface decoder.

[0093] Please refer to Figure 8, which is a schematic diagram of the device structure of an embodiment of the present application. The device 50 includes:

[0094] A memory 51 storing executable program instructions;

[0095] a processor 52 connected to the memory 51;

[0096] The processor 52 is used to call the executable program instructions stored in the memory 51 and perform the following steps: In the pre-training stage, the point to be moved is displayed through the display device, and a target point is pseudo-randomly generated in any direction around the point to be moved; when the test subject starts to perform the touching task, the movement trajectory data of the test subject when using the operating handle to move the point to be moved is obtained, and the EEG data of the test subject is collected; wherein, the test subject is a macaque; when the point to be moved touches the target point, the movement trajectory data is labeled with the direction category according to the position of the target point; multi-model training is performed using the direction category label of the movement trajectory data and the EEG data, and the optimal model is selected from the multiple models according to the training results as the brain-computer interface decoder in the prediction stage; in the prediction stage, the EEG data of the test subject is input into the brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention for the point to be moved.

[0097] The processor 52 may also be referred to as a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor may be a microprocessor or any conventional processor.

[0098] Please refer to Figure 9, which is a schematic diagram of the structure of the storage medium of an embodiment of the present application. The storage medium of the embodiment of the present application stores program instructions 61 that can implement the following steps: in the pre-training stage, the point to be moved is displayed by a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved; when the test subject starts to perform the touch task, the movement trajectory data of the test subject when the operating handle moves the point to be moved is obtained, and the EEG data of the test subject is collected; wherein, the test subject is a macaque; when the point to be moved touches the target point, the movement trajectory data is labeled with a direction category according to the position of the target point; multi-model training is performed using the direction category label of the movement trajectory data and the EEG data, and the optimal model is selected from the multi-model according to the training results as the brain-computer interface decoder in the prediction stage; in the prediction stage, the EEG data of the test subject is input into the brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention for the point to be moved. Among them, the program instructions 61 can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions for enabling a device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the various implementation methods of the present application. The aforementioned storage medium includes: various media that can store program instructions, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, or a tablet. Among them, the server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0100] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. The above is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of this application, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for predicting intention based on brain-computer interface, characterized in that: include: In the pre-training stage, the point to be moved is displayed by a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved; When the test subject starts to perform the touch task, the movement trajectory data of the test subject when operating the handle to move the point to be moved is obtained, and the EEG data of the test subject is collected; wherein the test subject is a macaque; When the point to be moved touches the target point, the moving trajectory data is labeled with a direction category according to the position of the target point; Using the direction category labels of the movement trajectory data and the EEG data to perform multi-model training, and selecting the best model from the multiple models as a brain-computer interface decoder in the prediction stage according to the training results; In the prediction stage, the EEG data of the test subject is input into the brain-computer interface decoder, and the brain-computer interface decoder outputs the prediction result of the test subject's movement intention for the point to be moved.

2. The method for predicting intention based on brain-computer interface according to claim 1, characterized in that: Before labeling the movement trajectory data with a direction category according to the position of the target point, the method further includes: The timing starts from the execution of the touch task, and the host computer determines whether the point to be moved touches the target point within the set time. If so, the host computer sends an instruction to the single-chip. After receiving the instruction, the single-chip sends a high / low level to control the electromagnetic relay to open to provide a reward for the test subject, and closes after opening for a set time.

3. The method for predicting intention based on brain-computer interface according to claim 2, characterized in that: The labeling of the direction category of the movement trajectory data according to the position of the target point is specifically as follows: The movement trajectory data includes two dimensions. The movement trajectory data is labeled with direction categories according to the dimensions and the position of the target point, and the labeled direction category labels are sent to the queue of data to be trained together with the EEG data.

4. The method for predicting intention based on brain-computer interface according to any one of claims 1 to 3, characterized in that: Before the multi-model training is performed using the direction category labels of the movement trajectory data and the EEG data, the method further includes: Determine whether the touch task has been executed a set number of times. If it has not been executed a set number of times, re-execute the touch task. If it has been executed a set number of times, The host computer performs n filtering methods on the direction category labels and EEG data in the queue of data to be trained, respectively, to generate n groups of data sets for model training.

5. The method for predicting intention based on brain-computer interface according to claim 4, characterized in that: The filtering process of the direction category labels and the EEG data in the queue of data to be trained by the host computer in n ways is specifically as follows: The EEG data are respectively subjected to filtering processing in n different frequency bands. During each filtering processing, only the EEG data within the set frequency band is retained, and the EEG data generated by each filtering processing and the direction category label are used as a set of data sets for model training.

6. The method for predicting intention based on brain-computer interface according to claim 5, characterized in that: The multi-model training using the direction category labels of the movement trajectory data and the EEG data is specifically as follows: The n groups of data sets are respectively input into n different models for training, and an optimal model is selected from the n different models as a brain-computer interface decoder in the prediction stage according to the training results; the n different models include convolutional neural networks, deep neural networks, long short-term memory networks, reinforcement learning networks and / or Kalman filters.

7. The method for predicting intention based on brain-computer interface according to claim 6, characterized in that: The outputting of the prediction result of the movement intention of the test subject to the point to be moved by the brain-computer interface decoder includes: When starting prediction, the handle is removed, the point to be moved is displayed through a display device, and a target point is pseudo-randomly generated in any direction around the point to be moved; Collecting EEG data of the test subject in the current time period, inputting the EEG data into a brain-computer interface decoder, and outputting the prediction result of the test subject's movement intention for the point to be moved to a host computer through the brain-computer interface decoder; The upper computer compares the movement intention prediction result with the position of the target point to determine whether the movement intention prediction result is correct. If it is wrong, the point to be moved is controlled to remain in place; if it is correct, Control the display device to display that the point to be moved touches the target point, and send instructions to the single-chip through the host computer, and the single-chip controls the electromagnetic relay to open according to the instructions to provide a reward to the test subject; Returning the determination result of whether the movement intention prediction result is correct to the brain-computer interface decoder, and the brain-computer interface decoder updates the weight parameter according to the determination result; The point to be moved is controlled to be reset, and the position of the target point is randomly updated, and then the movement intention prediction for the next time period is performed again.

8. An intention prediction device based on a brain-computer interface, characterized in that: include: Display module: used for displaying the point to be moved, and pseudo-randomly generating a target point in any direction of the periphery of the point to be moved; Data acquisition module: used for acquiring the moving trajectory data of the test subject when the test subject operates the handle to move the point to be moved, and acquiring the EEG data of the test subject when the test subject starts to perform the touch task; wherein the test subject is a macaque; Data labeling module: used for labeling the moving trajectory data with a direction category according to the position of the target point when the point to be moved touches the target point; Model training module: used to perform multi-model training using the direction category labels of the movement trajectory data and the EEG data, and select the optimal model from the multiple models as the brain-computer interface decoder in the prediction stage according to the training results; Intention prediction module: used to input the EEG data of the test subject into the brain-computer interface decoder during the prediction stage, and output the prediction result of the test subject's movement intention for the point to be moved through the brain-computer interface decoder.

9. A device, characterized in that: The device comprises a processor and a memory coupled to the processor, wherein: The memory stores program instructions for implementing the intention prediction method based on brain-computer interface according to any one of claims 1 to 7; The processor is used to execute the program instructions stored in the memory to control the intention prediction method based on brain-computer interface.

10. A storage medium, characterized in that: Processor-executable program instructions are stored, and the program instructions are used to execute the intention prediction method based on brain-computer interface as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Motion direction prediction method and device, equipment and storage medium

    CN110495881A

  • Training mode adjusting method and device for electromyographic signals and electroencephalogram signals

    CN114756137A

  • Virtual game rehabilitation system and method for active rehabilitation of stroke patient

    CN115054903A

  • Invasive brain-computer interface task-related neural signal extraction method

    CN115358264A

  • Cognitive evaluation system

    CN115471903A

Cited By

  • Robot control method and robot control system

    CN120620235A