A motor preparation intention decoding method and system for brain-computer interface

By individually adapting the basic decoding model and using reliability coefficient-weighted geometric probability fusion, the negative transfer problem of EEG motor intention decoding under low calibration conditions was solved, and a stable adaptive intention decoding effect was achieved.

CN123137516APending Publication Date: 2026-11-20SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611627242.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-21
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve reliable adaptive decoding under conditions of limited channels and low calibration. They suffer from negative transfer problems when directly fusing cross-user base models with target user individual models, especially when the quality of calibration data is unstable, resulting in decreased decoding performance.

Method used

By acquiring sample EEG data of a basic decoding model and target users, features are extracted and feature statistical parameters are calculated. The modulation coefficient is determined based on the number of trials. The basic model is then individually adapted, and weighted geometric probability fusion is performed using a reliability coefficient to generate the intent decoding result.

Benefits of technology

Stable adaptive intent decoding is achieved in low-calibration scenarios, negative migration is suppressed, the reliability and robustness of decoding are improved, and the negative impact caused by insufficient calibration data is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137516A_ABST
    Figure CN123137516A_ABST
Patent Text Reader

Abstract

The application discloses a motion preparation intention decoding method and system for a brain-computer interface, relates to the technical field of neural signal decoding, and aims at the problem that existing methods are prone to negative transfer after independently training a basic decoding model and an individual decoding model and directly fusing the two under the condition of few channels and low calibration. The scheme determines a modulation coefficient according to the number of test times of sample electroencephalogram data, performs dimension-by-dimension weighting on the difference between target user characteristic statistical parameters and basic model benchmark statistical parameters, and obtains a revised basic model. Meanwhile, an individual decoding model is trained. Then, a reliability coefficient is generated according to a calibration quality parameter, individual observation probability and revised observation probability are weighted and geometric probability fusion is performed, and an intention decoding result is output. The application is helpful for inhibiting negative transfer, improving the robustness and reliability of decoding under the condition of low calibration, and reducing the calibration burden of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of neural signal decoding technology, specifically to a method and system for decoding motor preparation intentions for brain-computer interfaces. Background Technology

[0002] Brain-computer interface (BCI) technology establishes a direct communication pathway between the brain and external devices by collecting and analyzing electrophysiological signals from the central nervous system. Among these technologies, EEG decoding based on motor preparation or motor imagery is a current hot research and application area. Motor-related cortical potentials (MRCPs) are low-frequency, slow negative potential shifts that occur during the preparation phase of voluntary movement and are commonly used for motor intention recognition. By imagining limb movements, users can induce specific EEG rhythm changes in the motor-related cortical region, such as event-related desynchronization / synchronization phenomena in mu and beta rhythms. The decoding system analyzes these EEG features to identify the user's motor intentions and then outputs control commands to drive external devices such as exoskeletons, robotic arms, or cursors. However, EEG signals are characterized by weak amplitude, low signal-to-noise ratio, and significant individual differences. This is especially true when using portable acquisition devices with few channels, further reducing the effective information and posing a serious challenge to the accuracy and robustness of intention decoding.

[0003] In existing technologies, conventional methods for decoding EEG motor intentions employ feature extraction techniques such as cospatial patterns and power spectral density, combined with shallow classifiers like linear discriminant analysis and support vector machines for pattern recognition. To address individual differences, conventional approaches often require collecting a certain number of calibration trials for the target user to train an individualized classifier. With the development of deep learning, models such as convolutional neural networks, recurrent neural networks, and Transformers have been introduced into EEG decoding to automatically extract spatiotemporal features. Simultaneously, techniques such as transfer learning, domain adaptation, and meta-learning are used for cross-user knowledge transfer, attempting to reduce the calibration burden on the target user. Furthermore, some approaches attempt to integrate the outputs of multiple models at the decision-making level to improve decoding stability and generalization ability.

[0004] However, the existing technologies still have shortcomings: under conditions of few channels and low calibration, existing methods train the cross-user basic decoding model and the target user individual decoding model independently, and only combine them at the output end, without individualizing the model parameters or dynamically controlling the contribution of the two models based on the quality of the calibration data. When the calibration data is scarce or of unstable quality, the individual model is prone to overfitting, while the basic model is difficult to adapt to the feature distribution of the target user. Direct fusion of the two can easily lead to negative transfer, resulting in a decrease in decoding performance after calibration instead of an increase, making it difficult to achieve reliable adaptive intent decoding in low calibration scenarios. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a method and system for decoding motor preparation intentions for brain-computer interfaces.

[0006] To achieve the above objectives, the technical solution of the present invention is as follows: A method for decoding motor preparation intentions for brain-computer interfaces, comprising:

[0007] Acquire basic decoding models and sample EEG data of target users, along with their intent category labels;

[0008] Features are extracted from the sample EEG data to obtain the target user feature set and feature statistical parameters are calculated;

[0009] The number of trials for acquiring sample EEG data is determined, and the modulation coefficient is determined based on the ratio between the number of trials and the preset modulation constant.

[0010] Obtain the baseline statistical parameters of the basic decoding model, and weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount. Apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters.

[0011] The basic decoding model is updated based on the corrected statistical parameters to obtain the corrected basic model; a classifier is trained based on the target user feature set and its intent category label to obtain the individual decoding model;

[0012] Acquire current EEG data, extract features from the current EEG data and input them into the individual decoding model and the corrected basic model respectively to obtain the individual observation probability and the corrected observation probability;

[0013] The calibration quality parameters are calculated based on the sample EEG data to generate a reliability coefficient; for each intent category, the individual observation probability and the corrected observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability for that intent category.

[0014] The intent decoding result is output based on the fusion observation probability of each intent category.

[0015] A motor preparation intention decoding system for brain-computer interfaces includes:

[0016] The model and sample acquisition module is used to acquire the basic decoding model and sample EEG data of the target user, as well as their intent category labels;

[0017] The feature extraction and statistics module is used to extract features from the sample EEG data, obtain the target user feature set, and calculate the feature statistical parameters.

[0018] The modulation coefficient determination module is used to acquire the number of trials of sample EEG data and determine the modulation coefficient based on the ratio between the number of trials and the preset modulation constant.

[0019] The parameter calibration module is used to obtain the baseline statistical parameters of the basic decoding model, weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount, and apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters.

[0020] The model correction and individual training module is used to update the basic decoding model according to the correction statistical parameters to obtain the corrected basic model; and to train a classifier according to the target user feature set and its intent category label to obtain the individual decoding model.

[0021] An observation probability generation module is used to acquire current EEG data, extract features from the current EEG data and input them into the individual decoding model and the modified basic model respectively to obtain the individual observation probability and the modified observation probability.

[0022] The reliability assessment and fusion module is used to calculate calibration quality parameters based on the sample EEG data and generate a reliability coefficient; for each intention category, the individual observation probability and the modified observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability of that intention category.

[0023] The intent decoding output module is used to output intent decoding results based on the fusion observation probabilities of each intent category.

[0024] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0025] 1. This invention addresses the problems of existing methods that directly fuse the basic and individual models after independent training under low-calibration conditions with few channels, without individual adjustment at the model parameter level, and with difficulty in dynamically controlling the contribution of the two models based on the calibration quality parameters of the sample EEG data. This is achieved by individually adapting the basic decoding model before fusion and performing weighted geometric probability fusion of the individual observation probability and the corrected observation probability based on the calibration quality parameters of the sample EEG data. This helps to suppress negative transfer and realizes reliable adaptive intent decoding in low-calibration scenarios.

[0026] 2. This invention determines the modulation coefficient based on the number of trials of sample EEG data and weights the differences between feature statistical parameters and baseline statistical parameters, thereby achieving quantitative control over the correction amplitude of the basic decoding model. The correction amplitude is large when the number of trials is large and small when the number of trials is small, thus avoiding the introduction of negative transfer due to insufficient calibration data while utilizing individualized information.

[0027] 3. This invention calculates the feature resampling variance for each feature dimension, adjusts the preset modulation constant according to the sampling variance, and obtains the dimension coefficient by combining the number of trials, thereby realizing dimension-wise adaptive modulation. Stable feature dimensions have a large correction range, while unstable feature dimensions have a small correction range, further reducing the negative impact of unreliable feature dimensions on the basic decoding model.

