Few-sample electroencephalography motor imagery modeling system

By utilizing the resting state and motor imagery data of target users in an EEG signal processing system, the covariance matrix of similar historical users is determined, and a classification model is constructed. This solves the problem of insufficient calibration data in existing technologies and improves stability and efficiency.

CN123158409APending Publication Date: 2026-11-24SHANGHAI SHULI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611663984.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing motor imagery EEG signal processing systems require multiple rounds of calibration tasks when building individualized classification models, resulting in insufficient effective calibration data. This is especially true when user attention fluctuates or time is limited, leading to unstable sample calculations and affecting model stability.

Method used

By utilizing the resting-state EEG and motor imagery EEG data of the target users, similar historical users are identified, a classification model is constructed, and the covariance matrix of historical users is combined with the covariance matrix of the target users to reduce the number of calibrations and improve model stability.

Benefits of technology

It enables the construction of individualized models with limited resting-state and motor imagery EEG data, reduces the number of calibration samplings, lowers the user's operational burden, reduces negative transfer from irrelevant historical users, improves the stability of category covariance estimation, and controls the quality of historical data through backtesting after data entry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158409A_ABST
    Figure CN123158409A_ABST
Patent Text Reader

Abstract

This application relates to the field of electroencephalogram (EEG) signal processing technology and provides a few-sample EEG motor imagery modeling system. The system determines a candidate set of historical users based on the resting-state EEG data of the target user, and then determines a set of similar historical users and matching weights from the candidate set based on the target user's motor imagery EEG data. Based on the matching weights and the historical covariance matrices of the similar historical users, a historical prior covariance matrix is ​​determined. This historical prior covariance matrix is ​​then fused with the target sample covariance matrix to obtain a fused covariance matrix. Finally, a classification model is constructed based on the fused covariance matrix and the target user's motor imagery EEG data. This application can improve the stability of the classification model under few-sample conditions by utilizing data from similar historical users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electroencephalogram (EEG) signal processing technology, and in particular to a few-sample EEG motor imagery modeling system. Background Technology

[0002] Electroencephalography (EEG) signals are non-invasive physiological signals that reflect the electrical activity of the brain's nerves. Existing motor imagery EEG signal processing systems typically require collecting multiple sets of calibration data from different motor imagery tasks performed by the user before building an individualized classification model. To obtain relatively stable features and classification boundaries, the calibration phase usually requires repeated execution of multiple rounds of the motor imagery task.

[0003] However, in practical use, some users can only provide a limited amount of effective calibration data. Especially when user attention fluctuates, task execution stability is insufficient, or continuous data collection time is limited, the statistical features calculated from a small number of samples are easily affected by random fluctuations, thus affecting the stability of subsequent classification model building. If more data is obtained by increasing the number of calibration rounds, it will prolong the model building process and increase the user's operational burden.

[0004] Therefore, there is an urgent need for a few-sample EEG motor imagery modeling system. Summary of the Invention

[0005] This application provides a few-sample EEG motor imagery modeling system. It identifies similar historical users based on the resting-state EEG data and motor imagery EEG data of the target user, and constructs a classification model based on the historical covariance matrix of similar historical users and the target sample covariance matrix of the target user. This overcomes the problems of unstable covariance estimation and classification model when there is a lack of effective calibration data for the target user.

[0006] To achieve the above objectives, this application adopts the following technical solution:

[0007] A few-sample EEG motor imagery modeling system includes: a historical user data module configured to store an original set of historical users, the original set of historical users including historical resting-state features, historical motor imagery features, and historical covariance matrices corresponding to multiple historical users; and a priori matching module configured to acquire resting-state EEG data and motor imagery EEG data of target users, determine target resting-state features based on the resting-state EEG data, determine target motor imagery features and target sample covariance matrices based on the motor imagery EEG data; and determine the selection weights corresponding to each historical user in the original set of historical users through sparse reconstruction based on the target resting-state features and the historical resting-state features, and based on the selection weights... The process involves re-screening in a resting state to determine a candidate set of historical users. Motion imagery features of each historical user within the candidate set are matched with the target motion imagery features to determine a set of similar historical users and matching weights for each historical user within that set. The initialization and modeling module is configured to: weight the historical covariance matrices of each historical user within the similar set based on the matching weights to determine a prior historical covariance matrix; fuse the target sample covariance matrix with the prior historical covariance matrix to obtain a fused covariance matrix; and construct a classification model required for the current rehabilitation training based on the fused covariance matrix and the motion imagery EEG data.

[0008] In one of the above implementations, the historical user data module includes: a historical user data processing unit configured to: obtain historical static state features and historical motion imagination features corresponding to multiple historical users from the original historical user set, wherein the historical motion imagination features include a first historical motion imagination feature and a second historical motion imagination feature; determine a first change feature based on the first historical motion imagination feature and the historical static state features; determine a second change feature based on the second historical motion imagination feature and the historical static state features; and determine a third change feature based on the first historical motion imagination feature and the second historical motion imagination feature; and a user-level dictionary construction unit configured to: construct a static state dictionary based on the historical static state features; construct a first category dictionary based on the first change feature; construct a second category dictionary based on the second change feature; and construct a third category dictionary based on the third change feature.

[0009] In one of the above implementations, the prior matching module includes: a target user data processing unit, configured to: obtain target resting-state features and target motor imagery features from the target user's resting-state EEG data and motor imagery EEG data, wherein the target motor imagery features include a first target motor imagery feature and a second target motor imagery feature; determine a first target change feature based on the first target motor imagery feature and the target resting-state features; determine a second target change feature based on the second target motor imagery feature and the target resting-state features; and determine a third target change feature based on the first target motor imagery feature and the second target motor imagery feature; and a resting-state filtering unit, configured to: use the target resting-state features as a search... The query vector, using the resting state dictionary as a candidate library, determines the filtering weight corresponding to each historical user in the original historical user set, and determines the candidate historical user set based on the filtering weight; the motion imagery matching unit is configured to: use the candidate historical user set as a first constraint space, construct a first restricted dictionary based on the first category dictionary, construct a second restricted dictionary based on the second category dictionary, construct a third restricted dictionary based on the third category dictionary, and determine the similar historical user set and the matching weight corresponding to each historical user in the candidate historical user set based on the first target change feature, the second target change feature, the third target change feature, the first restricted dictionary, the second restricted dictionary, and the third restricted dictionary.

[0010] In one of the above implementations, the prior matching module further includes: a candidate historical user set determination unit, configured to: arrange the filtering weights in order to determine a filtering threshold, and take each historical user in the original historical user set whose filtering weight is not less than the filtering threshold as a candidate historical user set; and a similar historical user set determination unit, configured to: arrange the matching weights in order to determine a matching threshold, and take each historical user in the candidate historical user set whose matching weight is not less than the matching threshold as a similar historical user set.

