Neural feedback training system based on visual P300 normal form and reinforcement learning

Through the neurofeedback system based on the visual P300 paradigm and reinforcement learning model, the limitations of the electroencephalogram decoding method in the existing technology are solved, efficient and short-cycle neurofeedback training is achieved, and the subject's concentration and brain function are significantly improved. .

CN118550404APending Publication Date: 2024-08-27ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410477332.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing neurofeedback system is limited by the EEG decoding method. The parameter categories obtained are fixed and there are many interference factors. It is difficult to obtain accurate EEG information. The feedback information is generated in a single way. The reliability of the feedback information is not high. It usually requires a long time. The training cycle is weak in targeting.

Method used

A neurofeedback training system based on the visual P300 paradigm and reinforcement learning model is used to generate stimulation parameters and feedback visualization modules through EEG signal collection, spectrum analysis and feature extraction, and reinforcement learning to output relevant stimulation parameters, improve subjects' concentration and improve brain function. Function.

Benefits of technology

It achieves a high-efficiency, short-cycle, personalized stimulation plan, significantly improves the subject's concentration and brain function, and shortens the training time to achieve the target concentration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550404A
    Figure CN118550404A
Patent Text Reader

Abstract

The invention discloses a neural feedback training system based on a visual P300 normal form and reinforcement learning, and the system comprises an electroencephalogram signal collection module which enables an electroencephalogram cap and an amplifier to be worn on the head of a subject, and collects an electroencephalogram signal of the subject under the P300-word spelling normal form; the spectrum analysis and feature extraction module is used for preprocessing the collected electroencephalogram signals and extracting P300 signals; the reinforcement learning stimulation parameter generation module is used for taking the acquired P300 amplitude data and the word spelling accuracy as parameters and inputting the parameters into a reinforcement learning Q-Learning model to generate the optimal parameters of the next round of stimulation; and the feedback visualization module is used for presenting the P300-word spelling task in front of the testee in a character display interface and taking a feedback parameter, namely the flicker frequency of the word spelling device, as the flicker frequency of the word, and through multiple rounds of training, compared with traditional feedback, the concentration degree of the testee is remarkably improved, and the time for reaching the target concentration degree is greatly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to neural rhythm regulation and medical device technology, and in particular to a neural feedback training system based on a visual P300 paradigm, which utilizes parameters obtained after processing collected electroencephalogram signals, and outputs relevant stimulation parameters with the help of a reinforcement learning model, so as to improve the concentration of subjects and improve brain function. Background Art

[0002] Neurofeedback technology uses biofeedback methods to collect brain signals from subjects through devices such as electroencephalogram, functional magnetic resonance imaging, and functional near-infrared spectroscopy, and presents them to the subjects visually or in other ways for the subjects to learn and adjust themselves, which may further affect the subjects' related cognitive functions and behaviors.

[0003] Neurofeedback methods can directly regulate specific brain functions and further enhance the relevant behavioral abilities of healthy people and improve the relevant symptoms (such as memory, attention, etc.) of patients with mental disorders.

[0004] In recent years, the effects of electroencephalogram (EEG)-based neurofeedback on brain activation and behavior have been widely studied.

[0005] Some scholars have designed a neurofeedback system by analyzing the data of each frequency band of EEG to achieve the purpose of "treating the symptoms and the root cause" of direct training on the brain nerves. For example, for stroke patients with damage to the relevant parts of the sensorimotor cortex, by analyzing the EEG collected from the damaged cortical area, the feedback system is used to generate relevant stimulation of disabled muscles or control orthotics to improve arm movement. Furthermore, for the rehabilitation training of autistic children, the neurofeedback system is used to improve their automatic control ability of the activation degree of the sensorimotor cortex, thereby improving the symptoms of autism.

[0006] As a non-invasive and safe method of brain health, neurofeedback training technology has been deeply integrated with multiple fields. Therefore, the neurofeedback system has higher practical application value and broader application prospects.

[0007] At present, the neurofeedback system is limited by the decoding method of EEG, the parameter categories obtained are fixed, there are many interference factors, and it is difficult to obtain accurate EEG information. At the same time, the feedback information is generated in a single way, the reliability of feedback information is not high, it usually requires a long training cycle, and the targeting is weak. Summary of the invention

