Electroencephalogram signal online identification method based on multi-domain feature fusion
Through multi-domain feature fusion and multi-core extreme learning machine models, combined with time-frequency-space features and optimization technology incorporating radius information, the problem of insufficient recognition accuracy in traditional EEG signal classification methods is solved, and a more efficient multi-class Motor imagery EEG signal recognition.
Patent Information
- Application Number
- CN202410560207.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional EEG signal classification methods are mainly based on time domain or frequency domain analysis and ignore spatial information, resulting in insufficient recognition accuracy of EEG signals. Especially in the identification of multi-type motor imagination EEG signals, existing technology is difficult to be effective. Distinguish and identify different motor imagery activities.
Using a multi-domain feature fusion method, combined with multi-core extreme learning machine, time-frequency-space feature fusion and optimization technology incorporating radius information, it is extracted through Butterworth filter, ICEEMD decomposition, MVAR model, wavelet packet decomposition and Riemannian manifold algorithm. Time domain, frequency domain and spatial domain features are constructed to construct a time-frequency-space joint feature vector, and classified through kernel principal component analysis and multi-core extreme learning machine model.
It improves the accuracy and robustness of EEG signal classification, can more effectively identify multiple types of motor imagery EEG signals, and enhances the application potential in fields such as brain-computer interface and neurological rehabilitation.
Smart Images