[0011] In one of the above implementations, the historical covariance matrix includes a first historical covariance matrix determined based on the first historical motion imagination feature and a second historical covariance matrix determined based on the second historical motion imagination feature; the target sample covariance matrix includes a first target sample covariance matrix corresponding to the first target motion imagination feature and a second target sample covariance matrix corresponding to the second target motion imagination feature; the initialization and modeling module includes: a historical prior covariance matrix construction unit, configured to: use the similar historical user set as the second constraint space, determine the first historical prior covariance matrix based on the matching weight and the first historical covariance matrix corresponding to each historical user in the similar historical user set, based on... The matching weights and the second historical covariance matrices corresponding to each historical user in the set of similar historical users are used to determine the second historical prior covariance matrix. The covariance matrix fusion construction unit is configured to: fuse the first target sample covariance matrix and the first historical prior covariance matrix to obtain a first fusion covariance matrix, and fuse the second target sample covariance matrix and the second historical prior covariance matrix to obtain a second fusion covariance matrix. The classification model construction unit is configured to: determine a spatial filter based on the first fusion covariance matrix and the second fusion covariance matrix, process the motor imagery EEG data according to the spatial filter, extract classification features, and construct the classification model based on the classification features.

[0012] In one of the above implementations, the initialization and modeling module further includes a covariance fusion unit, configured to: determine a fusion ratio based on the number of effective samples obtained by the target user in the current training and a preset decay coefficient; obtain a first fusion covariance matrix based on the fusion ratio, the first target sample covariance matrix, and the first historical prior covariance matrix; and fuse the second target sample covariance matrix and the second historical prior covariance matrix based on the fusion ratio to obtain a second fusion covariance matrix.

[0013] In one of the above implementations, an inbound backtesting evaluation module is also included. This module comprises: a backtesting object set determination unit, configured to: select historical users from the similar historical user set as backtesting objects, and determine a backtesting object set based on the selected backtesting objects; and a model evaluation unit, configured to: select any backtesting object from the backtesting object set as a hypothetical target user, and under a first modeling condition execute the prior matching module and the initialization and modeling module to determine the first classification accuracy of the hypothetical target user; and under a second modeling condition execute the prior matching module and the initialization and modeling module... The modeling module determines the second classification accuracy of the hypothetical target user; based on the first and second classification accuracy of the hypothetical target user, it determines the data entry gain of the current target user for the backtesting object; wherein, the data entry of the current target user includes the target resting state features, the target motion imagery features, and the target sample covariance matrix; the first modeling condition is: the data entry of the current target user is included in the historical user data module; the second modeling condition is: the data entry of the current target user is not included in the historical user data module.

[0014] In one of the above implementations, the backtesting evaluation module further includes a gain tendency determination unit, configured to: denot M as the number of backtesting objects in the backtesting object set whose first classification accuracy is higher than the second classification accuracy when used as hypothetical target users, denot N as the total number of backtesting objects in the backtesting object set, and determine that the data to be added to the current target user meets the data addition conditions when M is greater than or equal to half of N; wherein N is a positive integer and M is a non-negative integer.

[0015] In one of the above implementations, the database backtesting evaluation module further includes a database update unit, configured to: in response to the current target user's pending data meeting the database entry conditions, incorporate the current target user's pending data into the historical user data module, update the original historical user set, and update the user-level dictionary used for resting state filtering and motion imagery matching based on the current target user's pending data.

[0016] In one of the above implementations, the backtesting object set includes a selected backtesting object and a secondary backtesting object. The secondary backtesting object is at least one historical user extracted from the historical users other than the selected backtesting object in the original historical user set.

[0017] Compared with the prior art, this application has the following beneficial effects:

[0018] 1. In this application, the target user only needs to provide a small amount of resting-state EEG data and motor imagery EEG data, and the individualized model can be constructed with the help of prior knowledge of historical users, which can reduce the number of calibration samplings;

[0019] 2. This application reduces negative transfer caused by the participation of irrelevant historical users in the modeling process by using resting state screening and motion image matching within the candidate historical user range;

[0020] 3. The screening weights and matching weights in this application correspond to specific historical users, which facilitates the tracking of the model's prior sources;

[0021] 4. This application improves the stability of class covariance estimation under conditions of a small number of samples by fusing the historical prior covariance matrix and the target sample covariance matrix;

[0022] 5. This application uses backtesting to evaluate and control the updates of the original historical user set, which helps maintain the quality of historical data. Attached Figure Description

[0023] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:

[0024] Figure 1 This is an overall flowchart of a few-sample EEG motor imagery modeling system provided in one embodiment of this application;

[0025] Figure 2 This is a flowchart of prior matching and initialization modeling provided in one embodiment of this application;

[0026] Figure 3 This is a flowchart of a database update provided in one embodiment of this application;

[0027] Figure 4 This is a flowchart of a binary classification rehabilitation training method for left and right hand motor imagery provided in one embodiment of this application.

[0028] In the picture:

[0029] 100 - Historical User Data Module; 200 - Prior Matching Module; 300 - Initialization and Modeling Module; 400 - Data Entry Backtesting and Evaluation Module. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0031] The technical solutions of the various embodiments of this application can be combined with each other, but only if they are based on the ability of a person skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by this application.

[0032] This solution does not aim to obtain disease diagnosis results or health status. Instead, it processes the resting-state EEG data and motor imagery EEG data of the target users and uses them to run a small-sample EEG motor imagery modeling system. All steps are information processing methods implemented by computers and other devices.

[0033] It should be fully understood that the target user information involved in this application (including but not limited to the target user's resting state EEG data and motor imagery EEG data) is all information and data authorized by the target user or fully authorized by all parties. The use of the target user information shall comply with the privacy policies and practices of the industry that are generally considered to meet or exceed the privacy of the target user. The collection, use and processing of related data shall comply with relevant laws, regulations and standards, and provide corresponding operation access points for the target user to choose to authorize or refuse.

[0034] The term "sample" as used in this application refers to the amount of valid calibration data that the target user can provide during the current calibration phase. It should be noted that the specific number of "samples" in this application is related to the number of EEG channels, sampling duration, number of task categories, effective duration of a single trial, and data quality; it is not an absolute number. The term "few samples" in this application refers to a smaller amount of data compared to the amount required to complete a conventional individualized model using only the target user's own data. In one example, the target user provides 30 seconds to 2 minutes of resting-state EEG data and 3 to 10 valid trials for each motor imagery category, which can be considered a few-sample calibration scenario in this application.

[0035] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, specific embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0036] Example 1:

