Cross-domain EEG feature distribution alignment method, device, computer equipment and medium

Using convolutional neural networks and generalized low-rank decomposition technology to extract spatiotemporal features in EEG signal analysis, combined with the iterative feature alignment algorithm, solves the problem of neglecting the spatiotemporal structure in the existing technology, and achieves high-quality EEG signal alignment and Pattern prediction improves the application capabilities of EEG technology.

CN118410283BActive Publication Date: 2024-09-20XIAOZHOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410866607.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-20
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Existing cross-domain alignment methods ignore spatiotemporal structural characteristics in EEG signal analysis, resulting in insufficient accuracy in pattern recognition and intention prediction, making it difficult to effectively alleviate individual differences and affecting the general recognition of EEG patterns.

Method used

The convolutional neural network is used to extract the global spatiotemporal features of the EEG data, and the features are decomposed into low-rank and sparse components through generalized low-rank approximate decomposition. Expert knowledge is combined for functional interpretation, and iterative feature alignment algorithm is combined to maintain the spatiotemporal structural features while maintaining the features. Achieve distribution alignment of source domain and target domain data.

Benefits of technology

It improves the ability to analyze the spatiotemporal features of EEG signals, achieves high-quality alignment of EEG feature distribution across individuals, enhances the generalization ability of the cognitive state recognition model, can predict the future evolution trend of EEG patterns, and expands the application of EEG technology in Applications in intelligent interactive systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118410283B
    Figure CN118410283B
Patent Text Reader

Abstract

The present application discloses a cross-domain EEG feature distribution alignment method, device, computer equipment and medium. The method obtains standard EEG data and label information by acquiring original EEG data to be aligned and performing preprocessing; constructs an EEG data matrix according to the time point information and channel information corresponding to the standard EEG data and inputs it into a preset convolutional neural network, and outputs global features corresponding to the EEG data matrix; inputs the global features into a preset generalized low-rank approximate decomposition model to decompose them into low-rank components and sparse components, performs feature selection on the low-rank components and the sparse components respectively, calculates similarity information between the output low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data respectively, and determines target feature channel data in the low-rank feature channel data and the sparse feature channel according to the similarity information; and performs feature distribution alignment of cross-domain data on the target feature channel data according to an iterative feature alignment algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of brain-computer interface technology, and in particular to a method, device, computer equipment and medium for aligning cross-domain EEG feature distribution. Background Art

[0002] At present, there are still many challenges in applying EEG signal technology to actual human-computer interaction scenarios. First, EEG signals are weak bioelectric signals, which are easily interfered by environmental electromagnetic noise, physiological noise (such as electrooculography, electromyography, etc.) and the noise of the measurement equipment itself. Effective preprocessing methods (such as filtering, denoising, baseline correction, etc.) are needed to improve signal quality. Secondly, there are large differences in EEG signals between different individuals. This individual difference comes from the complexity of brain structure and function, which brings difficulties to the universal recognition of EEG patterns. Therefore, it is necessary to develop cross-domain data alignment technology to bridge the differences in EEG signal distribution between different individuals.

[0003] Existing cross-domain alignment methods have indeed played a certain role in alleviating individual differences and improving the generalization ability of EEG signal analysis. However, most of them only consider the overall distribution alignment of the source domain and target domain data, ignoring the spatiotemporal structural characteristics of the EEG signal itself. In fact, as a time series signal, EEG signals not only have overall distribution characteristics, but also have unique structural patterns in time and space (i.e., signal channels). These structural patterns are of great significance for reflecting human cognitive processes and behavioral decisions. Therefore, it is necessary to develop new cross-domain alignment technologies that can achieve distribution alignment of source domain and target domain data while maintaining the spatiotemporal structural characteristics of EEG signals, and further improve the accuracy of pattern recognition and intention prediction. Summary of the invention

[0004] This application provides a cross-domain EEG feature distribution alignment method, which aims to solve the problem that the existing cross-domain alignment method only considers the overall distribution alignment of the source domain and target domain data, and ignores the spatiotemporal structural characteristics of the EEG signal itself. The provided method can achieve the distribution alignment of the source domain and target domain data while maintaining the spatiotemporal structural characteristics of the EEG signal, further improving the accuracy of pattern recognition and intent prediction.

[0005] In a first aspect, the present application provides a cross-domain EEG feature distribution alignment method, comprising:

[0006] Obtain the original EEG data to be aligned, preprocess the original EEG data, and obtain standard EEG data and label information;

[0007] According to the time point information and channel information corresponding to the standard EEG data, an EEG data matrix corresponding to the original EEG data is constructed;

[0008] Input the EEG data matrix into the preset convolutional neural network and output the global features corresponding to the EEG data matrix;

[0009] Input the global features into a preset generalized low-rank approximate decomposition model, decompose the global features into low-rank components and sparse components, perform feature selection on the low-rank components and sparse components respectively, and output low-rank feature channel data and sparse feature channel data;

[0010] Respectively calculating similarity information between low-rank feature channel data and sparse feature channel data and preset expert knowledge data, and determining target feature channel data in the low-rank feature channel data and the sparse feature channel according to the similarity information;

[0011] According to the iterative feature alignment algorithm, the feature distribution of the target feature channel data is aligned across domains, and the aligned target feature channel data is output; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, thus completing the feature distribution alignment of the original EEG data.

[0012] In a second aspect, the present application provides a cross-domain EEG feature distribution alignment device, comprising:

[0013] A data acquisition module is used to acquire the original EEG data to be aligned, pre-process the original EEG data, and acquire standard EEG data and label information;

[0014] A matrix construction module, used to construct an EEG data matrix corresponding to the original EEG data according to the time point information and channel information corresponding to the standard EEG data;

[0015] A feature output module, used to input the EEG data matrix into a preset convolutional neural network and output the global features corresponding to the EEG data matrix;

[0016] A feature decomposition module, used for inputting the global feature into a preset generalized low-rank approximate decomposition model, decomposing the global feature into a low-rank component and a sparse component, performing feature selection on the low-rank component and the sparse component respectively, and outputting low-rank feature channel data and sparse feature channel data;

[0017] A similarity calculation module, used to calculate first similarities between the low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data, and determine target feature channel data in the low-rank feature channel data and the sparse feature channel according to the first similarity;

[0018] A data alignment module is used to align the feature distribution of the target feature channel data across domains according to an iterative feature alignment algorithm, and output the aligned target feature channel data; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, completing the feature distribution alignment of the original EEG data.

[0019] In a third aspect, the present application provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement any step of the cross-domain EEG feature distribution alignment method provided in the embodiments of the present application when executing the computer program.

[0020] In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor enables the processor to implement the steps of any cross-domain EEG feature distribution alignment method provided in the embodiments of the present application.

[0021] Compared with the prior art, this application has at least the following beneficial effects:

[0022] 1. Improved the ability to analyze the spatiotemporal features of EEG signals. This scheme adopts a hierarchical spatiotemporal feature extraction and encoding strategy, which can analyze and characterize the cognitive dynamics information contained in EEG signals with high fidelity. First, the original EEG data is encoded using a convolutional neural network to extract global spatiotemporal features. Then, the global features are divided into large-scale low-rank components and small-scale sparse components through generalized low-rank decomposition to capture slow-changing and sudden changes, respectively. Finally, these two types of features are functionally interpreted based on expert knowledge, thereby giving the features spatiotemporal semantics. This hierarchical extraction and interpretation strategy enables the scheme to efficiently mine the multi-scale spatiotemporal patterns contained in EEG signals, providing high-quality feature support for subsequent cognitive state classification and prediction tasks.

[0023] 2. Achieve high-quality alignment of EEG feature distribution across individuals. Individual differences lead to differences in the temporal and spatial distribution of EEG signals of different individuals, which brings challenges to EEG-based pattern recognition. This solution introduces an iterative feature alignment algorithm, and uses techniques such as kernel mean matching to align the feature distribution of source domain labeled data with target domain unlabeled data, minimizing the impact of individual differences. At the same time, alignment quality evaluation and feedback optimization ensure that the alignment effect is reliable. High-quality feature distribution alignment greatly improves the generalization ability of cognitive state recognition models and is the key to achieving personalized human-computer interaction.

[0024] 3. Establish a cognitive dynamics time series prediction model. Based on spatiotemporal features and aligned distribution, the scheme constructs a gated recurrent unit (GRU) time series model, which can predict the future evolution trend of large-scale low-rank and small-scale sparse EEG patterns, and provide support for intelligent interactive system adjustment strategies, forward-looking interactions, etc. By decoding the time series prediction output, it can also predict the user's possible future control intentions and emotional states, and has the ability to "predict" the user's expected behavior, expanding the application scenarios of EEG technology.

