An adaptive neurofeedback training system and method based on a pre-game brain electrical state space

By constructing a method for determining the characteristics of motion readiness state and class state, the problem of discontinuous feedback control and parameter updates in the prior art is solved, and the effective distinction between motion readiness state and class state and continuous training are realized.

CN123158331APending Publication Date: 2026-11-24INNER MONGOLIA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611393321.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing motor imagery neurofeedback schemes lack a clear sequential entry relationship when signal quality changes, the motor readiness state deviates from the training reference range, or the EEG state cannot be effectively distinguished from non-target motor categories. This leads to discontinuous feedback control and parameter updates, affecting training effectiveness.

Method used

By acquiring multi-channel EEG signals and event markers, we construct motor readiness state features and motor category state features, generate signal quality assessment results, and compare them with the readiness state reference interval and the target motor category center, respectively. This establishes a sequential control relationship between signal quality, readiness state, and category state, ensuring the continuity of parameter update eligibility and feedback control.

Benefits of technology

It effectively distinguishes between the exercise preparation state and the exercise category state, reduces the number of low-quality EEG trials or trials with unsuitable preparation states that directly enter positive category feedback, and ensures that the state reference parameters of the next trial remain continuously consistent with the previous trial, thereby improving training effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158331A_ABST
    Figure CN123158331A_ABST
Patent Text Reader

Abstract

This invention relates to the fields of electroencephalogram (EEG) signal processing and neurofeedback control, specifically to an adaptive neurofeedback training system and method based on the EEG state space during the motor preparation phase. The method acquires multi-channel EEG signals and event markers, forms a preparation phase window through event locking, extracts motor preparation state features and motor category state features, and constructs a multi-dimensional EEG state vector. The motor preparation state features are compared with a preparation state reference interval, and a category state determination result is formed based on the distance between the state vector and the target motor category center and non-target motor category centers. Neurofeedback and parameter update qualifications are generated according to the order of signal quality, preparation state, and category state, and the target motor category center and preparation state reference interval are updated accordingly for use in the next trial. This invention creates a continuous closed loop between feedback determination and state reference update, reducing the occurrence of abnormal trials entering positive feedback and parameter updates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of electroencephalogram (EEG) signal processing, brain-computer interface, and neurofeedback control technology, and particularly to an adaptive neurofeedback training system and method based on the EEG state space during the motor preparation phase. Background Technology

[0002] In the field of EEG neurofeedback and motor imagery brain-computer interface technology, existing solutions typically collect multi-channel EEG signals during motor imagery tasks, extract corresponding time periods based on task prompts or execution events, and extract sensorimotor rhythms, event-related desynchronization, frequency band power, or spatial distribution characteristics. Then, through threshold comparison, classification models, or classification probabilities, a motor state or motor category determination result is formed, and the determination result is mapped to visual, auditory, tactile, or virtual object motor feedback. Some solutions also combine individual baselines, signal quality detection, or historical training trials to adjust feedback conditions and model parameters.

[0003] Existing motor imagery neurofeedback schemes mostly use the degree of inhibition of a single frequency band, the result of motor category classification, or the parallel thresholds of multiple indicators as the basis for feedback. The motor readiness state is usually used as an input feature for motor intention recognition or category classification, and there is no state judgment relationship with the motor category state that has different control effects. When the quality of EEG signal changes, the motor readiness state deviates from the training reference range, or the current EEG state cannot be effectively distinguished from non-target motor categories, there is no clear sequential relationship between multiple judgment results. This can easily lead to situations where the readiness state has not yet met the feedback conditions but the category result has already entered the positive feedback, or where abnormal signal quality trials are still used in subsequent feedback processing.

[0004] On the other hand, existing adaptive neural feedback schemes typically select trials and adjust classification models or individual parameters based on classification accuracy, classification probability, historical training performance, or training data within a fixed time range. There is a lack of continuous eligibility constraints between the feedback judgment of the current trial and the subsequent update of state reference parameters. When trials with insufficient preparation, unclear category status, or abnormal signal quality participate in subsequent parameter adjustments, the reference status of the target motion category and the individual's preparation status are easily affected by non-target state data. Subsequent trials continue to make state judgments based on the changed reference parameters, making it difficult to form a consistent control link between the current feedback and the state reference of the next trial.

[0005] In the joint processing of signal quality, motor readiness state, and motor category state in motor imagery neurofeedback training, existing technologies still suffer from insufficient connection between the state determination sequence, feedback branches, and subsequent parameter updates. Therefore, it is necessary to address the issue of how to form a continuous determination between signal quality, readiness state, and category state and connect it with parameter updates, focusing on feedback control of the current trial's EEG state and state reference update for the next trial. Summary of the Invention

[0006] To address the aforementioned technical problems, this invention provides an adaptive neurofeedback training method based on the EEG state space during the motor preparation phase, comprising: S100: Acquire multi-channel EEG signals and event markers; perform event locking based on the event markers to form a preparation stage window; extract motion preparation state features and motion category state features from the window, construct a multi-dimensional EEG state vector, and generate signal quality judgment results; S200: Compare the motor preparation state features with the preparation state reference interval to generate a preparation state determination result; generate a category state determination result based on the distance between the multidimensional EEG state vector and the target motor category center and the non-target motor category center. S300. Feedback control is performed based on the signal quality judgment result: when the condition is not met, a signal quality prompt is generated and the parameter update qualification is cancelled; when the condition is met, feedback control continues based on the preparation state judgment result: when the preparation state is not in the preparation state reference range, preparation state adjustment feedback is generated; when the preparation state reference range is in the preparation state reference range, positive category feedback or category correction feedback is generated according to the category state judgment result; positive category feedback generates parameter update qualification. S400 and output S300 correspond to neural feedback; when qualified for parameter update, the target motion category center and the preparation state reference interval are updated using the multidimensional EEG state vector, and the update result is used for the next trial S200.

[0007] Furthermore, the event markers include preparation prompt events and execution instruction events; the preparation prompt events and execution instruction events are used for event locking, and the multi-channel EEG signals between the preparation prompt events and execution instruction events are divided into early preparation windows, late preparation windows, and near execution windows in chronological order.

[0008] Furthermore, the motor readiness state features include sensorimotor rhythm inhibition intensity and readiness maintenance features; the Alpha / Mu band ERD of the early readiness window, late readiness window, and adjacent execution window are calculated respectively, and the Alpha / Mu band ERD of the late readiness window and adjacent execution window are used as the corresponding sensorimotor rhythm inhibition intensity, and the readiness maintenance features are generated based on the ERD difference between the late readiness window and the early readiness window, and the ERD difference between the adjacent execution window and the early readiness window.