[0037] like Figure 1 As shown, this embodiment provides a few-sample EEG motor imagery modeling system. The system processes data in the following order: historical data preparation, target user prior matching, covariance fusion modeling, and post-training backtesting. It includes a historical user data module 100, a prior matching module 200, and an initialization and modeling module 300, and may further include a backtesting evaluation module 400.

[0038] In one specific implementation, the historical user data module 100 is configured to store the original historical user set, which includes the historical resting state features, historical motion imagination features, and historical covariance matrix corresponding to multiple historical users.

[0039] In one example, historical users can include one or more of the following: stroke users, cerebral hemorrhage users, users who have undergone brain tumor resection, spinal cord injury users, users with other motor dysfunctions, and healthy users.

[0040] In one example, the various features and historical covariance matrices stored in the historical user data module 100 are associated according to the historical user identifier, so that the resting state information, motion imagination information, and category covariance information belonging to the same historical user can be used as user-level priors in subsequent processing. Of course, the historical user data module 100 can also associate and store information such as the cause of injury, injury site, course of disease, and historical model performance of historical users, in order to trace the source of priors.

[0041] In one example, historical EEG data and target user EEG data can employ the same or compatible data processing workflows. This workflow may include bandpass filtering, power frequency notch filtering, rereference, artifact removal, and time window segmentation according to task prompts. Historical resting-state features and target resting-state features may include μ-band power, β-band power, inter-channel covariance, or functional connectivity features for each channel. It should be noted that in this embodiment, the historical EEG data and target user EEG data use the same channel order, feature dimensions, and normalization rules to enable feature reconstruction and covariance fusion.

[0042] In one example, historical motion imagery features and target motion imagery features may include μ-rhythm features, β-rhythm features, spatial covariance features, CSP features (Common Spatial Pattern), filter bank CSP features (i.e., FBCSP, Filer Bank Common Spatial Pattern), or Riemannian features.

[0043] In one specific implementation, the prior matching module 200 is configured to: acquire resting-state EEG data and motor imagery EEG data of the target user; determine the target resting-state features based on the resting-state EEG data; determine the target motor imagery features and the target sample covariance matrix based on the motor imagery EEG data; determine the screening weights corresponding to each historical user in the original historical user set through sparse reconstruction based on the target resting-state features and historical resting-state features; perform resting-state screening based on the screening weights to determine the candidate historical user set; and perform motor imagery matching on the historical motor imagery features and target motor imagery features of the candidate historical users in the candidate historical user set to determine the similar historical user set and the matching weights corresponding to each historical user in the similar historical user set.

[0044] Specifically, resting-state screening is the first stage of the prior matching process, used to narrow down the range of potential historical users based on the resting-state EEG background of the target user and historical users. Motor imagery matching is the second stage of the prior matching process, used to compare the motor imagery-induced changes between the target user and the candidate historical users within the range obtained in the first stage, as well as the differences between different tasks. It should be noted that the names "resting-state screening" and "motor imagery matching" are used to indicate the processing objects and their sequential relationship between the two stages, and do not limit the processing precision of the respective stages.

[0045] In one specific implementation, the initialization and modeling module 300 is configured to: weight the historical covariance matrices corresponding to each historical user in the set of similar historical users based on the matching weights to determine the historical prior covariance matrix; fuse the target sample covariance matrix with the historical prior covariance matrix to obtain a fused covariance matrix; and construct the classification model required for the current rehabilitation training based on the fused covariance matrix and the target user's motor imagery EEG data.

[0046] Specifically, the historical prior covariance matrix represents the covariance matrix obtained by combining the historical covariance matrices of similar historical users according to matching weights; the target sample covariance matrix represents the covariance matrix calculated using the motor imagery EEG data collected from the target user during the current calibration phase; and the fused covariance matrix represents the result of fusing the historical prior covariance matrix and the target sample covariance matrix. Initialization and modeling refer to the preparation and fusion of category covariance information before establishing the classification model.

[0047] Specifically, the target resting state features are first used to determine the candidate historical user set, and the target motion imagery features are then used to determine similar historical users and their matching weights from the candidate historical user set. The matching weights are further used to reconstruct the historical prior covariance matrix. The historical prior covariance matrix and the target sample covariance matrix are fused together to generate spatial filters and classification features, and finally a classification model is constructed. This forms a continuous data transmission chain of resting state screening, motion imagery matching, historical prior covariance matrix construction, covariance fusion, and classification modeling.

[0048] In one specific implementation, such as Figure 1 and Figure 2 As shown, the historical user data module 100 includes a historical user data processing unit and a user-level dictionary construction unit.

[0049] Specifically, the historical user data processing unit is configured to: obtain historical resting state features and historical motion imagination features corresponding to multiple historical users from the original historical user set. The historical motion imagination features include a first historical motion imagination feature and a second historical motion imagination feature. The historical user data processing unit determines a first change feature based on the first historical motion imagination feature and the historical resting state features, determines a second change feature based on the second historical motion imagination feature and the historical resting state features, and determines a third change feature based on the first historical motion imagination feature and the second historical motion imagination feature.

[0050] In one example, for the first in the original historical user set For each historical user, their user-level composite atom can be represented as:

[0051]

[0052]

[0053]

[0054]

[0055] In the formula, Indicates the first Historical inactive characteristics of a historical user; and They represent the first The first and second historical movement imagination characteristics of a historical user; , and These represent the first, second, and third change features, respectively; and Let represent the first historical covariance matrix and the second historical covariance matrix corresponding to the first and second motion imagination categories, respectively.

[0056] Specifically, the first change feature represents the change of the first motion imagery category relative to the resting state, the second change feature represents the change of the second motion imagery category relative to the resting state, and the third change feature represents the difference or separability between the two motion imagery categories. Of course, the third change feature can also be represented by the distance, discriminant ratio, or Riemann distance between the two category features.

[0057] In one example, for a binary classification task involving left and right hand motor imagery, the first historical motor imagery feature could be the left-hand motor imagery feature. The second historical movement imagination feature can be the right-hand movement imagination feature. Accordingly, the first, second, and third change features can be denoted as follows: , and The first historical covariance matrix and the second historical covariance matrix can be denoted as follows: and Of course, for the binary task of motor imagery and resting state of the affected limb, the two categories can also correspond to motor imagery and resting state of the affected limb, respectively, and this application does not limit this.

[0058] The applicant discovered that there can be significant differences in absolute EEG amplitude, background rhythm, and lesion influence among users with brain injuries. Directly comparing the absolute characteristics of motor imagery among different users is easily affected by individual background differences. Therefore, this embodiment uses resting-state characteristics as the background benchmark for the corresponding user and introduces a first variation feature and a second variation feature, thereby reflecting more of the EEG modulation caused by the motor imagery task.