[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of a cross-domain EEG feature distribution alignment method shown in an embodiment of the present application;

[0027] Figure 2 This is a schematic diagram of the structure of a cross-domain EEG feature distribution alignment device shown in an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0030] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0031] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0032] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0033] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0034] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0035] The technical solution of the embodiment of the present application is introduced below.

[0036] With the continuous development of emerging technologies such as artificial intelligence, virtual reality, and brain-computer interface, human-computer interaction methods are becoming more diversified and intelligent. Among them, human-computer interaction technology based on EEG signals has attracted much attention because it can directly reflect the cognitive activities of the human brain and provide a new way to accurately grasp user intentions. However, there are still many challenges in applying EEG signal technology to actual human-computer interaction scenarios. First, EEG signals are a weak bioelectric signal that is easily interfered by environmental electromagnetic noise, physiological noise (such as electrooculography, electromyography, etc.) and the noise of the measurement equipment itself. Effective preprocessing methods (such as filtering, denoising, baseline correction, etc.) are needed to improve signal quality. Secondly, there are large differences in EEG signals between different individuals. This individual difference comes from the complexity of brain structure and function, which brings difficulties to the universal recognition of EEG patterns. Therefore, it is necessary to develop cross-domain data alignment technology to bridge the differences in EEG signal distribution between different individuals.

[0037] In response to the above challenges of cross-domain data alignment, domestic and foreign scholars have proposed some useful explorations. A common approach is to use domain-adaptive transfer learning algorithms to minimize the data distribution differences between the source domain (i.e., labeled EEG data) and the target domain (i.e., unlabeled EEG data). For example, some kernel methods based on maximum mean deviation can explicitly reduce the distribution differences of reconstructed features between the source and target domain data. Another type of method is a domain adaptation model based on a generative adversarial network, which learns domain-invariant feature representations through adversarial training to align the data distribution of the source and target domains. In addition, there are some subspace-based alignment methods that use kernel techniques to map the data of the source and target domains into a potential reproducing kernel Hilbert space so that they have smaller distribution differences in the new subspace.

[0038] These existing cross-domain alignment methods have indeed played a certain role in alleviating individual differences and improving the generalization ability of EEG signal analysis. However, most of them only consider the overall distribution alignment of the source domain and target domain data, ignoring the spatiotemporal structural characteristics of the EEG signal itself. In fact, as a time series signal, EEG signals not only have overall distribution characteristics, but also have unique structural patterns in time and space (i.e., signal channels). These structural patterns are of great significance for reflecting human cognitive processes and behavioral decisions. Therefore, it is necessary to develop new cross-domain alignment technologies that can achieve distribution alignment of source domain and target domain data while maintaining the spatiotemporal structural characteristics of EEG signals, and further improve the accuracy of pattern recognition and intention prediction.

[0039] Please refer to Figure 1 , Figure 1 A schematic diagram of a cross-domain EEG feature distribution alignment method provided in an embodiment of the present application. The cross-domain EEG feature distribution alignment method of the embodiment of the present application can be applied to computer devices, including but not limited to smart phones, laptops, tablet computers, desktop computers, physical servers, cloud servers and other devices. Figure 1 As shown, the cross-domain EEG feature distribution alignment method of this embodiment includes steps S101 to S106, which are described in detail as follows:

[0040] Step S101, obtaining the original EEG data to be aligned, preprocessing the original EEG data, and obtaining standard EEG data and label information.

[0041] Specifically, the computer device obtains multi-channel EEG data collected from human-computer interaction products, as well as related user operation data and subjective feedback data, and pre-processes the original EEG data to obtain standard EEG data with labels.

[0042] In some embodiments, the preprocessing of the raw EEG data includes: performing a wavelet transform on the raw EEG data to remove electromagnetic noise from the raw EEG data; separating physiological noise from the raw EEG data based on a preset separation algorithm; removing the drift baseline of the raw EEG data to complete baseline correction of the raw EEG data; inputting the raw EEG signal into an adaptive artifact removal filter to remove motion artifact components of the raw EEG data, and outputting the final preprocessed standard EEG data and the label information.

[0043] This application uses N (N≥8) channel EEG acquisition equipment to synchronously record the EEG activities of multiple brain regions such as the frontal lobe, parietal lobe, occipital lobe, and temporal lobe. The sampling frequency is fs (fs≥250Hz) and the digital quantization accuracy is 16 bits or higher, thereby obtaining N channels of raw EEG data xi(t) (i=1,2,...,N; t=1,2,...,T). After obtaining the above multi-source heterogeneous data, the raw EEG data is preprocessed as follows:

[0044] 1). Eliminate electromagnetic noise interference. Use wavelet transform to decompose each EEG data xi(t) into different scale coefficients. Assume that the wavelet basis function is φj,k(t) and the corresponding wavelet coefficient is aji,k, then:

[0045] yi(t)=∑kjφj,k(t)aji,k.

[0046] Among them, the real label information of the i-th sample is processed by soft threshold or hard threshold on the wavelet coefficient aji,k to eliminate the electromagnetic noise component and reconstruct the denoised EEG data yi'(t).

[0047] 2). Separate physiological noise. Construct a mixed model of the measurement matrix X=AS, where X is the measurement matrix of M×T (M≤N), A is the mixed matrix of M×(M+P), S is the source matrix of (M+P)×T, and P is the number of noise sources. Use blind source separation algorithms such as independent component analysis to estimate A and S, thereby separating the EEG signal source from physiological noise sources such as electrooculography and electromyography.

[0048] 3) Eliminate baseline drift. For the EEG data of the i-th channel yi'(t), use the M-order polynomial Pi(t) to fit its drift baseline fi(t), that is, fi(t)≈Pi(t), and subtract the fitted drift baseline Pi(t) from yi'(t) to obtain the baseline-corrected data zi(t)=yi'(t)-Pi(t).

[0049] 4) Optimized preprocessing for specific scenarios. In the virtual reality application scenario, the integrated gyroscope data is used to construct an adaptive artifact removal filter to eliminate the motion artifact component introduced by head movement from zi(t). The final output is the preprocessed N-channel EEG data zi(t) (i=1,2,...,N), as well as the corresponding user operation behavior data and subjective feedback data.

[0050] Step S102, constructing an EEG data matrix corresponding to the original EEG data according to the time point information and channel information corresponding to the standard EEG data.

[0051] Specifically, each channel of time series data zi(t) is first concatenated into a row vector zi=[zi(1),zi(2),...,zi(T)] according to the time point, where zi(t) is the sampling value of the i-th channel at time point t. Then the row vectors of all channels are stacked vertically in channel order to form an N×T-dimensional matrix Z=[z1;z2;...;zN]T, that is, the i-th row of Z is the time series data zi of the i-th channel. During the construction process, attention should be paid to the consistency of the channel order to ensure that different rows in Z correspond to the data of the same brain region, for example, the first row corresponds to the frontal lobe, the second row corresponds to the parietal lobe, etc. In the constructed Z matrix, each row zi corresponds to a brain region, and each column corresponds to the sampling values ​​of all brain regions at a specific time point t, thereby converting the original one-dimensional time series data into a two-dimensional matrix form, reflecting the dual change pattern of EEG signals in time and space. Since the sampling time of different channels may have a slight offset, Z needs to be time-aligned. The goal of time alignment is to make all channel data in the same column (i.e., the same time point) in Z sampled synchronously, eliminating the time offset between channels. The time alignment method uses the cross-correlation function to calculate the time lag τij between any two channels zi and zj, and performs translation correction on the channels with time offset, that is, zi'(t)=zi(t+τij), where zi' is the i-th data after time alignment. By performing time correction on all channels, the EEG matrix Z'=[z1';z2';...;zN']T after time alignment can be obtained. In addition to time alignment, spatial alignment is also required to eliminate the differences in brain spatial structure between different individuals and map the EEG data of each individual into a unified functional space coordinate system. The spatial alignment method based on functional similarity is as follows:

[0052] 1). Build a multi-body reference EEG template library. Collect a batch of EEG data of typical individuals when performing specific cognitive tasks as a reference data set, perform unsupervised clustering on these data, and obtain K EEG template clusters {C1, C2, ..., CK}. Each template cluster Ck contains multiple body data with similar functional activation patterns.