[0028] 4. This invention achieves automatic regression of the correction magnitude by dividing the verification subset after obtaining the corrected basic model and attenuating the correction statistical parameters according to the attenuation coefficient based on the difference when the verification effect is not good, thus avoiding the introduction of negative migration into the corrected basic model due to unreliable calibration data.

[0029] 5. This invention generates reliability coefficients based on classification output consistency, calibration error, class separability, and distribution offset. It then performs weighted geometric probability fusion on individual observation probabilities and corrected observation probabilities, enabling the reliability coefficients to comprehensively evaluate the relative reliability of the individual decoding model relative to the corrected base model from multiple perspectives. This achieves the effect of dynamically adjusting the contributions of the two models based on the quality of calibration data. When the two observation probabilities are consistent, the consistent direction is maintained; when there is a conflict, the weight is determined by the reliability coefficient, making the fusion result more reliable than a single model. Attached Figure Description

[0030] The disclosure of this invention is illustrated with reference to the accompanying drawings. It should be understood that the drawings are for illustrative purposes only and are not intended to limit the scope of protection of this invention. In the drawings, the same reference numerals are used to refer to the same parts. Wherein:

[0031] Figure 1 This is a flowchart of the method of the present invention;

[0032] Figure 2 This is a system structure diagram of the present invention. Detailed Implementation

[0033] It is readily understood that, based on the technical solution of this invention, those skilled in the art can propose various interchangeable structural methods and implementations without altering the essential spirit of the invention. Therefore, the following detailed embodiments and accompanying drawings are merely illustrative examples of the technical solution of this invention and should not be considered as the entirety of the invention or as limitations or restrictions on the technical solution of this invention.

[0034] like Figure 1 As shown, the specific implementation steps of the present invention include the following steps:

[0035] Obtain the basic decoding model and sample EEG data of the target user, along with their intent category labels.

[0036] This step is the input data preparation stage of the entire adaptive intent decoding method, acquiring two types of basic data required for all subsequent processing steps. The basic decoding model provides general decoding knowledge learned from multi-user data, the sample EEG data provides individualized information for the target user, and the intent category labels provide a labeling basis for the supervised training of the individual decoding model, the calculation of calibration quality parameters, and the generation of reliability coefficients.

[0037] The basic decoding model can be a decoding model pre-trained using publicly available multi-user EEG datasets or historical multi-user EEG data. It includes feature standardization parameters and classification parameters. The feature standardization parameters are used to standardize the input features, and the classification parameters are used to classify the standardized features. The basic decoding model has a large amount of training data, thus exhibiting strong generalization ability, but its adaptability to the individual characteristics of the target users is weak.

[0038] The target user's sample EEG data is acquired through an EEG acquisition device. In applications with few channels and low calibration, the number of acquisition channels can be 3 to 8, preferably 6; the number of trials can be 5 to 20, preferably 10. The above number of channels and trials are only examples of typical scenarios and do not constitute a limitation on the scope of protection of this solution. In other application scenarios, the number of acquisition channels and the number of trials can be flexibly set according to actual needs, and the technical means of this solution are applicable. Each trial has an intent category label, which is one of multiple intent categories. Multiple intent categories can be set. For example, intent categories may include idle state, motor preparation state, left hand motor preparation, right hand motor preparation, foot motor preparation, etc.

[0039] The process of collecting sample EEG data is as follows: Following a pre-defined acquisition protocol, the target user is guided to sequentially enter each of several intent states. Each intent state is collected in several trials, and each trial is labeled with the intent category tag corresponding to that intent state. The acquisition protocol pre-determines the prompting method and the number of trials for each intent state.

[0040] The sample EEG data includes idle state EEG data and motor readiness state EEG data. The idle state EEG data corresponds to an idle state category label, and the motor readiness state EEG data corresponds to a motor readiness state category label.

[0041] The motor readiness EEG data represents the EEG signal of the target user when they generate a motor readiness intention. Optionally, the motor readiness EEG data may include motor-related cortical potentials (MRCP) components. MRCP is a low-frequency, slow negative potential shift that occurs in the target user during the voluntary motor readiness phase. It can be detected within hundreds of milliseconds to several seconds before actual movement occurs and can be used to characterize the target user's motor readiness intention. Subsequent feature extraction can extract the low-frequency components of MRCP as one of the optional features of the motor readiness state.

[0042] This step concretizes the sample EEG data and its intention category labels, dividing the sample EEG data into two categories: idle EEG data and motor readiness EEG data, and specifying the category label for each category. Idle EEG data represents the EEG signal when the target user has not generated a motor intention, while motor readiness EEG data represents the EEG signal when the target user has generated a motor readiness intention. These two types of data and their labels provide positive and negative samples for the subsequent binary classification training of the individual decoding model, and also provide a data foundation for calculating the class separability in the calibration quality parameters.

[0043] In practice, idle-state EEG data and motor readiness-state EEG data can be acquired using the same EEG acquisition device under similar experimental conditions to reduce distribution differences caused by non-target factors. During acquisition, the target user can be guided into an idle or motor readiness state through visual cues, auditory cues, or spontaneous triggering. Each trial acquires one segment of EEG signal and labels it with the corresponding category. The label for idle-state EEG data is the idle-state category label, and the label for motor readiness-state EEG data is the motor readiness-state category label.

[0044] This step, by acquiring the basic decoding model, enables the direct invocation of general decoding knowledge pre-learned from multi-user EEG data, eliminating the need to retrain the basic decoding model in this solution. By acquiring sample EEG data and intent category labels from the target user, it achieves the simultaneous acquisition of individualized data and supervision information for the target user. Each trial has an intent category label, providing labeled, individualized data for subsequent processing. By setting multiple intent categories, it achieves unified data organization and flexible support for various motor intent categories.

[0045] In practical implementation, the basic decoding model can be implemented using a logistic regression model. Intent categories can be flexibly defined according to the application scenario, such as idle state, motor readiness state, left-hand motor readiness, right-hand motor readiness, foot motor readiness, etc., and are not limited to a specific category. Intent category labels can use integer encoding, one-hot encoding, binary encoding, or other label encoding methods. Sample EEG data can come from EEG acquisition processes with different numbers of channels and different acquisition devices, as long as EEG data with intent category labels can be provided.

[0046] Features are extracted from the sample EEG data to obtain the target user feature set and feature statistical parameters are calculated.

[0047] This step transforms the raw sample EEG data into feature data required for subsequent processing, and calculates the target user's feature statistical parameters based on this data. Specifically, features are extracted for each trial in the sample EEG data, and the features from all trials constitute the target user's feature set. Then, the mean and variance of each dimension of the feature set are calculated over all trials to obtain the target user's feature mean vector and target user feature variance vector, which together constitute the feature statistical parameters. This step provides the data foundation for subsequent modulation coefficient determination, parameter calibration calculation, generation of correction statistical parameters, and training of the individual decoding model. The feature set is used to train the individual decoding model, and the feature statistical parameters are used to compare with the baseline statistical parameters of the basic decoding model, thereby achieving conditional correction of the basic decoding model.

[0048] Specifically, each trial in the sample EEG data corresponds to a segment of multi-channel EEG signal. When extracting features for each trial, at least one of the following can be used: time domain, frequency domain, time-frequency domain, or spatial domain features.

[0049] In one specific implementation, the time-domain features include a low-frequency component of motion-related cortical potential (MRCP), which is a slow negative potential shift of 0-5 Hz; the frequency-domain features include at least one of mu rhythm energy, beta rhythm energy, and power spectral density; the time-frequency domain features include frequency band energy after wavelet packet decomposition; and the spatial domain features include co-space mode features.

[0050] One or more of the above features can be selected. When multiple features are selected, the values ​​corresponding to each feature are concatenated sequentially to obtain the feature for that trial. The dimensionality of the feature depends on the selected feature type, the number of selected features, and the number of channels. The target user feature set consists of multiple features, with each feature corresponding to one trial.