[0059] Specifically, the user-level dictionary construction unit is configured to: construct a resting-state dictionary based on the historical resting-state features corresponding to historical users in the original historical user set; construct a first-category dictionary based on the first change features corresponding to each historical user; construct a second-category dictionary based on the second change features corresponding to each historical user; and construct a third-category dictionary based on the third change features corresponding to each historical user.

[0060] In one example, suppose the original historical user set includes Each historical user can be individually configured:

[0061]

[0062]

[0063]

[0064]

[0065] In the formula, A dictionary representing the resting state. This represents the first category of dictionary. This represents a second-category dictionary. This indicates a third category of dictionary. , , and All are stored column by column according to the same historical user ID, the first... Each column corresponds to the first A historical user.

[0066] In one example, for a binary classification task involving imagining left and right hand movements, , and They can also be denoted as respectively , and Since features in the same column in different dictionaries belong to the same historical user, the weights obtained from the dictionary columns can be directly interpreted as the contribution weights of the corresponding historical users to the reconstruction of the target user's features.

[0067] In one specific implementation, such as Figure 1 and Figure 2 As shown, the prior matching module 200 includes a target user data processing unit, a resting state screening unit, and a motion imagery matching unit.

[0068] Specifically, the target user data processing unit is configured to: acquire target resting-state features and target motor imagery features from the target user's resting-state EEG data and motor imagery EEG data. The target motor imagery features include first target motor imagery features and second target motor imagery features. The target user data processing unit determines first target change features based on the first target motor imagery features and target resting-state features, determines second target change features based on the second target motor imagery features and target resting-state features, and determines third target change features based on the first and second target motor imagery features.

[0069] In one example, the target user's EEG data undergoes the same preprocessing and feature extraction as historical EEG data. The target resting-state features are denoted as... The motion visualization features of the first target and the motion visualization features of the second target are respectively denoted as... and Then we can get:

[0070]

[0071]

[0072]

[0073] In the formula, , and These represent the changing characteristics of the first target, the second target, and the third target, respectively.

[0074] Specifically, the resting state filtering unit is configured to: use the target resting state feature as the query vector and the resting state dictionary as the candidate library to determine the filtering weight corresponding to each historical user in the original historical user set, and determine the candidate historical user set based on the filtering weight.

[0075] In one example, the resting-state sieving unit can be solved for the following optimization problem:

[0076] ,

[0077]

[0078] In the formula, This represents a filtering weight vector that corresponds one-to-one with each historical user in the original historical user set. Indicates the first The contribution weight of each historical user's historical resting-state features to the reconstruction of the target resting-state features. This represents the sparse constraint parameters for resting-state screening. The larger the value, the greater the contribution of the corresponding historical user's resting-state EEG background to the reconstruction of the target user's resting-state EEG background.

[0079] The applicant discovered that the original set of historical users may include data from various sources, such as those with stroke, cerebral hemorrhage, post-brain tumor resection, spinal cord injury, and healthy users. Allowing a large number of dissimilar historical users to participate in feature fitting could introduce irrelevant resting-state background, motor imagery patterns, or covariance structures into the target user model, causing negative transfer. Furthermore, features such as resting-state power, channel covariance, functional connectivity, and changes in motor imagery typically have high dimensionality. Under high-dimensional conditions, complex linear combinations formed by multiple dissimilar historical users may yield smaller mathematical reconstruction errors, but these combinations may not correspond to truly similar EEG patterns. Therefore, the applicant introduced a norm regularization term. A norm constraint is set to concentrate the filtering weights on a smaller number of historical users. This allows the target's resting-state characteristics to be primarily interpreted by a smaller number of historical users, making it easier to trace prior sources.

[0080] Specifically, the motion imagination matching unit is configured as follows: using the candidate historical user set as the first constraint space, constructing a first restricted dictionary based on the first category dictionary, constructing a second restricted dictionary based on the second category dictionary, and constructing a third restricted dictionary based on the third category dictionary; and determining the similar historical user set and the matching weights corresponding to each similar historical user in the similar historical user set based on the first target change features, the second target change features, the third target change features, and the three restricted dictionaries.

[0081] Specifically, the first constraint space is used to restrict the dictionary columns accessed by motion image matching to historical users in the candidate historical user set. Let the candidate historical user set be... Then the first restricted dictionary, the second restricted dictionary, and the third restricted dictionary can be represented as follows: , and Then the motion imagination matching unit can solve the following joint optimization problem:

[0082]

[0083]

[0084] In the formula, This represents the matching weight vector corresponding to each candidate historical user in the candidate historical user set; , and These are the weights of the matching terms corresponding to the first target change feature, the second target change feature, and the third target change feature, respectively. For example, they can all be set to 1. The sparse constraint parameters for the motion imagination matching phase can be set to, for example, 3 to 5.

[0085] , and Shared matching weight vector This subjectes the selected historical users to both changes in the two categories relative to the resting state and the differences between the two categories. In practice, when some historical features are incomplete, joint matching can be completed while retaining the existing feature-corresponding matches, or the weights of the corresponding matches can be adjusted based on the available features.

[0086] In one specific implementation, such as Figure 2 As shown, the prior matching module 200 also includes a candidate historical user set determination unit and a similar historical user set determination unit.

[0087] Specifically, the candidate historical user set determination unit is configured to: arrange the filtering weights corresponding to each historical user in the original historical user set in order to determine the filtering threshold, and take the historical users whose filtering weights are not less than the filtering threshold as the candidate historical user set.

[0088] In one example, the filter weights can be arranged in descending order as follows: Let the number of candidate historical users that need to be retained be... Filtering threshold According to the sorted number Each filtering weight is determined. For example, it can be set as follows: > Make the sorting earlier A historical user can be retained, which can also make and will satisfy Historical users constitute the candidate historical user set:

[0089]

[0090] In one example, the number of candidate historical users This can be determined based on the backtesting results of historical data. Specifically, historical users can be sequentially simulated as new users to be modeled, with the remaining historical users forming a candidate pool, targeting different... The process sequentially executes resting-state screening, motion imagery matching, prior transfer, and classification, comparing the corresponding downstream classification accuracy and computational cost. Based on backtracking validation, It can be set to a positive integer not exceeding 40, such as 20, to avoid introducing redundant data and increasing the subsequent computational burden due to an excessively large range of candidate historical users.

[0091] Specifically, the similar historical user set determination unit is configured to: arrange the matching weights corresponding to each historical user in the candidate historical user set in order to determine the matching threshold, and take the candidate historical users whose matching weights are not less than the matching threshold as the similar historical user set.