[0008] The purpose of the present invention is to provide a neurofeedback training system based on the visual P300 paradigm, which uses the parameters obtained after processing the collected EEG signals, and outputs relevant stimulation parameters with the help of a reinforcement learning model to improve the subject's concentration and brain function.

[0009] To this end, the present invention provides a neural feedback training system based on visual P300 paradigm and reinforcement learning, comprising: an electroencephalogram signal acquisition module, which wears an electroencephalogram cap and an amplifier on the head of a subject to acquire the electroencephalogram signal of the subject under the P300-word spelling paradigm; a spectrum analysis and feature extraction module, which extracts the P300 signal generated in the electroencephalogram signal after preprocessing the acquired electroencephalogram signal, wherein the preprocessing includes removing useless electrodes, re-referencing, filtering, interpolation bad leads, independent component analysis, and removing eye movement components; a reinforcement learning stimulation parameter generation module, which is used to input the acquired P300 amplitude data and the word spelling accuracy rate as parameters into a reinforcement learning Q-Learning model to generate the best parameters for the next round of stimulation, namely, the word speller flickering frequency; and a feedback visualization module, which is used to present the P300-word spelling task in front of the subject in a character display interface, and receive the feedback parameter obtained in the reinforcement learning stimulation parameter generation module, namely, the word speller flickering frequency, as the flickering frequency of the next round of training, and the concentration of the subject is significantly improved after multiple rounds of training.

[0010] The system of the present invention can select the optimal feedback stimulation signal with the help of reinforcement learning, thereby generating a high-efficiency, short-cycle, personalized stimulation program, effectively improving the subject's concentration and improving brain function.

[0011] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0013] Figure 1 A diagram of a usage scenario of the neurofeedback training system provided by the present invention;

[0014] Figure 2 A structural diagram of the neurofeedback training system provided by the present invention;

[0015] Figure 3 A flow chart of the Q-table establishment phase in the neurofeedback training system provided by the present invention;

[0016] Figure 4 A flow chart of the concentration training phase in the neurofeedback training system provided by the present invention;

[0017] Figure 5 The P300 waveform diagram provided by the present invention;

[0018] Figure 6 The interface diagram of the P300-word spelling task provided by the present invention;

[0019] Figure 7 A system framework diagram provided by the present invention;

[0020] Figure 8 is an interference signal detected when ICA is run in an embodiment of the present invention;

[0021] Fig. 9 This is a marked EEG signal obtained in an embodiment of the present invention. Vertical lines of different colors are labels marked when different rows or columns flash.

[0022] Fig.10 A table of concentration measurement results of the same subject under the P300-NF system and the P300-RL-NF system provided in an embodiment of the present invention, wherein NF-Neural Feedback-neural feedback, RL-Reinforcement Learning-reinforcement learning;

[0023] Fig.11 A result table of training time required for the same subjects to reach target concentration under the P300-NF system and the P300-RL-NF system is provided for the embodiment of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] Combined with reference Figures 1 to 4 The neural feedback training system based on visual P300 paradigm and reinforcement learning of the present invention includes: an EEG signal acquisition module 100, a spectrum analysis and feature extraction module 200, a reinforcement learning stimulation parameter generation module 300, and a feedback visualization module 400.

[0026] The EEG signal acquisition module 100 is an EEG signal acquisition process based on the visual P300 paradigm.

[0027] The visual P300 paradigm is a type of ERP (Event Related Potential), which is an endogenous special evoked potential related to cognitive function. P300 is a positive wave that appears about 300ms after an event (such as auditory or visual stimulation). It is a fusion of delta (0.5-4Hz) brain waves and theta (4-7.5Hz) brain wave responses. The P300 waveform is as follows: Figure 5 As shown, the amplitude of P300 can be used to judge the subject's concentration. Within a certain range, the larger the P300 amplitude, the higher the subject's concentration.