[0051] Feature statistics include the target user feature mean and target user feature variance, which describe the central location and dispersion of the target user feature distribution. The base decoding model stores the mean and variance of the training set features during training, serving as the baseline statistical parameters in the feature standardization parameters. The target user feature statistics calculated in this step will be compared with the baseline statistical parameters, thereby generating parameter calibration values ​​in subsequent steps to conditionally correct the base decoding model.

[0052] The calculation of the feature statistical parameters is as follows:

[0053] For each trial in the sample EEG data, feature vectors are extracted to obtain multiple feature vectors;

[0054] The target user feature set is constructed from multiple feature vectors;

[0055] For each dimension of the target user feature set, the mean and variance are calculated over all trials to obtain the target user feature mean vector and the target user feature variance vector. The target user feature mean vector and the target user feature variance vector constitute the feature statistical parameters.

[0056] This step specifies the calculation of statistical parameters for features, clarifying that feature vectors are extracted on a trial-by-trial basis, and the feature vectors from all trials constitute the target user feature set. Then, the mean and variance of each feature dimension are calculated across all trials, ultimately yielding the mean vector and variance vector. This step provides a quantitative description of the center and dispersion of the target user feature distribution for subsequent parameter calibration.

[0057] In this step, the mean and variance are calculated separately for each feature dimension, rather than statistically analyzing all dimensions as a whole. This is because the feature standardization parameters of the base decoding model are defined dimension-by-dimensionally, meaning each feature dimension has its own baseline mean and variance. To ensure that the baseline statistical parameters of the base decoding model correspond dimension-by-dimensionally, the statistical parameters of the target user features also need to be calculated dimension-by-dimensionally.

[0058] Specifically, for the d-th feature, its values ​​over all N trials are averaged to obtain the target user feature mean for that dimension; the squares of the differences between its values ​​over all N trials and the mean are averaged to obtain the target user feature variance for that dimension. The mean and variance are calculated for all D-dimensional features, resulting in a target user feature mean vector composed of D means and a target user feature variance vector composed of D variances. These two vectors together constitute the feature statistical parameters.

[0059] When conducting statistical analysis, data from all trials are used, not just those from a single category. This is because the standardized feature parameters describe the overall distribution of the target user's features, not just the distribution of a particular category. If only idle-state trials are used, the resulting mean and variance will only reflect the idle-state feature distribution; similarly, if only motion-ready-state trials are used, they will only reflect the motion-ready-state feature distribution. Neither can represent the overall distribution of the target user's features. Therefore, this step explicitly calculates the mean and variance across all trials to obtain a comprehensive description of the target user's feature distribution.

[0060] This step transforms raw EEG data into structured feature data by extracting feature vectors from each trial and constructing a target user feature set, providing input data for subsequent training of the individual decoding model. By calculating the mean and variance of each feature dimension in the target user feature set across all trials, a quantitative description of the central location and dispersion of the target user feature distribution is achieved, yielding the target user feature mean vector and target user feature variance vector. This provides a data foundation for subsequent dimension-by-dimensional comparisons with the baseline statistical parameters of the basic decoding model.

[0061] In practical implementation, the feature extraction method can be replaced with cosmic mode, power spectral density, autoregressive coefficients, wavelet packet decomposition, or other time-frequency or spatial domain feature extraction methods. The statistics can be replaced with median, quartiles, covariance, or other statistics, but mean and variance are preferred because they directly correspond to the feature standardization parameters of the basic decoding model. The dimension of the feature vector is determined based on the selected feature type and number of channels, and is not limited to a specific dimension.

[0062] The number of trials for acquiring sample EEG data is determined, and the modulation coefficient is determined based on the ratio between the number of trials and the preset modulation constant.

[0063] This step determines a modulation coefficient for subsequent correction of the base decoding model based on the number of trials of the target user sample EEG data. The number of trials reflects the sufficiency of the calibration data: the more trials, the more reliable the target user feature statistics, and the more thorough the correction of the base decoding model; the fewer trials, the greater the fluctuation of the target user feature statistics, and the more conservative the correction of the base decoding model should be.

[0064] The modulation coefficient is used to control the correction magnitude of the basic decoding model, and its value ranges from 0 to 1. The closer the modulation coefficient is to 1, the larger the correction magnitude, and the closer the corrected basic model is to the target user's feature distribution; the closer the modulation coefficient is to 0, the smaller the correction magnitude, and the more the corrected basic model retains the parameters of the original basic model. The modulation coefficient is determined based on the ratio between the number of trials and a preset modulation constant. The preset modulation constant is a pre-set constant used to adjust the influence of the number of trials on the modulation coefficient, and its value ranges from 1 to 20, preferably 5.

[0065] In one specific implementation, the modulation coefficient is represented as the number of trials divided by the sum of the number of trials and a preset modulation constant. This ratio causes the modulation coefficient to increase with the number of trials, and it always remains between 0 and 1, thus utilizing individualized information while avoiding negative migration due to insufficient calibration data.

[0066] The determination of the modulation coefficient is specifically as follows:

[0067] For each trial in the sample EEG data, multiple resampling operations are performed to obtain multiple resampling subsets;

[0068] For each feature dimension, the mean of the feature dimension is calculated on the multiple resampled subsets to obtain multiple sampled means of the feature dimension; the variance between the multiple sampled means of the feature dimension is calculated and normalized to obtain the sampled variance of the feature dimension.

[0069] The preset modulation constant of the feature dimension is determined based on the ratio of the sampling variance of the feature dimension to the preset upper limit of the variance. The smaller the sampling variance, the smaller the preset modulation constant of the feature dimension.

[0070] The dimension coefficient of the feature is determined based on the ratio between the number of trials and the preset modulation constant, wherein the dimension coefficient increases with the increase of the number of trials and decreases with the increase of the preset modulation constant.

[0071] The modulation coefficients are composed of the dimension coefficients of all dimensional features.

[0072] This step concretizes the determination of modulation coefficients, further refining the uniform modulation coefficients into dimensional coefficients corresponding to each feature dimension. Under conditions of few channels and low calibration, the reliability of different feature dimensions is not the same. Some dimensions have small mean fluctuations under resampling, and their statistical parameters are reliable; others have large fluctuations, and their statistical parameters are unreliable. If all dimensions use the same modulation coefficient, unreliable dimensions will introduce negative transfer. Therefore, this step determines the modulation coefficient for each feature dimension by evaluating the degree of resampling fluctuation of each feature dimension by dimension.

[0073] Specifically, the trials in the sample EEG data are resampled multiple times. The sampling method can be random sampling with replacement, and the number of resampling times ranges from 50 to 200, preferably 100. Each resampling draws the same number of trials from all trials, resulting in multiple resampled subsets.

[0074] The calculated variance is divided by the reference variance corresponding to that feature dimension, and the resulting ratio is used as the sampling variance of that feature dimension. The reference variance is the feature variance of that feature dimension on the sample EEG data, that is, the variance value corresponding to that feature dimension in the target user feature variance vector. When the reference variance is zero, a preset small amount is added to the reference variance to avoid division by zero.

[0075] For each feature dimension, the smaller the sampling variance, the smaller the mean fluctuation of that feature dimension under resampling, and the more stable that feature dimension is; the larger the sampling variance, the greater the mean fluctuation of that feature dimension under resampling, and the less stable that feature dimension is.

[0076] In one specific implementation, the preset modulation constant is equal to the preset modulation upper limit multiplied by the ratio of the sampling variance to the preset variance upper limit. The preset modulation upper limit ranges from 5 to 20, preferably 20. The preset variance upper limit is determined based on the statistical distribution of the sampling variances of each dimension of the sample EEG data, taking the maximum value of the sampling variance of each dimension. The ratio of the sampling variance to the preset variance upper limit reflects the proportion of the sampling variance of that dimension in the current variance upper limit. The smaller the ratio, the smaller the relative sampling variance, and the more stable the dimension; the larger the ratio, the larger the relative sampling variance, and the less stable the dimension.

[0077] In one specific implementation, the dimensionality coefficient is equal to the number of trials divided by the sum of the number of trials and the preset modulation constant. This ratio jointly maps the sufficiency of calibration data represented by the number of trials with the reliability of the feature represented by this dimension to a dimensionality coefficient between 0 and 1, which is used to control the correction magnitude of this dimension when modifying the base model.