[0092] Specifically, the matching weights of candidate historical users can be arranged in descending order as follows: Let the number of similar historical users that need to be retained be... Matching threshold It can be based on the aforementioned screening thresholds. The same method, i.e. based on the sorted first... Each matching weight is determined. In an implementation where a value not less than is used as the comparison relation, the set of similar historical users can be represented as:

[0093]

[0094] Number of similar historical users The settings can be configured to backtest the results based on historical data. In one example... This should be a positive integer not exceeding 5, for example, set to 5, to reduce the computational cost required to construct the historical prior covariance matrix and train the classification model. Non-zero matching weights in the similar historical user set can be normalized before being used in the subsequent construction of the historical prior covariance matrix.

[0095] In one specific implementation, such as Figure 2 As shown, the historical covariance matrix includes a first historical covariance matrix determined based on a first historical motion imagination feature, and a second historical covariance matrix determined based on a second historical motion imagination feature; the target sample covariance matrix includes a first target sample covariance matrix corresponding to the first target motion imagination feature, and a second target sample covariance matrix corresponding to the second target motion imagination feature. The initialization and modeling module 300 includes a historical prior covariance matrix construction unit, a fusion covariance matrix construction unit, and a classification model construction unit.

[0096] In one example, the first and second historical covariance matrices can be calculated from preprocessed EEG data of the corresponding historical users in two motor imagery categories, and stored as prior class covariances for the respective historical users. The first and second target sample covariance matrices are calculated from valid motor imagery EEG data of the target users in the two categories provided during the current calibration phase. All covariance matrices use the same channel arrangement and normalization method to ensure that the historical user covariance matrices and the target user covariance matrices can be fused.

[0097] Specifically, the historical prior covariance matrix construction unit is configured to: use the set of similar historical users as the second constraint space, determine the first historical prior covariance matrix based on the matching weights and the first historical covariance matrix corresponding to each similar historical user in the set of similar historical users; and determine the second historical prior covariance matrix based on the matching weights and the second historical covariance matrix corresponding to each similar historical user.

[0098] In one example, the second constraint space is used to restrict the historical covariance matrix used in constructing the historical prior covariance matrix to historical users in the set of similar historical users. The second constraint space is a further limitation obtained by applying motion-imaginary matching to the first constraint space: the first constraint space corresponds to the candidate historical user set and is used to construct a restricted dictionary and solve for the matching weights; the second constraint space corresponds to the set of similar historical users and is used to construct the category historical prior covariance matrix based on the obtained matching weights.

[0099] In one example, let the set of similar historical users be . The matching weights of each similar historical user are normalized as follows:

[0100]

[0101] Then the first historical prior covariance matrix and the second historical prior covariance matrix can be expressed as follows:

[0102]

[0103]

[0104] In the formula, and They represent the first The first historical covariance matrix and the second historical covariance matrix of similar historical users and Let represent the first historical prior covariance matrix and the second historical prior covariance matrix, respectively.

[0105] In one example, for the binary classification of left and right hand movement imagery, the above matrix can be denoted as follows: and This embodiment applies the same normalized matching weight to both categories, ensuring that the source of the historical prior covariance matrix remains consistent with the similar historical users identified by motion imagery matching.

[0106] Specifically, the fusion covariance matrix construction unit is configured to: fuse the first target sample covariance matrix and the first historical prior covariance matrix to obtain the first fusion covariance matrix; and fuse the second target sample covariance matrix and the second historical prior covariance matrix to obtain the second fusion covariance matrix.

[0107] In one specific implementation, such as Figure 2 As shown, the initialization and modeling module 300 also includes a covariance fusion unit. The covariance fusion unit is configured to: determine the fusion ratio based on the number of effective samples obtained by the target user in the current training and a preset decay coefficient; obtain a first fusion covariance matrix based on the fusion ratio, the first target sample covariance matrix and the first historical prior covariance matrix; and obtain a second fusion covariance matrix based on the fusion ratio, the second target sample covariance matrix and the second historical prior covariance matrix.

[0108] In one example, let the total number of valid motion imagery samples obtained by the target user during the current training be... The preset attenuation coefficient is ,and The fusion ratio corresponding to the historical prior covariance matrix It can be represented as:

[0109]

[0110] Accordingly, the first fusion covariance matrix and the second fusion covariance matrix can be expressed as:

[0111]

[0112]

[0113] In the formula, and Let these represent the covariance matrix of the first target sample and the covariance matrix of the second target sample, respectively. and Let represent the first fusion covariance matrix and the second fusion covariance matrix, respectively. As the total number of valid samples increases... Increase, As the variance decreases monotonically, the proportion of the historical prior covariance matrix decreases, while the proportion of the target user's own sample covariance matrix decreases. This eliminates the need for manual adjustments to the weights of target user data and historical prior data each time.

[0114] In one example It can be set to 14. For a binary classification task involving left and right hand motor imagery, when the target user has 7 valid trials for each hand, the total number of valid samples is... The value is 14, indicating that the target sample covariance matrix and the historical prior covariance matrix have the same fusion ratio; when both the left and right hands have more than 7 valid trials, the target user's own sample covariance matrix gradually becomes dominant. It should be noted that the attenuation coefficient... This is just an example; in reality, the attenuation coefficient... It can be determined based on the number of channels, task type, and historical data backtesting results.

[0115] Specifically, the classification model building unit is configured to: determine a spatial filter based on the first fusion covariance matrix and the second fusion covariance matrix, process the target user's motor imagery EEG data according to the spatial filter, extract classification features, and build a classification model based on the classification features.

[0116] In some examples, the first fusion covariance matrix can be... Second fusion covariance matrix Generalized eigenvalue decomposition is performed to obtain a CSP spatial filter used to enhance the differences between the two motor imagery categories. The input to the CSP spatial filter is the preprocessed motor imagery EEG data collected from the target user during the current calibration phase. Specifically, the system projects the target user's motor imagery EEG data into the space defined by the spatial filter, extracts information such as the variance or log-variance of the projected signal as CSP classification features, and trains a classification model based on these features.

[0117] In some examples, the classification model can be a support vector machine, linear discriminant analysis, logistic regression, sparse representation classifier, or neural network. After the classification model is established, the system can enter the motor imagery rehabilitation training process, using the classification model to identify the motor imagery task currently being performed by the target user, and using the classification results to drive virtual limbs, robotic arms, exoskeletons, functional electrical stimulation devices, or rehabilitation robots.

[0118] In one specific implementation, such as Figure 1 and Figure 3 As shown, the system also includes an inbound backtesting evaluation module 400. The inbound backtesting evaluation module 400 includes a backtesting object set determination unit and a model evaluation unit.

[0119] Specifically, the backtesting object set determination unit is configured to: select historical users from the similar historical user set as backtesting objects, and determine the backtesting object set based on the selected backtesting objects.