[0053] 2). Calculate the similarity between the individual to be aligned and each template cluster. For the EEG matrix Z' of the individual to be aligned, calculate the similarity Si,k between it and each template cluster Ck, for example, using the convolution kernel similarity metric Si,k=∑j∈Ckκ(zi',zj), where κ(·) is the Gaussian kernel function κ(x,y)=exp(-||xy||2 / 2σ2), etc.

[0054] 3). Determine the most matching template cluster. Select the template cluster Ck* that is most similar to Z', that is, k*=argmaxkSi,k, and map Z' to the functional space coordinate system corresponding to Ck. 4) Refine the mapping transformation. Find the most similar individual zj* in Ck, construct a nonlinear mapping ψ from Z' to zj*, that is, ZS=ψ(Z'), and output the standardized EEG matrix ZS=[z1S;z2S;...;zNS]T, where ziS is the i-th standardized EEG data. This functional similarity matching method does not need to rely on anatomical information, but is directly based on functional activation pattern mapping, and can be applied to various EEG acquisition scenarios. The aligned ZS eliminates the influence of individual differences and time offset, laying the foundation for subsequent extraction and modeling.

[0055] The above time and space alignment order can be interchangeable, or only one of them can be performed, depending on the data characteristics and analysis requirements. In addition, the compensation effect of head movement needs to be considered in the scenario of mobile interactive products. In general, the above steps reconstruct the preprocessed one-dimensional EEG time series data into a two-dimensional matrix ZS, in which each row corresponds to the data of a brain region, and each column corresponds to the sampling value of all brain regions at a specific time point, thereby reflecting the dual change pattern of the signal in time and space, providing structured input for subsequent analysis. It is worth mentioning that ZS not only provides data form for model construction, but also contains rich brain function dynamics information. For example, the data of each time point and channel in ZS can be regarded as a local spatial or temporal pattern, reflecting the fine-grained activation state of the collective neurons; and mapping ZS to the brain function network can capture the macroscopic evolution law of the overall brain dynamics, providing support for the multi-scale interpretation of cognitive processing mechanisms. The subsequent feature extraction, pattern recognition and cognitive modeling lay the data foundation.

[0056] Step S103, input the EEG data matrix into a preset convolutional neural network, and output the global features corresponding to the EEG data matrix.

[0057] Specifically, the input is the standardized EEG matrix ZS∈RN×T output by the above steps, where N is the number of EEG channels and T is the number of time points. First, reshape ZS into a three-dimensional tensor in the form of [C, H, W], where C=1 is the number of channels (for single-channel input), H=N is the height (number of EEG channels), and W=T is the width (number of time points). Then, a convolutional neural network with the following layers is constructed to encode the three-dimensional tensor:

[0058] 1). Convolutional layer. This layer contains L1 two-dimensional convolutional kernels {W1,k} (k = 1, 2,..., L1), and the size of the convolutional kernel is K1×K1 (K1 << N, T). The convolutional kernel W1,k performs a sliding window convolution on the input tensor X1 through weight sharing, that is, Y1,k = W1,k * X1 + b1,k, where b1,k is the bias term, * represents the two-dimensional convolution operation, and Y1,k is the output feature map. Strategies such as zero-padding are adopted to ensure that the output size is the same as the input. This layer outputs L1 feature maps {Y1,k}.

[0059] 2). Batch normalization layer. Normalize each feature map Y1,k to improve the training stability.

[0060] 3). Activation layer. Apply activation functions such as ReLU to enhance the network's non-linear fitting ability.

[0061] 4). Pooling layer. Adopt the max-pooling operation, with the pooling kernel size of P1×P1 and the stride of S1, to downsample the feature map, and the output size is [L1, H / S1, W / S1].

[0062] 5). Repeat the convolutional layer, batch normalization layer, activation layer, and pooling layer to construct a multi-level feature extraction network. Suppose the l-th layer contains Ll convolutional kernels {Wl,k} (k = 1, 2,..., Ll), the convolutional kernel size is Kl×Kl, the pooling kernel size is Pl×Pl, and the stride is Sl. Then the input of this layer is a three-dimensional tensor of size [Ll-1, Hl-1, Wl-1], and the output is a set of feature maps of [Ll, Hl / Sl, Wl / Sl]. Through layer-by-layer stacking, the network extracts spatio-temporal feature patterns from small scales to large scales.

[0063] 6). Fully connected layer. This layer integrates all local feature maps into a global feature vector, containing N×T neurons. The connection weight is Wf ∈ R(N×T)×D, and the bias is bf ∈ RD, where D is the output dimension of the fully connected layer.

[0064] The last layer of convolutional feature map set {YL,k} (k=1,2,...,LL) is flattened to obtain x∈RN×T. Then the global feature vector y=Wfx+bf∈RD is calculated, which integrates local and global information of multiple channels and multiple time scales. The above CNN is trained in an end-to-end manner. Using an annotated EEG dataset containing enough instances, the convolution kernel parameters {Wl,k} and the fully connected layer parameters Wf and bf are automatically learned through optimization algorithms such as gradient descent. The model objective is to minimize the loss function L(θ)=∑i||yi-ŷi||2, where yi is the true label of the i-th sample, ŷi is the CNN output, and θ={Wl,k,Wf,bf} is the set of all trainable parameters. The final CNN output y is used as the global spatiotemporal feature encoding of the input ZS in the above step, providing high-quality feature representation for subsequent steps. In this CNN model, the lower convolution kernel captures small-scale patterns in time and channel dimensions, such as Gaussian waves and sharp waves, while the upper layer comprehensively extracts large-scale dynamic features, such as slow waves and sawtooth waves. The global feature vector y integrates local and global information at multiple scales and can efficiently model complex EEG dynamics.

[0065] Step S104, input the global features into a preset generalized low-rank approximate decomposition model, decompose the global features into low-rank components and sparse components, perform feature selection on the low-rank components and sparse components respectively, and output low-rank feature channel data and sparse feature channel data.

[0066] Specifically, the input is the global spatiotemporal feature y∈RD output from the above steps, where D is the dimension of the global feature, and y can be regarded as a D×T matrix, with each column being a global feature vector at a time point. Since EEG signals have large-scale slowly changing patterns and small-scale mutation patterns, it is necessary to decompose y into a low-rank component L and a sparse component S that can capture these two patterns respectively, that is, y≈L+S.

[0067] The generalized low-rank approximate decomposition model used specifically first constructs the objective function: min||L||∗+λ||S||1,sty=L+S, where ||·||∗ is the nuclear norm, which is used to introduce low-rank constraints to L so that L can capture slow changes on a large scale; ||·||1 is the L1 norm, which is used to introduce sparse constraints to S so that S can describe small-scale mutations; λ>0 is a hyperparameter that weighs the two constraints. The objective function can also be equivalently expressed as: min||yLS|| F 2 +α||L||∗+β||S||1, where ||·|| F is the Frobenius norm, α and β are regularization coefficients.

[0068] Since the objective function is a non-smooth and non-convex combinatorial function optimization problem, it cannot be solved directly and an iterative optimization algorithm is required. The specific generalized approximate decomposition algorithm is as follows:

[0069] 1) Initialize L0=y,S0=0,t=0.

[0070] 2) Given yt=y-St, solve min||yt-L|| F 2 +α||L||∗, and obtain the update of the low-rank component Lt+1: Lt+1=UDα(Σ)VT, where UΣVT is the compact singular value decomposition of yt, and Dα(x)=sgn(x)max(|x|-α,0) is the soft threshold shrinkage operator.

[0071] 3) When Lt+1 is given, solve min||y-Lt+1-S|| F 2 +β||S||1, and get the update of the sparse component St+1: St+1=Tβ(y-Lt+1), where Tβ is the soft threshold operator, Tβ(x)=sgn(x)max(|x|-β,0).

[0072] 4) Check the convergence condition ||Lt+1-Lt|| F / ||Lt|| F <ε and ||St+1-St|| F / ||St|| F <ε is satisfied, where ε is the set convergence threshold. If it is satisfied, then output L=Lt+1, S=St+1 and terminate the iteration; otherwise, set t=t+1, return to the above steps and continue the iteration.

[0073] In each iteration, the algorithm first fixes S and uses partial singular value decomposition to solve L; then fixes a new L and uses soft threshold shrinkage to solve S, alternating between the two. The algorithm can be proven to converge to the local optimal solution of the original objective function.

[0074] In the implementation process, the regularization coefficients α, β, and λ also need to be set. A common practice is to tune these hyperparameters through grid search or cross-validation methods so that the decomposed L and S can maximize the large-scale slow changes and small-scale mutations in y. For example, the decomposition effect under different (α, β, λ) parameter combinations can be evaluated on the validation set, and the parameter combination that enables L and S to present the best separation ability in the time and channel dimensions is selected as the final setting.