[0078] Specifically, the number of trials represents the sufficiency of calibration data for the target user. More trials indicate more comprehensive calibration data, more reliable target user characteristic statistical parameters, and allow for greater adoption of these parameters to refine the base model. Therefore, the number of trials, as the numerator, results in a higher dimensionality coefficient with more trials.

[0079] The preset modulation constant represents the unreliability of this feature dimension. A larger sampling variance corresponds to a larger preset modulation constant, indicating greater fluctuation in this feature dimension under resampling and less reliable statistical parameters. Significant correction may introduce noise into the underlying model. Therefore, the preset modulation constant is part of the denominator; a larger preset modulation constant results in a smaller dimensionality coefficient and a more conservative correction.

[0080] The dimensionality coefficient is the adjusted confidence level after the combined effect of two factors. The closer it is to 1, the more sufficient the data is and the more reliable the feature of that dimension is, allowing for significant adjustments; the closer it is to 0, the less sufficient the data is or the more unreliable the feature of that dimension is, requiring conservative adjustments.

[0081] The dimensional coefficients of all features constitute the modulation coefficients. That is, the modulation coefficients are a vector with the same dimensions as the features, where each dimension corresponds to a dimensional coefficient. These coefficients are used in subsequent steps to weight the differences between the feature statistical parameters and the baseline statistical parameters dimension by dimension.

[0082] This step achieves quantitative control over the correction magnitude of the basic decoding model by obtaining the number of trials in the sample EEG data and determining the modulation coefficient based on the ratio between the number of trials and a preset modulation constant. A larger number of trials results in a larger correction magnitude, while a smaller number results in a smaller correction magnitude. By resampling the trials in the sample EEG data multiple times and calculating the sampling variance for each feature dimension, the reliability of each feature dimension is evaluated dimensionally. By determining the preset modulation constant based on the sampling variance and determining the dimensional coefficient based on the ratio between the number of trials and the preset modulation constant, dimensional adaptive modulation is achieved. Reliable feature dimensions have a larger correction magnitude, while unreliable feature dimensions have a smaller correction magnitude, thus avoiding negative transfer introduced by unreliable feature dimensions.

[0083] In practical implementation, the resampling method can be replaced by random sampling without replacement, stratified sampling, or bootstrap sampling. The number of resampling iterations can be replaced by 50, 100, 200, or other numbers. Alternatives for the sampling variance can be the sampling standard deviation, sampling coefficient of variation, or sampling range. The determination of the dimensionality coefficient can be replaced by a normalized mapping of the number of trials divided by the sum of the number of trials and the preset modulation constant, or the ratio of the number of trials to the preset modulation constant. The mapping between the preset modulation constant and the sampling variance can be replaced by a linear mapping, a piecewise mapping, or a lookup table mapping.

[0084] Obtain the baseline statistical parameters of the basic decoding model, and weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount. Apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters.

[0085] This step conditionally corrects the baseline statistical parameters of the basic decoding model using the target user's feature statistical parameters, resulting in corrected statistical parameters. Specifically, it first obtains the baseline statistical parameters saved during the training of the basic decoding model, then calculates the difference between the target user's feature statistical parameters and the baseline statistical parameters, and then weights this difference using modulation coefficients to obtain a parameter calibration value. Finally, it applies the parameter calibration value to the baseline statistical parameters to obtain the corrected statistical parameters. These corrected statistical parameters will be used in subsequent steps to update the basic decoding model, making the standardized parameters of the basic decoding model more adaptable to the feature distribution of the target user.

[0086] The baseline statistical parameters of the basic decoding model are feature-standardized parameters obtained from multi-user EEG data during the training phase. These include the baseline mean vector and the baseline variance vector. Both the baseline mean and variance vectors are multi-dimensional vectors, with each dimension corresponding to a feature dimension. The baseline statistical parameters reflect the central location and dispersion of the feature distribution in the training population of the basic decoding model.

[0087] The target user feature statistical parameters are the feature statistical parameters of the EEG data of the target user samples, including the target user feature mean vector and the target user feature variance vector. The target user feature mean vector and the benchmark mean vector have the same dimension, and the target user feature variance vector and the benchmark variance vector have the same dimension.

[0088] When calculating the difference between the feature statistical parameters and the baseline statistical parameters, the process is performed dimension-by-dimensionally. For the mean, the target user feature mean vector is subtracted from the baseline mean vector dimension-by-dimensionally to obtain the mean difference vector. For the variance, the target user feature variance vector is subtracted from the baseline variance vector dimension-by-dimensionally to obtain the variance difference vector. Each element in the difference vector represents the deviation between the target user's statistical parameter in that feature dimension and the baseline statistical parameter of the basic decoding model.

[0089] Modulation coefficients are used to weight the differences. A modulation coefficient can be a scalar or a vector with the same dimension as the features. When the modulation coefficient is a scalar, all elements in both the mean and variance difference vectors are multiplied by the same modulation coefficient. When the modulation coefficient is a vector, each dimension of both the mean and variance difference vectors is multiplied by its corresponding dimension coefficient. The weighted differences are the parameter calibration quantities. Parameter calibration quantities include mean calibration quantities and variance calibration quantities.

[0090] When applying parameter calibration values ​​to the baseline statistical parameters, for the mean, the mean calibration value is superimposed on the baseline mean vector to obtain the corrected mean vector. For the variance, the variance calibration value is superimposed on the baseline variance vector to obtain the corrected variance vector. The corrected mean vector and the corrected variance vector together constitute the corrected statistical parameters.

[0091] The corrected statistical parameters retain the feature distribution information learned by the base decoding model from multi-user data, while also incorporating the individualized feature distribution information of the target user. The larger the modulation coefficient, the closer the corrected statistical parameters are to the target user's feature statistical parameters; the smaller the modulation coefficient, the closer the corrected statistical parameters are to the baseline statistical parameters.

[0092] This step extracts the feature distribution information of the training population for the basic decoding model by obtaining the baseline statistical parameters of the basic decoding model. By calculating the difference between the target user's feature statistical parameters and the baseline statistical parameters, the deviation in feature distribution between the target user and the training population of the basic decoding model is quantified. The parameter calibration amount is obtained by weighting the difference according to the modulation coefficients, enabling quantitative control of the correction magnitude. By applying the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters, the standardized parameters of the basic decoding model are conditionally adjusted to conform to the feature distribution of the target user, allowing the basic decoding model to retain general knowledge across multiple users while adapting to the individual characteristics of the target user.

[0093] In practical implementation, the baseline statistical parameters can be replaced with baseline mean vector and baseline variance vector, baseline median vector and baseline interquartile range vector, or other combinations of statistical parameters. The difference calculation method can be replaced with dimensionless subtraction, dimensionless division, or other difference measurement methods. The modulation coefficient can be replaced with scalar, vector, or matrix form. The way the parameter calibration quantity is applied to the baseline statistical parameters can be replaced with superposition, weighted averaging, exponential correction, or other correction methods. The corrected statistical parameters can be replaced with corrected mean vector and corrected variance vector, corrected median vector and corrected interquartile range vector, or other combinations of statistical parameters.

[0094] The basic decoding model is updated based on the corrected statistical parameters to obtain the corrected basic model; the classifier is trained based on the target user feature set and its intent category label to obtain the individual decoding model.

[0095] This step involves two parallel processing steps. The first step updates the base decoding model based on corrected statistical parameters, resulting in a corrected base model. This corrected base model incorporates the target user's feature distribution information into the base decoding model, adapting its standardized parameters to the target user's feature distribution. The second step trains a classifier based on the target user's feature set and intent category labels, resulting in an individual decoding model. This individual decoding model trains a classifier specifically for the target user using labeled EEG data. The corrected base model and individual decoding model will then decode the current EEG data in subsequent steps, yielding corrected observation probabilities and individual observation probabilities, respectively.

