Standard brain activity inducing template signal generating method, standard brain activity inducing template signal decoding method and related equipment
The standard evoked brain activity template signal is generated through the steady-state visually evoked EEG unified excitation-response model, which solves the problem of the inability to characterize the nonlinear mechanism in the SSVEP decoding method and the low decoding accuracy under small sample conditions, and achieves efficient EEG signal decoding. .
Patent Information
- Application Number
- CN202410662888.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-10
AI Technical Summary
When constructing standard evoked brain activity template signals, the existing SSVEP decoding method has problems such as the inability to fully characterize the excitation-response nonlinear mechanism, large training data requirements, subject fatigue, and noise sensitivity. Especially under small sample conditions, the decoding accuracy is low.
Using a pre-trained steady-state visual evoked EEG unified excitation-response model, by generating multiple excitation signals with different excitation methods and inputting them into the model, a standard evoked brain activity template signal is generated, and similarity calculation is used to determine the decoding result. , reduce dependence on training data and improve decoding accuracy.
It achieves high decoding accuracy under small sample conditions, reduces noise sensitivity, is suitable for decoding EEG signals of different test individuals, and improves the application efficiency of steady-state evoked potential brain-computer interface technology.
Smart Images

Figure CN118625926A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of steady-state evoked potential brain-computer interface, and in particular to a standard evoked brain activity template signal generation method, a decoding method and related equipment. Background Art
[0002] Steady-State Visual Evoked Potentials (SSVEP) has become an important branch in the field of brain-computer interface and is widely used in various brain-computer interface fields due to its simple paradigm, easy implementation, no or only small amount of training required, high stability of decoding results, and high information transmission rate.
[0003] The basic idea of the existing SSVEP decoding method is to identify the excitation frequency of the EEG response signal by calculating the correlation between the obtained EEG response signal and the standard induced brain activity template signal, given a set of excitation signals with different frequencies and phases. Therefore, how to construct a standard induced brain activity template signal is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a standard evoked brain activity template signal generation method, decoding method and related equipment, which can construct a standard evoked brain activity template signal.
[0005] To achieve the above objectives, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for generating a standard induced brain activity template signal, comprising:
[0007] According to the preset experimental requirements, multiple excitation signals are generated; wherein each excitation signal has a different excitation mode;
[0008] Input each excitation signal into a pre-trained unified excitation-response model of steady-state visual evoked EEG, and obtain a standard evoked brain activity template signal corresponding to each excitation signal output by the unified excitation-response model of steady-state visual evoked EEG, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is taken as the decoding result;
[0009] The steady-state visual evoked electroencephalogram unified stimulus-response model is obtained by training with a set sample stimulus signal as a training sample and a sample electroencephalogram signal responding to the sample stimulus signal as a label.
[0010] In a second aspect, the present application provides a device for generating a standard induced brain activity template signal, comprising:
[0011] A generation module is used to generate multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode;
[0012] The first determination module inputs each excitation signal into a pre-trained steady-state visual evoked electroencephalogram unified excitation-response model, and obtains a standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked electroencephalogram unified excitation-response model, so that in the actual decoding process, similarity calculation is performed between the standard evoked brain activity template signal and the actually collected visual evoked electroencephalogram signal; in the decoding process, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result;
[0013] The steady-state visual evoked electroencephalogram unified stimulus-response model is obtained by training with a set sample stimulus signal as a training sample and a sample electroencephalogram signal responding to the sample stimulus signal as a label.
[0014] In a third aspect, the present application provides a method for decoding an electroencephalogram signal, comprising:
[0015] Calculating the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, and determining the target standard induced brain activity template signal with the highest correlation with the EEG signal from all the standard induced brain activity template signals; the similarity includes the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal;
[0016] Determining the excitation mode of the target standard-induced brain activity template signal as a decoding result;
[0017] The generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
[0018] In a fourth aspect, the present application provides a device for decoding an electroencephalogram signal, comprising:
[0019] A calculation module, used for calculating the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, wherein the similarity includes the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal;
[0020] A second determination module is used to determine that the excitation mode of the target standard induced brain activity template signal is a decoding result;
[0021] The generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
[0022] In a fifth aspect, the present application provides an electronic device, including a processor and a memory, wherein the processor is connected to the memory:
[0023] Wherein, the processor is used to call and execute the program stored in the memory;
[0024] The memory is used to store the program, and the program is at least used to execute any of the above methods for generating a standard induced brain activity template signal and / or any of the above methods for decoding an electroencephalogram signal.
[0025] In a sixth aspect, the present application provides a storage medium, comprising: a computer program is stored on the storage medium, and when the computer program is executed by a processor, it implements the standard induced brain activity template signal generation method described in any one of the above items, and / or the EEG signal decoding method described in any one of the above items.
[0026] The method for generating a standard evoked brain activity template signal of the present invention can obtain multiple excitation signals with different excitation modes, and then input each excitation signal into a pre-trained steady-state visual evoked electroencephalogram unified excitation-response model, respectively, to obtain a standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked electroencephalogram unified excitation-response model. Among them, the steady-state visual evoked electroencephalogram unified excitation-response model is trained with a set sample excitation signal as a training sample and a sample electroencephalogram signal that responds to the sample excitation signal as a label. In the present application, it is only necessary to train and obtain a steady-state visual evoked electroencephalogram unified excitation-response model, and then the steady-state visual evoked electroencephalogram unified excitation-response model can be used to generate electroencephalogram signals corresponding to various excitation signals as standard evoked brain activity template signals, so as to achieve the purpose of decoding electroencephalogram signals of different test individuals. At the same time, it is possible to realize brain activity decoding under small sample conditions, greatly improving the decoding accuracy under small sample conditions, which is of great significance for the practical application of steady-state evoked potential brain-computer interface technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of a flow chart of a method for generating a standard evoked brain activity template signal provided in an embodiment of the present application;
[0029] Figure 2 A schematic diagram of the structure of a NARX neural network model provided in one embodiment of the present application;
[0030] Figure 3 A schematic diagram of the structure of an LSTM network provided in one embodiment of the present application;
[0031] Figure 4 A schematic diagram of a flow chart of a method for decoding an electroencephalogram signal provided in an embodiment of the present application;
[0032] Figure 5 A flowchart of another method for decoding an electroencephalogram signal provided in one embodiment of the present application;
[0033] Figure 6 A comparison diagram of an actual response signal and a standard induced brain activity template signal provided in an embodiment of the present application;
[0034] Figure 7A schematic diagram of the structure of a device for generating a standard evoked brain activity template signal provided in one embodiment of the present application;
[0035] Figure 8 A schematic diagram of the structure of an electroencephalogram signal decoding device provided in one embodiment of the present application;
[0036] Fig. 9 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0037] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0038] Steady-State Visual Evoked Potentials (SSVEP) has become an important branch in the field of brain-computer interface and is widely used in various brain-computer interface fields due to its simple paradigm, easy implementation, no or only a small amount of training, high stability of decoding results, and high information transmission rate. The basic idea of the existing SSVEP decoding method is to calculate the correlation between the obtained EEG response signal and the template reference signal given a set of excitation signals with different frequencies and phases, determine the target template reference signal with the highest correlation with the EEG response signal in the set of template reference signals, or the target template reference signal with a correlation with the EEG response signal greater than the set value, and determine the frequency and phase of the target template reference signal as the decoding result.
[0039] According to the different sources of template reference signals, the above correlation analysis can be divided into: Canonical Correlation Analysis (CCA) algorithm, and Task-Related Component Analysis (TRCA) algorithm. Among them, the CCA algorithm uses a combination of the excitation signal and its harmonics to generate the template reference signal, while the TRCA algorithm directly uses a combination of the EEG responses in the subject's multiple training data to generate the template signal. The core difference between the two is that the CCA algorithm generates templates based on known standard sine and cosine input signals and does not require labeled training data to obtain spatial filter weights, while TRCA uses multiple EEG response data under the same excitation to construct templates, and its spatial filter is obtained by making the data of each trial of the same excitation have the highest correlation. Of course, there are SSVEP decoding models based on neural networks or deep models to implement nonlinear filters or filter groups, but most of them are based on the above maximum correlation idea.
[0040] This leads to the following problems in existing SSVEP decoding algorithms: most models are still based on linear combinations of excitation signals or EEG responses, and cannot fully characterize the nonlinear mechanism of excitation-response; more training data is required during the training process, especially when there are many stimulation targets, which leads to long training data collection time, which easily leads to subject fatigue and low data quality; the performance drops sharply when there are fewer training samples; in supervised learning algorithms, the results are sensitive to noise, and if a group of data or individual leads in the training data are not ideal, the results of the entire algorithm will be affected.
[0041] In order to solve the above problems, the embodiments of the present application provide a standard induced brain activity template signal generation method, decoding method and related equipment.
[0042] The present application embodiment provides a method for generating a standard induced brain activity template signal, which can be executed by an electronic device, and the electronic device can be any device with data and instruction processing functions, such as a computer, an intelligent terminal, a server, etc. Figure 1 As shown, the method includes:
[0043] S101. Generate multiple excitation signals according to preset experimental requirements.
[0044] The above-mentioned excitation signal refers to the visual stimulation signal applied to the test subject according to the preset experimental requirements. When the test subject is subjected to the visual stimulation of a fixed frequency, the visual cortex of the test subject's brain will produce a continuous response related to the stimulation frequency, and this response is SSVEP. The above-mentioned test subject refers to a living being, generally a human being.
[0045] In this embodiment, each excitation signal has a different excitation mode. The excitation mode includes an excitation frequency and / or an excitation phase. The excitation frequency refers to the frequency of the excitation signal, and the excitation phase refers to the phase of the excitation signal. In addition, the excitation mode may also include parameters such as the amplitude and period of the excitation signal, which are not limited in this embodiment.
[0046] Excitation signals with different excitation modes may be generated according to actual experimental requirements, which is not limited in this embodiment.
[0047] In an optional embodiment, if the excitation mode includes an excitation frequency and an excitation phase, generating multiple excitation signals may include: generating excitation signals of multiple excitation combinations; the excitation combination is a combination of an excitation frequency and an excitation phase.
[0048] Specifically, multiple excitation combinations can be obtained by changing the magnitude of the excitation frequency and the magnitude of the excitation phase, so as to obtain excitation signals of multiple excitation combinations. It is also possible to obtain all given frequencies and phases, and obtain multiple excitation combinations by combining all given frequencies and phases, and then obtain excitation signals of multiple excitation combinations.
[0049] S102. Input each excitation signal into a pre-trained unified excitation-response model of steady-state visual evoked EEG, and obtain a standard evoked brain activity template signal corresponding to each excitation signal output by the unified excitation-response model of steady-state visual evoked EEG. In this way, in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is taken as the decoding result.
[0050] This embodiment pre-trains a steady-state visual evoked EEG unified stimulus-response model, wherein the steady-state visual evoked EEG unified stimulus-response model is obtained by training with a set sample stimulus signal as a training sample and a sample EEG signal responding to the sample stimulus signal as a label.
[0051] The unified stimulus-response model of steady-state visual evoked EEG can describe the general input-output law of EEG activity under external stimuli. Its basic assumption is that brain activity obeys the same nonlinear dynamic stimulus-response process for different external stimuli. A unified stimulus-response model is established based on a small amount of data through a machine learning algorithm, which is used to generate standard evoked brain activity template signals under different stimuli in the next step. This model simulates the consistent activity law of the brain under different stimuli, while suppressing brain activities that are not related to the corresponding evoked signals. Once the model is established, brain activity signals under different steady-state stimuli can be generated based on the same model. At the same time, the brain activity signals generated by this model highlight the corresponding evoked information and suppress brain activities that are not related to the evoked content compared to the real brain activity data. Therefore, the generated standard evoked brain activity template signal is more suitable as a template signal for downstream decoding tasks than the actual collected brain activity signals.
[0052] In the embodiment of the present application, the experimenter can be visually stimulated in advance by using the set sample excitation signal, and the EEG signal in response to the sample excitation signal is obtained as the above-mentioned sample EEG signal, forming a large number of sample excitation signal-sample EEG signal data pairs. Exemplarily, the screen used to generate visual stimulation can adopt a single target flickering mode, and a set of continuous experiments are carried out on all the excitation modes in turn, and the excitation signal time series and the corresponding multi-channel EEG signals are recorded simultaneously. Among them, the excitation signal time series is the above-mentioned sample excitation signal, and the multi-channel EEG signal is the sample EEG signal in response to the sample excitation signal, thereby forming the sample excitation signal and the sample EEG signal in response to the sample excitation signal into a sample excitation signal-sample EEG signal data pair. In addition, in this example, the EEG electrode position uses the standard 10-20 international standard, and the EEG combinations that can be used are PO6, O1, OZ, O2, PO5, PO3, POZ, PO4, and Pz.
[0053] In this embodiment, a set sample excitation signal is used as a training sample, and a sample EEG signal that responds to the sample excitation signal is used as a label for training to obtain a steady-state visual evoked EEG unified excitation-response model. Among them, the steady-state visual evoked EEG unified excitation-response model can use a neural network model as a basic model. During training, the training sample can be input into the basic model to obtain the output result of the basic model. By comparing the output result of the basic model with the training label, the loss value of the basic model is determined. The parameters of the basic model are adjusted for the purpose of reducing the loss value of the basic model, and then the above training process is repeated until the loss value of the basic model is less than the set value. The set value can be set according to the actual situation, and this embodiment does not limit it.
[0054] Based on the SSVEP paradigm, the steady-state evoked potential of the brain is applied, that is, in the steady-state brain activity process under external visual stimulation, the brain response process of the living body under different visual stimulations obeys the same dynamic nonlinear model. The purpose of training the steady-state visual evoked EEG unified stimulus-response model in this embodiment is to hope that the steady-state visual evoked EEG unified stimulus-response model can simulate the steady-state response of the brain of the living body to visual stimulation. Therefore, the neural network model used in the steady-state visual evoked EEG unified stimulus-response model is preferably a nonlinear input-output dynamic model, such as Volterra model, NARX neural network model, LSTM sequence-sequence model, etc.
[0055] Furthermore, since the response process of the brain of a living organism under different stimuli obeys a unified input-output characteristic, in this embodiment, the training of the steady-state visual evoked EEG unified stimulus-response model aims to reveal the common nonlinear mechanism of the brain under different stimuli, which enables the EEG response data under different stimuli to be used for joint training during the training process of the steady-state visual evoked EEG unified stimulus-response model. Different from the traditional SSVEP training that uses all EEG data of a trial as a training sample, this method uses a set of stimulus signals and EEG response signals as a training sample, which greatly reduces the dependence on large training data.
[0056] The various excitation signals obtained in the above steps are respectively input into the steady-state visual evoked EEG unified excitation-response model, which can simulate the steady-state response of the brain of a living body to visual stimulation and output EEG signals in response to various excitation signals. In this embodiment, the EEG signals in response to various excitation signals output by the steady-state visual evoked EEG unified excitation-response model are determined as standard evoked brain activity template signals.
[0057] In this embodiment, after obtaining the unified stimulus-response model of steady-state visual evoked EEG, the stimulus signals of all classification models are used as input, and the unified stimulus-response model of steady-state visual evoked EEG is simulated to obtain the corresponding standard evoked brain activity template signal. The standard evoked brain activity template signal reflects the individual information of the subject, and at the same time, the influence of other interference factors is filtered out during the model training and optimization process, and can reflect the dynamic process of input state switching. The unified stimulus-response model of steady-state visual evoked EEG of this embodiment can generate multiple standard EEG signals at the same time to avoid abnormal situations in the data of individual channels during acquisition.
[0058] It should be noted that the unified stimulus-response model of steady-state evoked brain activity in this embodiment is not limited to the steady-state visual evoked paradigm, and can be used for but is not limited to steady-state motor evoked potentials, steady-state somatosensory evoked potentials, steady-state auditory evoked potentials and other steady-state evoked EEG and their unified stimulus-response models under hybrid brain-computer interfaces.
[0059] Furthermore, the excitation mode of the excitation signal corresponding to each standard evoked brain activity template signal is determined as the excitation mode of the standard evoked brain activity template signal, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is taken as the decoding result.
[0060] The excitation signal corresponding to the standard evoked brain activity template signal refers to the excitation signal input into the steady-state visual evoked EEG unified excitation-response model when the standard evoked brain activity template signal is generated. That is, if the excitation signal A is input into the steady-state visual evoked EEG unified excitation-response model, and the result output by the steady-state visual evoked EEG unified excitation-response model is the standard evoked brain activity template signal B, then the excitation signal A has a corresponding relationship with the standard evoked brain activity template signal B. In this embodiment, the excitation mode of the excitation signal corresponding to each standard evoked brain activity template signal is determined as the excitation mode of the standard evoked brain activity template signal. That is to say, in this embodiment, the excitation mode of the excitation signal A is determined as the excitation mode of the standard evoked brain activity template signal B.
[0061] Exemplarily, if the excitation method includes excitation frequency and excitation phase, then the excitation frequency and excitation phase of the excitation signal corresponding to each standard induced brain activity template signal can be determined as the excitation frequency and excitation phase of the standard induced brain activity template signal.
[0062] In the subsequent SSVEP decoding process, the correlation between the actually collected visual evoked EEG signal and each standard evoked brain activity template signal can be calculated, and the target standard evoked brain activity template signal with the highest correlation with the visual evoked EEG can be determined from all standard evoked brain activity template signals, and the excitation mode of the target standard evoked brain activity template signal can be determined as the decoding result. If the excitation mode includes the excitation frequency and the excitation phase, then the excitation frequency and the excitation phase of the target standard evoked brain activity template signal can be determined as the decoding result.
[0063] In the above embodiments, multiple excitation signals with different excitation modes can be generated, and then each excitation signal is respectively input into a pre-trained steady-state visual evoked EEG unified excitation-response model to obtain a standard induced brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model. Among them, the steady-state visual evoked EEG unified excitation-response model is trained with the set sample excitation signal as the training sample and the sample EEG signal that responds to the sample excitation signal as the label. The excitation mode of the excitation signal corresponding to each standard induced brain activity template signal is determined as the excitation mode of the standard induced brain activity template signal. In the present application, it is only necessary to train to obtain the steady-state visual evoked EEG unified excitation-response model, and then the steady-state visual evoked EEG unified excitation-response model can be used to generate EEG signals corresponding to various excitation signals as standard induced brain activity template signals, so as to achieve the purpose of decoding EEG signals of different test individuals.
[0064] As an optional implementation, another embodiment of the present application discloses that the training process of the steady-state visual evoked EEG unified stimulus-response model in the above embodiment may specifically include the following steps:
[0065] Implement an SSVEP experiment with sample excitation signals with different excitation modes, record the sample excitation signals and the corresponding sample EEG signals during the experiment, determine the sample excitation signals as training samples, and the sample EEG signals corresponding to each sample excitation signal as training labels; divide the training samples into a training set and a test set according to a set ratio; use the training samples in the training set and the first training labels corresponding to the training samples in the training set to train a preset basic model to obtain an initial model; use the training samples in the test set and the second training labels corresponding to the training samples in the test set to verify the initial model, and if the prediction error of the initial model verification result is less than the set threshold, determine that the initial model is a steady-state visual evoked EEG unified excitation-response model.
[0066] In this embodiment, an SSVEP experiment with sample excitation signals having different excitation modes is implemented, the sample excitation signals and the corresponding sample EEG signals during the experiment are recorded, the sample excitation signals are determined as training samples, and the sample EEG signals corresponding to each sample excitation signal are training labels.
[0067] Then, the training samples can be divided into two parts according to the set ratio, namely a training set and a test set. Among them, the training set is used to train the steady-state visual evoked EEG unified stimulus-response model, and the test set is used to verify the steady-state visual evoked EEG unified stimulus-response model. The above-mentioned set ratio can be set according to actual conditions, and this embodiment does not limit it. For example, the ratio of samples in the training set and the test set can be set to 7:3.
[0068] The basic model adopts a nonlinear input-output dynamic model, such as the Volterra model, the NARX neural network model, the LSTM sequence-sequence model, etc.
[0069] Among them, the Volterra model was proposed by Italian mathematician Volterra in 1880. This method is a general form of Taylor expansion. The Voterra series theory is based on the idea of impulse response and represents the output of a dynamic nonlinear system as a high-dimensional convolution of the input and a high-order Volterra kernel. A large number of theoretical results show that the Volterra series is a general model of nonlinear dynamic characteristics and can describe any complex nonlinear process. The general form of the single-input single-output time-invariant Volterra series model can be expressed as:
[0070]
[0071] where y l (t) is the l-order subsystem of the Volterra model, g l (τ1,τ2,…,τ l ) is the l-th order Volterra kernel.
[0072] The corresponding discrete form of the model is:
[0073]
[0074] From the above formula, it can be seen that the system output is expressed as a polynomial form of the delayed input signal, and the model training process is to determine the Volterra kernels of each order. From the theory of nonlinear high-order frequency response function, it can be seen that when the input is a standard sinusoidal signal, the output may contain corresponding high-order harmonics, thereby realizing nonlinear dynamic mapping from input to output. For multi-input and multi-output systems, the Volterra kernel can contain cross kernels corresponding to different inputs.
[0075] The advantage of using the Volterra model is that it only contains the polynomial form of the input signal, has a simple structure, and its stability is easy to ensure, so that the model can generate a stable template response sequence under different excitation signals. Its disadvantage is that when describing complex systems, it requires a higher model order and more parameters.
[0076] In order to further improve the descriptive ability and concise model structure of the model, British scholar Professor Billiings proposed the nonlinear autoregressive moving average with input (NARMAX) model with output feedback in the 1980s. Without considering the noise model, the model degenerates into the NARX model with nonlinear autoregressive input. The general form of the NARX model is as follows:
[0077]
[0078] From the above formula, we can see that the NARX model describes the input-output relationship of the system as a nonlinear combination of input and output history. This model has been widely used in nonlinear system models in various fields.
[0079] In the 1990s, Chen et al. applied feedforward neural networks to describe nonlinear functions and proposed the NARX neural network model, such as Figure 2 As shown, the model has good descriptive ability while maintaining a simple model structure.
[0080] Compared with the Volterra model, the NARX neural network model has a more compact model structure and stronger description ability, and can describe the frequency division signal phenomenon of the input signal. The main problem is that the stability analysis of the model is more difficult, and the stability of the model under different input stimuli must be ensured during the training process.
[0081] In order to solve the long-term dependency problem of the model, Hochreiter et al. proposed a long short-term memory network (LSTM) with a state feedback mechanism in 1997. By introducing gate structures and long short-term memory units, the input at each moment is selectively memorized and forgotten, solving the gradient vanishing and gradient exploding problems of back propagation over time in RNN training, as well as the long-term dependency problem of training. The introduction of the LSTM principle is not repeated here.
[0082] The stimulus response model based on LSTM is equivalent to constructing a regression problem from the stimulus signal sequence to the output EEG sequence. Figure 3 As shown in the figure, a LSTM network usually includes the following units: input layer, LSTM layer, fully connected layer, Dropout layer, and regression output layer. The input layer is used to receive the stimulus signal, the LSTM layer aggregates the input time series, extracts abstract features, and matches the output signal through the fully connected layer. The introduction of the Dropout layer can effectively improve the generalization performance of the model.
[0083] Specifically, the above three stimulus-response models can be flexibly selected as needed. The process can be understood as a nonlinear dynamic filtering process of the input signal. The output signal after filtering can be considered as an approximation of the actual EEG output signal without noise information. In actual training, it is necessary to introduce training data at different input frequencies to ensure that the model can work stably in a sufficiently wide input frequency range.
[0084] During training, the training set and the first training labels corresponding to the training samples in the training set need to be input into the basic model, and the basic model is trained to obtain an initial model.
[0085] Specifically, the training samples in the training set can be input into the basic model to obtain the output result of the basic model, the output result of the basic model is compared with the first training label, and the performance of the basic model is evaluated based on the comparison result.
[0086] If the basic model is determined to meet the generalization performance requirements through comparison, the training is completed and the basic model is determined to be the initial model. If the basic model is determined to not meet the generalization performance requirements through comparison, the parameters and structure of the basic model need to be adjusted, and then the training samples in the training set are re-input into the basic model, and the performance of the basic model is evaluated by comparing the output results of the basic model with the first training label. If the basic model still does not meet the generalization performance requirements, the above process needs to be repeated until it is determined that the basic model meets the generalization performance requirements and the basic model is used as the initial model.
[0087] After the initial model is obtained, the training samples in the test set are input into the initial model to obtain the verification result of the output of the initial model, so as to verify the initial model based on the verification result and the second training label. The specific verification process is as follows:
[0088] The training samples in the test set are input into the initial model for verification to obtain the verification result output by the initial model; whether the similarity between the verification result and the second training label reaches a set value is detected; if it is detected that the similarity between the verification result and the second training label reaches a set value, the initial model is determined to be a steady-state visual evoked EEG unified stimulus-response model.
[0089] Specifically, the training samples in the test set are input into the initial model to obtain the verification result of the output of the initial model.
[0090] Then, the verification result and the second training label are compared, and the similarity between the verification result and the second training label is calculated. If the similarity is greater than the set value, it can be determined that the initial model can work normally, and the initial model is determined to be a steady-state visual evoked EEG unified stimulus-response model. If the similarity is less than the set value, it is necessary to adjust the parameters and structure of the initial model with the goal of improving the correlation between the output result of the initial model and the second training label, and then repeat the above verification process until the similarity between the verification result and the second training label is calculated to be greater than the set value, the training is completed, and the initial model is determined to be a steady-state visual evoked EEG unified stimulus-response model.
[0091] The above setting value can be set according to actual conditions and is not limited in this embodiment. For example, it can be set to 0.7.
[0092] In the above embodiments, the model is trained by setting a training set and a validation set, thereby effectively improving the reliability of the steady-state visual evoked EEG unified stimulus-response model.
[0093] Another embodiment of the present application provides a method for decoding an EEG signal, which can be executed by an electronic device, and the electronic device can be any device with data and instruction processing functions, such as a computer, an intelligent terminal, a server, etc. Figure 4 As shown, the method includes:
[0094] S401, calculating the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, and determining the target standard induced brain activity template signal with the highest correlation with the EEG signal from all the standard induced brain activity template signals.
[0095] The above-mentioned similarity includes at least the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal, and the brain activity that generates the EEG signal to be decoded includes at least one of EEG, near-infrared brain functional imaging, and functional magnetic resonance imaging.
[0096] Design the EEG data experiment, including using the standard SSVEP paradigm, and designing the paradigm parameters such as the number of classifications, excitation methods (frequency, phase and other encoding methods), and control instruction cycles according to the needs. Design the EEG data acquisition channel, sampling frequency, data length, etc. to meet the actual application requirements.
[0097] Obtain the EEG signal to be decoded. Calculate the correlation between the EEG signal to be decoded and each standard induced brain activity template signal, so as to determine the target standard induced brain activity template signal with the highest correlation with the EEG signal from all the standard induced brain activity template signals.
[0098] Specifically, the EEG signal to be decoded and all standard evoked brain activity template signals are subjected to correlation analysis channel by channel, the correlation coefficient of each channel is analyzed, the channels with significantly less than the average correlation coefficient are eliminated, and the correlation coefficients of the remaining channels are averaged to obtain the average correlation coefficient as the discrimination criterion. The average correlation coefficients of different standard evoked brain activity template signals are compared, and the standard evoked brain activity template signal with the largest correlation is selected as the target standard evoked brain activity template signal.
[0099] Among them, the generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
[0100] It should be noted that the specific generation process of the standard induced brain activity template signal can refer to the description of the above embodiment and will not be repeated here.
[0101] Specifically, the canonical correlation analysis (CCA) algorithm can be used to calculate the correlation or coherence between the EEG signal to be decoded and the standard evoked brain activity template signal, and decode the EEG signal triggered by the visual evoked potential.
[0102] The working principle of the CCA decoding model is as follows:
[0103] This method mainly analyzes SSVEP signals by calculating the typical correlation coefficient of two sets of signals, one of which is the recorded EEG signal to be decoded (such as scalp EEG signal) and the other is the standard induced brain activity template signal Y, and respectively looking for two linear combinations u=a T X and v = b T Y, so that the correlation value ρ(u,v) of the multidimensional variable after transformation is maximized.
[0104] The derivation steps are as follows:
[0105] The transformed correlation value ρ(u,v) is calculated as follows:
[0106]
[0107] Solving for a and b, there are two constraints: Var(u) = a T C XX a=1,Var(v)=b T C YY b = 1;
[0108] These two constraints maximize the canonical correlation ρ(u,v) and can be solved using the Lagrangian method.
[0109] The solution is to construct the Lagrange equation, which is derived as follows:
[0110]
[0111] After taking the derivative and setting it to 0, we get:
[0112]
[0113] According to a T C XX a=1,b T C YY b=1Simplify the above equation and write it in matrix form:
[0114]
[0115] make
[0116] The above formula can be written as: B -1 Aw=λw;
[0117] Next, we only need to obtain B -1 The maximum eigenvalue λ of A max , then ρ(u,v) and a and b can be found, and the above formula can be written as follows:
[0118]
[0119] First Find the eigenvalue λ 2 and eigenvector a, and then b can be obtained according to the previous formula. The obtained a and b are the weights that make u and v have the greatest correlation.
[0120] The reference signal Y used in the traditional CCA decoding method is in the following form:
[0121]
[0122] Where i is the number of stimulus targets, f i represents the stimulation frequency, k represents the number of harmonics in the reference signal, and N s Represents the number of sampling points. The human brain is a low-pass filter, and high-frequency signals are basically filtered out. Therefore, the harmonic number k is usually low, such as 2 or 3.
[0123] It should be noted that, unlike the traditional CCA decoding method which uses standard sine and cosine signals to generate output templates, the present invention uses a linear combination of model output standard induced brain activity template signals as a reference template to calculate the correlation coefficient.
[0124] S402, determining the excitation mode of the target standard-induced brain activity template signal as a decoding result.
[0125] The excitation mode of the target standard induced brain activity template signal is used as the decoding result. For example, if the excitation mode of the standard induced brain activity template signal includes an excitation frequency and an excitation phase, then the excitation frequency and the excitation phase of the target standard induced brain activity template signal can be determined as the decoding result.
[0126] In the actual brain-computer interface application process, the decoding result is used to generate the actual required control instructions, such as instruction selection or direction control, etc. The control instruction can be either a classification selection instruction or a hierarchical control instruction reflecting the size.
[0127] The steady-state visual evoked EEG unified stimulus-response model in the above embodiments can generate a stable standard evoked brain activity template signal output under different stimuli based on a small amount of training data. The standard evoked brain activity template signal is insensitive to noise; the extracted standard evoked brain activity template signal reflects the nonlinear dynamic combination of the input, which has greater flexibility than the linear spatial filtering method and is more in line with the nonlinear brain activity mechanism.
[0128] Moreover, the unified stimulus-response model of steady-state visual evoked EEG studies the unified model of brain activity under different stimuli, fully extracts the consistent description between the trial data of different stimuli, and can realize SSVEP decoding under the condition of few trials. The unified stimulus-response model of steady-state visual evoked EEG can also describe the transient response process of EEG activity. Based on this unified stimulus-response model of steady-state visual evoked EEG, the output signal automatically reflects the different initial phases of the stimulus, which is more suitable for multi-stimulus signal situations with richer frequency and phase information, ensuring a high decoding rate.
[0129] In addition, the steady-state visual evoked EEG unified stimulus-response model can simultaneously generate multiple standard evoked brain activity template signals, which can eliminate data anomalies caused by connection or interference in individual channel data during the actual experiment, and further improve the stability of the decoding results. The model structure is flexible and the output size is adjustable. The number of output template channels can be flexibly increased or decreased according to the actual device conditions, and it is suitable for different device settings.
[0130] In a specific embodiment, Figure 5As shown, an SSVEP experiment with sample excitation signals having different excitation modes can be implemented, the sample excitation signals and the corresponding sample EEG signals during the experiment are recorded, the sample excitation signals are determined as training samples, and the sample EEG signals corresponding to each sample excitation signal are training labels.
[0131] The training samples are divided into a training set and a test set, and the steady-state visual evoked EEG unified stimulus-response model is trained. The basic model of the steady-state visual evoked EEG unified stimulus-response model includes a nonlinear input-output dynamic model; the nonlinear input-output dynamic model includes a recursive neural network model, a Volterra sequence model or a NARMAX model.
[0132] After the training of the unified stimulus-response model of steady-state visual evoked EEG is completed, stimulus signals with different frequencies and phases are input into the unified stimulus-response model of steady-state visual evoked EEG to obtain the standard evoked brain activity template signal corresponding to each stimulus signal output by the unified stimulus-response model of steady-state visual evoked EEG for decoding.
[0133] Specifically, during decoding, the similarity between the EEG signal to be decoded and each standard induced brain activity template signal can be calculated, and the target standard induced brain activity template signal with the highest similarity to the EEG signal can be determined from all standard induced brain activity template signals, and the frequency and phase of the excitation signal corresponding to the target standard induced brain activity template signal can be determined as the decoding result.
[0134] In a specific embodiment, a 5-classification experiment with an interval of 1Hz from 8Hz to 12Hz is used. Data from 9 channels, PO6, O1, OZ, O2, PO5, PO3, POZ, PO4, and Pz, are used. Each input layer contains only a single excitation signal, the LSTM layer contains 200 neurons, the fully connected layer contains 100 neurons, and a dropout rate of 0.5 is set.
[0135] Figure 6 A set of actual response signals and standard evoked brain activity template signals under stimulation are given. Figure 6 In the figure, the light-colored lines are training data, that is, the actual response signal, and the dark-colored lines are template responses, that is, the standard evoked brain activity template signals. It can be seen from the figure that the standard evoked brain activity template signal is highly correlated with the actual response signal, and it well describes the transient response process when the input stimulus is switched. Therefore, the standard evoked brain activity template signal can be regarded as a standard response signal obtained by nonlinear filtering of the actual response signal, which describes the dynamic process related to the stimulus and filters out the influence of other irrelevant brain activities.
[0136] Table 1 is the preliminary decoding results. Table 1 shows the recognition effect in the other 5 groups of experiments (test sets, not involved in training) based on the 8-12 Hz continuous experimental data of Block 1 (training set) for model training.
[0137] Excitation frequency 8Hz 9Hz 10Hz 11Hz 12Hz Block1 8Hz 9Hz 10Hz 11Hz 12Hz Block2 8Hz 9Hz 10Hz 11Hz 12Hz Block3 8Hz 9Hz 10Hz 11Hz 12Hz Block4 8Hz 9Hz 11Hz 11Hz 12Hz Block5 8Hz 9Hz 10Hz 11Hz 10Hz Block6 8Hz 9Hz 10Hz 11Hz 12Hz
[0138] Table 1
[0139] The results in Table 1 show that the training model obtained through a set of experiments can reflect the general law of brain stimulus-response, and shows a good correlation with subsequent different groups of experiments. The accuracy of the test set after training based on a set of data is 28 / 30=93.3% (training set test set ratio 1:5), which is much higher than the SOTA level of 79.23% (training set test set ratio 2:8), which fully demonstrates the robustness of the method.
[0140] Corresponding to the above-mentioned method for generating a standard induced brain activity template signal, the present application embodiment also discloses a device for generating a standard induced brain activity template signal, see Figure 7 As shown, the device comprises:
[0141] The generating module 100 is used to generate a plurality of excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode;
[0142] The first determination module 110 is used to input each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, and obtain a standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, similarity calculation is performed between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal; in the decoding process, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result;
[0143] Among them, the steady-state visual evoked EEG unified stimulus-response model is obtained by training with the set sample stimulus signal as the training sample and the sample EEG signal responding to the sample stimulus signal as the label.
[0144] As an optional implementation method, another embodiment of the present application discloses that the excitation method of the above embodiment includes an excitation frequency and an excitation phase; the generation module 100, when generating excitation signals of multiple excitation combinations according to preset experimental requirements, is specifically used to: generate excitation signals of multiple excitation combinations according to preset experimental requirements; the excitation combination is a combination of an excitation frequency and an excitation phase.
[0145] As an optional implementation, another embodiment of the present application discloses that the standard evoked brain activity template signal generating device of the above embodiment further includes:
[0146] A recording module is used to implement SSVEP experiments with sample excitation signals having different excitation modes, record the sample excitation signals and the corresponding sample EEG signals during the experiment, determine the sample excitation signals as training samples, and the sample EEG signals corresponding to each sample excitation signal as training labels;
[0147] A training module is used to divide the training samples into a training set and a test set according to a set ratio;
[0148] Using the training samples in the training set and the first training labels corresponding to the training samples in the training set, the preset basic model is trained to obtain an initial model;
[0149] The initial model is verified using the training samples in the test set and the second training labels corresponding to the training samples in the test set. If the prediction error of the initial model verification result is less than the set threshold, the initial model is determined to be a steady-state visual evoked EEG unified stimulus-response model.
[0150] As an optional implementation, it is disclosed in another embodiment of the present application that the basic model of the above embodiment includes a nonlinear input-output dynamic model; the nonlinear input-output dynamic model includes a recursive neural network model, a Volterra sequence model or a NARMAX model.
[0151] As an optional implementation, another embodiment of the present application discloses that the training module of the above embodiment uses the training samples in the test set and the second training labels corresponding to the training samples in the test set to verify the initial model. If the prediction error of the initial model verification result is less than the set threshold, it is determined that the initial model is a steady-state visual evoked EEG unified stimulus-response model, which is specifically used for:
[0152] Input the training samples in the test set into the initial model for verification, and obtain the verification results output by the initial model;
[0153] Detect whether the similarity between the verification result and the second training label reaches a set value;
[0154] If it is detected that the similarity between the verification result and the second training label reaches a set value, the initial model is determined to be a steady-state visually evoked EEG unified stimulus-response model.
[0155] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0156] Corresponding to the above-mentioned method for decoding EEG signals, the present application also discloses a device for decoding EEG signals, see Figure 8 As shown, the device comprises:
[0157] The calculation module 200 is used to calculate the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, and determine the target standard induced brain activity template signal with the highest correlation with the EEG signal from all the standard induced brain activity template signals; the similarity includes the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal, and the brain activity that generates the EEG signal to be decoded includes at least one of EEG, near-infrared brain functional imaging, and functional magnetic resonance imaging;
[0158] A second determination module 210 is used to determine that the excitation mode of the target standard induced brain activity template signal is a decoding result;
[0159] Among them, the generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
[0160] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0161] The present invention also provides an electronic device for implementing the above method embodiment. Fig. 9 FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present invention. Fig. 9 As shown, the electronic device of this embodiment includes a processor 300 and a memory 310, and the processor 300 is connected to the memory 310. The processor 300 is used to call and execute the program stored in the memory 310; the memory 310 is used to store the program, and the program is at least used to execute the standard induced brain activity template signal generation method and / or the electroencephalogram signal decoding method in the above embodiments.
[0162] The present invention also provides a storage medium for implementing the above method embodiment. The storage medium stores computer program instructions, which, when executed by a processor, execute the standard evoked brain activity template signal generation method and / or EEG signal decoding method provided in the above embodiment.
[0163] Specifically, the specific working contents of each part of the above-mentioned electronic device, as well as the specific processing contents of the computer program on the storage medium when being executed by the processor, can be found in the contents of each embodiment of the above-mentioned standard induced brain activity template signal generation method and / or electroencephalogram signal decoding method, which will not be repeated here.
[0164] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0165] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0166] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0167] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0168] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0169] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0170] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0171] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0172] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for generating a standard induced brain activity template signal, characterized in that: include: According to the preset experimental requirements, multiple excitation signals are generated; wherein each excitation signal has a different excitation mode; Input each excitation signal into a pre-trained unified excitation-response model of steady-state visual evoked EEG, and obtain a standard evoked brain activity template signal corresponding to each excitation signal output by the unified excitation-response model of steady-state visual evoked EEG, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is taken as the decoding result; The steady-state visual evoked electroencephalogram unified stimulus-response model is obtained by training with a set sample stimulus signal as a training sample and a sample electroencephalogram signal responding to the sample stimulus signal as a label.
2. The method according to claim 1, characterized in that The excitation mode includes an excitation frequency and an excitation phase; and the multiple excitation signals are generated according to preset experimental requirements, including: According to preset experimental requirements, excitation signals of multiple excitation combinations are generated; the excitation combination is a combination of excitation frequency and excitation phase.
3. The method according to claim 1, characterized in that The training process of the steady-state visually evoked EEG unified stimulus-response model includes: Implementing SSVEP experiments with sample excitation signals having different excitation modes, recording the sample excitation signals and corresponding sample EEG signals during the experiment, determining the sample excitation signals as training samples, and the sample EEG signals corresponding to each sample excitation signal as training labels; Dividing the training samples into a training set and a test set according to a set ratio; Using the training samples in the training set and the first training labels corresponding to the training samples in the training set, training a preset basic model to obtain an initial model; The initial model is verified using the training samples in the test set and the second training labels corresponding to the training samples in the test set. If the prediction error of the initial model verification result is less than a set threshold, the initial model is determined to be the steady-state visual evoked EEG unified stimulus-response model.
4. The method according to claim 3, characterized in that The basic model includes a nonlinear input-output dynamic model; the nonlinear input-output dynamic model includes a recursive neural network model, a Volterra sequence model or a NARMAX model.
5. The method according to claim 3, characterized in that: The method of using the training samples in the test set and the second training labels corresponding to the training samples in the test set to verify the initial model, and if the prediction error of the initial model verification result is less than a set threshold, determining that the initial model is the steady-state visual evoked electroencephalogram unified stimulus-response model, includes: Inputting the training samples in the test set into the initial model for verification, and obtaining the verification result output by the initial model; Detecting whether the similarity between the verification result and the second training label reaches a set value; If it is detected that the similarity between the verification result and the second training label reaches a set value, the initial model is determined to be the steady-state visual evoked electroencephalogram unified stimulus-response model.
6. A device for generating a standard induced brain activity template signal, characterized in that: include: A generation module is used to generate multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; The first determination module inputs each excitation signal into a pre-trained steady-state visual evoked electroencephalogram unified excitation-response model, and obtains a standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked electroencephalogram unified excitation-response model, so that in the actual decoding process, similarity calculation is performed between the standard evoked brain activity template signal and the actually collected visual evoked electroencephalogram signal; in the decoding process, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; The steady-state visual evoked electroencephalogram unified stimulus-response model is obtained by training with a set sample stimulus signal as a training sample and a sample electroencephalogram signal responding to the sample stimulus signal as a label.
7. A method for decoding an electroencephalogram signal, characterized in that: include: Calculating the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, and determining the target standard induced brain activity template signal with the highest correlation with the EEG signal from all the standard induced brain activity template signals; the similarity includes the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal; Determining the excitation mode of the target standard-induced brain activity template signal as a decoding result; The generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
8. A device for decoding an electroencephalogram signal, characterized in that: include: A calculation module, used for calculating the similarity between the EEG signal to be decoded and each standard induced brain activity template signal, wherein the similarity includes the correlation or coherence between the EEG signal to be decoded and the standard induced brain activity template signal; A second determination module is used to determine that the excitation mode of the target standard induced brain activity template signal is a decoding result; The generation process of the standard evoked brain activity template signal includes: generating multiple excitation signals according to preset experimental requirements; wherein each excitation signal has a different excitation mode; inputting each excitation signal into a pre-trained steady-state visual evoked EEG unified excitation-response model, respectively, to obtain the standard evoked brain activity template signal corresponding to each excitation signal output by the steady-state visual evoked EEG unified excitation-response model, so that in the actual decoding process, by calculating the similarity between the standard evoked brain activity template signal and the actually collected visual evoked EEG signal, the excitation mode of the excitation signal corresponding to the standard evoked brain activity template signal with the highest similarity is used as the decoding result; wherein the steady-state visual evoked EEG unified excitation-response model is obtained by training with the set sample excitation signal as the training sample and the sample EEG signal responding to the sample excitation signal as the label.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the processor is connected to the memory: Wherein, the processor is used to call and execute the program stored in the memory; The memory is used to store the program, and the program is at least used to execute the standard induced brain activity template signal generation method described in any one of claims 1-5, and / or the electroencephalogram signal decoding method described in claim 7.
10. A storage medium, characterized in that: include: The storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method for generating a standard induced brain activity template signal as described in any one of claims 1 to 5, and / or the method for decoding an electroencephalogram signal as described in claim 7.