[0009] Furthermore, the motion preparation state features include Beta band preparation to execution transition features; the cumulative suppression area is generated based on the Beta band ERD of the adjacent execution window, the transition slope is generated based on the Beta band ERD before and after the execution command event, and the latency of the Beta band power trough relative to the execution command event is recorded.

[0010] Furthermore, the movement category state features include spatial distribution features, lateralization features, and category distance features; the features are arranged in a predetermined order according to the movement preparation state features and movement category state features to form the multidimensional EEG state vector.

[0011] Furthermore, the target motion category center is established by the multidimensional EEG state vectors of multiple initial calibration trials or multiple historical valid trials of the target motion category, and the non-target motion category center is established by the multidimensional EEG state vectors of multiple initial calibration trials or multiple historical valid trials of the non-target motion category; the distance between the multidimensional EEG state vectors and the two motion category centers is calculated using Euclidean distance, and the difference between the two distances is used to generate the category state determination result.

[0012] Furthermore, the preparation state reference interval is initialized by population reference distribution parameters; the population reference distribution parameters include mean, standard deviation, median, interquartile range, and percentile; after obtaining multiple valid trials for individuals, the preparation state reference interval is corrected based on the mean and standard deviation of the valid trials for each individual.

[0013] Furthermore, the signal quality judgment result is generated based on the channel status, impedance, and artifact detection results of multiple EEG channels; if there is an EEG channel with impedance exceeding a preset threshold or the artifact detection result exceeds a preset proportion, the signal quality judgment result is deemed unsatisfactory.

[0014] Furthermore, after generating the parameter update eligibility, the target motion category center is updated by exponential moving average based on the target motion category center before the update, the multidimensional EEG state vector of the current trial, and the update coefficient, and the preparation state reference interval is updated based on the mean and standard deviation of multiple recent valid trials; when the deviation of the updated target motion category center or preparation state reference interval from the previous update exceeds the upper limit of the update amplitude, the update is restricted according to the upper limit of the update amplitude.

[0015] This invention also provides an adaptive neurofeedback training system based on the EEG state space during the motor preparation phase, comprising: The EEG and event input module is used to acquire multi-channel EEG signals and event markers, and output the multi-channel EEG signals and event markers. The state construction module, connected to the EEG and event input module, is used to lock the multi-channel EEG signal according to the event marker to form a preparation stage window; extract the motor preparation state features and motor category state features from the preparation stage window, construct a multi-dimensional EEG state vector and generate a signal quality judgment result. The state reference and determination module, connected to the state construction module, is used to compare the motion preparation state features with the preparation state reference interval to generate a preparation state determination result; and to generate a category state determination result based on the distance between the multidimensional EEG state vector and the target motion category center and the non-target motion category center. The feedback control module, connected to the state construction module and the state reference and judgment module, is used to perform feedback control based on the signal quality judgment result. When the signal quality judgment result does not meet the conditions, it generates a signal quality prompt and cancels the parameter update qualification. When the signal quality judgment result meets the conditions, it continues feedback control based on the preparation state judgment result. When the preparation state judgment result is not in the preparation state reference range, it generates preparation state adjustment feedback. When the preparation state judgment result is in the preparation state reference range, it generates positive category feedback or category correction feedback based on the category state judgment result. The positive category feedback corresponds to the parameter update qualification. The feedback output module, connected to the feedback control module, is used to output corresponding neural feedback based on the signal quality prompt, preparation state adjustment feedback, positive category feedback, or category correction feedback. The parameter update module, connected to the feedback control module, the state construction module, and the state reference and determination module, is used to update the target motion category center and the preparation state reference interval using the multidimensional EEG state vector when it is eligible to update the parameters, and to transmit the updated target motion category center and preparation state reference interval to the state reference and determination module as input for the next trial to perform preparation state comparison and category state determination.

[0016] The key innovations of this invention include: (1) Set the motor preparation state and motor category state in the same current trial as independent reference judgment objects. The motor preparation state features are compared with the preparation state reference interval to form the preparation state judgment result. The multidimensional EEG state vector is compared with the target motor category center and the non-target motor category center to form the category state judgment result. The two judgment results represent the motor preparation state and the motor category state respectively.

[0017] (2) Set the motor preparation state and motor category state in the same current trial as independent reference judgment objects. The motor preparation state features are compared with the preparation state reference interval to form the preparation state judgment result. The multidimensional EEG state vector is compared with the target motor category center and the non-target motor category center to form the category state judgment result. The two judgment results represent the motor preparation state and the motor category state respectively.

[0018] (3) Establish the sequential control relationship between the signal quality judgment result, the preparation state judgment result and the category state judgment result. The signal quality judgment result controls whether the current trial continues to enter the preparation state feedback, and the preparation state judgment result controls whether the category state enters the category feedback. After the prerequisite conditions are met, the category state judgment result selects positive category feedback or category correction feedback, and the positive category feedback forms the parameter update qualification.

[0019] The following are its main beneficial effects: (1) By using the reference interval of the preparation state and the center of the movement category to determine the preparation state and the movement category state respectively, it is possible to distinguish whether the preparation level is within the training reference range and whether the current EEG state has the specificity of the target movement category, thereby reducing the situation where non-target or non-specific EEG states are taken as the target movement category state simply because of the enhanced inhibition of sensorimotor rhythm.

[0020] (2) By controlling the sequence between signal quality, preparation state and category state, the trial that does not meet the conditions is stopped from entering the subsequent effective feedback, and the trial that deviates from the reference range is allowed to enter the preparation state adjustment feedback. Only after the preceding conditions are met is the category feedback selected according to the category state, thereby reducing the situation where low-quality EEG trials or trials with unsuitable preparation states directly enter the positive category feedback.

[0021] (3) By associating the parameter update eligibility with the feedback control result of the current trial, and only using the multidimensional EEG state vector with parameter update eligibility to update the target motion category center and the preparation state reference interval, the participation of trials with abnormal signal quality, deviation of preparation state or category state that do not meet the conditions in subsequent state reference parameter updates can be reduced, so that the state reference parameters called in the next trial will maintain a continuous correspondence with the effective feedback state of the previous trial. Attached Figure Description

[0022] Figure 1 A flowchart illustrating an adaptive neurofeedback training method based on the EEG state space during the exercise preparation phase, provided as an embodiment of this application; Figure 2 This is a structural block diagram of an adaptive neurofeedback training system based on the EEG state space during the exercise preparation phase, provided as an embodiment of this application. Detailed Implementation