[0096] The basic decoding model includes feature standardization parameters and classification parameters. Feature standardization parameters are used to standardize the input features, while classification parameters are used to classify the standardized features. When updating the basic decoding model based on the corrected statistical parameters, the feature standardization parameters in the basic decoding model are replaced with the corrected statistical parameters, while the classification parameters remain unchanged, resulting in the corrected basic model. The corrected basic model retains the classification ability learned by the basic decoding model from multi-user data, while its feature standardization parameters have been conditionally adjusted according to the feature distribution of the target users.

[0097] The individual decoding model is a classifier trained based on a target user feature set and its intent category label. The feature vectors from the target user feature set serve as the classifier's input, and the intent category label serves as the classifier's supervision signal. After training, the individual decoding model can output the corresponding intent category prediction for the input feature vector.

[0098] The revised base model, trained on multi-user data, exhibits strong generalization ability, and its standardized feature parameters have been revised using target user data, improving its adaptability to target users. The individual decoding model, trained on target user data, is more sensitive to the individual characteristics of target users.

[0099] After updating the basic decoding model based on the corrected statistical parameters, the process also includes:

[0100] The sample EEG data is divided into K folds to obtain K verification folds, where K is an integer greater than or equal to 3;

[0101] For each fold, the current verification fold is used as the verification set, and the remaining K-1 verification folds are used as the training set. Based on the training set, the feature statistics parameters and modulation coefficients are recalculated, and the basic decoding model is updated accordingly to obtain the candidate model for that fold.

[0102] The basic decoding model and the candidate model of the fold are verified using the verification set to obtain the first verification value and the second verification value of the fold.

[0103] The average of the first verification values ​​corresponding to the K verification folds is determined as the first verification result, and the average of the second verification values ​​corresponding to the K verification folds is determined as the second verification result;

[0104] When the second verification result is greater than or equal to the first verification result, the modified basic model obtained by updating the basic decoding model according to the modified statistical parameters is retained.

[0105] When the second verification result is less than the first verification result, the verification difference is determined based on the first verification result and the second verification result, and the attenuation coefficient is determined based on the verification difference. The larger the verification difference, the smaller the attenuation coefficient.

[0106] The modified statistical parameters are attenuated according to the attenuation coefficient to obtain updated modified statistical parameters, and the basic decoding model is updated according to the updated modified statistical parameters to obtain the modified basic model.

[0107] This step evaluates the correction effect through K-fold cross-validation and attenuates the correction magnitude when the correction effect is poor, thus avoiding the introduction of negative migration due to unreliable calibration data.

[0108] Specifically, the sample EEG data is divided into K folds to obtain K validation folds, where K is an integer greater than or equal to 3, ranging from 3 to 10, preferably 5. For each fold, the current validation fold is used as the validation set, and the remaining K-1 validation folds are used as the training set. Based on the training set, the feature statistics parameters and modulation coefficients are recalculated, and the basic decoding model is updated accordingly to obtain the candidate model for that fold. In each fold validation, the validation folds used as the validation set do not participate in the construction of the candidate model for that fold to ensure the objectivity of the validation results.

[0109] In each fold validation, the first validation value and the second validation value are the classification accuracies of the base decoding model and the candidate model for that fold on the validation set, respectively. The classification accuracy is equal to the number of correctly classified trials in the validation set divided by the total number of trials in the validation set. The average of the first validation values ​​corresponding to the K validation folds is determined as the first validation result, and the average of the second validation values ​​corresponding to the K validation folds is determined as the second validation result.

[0110] When the second verification result is greater than or equal to the first verification result, the corrected basic model obtained by updating the basic decoding model based on the corrected statistical parameters is retained. When the second verification result is less than the first verification result, it indicates that the correction may have introduced negative transfer, and an attenuation coefficient needs to be determined based on the verification difference between the first and second verification results to attenuate the corrected statistical parameters. The verification difference is the first verification result minus the second verification result.

[0111] The attenuation coefficient is used to reduce the deviation between the corrected statistical parameter and the baseline statistical parameter. In one specific implementation, the attenuation coefficient is determined based on the ratio of the verification difference to a preset upper limit of difference. When the verification difference is 0, the attenuation coefficient is 1, and the corrected statistical parameter does not attenuate; when the verification difference reaches or exceeds the preset upper limit of difference, the attenuation coefficient is 0, and the corrected statistical parameter completely reverts to the baseline statistical parameter; when the verification difference is between 0 and the preset upper limit of difference, the attenuation coefficient changes linearly between 0 and 1. The preset upper limit of difference ranges from 5% to 20%, preferably 10%.

[0112] When attenuating the corrected statistical parameters using the attenuation coefficient, the difference between the corrected statistical parameters and the baseline statistical parameters is multiplied by the attenuation coefficient, and then added back to the baseline statistical parameters to obtain the updated corrected statistical parameters. Thus, the smaller the attenuation coefficient, the closer the updated corrected statistical parameters are to the baseline statistical parameters, and the smaller the correction magnitude for the basic model.

[0113] The acquisition of the individual decoding model is specifically as follows:

[0114] From the target user feature set, the feature vector corresponding to the idle state EEG data is obtained as a negative sample feature, and the feature vector corresponding to the exercise preparation state EEG data is obtained as a positive sample feature;

[0115] The negative sample features are combined with the idle state category label to form a negative sample, and the positive sample features are combined with the motion preparation state category label to form a positive sample;

[0116] A training set is constructed based on the negative samples and the positive samples;

[0117] The classifier is trained using the feature vectors in the training set as input and the category labels in the training set as supervision signals until a preset convergence condition is met, thus obtaining the individual decoding model.

[0118] This step concretizes the individual decoding model obtained by training a classifier based on the target user's feature set and intent category labels. Using labeled EEG data from the target user, a binary classification supervised learning task is constructed to train an individual decoding model specifically for that user. This individual decoding model will output observation probabilities in subsequent steps, separately from the modified base model, and will be fused using weighted geometric probability to achieve complementarity.

[0119] Specifically, the target user feature set is divided into positive and negative samples according to category labels, with the aim of constructing a binary classification supervised learning task. The feature vectors corresponding to idle-state EEG data are labeled as negative samples, and the feature vectors corresponding to motor-ready-state EEG data are labeled as positive samples. Each sample consists of a feature vector and a category label. The feature vector serves as the input to the classifier, and the category label serves as the supervision signal for the classifier.

[0120] After the training set is constructed, the classifier is trained using the feature vectors in the training set as input and the class labels as supervision signals. Taking the logistic regression classifier as an example, the training process involves finding a set of weight parameters that minimizes the difference between the predicted class and the true class label. The classifier predicts the training samples based on the current weight parameters, calculates the difference between the predicted class and the true class label, and adjusts the weight parameters accordingly until the preset convergence condition is met.

[0121] The preset convergence condition is: set a maximum number of iterations, and when the change in classification accuracy is less than a preset threshold after multiple consecutive iterations, the convergence condition is met and training stops.

[0122] In one specific implementation, the maximum number of iterations is determined by the number of trials and a preset multiple, where the maximum number of iterations equals the product of the number of trials and the preset multiple. The preset multiple ranges from 5 to 20, preferably 10. Fewer trials result in a smaller maximum number of iterations to avoid overfitting; more trials result in a larger maximum number of iterations to adequately train the classifier. The preset threshold for changes in classification accuracy is set based on the feature dimension; the higher the feature dimension, the more relaxed the preset threshold can be. The preset threshold ranges from 0.1% to 0.5%, preferably 0.3%. The number of consecutive iterations can be set from 3 to 8, preferably 5. Since the number of trials for the target user's EEG data is relatively small, overtraining can easily lead to overfitting and a decrease in generalization ability. Therefore, a more lenient convergence condition is adopted, stopping training when the classification accuracy stabilizes to avoid overfitting.

[0123] This step, by replacing the feature standardization parameters while keeping the classification parameters unchanged, enables the base model to adapt to the target user's feature distribution while retaining its general classification capabilities. Training the classifier with feature vectors as input and class labels as supervision signals achieves the training of a personalized decoding model for the target user. K-fold cross-validation and separate validations provide an objective evaluation of the correction effect. By determining a decay coefficient and decaying the correction statistical parameters when validation results are unsatisfactory, automatic regression of the correction magnitude is achieved, avoiding negative transfer. By multiplying the difference by the decay coefficient and then adding it to the baseline statistical parameters, a smooth regression of the correction statistical parameters to the baseline statistical parameters is achieved. By setting a maximum number of iterations and an accuracy change threshold as convergence conditions, training stops when the accuracy stabilizes, preventing overfitting of the individual decoding model.