[0028] In this training, each participant arrived at the laboratory, read the experimental summary carefully and signed the informed consent form for participating in the study. Then, the participant started a 15-minute training session to familiarize himself with the task. Finally, the EEG cap and amplifier were put on the subject's head, and the subject sat in a comfortable chair in front of the computer. The P300-word spelling task was presented on an 18-inch screen from a distance of about 60 cm. The screen height was adjustable, and the center of the screen was set to be flush with the participant's eyes.

[0029] The screen displays the following information: Figure 6 As shown, it is a character matrix with 6 rows and 6 columns. A row or a column of the character matrix is ​​randomly highlighted. Each row and column is highlighted once in one experiment, with a total of 12 highlight stimuli. The subjects focus their attention on the characters in the matrix to select each letter that makes up the word. When the row or column containing this character is highlighted, the subject responds to it, generates a P300 waveform, and counts it; when the row or column that does not contain this character is highlighted, the subject does not respond, does not generate a P300 waveform, and does not count it. The flicker frequency is a variable in this experiment. For the determination of the flicker frequency, see the reinforcement learning stimulus parameter generation module.

[0030] In the first stage (Q table formation stage), the P300 EEG signals of the subjects under the P300-word spelling paradigm are collected, and only the P300 EEG signals of the eight channels related to vision of each subject, Fz, Cz, Pz, Oz, P3, P4, PO7, and PO8, are retained. The P300 EEG signals of the eight channels of each subject are segmented, and each segment of the P300 EEG signal takes 0ms and 1000ms of each experiment to obtain the intercepted P300 EEG signal segment of the subject. In the first stage, the initial flickering frequency of the character matrix is ​​random, because the Q table is initialized with all 0s by default. As the Q table is gradually formed, the flickering frequency of the character matrix will tend to stabilize, and the subject's concentration will also increase accordingly, eventually reaching the target concentration or reaching the upper limit of the number of training times.

[0031] In the second stage (concentration training stage), the above experimental steps are repeated, namely: collect the P300 EEG signals of the subjects under the P300-word spelling paradigm, and only retain the P300 EEG signals of the eight channels related to vision of each subject, namely Fz, Cz, Pz, Oz, P3, P4, PO7, and PO8. The P300 EEG signals of the eight channels of each subject are segmented, and each segment of the P300 EEG signal takes 0ms and 1000ms of each experiment to obtain the intercepted P300 EEG signal segment of the subject. Different from the first stage, the flashing frequency of each round of characters in the second stage is obtained with the help of the Q table trained in the first stage. Compared with the first stage, the speed at which the subjects reach the target concentration will increase significantly.

[0032] The spectrum analysis and feature extraction module 200 extracts the P300 signal generated in the collected EEG signal after a series of preprocessing such as removing useless electrodes, re-referencing, filtering, interpolation, independent component analysis (ICA), and removing eye movement components.

[0033] In the process of collecting EEG data, the collected data will inevitably be subject to some interference, such as eye movement, head movement, electromyography interference, etc., but relatively clean data is required before extraction, so the most important step in the EEG data processing process is to preprocess the data.

[0034] The toolkit used in this stage is eeglab. First, the toolkit is used to downsample, filter and baseline correct the data. The processed data is as follows Figure 7 shown.

[0035] Then, it is manually determined whether there are electrodes with large impedance during the acquisition process, and bad conductors need to be interpolated, and the bad conductor data is replaced with nearby electrode data.

[0036] Since the signals collected by the EEG device will be interfered by signals such as electrooculography, electromyography, and electrocardiogram, but these signals are not what we need, we need to run the ICA algorithm to eliminate them. The data obtained after elimination is the final data for preprocessing. Figure 8 When running ICA, the algorithm detects interference signals and can select an artifact to remove.

[0037] When collecting P300 data, each row / column flicker is labeled. Since the P300 peak induced by a single shot is weak, it is necessary to use the characteristics of ERP time-locked rows to superimpose and average the flicker data of multiple targets. In preprocessing, only obvious interference signals are removed, but there will still be interference signals. However, due to the irregularity of noise, superimposing and averaging the data can greatly reduce interference.

[0038] Fig. 9 The vertical lines of different colors are labels for different rows or columns flashing, and the same S value indicates that the data segment is the flashing of the same row. Since P300 is a positive wave peak that appears around 300ms after stimulation, we generally only need to pay attention to the data in the period from 50ms before to 500ms after stimulation, and use erplab to extract these data segments.