[0075] The decomposed L∈RD×T and S∈RD×T represent the low-rank component of large-scale changes and the sparse component of small-scale mutations, respectively. Their spatiotemporal distribution patterns are instructive for understanding the neural mechanisms of cognitive processing. For example, the feature distribution in L may correspond to persistent cognitive states, such as attention and working memory, while the feature distribution in S may reflect sudden cognitive events, such as decision-making moments and emotional fluctuations. At the same time, each column of feature vectors in L and S also encodes important information of different scales, which can provide valuable feature input for subsequent feature selection and modeling tasks.

[0076] It should be noted that the dimensions of L and S are both D×T, which is consistent with the size of the global feature y. In the subsequent steps, each column vector of L and each column vector of S can be used as a new feature vector to replace the original global feature vector y and input into the downstream feature selection and modeling modules. This can make full use of the feature representations of two different scales, low rank and sparse, and improve the system's ability to describe cognitive dynamics.

[0077] Step S105, respectively calculating similarity information between the low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data, and determining the target feature channel data in the low-rank feature channel data and the sparse feature channel according to the similarity information.

[0078] Specifically, for the low-rank component L∈RD×T and sparse component S∈RD×T decomposed in the above steps, this application uses the minimum redundancy maximum relevance (mRmR) algorithm based on mutual information to select features for the two components respectively, and mines out the most representative and discriminative d low-rank feature channels and d sparse feature channels, where d is the expected number of features set in advance. Each column vector li∈RD (i=1,2,...,T) in the low-rank component L encodes the low-rank feature distribution at the i-th time point, reflecting the slowly changing EEG patterns on a large scale, such as working memory, attention and other continuous cognitive states; each column vector si∈RD in the sparse component S captures the sparse EEG features of small-scale mutations, which may correspond to sudden cognitive events such as decision-making moments and emotional fluctuations. Suppose there are C label classes and the label set is {c1, c2, ..., cC}. The goal of the mRmR algorithm is to search for a subset Ω containing d features in L or S, so that the correlation (redundancy) between the features in Ω is minimized and the correlation with the class label is maximized.

[0079] For each feature fj in L or S (where fj is the j-th feature dimension), the present application first calculates the mutual information I(fj; ck) between it and each class label ck as the correlation score between fj and ck. The larger the mutual information, the stronger the correlation between fj and ck. Since the present application expects to select features that are relevant to all classes, the maximum mutual information value between fj and all class labels is taken as the correlation score of fj, that is, I(fj; c) = maxk{I(fj; ck)}. Next, for any two features fj and fi, the mutual information I(fj; fi) between them is calculated as the correlation (redundancy) score of the two features. The larger the mutual information, the more relevant and redundant the two features are.

[0080] With the above two scoring metrics, the optimization objective of the mRmR algorithm is: in the feature set Ω, maximize the sum of the mutual information between all features fj and the class label c, while minimizing the sum of the mutual information between all different feature pairs (fj, fi) in Ω. The mathematical expression is:

[0081] max [∑fj∈Ω I(fj; c) - 1 / |Ω| ∑fj∈Ω ∑fi∈Ω,i≠j I(fj; fi)];

[0082] where |Ω| is the cardinality of Ω. It can be proven that when the correlation between features in Ω is lower pairwise and the correlation with the class label is higher, the value of the above formula is larger. The present application uses a greedy search algorithm to optimize and solve the above formula to obtain the optimal feature subset Ωopt.

[0083] The execution process of the greedy search algorithm is as follows: First, initialize Ω as an empty set, i.e., Ω = ∅. Then, in each iteration, from the remaining unselected feature set, calculate the evaluation function increment value Δj of each feature fj, and select the feature fj that can maximize the increase in the evaluation function value to be added to Ω, i.e., Ω = Ω ∪ {fj}. Repeat the above process until |Ω| = d to obtain Ωopt composed of the optimal d features. In the k-th iteration (0 < k < d), the evaluation function increment corresponding to the unselected feature fj is:

[0084] Δj = I(fj; c) - 1 / (k - 1) ∑fi∈Ω I(fj; fi);

[0085] That is, the mutual information between fj and the class label, minus the mean of the mutual information between fj and the selected features in Ω. Select the fj with the largest Δj to be added to Ω. Obviously, in each iteration, the fj selected to be added to Ω is the current optimal feature, which can maximize the increase in the evaluation function value. After d iterations, finally obtain Ωopt containing d optimal features.

[0086] The above greedy search is performed on L and S respectively, and the optimized low-rank feature channel index set I_L and sparse feature channel index set I_S are obtained, and the corresponding low-rank feature matrix Lopt=L(:,I_L)∈Rd×T and sparse feature matrix Sopt=S(:,I_S)∈Rd×T. Among them, each column vector loptr∈Rd(r=1,2,...,T) of Lopt represents the low-rank feature distribution at the rth time point, which can efficiently encode large-scale slowly changing EEG dynamics; each column vector sopts∈Rd(s=1,2,...,T) of Sopt highlights the capture of small-scale mutation feature patterns, reflecting the neural mechanism of sudden cognitive processes.

[0087] Expert knowledge data refers to the existing research results on EEG dynamics and its functional mapping in the field of brain science and cognitive neuroscience, including the brain area localization of cognitive processing, the temporal and spatial distribution laws of electrophysiological markers, etc. These expert knowledge data can provide valuable references for the feature interpretation of this application. The matching process includes the following steps:

[0088] First, for the low-rank feature matrix Lopt, this application hopes to select feature channels that can maximally reflect the continuous cognitive state and large-scale EEG patterns. This type of cognitive state is often related to specific functional areas of the brain, for example, working memory is related to the activation of the prefrontal lobe and superior temporal gyrus, and attention is related to areas such as the interparietal sulcus. Therefore, this application can use the knowledge of brain region function localization summarized in existing brain imaging studies to construct a knowledge base of cognitive functions and brain region distribution. The knowledge base is stored in the form of a matrix, recorded as B∈Rp×q, where p is the number of brain regions and q is the number of cognitive function categories. Bij represents the degree of correlation between the i-th brain region and the j-th cognitive function, which can be a binary value (0 or 1) or a real-valued score. For each feature channel loptr∈Rd (r=1,2,...,T) in Lopt, this application regards it as the active pattern of the brain at the r-th time point, calculates the similarity between loptr and each row vector (i.e., each brain region) in the knowledge base B, and thus determines the brain region and its corresponding cognitive function that loptr is most likely to correspond to.

[0089] Specifically, the similarity between loptr and the i-th row vector bi (corresponding to the i-th brain region) of the knowledge base B is defined as:

[0090] sim(loptr,bi) = loptr·bi / (||loptr||·||bi||).

[0091] That is, the cosine similarity of the two vectors. For each time point r, calculate the similarity between loptr and all brain regions bi, and select the brain region index ir corresponding to the maximum similarity, that is, ir = argmaxisim(loptr,bi). According to the knowledge base, the index ir corresponds to the brain region that best matches loptr, and also corresponds to the dominant cognitive function of the brain region. In the above way, the present application can give a brain region functional interpretation to each feature vector loptr in Lopt, so as to determine the cognitive state that the large-scale low-rank pattern at each time point may reflect, such as working memory, attention, etc.

[0092] Furthermore, the present application fuses the interpretation results of each time point, that is, statistics the brain region index set I_region and cognitive function index set I_function that loptr most frequently corresponds to. The feature channels corresponding to these index sets are the low-rank feature channels that best match expert knowledge, denoted as L_out=Lopt(:,I_region)∈Rd'×T and F_out=Lopt(:,I_function)∈Rd"×T, where d' and d" are the number of feature channels that best match the brain region and function, respectively. L_out and F_out reflect low-rank large-scale patterns at the brain region level and cognitive function level, respectively, providing data support for giving a dual interpretation of EEG dynamics.

[0093] Similarly, for the sparse feature matrix Sopt of small-scale mutations, this application hopes to find feature channels that can maximally reflect sudden cognitive events and EEG mutation patterns. Such cognitive events are often closely related to the event-related potential (ERP) components in the brain. For example, P300 may reflect the process of attention allocation and updating, and N400 components are related to the processing of semantic dissonance. Therefore, this application can use expert knowledge about the spatiotemporal distribution of ERP to match each feature vector sopts∈Rd (s=1,2,...,T) in Sopt with different ERP patterns.

[0094] For each ERP component (such as P300, N400, etc.), this application has its typical time and frequency characteristics and activation distribution pattern on the cerebral cortex, and encodes this information into a vector eij∈Rd (i is the ERP component index, j is the channel index). Then calculate the similarity between eij and each column of the feature vector sopts in Sopt:

