Online identification method for different motor imagery electroencephalogram signals of single joint
Through Butterworth filter, empirical wavelet transform and fuzzy entropy screening, local linear embedding algorithm and hybrid kernel extreme learning machine model, the noise filtering and multi-classification problems in motor imagination EEG signal recognition are solved, and multi-category motor imagination is improved. Recognition accuracy of EEG signals.
Patent Information
- Application Number
- CN202310942151.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-29
- Publication Date
- 2024-10-01
AI Technical Summary
Existing motor imagination EEG signal recognition methods have noise filtering and multi-classification problems in signal processing and feature extraction, resulting in poor recognition results, especially for classification and recognition of multi-type motor imagination EEG signals.
Butterworth filter and common average reference are used for preprocessing, combined with parameter-free adaptive empirical wavelet transform decomposition and fuzzy entropy screening, to extract time domain and spatial domain features, and fuse features through local linear embedding algorithm to build a hybrid kernel extreme learning machine model, utilizing the Harris Hawk optimization algorithm to optimize parameters to improve classification performance.
It effectively avoids the modal aliasing phenomenon in signal decomposition, enhances feature information, reduces feature dimensions, improves the recognition accuracy of multiple types of motor imagination EEG signals, and solves the problem of poor recognition results in the existing technology.
Smart Images