[0039] When a target character is input, the display interface flashes y times in total, and each row / column can obtain y segments of data with a length of 550ms. The "Compute average ERPs" function of erplab is used to superimpose and average the data with the same label, that is, to calculate the average value. The calculated result is the P300 induced by this stimulation.

[0040] For a single character of a single word, the 8 selected electrode channels obtain a total of 8*2y P300 amplitudes. The 16y P300 amplitudes are accumulated and averaged to obtain the P300 amplitude of the character. Similarly, the P300 amplitudes of other characters in the word can be calculated. Furthermore, for the overall P300 amplitude of the word, the P300 amplitudes of each character of the word are accumulated and averaged to obtain the overall P300 amplitude of the word, where y is the number of flashing rounds.

[0041] For example, if the word A is spelled 5 times in succession, the number of flashing rounds is 5. In each flashing round, the row / column flashing of the same character generates a P300 amplitude respectively. When the row / column number that generates the P300 signal is obtained, the corresponding character position can be determined. By comparing the character determined by the P300 signal with the reference character on the word speller, it can be determined whether the character spelled by the subject is correct. The word spelling accuracy is the ratio of correctly spelled characters to all characters. For example, there are 5 characters in apple, and each character flashes 5 times, then there are actually 25 characters. If the number of characters spelled correctly by the subject is 23, then the word spelling accuracy is 23 / 25.

[0042] The reinforcement learning stimulation parameter generation module 300 is used to input the collected P300 amplitude data and word spelling accuracy as parameters into the reinforcement learning Q-Learning model, and generate the best parameter plan for the next round of stimulation through an online intelligent decision-making algorithm.

[0043] In the first stage, the Q-Learning algorithm is used to establish the Q table:

[0044] Define the P300-word speller action set A, including the discretized flashing frequencies: A{a1,a2,a3,...,a m}, where a m Indicates the blinking frequency of the P300 word speller, i.e. the action taken by the word speller.

[0045] Define the subject's P300 amplitude state set S, including the discretized P300 amplitude: S{s1,s2,s3,...,s n}, where s n It represents the P300 amplitude measured by the subject, that is, the state of the subject.

[0046] The threshold of P300 amplitude AMPL (amplitude) is defined as γ1<AMPL<γ2, that is, when the P300 amplitude AMPL is in this interval, it indicates that the subject's current concentration is at a normal level.

[0047] The threshold of word spelling accuracy CORRECT is defined as γ3, that is, when the word spelling accuracy CORRECT>γ3, it indicates that the subject's current concentration is at a normal level.

[0048] Define the immediate reward function R:

[0049]

[0050] Wherein θ1 is the first custom weight, θ2 is the second custom weight, and θ3 is the third custom weight, satisfying θ1+θ2+θ3=1.

[0051] The basic principle of the Q-Learning algorithm is as follows:

[0052]

[0053] State-action-value function Q new (s t ,a t ) means in state s t Next, take action a according to the strategy t The expected return after Q new (s t ,a t ) and Q old (s t ,a t ) is the Q table (s t ,a t ) corresponds to the updated and updated state action values, α represents the learning rate, R t represents the immediate reward, γ is the discount factor, Q(s t+1 ,a′) indicates that the P300 amplitude is s t+1 The value of taking action a′, a′∈A, where A is the set of actions for the P300-word speller, s t+1 It is the next P300 amplitude state.

[0054] The ε-greedy strategy is used to train and update the Q table, where ε is the greedy probability. Under the ε-greedy strategy, there is a probability of 1-ε to select the action with the largest Q value, and there is a probability of ε to select randomly, that is:

[0055]

[0056] Where x is the exploration degree.

[0057] This strategy enables the subjects to explore a large number of unknown states and actions in the early stages of learning, and gradually reduce the exploration rate to increase the possibility of using the learned knowledge. This can balance the needs of exploration and utilization and continuously optimize the learning and convergence process of the strategy.

[0058] According to the state action value function, it is continuously iterated, and the optimal strategy π is obtained when the maximum number of iterations is reached. * (s) = argmax a′∈A Q * (s,a), where Q * (s,a) is the optimal value of taking action a in state s.