[0095] sim(sopts,eij) = sopts·eij / (||sopts|| ||eij||);

[0096] For each time point s, select the ERP pattern index is and channel index js that are most similar to sopts, that is, (is, js) = argmaxi, jsim(sopts, eij). In this way, the application can give an ERP functional interpretation to each sparse feature vector in Sopt and determine the type of cognitive event that the small-scale mutation pattern at each time point may reflect, such as attention allocation, semantic processing, etc.

[0097] Similarly, the present application performs statistical fusion on the interpretation results of each time point to obtain the most matching ERP component index set I_ERP and channel index set I_channel, thereby outputting the final sparse mutation features S_out=Sopt(:,I_ERP)∈Rd'''×T and C_out=Sopt(:,I_channel)∈Rd""×T, where d''' and d"" are the numbers of target feature channels that best match the ERP components and channels, respectively, and the target feature channel data of the target feature channels are obtained.

[0098] Step S106, aligning the feature distribution of the target feature channel data across domains according to the iterative feature alignment algorithm, and outputting the aligned target feature channel data; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, and the feature distribution alignment of the original EEG data is completed.

[0099] Specifically, due to individual differences, when different subjects perform the same task, the temporal and spatial distribution of their EEG signals often differs, which poses a challenge to cross-individual pattern recognition. In order to improve the generalization ability of the model, this application needs to properly align the EEG data from different individuals according to the target feature channel data to minimize their distribution differences. In the above steps, this application will adopt an iterative feature alignment algorithm, using the labeled standard EEG data (source domain data) and unlabeled original EEG data (target domain data) obtained in the above steps as cross-domain data, and aligning the feature distribution of the two domains through iterative calculations.

[0100] In some embodiments, the cross-domain data feature distribution alignment of the target feature channel data according to the iterative feature alignment algorithm includes: inputting the target feature channel data into a target classifier pre-trained based on the source domain data and the target domain data, and outputting the aligned target feature channel data and a feature distribution similarity score; wherein the feature distribution similarity score is used to represent the distribution difference between the source domain and the target domain before and after the alignment.

[0101] Suppose the labeled data in the source domain is {X_s,Y_s}=({x_s^1,y_s^1},...,{x_s^n,y_s^n}), where x_s^i∈R^d is the d-dimensional feature vector of the i-th sample, and y_s^i is its corresponding label; the unlabeled data in the target domain is {X_t}=({x_t^1},...,{x_t^m}), and the goal of this application is to learn a classification function f:R^d→R^c so that it can achieve good classification performance in both the source domain and the target domain, where c is the number of categories. Specifically, this application will use L_out, F_out, S_out and C_out outputted in the above steps as the d-dimensional feature vector x, corresponding to the labeled and unlabeled EEG data obtained in the above steps, and input it into the target classifier as the input data of the iterative alignment algorithm, and can output the aligned target feature channel data and feature distribution similarity score.

[0102] Exemplarily, before aligning the feature distribution of the target feature channel data across domains according to the iterative feature alignment algorithm, it also includes: iteratively training an initial classifier according to the standard EEG data and label information corresponding to the source domain data; generating source domain pseudo-label information and target domain pseudo-label information corresponding to the standard EEG data and the original EEG data according to the initial classifier after iterative training; constructing a source domain feature encoding according to the source domain pseudo-label information and the standard EEG data, and constructing a target domain feature encoding according to the target domain pseudo-label information and the original EEG data; performing kernel mean matching on the source domain feature encoding and the target domain feature encoding, respectively, to obtain a source domain feature representation and a target domain feature representation; completing the training of the initial classifier according to the source domain feature representation and the target domain feature representation, and obtaining the target classifier.

[0103] The basic idea of ​​the iterative alignment algorithm is: first use the source domain data to train an initial classifier f, and then iteratively align the feature distributions of the source domain and the target domain so that the aligned feature distributions have higher similarity, which is conducive to improving the generalization ability of the classifier f in the target domain. The algorithm flow is as follows:

[0104] 1). Train the initial classifier f_0 based on the source domain data {X_s, Y_s}, for example, classic classification algorithms such as support vector machines can be used;

[0105] 2). For the tth iteration (t≥0), use the current classifier f_t to label the source domain and target domain data and obtain pseudo labels: ŷ_s^i=f_t(x_s^i),ŷ_t^j=f_t(x_t^j);

[0106] 3). Based on the source domain label y_s and the target domain pseudo label ŷ_t, reconstruct the feature encoding of the source domain and the target domain respectively:

[0107] φ_s(x_s^i)=[ ||x_s^i-c_s^1|| , ... , ||x_s^i-c_s^c|| ] φ_t(x_t^j)=[ ||x_t^j-c_t^1|| , ... , ||x_t^j-c_t^c|| ];

[0108] Where c_s^k and c_t^k are the mean values ​​of the kth category of data in the source domain and the target domain respectively;

[0109] 4). Based on the new feature encodings φ_s and φ_t, perform kernel mean matching to obtain the aligned feature representations φ'_s and φ'_t:

[0110] φ'_s(x_s^i) = φ_s(x_s^i) - μ_s A φ'_t(x_t^j) = φ_t(x_t^j) - μ_tA;

[0111] Where μ_s and μ_t are the kernel means of φ_s and φ_t respectively, and A is the alignment matrix;

[0112] 5). Retrain the classifier f{t+1} using the aligned φ'_s and φ't;

[0113] 6). Repeat the above steps 1) to 5) until the convergence condition ||f_t-f_{t-1}||<ε is met, and the final aligned classifier f* is obtained.

[0114] The key to the above iterative alignment algorithm lies in the kernel mean matching of the source domain and target domain features in the above step). Let Q_s and Q_t be the sample distributions after normalization of φ_s and φ_t, and use the kernel method to calculate their average embedding distance:

[0115] d(Q_s,Q_t)=||μ_s-μ_t||^2_H = A^TMA;

[0116] Where M is the core matrix and A is the alignment matrix. Let Σ=Cov[φ(x_s),φ(x_t)], then the alignment matrix A can be solved by the following equation:

[0117] min_A ||A||^2 + λtr(A^TΣA) st A^T1=0, A^TM=0;

[0118] Where λ>0 is the regularization coefficient, and the goal is to minimize the distribution difference d(Q_s-Q'_t) between the source domain and the target domain, while also minimizing the sample perturbation caused by kernel mean matching. Solving this optimization problem can obtain the optimal A, and then re-encode the source domain and target domain features according to step 4 to achieve feature distribution alignment.

[0119] In the process of executing the above iterative alignment algorithm, this application can define a distribution similarity score S to measure the distribution difference between the source domain and the target domain before and after alignment:

[0120] S = 1 - d(Q_s,Q'_t) / d(Q_s,Q_t);

[0121] Where d(Q_s,Q_t) is the average embedding distance when not aligned, and d(Q_s,Q'_t) is the average embedding distance after alignment. Obviously, when S=1, it means that the source domain and the target domain are completely aligned; when S=0, it means that the distribution difference between the domains before and after alignment has not decreased. This application can output the final S as a feature distribution similarity score.

[0122] Through the above-mentioned iterative alignment algorithm, the present application performs distribution alignment on the source domain labeled data (such as the labeled standard EEG data in the above step) and the target domain unlabeled data (such as the unlabeled original EEG data in the above step), so as to minimize the differences in EEG feature distribution across individuals.

[0123] Exemplarily, after the output alignment of the target feature channel data and the feature distribution similarity score, it also includes: when the feature distribution similarity score is less than a preset similarity threshold, re-determining the target feature channel data in the low-rank feature channel data and the sparse feature channel according to the similarity information and the similarity score.

[0124] By judging whether the feature distribution similarity score outputted in the above step reaches the preset similarity threshold, if so, it proves that the feature distribution alignment quality meets the requirements and the above step can be entered; if not, the target feature channel data is re-determined in the low-rank feature channel data and the sparse feature channel according to the similarity information and the similarity score to perform feature optimization.

[0125] First, this application defines a similarity scoring function score(S,θ), which compares the output S value with the set threshold θ to determine whether the alignment quality requirement is met. The input of the scoring function is S and θ. If S ≥ θ, the output is 1, otherwise it outputs 0. That is:

[0126] score(S,θ) = { 1, if S≥θ 0, if S<θ};

[0127] The threshold θ ranges from [0,1]. The larger the value of θ, the stricter the requirement for alignment quality. When θ=1, the distribution of the source domain and the target domain is required to be completely consistent; when θ=0, no requirement is made on the alignment quality. In practice, this application usually selects the value of θ∈[0.6,0.9] to ensure a certain alignment quality while maintaining flexibility. Assuming that the similarity score output by the above step is S0, the corresponding score function value is: y = score(S0,θ).

[0128] If y=1, it means that the alignment quality meets the standard and you can directly enter the above steps for subsequent modeling; if y=0, you need to optimize and improve the above steps and the feature selection strategies in the above steps to improve the alignment quality.

[0129] Specifically, when y=0, this application first analyzes the potential factors affecting the alignment quality, mainly including the following aspects:

[0130] 1) Quality of selected features. Whether the low-rank and sparse features selected by the mRMR algorithm in the above steps truly reflect the essential characteristic patterns of large-scale slow changes and small-scale mutations has an important impact on the final alignment quality. If the selected features are greatly affected by noise, individual differences, etc., the discriminability and generalization ability of the features will be reduced, affecting the alignment effect. Therefore, this application can start from the perspective of feature evaluation, such as reselecting better feature channels based on evaluation criteria such as chi-square statistics and mutual information gain rate; or adding other data preprocessing methods to improve the robustness of features.

[0131] 2) Strategy for matching expert knowledge with features. The above steps match the functional explanation that is most similar to the expert knowledge by calculating the cosine similarity between the feature vector and the expert knowledge base. However, this similarity calculation is somewhat subjective and only considers the overall distribution of the feature vector, ignoring the subtle structural differences within the vector. This application can try to use other more sophisticated matching algorithms such as Bayesian inference and kernel similarity to obtain a more reasonable functional explanation, thereby optimizing the intrinsic semantics of the feature.

[0132] 3) Convergence conditions of iterative alignment algorithm. The above steps use the kernel mean matching iterative alignment algorithm, and its termination condition is model convergence, that is, ||f_t-f_{t-1}||<ε. However, convergence cannot completely guarantee the alignment quality. The algorithm may terminate prematurely due to local optimality and other reasons, resulting in suboptimal alignment results. This application can be improved from the perspective of optimization algorithm, such as introducing annealing strategy to avoid falling into local extreme values, adding random perturbation terms to improve the algorithm's exploration ability, etc. In addition, the convergence threshold ε can be appropriately relaxed and the number of iterations can be extended to obtain better alignment results.