[0124] In practical implementation, the update method of the basic decoding model can be replaced by replacing the standardized parameters of the features and some classification parameters, or by fine-tuning the entire basic decoding model. The classifier can also be a support vector machine classifier or a shallow neural network classifier. The partitioning method of the validation fold can also be hierarchical partitioning or partitioning according to time order. The validation result can also be replaced by classification error, F1 score, or AUC. The attenuation coefficient can be determined by segmented mapping based on differences or lookup table mapping. The preset convergence condition can also be replaced by the loss function value being less than a preset threshold or the number of iterations reaching a preset upper limit.

[0125] Acquire current EEG data, extract features from the current EEG data, and input them into the individual decoding model and the corrected basic model respectively to obtain the individual observation probability and the corrected observation probability.

[0126] This step acquires the current EEG data, extracts features from it, and inputs the extracted features into the individual decoding model and the revised base model, respectively, to obtain the observation probabilities of the current EEG data for the two models. This step is an intermediate link connecting model training / revision with subsequent weighted geometric probability fusion, providing two independent observation probability inputs for the subsequent fusion.

[0127] The method for extracting features from the current EEG data should be consistent with the method for extracting features from the sample EEG data to ensure that the feature dimensions of the input individual decoding model and the corrected base model are the same as during training. The individual observation probability is the probability of the current EEG data belonging to each intention category after processing by the individual decoding model, and the corrected observation probability is the probability of the current EEG data belonging to each intention category after processing by the corrected base model.

[0128] By acquiring current EEG data and inputting it into two models, two independent observation probabilities were obtained at the same time, providing input for subsequent weighted geometric probability fusion.

[0129] The calibration quality parameters are calculated based on the sample EEG data to generate a reliability coefficient. For each intent category, the individual observation probability and the modified observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability for that intent category.

[0130] This step generates reliability coefficients based on the calibration quality parameters of the sample EEG data. These reliability coefficients are then used to perform weighted geometric probability fusion of the individual observation probabilities and the corrected observation probabilities to obtain the fused observation probability for each intent category. The reliability coefficients characterize the relative reliability of the individual decoding model relative to the corrected base model, thereby controlling the weights of the two observation probabilities in the fusion process. Weighted geometric probability fusion is a probabilistic fusion method that combines two observation probabilities weighted according to the reliability coefficients to obtain the fused observation probability, which serves as the basis for subsequent intent decoding results.

[0131] The calibration quality parameter is an indicator extracted from the sample EEG data and used to evaluate the quality of the sample EEG data. The reliability coefficient is a value generated based on the calibration quality parameter, ranging from 0 to 1. In this scheme, the reliability coefficient represents the relative reliability of the individual decoding model relative to the modified base model, rather than the absolute reliability of the sample EEG data. A larger reliability coefficient indicates that the individual decoding model is more reliable than the modified base model, and the individual observation probability has a greater weight in the fusion; a smaller reliability coefficient indicates that the modified base model is more reliable than the individual decoding model, and the modified observation probability has a greater weight in the fusion.

[0132] Weighted geometric probability fusion is a probability fusion method that combines two observation probabilities according to their weights. Its purpose is to integrate the judgments of two independent sources—the individual decoding model and the modified base model—to make the fused observation probabilities more reliable than those of a single model. The reason for using weighted geometric probability fusion is that when the two observation probabilities are consistent, the fusion result maintains that consistency; when the two observation probabilities conflict, the fusion result compromises between the two sources based on their reliability coefficients, with the more reliable source receiving a larger weight. Compared to simple weighted averaging, weighted geometric probability fusion can automatically achieve the effect of determining weights based on reliability coefficients when there is conflict, allowing the more reliable source to dominate the fusion result.

[0133] For each intent category, the individual observation probability and the revised observation probability are combined according to weights determined by the reliability coefficient to obtain the fused observation probability for that intent category. The fused observation probability reflects the probability that the current EEG data belongs to that intent category after comprehensively considering the judgments from both the individual decoding model and the revised baseline model.

[0134] The reliability coefficient is calculated as follows:

[0135] Normalize each of the calibration quality parameters to obtain the corresponding normalized parameter value;

[0136] Based on the positive and negative correlation between various calibration quality parameters and the reliability coefficient, the normalized parameter values ​​are aligned in direction so that the normalized parameter values ​​after alignment are all positively correlated with the reliability coefficient.

[0137] Based on the preset weights of each calibration quality parameter, the normalized parameter values ​​after directional unification are weighted and summed to obtain the reliability coefficient.

[0138] This step specifies the generation of the reliability coefficient, combining multiple calibration quality parameters into a unified reliability coefficient. Specifically, each calibration quality parameter is first normalized to unify parameter values ​​with different dimensions to the same range; then, the direction is unified based on the positive and negative correlation between each calibration quality parameter and the reliability coefficient; finally, the normalized parameter values ​​are weighted and summed to obtain the reliability coefficient. This step provides a specific calculation method for the reliability coefficient in subsequent weighted geometric probability fusion.

[0139] Specifically, when normalizing each calibration quality parameter, a minimum-maximum normalization method is used to map the parameter value to a range of 0 to 1. The normalization method is as follows: the normalized parameter value is equal to the parameter value minus the minimum value of the parameter, and then divided by the difference between the maximum and minimum values ​​of the parameter.

[0140] Based on the positive and negative correlations between various calibration quality parameters and reliability coefficients, the normalized parameter values ​​are aligned in the same direction. Classification output consistency is positively correlated with the reliability coefficient, so the normalized parameter value remains unchanged; calibration error is negatively correlated with the reliability coefficient, so the normalized parameter value is reduced by 1; class separability is positively correlated with the reliability coefficient, so the normalized parameter value remains unchanged; distribution offset is positively correlated with the reliability coefficient, so the normalized parameter value remains unchanged.

[0141] The reliability coefficient is obtained by weighting and summing the normalized parameter values ​​after directional unification according to the preset weights of each calibration quality parameter. The weight allocation is determined based on the correlation strength between each calibration quality parameter and the reliability coefficient. The higher the correlation strength, the greater the contribution of the parameter to the reliability coefficient, and the greater its weight. The preset weight sum is 1, and the reliability coefficient is between 0 and 1.

[0142] The calibration quality parameters include classification output consistency, calibration error, class separability, and distribution offset.

[0143] The consistency of the classification output is obtained by training a temporary classifier through multiple resampling and statistically analyzing the matching degree between the outputs of each temporary classifier. The consistency of the classification output is positively correlated with the reliability coefficient.

[0144] The calibration error is obtained through cross-validation, and the calibration error is negatively correlated with the reliability coefficient.

[0145] The class separability is obtained by the feature distribution distance between the sample EEG data corresponding to different class labels, and the class separability is positively correlated with the reliability coefficient;

[0146] The distribution offset is obtained by the distance between the target user feature distribution and the training distribution of the basic decoding model, and the distribution offset is positively correlated with the reliability coefficient.

[0147] This step specifies the calibration quality parameters, clarifying that they include classification output consistency, calibration error, class separability, and distribution offset. It also provides the methods for obtaining each parameter and their positive or negative correlation with the reliability coefficient. The purpose of this step is to provide specific parameter sources and properties for calculating the reliability coefficient.

[0148] Classification output consistency is determined by resampling the sample EEG data multiple times, training a temporary classifier after each resampling, and then using these temporary classifiers to predict the same batch of samples. The proportion of identical predictions is then counted. Higher matching accuracy results in higher classification output consistency and a higher reliability coefficient. The preset weight range for this parameter in the reliability coefficient calculation is 0.30 to 0.40, preferably 0.35, because classification output consistency directly reflects the stability of the classifier trained on the sample EEG data under different resampling conditions, and is a direct reflection of the reliability of the calibration data.