[0023] Example 1: Refer to Figure 1 This is a flowchart illustrating an adaptive neurofeedback training method based on the EEG state space during the exercise preparation phase, provided by an embodiment of the present invention. The flowchart may include at least steps S100-S400: S100: Acquire multi-channel EEG signals and event markers; perform event locking based on the event markers to form a preparation stage window; extract motion preparation state features and motion category state features from the window, construct a multi-dimensional EEG state vector, and generate signal quality judgment results; S200: Compare the motor preparation state features with the preparation state reference interval to generate a preparation state determination result; generate a category state determination result based on the distance between the multidimensional EEG state vector and the target motor category center and the non-target motor category center. S300. Feedback control is performed based on the signal quality judgment result: when the condition is not met, a signal quality prompt is generated and the parameter update qualification is cancelled; when the condition is met, feedback control continues based on the preparation state judgment result: when the preparation state is not in the preparation state reference range, preparation state adjustment feedback is generated; when the preparation state reference range is in the preparation state reference range, positive category feedback or category correction feedback is generated according to the category state judgment result; positive category feedback generates parameter update qualification. S400 and output S300 correspond to neural feedback; when qualified for parameter update, the target motion category center and the preparation state reference interval are updated using the multidimensional EEG state vector, and the update result is used for the next trial S200.

[0024] S100: Acquire multi-channel EEG signals and event markers, form a multi-dimensional EEG state vector, and generate signal quality assessment results: In this embodiment, the neurofeedback training system consists of an EEG and event input module, a state construction module, a state reference and judgment module, a feedback control module, a feedback output module, and a parameter update module operating in coordination. The EEG and event input module communicates with the multi-channel EEG acquisition device and the task program. Each training trial runs sequentially through the baseline period, preparation prompt event, motor preparation period, execution command event, and execution period. After the task program issues a preparation prompt, it begins recording the motor preparation process for this trial and sends the time stamps corresponding to the preparation prompt event and the execution command event, along with continuous EEG signals, to the state construction module. For left and right hand, hand, and foot motor imagery training, the EEG acquisition channels cover the sensorimotor areas corresponding to the corresponding motor categories. When using the spatial distribution characteristics of the frontal lobe and central area, the EEG channels of the corresponding areas are recorded simultaneously. The EEG acquisition channel settings remain consistent within the same training phase, ensuring that the initial calibration trial, the current trial, and historical valid trials use the same spatial sampling aperture.

[0025] Event markers are transmitted using a shared time base between the task program and EEG data. After receiving the preparation prompt event for the current trial, the state construction module first locates the motor preparation phase from the continuous EEG signals based on the event's timestamp, and then verifies the end of the preparation phase based on the execution command event. In implementations using independent task programs and EEG acquisition programs, event markers are transmitted via Lab Streaming Layer (LSL) or WebSocket communication interface. The state construction module locks the event according to the received event timestamp, without substituting the actual occurrence time of the event for the delay in the arrival of event data at the processing module. If the current trial lacks a preparation prompt event or an execution command event, or if the temporal relationship between the two events is inconsistent with the current task configuration, the trial will not enter the normal preparation phase window for extraction. The state construction module retains the current EEG acquisition results and sets the current signal quality judgment result to "unsatisfied," causing subsequent feedback control to switch to the signal quality prompt branch.

[0026] After event locking is completed, the state construction module divides the preparation prompt event and the execution command event into an early preparation window, a late preparation window, and a near-execution window. In one implementation, with the preparation prompt event as 0 s, the early preparation window is 0–1.5 s, the late preparation window is 1.5–2.5 s, and the near-execution window is 2.5–3.0 s. When the execution command event is 3.0 s after the preparation prompt event, with the execution command event as 0 s, the three windows correspond to 3.0–1.5 s, 1.5–0.5 s, and 0.5–0 s before the execution command, respectively. When the training task uses different preparation durations, the state construction module adjusts the window boundaries according to the start and end times of the preparation period saved in the task program. However, the early preparation window is located before the late preparation window, the late preparation window is located before the near-execution window, and the near-execution window is adjacent to the execution command event. After this processing, each window corresponds to a fixed temporal position in the motion preparation process, and its physiological stage meaning is not changed due to changes in the starting point of a single data capture.

[0027] For the current trial entering the normal window extraction, the state construction module obtains the EEG power within each preparation stage window using the same filtering and frequency band power calculation caliber as the initial calibration trial. When the sensorimotor rhythm uses the Alpha / Mu band, in one implementation, the frequency range is 8–13 Hz, and the average power of the corresponding frequency band during the current trial's baseline period is used as the benchmark. The change in frequency band power relative to the baseline power at a certain moment is expressed as a logarithmic power ratio, specifically ERD(t) = 10log10[P(t) / Pbase], where P(t) represents the frequency band power at time t during the task period, and Pbase represents the average frequency band power during the current trial's baseline period. When using this notation caliber, a decrease in the value indicates enhanced suppression of the frequency band power relative to the baseline. When the system internally uses positive suppression intensity, the above logarithmic power ratio is reversed, and the same sign direction is used for each trial, reference interval, and category center to avoid comparing the current state with historical references using opposite directions.

[0028] The characteristics of the motion readiness state are extracted from the changes between different readiness stages, rather than just reading the power value of a single window. The state construction module calculates the window average value of the Alpha / Mu band ERD in the early readiness window, late readiness window, and near execution window, respectively. The Alpha / Mu band ERD of the late readiness window and the near execution window are used as the corresponding sensorimotor rhythm inhibition intensity. The readiness maintenance characteristics are represented by the ERD difference between the late readiness window and the early readiness window, and the ERD difference between the near execution window and the early readiness window, thereby preserving the direction of change of the motion readiness state from the early stage to the pre-execution stage.

[0029] In the implementation of the Beta band preparation-to-execution transition feature, the Beta band is set to 13-30 Hz. The state construction module calculates the cumulative suppression area relative to the baseline for the Beta band ERD curve within the adjacent execution window. For trials where data acquisition has been completed before and after the execution command event, the Beta band ERD curve is linearly fitted within the transition window containing the execution command event. The fitting slope represents the transition change from preparation to execution, and the latency of the Beta band power curve reaching the trough within the search window relative to the execution command event is recorded.

[0030] Specifically, the Beta transition slope and trough latency of EEG data following the execution command event are not involved in feedback control completed before the execution command event. If the training mode requires real-time prompts during the motor preparation period, the state construction module only uses the Alpha / Mu preparation state features and Beta near-execution window features acquired before the execution command event to form the state input at that point in time. The Beta data after the execution command event is supplemented and calculated after the end of the current trial execution phase, and participates in the state evaluation after the end of the current trial or the parameter update for the next trial. When adopting a training mode with unified feedback after the end of the trial, a multi-dimensional EEG state vector containing the Alpha / Mu preparation state, the Beta preparation to execution transition state, and the motor category state is constructed all at once after the execution period data collection is completed, thereby avoiding the use of data from periods that have not yet occurred in the preceding real-time processing.