[0059] like Figure 3 As shown, the Q table generation process is as follows:

[0060] Initialization, the Q table is initialized to all 0s by default;

[0061] Then, the flashing frequency f of the word in this round is obtained, and the subject looks at the word speller interface and "spells" a word. Next, the P300 signal is extracted and the average amplitude AMPL is calculated. Then, the character combination of "spelling" is calculated according to the time when the P300 amplitude appears, and the spelling accuracy CORRECT is calculated. The timely reward R is calculated based on the P300 amplitude AMPL and the spelling accuracy CORRECT, and the corresponding row in the Q table is found. The action to be executed is selected according to the ε-greedy strategy (that is, the next round of flashing frequency f is selected), the corresponding Q value in the Q table is updated, and the next round of loop is entered until the Q table is filled.

[0062] In the second stage, the subjects entered the concentration training stage, such as Figure 4 As shown, the process is as follows:

[0063] Initialize and import the previously generated Q table;

[0064] Then, according to the collected P300 amplitude L, if L is in the Q table, the action (i.e., the next round of flickering frequency) is selected according to the optimal strategy π*(s); if the P300 amplitude L is not in the Q table, the action a corresponding to the state s closest to L in the Q table is taken as the current action, and L is counted into the Q table to update the Q table.

[0065] The feedback visualization module 400 uses the feedback parameter obtained in the reinforcement learning module, that is, the flashing frequency of the word speller, as the flashing frequency of the next round of training, and increases or decreases the difficulty of word spelling in a targeted manner according to the subject's current concentration. After multiple rounds of training, the purpose of improving concentration and brain function is achieved.

[0066] A control experiment was conducted using a neurofeedback system based on a conventional visual P300 paradigm as a control group and a neurofeedback system based on a visual P300 paradigm and reinforcement learning designed by the present invention. The systems were respectively implemented on the same group of subjects to compare the effects of improving concentration.

[0067] The method used to quantify concentration here is the Integrated Visual and Auditory Continuous Performance Test (IVA-CPT). The IVA-CPT is a tool for testing the subject's sustained attention. The initial test includes a series of auditory and visual stimuli arranged in a pseudo-random manner (a total of 500 trials), after which the subjects are asked to find the target they hear or see. The full test takes about 40 minutes.

[0068] Considering the fatigue factor of the subjects, this study selected a part of them to test the subjects. The subjects will fill out a paper quality scale as required under the guidance of the instructor. The test is a real-time task, including repeated auditory and visual stimulation. During the test, the subjects will observe a series of graphics and texts on the scale and listen to a short article containing implicit information. Afterwards, the participants will be asked to provide relevant information and answer questions on the scale.

[0069] Fig.10 The table shows the concentration measurement results of the two groups of subjects, with a full score of 10. From the table, it can be seen that the average concentration of the subjects trained under the conventional visual P300 paradigm neurofeedback system is 5.34±0.69, while the average concentration of the subjects trained under the neurofeedback system based on the visual P300 paradigm and reinforcement learning is 6.51±0.70. It is obvious that the system proposed in the present invention has a significant improvement in improving the concentration of the subjects.

[0070] Fig.11 The table shows the training time required for the two groups of subjects to reach the target concentration. From the table, it can be concluded that the time for the subjects trained under the conventional visual P300 paradigm neurofeedback system to reach the target concentration is 42.64±3.29 minutes, while the time for the subjects trained under the neurofeedback system based on the visual P300 paradigm and reinforcement learning to reach the target concentration is 17.98±2.94 minutes, which shows that the system proposed by the present invention can effectively accelerate the speed of improving the concentration of the subjects.

[0071] exist Fig.10 and Fig.11 In the code, the meanings are as follows: NF-Neural Feedback, RL-Reinforcement Learning.

[0072] If the above functions of the present invention are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.