[0133] 4) Alignment quality evaluation strategy. The current evaluation standard is to calculate the similarity score S based on the average embedding distance d(Q_s, Q_t) between the source domain and the target domain distribution, and evaluate the alignment quality from the perspective of overall statistical distribution. This method will cover up subtle differences, so this application can also try other local or structural evaluation indicators, such as measuring the similarity of the local geometric structure of the two domains based on nearest neighbor, manifold learning and other methods to obtain a more comprehensive alignment evaluation.

[0134] In summary, when the scoring function y=0, this application can optimize the existing modules such as feature selection, knowledge matching, alignment algorithm and evaluation index from the above four aspects to improve the final alignment quality. The specific optimization strategy can be evaluated and compared on the validation set or simulated data through cross-validation, algorithm integration, etc., to select the parameter combination and algorithm flow with the best alignment quality. Assuming that after n iterations of optimization, this application obtains a better feature input, knowledge matching result and alignment algorithm parameter configuration, and the corresponding feature distribution similarity score is Sn, then the corresponding scoring function value is:

[0135] yn = score(Sn,θ);

[0136] If yn=1, it means that the quality of the optimized alignment meets the standard and the above steps can be entered; if it is still 0, it is necessary to continue the optimization iteration until the quality requirements are met. This feedback mechanism ensures that the feature data finally input into the subsequent time series modeling module of this application has sufficiently high quality and reliability, thereby ensuring the generalization ability of the model while improving the model's interpretability and application value. It should be noted that the setting of the alignment quality score threshold θ needs to be weighed according to the specific task scenario and the requirements for generalization ability. In the pursuit of extreme generalization performance, the θ value can be appropriately increased, and higher requirements are placed on the alignment quality; while allowing a certain degree of difference, the θ value can be reduced to seek a balance between efficiency and quality.

[0137] In some embodiments, before the preprocessing of the raw EEG data, it also includes: obtaining user operation data and subjective feedback data corresponding to the raw EEG data; after the output of the aligned target feature channel data, it also includes: inputting the aligned target feature channel data into a preset neural network model, and outputting spatiotemporal evolution trend information; according to the spatiotemporal evolution trend information, the user operation data and the subjective feedback data, obtaining the cognitive state recognition result of the user corresponding to the raw EEG data.

[0138] If the above steps do not require feedback adjustment, the aligned and optimized feature channel data are input into a neural network model based on a gated recurrent unit (GRU) to perform time series modeling on low-rank and sparse features and predict the spatiotemporal evolution trends of large-scale and small-scale EEG patterns.

[0139] First, the aligned optimized low-rank feature data lopt(t)∈Rd'(t=1,2,...,T) and sparse feature data sopt(t)∈Rd"(t=1,2,...,T) are input into two independent GRU models, where d' and d" are the dimensions of low-rank and sparse optimized features, respectively, and T is the length of the time series. For the low-rank feature lopt(t), its GRU network architecture is as follows:

[0140] 1. Input gate calculation: it = σ(Wxixt + Whiht-1 + Wcict-1 + bi); where xt=lopt(t) is the input feature vector of the current time step, ht-1 is the hidden state vector of the previous time step, ct-1 is the memory state of the previous step, Wxi, Whi, Wci and bi are trainable parameters. σ is the Sigmoid activation function, which is used to control the influence of current input and historical information.

[0141] 2. Forget gate calculation: ft = σ(Wxfxt + Whfht-1 + Wcfct-1 + bf); where Wxf, Whf, Wcf and bf are trainable parameters, and the forget gate determines the information that needs to be forgotten in the memory of the previous step.

[0142] 3. Memory state update: ct = ft⊙ct-1 + it⊙tanh(Wxcxt + Whcht-1 + bc); ⊙ is element-wise multiplication, tanh is the hyperbolic tangent activation function, Wxc, Whc and bc are trainable parameters. The new memory ct forgets the unnecessary information in the previous step and integrates the new information calculated by the current input and hidden state.

[0143] 4. Output gate calculation: ot = σ(Wxoxt + Whoht-1 + Wcoct + bo); where Wxo, Who, Wco and bo are trainable parameters, and the output gate controls the degree to which the hidden state ht is output from the memory.

[0144] 5. Hidden layer state update: ht = ot⊙tanh(ct) That is, the new hidden layer state is a nonlinear mapping of the output gate and memory state by element-wise multiplication.

[0145] 6. Output layer calculation: y't = Woht + bo The output is a linear combination of the hidden layer states ht, Wo and bo are trainable parameters. For time series prediction tasks, ŷt is the predicted output sequence at time t.