[0031] Motor category state features are obtained from differences in EEG responses at different spatial locations. For left and right motor categories, the state construction module calculates the Alpha / Mu band power or ERD difference according to the contralateral and ipsilateral sensorimotor areas corresponding to the target motor category, forming spatial distribution features and lateralization features. When using fronto-central features, the difference in Alpha / Mu changes between the frontal lobe region and the central region within the same preparation phase window is calculated. For hand and foot or multiple motor category training, the state construction module extracts category distance features according to the same channel combination used in the initial calibration phase. The motor preparation state features and motor category state features are arranged in a preset fixed order to form the multidimensional EEG state vector of the current trial, ensuring that the current trial state vector is consistent with the vector dimension, arrangement order, and sign direction used when establishing the target motor category center and non-target motor category center in subsequent trials.

[0032] While constructing the current trial state, the state construction module generates a signal quality assessment result based on the channel states, impedance, and artifact detection results of multiple EEG channels. Before training begins, the connection states and impedances of each configured channel are obtained. During the current trial's data acquisition, the proportion of amplitude abrupt changes, continuous saturation, or obvious artifact segments is checked according to the same EEG data. If a channel in the configured EEG channels has an impedance exceeding a preset threshold, or if the proportion of artifact segments in the current trial exceeds a preset proportion, the signal quality assessment result is set to "not meeting the conditions." If the anomaly is only identified after the current trial has ended, the already calculated multidimensional EEG state vector is still retained with that trial, but whether it subsequently enters feedback and parameter updates is controlled by the signal quality assessment result. If data loss has caused a certain configuration dimension of the state vector to be unable to be formed, the current trial directly uses the signal quality assessment result that does not meet the conditions, and the incomplete state vector is not used to update the motion category center and the preparation state reference interval.

[0033] At the end of S100, the state construction module transmits the multidimensional EEG state vector to the state reference and judgment module, and simultaneously retains the signal quality judgment result to the feedback control module. The former retains the fixed-dimensional positions of the current trial's motor preparation state features and motor category state features, for S200 to perform preparation state comparison and motor category distance calculation respectively, while the latter serves as the condition for S300 feedback control to read first. Thus, signal quality and EEG state are associated using the same trial identifier, but signal quality is not included in the calculation as a common feature in the motor category distance, avoiding quality abnormalities being masked by the category distance value.

[0034] S200. Compare the characteristics of the exercise readiness state with the readiness state reference interval, and form the readiness state determination result and the category state determination result based on the distance from the center of the exercise category: After receiving the multidimensional EEG state vector formed by S100, the state reference and judgment module first reads the motor readiness state features from a fixed-dimensional position and calls the effective readiness state reference interval for the current training phase. This reference interval is initialized by the population reference distribution parameters at the beginning of the training phase. The population reference distribution comes from reference trials consistent with the current task paradigm and stores the mean, standard deviation, median, interquartile range, and percentiles. These parameters are only used as initial references for training state comparison and are not used as diagnostic criteria for diseases. When percentiles are used in the initialization phase, in one embodiment, P25 to P75 of the population distribution is set as the readiness state reference interval, and P10 and P90 are used as outer deviation boundaries. When the mean and standard deviation are used, upper and lower boundaries centered on the population mean are formed according to a preset adjustment coefficient k. Throughout the training phase, the sign direction and calculation caliber of the same indicator are kept consistent.

[0035] Once the number of valid trials for an individual reaches the current training configuration requirement, the state reference and judgment module no longer relies solely on the group interval. Instead, it reads the motion preparation state features corresponding to multiple recent valid trials, calculates the individual mean μi and standard deviation σi, and forms the individual preparation state interval from μi-kσi and μi+kσi. When the training configuration uses a continuous connection between group initialization and individual correction, the group reference interval is still called before the first formation of the individual interval, and the most recently confirmed update result of S400 is called after the individual interval is formed. The valid trials referred to here are training trials whose signal quality judgment results meet the conditions and have not been canceled due to missing data. After S400 updates the preparation state reference interval, the new upper and lower boundaries only apply to trials that begin subsequently. The current trial that has already completed the S200 state comparison will not be re-judged using the updated parameters.

[0036] When comparing the readiness state for the current trial, the state reference and judgment module does not directly input the entire multidimensional EEG state vector into a unified classification result. Instead, it reads the dimension responsible for evaluating motor readiness. When the sensorimotor rhythm inhibition intensity of the late readiness window and the near execution window is within their respective reference ranges, and the readiness maintenance feature does not cross its lower boundary, a readiness state judgment result within the readiness state reference interval is formed. If the inhibition intensity of the late readiness or near execution stage is lower than the corresponding lower boundary, or if the readiness maintenance feature shows that the later readiness stage is significantly weaker than the early readiness stage, a result outside the readiness state reference interval is formed. If a readiness feature exceeds the upper boundary of the interval, it is not directly regarded as a better state, but is treated as exceeding the current training reference range, causing the subsequent S300 to enter the readiness state adjustment feedback instead of directly entering the positive category feedback.

[0037] In the implementation using Beta preparation-to-execution transition features, the cumulative suppression area of ​​the Beta near-execution window, the Beta transition slope, and the Beta trough latency are compared with the corresponding reference intervals saved in the current training phase. When the Alpha / Mu preparation state is within the reference range but the Beta transition feature exceeds the corresponding boundary, the state reference and judgment module retains the transition deviation information in the preparation state judgment result, and S300 uses preparation state adjustment feedback accordingly. For the basic mode that only performs Alpha / Mu preparation state training, the Beta transition dimension is not called; in this mode, the preparation state judgment is entirely completed by the suppression intensity and preparation maintenance features of different Alpha / Mu preparation windows, and no data missing anomalies are formed due to the lack of configuration of the Beta transition dimension.

[0038] After completing the preparation state comparison, the state reference and judgment module calls the current target motion category center and non-target motion category centers to perform category distance calculation on the multidimensional EEG state vector formed by S100. In the initial training phase, the target motion category center is determined by the center position of multiple initial calibration trial state vectors labeled with the target motion category. The non-target motion category center is determined by the center position of initial calibration trial state vectors labeled with the non-target motion category. Upon entering the continuous training phase, the latest target motion category center saved by S400 is read. For multi-category training, when a certain motion category is designated as the target category in the current trial, the center of that target category is used as the target motion category center. Based on the training configuration, labeled calibration trials other than the target category are aggregated to establish non-target motion category centers. When switching category targets, the two reference centers corresponding to that target are switched synchronously, and the distance results of the previous target category are not used for further feedback.