[0120] The EEG phenotypes of similar historical users are quite similar to those of the target users, and their data serves as prior data for target user modeling. After adding the target user's EEG data to the original historical user set, using similar historical users as backtesting subjects allows for a comparison of the modeling results of similar historical users before and after adding the target user's EEG data, thereby determining the improvement effect of the target user's EEG data on the modeling of similar historical users.

[0121] In one example, the number of similar historical users retained after motion imagery matching. The number of users can be no more than 5, and all similar historical users can be selected as backtesting targets.

[0122] Specifically, the model evaluation unit is configured to: take any backtesting object in the backtesting object set as a hypothetical target user; under a first modeling condition, execute the prior matching module 200 and the initialization and modeling module 300 to determine the first classification accuracy of the hypothetical target user; under a second modeling condition, execute the prior matching module 200 and the initialization and modeling module 300 to determine the second classification accuracy of the hypothetical target user; based on the first and second classification accuracy of the hypothetical target user, determine the data entry gain of the current target user for the corresponding backtesting object. The first modeling condition is to include the data to be entered into the historical user data module 100, and the second modeling condition is not to include the data to be entered into the historical user data module 100.

[0123] To avoid confusion between different roles, the terms "current target user," "data to be imported," "backtesting object," and "hypothetical target user" mentioned above are explained below:

[0124] The current target users refer to users who have just completed the current exercise imagery rehabilitation training and whose training data is yet to be determined whether to be added to the historical user data module 100.

[0125] The data to be added to the database is obtained from the current training data of the target user and is prepared for the database evaluation. It includes the target resting state features, the target motion imagination features, and the target sample covariance matrix. When it is necessary to update the user-level dictionary, it can also include the first target change features, the second target change features, and the third target change features obtained from the target motion imagination features and the target resting state features.

[0126] The backtesting targets are historical users selected from the original set of historical users to test whether the data to be added to the database can improve the existing modeling effect;

[0127] The hypothetical target user is a temporary role assigned to a backtesting object during the backtesting process. The system treats this backtesting object as a new user that needs to be remodeled using a small number of samples.

[0128] In one example, for each backtesting subject in the backtesting object set, the system can retain only a small amount of resting-state EEG data and a small amount of motor imagery data as calibration data for the hypothetical target user, and use the remaining available motor imagery data as validation data. Specifically, under the first modeling condition, the system temporarily includes the data to be added to the database for the current target user into the historical user data range provided by the historical user data module 100, and then sequentially performs resting-state screening, motor imagery matching, historical prior covariance matrix construction, covariance fusion, classification feature extraction, and classification modeling for the hypothetical target user, and determines the first classification accuracy based on the validation data. Under the second modeling condition, the system does not include the data to be added to the database for the current target user into the historical user data module 100, and performs the above process using the same calibration data, validation data, and parameters for the same hypothetical target user to obtain the second classification accuracy.

[0129] In one example, the difference between the first classification accuracy and the second classification accuracy can be used as the data addition gain of the current target user to the database for the corresponding backtesting object. Specifically, when the first classification accuracy is higher than the second classification accuracy, it means that adding the data of the current target user to the database to the database can improve the modeling effect of the hypothetical target user; otherwise, it means that no positive improvement is observed.

[0130] In one specific implementation, such as Figure 3 As shown, the backtesting object set includes selected backtesting objects and secondary backtesting objects. Secondary backtesting objects are at least one historical user extracted from the original historical user set, excluding the selected backtesting objects.

[0131] Specifically, since secondary backtesting objects were not selected as similar historical users of the current target user by motion imagery matching, they were included in the backtesting object set together with the selected backtesting objects. This allows the backtesting results to reflect the impact of the data to be entered into the database on similar historical users and other historical users, avoiding the conclusion of the database entry being determined solely by a local user group with a high degree of similarity.

[0132] In one specific implementation, such as Figure 3 As shown, the backtesting evaluation module 400 also includes a gain bias determination unit. The gain bias determination unit is configured to record the number of backtesting objects in the backtesting object set whose first classification accuracy is higher than their second classification accuracy when used as hypothetical target users as M, and the total number of backtesting objects in the backtesting object set as N; in response to M being greater than or equal to half of N, it is determined that the data to be added to the database for the current target user meets the data addition conditions. Here, N is a positive integer, and M is a non-negative integer.

[0133] Specifically, the number of backtest objects satisfying the first classification accuracy higher than the second classification accuracy is compared with the total number of backtest objects, such that the data to be stored of the current target user is determined to have a positive gain only when the modeling accuracy of at least half of the backtest objects is improved. If M<N / 2, it is determined that the data to be stored of the current target user temporarily does not meet the storage conditions, and may not be included in the historical user data module 100 for the time being, or the storage backtest may be performed again after the current target user obtains more training data.

[0134] In a specific implementation, as Figure 3 shown, the storage backtest evaluation module 400 further includes a database update unit. The database update unit is configured to, in response to the data to be stored of the current target user meeting the storage conditions, include the data to be stored of the current target user in the historical user data module 100, update the original historical user set, and update the user-level dictionary used for resting-state screening and motor imagery matching based on the data to be stored of the current target user.

[0135] Specifically, the database update unit stores the target resting-state features, target motor imagery features, and target sample covariance matrix of the current target user in association with a new historical user identifier; determines corresponding first change feature, second change feature, and third change feature based on the target motor imagery features and target resting-state features; and writes the target resting-state feature and the three change features as new columns into the resting-state dictionary, the first category dictionary, the second category dictionary, and the third category dictionary. The target sample covariance matrices of the two categories of the target user are stored as the first historical covariance matrix and the second historical covariance matrix of the newly added historical user. Thus, the updated original historical user set can continue to be used for subsequent target users' resting-state screening, motor imagery matching, and historical prior covariance matrix construction.

[0136] Since the present application designs the storage backtest evaluation module 400, the system first compares the downstream classification accuracy before and after adding the data to be stored of the current target user to the historical user data module 100 after each training, and updates the original historical user set only when most backtest objects obtain a positive gain, thereby reducing invalid data or noise data from entering the historical user data module 100. The system thereby forms a closed loop of historical user data preparation, target user two-stage prior matching, covariance fusion modeling, training result output, and post-training historical user data update.

[0137] Embodiment 2:

[0138] As Figure 4 shown, this embodiment takes left-right hand motor imagery binary classification rehabilitation training as an example to illustrate the application process of the above system.

[0139] S101: Prepare historical user data.