Figure CN118568606A
Abstract
Description
Technical Field
[0001] The present invention relates to electroencephalogram (EEG) signal classification and recognition technology, and in particular to an EEG signal online recognition method based on multi-domain feature fusion. Background Art
[0002] At present, in the field of modern neuroscience and motor control, the recognition of EEG signals of motor imagery is becoming increasingly important. This technology can provide a way for disabled and healthy people to directly convert brain activity into motor commands, thus opening up many potential application areas, including neurorehabilitation and brain-computer interface. At present, brain-computer interface (BCI) is a communication control system that does not rely on the normal output pathway composed of peripheral nerves and muscles. The most important of these is the BCI system based on motor imagery (MI), which can convert a person's imagination of movement into control signals to control external devices.
[0003] Traditional EEG signal classification methods are mainly based on time domain or frequency domain analysis, ignoring spatial information. EEG signals are highly subject-specific and non-stationary. The accuracy of identifying different motor imagery EEG signals is still an urgent problem to be solved. Feature extraction plays a vital role in the classification of motor imagery EEG signals. Because the signal has the characteristics of high dimensionality, many scholars have proposed a variety of feature extraction methods, including power spectral density, time-frequency analysis based on wavelets, time-frequency energy of Hilbert-Huang transform and other complex features to extract features with good representation ability. However, most of the above studies are based on feature extraction in a single field and can only describe limited information. As a result, the EEG signal features are single and the information contained is insufficient, resulting in unsatisfactory classification performance. It may have different sensitivities to different motor imagery patterns. Therefore, it is necessary to fuse them to enhance the classification ability of motor imagery EEG signals.
[0004] In addition, EEG signals usually involve multiple movement categories, so it is necessary to develop a multi-class classification method to more accurately distinguish and identify different motor imagery activities.
[0005] Therefore, the present invention focuses on the recognition of multiple types of motor imagery EEG signals, and constructs a new multi-core extreme learning machine classifier by integrating time-frequency-space features and combining the optimization technology that incorporates radius information. This method will improve the accuracy and robustness of EEG signal classification, and is expected to play an important role in the fields of brain-computer interface and neurorehabilitation. Summary of the invention
[0006] The main purpose of the present invention is to provide an online EEG signal recognition method based on multi-domain feature fusion, which combines technologies such as multi-core extreme learning machine, time-frequency-space feature fusion and optimization algorithm incorporating radius information, has high practical application value and provides a powerful tool for further research and application in the field of brain signal analysis.
[0007] The technical solution adopted by the present invention is: an online EEG signal recognition method based on multi-domain feature fusion, comprising:
[0008] S1, using an EEG acquisition device to collect a motor imagery signal and select channels related to motor imagery, intercepting appropriate segments for analysis; then using a Butterworth filter to filter the intercepted segments, and then using a common average reference to decentralize the filtered EEG signal;
[0009] S2, using the ICEEMD method to decompose the decentralized EEG signal to obtain several IMF components of a single channel, calculate the Pearson correlation coefficient between each IMF component and the original channel signal, select the strongly correlated components and perform signal reconstruction;
[0010] S3, repeating the second step process for each channel to further filter and denoise a certain motion imagination signal, completing the preprocessing process;
[0011] S4, the MVAR algorithm is used to analyze the preprocessed EEG signal matrix, the time domain feature matrix of the EEG signal is extracted, and the elements in the time domain feature matrix are converted into time domain feature vectors by connecting the first and last rows; the wavelet packet decomposition method is used to extract the frequency domain features of each channel of the preprocessed EEG signal, and the elements in the frequency domain features of each channel are converted into frequency domain feature vectors by connecting the first and last rows; the Riemann manifold algorithm is used to analyze the preprocessed EEG signal matrix, and the spatial domain feature matrix of the EEG signal is extracted, and the elements in the spatial domain feature matrix are converted into spatial domain feature vectors by connecting the first and last rows;
[0012] S5, connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector;
[0013] S6, repeating steps S1 to S5, extracting the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery, and constructing a time-frequency-space joint feature matrix;
[0014] S7, performing kernel principal component analysis on the time-frequency-space joint feature matrix, selecting the number of principal components according to the principle that the cumulative contribution rate is greater than 85%, and projecting the sample data into the new principal component space to obtain the fusion feature vector after dimension reduction;
[0015] S8, constructing a multi-core extreme learning machine model, training its parameters by combining the time-frequency-space fusion features, and re-optimizing its parameters by combining the radius information incorporation algorithm, thereby obtaining the optimal multi-core extreme learning machine classification model;
[0016] S9, deploys the optimal multi-core extreme learning machine classification model in real scenarios, and performs statistical analysis on parameters such as the number of strongly correlated IMF components in each channel from the second to the eighth step of each sample and each type of motor imagery, the order of the MVAR model, etc., builds an online recognition process, and performs online recognition of real-time motor imagery EEG signals.
[0017] Furthermore, the step S1 comprises:
[0018] S11, collect and select the lead information related to motor imagery, and construct the original sampling signal matrix
[0019]
[0020] X is the signal matrix constructed by the original sampling signal. Each row in the matrix is the acquisition signal of one lead, and each column is a sampling point, that is, m is the number of selected leads (channels), and n is the number of sampling points;
[0021] S12, filter out the EEG signals in the 8-30 Hz frequency band through the Butterworth filter, perform bandpass filtering and de-centering on the multi-lead EEG signals using the common average reference, and obtain the matrix after noise reduction
[0022] The formula for the common average reference is as follows:
[0023]
[0024] In the formula, y i (t) is the original MI-EEG of the i-th channel.
[0025] Furthermore, the step S2 comprises:
[0026] S21, select a channel signal in the matrix Y, use the ICCEMD method to decompose it, obtain several IMF components, and calculate the Pearson correlation coefficient between each IMF component and the original channel signal. The formula of the Pearson correlation coefficient is as follows:
[0027]
[0028] IMF ij represents the jth IMF component of the ith channel, Represents the original channel y i (t) With IMF ij The Pearson correlation coefficient, cov(y i(t),IMF ij ) represents y i (t) With IMF ij The covariance of Represents y i (t), E(·) represents the mathematical expectation, Indicates IMFi j The average value of the amplitude;
[0029] S22, based on the Pearson correlation coefficient, select the channel that is strongly correlated with the original signal for signal reconstruction.
[0030] Furthermore, the step S3 comprises:
[0031] Loop through step S2 to traverse other channels.
[0032] get Realize
[0033] Further filtering and denoising of a certain motion imagination signal completes the preprocessing process; where m is the number of selected leads (channels), n is the number of sampling points, and R is a real number set.
[0034] Furthermore, the step S4 comprises:
[0035] S41, MVAR model is a generalized form of univariate AR model. The MVAR model is used to extract the time domain features of the reconstructed EEG signal matrix. The MVAR model with p order can be described as follows:
[0036]
[0037]
[0038] Where Y'(n) is an (m*1) column vector representing the value of the multi-channel signal at time n, i is the delay, p is the order of the model, A'(i) is an (m*m) prediction coefficient matrix, y1(n),...,y m (n) is the value of each time series at the current moment, e1(n),...,e m (n) is the further prediction error, E(n)=(e1(n),...,e m (n)) T is the prediction error matrix;
[0039] S42, the normalized LWR algorithm is used to solve the MVAR model with an order of p, and the number of coefficients is constructed (m 2 *p) matrix [A'(1),...,A'(p)], a 1,1 ,...,a m,mis the prediction coefficient with time delay i, and then connect each element matrix row by row to obtain the time domain feature vector of the reconstructed signal of each participant as follows:
[0040]
[0041] S43, using wavelet packet decomposition method to extract frequency domain features of each channel of the preprocessed EEG signal, obtaining 2k sub-bands at the kth layer, and calculating the energy spectrum energy corresponding to the components of each frequency;
[0042] S44, looping through step S43, traversing other channels, connecting the elements in the frequency domain features of each channel row by row, and constructing the frequency domain features based on the energy spectrum energy. The frequency domain feature vector of the reconstructed signal of a single participant is obtained as follows:
[0043]
[0044] S45, Riemann manifold is used to extract spatial features. This study uses the covariance matrix of EEG signals as the statistical feature of the data. The spatial covariance matrix of the EEG signal of a single participant is:
[0045]
[0046] S46, since the covariance matrix is symmetric and the off-diagonal items are calculated twice during the calculation process, only the upper triangular part of the matrix is taken as the spatial domain feature, so its off-diagonal elements need to be scaled to maintain the standard; vectorize it into the spatial domain feature vector:
[0047]
[0048]
[0049] Furthermore, the step S5 comprises:
[0050] S51, the time domain feature vector Frequency domain eigenvector and the spatial feature vector Concatenate the features head to tail to construct a time-frequency-space joint feature vector
[0051]
[0052] Joint eigenvector For the same sample data, the union of the features in each domain extracted by different signal processing methods is a t-dimensional feature vector;
[0053] S52, construct a label vector to facilitate subsequent classification work.
[0054] Furthermore, the step S6 comprises:
[0055] Repeat steps S1 to S5 to extract the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery, and construct the time-frequency-space joint feature matrix T:
[0056]
[0057] Each row of the matrix represents the joint feature vector of a sample.
[0058] Furthermore, the step S7 comprises:
[0059] S71, perform kernel principal component analysis on the joint feature matrix, using the kernel function Project the joint feature matrix T into a linearly separable high-dimensional space for kernel principal component analysis, and obtain the principal component coefficient matrix Coeff as follows:
[0060]
[0061] S72, the sample covariance matrix can be obtained at the same time as the principal component analysis. It is composed of eigenvalues that form column vectors, and the eigenvalues are arranged in descending order. The eigenvalues λ1≥λ2≥…≥λ t and the corresponding eigenvector α k (k=1,…,t);
[0062] S73, ratio It reflects the contribution rate of the kth principal component in the generated feature space. The number of core principal components c is determined according to the cumulative contribution rate formula of eigenvalue variance. The calculation formula is as follows:
[0063]
[0064] The number of pivots is selected based on the principle that the cumulative contribution rate exceeds 85%. When the number of pivots is c, the cumulative contribution rate exceeds 85%, so the number of pivots is determined to be c.
[0065] S74, select the first c principal components, so the principal component coefficient matrix becomes:
[0066]
[0067] S75, project the joint feature vector constructed by each sample onto the principal component coefficient matrix to obtain the fusion feature vector after dimensionality reduction
[0068]
[0069] Furthermore, the step S8 comprises:
[0070] S81, divide the joint features after dimension reduction into training set, validation set and test set according to a certain ratio;
[0071] S82, construct a multi-core extreme learning machine model, select a mixed weight of a radial basis kernel function and a polynomial kernel function as the kernel function of the multi-core extreme learning machine, and the model of the extreme learning machine is as follows:
[0072]
[0073] is a training set, φ(x i )(i=1,...,n) is for X i The feature map of ∣φ(·)∣*T is the output weight, ξ∈R T*n is the training error matrix on the training data, is the first column of ξ, If X i belongs to the tth class, n and T are the number of training samples and classes, C is a regularization parameter that weighs the norm of the output weight and the training error, ||·|| F is the F-norm;
[0074] S83: The parameters of step 1 are optimized by using an algorithm incorporating radius information, and the optimal model is obtained by training it through time-frequency-space fusion features; the objective function of MK-ELM incorporating radius information is expressed in the following equation:
[0075]
[0076] Where Rp is the radius of MEB in the induced feature space, and γ is the kernel combination weight;
[0077] S84: Use the validation set to optimize the model hyperparameters and obtain the optimal diagnostic model;
[0078] S85, obtaining the optimal kernel extreme learning machine classification model; and classifying through the optimal kernel extreme learning machine to complete the recognition of multiple types of motor imagery EEG signals.
[0079] Furthermore, the step S9 includes:
[0080] S91, the EEG signal matrix collected in real time is used to select the EEG signals of the four electrode channels FC5, F3, F4 and FC6 that are highly correlated with motor imagery;
[0081] S92, select the segment related to motor imagery, that is, the 4 to 7 seconds of data collected by the experimenter
[0082] S93, using a 10th order Butterworth filter and a common average reference pair X new Processing is performed to obtain the denoised matrix
[0083]
[0084] S94, statistically analyzing the number of IMF components strongly correlated with each motor imagery of each sample during the offline training phase, arranging the IMF components in descending order according to the correlation coefficient from large to small, summarizing the statistical rules, and finding that the number of IMF components strongly correlated with each motor imagery of each sample is the first q;
[0085] S95, using ICEEMD algorithm to calculate Y new Decompose each channel of , take the first q IMF components to reconstruct the original channel signal, and get
[0086] Achieve further filtering and denoising of real-time motion imagery signals and complete the online preprocessing process;
[0087] S96, statistical analysis of the order of the MVAR algorithm in the offline training phase found that the motor imagery order of 95% of the samples was p;
[0088] S97, yes Perform p-order MVAR algorithm processing to transform the elements in the time domain feature matrix into time domain feature vectors by connecting the first and last rows;
[0089] S98, yes Perform i-layer wavelet packet decomposition on each channel, and transform the elements in the frequency domain features of each channel into frequency domain feature vectors by connecting the beginning and the end of each row;
[0090] S99, yes The Riemann manifold algorithm is used to extract the spatial feature matrix of the EEG signal, and the elements in the spatial feature matrix are converted into spatial feature vectors by connecting the beginning and the end of the rows.
[0091] S910, connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector
[0092] S911, statistical analysis is performed on the number of principal components selected in the offline training phase according to the principle that the cumulative contribution rate exceeds 85%, and it is found that the number of principal components of each sample is c;
[0093]
[0094] S912, the real-time time-frequency-space joint feature vector Multiply it with the principal component coefficient matrix Coeff' in the offline training phase to obtain the fusion feature vector after dimension reduction
[0095]
[0096] S913, will The data is input into the multi-core extreme learning machine model that incorporates radius information and is trained in the offline training phase for online recognition.
[0097] Advantages of the present invention:
[0098] The present invention has efficient signal recognition capability: This method uses multi-core extreme learning machine (MKELM) as the core algorithm, which can effectively recognize multiple types of motor imagery EEG signals. MKELM combines multiple kernel functions to improve the diversity and robustness of signal processing, making the recognition performance more outstanding.
[0099] Time-frequency-space feature fusion: This method uses the fusion of time domain, frequency domain and space domain features, integrating information from different dimensions, which helps to describe the characteristics of EEG signals more comprehensively and accurately. This feature fusion strategy increases the dimension of signal processing and makes it more discriminative.
[0100] Radius optimization: This method uses radius optimization technology, which can better adjust the parameters of the kernel function to adapt it to the distance distribution between different categories, thereby improving the accuracy of signal recognition.
[0101] The present invention provides an innovative method for identifying multiple types of motor imagery EEG signals, which combines technologies such as multi-core extreme learning machine, time-frequency-space feature fusion and optimization algorithm incorporating radius information. It has high practical application value and provides a powerful tool for further research and application in the field of brain signal analysis.
[0102] In addition to the above-described objects, features and advantages, the present invention has other objects, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0104] Figure 1 The algorithm flow chart of the multi-core extreme learning machine optimized by incorporating radius information of the present invention;
[0105] Figure 2 It is a flow chart of the online EEG signal recognition method based on multi-domain feature fusion of the present invention;
[0106] Figure 3 It is an experimental timing diagram of an embodiment of the present invention;
[0107] Figure 4 It is a schematic diagram of the IMF components decomposed by ICEEMD of the present invention;
[0108] Figure 5 It is a graph of the principal component contribution rate and cumulative contribution rate of a subject of the present invention;
[0109] Figure 6 The first figure is a comparison of the KPCA divergence distribution of four different features of the exercise imagination of the subject B of the present invention, namely, raising arms, raising legs, and raising feet;
[0110] Figure 7 The second figure is a comparison of the KPCA divergence distribution of four different features of the exercise imagination of the subject B of the present invention, namely, raising arms, raising legs, and raising feet;
[0111] Figure 8 The first figure is a confusion matrix of motor imagery EEG categories under different feature extraction methods of the present invention;
[0112] Fig. 9 The second figure is the confusion matrix of the motor imagery EEG category under different feature extraction methods of the present invention;
[0113] Fig.10 This is a comparison chart of the recognition situations of different methods in the embodiments of the present invention. DETAILED DESCRIPTION
[0114] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0115] refer to Figures 1 to 10 ,
[0116] The first step is to use the EEG acquisition device to collect the signal of a motor imagery and select the channel related to motor imagery, and intercept the appropriate segment for analysis; then use the Butterworth filter to filter the intercepted segment, and then use the common average reference to decentralize the filtered EEG signal:
[0117] S101: Collect and select the EEG signals of the four electrode channels FC5, F3, F4, and FC6 that are highly correlated with motor imagery:
[0118]
[0119] Where n = 385 is the number of sampling points, m = 4 is the number of selected leads (channels), and R is a real number set;
[0120] S102: Filter out the EEG signals in the 8-30 Hz frequency band through a Butterworth filter, perform bandpass filtering and decentralization on the multi-lead EEG signals using a common average reference, and obtain a matrix after noise reduction The specific formula for the common average reference is:
[0121]
[0122] In the formula, y i (t) is the original MI-EEG of the i-th channel.
[0123] In the second step, the ICEEMD method is used to decompose the decentralized EEG signal to obtain several IMF components of a single channel, calculate the Pearson correlation coefficient between each IMF component and the original channel signal, select the strongly correlated components and perform signal reconstruction.
[0124] S201, use the ICEEMD algorithm to decompose the decentralized EEG signal, take one channel as an example to briefly describe the decomposition process of ICEEMD, and i CAR (t) Add 200 groups of Gaussian white noise to generate a new signal y i 200CAR (t), can be expressed as:
[0125] y i 200CAR (t) = y i CAR (t)+β k w 200
[0126] Among them, w 200 is a set of Gaussian white noise variables β k =ε k std(r k );r k is the kth remainder, ε k Take a constant value of ε0, and its calculation process is the inverse of the signal-to-noise ratio of the decomposed signal and the added noise (generally set to 0.2).
[0127] S202, two operation modes M(·) and E(·) are now defined, where E(·) represents the relationship between the kth mode M(·) and E(·) obtained by EMD processing and can be expressed as:
[0128]
[0129] The <·> operation represents averaging the whole.
[0130] S203, for y i 200CAR(t) After EMD processing, the first remainder r1 is shown as follows:
[0131] r1=<M(y i 200CAR (t))>
[0132] At the same time, get the first As shown below:
[0133]
[0134] S204, using the second remainder r2 as r1+β1E2(w I ) and get the second
[0135]
[0136] S205, for the remaining r k (k=2,3,...,K), K is the total number of eigenmode functions:
[0137] r k = <M(r k-1 +β k-1 E k (w 200 ))>
[0138] And get the kth As shown below:
[0139]
[0140] Repeat S203-S205 to obtain all eigenmode functions.
[0141] S206, Pearson correlation coefficient is mainly used to measure the linear correlation between variables X and Y. Its formula is:
[0142]
[0143] IMF ij represents the jth IMF component of the ith channel, Represents the original channel y i (t) With IMF ij The Pearson correlation coefficient, cov(y i (t),IMF ij ) represents y i (t) With IMF ij The covariance of Represents y i (t), E(·) represents the mathematical expectation, IMF ij The average value of the amplitude.
[0144] S207, calculating the Pearson correlation coefficient between each IMF component and the original signal, selecting strongly correlated components for signal reconstruction, and further filtering and denoising the EEG signal.
[0145] In the third step, the process of the second step is repeated for each channel to further filter and denoise a certain motion imagination signal and complete the preprocessing process.
[0146] S301, loop through the second step S201-S207, traverse other channels, and obtain Y'(n) = Further filtering and denoising of a certain motion imagination signal is achieved to complete the preprocessing process.
[0147] In the fourth step, the MVAR algorithm is used to analyze the preprocessed EEG signal matrix, the time domain feature matrix of the EEG signal is extracted, and the elements in the time domain feature matrix are converted into time domain feature vectors by connecting the first and last rows; the wavelet packet decomposition method is used to extract the frequency domain features of each channel of the preprocessed EEG signal, and the elements in the frequency domain features of each channel are converted into frequency domain feature vectors by connecting the first and last rows; the Riemann manifold algorithm is used to analyze the preprocessed EEG signal matrix, and the spatial domain feature matrix of the EEG signal is extracted, and the elements in the spatial domain feature matrix are converted into spatial domain feature vectors by connecting the first and last rows:
[0148] S401, MVAR model is a generalized form of univariate AR model. The MVAR model with p order can be described as follows:
[0149]
[0150] The above formula can be simplified to:
[0151]
[0152] Where Y(n) is a (4*1) column vector representing the value of the multi-channel signal at time n, A'(i) is a (4*4) prediction coefficient matrix, and E(n) = (e1(n),...,e4(n)) T is the prediction error matrix, which can be expressed as follows:
[0153]
[0154] in:
[0155] A(0)=I,A(i)=-A′(i)
[0156]
[0157] The autoregressive model parameter a uv (i)(u,v=1,...,d), represents x v (ni) to x u (i) is a linear correlation, and when u≠v, a uv ≠a vu .
[0158] S402, calculate the p-order forward linear prediction value of Y(n) and record it as Defined as:
[0159]
[0160] Among them, A p (i) represents the i-th coefficient matrix of p-order forward prediction.
[0161] S403, calculate the p-order backward linear prediction value, defined as
[0162]
[0163] Where B p (i) represents the i-th coefficient matrix of p-order backward prediction.
[0164] S404, the forward and backward prediction errors are defined as:
[0165]
[0166]
[0167] Where A p (0)=I,B p (0) = I. According to the orthogonality principle,
[0168] E{(F(n)Y(nk) T}=0,k=1,...,p
[0169] S405, define the p-order forward prediction mean square error (i.e., the output power of the forward prediction error) as:
[0170]
[0171] S406, the summation term ∑ in the formula is zero, and the right side of the above formula is expanded to directly obtain:
[0172]
[0173] S407, define the p-order backward prediction mean square error as:
[0174]
[0175] S408, according to the orthogonality principle, we have:
[0176] E{(G(np)Y(n-p+k) T}=0,k=1,...p
[0177] Similarly, there are:
[0178]
[0179] S409, forward and backward prediction mean square error is defined as:
[0180]
[0181] S410, using the above steps to solve the MVAR model, the order is 5, and the number of coefficients is (4 2 *5) matrix [A'(1),...,A'(5)], and then connect each coefficient matrix row by row to obtain the time domain eigenvector of the reconstructed signal of each participant as follows:
[0182]
[0183] S411, step 1, use wavelet packet decomposition method to extract frequency domain features of each channel of the preprocessed EEG signal, obtain 2i sub-bands in the i-th layer, and calculate the energy spectrum energy corresponding to each frequency component:
[0184]
[0185] Where j = 0, 1, 2, 3, f i,j (t j ) is the reconstructed signal of the i-th layer node (i, j) decomposed by wavelet packet, and the energy spectrum of f(t) is:
[0186]
[0187] In the formula, E i,j (t j ) is the frequency band energy of the frequency band energy at the node (i, j) decomposed by the wavelet packet of f(t); x i,j (j=0,1,2,3;k=1,2...385) is the reconstructed signal f i,j (t j ) is the discrete point amplitude; n is the number of signal sampling points.
[0188] S412, looping through step S411, traversing other channels, connecting the elements in the frequency domain features of each channel row by row, and constructing the frequency domain features based on the energy spectrum energy. The frequency domain feature vector of the reconstructed signal of a single participant is obtained as follows:
[0189]
[0190] S413, Riemann manifold is used to extract spatial features. This study uses the covariance matrix of EEG signals as the statistical feature of the data. The spatial covariance matrix of the EEG signal of a single participant is:
[0191]
[0192] S414, since the covariance matrix is symmetric and the off-diagonal items are calculated twice during the calculation process, only the upper triangular part of the matrix is taken as the spatial domain feature, so its off-diagonal elements need to be scaled to maintain the standard. Vectorize it into a spatial domain feature vector:
[0193]
[0194] The fifth step is to connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector.
[0195] S501, the time domain feature vector Frequency domain eigenvector and the spatial feature vector Perform feature concatenation to obtain a joint feature vector
[0196]
[0197] Joint eigenvector For the same sample data, the union of the features in each domain extracted by different signal processing methods is a 106-dimensional feature vector.
[0198] S502, constructing a label vector to facilitate subsequent classification work.
[0199] Step 6: Repeat steps 1 to 5 to extract the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery and construct a time-frequency-space joint feature matrix;
[0200] S601, step 1, repeat steps 1 to 7, extract the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery, and construct the time-frequency-space joint feature matrix T:
[0201]
[0202] Each row of the matrix represents the joint feature vector of a sample.
[0203] The seventh step is to perform kernel principal component analysis on the time-frequency-space joint feature matrix, select the number of principal components according to the principle that the cumulative contribution rate is greater than 85%, and project the sample data into the new principal component space to obtain the fused feature vector after dimensionality reduction.
[0204] S701, perform kernel principal component analysis on the joint feature matrix, project the joint feature matrix T into a linearly separable high-dimensional space through the kernel function φ, and obtain the principal component coefficient matrix Coeff as follows:
[0205]
[0206] S702: During principal component analysis, the sample covariance matrix can be obtained. The sample covariance matrix is composed of eigenvalues, which are arranged in descending order. The eigenvalues are λ1≥λ2≥…≥λ t and the corresponding eigenvector α k (k=1,…,t);
[0207] S703: Ratio It reflects the contribution rate of the kth principal component in the generated feature space. The number of core principal components is determined according to the cumulative contribution rate formula of eigenvalue variance 10. The calculation formula is as follows:
[0208]
[0209] The number of principal components is selected according to the principle that the cumulative contribution rate is greater than 85%, and the projection of the joint feature constructed by each motor imagery signal on the new principal component is obtained as the fusion feature. When the number of principal components is 10, the cumulative contribution rate exceeds 85%, so the number of principal components is determined to be 10.
[0210] S704, select the first 10 principal components and construct a 106*10 principal component coefficient matrix:
[0211]
[0212] S705, projecting the joint feature vector constructed by each sample onto the principal component coefficient matrix, the fusion feature vector after dimensionality reduction can be obtained
[0213]
[0214] The eighth step is to construct a multi-core extreme learning machine model, train its parameters by combining the time-frequency-space fusion features, and re-optimize its parameters by incorporating the radius information algorithm, thereby obtaining the optimal multi-core extreme learning machine classification model.
[0215] S801: Divide the joint features after dimension reduction into a training set, a validation set and a test set according to a certain ratio;
[0216] S802: Constructing a kernel learning machine model: Constructing a kernel extreme machine model, selecting a mixed weight of a radial basis kernel function and a polynomial kernel function as the kernel function of the kernel extreme learning machine, and realizing dimensionality reduction by multiplying the original high-dimensional data input by the weight matrix between the hidden layer and the output layer:
[0217]
[0218] is a training set, φ(x i )(i=1,...,n) is for X i The feature map of ∣φ(·)∣*T is the output weight, ξ∈R T*n is the training error matrix on the training data, is the first column of ξ, If X i belongs to the tth class, n and T are the number of training samples and classes, C is a regularization parameter that weighs the norm of the output weight and the training error, ||·|| F is the F-norm.
[0219] S803: Optimize the parameters of step 1 by incorporating radius information, and train the parameters by integrating features to obtain the optimal model. The objective function of MK-ELM incorporating radius information is expressed in the following equation:
[0220]
[0221] Where Rp is the radius of MEB in the induced feature space and γ is the kernel function combination weight.
[0222] S804: Optimize the model hyperparameters using the validation set to obtain the optimal diagnostic model.
[0223] S805: Input initial parameters, including different types of kernel functions, category labels, and regularization parameters that weigh output weights and training error norms.
[0224] S806: Initialize the kernel combination function weight parameters and the number of iterations, and use the kernel function to calculate the radius Rp of the MEB in the induced feature space.
[0225] S807: Calculate the combination parameters of the kernel function and the type of the kernel function in a loop iteration, and update the structural parameter α of the ELM and the kernel function combination weight γ. The formulas are as follows:
[0226]
[0227]
[0228] S808: Until the difference between the largest two sum function combination weights is ≤ 10-4 , output all the optimal parameters and obtain the optimal kernel extreme learning machine classification model.
[0229] S809: Input parameters such as the type of kernel function, the regularization parameter C of the norm of the training error, the weight parameter of the kernel combination function and the structural parameter of the ELM into the online recognition program.
[0230] In the ninth step, the optimal multi-core extreme learning machine classification model is deployed in the real scene, and statistical analysis is performed on the number of strongly correlated IMF components in each channel from the second step to the eighth step of each sample and each type of motor imagery, the MVAR model order and other parameters, an online recognition process is constructed, and real-time motor imagery EEG signals are recognized online.
[0231] S901: From the existing real-time collected EEG signal matrix, select the EEG signals of the four electrode channels FC5, F3, F4, and FC6 that are highly correlated with motor imagery.
[0232] S902: Select the segment related to motor imagery, i.e., the 4 to 7 seconds of collected data of the experimenter
[0233] S903: Using a 10th order Butterworth filter and a common average reference pair X new Processing is performed to obtain the denoised matrix
[0234] S904: Statistically analyzing the number of IMF components that are strongly correlated with each motor imagination of each sample during the offline training phase, arranging the IMF components in descending order according to the correlation coefficient from large to small, summarizing the statistical rules, and finding that the number of IMF components that are strongly correlated with each motor imagination of each sample is the first two.
[0235] S905: Use ICEEMD algorithm to calculate Y new Decompose each channel of
[0236] The channel signal is reconstructed to obtain Further filtering and denoising of the real-time motion imagery signal is achieved to complete the online preprocessing process.
[0237] S906: Statistically analyzing the order of the MVAR algorithm in the offline training phase, it is found that the motor imagery order of 95% of the samples is 5.
[0238] S907: Yes A 5th-order MVAR algorithm is used to convert the elements in the time domain feature matrix into a time domain feature vector by connecting the first and last rows.
[0239] S908: Yes Perform two-layer wavelet packet decomposition on each channel, and transform the elements in the frequency domain features of each channel into frequency domain feature vectors by connecting the beginning and the end of each row.
[0240] S909: Yes The Riemann manifold algorithm is used to extract the spatial feature matrix of the EEG signal, and the elements in the spatial feature matrix are converted into spatial feature vectors by connecting the beginning and the end of the rows.
[0241] S910: Connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector
[0242] S911: Statistical analysis is performed on the number of principal components selected in the offline training phase according to the principle that the cumulative contribution rate exceeds 85%, and it is found that the number of principal components for each sample is 10.
[0243]
[0244] S912, the real-time time-frequency-space joint feature vector Multiply it with the principal component coefficient matrix Coeff' in the offline training phase to obtain the fusion feature vector after dimension reduction
[0245]
[0246] S913, will The data is input into the multi-core extreme learning machine model that incorporates radius information and is trained in the offline training phase for online recognition.
[0247] Example:
[0248] To verify the effectiveness of the present invention, this embodiment designs multiple motor imagery experimental paradigms. The Emotiv Epoc+ device is used for EEG experimental data acquisition. The device includes 14 channels and 2 reference electrodes, with a sampling frequency of 128Hz, and the electrodes are arranged in accordance with the international 10-20 standard. The experiment performs three motor imagery tasks: arm raising, leg raising, and foot raising. A total of 7 subjects participated.
[0249] During the experiment, the subjects placed their hands naturally and relaxed, and performed three types of motor imagery under external prompts. At the beginning of the experiment, the subjects stared at a blank white screen; at t = 1s, a short beep sounded, and a "+" appeared on the screen, prompting the subjects to prepare; at t = 3s, an arrow lasting 1.25s appeared, pointing up, down, and to the right, prompting the subjects to imagine raising their arms, legs, and feet; at t = 7s, the motor imagery ended; the next trial continued after a 2s rest. Each subject collected 80 sets of data for each type of action, for a total of 240 sets, including 120 sets of training data and 120 sets of test data (40 sets for each of the three motor imagery tasks).
[0250] The experimental data of 4 to 7 seconds were selected for analysis. Four electrode channels highly correlated with motor imagery, FC5, F3, F4, and FC6, were selected and filtered to 8 to 30 Hz using a 10th-order Butterworth filter. The next step of decentralized processing was performed using a common average reference. Finally, the decentralized EEG signal was decomposed using the ICEEMD method, as shown in Figure 2. Figure 4 As shown in Figure 1, the Pearson correlation coefficient between each IMF component and the original signal is calculated, and the extremely correlated and strongly correlated components are selected for signal reconstruction, so as to further filter and denoise the EEG signal; repeat the above steps for each channel, and then perform statistical analysis on the components of each channel; and input the Butterworth filter order and the number of IMF components into the online recognition model to obtain a new signal sample Y 384×4 Repeat the above process for different motor imagery original signals, and obtain the new signal matrices of arm-raising, leg-raising and foot-raising motor imagery, A_Y 384*4*20 , B_Y 384*4*20 and C_Y 384*4*20 Among them, taking the motor imagery of subject 1 as an example, it is explained:
[0251] The AR model coefficients of the new signal samples were extracted using the 5th-order MVAR model. Considering the mutual influence between each channel, the time domain feature matrices of the subjects' arm-raising, leg-raising, and foot-raising motor imagery were obtained as A_AR 16*5 , B_AR 16*5 and C_AR 16*5 , connect the time domain feature vectors of each channel end to end to obtain the time domain feature vector A_AR 80*1 , B_AR 80*1 and C_AR 80*1 ; Use bior wavelet basis function to extract the frequency domain feature matrix A_BIOR of the new signal sample 4*4 、B_BIOR 4*4 and C_BIOR 4*4 , connect the frequency domain feature vectors of each channel end to end to get the frequency domain feature vector A_BIOR 16*1、B_BIOR 16*1 and C_BIOR 16*1 ; Use Riemannian geometry to extract the spatial feature vector A_RG of the new signal sample 10*1 , B_RG 10*1 and C_RG 10*1 ; Combine the time-frequency-space features to obtain the joint feature vector A 106*1 , B 106*1 and C 106*1 , repeat the above steps to extract the joint feature vectors of 60 sample signals of three types of motor imagery, and construct a 60*106 joint feature matrix M; refer to Figure 5 , the kernel principal component analysis algorithm is used to select the first 10 main features of the joint feature matrix M, and the dimension of the joint feature matrix is reduced to obtain the fusion feature matrix A_F 20 ×10 , B_F 20×10 and C_F 20×10 . refer to Figure 6 To prove the effectiveness of feature fusion, this case conducted kernel principal component analysis on the time domain features, frequency domain features, spatial features and fusion features of the three types of motor imagery EEG signals of subject B, and extracted their first two dimensional data for divergence plotting. Figure 6 The top part is the time domain feature scatter diagram of the three types of motor imagery EEG signals of subject B. Figure 6 The lower part is the frequency domain characteristic scatter diagram of the three types of motor imagery EEG signals of subject B. Figure 7 The upper part is the spatial feature scatter diagram of the three types of motor imagery EEG signals of subject B. Figure 7 The lower part is the fusion feature divergence diagram of the three types of motor imagery EEG signals of subject B; Figure 8 and Fig. 9 The figure shows the average confusion matrix of the EEG classification results of motor imagery of the subjects under different feature extraction methods. It can be seen that the confusion degree of arm-raising motor imagery and leg-raising motor imagery is relatively high, and the classification accuracy of leg-raising motor imagery is the highest, which can reach 95.49%.
[0252] The above fusion features are classified by optimizing the multi-core extreme learning machine with radius information. First, the fusion feature set is divided into training set and test set according to the ratio of 6:2:2. Secondly, the radial basis kernel function and the polynomial kernel function are selected as the kernel of the multi-core extreme learning machine, and the multi-core extreme learning machine classification model is established and trained with the training set. Considering the uncertainty of the internal parameters of the model (regularization coefficient, kernel parameter coefficient), in order to obtain the optimal parameter value combination, the classification accuracy of the validation set of the multi-core extreme learning machine is taken as the objective function, and the initial parameters are input, including different types of kernel functions, category labels and regularization parameters that weigh the output weight and the norm of the training error. Initialize the kernel combination function weight parameters and the number of iterations, and use the kernel function to calculate the radius Rp of the MEB in the induced feature space. Iterate the calculation of the combination parameters of the kernel function and the type of the kernel function, update the structural parameter α of the ELM and the kernel function combination weight γ, until the difference between the largest two sum function combination weights is ≤10-4, output all the best parameters, and obtain the optimal kernel extreme learning machine classification model.
[0253] After the optimal kernel extreme learning machine is obtained through training, the model is verified using the test set. Figure 7 In order to verify the superiority of the multi-core extreme learning machine based on time-frequency-space feature fusion and radius information optimization, this case compares this method with several feature extraction and classification algorithms such as EMD-SVM, CSP-SVM and CNN, proving that the proposed method has good recognition effect.
[0254] The above trained parameters are input into the online model, deployed in real scenes and tested on the real-time collected motor imagery EEG signals. The EEG signals can be identified and classified online: the existing real-time collected EEG signal matrix, select the EEG signals of the four electrode channels FC5, F3, F4, and FC6 that are highly related to motor imagery, select the segments related to motor imagery, that is, the 4-7 seconds of collected data of the experimenter X new , using a 10th order Butterworth filter and a common average reference pair X new After processing, the denoised matrix X is obtained. new , the number of IMF components strongly correlated with each motor imagination of each sample in the offline training stage was statistically analyzed, and the IMF components were arranged in descending order according to the correlation coefficient from large to small. The statistical rules were summarized and it was found that the number of IMF components strongly correlated with each motor imagination of each sample was the first two. The ICEEMD algorithm was used to analyze the Y new Decompose each channel of , take the first two IMF components to reconstruct the original channel signal, and get Further filtering and denoising of real-time motion imagery signals were achieved, the online preprocessing process was completed, and the order of the MVAR algorithm in the offline training phase was statistically analyzed. It was found that the motion imagery order of 95% of the samples was 5. Perform the 5th-order MVAR algorithm to convert the elements in the time domain feature matrix into time domain feature vectors by connecting the first and last rows. Perform a two-layer wavelet packet decomposition on each channel, and transform the elements in the frequency domain features of each channel into frequency domain feature vectors by connecting the first and last rows. The Riemann manifold algorithm is used to analyze and extract the spatial feature matrix of the EEG signal. The elements in the spatial feature matrix are converted into spatial feature vectors by connecting the end of each row. The time domain, frequency domain, and spatial domain feature vectors are connected end to end to construct a time-frequency-space joint feature vector. The number of principal components selected in the offline training phase according to the principle of cumulative contribution rate exceeding 85% was statistically analyzed, and it was found that the number of principal components for each sample was 10, and the real-time time-frequency-space joint feature vector Multiply it with the principal component coefficient matrix Coeff' in the offline training phase to obtain the fusion feature vector after dimension reduction Will The data is input into the multi-core extreme learning machine model that incorporates radius information and is trained in the offline training phase for online recognition.
[0255] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An online EEG signal recognition method based on multi-domain feature fusion, characterized in that: include: S1, using an EEG acquisition device to collect a motor imagery signal and select channels related to motor imagery, intercepting appropriate segments for analysis; then using a Butterworth filter to filter the intercepted segments, and then using a common average reference to decentralize the filtered EEG signal; S2, using the ICEEMD method to decompose the decentralized EEG signal to obtain several IMF components of a single channel, calculate the Pearson correlation coefficient between each IMF component and the original channel signal, select the strongly correlated components and perform signal reconstruction; S3, repeating the second step process for each channel to further filter and denoise a certain motion imagination signal, completing the preprocessing process; S4, the MVAR algorithm is used to analyze the preprocessed EEG signal matrix, the time domain feature matrix of the EEG signal is extracted, and the elements in the time domain feature matrix are converted into time domain feature vectors by connecting the first and last rows; the wavelet packet decomposition method is used to extract the frequency domain features of each channel of the preprocessed EEG signal, and the elements in the frequency domain features of each channel are converted into frequency domain feature vectors by connecting the first and last rows; The Riemann manifold algorithm is used to analyze the preprocessed EEG signal matrix, extract the spatial feature matrix of the EEG signal, and transform the elements in the spatial feature matrix into spatial feature vectors by connecting the first and last elements in the rows. S5, connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector; S6, repeating steps S1 to S5, extracting the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery, and constructing a time-frequency-space joint feature matrix; S7, performing kernel principal component analysis on the time-frequency-space joint feature matrix, selecting the number of principal components according to the principle that the cumulative contribution rate is greater than 85%, and projecting the sample data into the new principal component space to obtain the fusion feature vector after dimension reduction; S8, constructing a multi-core extreme learning machine model, training its parameters by combining the time-frequency-space fusion features, and re-optimizing its parameters by combining the radius information incorporation algorithm, thereby obtaining the optimal multi-core extreme learning machine classification model; S9, deploys the optimal multi-core extreme learning machine classification model in real scenarios, and performs statistical analysis on parameters such as the number of strongly correlated IMF components in each channel from the second to the eighth step of each sample and each type of motor imagery, the order of the MVAR model, etc., builds an online recognition process, and performs online recognition of real-time motor imagery EEG signals.
2. The method for online recognition of EEG signals based on multi-domain feature fusion according to claim 1 is characterized in that: The step S1 comprises: S11, collect and select the lead information related to motor imagery, and construct the original sampling signal matrix X is the signal matrix constructed by the original sampling signal. Each row in the matrix is the acquisition signal of one lead, and each column is a sampling point, that is, m is the number of selected leads (channels), and n is the number of sampling points; S12, filter out the EEG signals in the 8-30 Hz frequency band through the Butterworth filter, perform bandpass filtering and de-centering on the multi-lead EEG signals using the common average reference, and obtain the matrix after noise reduction The formula for the common average reference is as follows: In the formula, y i (t) is the original MI-EEG of the i-th channel.
3. The method for online EEG signal recognition based on multi-domain feature fusion according to claim 1 is characterized in that: The step S2 comprises: S21, select a channel signal in the matrix Y, use the ICCEMD method to decompose it, obtain several IMF components, and calculate the Pearson correlation coefficient between each IMF component and the original channel signal. The formula of the Pearson correlation coefficient is as follows: IMF ij represents the jth IMF component of the ith channel, Represents the original channel y i (t) With IMF ij The Pearson correlation coefficient, cov(y i (t),IMF ij ) represents y i (t) With IMF ij The covariance of Represents y i (t), E(·) represents the mathematical expectation, IMF ij The average value of the amplitude; S22, based on the Pearson correlation coefficient, select the channel that is strongly correlated with the original signal for signal reconstruction.
4. The method for online recognition of EEG signals based on multi-domain feature fusion according to claim 1, characterized in that: The step S3 comprises: Loop through step S2 to traverse other channels. get Realize Further filtering and denoising of a certain motion imagination signal completes the preprocessing process; where m is the number of selected leads (channels), n is the number of sampling points, and R is a real number set.
5. The method for online EEG signal recognition based on multi-domain feature fusion according to claim 1 is characterized in that: The step S4 comprises: S41, MVAR model is a generalized form of univariate AR model. The MVAR model is used to extract the time domain features of the reconstructed EEG signal matrix. The MVAR model with p order can be described as follows: Where Y'(n) is an (m*1) column vector representing the value of the multi-channel signal at time n, i is the delay, p is the order of the model, A'(i) is an (m*m) prediction coefficient matrix, y1(n),...,y m (n) is the value of each time series at the current moment, e1(n),...,e m (n) is the further prediction error, E(n)=(e1(n),...,e m (n)) T is the prediction error matrix; S42, the normalized LWR algorithm is used to solve the MVAR model with an order of p, and the number of coefficients is constructed (m 2 *p) matrix [A'(1),...,A'(p)], a 1,1 ,...,a m,m is the prediction coefficient with time delay i, and then connect each element matrix row by row to obtain the time domain feature vector of the reconstructed signal of each participant as follows: S43, using wavelet packet decomposition method to extract frequency domain features of each channel of the preprocessed EEG signal, obtaining 2k sub-bands at the kth layer, and calculating the energy spectrum energy corresponding to the components of each frequency; S44, looping through step S43, traversing other channels, connecting the elements in the frequency domain features of each channel row by row, and constructing the frequency domain features based on the energy spectrum energy. The frequency domain feature vector of the reconstructed signal of a single participant is obtained as follows: S45, Riemann manifold is used to extract spatial features. This study uses the covariance matrix of EEG signals as the statistical feature of the data. The spatial covariance matrix of the EEG signal of a single participant is: S46, since the covariance matrix is symmetric and the off-diagonal items are calculated twice during the calculation process, only the upper triangular part of the matrix is taken as the spatial domain feature, so its off-diagonal elements need to be scaled to maintain the standard; vectorize it into the spatial domain feature vector:
6. The method for online EEG signal recognition based on multi-domain feature fusion according to claim 1 is characterized in that: The step S5 comprises: S51, the time domain feature vector Frequency domain eigenvector and the spatial feature vector Concatenate the features head to tail to construct a time-frequency-space joint feature vector Joint eigenvector For the same sample data, the union of the features in each domain extracted by different signal processing methods is a t-dimensional feature vector; S52, construct a label vector to facilitate subsequent classification work.
7. The method for online EEG signal recognition based on multi-domain feature fusion according to claim 1, characterized in that: The step S6 comprises: Repeat steps S1 to S5 to extract the time-frequency-space joint feature vectors of all sample signals of various types of motor imagery, and construct the time-frequency-space joint feature matrix T: Each row of the matrix represents the joint feature vector of a sample.
8. The method for online recognition of EEG signals based on multi-domain feature fusion according to claim 1, characterized in that: The step S7 comprises: S71, perform kernel principal component analysis on the joint feature matrix, project the joint feature matrix T into a linearly separable high-dimensional space through the kernel function φ, and obtain the principal component coefficient matrix Coeff as follows: S72, the sample covariance matrix can be obtained at the same time as the principal component analysis. It is composed of eigenvalues that form column vectors, and the eigenvalues are arranged in descending order. The eigenvalues λ1≥λ2≥…≥λ t and the corresponding eigenvector α k (k=1,…,t); S73, ratio It reflects the contribution rate of the kth principal component in the generated feature space. The number of core principal components c is determined according to the cumulative contribution rate formula of eigenvalue variance. The calculation formula is as follows: The number of pivots is selected based on the principle that the cumulative contribution rate exceeds 85%. When the number of pivots is c, the cumulative contribution rate exceeds 85%, so the number of pivots is determined to be c. S74, select the first c principal components, so the principal component coefficient matrix becomes: S75, project the joint feature vector constructed by each sample onto the principal component coefficient matrix to obtain the fusion feature vector after dimensionality reduction 9. The method for online recognition of EEG signals based on multi-domain feature fusion according to claim 1, characterized in that: The step S8 comprises: S81, divide the joint features after dimension reduction into training set, validation set and test set according to a certain ratio; S82, construct a multi-core extreme learning machine model, select a mixed weight of a radial basis kernel function and a polynomial kernel function as the kernel function of the multi-core extreme learning machine, and the model of the extreme learning machine is as follows: is a training set, φ(x i )(i=1,...,n) is for X i The feature map of ∣φ(·)∣*T is the output weight, ξ∈R T*n is the training error matrix on the training data, is the first column of ξ, If X i belongs to the tth class, n and T are the number of training samples and classes, C is a regularization parameter that weighs the norm of the output weight and the training error, ∥·∥ F is the F-norm; S83: The parameters of step 1 are optimized by using an algorithm incorporating radius information, and the optimal model is obtained by training it through time-frequency-space fusion features; the objective function of MK-ELM incorporating radius information is expressed in the following equation: Where Rp is the radius of MEB in the induced feature space, and γ is the kernel combination weight; S84: Use the validation set to optimize the model hyperparameters and obtain the optimal diagnostic model; S85, obtaining the optimal kernel extreme learning machine classification model; and classifying through the optimal kernel extreme learning machine to complete the recognition of multiple types of motor imagery EEG signals.
10. The method for online EEG signal recognition based on multi-domain feature fusion according to claim 1, characterized in that: The step S9 comprises: S91, the EEG signal matrix collected in real time is used to select the EEG signals of the four electrode channels FC5, F3, F4 and FC6 that are highly correlated with motor imagery; S92, select the segment related to motor imagery, that is, the 4 to 7 seconds of data collected by the experimenter S93, using a 10th order Butterworth filter and a common average reference pair X new Processing is performed to obtain the denoised matrix S94, statistically analyzing the number of IMF components strongly correlated with each motor imagery of each sample during the offline training phase, arranging the IMF components in descending order according to the correlation coefficient from large to small, summarizing the statistical rules, and finding that the number of IMF components strongly correlated with each motor imagery of each sample is the first q; S95, using ICEEMD algorithm to calculate Y new Decompose each channel of , take the first q IMF components to reconstruct the original channel signal, and get Achieve further filtering and denoising of real-time motion imagery signals and complete the online preprocessing process; S96, statistical analysis of the order of the MVAR algorithm in the offline training phase found that the motor imagery order of 95% of the samples was p; S97, yes Perform p-order MVAR algorithm processing to transform the elements in the time domain feature matrix into time domain feature vectors by connecting the first and last rows; S98, yes Perform i-layer wavelet packet decomposition on each channel, and transform the elements in the frequency domain features of each channel into frequency domain feature vectors by connecting the beginning and the end of each row; S99, yes The Riemann manifold algorithm is used to extract the spatial feature matrix of the EEG signal, and the elements in the spatial feature matrix are converted into spatial feature vectors by connecting the beginning and the end of the rows. S910, connect the time domain, frequency domain, and space domain feature vectors end to end to construct a time-frequency-space joint feature vector S911, statistical analysis is performed on the number of principal components selected in the offline training phase according to the principle that the cumulative contribution rate exceeds 85%, and it is found that the number of principal components of each sample is c; S912, the real-time time-frequency-space joint feature vector Multiply it with the principal component coefficient matrix Coeff' in the offline training phase to obtain the fusion feature vector after dimension reduction S913, will The data is input into the multi-core extreme learning machine model that incorporates radius information and is trained in the offline training phase for online recognition.
Citation Information
Cited By
Fusion type multi-dimensional motor imagery electroencephalogram classification method, system and device, medium and product
CN119167187A
Gas detection method and device based on cantilever microphone, computer equipment, storage medium and computer program product
CN119666755A
Establishment system of typing recognition deep learning model based on electroencephalogram and electromyographic signals
CN119760476A
Electroencephalogram-based user behavior prediction method, device and equipment in intelligent glasses
CN120067653A
Medicinal plant growth cycle evaluation method based on AI image recognition
CN120182839A