[0039] In one implementation using Euclidean distance, let the current trial's multidimensional EEG state vector be z, the target motion category center be Ct, and the non-target motion category center be Cn. Then, dt = ||z - Ct||² and dn = ||z - Cn||² are calculated respectively. The state reference and judgment module calculates the distance difference Δd = dn - dt. When Δd is greater than the current category state threshold, it indicates that the current state is closer to the target motion category center under the adopted state vector representation, forming a category state judgment result that satisfies the target category orientation condition. When Δd does not reach the threshold, a category state judgment result that does not satisfy the target category orientation condition is formed. If all dimensions of the state vector use a unified transformation calibrator in the initial calibration stage, then the current trial uses the same transformation parameters as in the category center establishment stage before calculating the Euclidean distance. If the category center is established according to the original feature dimensions, then the current trial maintains the same feature dimensions and does not change the calculation scale of any dimension during training.

[0040] When spatial distribution features or lateralization features conflict with distance results, the state reference and judgment module processes the case according to the category judgment rules configured in the current training. In one implementation, the category state judgment result is set to meet the conditions only when the distance difference reaches the category state threshold and the lateralization direction is consistent with the current target motion category. If the distance difference reaches the threshold but the spatial direction is inconsistent with the target category, the system will still enter the category state that does not meet the conditions. When the initial number of calibration trials is insufficient to form a target motion category center or a non-target motion category center, the system maintains the calibration training state and does not use a temporary single trial as a motion category center. Category feedback training will only begin after both categories are established, so that the preparation state judgment result and the category state judgment result output by S200 have a reference basis under the same trial and the same feature caliber.

[0041] After S200 is completed, the preparation state determination result and the category state determination result are transmitted to the feedback control module and paired with the signal quality determination result retained in S100 according to the current trial identifier. The preparation state determination result answers whether the current trial has entered the preparation state reference interval, and the category state determination result answers the direction of the current state relative to the center of the target motion category and the center of the non-target motion category. The two are not combined into a total score in S300. The feedback control module first reads the signal quality determination result, and then decides whether to read the preparation state determination result and the category state determination result to enter the subsequent feedback branch, so that the three types of results maintain a sequential entry relationship in the control logic.

[0042] S300 performs feedback control based on signal quality judgment results, readiness status judgment results, and category status judgment results to form feedback type and parameter update eligibility: Upon receiving the signal quality judgment result, preparation state judgment result, and category state judgment result for the same trial, the feedback control module does not weight the three results in parallel. Instead, it executes feedback control in the order of signal quality, preparation state, and category state. First, it reads the signal quality judgment result generated in S100. Only when this result meets the conditions is the preparation state judgment result generated in S200 used as a valid feedback condition. Only when the preparation state judgment result is within the preparation state reference range does it continue reading the category state judgment result. Therefore, even if the category state judgment result shows that the current state is approaching the center of the target motion category, positive category feedback is not triggered if the first two conditions are not met. The category distance result is only retained in the current trial state data.

[0043] When the signal quality judgment result does not meet the conditions, the feedback control module generates a signal quality prompt and sets the parameter update qualification for the current trial to the canceled state. The signal quality prompt corresponds to the acquisition condition that caused the abnormality. When the impedance exceeds the threshold, it prompts to check the corresponding EEG channel connection. When the artifact ratio exceeds the threshold, it prompts to pause the current reward and re-enter the next training trial. This branch does not call the category state judgment result of the current trial to generate positive category feedback, and the state vector already formed in S100 is not passed to the parameter update operation in S400. If the EEG channel state recovers and passes the new signal quality judgment before the start of the next trial, the next trial will start again from the normal preparation state comparison and will not use the feedback type of the previous abnormal trial.

[0044] If the signal quality judgment result meets the conditions, the feedback control module reads the preparation state judgment result. If the preparation state judgment result is not within the preparation state reference interval, preparation state adjustment feedback is generated. At this time, the feedback content revolves around the preparation stage itself and does not convert the category distance result into a positive category reward. When the suppression intensity of the late preparation window or the near execution window is lower than the lower boundary of the interval, the visual feedback uses the difference between the current preparation state position and the target interval. When the preparation maintenance feature weakens significantly in the later stage of preparation, the feedback output keeps the category reward off and prompts to adjust the preparation rhythm of the next trial. When the Beta transition feature deviates from the corresponding reference interval, a prompt for the transition from preparation to execution state is given in the feedback after the end of this trial. This feedback does not change the execution instruction event that has already occurred.

[0045] Only when the signal quality judgment result meets the conditions and the preparation state judgment result is within the preparation state reference range will the feedback control module enter the category feedback branch according to the category state judgment result. When the difference between the target category distance and the non-target category distance of S200 reaches the current category state threshold and meets the currently configured spatial direction conditions, positive category feedback is formed, and the parameter update qualification for the current trial is set to a valid state. If the preparation state is already within the reference range, but the category distance difference does not reach the category state threshold, or the lateralization direction is inconsistent with the target motion category, then category correction feedback is formed, and the current trial does not obtain parameter update qualification. Therefore, trials that simply show strong Alpha / Mu suppression but unclear motion category direction will not enter the subsequent target motion category center update along the positive category feedback branch.

[0046] In one implementation of visual neurofeedback, signal quality cues are represented by prompts in the acquisition state area; preparation state adjustment feedback is represented by the relative position of the preparation state location and the preparation state reference interval; positive category feedback is represented by the progress change corresponding to the target motion category or the movement of a virtual object toward the target direction; and category correction feedback displays the deviation of the current category state from the target category direction. When auditory feedback is used, different feedback types correspond to different prompt tone rhythms; when tactile feedback is used, the vibration output device calls a preset vibration mode according to the feedback type. The feedback carrier only accepts the feedback type formed by the feedback control module and does not recalculate the preparation state or category state. Therefore, when the display device, audio device, or vibration device experiences an output abnormality, it does not reverse the state determination already completed in S200; the system still calls the most recently valid state reference parameters before the next trial begins.

[0047] The feedback control module also handles potential state conflicts within the same trial according to the rule of prioritizing previous conditions. When the signal quality does not meet the conditions, a signal quality prompt is executed regardless of the values ​​of the ready state and the class state. When the signal quality meets the conditions but the ready state is not in the reference interval, ready state adjustment feedback is executed regardless of whether the class distance is close to the target center. Only after the ready state enters the reference interval is the class state used to distinguish between positive class feedback and class correction feedback. This processing order ensures that parameter update eligibility can only appear in the positive class feedback branch that has already passed the signal quality and ready state conditions, and will not be directly triggered by an independent classification probability or a single EEG amplitude.

[0048] The output of S300 includes feedback type and parameter update eligibility, both of which are passed to S400 with the same current trial as the corresponding object. The feedback type is converted into the current neural feedback by the feedback output module, and the parameter update eligibility is controlled by the parameter update module to determine whether the multidimensional EEG state vector participates in the update of the target motion category center and the ready state reference interval. Category correction feedback, ready state adjustment feedback, and signal quality cues all retain the corresponding trial results for viewing during the training process, but do not acquire parameter update eligibility simply because the trial was recorded. S400 only performs reference parameter updates for the current trial corresponding to positive category feedback and for which parameter update eligibility is valid.