[0146] All W and b parameters in the above equations are learned and optimized on the labeled source domain data through end-to-end training. The mean square error is used as the loss function, that is, L=1 / T∑t(yt- y't )^2, where yt is the true label sequence. The optimal model parameters can be obtained by using the back propagation algorithm and optimizers such as Adam.

[0147] For the sparse feature sopt(t), an independent GRU network model is also constructed. The network structure and parameter learning method are the same as the above low-rank model, which will not be repeated here. It should be noted that the gate mechanism in GRU gives the model a strong selective memory ability and can flexibly control the fusion method of historical information and current input. It better alleviates the gradient disappearance and gradient explosion problems than the standard RNN, and has high computational efficiency. It is very suitable for modeling long-term dependent time series data and can effectively mine the dynamic evolution laws contained in the sequence.

[0148] Through the above two GRU networks, the low-rank and sparse features are respectively modeled for time series prediction, and the predicted values ​​of the large-scale slow-changing mode and the small-scale mutation mode s'opt(t+1) at time t+1 can be obtained, that is:

[0149] l'opt(t+1) = GRU_low rank(lopt(1),lopt(2),...,lopt(t));

[0150] s'opt(t+1) = GRU_sparse(sopt(1),sopt(2),...,sopt(t));

[0151] Among them, GRU_low-rank and GRU_sparse are the trained low-rank and sparse GRU prediction models, respectively. By sequential reasoning, this application can predict large-scale and small-scale patterns at any future time step, thereby capturing the spatiotemporal evolution trend of EEG dynamics. This time series prediction capability is of great significance for identifying the user's current and future cognitive intentions and states, and provides valuable support for the design and optimization of intelligent human-computer interaction systems.

[0152] For example, suppose that at time step t=10, the output of the low-rank GRU network is l'opt(11)=[0.3,0.7,0.1,...], and the output of the sparse GRU network is s'opt(11)=[0.05,0.9,0.01,...]. Through the knowledge matching of the above steps, this application can interpret the meaning of these two predicted outputs at the level of brain regions and cognitive functions:

[0153] l'opt (11) indicates that in the next few time steps, the prefrontal and interparietal sulcus regions of the brain will continue to maintain a certain level of activation, corresponding to persistent cognitive states such as attention and working memory;

[0154] s'opt(11) reflects that at some point in the future, a mutation event may occur in the brain, which is equivalent to a sudden strong activation of semantic processing areas (such as the intraparietal sulcus), which may correspond to the processing of semantic dissonance.

[0155] Through the spatiotemporal interpretation of large-scale and small-scale EEG pattern predictions, this application can predict the user's cognitive processing state and its upcoming changes, thereby providing a basis for real-time adjustment of intelligent interactive systems and optimization of human-computer interfaces.

[0156] Exemplarily, the acquisition of user operation data and subjective feedback data corresponding to the raw EEG data includes: in the process of acquiring the raw EEG data, collecting user operation data through sensors such as touch panels, gyroscopes, and accelerometers integrated in the interactive product, including multiple operation behavior characteristics such as sight movement trajectory, gesture trajectory, and product posture changes. In addition, during the interaction process, a subjective evaluation box is regularly popped up to the user to obtain subjective feedback data such as the user's experience rating and text description of the product.

[0157] Exemplarily, the user wears a virtual reality device (such as an AR / VR device) and an EEG acquisition device, and the EEG acquisition device is used to collect the original EEG signal when the user manipulates the virtual reality device; after obtaining the cognitive state recognition result of the user corresponding to the original EEG data, it also includes: obtaining the manipulation intention and emotional state corresponding to the cognitive state recognition result; generating an operation instruction corresponding to the manipulation intention, and sending the operation instruction to the virtual reality device worn by the user; and adjusting the scene information of the virtual reality device according to the emotional state.

[0158] By correlating the spatiotemporal distribution characteristics of the large-scale EEG patterns and small-scale EEG mutations predicted in the above steps with the product usage scenario data (such as user operation data, subjective feedback data, etc.) obtained in the above steps, the recognition result of the user's cognitive state (control intention and emotional state) is obtained.

[0159] First, the present application uses the feature vectors of the large-scale pattern l'opt(t)∈Rd' and the small-scale pattern s'opt(t)∈Rd" predicted in the above steps at time t as input, where d' and d" are low-rank and sparse feature dimensions, respectively. These two feature vectors reflect the neural activation patterns of the brain's persistent cognitive state and sudden cognitive events at time t. At the same time, from the product usage data obtained in the above steps, the present application extracts the user operation features xopt(t) and subjective feedback features yopt(t) at the corresponding time point t as another input, where xopt(t)∈Rl is the sequence encoding of the operation behavior of length l, which can be the feature representation of sensor data such as line of sight movement trajectory, gesture trajectory, product posture change, etc.; yopt(t)∈Rm is a subjective feedback text vector of length m, which is a semantic feature extracted from user ratings and descriptive texts through natural language processing technology.

[0160] Next, this application cascades these three heterogeneous features l'opt(t), s'opt(t), xopt(t) and yopt(t) and sends them into a multilayer perceptron (MLP) network for fusion learning, thereby predicting the user's control intention label p't and emotional state label q't at time t. The network architecture of the MLP network is as follows:

[0161] 1. Input layer: The cascaded three-way features are h0=[l'opt(t);s'opt(t);xopt(t);yopt(t)]∈RN, where N=d'+d"+l+m is the feature dimension.

[0162] 2. The first hidden layer: z1 = w1Th0 + b1,a1 = σ(z1) where w1∈RH×N is the weight matrix of the first layer, b1∈RH is the bias vector, H is the number of hidden layer neurons, and σ is a nonlinear activation function such as ReLU.

[0163] 3. The second hidden layer: z2 = w2Ta1 + b2,a2 = σ(z2) where w2∈RH×H is the weight matrix of the second layer and b2∈RH is the bias vector.

[0164] 4. Output layer: y't = [p't;q't] = WoTa2 + bo Where Wo∈R(C+D)×H is the output layer weight matrix, bo∈RC+D is the bias vector, C is the number of manipulation intention categories, and D is the number of emotional state categories. The output y't corresponds to the manipulation intention probability vector p't∈RC and the emotional state probability vector q't∈RD.

[0165] The objective function of the MLP network is: L(θ) = λ1∑i||pi-p̂i||2 + λ2∑i||qi-q̂i||2 + R(θ);

[0166] Where θ={w1,b1,w2,b2,Wo,bo} is the set of all trainable parameters, pi and qi are the true control intention label and emotional state label of the i-th training sample, respectively, λ1 and λ2 are the weight coefficients of the two losses, and R(θ) is the regularization term for the model parameters (such as L1 or L2 norm, etc.). By performing end-to-end training on the annotated source domain data, the optimal MLP parameter θ* can be learned to minimize the loss function L(θ). During the training process, the present application can expand the above four input features in the time dimension to form a time series input, and use the back propagation algorithm to train the network. Based on the trained MLP model, for any new test sample, the present application can substitute its three-way input features l'opt(t), s'opt(t), xopt(t) and yopt(t) at time t into the model to predict the corresponding control intention probability vector p't and emotional state probability vector q't. Furthermore, the present application can define the following two decoding functions:

[0167] 1. Control intention decoding: ct = argmaxjp'tj, where ct is the predicted control intention category and j is the category index. For example, if p't = [0.1, 0.7, 0.2], the predicted control intention ct = 2.

[0168] 2. Emotional state decoding: et = argmaxjq'tj, where et is the predicted emotional state category. For example, if q't=[0.05,0.8,0.15], the predicted emotional state et=2.

[0169] Through the above decoding method, the present application can interpret the output of the MLP model into a specific control intention category ct and an emotional state category et. It should be noted that in specific applications, the present application can subdivide the control intention and emotional state according to the scenario and needs. For example, the control intention can be divided into starting operation, pausing, selecting menu, etc.; the emotional state can be divided into positive, negative, neutral, etc. At the same time, the present application can also compare the predicted probabilities p't and q't with the pre-set probability threshold. Only when the probability value exceeds the threshold is it considered a valid prediction, thereby controlling the prediction quality.

[0170] Specifically, this application can assume an application scenario: when a user wears an EEG acquisition device and plays a virtual reality (VR) game, the system will collect his EEG signals, operation behaviors, and subjective feedback data in real time. Assume that at time t=20, the predicted output of the MLP model is: p'20 = [0.05, 0.8, 0.1, 0.05] q'20 = [0.2, 0.7, 0.1].

[0171] Among them, the control intention probability vector p'20 corresponds to four possible control intentions: 1) no control behavior 2) menu selection 3) start operation 4) pause operation; the emotional state probability vector q'20 corresponds to three possible emotional states: 1) negative 2) positive 3) neutral. Assuming that the probability threshold is set to 0.6, the following can be obtained by decoding this application:

[0172] Control intention decoding: c20 = argmaxjp'20j = 2 (due to p'202=0.8>0.6) Therefore, at time t=20, the system predicts that the user's control intention is "select menu".

[0173] Emotional state decoding: e20 = argmaxjq'20j = 2 (due to q'202=0.7>0.6) Therefore, at time t=20, the system predicts that the user's emotional state is "positive". Among them, q'202 represents the probability value of the second element of the vector, which is 0.7.

[0174] Based on the above prediction results, the VR system can respond and adjust accordingly:

[0175] 1. Since the system detects that the user has the intention to "select the menu", the system can temporarily superimpose menu options in the VR interface to facilitate the user to proceed to the next operation and enhance the interactive experience.

[0176] 2. At the same time, since the user's current emotional state is "positive", the interaction intensity and challenge difficulty of the VR scene can be appropriately increased to enhance the user's sense of immersion and gain and avoid monotonous plots.

[0177] Compared with the prior art, this application has at least the following beneficial effects:

[0178] 1. Improved the ability to analyze the spatiotemporal features of EEG signals. This scheme adopts a hierarchical spatiotemporal feature extraction and encoding strategy, which can analyze and characterize the cognitive dynamics information contained in EEG signals with high fidelity. First, the original EEG data is encoded using a convolutional neural network to extract global spatiotemporal features. Then, the global features are divided into large-scale low-rank components and small-scale sparse components through generalized low-rank decomposition to capture slow-changing and sudden changes, respectively. Finally, these two types of features are functionally interpreted based on expert knowledge, thereby giving the features spatiotemporal semantics. This hierarchical extraction and interpretation strategy enables the scheme to efficiently mine the multi-scale spatiotemporal patterns contained in EEG signals, providing high-quality feature support for subsequent cognitive state classification and prediction tasks.