[0140] The system pre-acquires resting-state EEG data and left and right hand motor imagery EEG data from multiple historical users. Then, it performs bandpass filtering, notch filtering, rereference, artifact processing, and segmentation according to task prompts on the EEG data of each historical user to extract resting-state features. Left-hand movement imagination characteristics and right-hand motor imagery characteristics .according to , and First, calculate the characteristics of the left hand's relative resting state changes. Characteristics of right-hand relative resting state changes and the differences between the left and right hands Then calculate the left-handed class covariance matrix. and right-handed class covariance matrix .

[0141] The system constructs the above data from each historical user into user-level composite atoms:

[0142]

[0143] Construct a static dictionary based on historical user IDs Left-hand category dictionary Right-hand category dictionary and a dictionary of differences between left and right hands The same columns in all four dictionaries correspond to the same historical user.

[0144] S102: Collect and process small sample EEG data from the target user.

[0145] The target user wore a 16-channel EEG device, and the system selected relevant channels in the motor cortex, including C3, C4, Cz, FC3, FC4, CP3, and CP4, for subsequent processing. The system first collected 60 seconds of resting-state EEG data from the target user, and then collected five trials each of left-hand and right-hand motor imagery. Each trial included a preparation period, a prompting period, a motor imagery period, and a rest period.

[0146] The system performs bandpass filtering (8Hz to 30Hz), notch filtering (50Hz), averaging, and segmentation according to prompting time windows on the target user's resting-state EEG data and motor imagery EEG data, and can also perform artifact removal. The system extracts the target's resting-state features from the processed data. Determine the characteristics of the left hand's relative resting state changes. Characteristics of right-hand relative resting state changes Differences between left and right hands And calculate the covariance matrix of the left-handed target samples. and the covariance matrix of the right-hand target sample .

[0147] S103: Perform resting state screening.

[0148] The system uses the target resting state characteristics For the query vector, use a resting-state dictionary Given a candidate pool, a resting-state filtering optimization problem is solved to obtain filtering weights that correspond one-to-one with each historical user in the original historical user set. The system determines the candidate historical user set based on the ranking of the filtering weights and the filtering threshold. For example, the top 20 historical users by filtering weight can be retained, and the total number of candidate historical users can not exceed 40.

[0149] S104: Perform motion imagery matching.

[0150] The system uses the candidate historical user set as the first constraint space, and starts from the left-hand category dictionary. Right-hand category dictionary Dictionary of differences between left and right hands The system retrieves the dictionary columns corresponding to candidate historical users, forming three restricted dictionaries. The system utilizes... , , Using the aforementioned three restricted dictionaries, a joint optimization problem is solved to obtain the matching weights of candidate historical users, and a set of similar historical users is determined according to these matching weights. For example, the matching results may show that the weights of historical users 5, 12, and 31 are non-zero. The system uses these three historical users as prior sources for the target user and can correlate and read their injury causes, injury sites, disease courses, and historical model performance. The number of similar historical users can not exceed 5.

[0151] S105: Construct the fusion covariance matrix and train the classification model.

[0152] First, the system uses the set of similar historical users as the second constraint space, normalizes the matching weights of historical users 5, 12, and 31, and then weights the left-hand category covariance matrices of the three historical users accordingly to obtain the left-hand historical prior covariance matrix. We obtain the right-handed historical prior covariance matrix by weighting the right-handed category covariance matrices of the three historical users. .

[0153] Next, the system calculates the total number of valid motion imagery samples from the target user. and preset attenuation coefficient Determine the fusion ratio:

[0154] In this embodiment, the target user has 5 valid trials for each of their left and right hands, i.e. =10; when =14, the system performs fusion according to the corresponding fusion ratio to combine with to obtain a left-hand fused covariance matrix, and combines with to obtain a right-hand fused covariance matrix.

[0155] Finally, the system performs CSP generalized eigenvalue decomposition based on the left-hand fused covariance matrix and the right-hand fused covariance matrix to obtain a CSP spatial filter; the CSP spatial filter is used to process the left-hand and right-hand motor imagery EEG data of the target user, extract CSP classification features; and a support vector machine classifier is trained using the CSP classification features to obtain the classification model required for the current rehabilitation training. After the classification model is established, the system enters formal motor imagery rehabilitation training, and can drive virtual limbs, robotic hands, exoskeletons, functional electrical stimulation devices or rehabilitation robots according to the classification results.

[0156] S106: Perform post-training storage and backtesting.

[0157] After the target user completes the current training, the system does not directly write their data into the historical user data module, but takes the target user's target resting-state features, target motor imagery features, and target sample covariance matrix as data to be stored. The system takes the similar historical users determined by motor imagery matching as selected backtest objects, and randomly extracts at least one secondary backtest object from historical users not selected as similar historical users to jointly form a backtest object set.

[0158] For each backtest object in the backtest object set, the system treats it as a hypothetical target user and only retains a small number of training samples of this backtest object for modeling. Under the first modeling condition where the data to be stored of the current target user is temporarily incorporated into the historical user data module, the system performs prior matching, historical prior covariance matrix construction, covariance fusion, CSP feature extraction, and classification modeling to obtain the first classification accuracy; then under the second modeling condition where the data to be stored of the current target user is not incorporated into the historical user data module, the system uses the same data division and processing parameters to execute the above process to obtain the second classification accuracy.

[0159] The system records the number of backtest objects whose first classification accuracy is higher than the second classification accuracy as M, and the total number of backtest objects as N. When M≥N / 2, the system determines that the data to be stored meets the storage conditions, incorporates the data to be stored of the current target user as new historical user data into the historical user data module, and updates the original historical user set and the four user-level dictionaries; when M<N / 2, the system temporarily does not incorporate the data to be stored of the current target user into the historical user data module, or waits for the target user to obtain more training data before performing backtesting again.

[0160] The above embodiments illustrate the implementation method for a binary classification task involving left and right hand motor imagery. This application can also be used for classifying motor imagery of the affected limb with resting state, classifying foot motor imagery with resting state, or other combinations of motor imagery tasks. Without changing the historical user feature preparation, two-stage prior matching, historical prior covariance matrix construction, covariance fusion, and the relationship between the input and backtesting data, the EEG channels, frequency bands, classifier type, and rehabilitation feedback devices can be adjusted according to the specific task.