[0049] S400 outputs corresponding neural feedback and updates the target motion category center and ready state reference interval using the current trial with parameter update eligibility: After receiving the feedback type generated by S300, the feedback output module calls the corresponding output device according to the current training mode. In visual mode, the display device updates the ready state position, target category direction, or virtual object state; in auditory mode, the audio output device plays a prompt corresponding to the current feedback type; and in tactile mode, the vibration feedback device executes the corresponding vibration mode. The feedback output only uses the feedback type already generated by S300 as the control input and does not modify the signal quality judgment result, ready state judgment result, or category state judgment result again during the output stage. If the feedback device does not return to the normal output state, the eligibility for updating the EEG state and parameters is still saved according to the aforementioned state judgment chain. However, the training program prompts the user to check the feedback device before the next trial to avoid output device failure being mistakenly used as new EEG state input.

[0050] The parameter update module then reads the parameter update eligibility formed by S300. When the parameter update eligibility is in a canceled state, the current trial's multidimensional EEG state vector does not participate in the update of the target motor category center and the ready state reference interval, and the system retains the target motor category center and the ready state reference interval saved after the end of the previous valid trial. When the parameter update eligibility is in a valid state, the parameter update module reads the current trial's multidimensional EEG state vector z, the target motor category center Ct before the update, and the preset update coefficient η. In one exponential moving average implementation, the target motor category center is updated according to Ct,new=(1-η)Ct,old+ηz. Since the trial entering this operation has already passed the signal quality condition, the ready state condition, and the category state condition, the parameter update module no longer re-selects the current state vector with a separate classification output probability.

[0051] The update of the readiness state reference interval and the target motion category center update use the same parameter update eligibility, but both adopt a calculation caliber that matches their respective parameter structures. The parameter update module reads motion readiness state features from multiple recent valid trials with parameter update eligibility, calculates the recent mean μr and standard deviation σr, and forms candidate readiness state reference intervals based on μr-kσr and μr+kσr, where k is the adjustment coefficient saved in the current training phase. In the training phase where the group reference interval has not yet been individually corrected, the individual readiness state reference interval is formed by the above recent statistics after the first time the individual trial quantity condition is met; when already in the individual training phase, the upper and lower boundaries of the candidate intervals are updated with constraints based on the previous valid reference interval, rather than completely reconstructing a new interval unrelated to the historical interval after each trial.

[0052] To limit excessive changes in state reference parameters caused by a single trial or short-term state fluctuations, the parameter update module checks the deviations of the updated target motion category center and candidate ready state reference interval from the parameters before the update. When the movement of the target motion category center exceeds the currently configured update amplitude limit, the movement of the center is limited to within that limit. Similarly, when the change of the upper or lower boundary of the ready state reference interval exceeds the corresponding update amplitude limit, the change of the boundary is truncated according to the maximum allowed change. Trials that are disqualified from parameter updates are not included in the statistics of recently valid trials. Therefore, trials with abnormal signal quality, ready states outside the reference interval, or category states that do not meet the positive category feedback conditions will not be included in the individual reference interval statistics as training sessions accumulate.

[0053] In the implementation method that uses the Beta transition slope or Beta trough latency after the execution command event in the current trial, parameter updates occur after all data for the execution phase of the trial has been fully received. Feedback requiring immediate output during the motion preparation period uses the Alpha / Mu preparation state already acquired, the features of the adjacent execution window, and the established category state information. The Beta transition features after the execution command event only participate in the state evaluation after the end of this trial and subsequent parameter updates. With this arrangement, the feedback in the first half of the current trial will not reference post-execution data that has not yet been collected, and the updated parameters formed after the end of the trial are still managed according to the state judgment results of the same trial and take effect from the next trial.

[0054] After the parameter update is completed, the parameter update module returns the updated target motion category center and ready state reference interval to the state reference and judgment module. In the next trial, upon entering S100, EEG signals and event markers are re-acquired to form a new multidimensional EEG state vector. Upon entering S200, the system directly calls the target motion category center and ready state reference interval obtained from the most recent valid update, while simultaneously continuing to call the non-target motion category centers that match the current target category. If the training process is interrupted or the device reconnects between the end of the current trial and the start of the next trial, the system reads the most recently updated and successfully saved state reference parameters. Incomplete candidate parameters do not participate in the comparison of the next trial, thus maintaining consistency of the state reference across trials.

[0055] In a continuous left- and right-hand motor imagery training embodiment, during the initial calibration phase, multiple calibration trials are obtained for both the target and non-target motor categories. Two motor category centers are established by the state reference and judgment module, and the preparation state reference interval is initialized using a group reference distribution. Upon entering formal training, each current trial sequentially generates motor preparation state features, motor category state features, and a multidimensional EEG state vector. S200 performs preparation state comparison and distance calculation between the two motor category centers, respectively. S300 then forms the feedback type according to the order of signal quality, preparation state, and category state. Only the current trial entering the positive category feedback branch qualifies for parameter updates and proceeds to S400, where the parameter update module updates the target motor category center and the preparation state reference interval. The next trial continues to execute S200 with the updated reference parameters, thus forming a continuous process between current trial state determination, current neural feedback, parameter update qualification, reference parameter update, and next trial state determination.

[0056] Example 2: Figure 2 A structural block diagram of an adaptive neurofeedback training system based on the EEG state space during the motor preparation phase, according to an embodiment of the present invention, is shown. Figure 2 As shown, the structure may include: The EEG and event input module 01 is used to acquire multi-channel EEG signals and event markers, and output the multi-channel EEG signals and event markers. The EEG and event input module establishes data connections with the EEG acquisition device and the training task program respectively. The training task program provides preparation prompt events and execution command events sequentially within a training trial. The EEG acquisition device continuously acquires EEG signals from multiple EEG channels in the corresponding time period. The event markers carry event timestamps corresponding to the EEG sampling time reference. The EEG and event input module associates the multi-channel EEG signals with the event markers according to the current trial and then transmits them to the state construction module. When the preparation prompt event or execution command event is missing, the time sequence of the two events is inconsistent with the current training task, or channel data is interrupted during EEG acquisition, the data of the current trial that has been received is retained and the corresponding abnormal state is transmitted with the current trial, so that the state construction module does not use missing events to locate the complete preparation stage window.