[0179] 2. Achieve high-quality alignment of EEG feature distribution across individuals. Individual differences lead to differences in the temporal and spatial distribution of EEG signals of different individuals, which brings challenges to EEG-based pattern recognition. This solution introduces an iterative feature alignment algorithm, and uses techniques such as kernel mean matching to align the feature distribution of source domain labeled data with target domain unlabeled data, minimizing the impact of individual differences. At the same time, alignment quality evaluation and feedback optimization ensure that the alignment effect is reliable. High-quality feature distribution alignment greatly improves the generalization ability of cognitive state recognition models and is the key to achieving personalized human-computer interaction.

[0180] 3. Establish a cognitive dynamics time series prediction model. Based on spatiotemporal features and aligned distribution, the scheme constructs a gated recurrent unit (GRU) time series model, which can predict the future evolution trend of large-scale low-rank and small-scale sparse EEG patterns, and provide support for intelligent interactive system adjustment strategies, forward-looking interactions, etc. By decoding the time series prediction output, it can also predict the user's possible future control intentions and emotional states, and has the ability to "predict" the user's expected behavior, expanding the application scenarios of EEG technology.

[0181] In order to perform the cross-domain EEG feature distribution alignment method corresponding to the above method embodiment, to achieve the corresponding functions and technical effects. Figure 2 , Figure 2 The structural block diagram of a cross-domain EEG feature distribution alignment device 200 provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the present embodiment are shown. The cross-domain EEG feature distribution alignment device 200 provided in an embodiment of the present application includes:

[0182] The data acquisition module 201 is used to acquire the original EEG data to be aligned, pre-process the original EEG data, and acquire standard EEG data and label information.

[0183] The matrix construction module 202 is used to construct an EEG data matrix corresponding to the original EEG data according to the time point information and channel information corresponding to the standard EEG data.

[0184] The feature output module 203 is used to input the EEG data matrix into a preset convolutional neural network and output the global features corresponding to the EEG data matrix.

[0185] The feature decomposition module 204 is used to input the global feature into a preset generalized low-rank approximate decomposition model, decompose the global feature into a low-rank component and a sparse component, perform feature selection on the low-rank component and the sparse component respectively, and output low-rank feature channel data and sparse feature channel data.

[0186] The similarity calculation module 205 is used to respectively calculate the first similarities between the low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data, and determine the target feature channel data in the low-rank feature channel data and the sparse feature channel according to the first similarities.

[0187] The data alignment module 206 is used to align the feature distribution of the target feature channel data across domains according to an iterative feature alignment algorithm, and output the aligned target feature channel data; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, thereby completing the feature distribution alignment of the original EEG data.

[0188] The above-mentioned cross-domain EEG feature distribution alignment device 200 can implement the cross-domain EEG feature distribution alignment method of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of the present application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0189] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 3 As shown, the computer device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure), a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above method embodiments when executing the computer program 32.

[0190] The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a cloud server, etc. The computer device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0191] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0192] In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0193] In addition, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0194] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0195] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0196] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0197] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A cross-domain EEG feature distribution alignment method, characterized in that: include: Acquire raw EEG data to be aligned, preprocess the raw EEG data, and acquire standard EEG data and label information; Constructing an EEG data matrix corresponding to the original EEG data according to the time point information and channel information corresponding to the standard EEG data; Inputting the EEG data matrix into a preset convolutional neural network, and outputting the global features corresponding to the EEG data matrix; Inputting the global features into a preset generalized low-rank approximate decomposition model, decomposing the global features into a low-rank component and a sparse component, performing feature selection on the low-rank component and the sparse component respectively, and outputting low-rank feature channel data and sparse feature channel data; Respectively calculating similarity information between the low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data, and determining target feature channel data in the low-rank feature channel data and the sparse feature channel according to the similarity information; The target feature channel data is aligned with respect to feature distribution across domains according to an iterative feature alignment algorithm, and the aligned target feature channel data is output; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, thus completing feature distribution alignment of the original EEG data.

2. The method according to claim 1, characterized in that The preprocessing of the raw EEG data comprises: Performing wavelet transform on the raw EEG data to remove electromagnetic noise from the raw EEG data; Separating physiological noise from the raw EEG data based on a preset separation algorithm; Removing the drift baseline of the original EEG data to complete the baseline correction of the original EEG data; The raw EEG data is input into an adaptive artifact removal filter to remove motion artifact components of the raw EEG data, and the final pre-processed standard EEG data and the label information are output.

3. The method according to claim 1, characterized in that The step of aligning the feature distribution of the target feature channel data across domains according to the iterative feature alignment algorithm includes: Inputting the target feature channel data into a target classifier pre-trained based on the source domain data and the target domain data, and outputting the aligned target feature channel data and feature distribution similarity score; The feature distribution similarity score is used to represent the distribution difference between the source domain and the target domain before and after alignment.

4. The method according to claim 3, characterized in that: Before performing cross-domain data feature distribution alignment on the target feature channel data according to the iterative feature alignment algorithm, the method further includes: Iteratively training the initial classifier according to the standard EEG data and label information corresponding to the source domain data; Generate source domain pseudo label information and target domain pseudo label information corresponding to the standard EEG data and the original EEG data respectively according to the initial classifier after iterative training; Constructing a source domain feature code according to the source domain pseudo-label information and the standard EEG data, and constructing a target domain feature code according to the target domain pseudo-label information and the original EEG data; Performing kernel mean matching on the source domain feature encoding and the target domain feature encoding respectively to obtain a source domain feature representation and a target domain feature representation; The initial classifier is trained according to the source domain feature representation and the target domain feature representation to obtain the target classifier.

5. The method according to claim 3, characterized in that: After the output aligned target feature channel data and feature distribution similarity score, it also includes: When the feature distribution similarity score is less than a preset similarity threshold, target feature channel data is re-determined in the low-rank feature channel data and the sparse feature channel according to the similarity information and the similarity score.

6. The method according to claim 1, characterized in that Before the raw EEG data is preprocessed, the method further includes: obtaining user operation data and subjective feedback data corresponding to the raw EEG data; and after the aligned target feature channel data is output, the method further includes: Inputting the aligned target feature channel data into a preset neural network model, and outputting spatiotemporal evolution trend information; According to the spatiotemporal evolution trend information, the user operation data and the subjective feedback data, a cognitive state recognition result of the user corresponding to the original EEG data is obtained.

7. The method according to claim 6, characterized in that The user wears a virtual reality device and an EEG acquisition device, and the EEG acquisition device is used to collect the original EEG data when the user controls the virtual reality device; After obtaining the recognition result of the user's cognitive state corresponding to the original EEG data, the method further includes: Obtaining the manipulation intention and emotional state corresponding to the cognitive state recognition result; generating an operation instruction corresponding to the manipulation intention, and sending the operation instruction in the virtual reality device worn by the user; The scene information of the virtual reality device is adjusted according to the emotional state.

8. A cross-domain EEG feature distribution alignment device, characterized in that: include: A data acquisition module is used to acquire the original EEG data to be aligned, pre-process the original EEG data, and acquire standard EEG data and label information; A matrix construction module, used to construct an EEG data matrix corresponding to the original EEG data according to the time point information and channel information corresponding to the standard EEG data; A feature output module, used to input the EEG data matrix into a preset convolutional neural network and output the global features corresponding to the EEG data matrix; A feature decomposition module, used for inputting the global feature into a preset generalized low-rank approximate decomposition model, decomposing the global feature into a low-rank component and a sparse component, performing feature selection on the low-rank component and the sparse component respectively, and outputting low-rank feature channel data and sparse feature channel data; A similarity calculation module, used to calculate first similarities between the low-rank feature channel data and the sparse feature channel data and the preset expert knowledge data, and determine target feature channel data in the low-rank feature channel data and the sparse feature channel according to the first similarity; A data alignment module is used to align the feature distribution of the target feature channel data across domains according to an iterative feature alignment algorithm, and output the aligned target feature channel data; wherein, in the iterative feature alignment algorithm, the original EEG data is the target domain data, and the standard EEG data and label information are the source domain data, completing the feature distribution alignment of the original EEG data.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the cross-domain EEG feature distribution alignment method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of the cross-domain EEG feature distribution alignment method according to any one of claims 1 to 7.