[0161] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0162] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A few-sample EEG motor imagery modeling system, characterized in that, include: The historical user data module is configured to store the original historical user set, which includes the historical resting state features, historical motion imagination features, and historical covariance matrix corresponding to multiple historical users. The prior matching module is configured to: acquire resting-state EEG data and motor imagery EEG data of the target user; determine target resting-state features based on the resting-state EEG data; determine target motor imagery features and target sample covariance matrix based on the motor imagery EEG data; determine the screening weights corresponding to each historical user in the original historical user set through sparse reconstruction based on the target resting-state features and the historical resting-state features; perform resting-state screening based on the screening weights to determine a candidate historical user set; perform motor imagery matching on the historical motor imagery features of each historical user in the candidate historical user set and the target motor imagery features to determine a similar historical user set and the matching weights corresponding to each historical user in the similar historical user set. The initialization and modeling module is configured to: weight the historical covariance matrix corresponding to each historical user in the similar historical user set based on the matching weight, determine the historical prior covariance matrix, fuse the target sample covariance matrix with the historical prior covariance matrix to obtain the fused covariance matrix, and construct the classification model required for the current rehabilitation training based on the fused covariance matrix and the motor imagery EEG data.

2. The system according to claim 1, characterized in that, The historical user data module includes: The historical user data processing unit is configured to: obtain historical resting state features and historical motion imagination features corresponding to multiple historical users from the original historical user set, wherein the historical motion imagination features include a first historical motion imagination feature and a second historical motion imagination feature; determine a first change feature based on the first historical motion imagination feature and the historical resting state features; determine a second change feature based on the second historical motion imagination feature and the historical resting state features; and determine a third change feature based on the first historical motion imagination feature and the second historical motion imagination feature. The user-level dictionary construction unit is configured to: construct a resting-state dictionary based on the historical resting-state features, construct a first-category dictionary based on the first change features, construct a second-category dictionary based on the second change features, and construct a third-category dictionary based on the third change features.

3. The system according to claim 2, characterized in that, The prior matching module includes: The target user data processing unit is configured to: acquire target resting-state features and target motor imagery features from the resting-state EEG data and motor imagery EEG data of the target user, wherein the target motor imagery features include a first target motor imagery feature and a second target motor imagery feature; determine a first target change feature based on the first target motor imagery feature and the target resting-state features; determine a second target change feature based on the second target motor imagery feature and the target resting-state features; and determine a third target change feature based on the first target motor imagery feature and the second target motor imagery feature. The resting state filtering unit is configured to: use the target resting state feature as the query vector and the resting state dictionary as the candidate library to determine the filtering weight corresponding to each historical user in the original historical user set, and determine the candidate historical user set based on the filtering weight; The motion imagery matching unit is configured to: use the candidate historical user set as a first constraint space, construct a first restricted dictionary based on the first category dictionary, construct a second restricted dictionary based on the second category dictionary, construct a third restricted dictionary based on the third category dictionary, and determine the matching weights corresponding to each historical user in the similar historical user set and the candidate historical user set based on the first target change feature, the second target change feature, the third target change feature, the first restricted dictionary, the second restricted dictionary, and the third restricted dictionary.

4. The system according to claim 3, characterized in that, The prior matching module also includes: The candidate historical user set determination unit is configured to: arrange the filtering weights in order to determine the filtering threshold, and take each historical user in the original historical user set whose filtering weight is not less than the filtering threshold as the candidate historical user set; The similar historical user set determination unit is configured to: arrange the matching weights in order to determine the matching threshold, and take each historical user in the candidate historical user set whose matching weight is not less than the matching threshold as the similar historical user set.

5. The system according to claim 3, characterized in that, The historical covariance matrix includes a first historical covariance matrix determined based on the first historical motion imagination feature and a second historical covariance matrix determined based on the second historical motion imagination feature; the target sample covariance matrix includes a first target sample covariance matrix corresponding to the first target motion imagination feature and a second target sample covariance matrix corresponding to the second target motion imagination feature; The initialization and modeling module includes: The historical prior covariance matrix construction unit is configured to: take the set of similar historical users as the second constraint space, determine the first historical prior covariance matrix based on the matching weight and the first historical covariance matrix corresponding to each historical user in the set of similar historical users, and determine the second historical prior covariance matrix based on the matching weight and the second historical covariance matrix corresponding to each historical user in the set of similar historical users. The covariance matrix fusion unit is configured to: fuse the first target sample covariance matrix and the first historical prior covariance matrix to obtain a first fusion covariance matrix, and fuse the second target sample covariance matrix and the second historical prior matrix to obtain a second fusion covariance matrix. The classification model construction unit is configured to: determine a spatial filter based on the first fusion covariance matrix and the second fusion covariance matrix; process the motor imagery EEG data according to the spatial filter; extract classification features; and construct the classification model based on the classification features.

6. The system according to claim 5, characterized in that, The initialization and modeling module also includes: The covariance fusion unit is configured to: determine the fusion ratio based on the number of effective samples obtained by the target user in the current training and a preset decay coefficient; obtain the first fusion covariance matrix based on the fusion ratio, the first target sample covariance matrix and the first historical prior covariance matrix; and fuse the second target sample covariance matrix and the second historical prior covariance matrix based on the fusion ratio to obtain the second fusion covariance matrix.

7. The system according to claim 1, characterized in that, It also includes an inbound backtesting evaluation module, which includes: The backtesting object set determination unit is configured to: select historical users in the similar historical user set as backtesting objects, and determine the backtesting object set based on the selected backtesting objects; The model evaluation unit is configured to: take any backtesting object from the backtesting object set as a hypothetical target user; under a first modeling condition, execute the prior matching module and the initialization and modeling module to determine the first classification accuracy of the hypothetical target user; under a second modeling condition, execute the prior matching module and the initialization and modeling module to determine the second classification accuracy of the hypothetical target user; and based on the first and second classification accuracy of the hypothetical target user, determine the data entry gain result of the current target user for the backtesting object. The data to be added to the database for the current target user includes the target resting state features, the target motion imagination features, and the target sample covariance matrix. The first modeling condition is: to include the data of the current target user to be added to the database into the historical user data module; The second modeling condition is: the pending data of the current target user has not been included in the historical user data module.

8. The system according to claim 7, characterized in that, The inbound backtesting evaluation module also includes: The gain bias determination unit is configured to: denote the number of backtesting objects in the backtesting object set whose first classification accuracy is higher than the second classification accuracy when used as hypothetical target users as M, denote the total number of backtesting objects in the backtesting object set as N, and determine that the data to be added to the database for the current target user meets the database entry conditions when M is greater than or equal to half of N; wherein N is a positive integer and M is a non-negative integer.

9. The system according to claim 8, characterized in that, The inbound backtesting evaluation module also includes: The database update unit is configured to: in response to the current target user's pending data meeting the entry conditions, incorporate the current target user's pending data into the historical user data module, update the original historical user set, and update the user-level dictionary used for resting state filtering and motion imagery matching based on the current target user's pending data.

10. The system according to claim 7, characterized in that, The backtesting object set includes selected backtesting objects and secondary backtesting objects. The secondary backtesting objects are at least one historical user extracted from the historical users other than the selected backtesting objects in the original historical user set.