[0057] State construction module 02, connected to the EEG and event input module, is used to lock events in the multi-channel EEG signals according to the event markers, forming a preparation stage window; extracting motor preparation state features and motor category state features from the preparation stage window, constructing a multi-dimensional EEG state vector, and generating signal quality judgment results; after receiving the multi-channel EEG signals and event markers corresponding to the same current trial, the state construction module aligns the continuous EEG signals according to the timestamps of the preparation prompt event and the execution command event, and divides the motor preparation period between the preparation prompt event and the execution command event into early stages according to the time sequence. The system includes a preparation window, a late preparation window, and a near-execution window, and extracts EEG features for each window according to the same filtering, frequency band power calculation, and channel combination rules as the initial calibration trial. Among them, the motor preparation state features include the intensity of sensorimotor rhythm inhibition and preparation maintenance features. When configuring Beta frequency band preparation to execution transition training, the cumulative inhibition area of ​​the near-execution window, the preparation to execution transition slope, and the trough latency are also extracted. The motor category state features are formed based on the spatial distribution differences, lateralization features, and category distance features of the brain regions corresponding to the target motor category. All features are arranged in a preset dimensional order to form a multidimensional EEG state vector. The state construction module synchronously reads the channel state, impedance, and artifact detection results of multiple EEG channels within the same current trial. When the EEG channel impedance exceeds a preset threshold or the artifact detection result exceeds a preset proportion, a signal quality judgment result that does not meet the conditions is generated. The Beta transition characteristics of the EEG signal after the execution command event are generated after the data acquisition of this segment is completed. They only participate in the state evaluation and subsequent parameter updates after the end of this trial and do not reverse the feedback state that has been formed before the execution command event. The multidimensional EEG state vector is transmitted to the state reference and judgment module, and the signal quality judgment result is synchronously provided to the feedback control module.

[0058] The state reference and judgment module 03, connected to the state construction module, is used to compare the motor preparation state features with the preparation state reference interval to generate a preparation state judgment result; it generates a category state judgment result based on the distance between the multidimensional EEG state vector and the target motor category center and the non-target motor category center; after receiving the multidimensional EEG state vector of the current trial, the state reference and judgment module reads the motor preparation state features from the corresponding dimension and calls the effective preparation state reference interval for the current training stage. The preparation state reference interval in the initial training stage is set according to the group reference distribution parameters. After accumulating multiple effective trials, it calls the individual preparation state reference interval most recently transmitted by the parameter update module; when the sensorimotor rhythm inhibition intensity and preparation maintenance features of the late preparation window and the near execution window are all in the corresponding interval, a preparation state judgment result located in the preparation state reference interval is formed; when any preparation state feature participating in the current training mode crosses the corresponding boundary, a preparation state judgment result not in the preparation state reference interval is formed. For category state determination, the state reference and determination module calls the target motion category center and non-target motion category center established by the initial calibration trial or historical valid trials. It calculates the Euclidean distance between the current multidimensional EEG state vector and the two motion category centers according to the feature dimensions and dimensions consistent with the establishment stage of the category center, and forms the category state determination result based on the difference between the two distances. When the current training target changes category, the motion category center corresponding to the new target category is called synchronously. When the two category centers have not been fully established, the calibration state is maintained and a single trial is not used to temporarily replace the category center. The prepared state determination result and the category state determination result are then jointly transmitted to the feedback control module.

[0059] Feedback control module 04, connected to the state construction module and the state reference and judgment module, is used to perform feedback control based on the signal quality judgment result. When the signal quality judgment result does not meet the conditions, it generates a signal quality prompt and cancels the parameter update qualification; when the signal quality judgment result meets the conditions, it continues feedback control based on the preparation state judgment result. When the preparation state judgment result is not in the preparation state reference range, it generates preparation state adjustment feedback; when the preparation state judgment result is in the preparation state reference range, it generates positive category feedback or category correction feedback based on the category state judgment result. The positive category feedback corresponds to the parameter update qualification. The feedback control module follows the signal... The order of processing the quality, readiness state, and category state results for the same current trial is as follows: If the signal quality judgment result does not meet the conditions, subsequent effective feedback branches for the current trial are stopped. Even if the category state judgment result indicates that the current state is close to the target motion category center, this result is not used to form positive category feedback. The readiness state judgment result is only read after the signal quality judgment result meets the conditions. If the readiness state is not within the reference range, readiness state adjustment feedback is formed, and the positive category feedback branch remains closed. The category state judgment result is only read after the readiness state is within the reference range. Positive category feedback or category correction feedback is selected based on the distance relationship between the current state and the target motion category center and the non-target motion category center. When signal quality, readiness state, and category state results conflict, the rule of prioritizing previous results applies: signal quality anomalies take precedence over readiness state and category state, and readiness state deviations take precedence over category state. Parameter update eligibility is only generated with positive category feedback. The current trial corresponding to signal quality prompts, readiness state adjustment feedback, and category correction feedback does not obtain parameter update eligibility. The feedback type is passed to the feedback output module, and the parameter update eligibility is passed to the parameter update module.

[0060] Feedback output module 05, connected to the feedback control module, is used to output corresponding neural feedback based on the signal quality prompt, readiness state adjustment feedback, positive category feedback, or category correction feedback. After receiving the feedback type already formed by the feedback control module, the feedback output module drives the corresponding feedback carrier according to the current training configuration. In the visual feedback implementation, the signal quality prompt corresponds to the EEG acquisition status prompt, the readiness state adjustment feedback corresponds to the position display between the current readiness state and the readiness state reference interval, the positive category feedback corresponds to the state change in the target motion category direction, and the category correction feedback corresponds to the direction prompt indicating that the current category state deviates from the target category. In the implementation using auditory or tactile feedback, different feedback types correspond to pre-set prompt tone rhythms or vibration patterns. The feedback output module only performs feedback type mapping and does not recalculate the motion readiness state features, motion category state features, or category distance. When the feedback output device fails to respond or the output is interrupted, the feedback output module maintains the state judgment result and parameter update qualification that has been formed in this instance, and does not replace the EEG state judgment with the abnormal state of the feedback carrier; before the start of the next trial, the training task program decides whether to continue to enter the new trial based on the feedback output state, and the state reference and judgment module still calls the most recently completely saved target motion category center and preparation state reference interval.