[0149] Calibration error is determined by cross-validating the sample EEG data, such as five-fold cross-validation. The sample EEG data is divided into five parts, and the classifier is trained using four parts in turn, with the remaining part used for validation. The average classification error rate is then calculated. A lower average classification error rate results in a smaller calibration error and a higher reliability coefficient. The preset weight range for this parameter in the reliability coefficient calculation is 0.20 to 0.28, preferably 0.25, because the calibration error directly reflects the classifier's classification error rate on the sample EEG data and is a direct indicator of classification performance.

[0150] Category separability is calculated by taking the ratio of inter-class distance to intra-class distance between feature vectors corresponding to different category labels. The higher the ratio, the higher the category separability and the greater the reliability coefficient. The preset weight range for this parameter in the reliability coefficient calculation is 0.18 to 0.25, preferably 0.22, because category separability reflects the distinguishing ability of data, but is greatly affected by the feature extraction method, so the weight is moderate.

[0151] The distribution offset is calculated by combining the distance between the target user's feature mean vector and the baseline mean vector of the base decoding model, and the distance between the target user's feature variance vector and the baseline variance vector of the base decoding model. A larger distance results in a larger distribution offset and a higher reliability coefficient. The preset weight range for this parameter in the reliability coefficient calculation is 0.10 to 0.18, preferably 0.18, because the distribution offset reflects the applicability of the base decoding model to the target user; a larger offset indicates greater dependence on the individual decoding model. However, this information has some correlation with other parameters, hence the slightly lower weight.

[0152] The weighted geometric probability fusion specifically refers to:

[0153] The reliability coefficient is determined as the first index of the individual observation probability;

[0154] The second index of the corrected observation probability is determined based on the preset weight value and the reliability coefficient, and the sum of the first index and the second index is the preset weight value.

[0155] The individual observation probability is raised to the first exponent to obtain a first power value, and the corrected observation probability is raised to the second exponent to obtain a second power value.

[0156] The product of the first power value and the second power value is determined as the unnormalized fusion observation probability of the intent category;

[0157] Normalize the unnormalized fusion observation probabilities for all intent categories to obtain the fusion observation probabilities for each intent category.

[0158] This step concretizes the weighted geometric probability fusion, specifying that the reliability coefficient is used as the first exponent of the individual observation probability, and the weight preset value minus the reliability coefficient is used as the second exponent of the corrected observation probability. These are then multiplied by exponentiation to obtain the unnormalized fused observation probability. Finally, the unnormalized fused observation probabilities of all intent categories are normalized to obtain the fused observation probability for each intent category. This step provides a specific calculation method for fusion, ensuring that the fusion result is always between 0 and 1, and automatically adjusting the weights of the individual observation probability and the corrected observation probability based on the reliability coefficient.

[0159] The preset weight value is a positive number, preferably 1, used to determine the sum of the first index and the second index. When the preset weight value is 1, the second index equals 1 minus the reliability coefficient, and the sum of the first and second indices is 1. The reason for using a preset weight value of 1 is that the first index is directly equal to the reliability coefficient, and the second index equals 1 minus the reliability coefficient, with a sum of 1, making the two indices directly correspond to the weights of the two observation probabilities, with clear physical meaning; when the reliability coefficient is 0.5, both the first and second indices are 0.5, and the two observation probabilities participate in the fusion with the same weight, obtaining the equally weighted geometrically normalized fused probability.

[0160] The individual observation probability is raised to a first exponent to obtain the first power value; the corrected observation probability is raised to a second exponent to obtain the second power value. The product of the first and second power values ​​is determined as the unnormalized fused observation probability for that intent category. When normalizing the unnormalized fused observation probabilities for all intent categories, the sum of the unnormalized fused observation probabilities for all intent categories is calculated, and the unnormalized fused observation probability for each intent category is divided by this sum to obtain the fused observation probability for that intent category.

[0161] When the individual observation probability and the corrected observation probability are consistent, the fusion result maintains this consistency. When they conflict, the fusion result compromises between the two sources based on the reliability coefficient, with the source with higher reliability receiving greater weight. The larger the reliability coefficient, the larger the first exponent, and the greater the weight of the individual observation probability; the smaller the reliability coefficient, the larger the second exponent, and the greater the weight of the corrected observation probability.

[0162] This step generates reliability coefficients by calculating calibration quality parameters, enabling a quantitative assessment of the relative reliability of individual decoding models relative to the modified base model, providing a weighting basis for fusion. By normalizing, unifying the direction of, and weighted summing of the calibration quality parameters, multiple parameters are combined into reliability coefficients ranging from 0 to 1. Weighted geometric probability fusion is achieved by using the reliability coefficient as the first exponent and 1 minus the reliability coefficient as the second exponent, followed by exponentiation and product, automatically adjusting the weights of the individual model and the modified base model. With a preset weight value of 1, the sum of the first and second exponents is 1; when the reliability coefficient is 0.5, it degenerates into an equally weighted geometric average. By normalizing the unnormalized fusion observation probabilities of all intent categories, a probabilistic output is achieved where the sum of the fusion observation probabilities of each intent category is 1. Through weighted geometric probability fusion, consistency is maintained while trade-offs are made based on the reliability coefficient in case of conflict, making the fusion result more reliable than a single model.

[0163] In practical implementation, calibration quality parameters can be selected from one or more of the following: classification output consistency, calibration error, category separability, and distribution offset. Other calibration quality parameters can also be added. Normalization methods can be replaced with Z-score normalization or decimal scaling normalization. Directional unification methods can be replaced with mapping negatively correlated parameters to the opposite direction, or using other transformation methods that make all parameters positively correlated with the reliability coefficient. Weighted summation methods can be replaced with geometric mean or harmonic mean. Preset weight values ​​can be replaced with other positive numbers, but 1 is preferred because when the preset weight value is 1, the first exponent directly equals the reliability coefficient, and the second exponent equals 1 minus the reliability coefficient, providing a clear physical meaning. Weighted geometric probability fusion can be replaced with linear weighted fusion or a voting-based fusion method. Normalization methods can be replaced with maximum value normalization or softmax normalization. The preset weight allocation method for calibration quality parameters can be replaced with equal weight allocation, determining weights based on principal component analysis, determining weights based on expert experience, or determining weights based on historical data statistics.

[0164] The intent decoding result is output based on the fusion observation probability of each intent category.

[0165] This step transforms the fused observation probabilities of each intent category obtained from weighted geometric probability fusion into the final intent decoding result. The intent decoding result can be the intent category with the highest fused observation probability, or it can be the fused observation probabilities of all intent categories and their corresponding confidence scores. This step is the final output of the entire adaptive intent decoding method.

[0166] When outputting the intent decoding result based on the fusion observation probability of each intent category, the intent category with the highest fusion observation probability is determined as the intent decoding result of the current EEG data.

[0167] By comparing the fusion observation probabilities of each intent category, the probabilistic fusion result is transformed into a deterministic intent decoding result.

[0168] In practice, the output method can be replaced by threshold decision, outputting the probability of all fused observations, or outputting the top few intent categories with the highest probability.

[0169] like Figure 2 As shown, a motor preparation intention decoding system for brain-computer interfaces includes:

[0170] The model and sample acquisition module is used to acquire the basic decoding model and sample EEG data of the target user, as well as their intent category labels;

[0171] The feature extraction and statistics module is used to extract features from the sample EEG data, obtain the target user feature set, and calculate the feature statistical parameters.

[0172] The modulation coefficient determination module is used to acquire the number of trials of sample EEG data and determine the modulation coefficient based on the ratio between the number of trials and the preset modulation constant.

[0173] The parameter calibration module is used to obtain the baseline statistical parameters of the basic decoding model, weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount, and apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters.

[0174] The model correction and individual training module is used to update the basic decoding model according to the correction statistical parameters to obtain the corrected basic model; and to train a classifier according to the target user feature set and its intent category label to obtain the individual decoding model.

[0175] An observation probability generation module is used to acquire current EEG data, extract features from the current EEG data and input them into the individual decoding model and the modified basic model respectively to obtain the individual observation probability and the modified observation probability.

[0176] The reliability assessment and fusion module is used to calculate calibration quality parameters based on the sample EEG data and generate a reliability coefficient; for each intention category, the individual observation probability and the modified observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability of that intention category.