[0073] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A neurofeedback training system based on the visual P300 paradigm and reinforcement learning, It is characterized in that include: The EEG signal acquisition module is used to wear the EEG cap and amplifier on the subject's head to collect the subject's EEG signal under the P300-word spelling paradigm; The spectrum analysis and feature extraction module extracts the P300 signal generated in the EEG signal after preprocessing the collected EEG signal. The preprocessing includes removing useless electrodes, re-referencing, filtering, interpolation, independent component analysis, and removing eye movement components. The reinforcement learning stimulation parameter generation module is used to input the collected P300 amplitude data and word spelling accuracy as parameters into the reinforcement learning Q-Learning model to generate the best parameters for the next round of stimulation, namely, the flashing frequency of the word speller; The feedback visualization module is used to present the P300-word spelling task in front of the subjects in a character display interface, and receive the feedback parameter obtained in the reinforcement learning stimulus parameter generation module - the flashing frequency of the word speller, as the flashing frequency of the next round of training. After multiple rounds of training, the subjects' concentration has been significantly improved.

2. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that The EEG signals of the channels related to vision are retained in the EEG signal acquisition module, and the EEG signals of each retained channel are segmented to obtain EEG signal segments of 0ms-1000ms.

3. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that In the reinforcement learning stimulation parameter generation module, the EEG signal preprocessing process is as follows: S11. Use the eeglab toolkit to downsample, filter and baseline correct the data; S23, manually judging whether an electrode with large impedance appears during the acquisition process, if so, interpolation of bad conductors is required, and replacing the bad conductor data with the data of nearby electrodes; S25, running ICA to remove the electrooculogram, electromyography and electrocardiogram signals to obtain the final data.

4. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that When collecting P300 data, each row / column flash was labeled, and the erplab toolkit was used to extract data from the time period from 50 ms before to 500 ms after the stimulus.

5. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that For a single character of a single word, the selected 8 electrode channels obtain a total of 8*2y P300 amplitudes. The 8y P300 amplitudes are added and averaged to get the P300 amplitude of the character. The P300 amplitudes of each character in the word are added and averaged to get the overall P300 amplitude of the word. y is the number of rounds, and a single character in the word is repeated for y rounds.

6. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that In the reinforcement learning stimulus parameter generation module, the Q-Learning algorithm is used to establish the Q table: Define the P300-word speller action set A, including the discretized flashing frequency: A{a 1 ,a 2 ,a 3 ,...,a m }, where a m represents the flashing frequency of the P300 word speller, i.e., the action taken by the word speller; Define the subject's P300 amplitude state set S, including the discretized P300 amplitude: S{s 1 ,s 2 ,s 3 ,...,s n }, where s n It represents the P300 amplitude measured by the subject, that is, the state of the subject; Define the threshold of P300 amplitude AMPL (amplitude) as γ 1 <AMPL<γ 2 , that is, when the P300 amplitude AMPL is in this range, it means that the subject's current concentration is at a normal level; Define the threshold of word spelling accuracy CORRECT as γ 3 , that is, when the word spelling accuracy CORRECT>γ 3 When , it means that the subject's current concentration is at a normal level; Define the immediate reward function R; Among them, the ε-greedy strategy is used to train and update the Q table, and ε is the greedy probability.

7. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 5, It is characterized in that According to the collected P300 amplitude L, if L is in the Q table, then according to the optimal strategy π * (s) Select the next round of flickering frequency; if the P300 amplitude L is not in the Q table, the strategy π(s) corresponding to the s closest to L in the Q table is taken as the current action, and L is counted into the Q table to update the Q table.

8. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 5, It is characterized in that The instant reward function R: Where θ 1 is the first custom weight, θ 2 is the second custom weight, θ 3 is the third custom weight, satisfying θ 1 +θ 2 +θ 3 =1.

9. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 5, It is characterized in that Under the ε-greedy strategy, there is a probability of 1-ε to choose the action with the largest Q value, and there is a probability of ε to choose randomly, that is: Where x is the exploration degree.

10. The neurofeedback training system based on visual P300 paradigm and reinforcement learning according to claim 1, It is characterized in that The Q table is initialized to all 0s by default. When the Q table is trained and updated, the subject traverses each flicker frequency and updates the Q value of the Q table. When the subject is conducting concentration training, the flicker frequency corresponding to the maximum Q value is used as the flicker frequency of the next round based on the current P300 amplitude of the subject and the already filled Q table.