[0061] The parameter update module 06, connected to the feedback control module, state construction module, and state reference and determination module, is used to update the target motor category center and the preparation state reference interval using the multidimensional EEG state vector when it has the qualification for parameter update. The updated target motor category center and preparation state reference interval are then transmitted to the state reference and determination module as input for the next trial's preparation state comparison and category state determination. The parameter update module reads the parameter update qualification from the feedback control module and obtains the current trial's multidimensional EEG state vector corresponding to the qualification from the state construction module. When the parameter update qualification is valid, an exponential moving average is performed based on the target motor category center before the update, the current trial's multidimensional EEG state vector, and the update coefficient to form a candidate target motor category center. Simultaneously, motor preparation state features are read from multiple recent valid trials with parameter update qualification, and a candidate preparation state reference interval is formed based on the mean and standard deviation of the motor preparation state features. When the parameter update qualification is cancelled, the previous valid target motor category center and preparation state reference interval remain unchanged. The parameter update module applies update magnitude limits to the movement of the candidate target motion category center and the changes in the upper and lower boundaries of the candidate preparation state reference interval. If the update magnitude exceeds the upper limit of the current training configuration, the change is truncated according to the upper limit of the update magnitude. The updated target motion category center and preparation state reference interval are passed to the state reference and judgment module from the next trial, and are used as reference objects for category distance calculation and preparation state comparison, respectively. The current trial that has not completed the parameter update does not change the reference parameters called in the next trial. Thus, the parameter update qualification formed by the feedback control module continuously constrains the state reference used in subsequent training trials.

Claims

1. An adaptive neurofeedback training method based on the EEG state space during the motor preparation phase, characterized in that, include: S100: Acquire multi-channel EEG signals and event markers; Event locking is performed based on the event markers to form a preparation phase window; Extract the motion preparation state features and motion category state features from the window, construct a multidimensional EEG state vector, and generate signal quality judgment results; S200: Compare the motion preparation state features with the preparation state reference interval to generate a preparation state determination result; The category state determination result is generated based on the distance between the multidimensional EEG state vector and the target motion category center and the non-target motion category center; S300. Feedback control is performed based on the signal quality judgment result: when the condition is not met, a signal quality prompt is generated and the parameter update qualification is cancelled; when the condition is met, feedback control continues based on the preparation state judgment result: when the preparation state is not in the preparation state reference range, preparation state adjustment feedback is generated; when the preparation state reference range is in the preparation state reference range, positive category feedback or category correction feedback is generated according to the category state judgment result; positive category feedback generates parameter update qualification. S400 and output S300 correspond to neural feedback; When the parameter update qualification is obtained, the target motion category center and the preparation state reference interval are updated using the multidimensional EEG state vector, and the update result is used for the next trial S200.

2. The method according to claim 1, characterized in that, The event markers include preparation prompt events and execution instruction events; Event locking is performed using the preparation prompt event and the execution instruction event. The multi-channel EEG signals between the preparation prompt event and the execution instruction event are divided into early preparation window, late preparation window and near execution window according to time sequence.

3. The method according to claim 2, characterized in that, The characteristics of the motor readiness state include the intensity of sensorimotor rhythm inhibition and the characteristics of readiness maintenance; The Alpha / Mu band ERD of the early preparation window, late preparation window, and near execution window are calculated respectively. The Alpha / Mu band ERD of the late preparation window and near execution window are used as the corresponding sensorimotor rhythm inhibition intensity. The preparation maintenance feature is generated based on the ERD difference between the late preparation window and the early preparation window, and the ERD difference between the near execution window and the early preparation window.

4. The method according to claim 2, characterized in that, The motion preparation state features include Beta band preparation to execution transition features; the cumulative suppression area is generated based on the Beta band ERD of the adjacent execution window, the transition slope is generated based on the Beta band ERD before and after the execution command event, and the latency of the Beta band power trough relative to the execution command event is recorded.

5. The method according to claim 1, characterized in that, The movement category state features include spatial distribution features, lateralization features, and category distance features; the features are arranged in a predetermined order according to the movement preparation state features and movement category state features to form the multidimensional EEG state vector.

6. The method according to claim 1, characterized in that, The target motion category center is established by the multidimensional EEG state vector of multiple initial calibration trials or multiple historical valid trials of the target motion category, and the non-target motion category center is established by the multidimensional EEG state vector of multiple initial calibration trials or multiple historical valid trials of the non-target motion category. The distance between the multidimensional EEG state vector and the two motion category centers is calculated using Euclidean distance, and the difference between the two distances is used to generate the category state determination result.

7. The method according to claim 1, characterized in that, The preparation state reference interval is initialized by the population reference distribution parameters, which include the mean, standard deviation, median, interquartile range, and percentiles. After obtaining multiple valid trials for each individual, the preparation state reference interval is corrected based on the mean and standard deviation of the valid trials for each individual.

8. The method according to claim 1, characterized in that, The signal quality judgment result is generated based on the channel status, impedance, and artifact detection results of multiple EEG channels; if there is an EEG channel with impedance exceeding a preset threshold or the artifact detection result exceeds a preset proportion, the signal quality judgment result is deemed unsatisfactory.

9. The method according to claim 1, characterized in that, After generating the parameter update qualification, the target motor category center is updated by exponential moving average based on the target motor category center before the update, the multidimensional EEG state vector of the current trial, and the update coefficient, and the preparation state reference interval is updated based on the mean and standard deviation of multiple recent valid trials. When the deviation of the updated target motion category center or preparation state reference interval from the previous one exceeds the upper limit of the update range, the update is limited according to the upper limit of the update range.

10. An adaptive neurofeedback training system based on the EEG state space during the motor preparation phase, applied to the method of any one of claims 1 to 9, characterized in that, include: The EEG and event input module is used to acquire multi-channel EEG signals and event markers, and output the multi-channel EEG signals and event markers. The state construction module, connected to the EEG and event input module, is used to lock the multi-channel EEG signal according to the event marker to form a preparation stage window; extract the motor preparation state features and motor category state features from the preparation stage window, construct a multi-dimensional EEG state vector and generate a signal quality judgment result. The state reference and determination module is connected to the state construction module and is used to compare the motion preparation state features with the preparation state reference interval to generate a preparation state determination result. The category state determination result is generated based on the distance between the multidimensional EEG state vector and the target motion category center and the non-target motion category center; The feedback control module, connected to the state construction module and the state reference and judgment module, is used to perform feedback control based on the signal quality judgment result, generate a signal quality prompt and cancel the parameter update qualification when the signal quality judgment result does not meet the conditions, and continue feedback control based on the preparation state judgment result when the signal quality judgment result meets the conditions. When the preparation state determination result is not in the preparation state reference range, preparation state adjustment feedback is generated. When the preparation state determination result is in the preparation state reference range, positive category feedback or category correction feedback is generated according to the category state determination result. The positive category feedback corresponds to the parameter update qualification. The feedback output module, connected to the feedback control module, is used to output corresponding neural feedback based on the signal quality prompt, preparation state adjustment feedback, positive category feedback, or category correction feedback. The parameter update module, connected to the feedback control module, the state construction module, and the state reference and determination module, is used to update the target motion category center and the preparation state reference interval using the multidimensional EEG state vector when it is eligible to update the parameters, and to transmit the updated target motion category center and preparation state reference interval to the state reference and determination module as input for the next trial to perform preparation state comparison and category state determination.