[0177] The intent decoding output module is used to output intent decoding results based on the fusion observation probabilities of each intent category.

[0178] The technical scope of this invention is not limited to the content described above. Those skilled in the art can make various modifications and variations to the above embodiments without departing from the technical concept of this invention, and all such modifications and variations should fall within the protection scope of this invention.

Claims

1. A method for decoding motor preparation intentions for brain-computer interfaces, characterized in that, Specifically, it includes: Acquire basic decoding models and sample EEG data of target users, along with their intent category labels; Features are extracted from the sample EEG data to obtain the target user feature set and feature statistical parameters are calculated; The number of trials for acquiring sample EEG data is determined, and the modulation coefficient is determined based on the ratio between the number of trials and the preset modulation constant. Obtain the baseline statistical parameters of the basic decoding model, and weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount. Apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters. The basic decoding model is updated based on the corrected statistical parameters to obtain the corrected basic model; a classifier is trained based on the target user feature set and its intent category label to obtain the individual decoding model; Acquire current EEG data, extract features from the current EEG data and input them into the individual decoding model and the corrected basic model respectively to obtain the individual observation probability and the corrected observation probability; Based on the sample EEG data, calibration quality parameters are calculated, and a reliability coefficient is generated. For each intent category, the individual observation probability and the modified observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability for that intent category. The intent decoding result is output based on the fusion observation probability of each intent category.

2. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: The sample EEG data includes idle state EEG data and motor readiness state EEG data. The idle state EEG data corresponds to an idle state category label, and the motor readiness state EEG data corresponds to a motor readiness state category label.

3. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: The calculation of the feature statistical parameters is as follows: For each trial in the sample EEG data, feature vectors are extracted to obtain multiple feature vectors; The target user feature set is constructed from multiple feature vectors; For each dimension of the target user feature set, the mean and variance are calculated over all trials to obtain the target user feature mean vector and the target user feature variance vector. The target user feature mean vector and the target user feature variance vector constitute the feature statistical parameters.

4. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: The determination of the modulation coefficient is specifically as follows: For each trial in the sample EEG data, multiple resampling operations are performed to obtain multiple resampling subsets; For each feature dimension, the mean of that feature dimension is calculated on the multiple resampled subsets to obtain multiple sample mean values ​​of that feature dimension; Calculate the variance between multiple sample means of this feature dimension and normalize it to obtain the sample variance of this feature dimension; The preset modulation constant of the feature dimension is determined based on the ratio of the sampling variance of the feature dimension to the preset upper limit of the variance. The smaller the sampling variance, the smaller the preset modulation constant of the feature dimension. The dimension coefficient of the feature is determined based on the ratio between the number of trials and the preset modulation constant, wherein the dimension coefficient increases with the increase of the number of trials and decreases with the increase of the preset modulation constant. The modulation coefficients are composed of the dimension coefficients of all dimensional features.

5. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: After updating the basic decoding model based on the corrected statistical parameters, the process also includes: The sample EEG data is divided into K folds to obtain K verification folds, where K is an integer greater than or equal to 3; For each fold, the current verification fold is used as the verification set, and the remaining K-1 verification folds are used as the training set. Based on the training set, the feature statistics parameters and modulation coefficients are recalculated, and the basic decoding model is updated accordingly to obtain the candidate model for that fold. The basic decoding model and the candidate model of the fold are verified using the verification set to obtain the first verification value and the second verification value of the fold. The average of the first verification values ​​corresponding to the K verification folds is determined as the first verification result, and the average of the second verification values ​​corresponding to the K verification folds is determined as the second verification result; When the second verification result is greater than or equal to the first verification result, the modified basic model obtained by updating the basic decoding model according to the modified statistical parameters is retained. When the second verification result is less than the first verification result, the verification difference is determined based on the first verification result and the second verification result, and the attenuation coefficient is determined based on the verification difference. The larger the verification difference, the smaller the attenuation coefficient. The modified statistical parameters are attenuated according to the attenuation coefficient to obtain updated modified statistical parameters, and the basic decoding model is updated according to the updated modified statistical parameters to obtain the modified basic model.

6. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 2, characterized in that: The acquisition of the individual decoding model is specifically as follows: From the target user feature set, the feature vector corresponding to the idle state EEG data is obtained as a negative sample feature, and the feature vector corresponding to the exercise preparation state EEG data is obtained as a positive sample feature; The negative sample features are combined with the idle state category label to form a negative sample, and the positive sample features are combined with the motion preparation state category label to form a positive sample; A training set is constructed based on the negative samples and the positive samples; The classifier is trained using the feature vectors in the training set as input and the category labels in the training set as supervision signals until a preset convergence condition is met, thus obtaining the individual decoding model.

7. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: The reliability coefficient is calculated as follows: Normalize each of the calibration quality parameters to obtain the corresponding normalized parameter value; Based on the positive and negative correlation between various calibration quality parameters and the reliability coefficient, the normalized parameter values ​​are aligned in direction so that the normalized parameter values ​​after alignment are all positively correlated with the reliability coefficient. Based on the preset weights of each calibration quality parameter, the normalized parameter values ​​after directional unification are weighted and summed to obtain the reliability coefficient.

8. The method for decoding motor preparation intentions for brain-computer interfaces according to claim 7, characterized in that: The calibration quality parameters include classification output consistency, calibration error, class separability, and distribution offset. The consistency of the classification output is obtained by training a temporary classifier through multiple resampling and statistically analyzing the matching degree between the outputs of each temporary classifier. The consistency of the classification output is positively correlated with the reliability coefficient. The calibration error is obtained through cross-validation, and the calibration error is negatively correlated with the reliability coefficient. The class separability is obtained by the feature distribution distance between the sample EEG data corresponding to different class labels, and the class separability is positively correlated with the reliability coefficient; The distribution offset is obtained by the distance between the target user feature distribution and the training distribution of the basic decoding model, and the distribution offset is positively correlated with the reliability coefficient.

9. A method for decoding motor preparation intentions for brain-computer interfaces according to claim 1, characterized in that: The weighted geometric probability fusion specifically refers to: The reliability coefficient is determined as the first index of the individual observation probability; The second index of the corrected observation probability is determined based on the preset weight value and the reliability coefficient, and the sum of the first index and the second index is the preset weight value. The individual observation probability is raised to the first exponent to obtain a first power value, and the corrected observation probability is raised to the second exponent to obtain a second power value. The product of the first power value and the second power value is determined as the unnormalized fusion observation probability of the intent category; Normalize the unnormalized fusion observation probabilities for all intent categories to obtain the fusion observation probabilities for each intent category.

10. A motor preparation intention decoding system for brain-computer interfaces, characterized in that, Specifically, it includes: The model and sample acquisition module is used to acquire the basic decoding model and sample EEG data of the target user, as well as their intent category labels; The feature extraction and statistics module is used to extract features from the sample EEG data, obtain the target user feature set, and calculate the feature statistical parameters. The modulation coefficient determination module is used to acquire the number of trials of sample EEG data and determine the modulation coefficient based on the ratio between the number of trials and the preset modulation constant. The parameter calibration module is used to obtain the baseline statistical parameters of the basic decoding model, weight the difference between the feature statistical parameters and the baseline statistical parameters according to the modulation coefficient to obtain the parameter calibration amount, and apply the parameter calibration amount to the baseline statistical parameters to obtain the corrected statistical parameters. The model correction and individual training module is used to update the basic decoding model according to the correction statistical parameters to obtain the corrected basic model; and to train a classifier according to the target user feature set and its intent category label to obtain the individual decoding model. An observation probability generation module is used to acquire current EEG data, extract features from the current EEG data and input them into the individual decoding model and the modified basic model respectively to obtain the individual observation probability and the modified observation probability. The reliability assessment and fusion module is used to calculate calibration quality parameters and generate reliability coefficients based on the sample EEG data. For each intent category, the individual observation probability and the modified observation probability are fused using a weighted geometric probability based on the reliability coefficient to obtain the fused observation probability for that intent category. The intent decoding output module is used to output intent decoding results based on the fusion observation probabilities of each intent category.