Figure CN118734149A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a research technology of electric signal classification and recognition, and in particular to an online recognition method for single-joint different movement imagination EEG signals. Background Art
[0002] At present, although there are many sports assistive devices to help disabled patients, these external assistive devices require patients to have certain motor skills to use them, so they are not friendly to patients who have completely lost their motor skills due to neurological disorders. With the major progress in brain science and artificial intelligence, brain-computer interface technology has made it possible for patients with complete motor loss to use these assistive devices. Brain-computer interface technology (Brain Computer Interface, BCI) is a technology that highly combines software and hardware. It allows people to interact directly with the surrounding environment through electroencephalogram (EEG) signals without relying on peripheral nerves and muscle tissue. At present, there are three types of EEG that can be used in brain-computer interfaces, namely external stimulus-induced EEG, P300EEG and motor imagery EEG. Among them, motor imagery EEG has the advantages of flexible triggering and strong user initiative, so it has been widely used.
[0003] Using motor imagery EEG to help patients achieve assistive device movement can be divided into three main processes: signal processing, feature extraction, and classification and recognition. Many scholars have proposed a large number of processing methods for these three processes. However, due to the weakness, specificity, and non-stationarity of motor imagery EEG, many methods have failed to achieve good results in practical applications. First, in terms of signal processing, in order to filter out noise in the signal and extract task-related components, many nonlinear signal decomposition methods have been introduced, such as wavelet decomposition and empirical mode decomposition. However, due to the limitations of the methods themselves, the decomposed signal is often distorted. Secondly, in terms of feature extraction, the widely used common space model has shown significant superiority in the problem of binary classification of EEG signals, but it is not applicable to multi-classification problems. Finally, in terms of classification and recognition, the existing classification model has a high complexity, so in actual online recognition, the model must have a delay problem.
[0004] Therefore, providing a method for recognizing multiple types of motor imagery EEG signals with strong feature extraction capability and high classification performance has become a technical problem that researchers in this field need to solve urgently. Summary of the invention
[0005] The main purpose of the present invention is to provide an online recognition method for EEG signals of different motor imagery of a single joint, so as to realize the classification and recognition of multiple types of motor imagery EEG signals.
[0006] The technical solution adopted by the present invention is: an online recognition method for single-joint different movement imagination EEG signals, comprising:
[0007] S1, using EEG acquisition equipment to collect multi-lead motor imagery EEG signals of different actions of different subjects;
[0008] S2, using Butterworth filter and common mean reference to preprocess the collected EEG signals, and using parameter-free adaptive empirical wavelet transform to decompose the preprocessed EEG signals of each lead into a series of modal components, and reconstruct the EEG signal matrix by calculating the fuzzy entropy value of each modality and selecting the modal component with the largest entropy value in each lead;
[0009] S3, using the AR model algorithm to extract the time domain features of the reconstructed EEG signal matrix, and using the common space pattern algorithm to extract the spatial domain features of the reconstructed EEG signal matrix;
[0010] S4, concatenate the time domain features with the frequency domain features, and fuse them using a local linear embedding algorithm to obtain the final features;
[0011] S5, constructing a hybrid kernel extreme learning machine model, dividing the feature vectors extracted in step S4 into a training set, a validation set, and a test set in a ratio of 6:2:2, training the parameters of the kernel extreme learning machine through the training set, optimizing the parameters of the kernel extreme learning machine through the validation set combined with the Harris Eagle optimization algorithm, obtaining the optimal kernel extreme learning machine classification model, and verifying the optimal kernel extreme learning machine through actual use through the test set;
[0012] S6, using the well-performing kernel extreme learning machine verified by the test set to classify and recognize the real-time collected EEG data.
[0013] Furthermore, the step S2 comprises:
[0014] S21, select multi-lead EEG signals x related to motor imagery i (t)∈R l×m , where t is the number of sampling points, i is the number of leads, where t=1,2,···,l, i=1,2,···,m;
[0015] S22, using a 4th order Butterworth filter to transform the EEG signal x i The frequency band of (t) is filtered to 8-30Hz, and the filtered EEG signal is s i (t);
[0016] S23, using the common average reference to filter the EEG signal s i (t) to perform noise reduction and obtain the noise-reduced signal y i (t);
[0017]
[0018] S24, EEG signal y i (t) Perform Fourier transform and standardize to the interval [0,π] to obtain the frequency domain signal Y i (ω);
[0019] S25, using the scale space method to convert Y i (ω)(ω∈[0,π]) is adaptively divided into N sub-bands;
[0020] S26, construct a wavelet filter on each sub-band according to Meyer wavelet theory:
[0021]
[0022]
[0023] In the formula, Φ n (ω) and Ψ n (ω) are the scale function and wavelet function of the empirical wavelet, β(y) is a function defined between [0,1], and here β(y) = y 4 (35-84y+70y 2 -20y 3 ),
[0024]
[0025] For the EEG signal y i (t), the detail parameters of its wavelet function and the detail parameters of the scaling function They are defined as:
[0026]
[0027]
[0028] Where Y i (ω), and are the discretized EEG signal, wavelet function value and scaling function value respectively;
[0029] Finally, the y i (t) After empirical wavelet decomposition, the following empirical modes are obtained:
[0030]
[0031] S27, modal components of EEG signals of each lead Define its phase space embedding dimension w (w < l-1) and similarity capacity r, and reconstruct the phase space:
[0032]
[0033]
[0034] First, calculate the window vector and Maximum distance:
[0035]
[0036] Then, calculate The fuzzy membership of And find all The mean
[0037]
[0038]
[0039] Next, calculate the vectors of all windows The mean of :
[0040]
[0041] Finally, repeat S41-S44 to calculate On this basis, we obtain The fuzzy entropy is:
[0042]
[0043] S28, select the one with the largest fuzzy entropy value The EEG signals of each lead are reconstructed using the inverse empirical wavelet transform i (t):
[0044]
[0045] in, and max (t) are the ones with the maximum fuzzy entropy value. The corresponding wavelet function value and wavelet function detail parameter value.
[0046] Furthermore, the step S25 includes:
[0047] S251, the frequency domain function Y of the EEG signal i (ω) discretizes to obtain a discrete signal
[0048] S252, Definition The scale space function of :
[0049]
[0050] in, is the Gaussian kernel function, σ is the scale parameter, λ is the moving step of the discrete function, and M is the maximum step of the discrete function;
[0051] To discretize the scale space function, discretize the scale parameter σ:
[0052]
[0053] Where, s=1,2,···,s max , s max =2ω max ;
[0054] S253, find out All the minimum points of the scale space function and calculate the scale superposition value L at all the minimum points i , the Otus method was used to determine L i The L values greater than the threshold are retained. i The corresponding minimum point ω Li , and use this as the dividing point to split.
[0055] Furthermore, the step S3 comprises:
[0056] S31, using p-order AR model to fit the single-channel motor imagery EEG signal y i (t):
[0057]
[0058] Among them, y i (n) represents the nth sample value of the signal, p is the order of the AR model, and a k are the coefficients of the AR model (k=1,2,…,p), s(n) has a mean of 0 and a variance of σ 2 The white noise residual of
[0059] S32, using Burg algorithm to calculate the AR model described in S41 k To solve;
[0060] S33, connect the p-order AR coefficients of the m channels into a row vector, and obtain the time domain feature vector of the reconstructed signal as follows:
[0061] f s =[a 11 ,a 12 ,...,a 1p,...,a m1 ,a m2 ...,a mp ]
[0062] S34, for the signal matrices U1 and U2 of the two types of motor imagery tasks, U1 and U2 are normalized and their covariances R1 and R2 and their mixed covariance R are calculated respectively:
[0063]
[0064]
[0065]
[0066] in, and They represent the covariance means of all samples of the first and second types of motor imagery tasks, respectively;
[0067] First, perform eigenvalue decomposition on the mixed variance matrix and calculate the whitening matrix:
[0068] R=QΛQ T
[0069]
[0070] Among them, Q is the eigenvector matrix of R, Λ is the diagonal matrix composed of the eigenvalues of R, and P is the whitening matrix;
[0071] Then, whiten and principal component decomposition are performed on R1 and R2 respectively to obtain the common eigenvector matrix B:
[0072] S1=PR1P T ,S2=PR2P T
[0073]
[0074] Among them, S1 and S2 are the matrices of R1 and R2 after whitening, B1 and B2 are the eigenvector matrices of S1 and S2, Λ1 and Λ2 are the eigenvalues of S1 and S2, and Λ1+Λ2=I, then:
[0075] B=B1=B2
[0076] Next, take the first b rows and the last b rows of B and construct a spatial filter:
[0077] W=B T P
[0078] Finally, the “ovo” strategy is adopted to construct a total of G(G-1) / 2 spatial filters for the G-type motor imagery task. These filters are spliced to construct the total filter:
[0079] W=[W1;W1;···;W G ]
[0080] S35, single sample U of the g-th type of motor imagination g Perform spatial filtering and extract row variance features:
[0081] Z g =WU g
[0082]
[0083] Among them, Z g and f g U g The filter matrix and eigenvector of .
[0084] Furthermore, the step S32 includes:
[0085] S321, define the k-order forward prediction error sequence as f k (n), k-order backward error prediction sequence b k (n), initialize k = 0, f0(n) = b0(n) = y i (n), initialize a k =1, a r =0(r=1,2,…,p);
[0086] S322, calculate the k+1th order reflection coefficient u k+1 :
[0087]
[0088] S323, use the following formula to estimate the coefficients of the k+1 order AR model: Let a r ′=a r +u k+1 a k+1-r (r=1,2,…,k+1), and then let a r =a r ′;
[0089] S324, determine whether k+1=p is true, if not, proceed to step S425, if yes, stop the calculation and obtain the p-order AR model coefficient a k ;
[0090] S325, using the following formula to estimate the k+1 order forward prediction error sequence and the k+1 order backward prediction error sequence:
[0091] f k+1 (n) = f k (n)+u k+1 b k (nk-1)
[0092] b k+1 (n) = b k (n)+u k+1 f k (n+k+1)
[0093] Let k=k+1 and return to step S322.
[0094] Furthermore, the step S4 comprises:
[0095] S41, the time domain feature vector f s and the spatial feature vector f g Perform feature concatenation to obtain the joint feature vector f = [f s ;f g ];
[0096] S42, define F = [f1, f2, ..., f2] as the reduced dimension data matrix, where f i is the joint feature vector of the i-th sample, and the Euclidean distance is used as the criterion to calculate each sample point f i The set of the nearest k adjacent points q i , where q i =[f i1 ,f i2 ,...,f ik ], for f i The linear representation is:
[0097] f i =s i1 f i1 +s i2 f i2 +...+s ik f ik
[0098] Among them, S i =[s i1 ,s i2 ,...,s ik ] is the corresponding weight;
[0099] S43, linear weights are equivalent to a regression problem and the loss function is defined as:
[0100]
[0101]
[0102] And the covariance matrix:
[0103] Z=(f i -q i )(f i -q i ) T ,i∈[1,k]
[0104] Among them, 1 k is a column vector of all 1s, Z is a k×k matrix, j is the index of k, and using the Lagrange method, it can be transformed into:
[0105]
[0106] S44, for L F (S i ) is derived to obtain the weight coefficient matrix:
[0107]
[0108]
[0109] S45, mapping the weight coefficient matrix obtained in S64 to a lower dimension and satisfying:
[0110]
[0111] Among them, y i represents f i Projection on the low-dimensional space, for S that is not in the neighborhood of the sample point i The value is set to 0, and then the weight matrix is expanded to the dimension of the entire data set. After matrixization, the above formula is transformed into:
[0112]
[0113] Among them, I i Denotes the i-th column of the identity matrix I, let M = (IS)(IS) T , once again using the Lagrange multiplier method:
[0114] L Y (Y) = tr (YMY T )+λ(YY T -PI)
[0115] S46, to obtain a d-dimensional data set, arrange the eigenvalues of M from small to large, take the eigenvectors corresponding to the smallest d non-zero eigenvalues as the output result after dimensionality reduction, and obtain the data matrix Y′∈R d×p .
[0116] Furthermore, the step S5 comprises:
[0117] S51, initialize the connection weights between the input layer and the hidden layer and the thresholds of the hidden layer neurons, set the number of hidden layer neurons, and the output of the single hidden layer neural network is:
[0118] F(y′)=h(y′)×β
[0119] In the formula, y′ is the input data vector, F(y′) is the network output; h(x) is the output function of the hidden layer node; β is the output weight vector connecting the hidden layer and the output layer;
[0120] Transforming network training into a linear system solving problem, introducing the regularization coefficient C and the unit matrix I, the output weights of the hidden layer and the output layer are:
[0121]
[0122] S52, select the mixed weight of radial basis kernel function and polynomial kernel function as the kernel function of kernel extreme learning machine, and realize dimensionality reduction by multiplying the original high-dimensional data input by the weight matrix between the hidden layer and the output layer:
[0123]
[0124] Among them, K(y i ,y j ) is the hybrid kernel function of the kernel extreme learning machine, η, ξ are the parameters of the mixing kernel function;
[0125] At this point, the output of the mixed kernel function is:
[0126]
[0127] S53, construct the objective function through the recognition accuracy of the validation set, and the objective function is defined as follows:
[0128]
[0129] Among them, ACC represents the recognition accuracy of the validation set, NC i is the number of correct classifications of the i-th category, NE i is the number of misclassifications of the i-th category, and l is the total number of categories;
[0130] S54, applying the Harris Hawk optimization algorithm to the above objective function, obtaining the optimal value of the kernel parameter of the hybrid kernel extreme learning machine through a global search phase, a search to development phase, and a development phase, wherein the value of the parameter vector (Harris Hawk) is updated in the global search phase through two strategies:
[0131]
[0132] Among them, H(t) is the current position vector of the eagle, H rabbit (t) is the current position of the individual with the best fitness, H rand (t) is the position of the eagle randomly selected in the current population, H(t+1) is the position vector of the eagle in the next iteration, r1, r2, r3, r4 and q are all random numbers between (0,1), LB and UB are the lower and upper limits of the parameters to be optimized, respectively, and H m (t) is the average position of the population;
[0133] The global search phase and the development phase are switched according to the energy of the prey. When |E| < 1, the development phase is entered. The expression of E is:
[0134]
[0135] Among them, E represents the escape energy of the prey, E0 represents the initial state of energy, and T represents the maximum number of iterations;
[0136] S55, in the development phase, four attack modes are selected according to the energy E of the prey and the escape probability gl of the prey to update the position of the parameter vector, where:
[0137] When |E|≥0.5 and gl≥0.5, a soft encirclement attack is used;
[0138] When |E|≤0.5 and gl≥0.5, a hard encirclement attack is used;
[0139] When |E|≥0.5 and gl<0.5, a soft encirclement attack method of progressive rapid dive is adopted;
[0140] When |E|≤0.5 and gl<0.5, a hard encirclement attack method with progressive rapid dive is adopted.
[0141] Furthermore, the step S55 includes:
[0142] S551, when the soft encirclement attack method is adopted, the position update expression of the parameter vector is:
[0143] H(t+1)=ΔH(t)-E|JH rabbit (t)-H(t)|
[0144] ΔH(t)=H rabbit (t)-H(t)
[0145] J=2(1-r5)
[0146] Among them, ΔH(t) is the difference between the optimal individual and the current individual, r5 is a random number between (0,1), and J is the jumping distance of the rabbit during the escape process:
[0147] S552, when the hard encirclement attack method is adopted, the position update expression of the parameter vector is:
[0148] H(t+1)=H rabbit (t)-E|ΔH(t)|
[0149] S553, when the progressive dive soft encirclement attack method is adopted, the position update expression of the parameter vector is:
[0150]
[0151] Y=H rabbit (t)-E|JH rabbit (t)-H(t)|
[0152] Z=Y+S×LF(D)
[0153] fitness(·)=1-ACC(·)
[0154] Where fitness(·) is the fitness value of the parameter vector, D is the dimension of the problem, S is a 1×D-dimensional vector, and LF is the Levy flight function, which is expressed as:
[0155]
[0156]
[0157] Among them, μ, υ are random variables between (0,1), and β is a constant set to 1.5;
[0158] S554, when using the progressive dive hard encirclement attack method, the parameter position update expression is:
[0159]
[0160] Y=H rabbit (t)-E|JH rabbit (t)-H m (t)|
[0161] Z=Y+S×LF(D).
[0162] Advantages of the present invention:
[0163] The invention discloses an online recognition method for electroencephalogram (EEG) signals of different motor imagery of a single joint. Firstly, an empirical wavelet transform is used to adaptively decompose the preprocessed electroencephalogram (EEG) signals into a series of modal components, so as to effectively avoid the modal aliasing phenomenon in the process of signal decomposition. The optimal modal components are screened by a fuzzy entropy algorithm to form a new signal matrix, so as to eliminate the influence of irrelevant frequency bands and refine the frequency characteristics of the signals. Then, an AR model algorithm is used to extract the time domain characteristics of the signals, a common space mode algorithm is used to extract the spatial domain characteristics of the signals, and a local linear embedding algorithm is used to fuse the signals, so as to enhance the characteristic information and reduce the characteristic dimension. Finally, a kernel extreme learning machine is used to improve the efficiency of feature recognition, wherein the hyperparameters of the kernel extreme learning machine are optimized by the Harris Eagle algorithm, so as to improve the classification performance of the classifier and improve the recognition accuracy of multiple types of motor imagery electroencephalogram (EEG) signals.
[0164] 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
[0165] 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.
[0166] Figure 1 is a flowchart of the method of the present invention;
[0167] Figure 2 The flowchart of the Harris Eagle optimization algorithm of the present invention;
[0168] Figure 3 It is an experimental timing diagram of an embodiment of the present invention;
[0169] Figure 4 This is the time-frequency diagram of the empirical wavelet decomposition components of the C3 and C4 channels of the shoulder abduction movement of the subject B of the present invention;
[0170] Figure 5 This is a comparison diagram of the first characteristic KPCA divergence distribution of the shoulder abduction, extension and flexion movement imagery of subject B of the present invention;
[0171] Figure 6 This is a comparison diagram of the second characteristic KPCA divergence distribution of the shoulder abduction, extension and flexion movement imagination of subject B of the present invention;
[0172] Figure 7 This is a comparison diagram of the KPCA divergence distribution of the third characteristic of the shoulder abduction, extension and flexion movement imagery of subject B of the present invention;
[0173] Figure 8This is a diagram showing the change of the Harris Hawk optimization algorithm parameter optimization fitness curve of the present invention;
[0174] Fig. 9 A comparison chart of test classification effects of the kernel extreme learning machine of the present invention and the kernel extreme learning machine optimized by Harris Eagle;
[0175] Fig.10 This is a comparison chart of the recognition situations of different methods in the embodiments of the present invention. DETAILED DESCRIPTION
[0176] 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.
[0177] refer to Figure 1 , a method for online recognition of EEG signals of single-joint different movement imagination, comprising the following steps:
[0178] S1, using EEG acquisition equipment to collect multi-lead motor imagery EEG signals of different actions of different subjects;
[0179] S2, using Butterworth filter and common mean reference to preprocess the collected EEG signals, and using parameter-free adaptive empirical wavelet transform to decompose the preprocessed EEG signals of each lead into a series of modal components, and reconstruct the EEG signal matrix by calculating the fuzzy entropy value of each modality and selecting the modal component with the largest entropy value in each lead;
[0180] S3, using the AR model algorithm to extract the time domain features of the reconstructed EEG signal matrix, and using the common space pattern algorithm to extract the spatial domain features of the reconstructed EEG signal matrix;
[0181] S4, concatenate the time domain features with the frequency domain features, and fuse them using a local linear embedding algorithm to obtain the final features;
[0182] S5, constructing a hybrid kernel extreme learning machine model, dividing the feature vectors extracted in S4 into a training set, a validation set, and a test set in a ratio of 6:2:2, training the parameters of the kernel extreme learning machine through the training set, optimizing the parameters of the kernel extreme learning machine through the validation set combined with the Harris Eagle optimization algorithm, obtaining the optimal kernel extreme learning machine classification model, and verifying the optimal kernel extreme learning machine through actual use through the test set;
[0183] S6, using the well-performing kernel extreme learning machine verified by the test set to classify and recognize the real-time collected EEG data.
[0184] S2 also includes the following steps:
[0185] S21, select multi-lead EEG signals x related to motor imagery i (t)∈R l×m , where t is the number of sampling points, i is the number of leads, where t=1,2,···,l, i=1,2,···,m;
[0186] S22, using a 4th order Butterworth filter to transform the EEG signal x i The frequency band of (t) is filtered to 8-30Hz, and the filtered EEG signal is s i (t).
[0187] S23, using the common average reference to filter the EEG signal s i (t) to perform noise reduction and obtain the noise-reduced signal y i (t).
[0188]
[0189] S24, EEG signal y i (t) Perform Fourier transform and standardize to the interval [0,π] to obtain the frequency domain signal Y i (ω).
[0190] S25, using the scale space method to convert Y i (ω)(ω∈[0,π]) is adaptively divided into N sub-bands.
[0191] S26, construct a wavelet filter on each sub-band according to Meyer wavelet theory:
[0192]
[0193]
[0194] In the formula, Φ n (ω) and Ψ n (ω) are the scale function and wavelet function of the empirical wavelet, β(y) is a function defined between [0,1], and here β(y) = y 4 (35-84y+70y 2 -20y 3 ),
[0195]
[0196] For the EEG signal y i (t), the detail parameters of its wavelet function and the detail parameters of the scaling function They are defined as:
[0197]
[0198]
[0199] Where Y i (ω), and are the discretized EEG signal, wavelet function value and scaling function value respectively;
[0200] Finally, the y i (t) After empirical wavelet decomposition, the following empirical modes are obtained:
[0201]
[0202] S27, modal components of EEG signals of each lead Define its phase space embedding dimension w (w < l-1) and similarity capacity r, and reconstruct the phase space:
[0203]
[0204]
[0205] First, calculate the window vector and Maximum distance:
[0206]
[0207] Then, calculate The fuzzy membership of And find all The mean
[0208]
[0209]
[0210] Next, calculate the vectors of all windows The mean of :
[0211]
[0212] Finally, repeat S41-S44 to calculate On this basis, we obtain The fuzzy entropy is:
[0213]
[0214] S28, select the one with the largest fuzzy entropy value The EEG signals of each lead are reconstructed using the inverse empirical wavelet transform i (t):
[0215]
[0216] in, and max (t) are the ones with the maximum fuzzy entropy value. The corresponding wavelet function value and wavelet function detail parameter value.
[0217] Specifically, S25 further includes the following steps:
[0218] S251, the frequency domain function Y of the EEG signal i (ω) discretizes to obtain a discrete signal
[0219] S252, Definition The scale space function of :
[0220]
[0221] in, is the Gaussian kernel function, σ is the scale parameter, λ is the moving step of the discrete function, and M is the maximum step of the discrete function;
[0222] To discretize the scale space function, discretize the scale parameter σ:
[0223]
[0224] Where, s=1,2,···,s max , s max =2ω max ;
[0225] S253, find out All the minimum points of the scale space function and calculate the scale superposition value L at all the minimum points i , the Otus method was used to determine L i The L values greater than the threshold are retained. i The corresponding minimum point ω Li , and use this as the dividing point to split.
[0226] S3 also includes the following steps:
[0227] S31, using p-order AR model to fit the single-channel motor imagery EEG signal y i (t):
[0228]
[0229] Among them, y i(n) represents the nth sample value of the signal, p is the order of the AR model, and a k are the coefficients of the AR model (k=1,2,…,p), s(n) has a mean of 0 and a variance of σ 2 The white noise residual of
[0230] S32, using Burg algorithm to calculate the AR model described in S41 k To solve;
[0231] S33, connect the p-order AR coefficients of the m channels into a row vector, and obtain the time domain feature vector of the reconstructed signal as follows:
[0232] f s =[a 11 ,a 12 ,...,a 1p ,...,a m1 ,a m2 ...,a mp ]
[0233] S34, for the signal matrices U1 and U2 of the two types of motor imagery tasks, U1 and U2 are normalized and their covariances R1 and R2 and their mixed covariance R are calculated respectively:
[0234]
[0235]
[0236]
[0237] in, and They represent the covariance means of all samples of the first and second types of motor imagery tasks, respectively;
[0238] First, perform eigenvalue decomposition on the mixed variance matrix and calculate the whitening matrix:
[0239] R=QΛQ T
[0240]
[0241] Among them, Q is the eigenvector matrix of R, Λ is the diagonal matrix composed of the eigenvalues of R, and P is the whitening matrix;
[0242] Then, whiten and principal component decomposition are performed on R1 and R2 respectively to obtain the common eigenvector matrix B:
[0243] S1=PR1P T ,S2=PR2P T
[0244]
[0245] Among them, S1 and S2 are the matrices of R1 and R2 after whitening, B1 and B2 are the eigenvector matrices of S1 and S2, Λ1 and Λ2 are the eigenvalues of S1 and S2, and Λ1+Λ2=I, then:
[0246] B=B1=B2
[0247] Next, take the first b rows and the last b rows of B and construct a spatial filter:
[0248] W=B T P
[0249] Finally, the “ovo” strategy is adopted to construct a total of G(G-1) / 2 spatial filters for the G-type motor imagery task. These filters are spliced to construct the total filter:
[0250] W=[W1;W1;···;W G ]
[0251] S35, single sample U of the g-th type of motor imagination g Perform spatial filtering and extract row variance features:
[0252] Z g =WU g
[0253]
[0254] Among them, Z g and f g U g The filter matrix and eigenvector of .
[0255] Specifically, S32 further includes the following steps:
[0256] S321, define the k-order forward prediction error sequence as f k (n), k-order backward error prediction sequence b k (n), initialize k = 0, f0(n) = b0(n) = y i (n), initialize a k =1, a r =0(r=1,2,…,p);
[0257] S322, calculate the k+1th order reflection coefficient u k+1 :
[0258]
[0259] S323, use the following formula to estimate the coefficients of the k+1 order AR model: Let a r ′=a r +u k+1 a k+1-r (r=1,2,…,k+1),
[0260] Let a r =a r ′;
[0261] S324, determine whether k+1=p is true, if not, proceed to step S425, if yes, stop the calculation and obtain the p-order AR model coefficient a k ;
[0262] S325, using the following formula to estimate the k+1 order forward prediction error sequence and the k+1 order backward prediction error sequence:
[0263] f k+1 (n) = f k (n)+u k+1 b k (nk-1)
[0264] b k+1 (n) = b k (n)+u k+1 f k (n+k+1)
[0265] Let k=k+1 and return to step S322.
[0266] S4 also includes the following steps:
[0267] S41, the time domain feature vector f s and the spatial feature vector f g Perform feature concatenation to obtain the joint feature vector f = [f s ;f g ];
[0268] S42, define F = [f1, f2, ..., f2] as the reduced dimension data matrix, where f i is the joint feature vector of the i-th sample, and the Euclidean distance is used as the criterion to calculate each sample point f i The set of the nearest k adjacent points q i , where q i =[f i1 ,f i2 ,...,f ik ], for f i The linear representation is:
[0269] f i =s i1 fi1 +s i2 f i2 +...+s ik f ik
[0270] Among them, S i =[s i1 ,s i2 ,...,s ik ] is the corresponding weight;
[0271] S43, linear weights are equivalent to a regression problem and the loss function is defined as:
[0272]
[0273]
[0274] And the covariance matrix:
[0275] Z=(f i -q i )(f i -q i ) T ,i∈[1,k]
[0276] Among them, 1 k is a column vector of all 1s, Z is a k×k matrix, j is the index of k, and using the Lagrange method, it can be transformed into:
[0277]
[0278] S44, for L F (S i ) is derived to obtain the weight coefficient matrix:
[0279]
[0280]
[0281] S45, mapping the weight coefficient matrix obtained in S64 to a lower dimension and satisfying:
[0282]
[0283] Among them, y i represents f i Projection on the low-dimensional space, for S that is not in the neighborhood of the sample point i The value is set to 0, and then the weight matrix is expanded to the dimension of the entire data set. After matrixization, the above formula is transformed into:
[0284]
[0285] Among them, I i Denotes the i-th column of the identity matrix I, let M = (IS)(IS) T , once again using the Lagrange multiplier method:
[0286] L Y (Y) = tr (YMY T )+λ(YY T -PI)
[0287] S46, to obtain a d-dimensional data set, arrange the eigenvalues of M from small to large, take the eigenvectors corresponding to the smallest d non-zero eigenvalues as the output result after dimensionality reduction, and obtain the data matrix Y′∈R d×p .
[0288] S5 also includes the following steps:
[0289] S51, initialize the connection weights between the input layer and the hidden layer and the thresholds of the hidden layer neurons, set the number of hidden layer neurons, and the output of the single hidden layer neural network is:
[0290] F(y′)=h(y′)×β
[0291] In the formula, y′ is the input data vector, F(y′) is the network output; h(x) is the output function of the hidden layer node; β is the output weight vector connecting the hidden layer and the output layer;
[0292] Transforming network training into a linear system solving problem, introducing the regularization coefficient C and the unit matrix I, the output weights of the hidden layer and the output layer are:
[0293]
[0294] S52, select the mixed weight of radial basis kernel function and polynomial kernel function as the kernel function of kernel extreme learning machine, and realize dimensionality reduction by multiplying the original high-dimensional data input by the weight matrix between the hidden layer and the output layer:
[0295]
[0296] Among them, K(y i ,y j ) is the hybrid kernel function of the kernel extreme learning machine, η, ξ are the parameters of the mixing kernel function;
[0297] At this point, the output of the mixed kernel function is:
[0298]
[0299] S53, construct the objective function through the recognition accuracy of the validation set, and the objective function is defined as follows:
[0300]
[0301] Among them, ACC represents the recognition accuracy of the validation set, NC i is the number of correct classifications of the i-th category, NE i is the number of misclassifications of the i-th category, and l is the total number of categories;
[0302] S54, applying the Harris Hawk optimization algorithm to the above objective function, obtaining the optimal value of the kernel parameter of the hybrid kernel extreme learning machine through a global search phase, a search to development phase, and a development phase, wherein the value of the parameter vector (Harris Hawk) is updated in the global search phase through two strategies:
[0303]
[0304] Among them, H(t) is the current position vector of the eagle, H rabbit (t) is the current position of the individual with the best fitness, H rand (t) is the position of the eagle randomly selected in the current population, H(t+1) is the position vector of the eagle in the next iteration, r1, r2, r3, r4 and q are all random numbers between (0,1), LB and UB are the lower and upper limits of the parameters to be optimized, respectively, and H m (t) is the average position of the population;
[0305] The global search phase and the development phase are switched according to the energy of the prey. When |E| < 1, the development phase is entered. The expression of E is:
[0306]
[0307] Among them, E represents the escape energy of the prey, E0 represents the initial state of energy, and T represents the maximum number of iterations;
[0308] S55, in the development phase, four attack modes are selected according to the energy E of the prey and the escape probability gl of the prey to update the position of the parameter vector, where:
[0309] When |E|≥0.5 and gl≥0.5, a soft encirclement attack is used;
[0310] When |E|≤0.5 and gl≥0.5, a hard encirclement attack is used;
[0311] When |E|≥0.5 and gl<0.5, a soft encirclement attack method of progressive rapid dive is adopted;
[0312] When |E|≤0.5 and gl<0.5, a hard encirclement attack method with progressive rapid dive is adopted.
[0313] Specifically, S55 further includes the following steps:
[0314] S551, when the soft encirclement attack method is adopted, the position update expression of the parameter vector is:
[0315] H(t+1)=ΔH(t)-E|JH rabbit (t)-H(t)|
[0316] ΔH(t)=H rabbit (t)-H(t)
[0317] J=2(1-r5)
[0318] Among them, ΔH(t) is the difference between the optimal individual and the current individual, r5 is a random number between (0,1), and J is the jumping distance of the rabbit during the escape process:
[0319] S552, when the hard encirclement attack method is adopted, the position update expression of the parameter vector is:
[0320] H(t+1)=H rabbit (t)-E|ΔH(t)|
[0321] S553, when the progressive dive soft encirclement attack method is adopted, the position update expression of the parameter vector is:
[0322]
[0323] Y=H rabbit (t)-E|JH rabbit (t)-H(t)|
[0324] Z=Y+S×LF(D)
[0325] fitness(·)=1-ACC(·)
[0326] Where fitness(·) is the fitness value of the parameter vector, D is the dimension of the problem, S is a 1×D-dimensional vector, and LF is the Levy flight function, which is expressed as:
[0327]
[0328]
[0329] Among them, μ, υ are random variables between (0,1), and β is a constant set to 1.5;
[0330] S554, when using the progressive dive hard encirclement attack method, the parameter position update expression is:
[0331]
[0332] Y=H rabbit (t)-E|JH rabbit (t)-H m (t)|
[0333] Z=Y+S×LF(D)
[0334] Example:
[0335] refer to Figure 3 To verify the effectiveness of the present invention, this embodiment designs three types of upper limb single joint 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 follows the international 10-20 standard for electrode arrangement. The experiment performs three motor imagery tasks of shoulder flexion, extension and abduction, with a total of 7 subjects participating.
[0336] During the experiment, the subjects placed their hands naturally and remained relaxed, and imagined three types of movements under external prompts. Figure 2 As shown in the figure, at the beginning of the experiment, the subjects stared at the 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 to the top, bottom and right, prompting the subjects to imagine shoulder flexion, extension and abduction; at t = 7s, the motor imagination ended; the next trial continued after a 2s rest. Each subject collected 80 sets of data for each type of action, 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 imagination tasks).
[0337] The 4-7 second experimental data of the experimenter was used for analysis. First, a 5th-order Butterworth filter was used to filter it to 8-30 Hz, and then the next step of noise reduction was performed through common average reference.
[0338] The empirical wavelet transform is used to adaptively decompose the denoised data to obtain multiple modal components. The modal component with the largest fuzzy entropy value in each channel of the tester is selected by calculating the fuzzy entropy of each order component, and then restored by the empirical wavelet inverse transform to obtain a new signal sample Y 384×14 Repeat the above process for different motor imagery original signals, and obtain the new signal matrices of shoulder abduction, extension and forehand motor imagery, which are A_Y 384×14×20 , E_Y 384×14×20 and F_Y 384 ×14×20 Taking the shoulder abduction movement imagination of subject B as an example, the empirical wavelet transform was performed to obtain a total of 6 modal components. The time domain and frequency domain diagrams of the decomposed components of the C3 and C4 channels are shown as follows: Figure 4 As shown in (a) and (b).
[0339] The AR model coefficients of the new signal samples are extracted using the 10th-order AR model, and the single-sample feature vector f is obtained by SVD decomposition. s Repeat the above to obtain the time domain feature matrices of the subjects' shoulder abduction, extension and forward movement imagination, which are A_AR 10×20 , E_AR 10×20 and F_AR 10×20 ; Use the 'ovo' common space mode to extract the feature vector f of the new signal sample g Similarly, the spatial feature matrices of the subjects’ shoulder abduction, extension, and forward movement imagination are A_CSP 12×20 、E_CSP 12×20 and F_CSP 12×20 Taking shoulder abduction movement imagery as an example, the local linear embedding algorithm is used to reduce the dimension of the joint feature matrix [A_AR; A_CSP] to obtain the fusion feature matrix A_F 8×20 Similarly, the shoulder abduction and shoulder flexion motor imagery fusion feature matrices are E_F 8×20 , F_F 8×20 . refer to Figure 5 To prove the effectiveness of feature fusion, this case conducted kernel principal component analysis on the time domain features, spatial features, and fusion features of the three types of motor imagery EEG signals of subject B’s shoulder, and extracted their first two-dimensional data for divergence plotting. Figure 5 The time domain feature scatter diagram of the three types of motor imagery EEG signals of subject B is shown in Figure 2. Figure 6 This is the spatial feature scatter diagram of the three types of motor imagery EEG signals of subject B. Figure 7 This is the fusion feature divergence diagram of the three types of motor imagery EEG signals of subject B.
[0340] The hybrid kernel extreme learning machine is used to classify the above fusion features. First, the fusion feature set is divided into a training set and a test set in a ratio of 6:2:2. Secondly, the radial basis kernel function and the polynomial kernel function are selected as the kernel of the kernel extreme learning machine, and the kernel extreme learning machine classification model is established, and the training set is used to train it. Considering the uncertainty of the internal parameters of the model (regularization coefficient, kernel parameter), in order to obtain the optimal combination of parameter values, the Harris Eagle optimization algorithm is used to optimize the parameters with the classification accuracy of the validation set of the extreme learning machine as the objective function. Reference Figure 6 In this case, the parameter convergence curve is plotted to show the optimization process of the Harris Eagle optimization algorithm for the kernel extreme learning machine parameters. After 8 iterations, the curve has completely converged and the optimal kernel parameters have been found.
[0341] After the optimal kernel extreme learning machine is obtained through training, the model is verified using the test set. Fig. 9 , this case plots the test set through the kernel extreme learning machine ( Fig. 9 (a)) and Harris Eagle optimized kernel extreme learning machine ( Fig. 9 (b)) shows the classification effect diagram. It can be seen that after Harris Eagle optimization, the classification effect of the kernel extreme learning machine has been greatly improved.
[0342] refer to Figure 8 ,In order to verify the superiority of the online recognition method of ,multiple types of motor imagery EEG signals, this case compares the ,method with several feature extraction and classification algorithms such as EMD-SVM, CSP-SVM and CNN, and ,prove that the proposed method has good recognition effect.
[0343] 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. A method for online recognition of EEG signals of single-joint different movement imagination, characterized in that: include: S1, using EEG acquisition equipment to collect multi-lead motor imagery EEG signals of different actions of different subjects; S2, using Butterworth filter and common mean reference to preprocess the collected EEG signals, and using parameter-free adaptive empirical wavelet transform to decompose the preprocessed EEG signals of each lead into a series of modal components, and reconstruct the EEG signal matrix by calculating the fuzzy entropy value of each modality and selecting the modal component with the largest entropy value in each lead; S3, using the AR model algorithm to extract the time domain features of the reconstructed EEG signal matrix, and using the common space pattern algorithm to extract the spatial domain features of the reconstructed EEG signal matrix; S4, concatenate the time domain features with the frequency domain features, and fuse them using a local linear embedding algorithm to obtain the final features; S5, constructing a hybrid kernel extreme learning machine model, dividing the feature vectors extracted in step S4 into a training set, a validation set, and a test set in a ratio of 6:2:2, training the parameters of the kernel extreme learning machine through the training set, optimizing the parameters of the kernel extreme learning machine through the validation set combined with the Harris Eagle optimization algorithm, obtaining the optimal kernel extreme learning machine classification model, and verifying the optimal kernel extreme learning machine through actual use through the test set; S6, using the well-performing kernel extreme learning machine verified by the test set to classify and recognize the real-time collected EEG data.
2. The online recognition method for single-joint different movement imagery EEG signals according to claim 1 is characterized in that: The step S2 comprises: S21, select multi-lead EEG signals x related to motor imagery i (t)∈R l×m , where t is the number of sampling points and i is the number of leads, where t=1,2,···,l, i=1,2,···,m; S22, using a 4th order Butterworth filter to transform the EEG signal x i The frequency band of (t) is filtered to 8-30Hz, and the filtered EEG signal is s i (t); S23, using the common average reference to filter the EEG signal s i (t) to perform noise reduction and obtain the noise-reduced signal y i (t); S24, EEG signal y i (t) Perform Fourier transform and standardize to the interval [0,π] to obtain the frequency domain signal Y i (ω); S25, using the scale space method to convert Y i (ω)(ω∈[0,π]) is adaptively divided into N sub-bands; S26, construct a wavelet filter on each sub-band according to Meyer wavelet theory: In the formula, Φ n (ω) and Ψ n (ω) are the scale function and wavelet function of the empirical wavelet, β(y) is a function defined between [0,1], and here β(y) = y 4 (35-84y+70y 2 -20y 3 ), For the EEG signal y i (t), the detail parameters of its wavelet function and the detail parameters of the scaling function They are defined as: Where Y i (ω), and are the discretized EEG signal, wavelet function value and scaling function value respectively; Finally, the y i (t) After empirical wavelet decomposition, the following empirical modes are obtained: S27, modal components of EEG signals of each lead Define its phase space embedding dimension w (w < l-1) and similarity capacity r, and reconstruct the phase space: First, calculate the window vector and Maximum distance: Then, calculate The fuzzy membership of And find all The mean Next, calculate the vectors of all windows The mean of : Finally, repeat S41-S44 to calculate On this basis, we obtain The fuzzy entropy is: S28, select the one with the largest fuzzy entropy value The EEG signals of each lead are reconstructed using the inverse empirical wavelet transform i (t): in, and max (t) are the ones with the maximum fuzzy entropy value. The corresponding wavelet function value and wavelet function detail parameter value.
3. The online recognition method for single-joint different movement imagery EEG signals according to claim 2 is characterized in that: The step S25 comprises: S251, the frequency domain function Y of the EEG signal i (ω) discretizes to obtain a discrete signal S252, Definition The scale space function of : in, is the Gaussian kernel function, σ is the scale parameter, λ is the moving step of the discrete function, and M is the maximum step of the discrete function; To discretize the scale space function, discretize the scale parameter σ: Where s=1,2,···,s max , s max =2ω max ; S253, find out All the minimum points of the scale space function and calculate the scale superposition value L at all the minimum points i , the Otus method was used to determine L i The L values greater than the threshold are retained. i The corresponding minimum point ω Li , and use this as the dividing point to split.
4. The online recognition method for single-joint different movement imagery EEG signals according to claim 1 is characterized in that: The step S3 comprises: S31, using p-order AR model to fit the single-channel motor imagery EEG signal y i (t): Among them, y i (n) represents the nth sample value of the signal, p is the order of the AR model, and a k are the coefficients of the AR model (k=1,2,…,p), s(n) has a mean of 0 and a variance of σ 2 The white noise residual of S32, using Burg algorithm to calculate the AR model described in S41 k To solve; S33, connect the p-order AR coefficients of the m channels into a row vector, and obtain the time domain feature vector of the reconstructed signal as follows: f s =[a 11 ,a 12 ,...,a 1p ,...,a m1 ,a m2 ...,a mp ] S34, for the signal matrices U1 and U2 of the two types of motor imagery tasks, U1 and U2 are normalized and their covariances R1 and R2 and their mixed covariance R are calculated respectively: in, and They represent the covariance means of all samples of the first and second types of motor imagery tasks, respectively; First, perform eigenvalue decomposition on the mixed variance matrix and calculate the whitening matrix: R=QΛQ T Among them, Q is the eigenvector matrix of R, Λ is the diagonal matrix composed of the eigenvalues of R, and P is the whitening matrix; Then, whiten and principal component decomposition are performed on R1 and R2 respectively to obtain the common eigenvector matrix B: <h2 style=";text-align:left;direction:ltr">S1=PR1P<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> S2=PR2P<h2 style=";text-align:left;direction:ltr"> T S1=B1Λ1B1 T ,S2=B2Λ2B2 T Among them, S1 and S2 are the matrices of R1 and R2 after whitening, B1 and B2 are the eigenvector matrices of S1 and S2, Λ1 and Λ2 are the eigenvalues of S1 and S2, and Λ1+Λ2=I, then: B=B1=B2 Next, take the first b rows and the last b rows of B and construct a spatial filter: W=B T P Finally, the "ovo" strategy is adopted to construct a total of G(G-1) / 2 spatial filters for the G-type motor imagery task. These filters are spliced to construct the total filter: W=[W1;W1;···;W G ] S35, single sample U of the g-th type of motor imagination g Perform spatial filtering and extract row variance features: WITH g =WU g Among them, Z g and f g U g The filter matrix and eigenvector of .
5. The method for online recognition of single-joint different movement imagery EEG signals according to claim 4, characterized in that: The step S32 comprises: S321, define the k-order forward prediction error sequence as f k (n), k-order backward error prediction sequence b k (n), initialize k = 0, f0(n) = b0(n) = y i (n), initialize a k =1,a r =0(r=1,2,…,p); S322, calculate the k+1th order reflection coefficient u k+1 : S323, use the following formula to estimate the coefficients of the k+1 order AR model: Let a r ′=a r +u k+1 a k+1-r (r=1,2,…,k+1), and then let a r =a r ′; S324, determine whether k+1=p is true, if not, proceed to step S425, if yes, stop the calculation and obtain the p-order AR model coefficient a k ; S325, using the following formula to estimate the k+1 order forward prediction error sequence and the k+1 order backward prediction error sequence: f k+1 (n)=f k (n)+u k+1 b k (n-k-1) b k+1 (n)=b k (n)+u k+1 f k (n+k+1) Let k=k+1 and return to step S322.
6. The online recognition method for single-joint different movement imagery EEG signals according to claim 1 is characterized in that: The step S4 comprises: S41, the time domain feature vector f s and the spatial feature vector f g Perform feature concatenation to obtain the joint feature vector f = [f s ;f g ]; S42, define F = [f1, f2, ..., f2] as the reduced dimension data matrix, where f i is the joint feature vector of the i-th sample, and the Euclidean distance is used as the criterion to calculate each sample point f i The set of the nearest k adjacent points q i , where q i =[f i1 ,f i2 ,...,f ik ], for f i The linear representation is: f i =s i1 f i1 +s i2 f i2 +...+s ik f ik Among them, S i =[s i1 ,s i2 ,...,s ik ] is the corresponding weight; S43, linear weights are equivalent to a regression problem and the loss function is defined as: And the covariance matrix: Z=(f i -q i )(f i -q i ) T ,i∈[1,k] Among them, 1 k is a column vector of all 1s, Z is a k×k matrix, j is the index of k, and using the Lagrange method, it can be transformed into: S44, for L F (S i ) is derived to obtain the weight coefficient matrix: S45, mapping the weight coefficient matrix obtained in S64 to a lower dimension and satisfying: Among them, y i represents f i Projection on the low-dimensional space, for S that is not in the neighborhood of the sample point i The value is set to 0, and then the weight matrix is expanded to the dimension of the entire data set. After matrixization, the above formula is transformed into: Among them, I i Denotes the i-th column of the identity matrix I, let M = (IS)(IS) T , once again using the Lagrange multiplier method: L Y (Y)=tr(YMY T )+λ(YY T -PI) S46, to obtain a d-dimensional data set, arrange the eigenvalues of M from small to large, take the eigenvectors corresponding to the smallest d non-zero eigenvalues as the output result after dimensionality reduction, and obtain the data matrix Y′∈R d×p .
7. The online recognition method for single-joint different movement imagery EEG signals according to claim 1 is characterized in that: The step S5 comprises: S51, initialize the connection weights between the input layer and the hidden layer and the thresholds of the hidden layer neurons, set the number of hidden layer neurons, and the output of the single hidden layer neural network is: F(y′)=h(y′)×β In the formula, y′ is the input data vector, F(y′) is the network output; h(x) is the output function of the hidden layer node; β is the output weight vector connecting the hidden layer and the output layer; Transforming network training into a linear system solving problem, introducing the regularization coefficient C and the unit matrix I, the output weights of the hidden layer and the output layer are: S52, select the mixed weight of radial basis kernel function and polynomial kernel function as the kernel function of kernel extreme learning machine, and realize dimensionality reduction by multiplying the original high-dimensional data input by the weight matrix between the hidden layer and the output layer: Among them, K(y i ,y j ) is the hybrid kernel function of the kernel extreme learning machine, η, ξ are the parameters of the hybrid kernel function; At this point, the output of the mixed kernel function is: S53, construct the objective function through the recognition accuracy of the validation set, and the objective function is defined as follows: Among them, ACC represents the recognition accuracy of the validation set, NC i is the number of correct classifications of the i-th category, NE i is the number of misclassifications of the i-th category, and l is the total number of categories; S54, applying the Harris Hawk optimization algorithm to the above objective function, obtaining the optimal value of the kernel parameter of the hybrid kernel extreme learning machine through a global search phase, a search to development phase, and a development phase, wherein the value of the parameter vector (Harris Hawk) is updated in the global search phase through two strategies: Among them, H(t) is the current position vector of the eagle, H rabbit (t) is the current position of the individual with the best fitness, H rand (t) is the position of the eagle randomly selected in the current population, H(t+1) is the position vector of the eagle in the next iteration, r1, r2, r3, r4 and q are all random numbers between (0,1), LB and UB are the lower and upper limits of the parameters to be optimized, respectively, and H m (t) is the average position of the population; The global search phase and the development phase are switched according to the energy of the prey. When |E| < 1, the development phase is entered. The expression of E is: Among them, E represents the escape energy of the prey, E0 represents the initial state of energy, and T represents the maximum number of iterations; S55, in the development phase, four attack modes are selected according to the energy E of the prey and the escape probability gl of the prey to update the position of the parameter vector, where: When |E|≥0.5 and gl≥0.5, a soft encirclement attack is used; When |E|≤0.5 and gl≥0.5, a hard encirclement attack is used; When |E|≥0.5 and gl<0.5, a soft encirclement attack method of progressive rapid dive is adopted; When |E|≤0.5 and gl<0.5, a hard encirclement attack method with progressive rapid dive is adopted.
8. The method for online recognition of EEG signals of single-joint different movement imagination according to claim 7, characterized in that: The step S55 comprises: S551, when the soft encirclement attack method is adopted, the position update expression of the parameter vector is: H(t+1)=ΔH(t)-E|JH rabbit (t)-H(t)| ΔH(t)=H rabbit (t)-H(t) J=2(1-r5) Among them, ΔH(t) is the difference between the optimal individual and the current individual, r5 is a random number between (0,1), and J is the jumping distance of the rabbit during the escape process: S552, when the hard encirclement attack method is adopted, the position update expression of the parameter vector is: H(t+1)=H rabbit (t)-E|ΔH(t)| S553, when the progressive dive soft encirclement attack method is adopted, the position update expression of the parameter vector is: Y=H rabbit (t)-E|JH rabbit (t)-H(t)| Z=Y+S×LF(D) fitness(·)=1-ACC(·) Where fitness(·) is the fitness value of the parameter vector, D is the dimension of the problem, S is a 1×D-dimensional vector, and LF is the Levy flight function, which is expressed as: Among them, μ, υ are random variables between (0,1), and β is a constant set to 1.5; S554, when using the progressive dive hard encirclement attack method, the parameter position update expression is: Y=H rabbit (t)-E|JH rabbit (t)-H m (t)| Z=Y+S×LF(D).
Citation Information
Cited By
Brain-controlled massage chair system based on wavelet transform, phase-space reconstruction and deep learning
CN119377569A
Brain-controlled massage chair system based on wavelet transform, phase space reconstruction and deep learning
CN119377569B
Millimeter wave sign detection method based on swarm intelligence and improved wavelet threshold
CN122140238A
