Small sample electroencephalogram space-time-frequency global decoding method and system for fine-grained target recognition task and storage medium

Through the small-sample EEG spatio-temporal frequency global decoding method, using lightweight convolutional neural networks and biologically guided feature selection, the problem of low EEG decoding accuracy under fine-grained target recognition tasks is solved, and efficient feature extraction and classification are achieved. , suitable for small sample data sets and brain-computer interface systems.

CN118673398APending Publication Date: 2024-09-20XIDIAN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410655299.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively decode EEG signals under fine-grained target recognition tasks. In particular, model training under limited samples is prone to overfitting and has a large number of parameters, resulting in low decoding accuracy.

Method used

Using a small sample EEG spatio-temporal frequency global decoding method, through preprocessing, wavelet transform, feature selection guided by biological prior knowledge, convolutional neural network and softmax classification, combined with the Adam optimizer, a lightweight four-layer convolutional neural network is constructed Network structure, reducing model complexity and improving training stability.

Benefits of technology

It significantly improves the classification accuracy of fine-grained image classification, reduces the risk of over-fitting, is suitable for small sample data sets, and broadens the application scenarios of brain-computer interface systems, making it suitable for high-performance and low-power devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673398A
    Figure CN118673398A
Patent Text Reader

Abstract

The invention discloses a small sample electroencephalogram space-time-frequency global decoding method and system for a fine-grained target recognition task and a storage medium, and the method comprises the steps: collecting an electroencephalogram signal stimulated and induced for the fine-grained target recognition task, and constructing and training a small sample electroencephalogram space-time-frequency global decoding model for the fine-grained target recognition task; and performing electroencephalogram decoding for the fine-grained target recognition task. The method for constructing and training the model comprises the following steps of: preprocessing an electroencephalogram signal, removing artifacts in the electroencephalogram signal and performing low-pass filtering; performing wavelet transformation on the preprocessed electroencephalogram signals; the method comprises the following steps of: selecting a wavelet time-frequency graph containing most effective classification information based on a way of combining biological priori knowledge and calculation; inputting the selected time-frequency graph into a convolutional neural network, and extracting space-time-frequency global EEG features; feature vectors output by the convolutional neural network are classified through a softmax layer, probability distribution of each classification is obtained, and the category with the maximum probability is selected; and an adam optimizer is used for training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of neural information decoding, and relates to a small sample EEG spatiotemporal frequency global decoding method, system and storage medium for fine-grained target recognition tasks. Background Art

[0002] Humans can easily distinguish and identify various categories of targets in complex environments (inter-class target recognition), such as identifying tables and chairs, cars and airplanes. This recognition ability is the basis for human survival and social interaction. After deliberate training with a certain amount of samples, humans can perform target recognition in a certain sub-field and distinguish small variations from contexts with highly similar visual features, such as distinguishing the types of birds from different bird pictures, that is, fine-grained target recognition (intra-class target recognition).

[0003] The brain is the source of human behavior. On the one hand, inter-class target recognition induces significant neural activity, which can be recorded by electroencephalography. Researchers have conducted research on decoding EEG signals induced by target recognition tasks. The model of patent CN116524380A is complex, and model training with limited training samples or small samples is prone to overfitting, resulting in inapplicability to limited sample problems. Patent CN110610168A has no biological information guidance, resulting in potential redundant information that reduces the decoding accuracy of effective signals. On the other hand, in the field of neural activity decoding induced by other tasks, related studies have explored issues related to neural decoding based on spatiotemporal frequency domain information. For the spatiotemporal frequency decoding of EEG signals for non-image recognition tasks, patent CN116784868A uses a deeper network structure and 3D convolution operator to process and extract spatiotemporal frequency domain information from EEG information. The model is complex and the number of model parameters is large, which makes it difficult to converge model training on a limited sample set. Another patent CN117349707A proposes processing EEG data by stacking multiple Transformer modules. In theory, it can capture richer feature representations, but in practical applications it also shows problems of having many parameters and being prone to overfitting.

[0004] In the field of fine-grained target recognition (intra-class target recognition), fine-grained target recognition can induce specific but slightly different neural activities. At the same time, the target posture, perspective, lighting changes and background interference in real-world visual stimuli further increase the difficulty of decoding the neural activities induced by fine-grained target recognition tasks. Given its great challenges, no relevant research has yet been conducted. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a small sample EEG time-space-frequency global decoding method, system and storage medium for fine-grained target recognition tasks, so as to solve the problem that existing research has not yet solved the EEG decoding method for fine-grained target recognition tasks.

[0006] The technical solution adopted in the embodiment of the present invention is: a small sample EEG time-space-frequency global decoding method for fine-grained target recognition tasks, comprising the following steps:

[0007] Collect EEG signals induced by stimulation for fine-grained target recognition tasks, build and train a small sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks;

[0008] A small-sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks is used to perform small-sample EEG spatiotemporal-frequency global decoding for fine-grained target recognition tasks.

[0009] Furthermore, the specific process of constructing and training a small sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks is as follows:

[0010] Step S1, preprocessing the EEG signal, including removing artifacts in the EEG signal and low-pass filtering;

[0011] Step S2, performing wavelet transform on the preprocessed EEG signal;

[0012] Step S3, selecting the wavelet time-frequency diagram containing the most effective classification information based on a combination of biological prior knowledge and calculation;

[0013] Step S4, inputting the wavelet time-frequency graph selected in step S3 into the convolutional neural network to extract the time-space-frequency global EEG features;

[0014] Step S5: Classify the feature vector output by the convolutional neural network through the softmax layer to obtain the probability distribution of each classification:

[0015]

[0016] Where: x i is the i-th element of the eigenvector, K is the number of elements in the eigenvector, x j is the jth element of the feature vector, Softmax(x i ) is x i The softmax result of

[0017] Use the argmax function to select the category with the maximum probability:

[0018] argmax i (x) = kx j≥x i ; (2)

[0019] Where: x is the feature vector after softmax calculation, x i is the i-th element of the eigenvector, x j is the jth element of the eigenvector, argmax i (x) is the argmax calculation of the feature vector x, and k is the argmax calculation result, i.e., the classification result;

[0020] Step S6: Use the adam optimizer for training.

[0021] Furthermore, the step S1 uses a blind signal decoupling algorithm to remove artifacts in the EEG signal, including electrooculographic artifacts, electromyographic artifacts, and electrocardiographic artifacts. The specific process is as follows:

[0022] Based on formula (3), the observed EEG signal data is input into the blind signal decoupling algorithm, which obtains the estimated signal matrix A and the mixing matrix S. The statistically independent signal components obtained by the denoising algorithm are analyzed, and the artifact components related to the electrooculogram, electromyography and electrocardiogram artifacts are identified by observing their time series, spectrum characteristics and topological diagrams. The identified artifact components are deleted from the mixing matrix S and the estimated signal matrix A, and the remaining components are retained to obtain the mixing matrix S_clean and the estimated signal matrix X_clean minus the artifact components. Then, the EEG signal X_clean with artifacts removed is reconstructed by matrix multiplication X_clean=A_clean*S_clean:

[0023] X=AS;(3)

[0024] Where: X is the matrix of the observed signal, and the matrix X represents the EEG signal data recorded by multiple channels, where each row corresponds to the signal of an EEG channel, and each column corresponds to the signal strength at a time point; A is the estimated signal matrix, which describes how the various components are mixed together to form the observed signal. Each column in the matrix is ​​regarded as a mixing mode, indicating how a component contributes to all the observed signals; S is the mixing matrix, which contains the time series of each independent component, and each row corresponds to an independent component, representing the source of the EEG signal, the electrooculographic artifact, the electromyographic artifact, and the electrocardiographic artifact.

[0025] Furthermore, the step S2 selects the wavelet function ψ(t) shown in formula (5) to perform wavelet transform:

[0026]

[0027] Where: t is the time variable, ω0 is the dimensionless frequency parameter in the wavelet function, defining the central frequency of the wavelet function; is a complex exponential function oscillating at an angular frequency ω0, i is an imaginary unit;

[0028] And perform the same transformation operation on each channel of the preprocessed EEG signal. The collected multi-channel EEG signal is transformed by continuous wavelet transform to obtain a three-dimensional matrix [channel, frequency, time]. The continuous wavelet transform formula is as follows:

[0029]

[0030] Where: S is the scale parameter, |S| is the modulus of the scale parameter S; x(t) is the EEG signal to be analyzed, which is the source signal in the time domain; τ is the translation parameter, CWT(t, τ) is the wavelet transform result, is the wavelet mother function.

[0031] Furthermore, in step S3, the process of selecting the wavelet time-frequency diagram containing the most effective classification information is as follows:

[0032] For the discrete random variable Y in the classification problem, the information entropy H(Y) is calculated as follows:

[0033]

[0034] Among them, n is the total number of categories, p(y i ) is the i-th category y i Probability of occurrence;

[0035] For the conditional entropy H(Y|X), that is, when the random variable X is known, the calculation formula for the entropy of the random variable Y is:

[0036]

[0037] Where m is the total number of possible values ​​of the random variable X, p(x j ) is the probability that the random variable X takes the jth value, p(y i |x j ) is when X=x j Under the condition that Y takes the i-th value y i The conditional probability of

[0038] In a certain experiment, the accuracy entropy H accuracy The calculation of is as follows:

[0039] H accuracy =-(Accuracy·log2(Accuracy)+(1-Accuracy)·log2(1-Accuracy)); (9)

[0040] Among them, Accuracy is the accuracy of this experiment;

[0041] For time domain information screening, three types of windows, long window, cross window and short window, were pre-specified according to biological prior results. Among them, the short window was 0-100ms and 100-200ms, the long window was 0-200ms, 0-300ms, 0-400ms, 0-500ms, 200-300ms, 300-400ms and 400-500ms, and the cross window was 100-500ms, 200-500ms and 300-500ms. Experiments were conducted on the above time windows respectively, and conditional entropy was calculated based on the experimental results to define the information gain IG of the experimental time window. time (Y; X i )for:

[0042] IG time (Y; X i )=H(Y)-H(Y|X i )+H accuracy ; (10)

[0043] Where Y is the classification label, corresponding to the random variable Y in formulas (7) to (8); X i is the EEG signal feature in the i-th time window, corresponding to the random variable X in formula (8); H(Y) is the information entropy of Y, H(Y|X i ) is the given feature X calculated using formula (8) i The conditional entropy after accuracy is the accuracy entropy calculated using formula (9);

[0044] Calculate the information gain IG corresponding to all candidate time windows time (Y; X i ), select the information gain IG time (Y; X i ) Maximum time window;

[0045] For frequency domain information screening, three types of experiments were pre-specified based on biological prior results: independent frequency bands, combined frequency bands, and integrated frequency bands. The independent frequency band experiments included δ, θ, α, and β; the combined frequency bands included δ+θ, α+β, and θ+α; and the integrated frequency band experiments included δ+θ+α+β. Experiments were performed on the above frequency segments, and the experimental frequency band information gain IG was calculated based on the experimental results. freq (Y; X j ):

[0046] IG freq (Y; X j )=H(Y)-H(Y|X j )+H accuracy ; (11)

[0047] Among them, X j is the EEG signal feature in the jth frequency band, corresponding to the random variable X in formula (8); H(Y|X j ) is the given feature X calculated using formula (8) j The conditional entropy after accuracy is the accuracy entropy calculated using formula (9);

[0048] Calculate the information gain IG for all candidate frequency bands in turn freq (Y; X j ), and select information gain IG freq (Y; X j ) the largest frequency band;

[0049] For spatial information screening, two types of experiments were pre-specified based on biological prior results: independent lobe and combined lobe experiments. The independent lobe retained the occipital lobe, temporal lobe, and orbitofrontal lobe. The combined lobe included the occipital lobe + temporal lobe, occipital lobe + temporal lobe + orbitofrontal cortex, occipital lobe + orbitofrontal cortex, and temporal lobe + orbitofrontal cortex. Experiments were conducted on the above brain regions separately, and the information gain IG of the experimental brain regions was calculated based on the experimental results. space (Y; X k )for:

[0050] IG space (Y; X k )=H(Y)-H(Y|X k )+H accuracy ; (12)

[0051] Among them, X k is the EEG signal feature of the kth brain region, corresponding to the random variable X in formula (8); H(Y|X k ) is the given feature X calculated using formula (8) k The conditional entropy after accuracy is the accuracy entropy calculated using formula (9);

[0052] Calculate information gain IG for all brain regions space (Y; X k ), select information gain IG space (Y; X k ) is the largest brain region.

[0053] Furthermore, in step S3, for the visual task EEG data [channel, frequency, time] with a time window of 500ms, the wavelet time-frequency map of the occipital lobe brain area of ​​100-500ms and 4Hz-13Hz is selected to construct a three-dimensional data matrix input into the deep neural network. The three-dimensional data matrix represents the interception of the occipital lobe signal after wavelet transformation in the specified time and frequency range:

[0054] M={W occipital (f,t)|100ms≤t≤500ms,4Hz≤f≤13Hz}; (13)

[0055] Among them, M is the EEG matrix guided by biological information, W occipital (f, t) is the wavelet transform result of the occipital lobe brain area, f represents frequency, and t represents time.

[0056] Furthermore, the specific process of extracting the time-space-frequency global EEG features in step S4 is as follows:

[0057] Step S41, use 2D convolution to extract features of different frequency bands, the parameters of the convolution layer are configured as the number of groups equals channel, the kernel size kernel = [frquency, 1], and the number of channels equals channel; the convolution operation is followed by batch normalization BN and ELU activation functions:

[0058]

[0059]

[0060] Where: y k is the EEG sample output by 2D convolution, BN(y k ) is the EEG sample y k The result of BN; γ is the scaling factor, which is learnable during training; μ B is the batch mean of the input data, is the batch variance of the input data; ε is a smoothing term, which is a small constant to prevent the denominator from being zero; β is an offset factor that is learnable during training; ELU(x) is the result of activating the input x with the ELU activation function, α is a hyperparameter of the ELU activation function, which is used to control the saturation value when x≤0, and determines the speed at which the function value decreases when the input x is negative. The input x of the ELU activation function is the output of batch normalization BN(y k );

[0061] Step S42: Taking the frequency features extracted in step S41 as input, applying 2D convolution to extract time domain features, the convolution operation parameters are configured as follows: the number of groups is equal to channel, the kernel size is kernel=(1, time), and then performing batch normalization BN and ELU activation function;

[0062] Step S43, using the time domain features extracted in step S42 as input, applying 2D convolution to extract spatial domain features and scaling each channel, scaling each channel means halving the number of groups to equal channel / 2, setting the convolution kernel size to be no less than (1,13), and performing batch normalization BN and ReLU activation functions after the convolution operation:

[0063]

[0064] Where x is the input of the ReLU activation function;

[0065] Step S44: Add neuron inactivation to the convolutional layer in step S43, expressed as:

[0066] h′=h⊙d; (17)

[0067] Where: h is the original activation value, i.e., the output value of the convolutional layer neuron, h′ is the activation value after neuron inactivation is applied; d is the inactivation vector, which is a randomly generated vector of 0s and 1s equal to the number of neurons in this layer, where 1 indicates that the corresponding neuron retains its original activation value h, and 0 indicates that its original activation value h is discarded;

[0068] Step S45, applying 2D convolution to further reduce the channel size of the output result of step S44, the convolution kernel size is not less than (1,13), the number of groups is 1 / 8channel, and then batch normalization BN and ReLU activation function are used;

[0069] Step S46: Apply average pooling to the features after convolution in step S45 in the time dimension, and the convolution kernel size does not exceed (1,5);

[0070] Step S47: Flatten the output of step S46, and then map it through a fully connected layer to output the final feature vector, with the mapping dimension set to the number of categories.

[0071] Furthermore, the loss function of step S6 training is set to cross entropy:

[0072]

[0073] Where: y i is the actual probability distribution of the target category. For a specific sample, if it belongs to a certain category, then the y corresponding to this category is i The value is 1, and the y corresponding to other categories i The value is 0; p i is the probability distribution of the model predicting that the sample belongs to each category, each p i The value of is between 0 and 1, and all p i The values ​​of add up to 1; C is the total number of possible categories predicted;

[0074] The parameters of the adam optimizer trained in step S6 are set as: weighted average β1=0.9, weighted average β2=0.999, constant term ε=10 -7 ;

[0075] The training hyperparameters are set as: learning rate = 0.001, batch size = 64, iterations = 400; after more than half of the iterations, the learning rate is reduced to 0.0001.

[0076] Another technical solution adopted by the embodiment of the present invention is: a small sample EEG time-space-frequency global decoding system for fine-grained target recognition tasks, comprising:

[0077] a memory for storing instructions executable by a processor;

[0078] A processor is used to execute the instructions to implement the method as described above.

[0079] Another technical solution adopted by an embodiment of the present invention is: a computer-readable medium storing computer program codes, wherein the computer program codes implement the above method when executed by a processor.

[0080] The beneficial effects of the embodiments of the present invention are:

[0081] 1. Aiming at the problem of decoding EEG signals induced by stimulation in fine-grained target recognition tasks, a lightweight EEG decoding method based on a deep network is proposed. A lightweight network structure containing four convolutional layers is adopted, which can effectively capture the spatiotemporal and frequency characteristics of EEG signals. In addition, in order to further reduce the risk of overfitting of the model and optimize the learning process, a biologically guided mutual information method is adopted to extract the prior information existing in the EEG signal. By incorporating biological prior knowledge under the limitation of a limited number of parameters, the model can more accurately identify key EEG features, reduce the global search space, and make network training more stable and efficient. This research progress is expected to be applied to real-time image classification brain-computer interface systems, greatly broadening its application possibilities and scenarios. At the same time, experiments have shown that in fine-grained image classification tasks, the classification accuracy of the embodiments of the present invention is significantly improved by 5.15%-7.61% compared with the mutual information method without biological information guidance, which solves the problem that existing studies have not yet solved the EEG decoding method under fine-grained image recognition tasks.

[0082] 2. Based on the combination of biological prior knowledge and calculation, the temporal, spatial and frequency guidance of EEG signals is given, and a stable and reusable feature extraction method is proposed, rather than a deep learning black box, which reduces the global search space and effectively reduces the number of samples required for training;

[0083] 3. By utilizing a feature extraction mechanism that combines bioinformatics guidance and computation, the network can more accurately simulate the way the human brain processes visual information, making feature extraction more consistent with the natural cognitive process, thereby achieving efficient feature classification in fewer training cycles. At the same time, while effectively extracting features, this network simplifies the model structure and maintains low computing requirements. This makes the network not only suitable for high-performance computing platforms, but can also be deployed in real-time or low-power BCI devices, greatly expanding its application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0085] Figure 1 This is a flowchart for constructing a small sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks.

[0086] Figure 2 It is a stimulus picture.

[0087] Figure 3 It is a diagram of the experimental paradigm.

[0088] Figure 4 This is a graph of target recognition (inter-class recognition) experimental results.

[0089] Figure 5 It is a graph of the experimental results of fine-grained target recognition (intra-class recognition).

[0090] Figure 6 This is the result of the time sliding window experiment of target recognition (inter-class recognition).

[0091] Figure 7 This is a graph of the time sliding window experiment results for fine-grained target recognition (intra-class recognition).

[0092] Figure 8 This is the result of the target recognition (inter-class recognition) space selection experiment.

[0093] Fig. 9 This is a graph of the results of the fine-grained target recognition (intra-class recognition) spatial selection experiment.

[0094] Fig.10 This is the result of the target recognition (inter-class recognition frequency band selection experiment.

[0095] Fig.11 This is the result of the fine-grained target recognition (intra-class recognition) frequency band selection experiment. DETAILED DESCRIPTION

[0096] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0097] This embodiment provides a small sample EEG time-space-frequency global decoding method for fine-grained target recognition tasks, including the following steps:

[0098] Collect EEG signals induced by stimulation for fine-grained target recognition tasks, build and train a small sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks;

[0099] A small-sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks is used to perform small-sample EEG spatiotemporal-frequency global decoding for fine-grained target recognition tasks.

[0100] In some embodiments, Figure 1 As shown in the figure, the specific process of constructing and training a small sample EEG spatiotemporal frequency global decoding model for fine-grained target recognition tasks is as follows:

[0101] Step S1, preprocessing the EEG signal, including removing artifacts in the EEG signal and low-pass filtering;

[0102] Step S2, performing wavelet transform on the preprocessed EEG signal;

[0103] Step S3: Based on the combination of biological prior knowledge and calculation, select the wavelet time-frequency diagram containing the most effective classification information:

[0104] Step S4, inputting the wavelet time-frequency graph selected in step S3 into the convolutional neural network to extract the time-space-frequency global EEG features;

[0105] Step S5: Classify the feature vector output by the convolutional neural network through the softmax layer to obtain the probability distribution of each classification:

[0106]

[0107] Where: x i is the i-th element of the eigenvector, K is the number of elements in the eigenvector, x j is the jth element of the feature vector, Softmax(x i ) is x i The softmax result of

[0108] Use the argmax function to select the category with the maximum probability:

[0109] argmax i (x) = kx j ≥x i ; (2)

[0110] Where: x is the feature vector after softmax calculation, x i is the i-th element of the eigenvector, x j is the jth element of the eigenvector, argmax i (x) is the argmax calculation of x, and k is the argmax calculation result, i.e. the classification result;

[0111] Step S6: Use the adam optimizer for training. The parameters of the adam optimizer are set as follows: weighted average β1 = 0.9, weighted average β2 = 0.999, constant term ε = 10 -7 ;

[0112] The training hyperparameters are set as: learning rate = 0.001, batch size = 64, and epochs = 400. When the number of iterations exceeds half, the learning rate is reduced to 0.0001.

[0113] Based on the guidance of biological information, this embodiment selects the most suitable EEG spatiotemporal-frequency features for fine-grained image classification tasks, extracts features from multiple perspectives of spatiotemporal-frequency, and achieves excellent classification results.

[0114] In some embodiments, the step S1 uses a blind signal decoupling algorithm to remove artifacts in the EEG signal, including electrooculographic artifacts, electromyographic artifacts, and electrocardiographic artifacts, to improve the signal-to-noise ratio of the data. The specific process is as follows:

[0115] Based on formula (3), the observed EEG signal data is input into the blind signal decoupling algorithm, which obtains the estimated signal matrix A and the mixing matrix S. The statistically independent signal components obtained by the denoising algorithm are analyzed, and the artifact components related to the electrooculogram, electromyography and electrocardiogram artifacts are identified by observing their time series, spectrum characteristics, topology, etc. The identified artifact components are deleted from the mixing matrix S and the estimated signal matrix A, and the remaining components are retained to obtain the mixing matrix S_clean and the estimated signal matrix X_clean minus the artifact components. Then, the EEG signal X_clean with artifacts removed is reconstructed by matrix multiplication X_clean=A_clean*S_clean:

[0116] X=AS; (3)

[0117] Where: X is the matrix of observation signals. In the context of electroencephalogram (EEG) signal processing, X can represent EEG signal data recorded from multiple channels, where each row corresponds to the signal of an EEG channel and each column corresponds to the signal strength at a time point; A is the estimated signal matrix, which describes how the components are mixed together to form the observation signal. Each column in the matrix can be regarded as a mixing mode, indicating how a component contributes to all observation signals; S is the mixing matrix, which contains the time series of each component, and each row corresponds to an independent component. Ideally, these components are statistically independent and can represent the source of the EEG signal, electrooculographic artifacts (such as artifacts caused by blinking), electromyographic artifacts (such as signals caused by head movement or chewing), electrocardiographic artifacts (such as signals caused by heartbeats), etc.

[0118] In some embodiments, the step S1 performs low-pass filtering on the artifact-removed EEG signal, such as using a first-order Butterworth filter with a cutoff frequency of 30 Hz:

[0119]

[0120] Where: H(s) is the transfer function of the low-pass filter, describing the response of the filter to signals of different frequencies; s is a complex frequency parameter, usually defined as s=σ+jω, σ is the attenuation term, ω is the angular frequency, and j is the imaginary unit; G is the gain constant of the filter. For a Butterworth filter, the gain G usually refers to the passband gain, that is, the ratio of the output to the input signal when the frequency is close to 0; ω c is the cutoff frequency of the filter, expressed in radians per second (rad / s); n is the order of the filter. The n of a first-order Butterworth filter is equal to 1. The order of the filter determines the rate of attenuation near the cutoff frequency and the flatness of the overall frequency response. For a Butterworth filter, the higher the order, the steeper the transition of the frequency response near the cutoff frequency, but the maximum flatness of the passband will also increase accordingly.

[0121] In some embodiments, the step S2 selects the wavelet function shown in formula (5) to perform wavelet transform:

[0122]

[0123] Where: ψ(t) is the wavelet function, t is the time variable. In wavelet analysis, the wavelet function slides along the time axis to match and analyze different parts of the signal. t is used to locate the behavior of the signal at a specific point in time. The change of the wavelet function is achieved by operating the time variable t (including translation and scaling); ω0 is the dimensionless frequency parameter in the wave function, which defines the center frequency of the wavelet function; It is a complex exponential function oscillating with an angular frequency of ω0, where i is an imaginary unit. The choice of ω0 affects the width and frequency characteristics of the oscillating part of the wavelet function, and it is usually necessary to select it based on the specific characteristics of the signal or the target frequency band to be analyzed.

[0124] And perform the same transformation operation on each channel of the preprocessed EEG signal. The collected multi-channel EEG signal is transformed by continuous wavelet transform to obtain a three-dimensional matrix [channel, frequency, time]. The continuous wavelet transform formula is as follows:

[0125]

[0126] Wherein: S is a scale (or stretch) parameter, which reflects the width of the wavelet function in the frequency space. The change of the scale parameter S is manifested as the stretching or shrinking of the wavelet function on the time axis. The increase of the S value represents the stretching of the wavelet function, corresponding to the low-frequency component, and the decrease of the S value represents the compression of the wavelet function, corresponding to the high-frequency component; |S| is the modulus of the scale parameter S; x(t) is the EEG signal to be analyzed, which is the source signal in the time domain. This embodiment uses wavelet transform to analyze its behavior at different frequencies and time points; τ is a displacement (or translation) parameter, which reflects the position of the wavelet function on the time axis. The change of the displacement parameter τ is manifested as the translation of the wavelet function on the time axis; CWT(t, τ) is the result of the wavelet transform. is the wavelet function used for wavelet transform.

[0127] The process of selecting the wavelet time-frequency graph containing the most effective classification information in this embodiment is as follows:

[0128] Information entropy H(Y) and accuracy entropy H are needed when performing feature selection. accuracy , for the discrete random variable Y in the classification problem, the information entropy H(Y) is calculated as follows:

[0129]

[0130] Among them, n is the total number of categories, p(y i ) is the i-th category y i The probability of occurrence, for all possible categories y i The essence of accumulation is to quantify the probability distribution of all categories. The more evenly the probability is distributed, the higher the information entropy H(Y), reflecting the greater uncertainty of the variable. For the conditional entropy H(Y|X), that is, when the random variable X is known, the calculation formula of the entropy of the random variable Y is:

[0131]

[0132] Where m is the total number of possible values ​​of the random variable X, p(xj ) is the probability that the random variable X takes the jth value, p(y i |x j ) is when X=x j Under the condition that Y takes the i-th value y i The conditional probability of Y is measured under the condition that X is known.

[0133] In a certain experiment, the accuracy entropy H accuracy The calculation of is as follows:

[0134] H accuracy =-(Accuracy·log2(Accuracy)+(1-Accuracy)·log2(1-Accuracy)); (9)

[0135] Among them, Accuracy is the accuracy of this experiment.

[0136] (1) Time domain information screening:

[0137] For the screening of time domain information, biological a priori results show that: for visual stimulus information, the visual cortex begins to respond about 40ms after the stimulus is presented. The period from the stimulus presentation to about 200ms belongs to the early stage of visual information processing, which mainly carries out implicit visual processing of the physical characteristics of the stimulus; about 200ms to 550ms after the stimulus presentation is the post-perception processing stage, which is the process of people making conscious decisions based on the perceived stimulus; therefore, three types of windows are pre-specified, namely long window, cross window and short window, among which the short window is 0-100ms and 100-200ms, the long window is 0-200ms, 0-300ms, 0-400ms, 0-500ms, 200-300ms, 300-400ms, 400-500ms, and the cross window is 100-500ms, 200-500ms, 300-500ms; experiments are conducted on the above time windows respectively, and the conditional entropy is calculated based on the experimental results to define the information gain IG of the experimental time window. time (Y; X i )for:

[0138] IG time (Y; X i )=H(Y)-H(Y|X i )+H accuracy ; (10)

[0139] Where Y is the classification label, corresponding to the random variable Y in formulas (7) to (8); X i is the EEG signal feature in the i-th time window, corresponding to the random variable X in formula (8); H(Y) is the information entropy of label Y, H(Y|Xi ) is the given feature X calculated using formula (8) i The conditional entropy after accuracy is the accuracy entropy of each time window based experiment calculated using formula (9);

[0140] Calculate the information gain IG corresponding to all candidate time windows time (Y; X i ), select the information gain IG time (Y; X i ) Maximum time window.

[0141] (2) Frequency domain information screening:

[0142] For frequency domain information screening, biological a priori results show that brain activity can be divided into θ waves (4Hz-8Hz), δ waves (0.5Hz-4Hz), α waves (8Hz-12Hz), and β waves (12Hz-30Hz) according to different frequency bands. The processing of visual information involves brain activity in multiple frequency bands. δ waves indirectly support visual recognition through memory consolidation and neural plasticity. θ waves promote memory encoding and retrieval, spatial and contextual processing, and creative insight, which helps to identify visual patterns and familiar stimuli. α waves enhance concentration and visual processing efficiency by inhibiting irrelevant sensory input and coordinating with other brain waves. β waves make active visual analysis, detailed interpretation, concentration, and sensory-motor integration possible. Therefore, three types of experiments were pre-specified: independent frequency bands, combined frequency bands, and integrated frequency bands. Among them, independent frequency band experiments include δ, θ, α, and β, combined frequency bands include δ+θ, α+β, and θ+α, and integrated frequency band experiments include δ+θ+α+β. For the above frequency segment experiments, the experimental frequency band information gain IG was calculated based on the experimental results. freq (Y; X j ):

[0143] IG freq (Y; X j )=H(Y)-H(Y|X j )+H accuracy ; (11)

[0144] Among them, X j is the EEG signal feature in the jth frequency band, corresponding to the random variable X in formula (8); H(Y|X j ) is the given feature X calculated using formula (8) j The conditional entropy after accuracy is the accuracy entropy of each frequency segmentation experiment calculated using formula (9);

[0145] Calculate the information gain IG for all candidate frequency bands in turn freq (Y; Xj ), and select information gain IG freq (Y; X j ) maximum frequency band.

[0146] (3) Airspace information screening:

[0147] For spatial information screening: biological prior results show that visual information processing involves multiple important brain areas throughout the brain, supporting visual information processing, semantic information processing, visual decision-making, memory storage and retrieval functions involved in the visual recognition process, which are mainly distributed in the occipital lobe, temporal lobe and orbitofrontal lobe. Moreover, the brain areas are closely connected rather than working independently. Therefore, spatial information selection covers independent lobes and combined lobes. Independent lobes are: occipital lobe, temporal lobe and orbitofrontal lobe; combined lobes are occipital lobe + temporal lobe, occipital lobe + temporal lobe + orbitofrontal cortex, occipital lobe + orbitofrontal cortex, temporal lobe + orbitofrontal cortex. For spatial feature screening, experiments were conducted on the above-mentioned brain areas respectively, and the information gain IG of the experimental brain areas was calculated based on the experimental results. space (Y; X k )for:

[0148] IG space (Y; X k )=H(Y)-H(Y|X k )+H accuracy ; (12)

[0149] Among them, X k is the EEG signal feature of the kth brain region, H(Y|X k ) is a given feature X k The conditional entropy after

[0150] Calculate information gain IG for all brain regions space (Y; X k ), select information gain IG space (Y; X k ) is the largest brain region.

[0151] In some embodiments, based on the selection results of the above time window, frequency band and spatial position, the time window 100-500ms with the highest information gain, the frequency segment θ+α (4-13Hz) with the highest information gain, and the brain area (occipital lobe) with the highest information gain are selected for combination, and the combination method is:

[0152] Perform wavelet transform on the EEG signal, intercept the transformed result by window, intercept the three-dimensional matrix of the occipital lobe [4-13Hz][100-500ms] and send it to the deep neural network for training. The specific operations are as follows:

[0153] Step 1: Perform wavelet transform on the EEG signal. First, the original EEG signal needs to be transformed by wavelet to extract frequency features.

[0154] Step 2: Determine the time-frequency window of interest. Based on the time window and frequency band indicators with the highest information gain provided, focus on the [100ms-500ms] time period and [4Hz-13Hz] frequency band, and extract the signal within this time-frequency range from the wavelet transform results.

[0155] Step 3: intercept the occipital lobe (brain area) signal, and then focus only on the processing of the occipital lobe signal;

[0156] Step 4: Combine and intercept the three-dimensional matrix. Combine the signals extracted in the above steps to construct a three-dimensional data matrix. The matrix is ​​based on the time window, frequency range and occipital brain area signal. Specifically, the matrix can be represented as an intercept of the occipital signal after wavelet transformation in the specified time and frequency range:

[0157] M={W occipital (f,τ)|100ms≤τ≤500ms,4Hz≤f≤13Hz}; (13)

[0158] Among them, W occipital (f,τ) is the wavelet transform result of the occipital lobe, and M is the EEG matrix guided by biological information;

[0159] Step 5: Input into the convolutional neural network of step S4 for feature extraction.

[0160] The brain responses of the subjects within a 500ms time window were collected. The different brain regions responsible for visual information decoding have a certain timing relationship. Therefore, this embodiment divides the response time into segments. For the visual task EEG data [channel, frequency, time] with a time window of 500ms, this embodiment selects the wavelet time-frequency diagram of the 100-500ms part. Tables 1 to 2 are the results of experiments within the 0-500ms time segment, respectively. The control channel is the occipital lobe, and the frequency band is δ+θ+α+β. The decoding validity of EEG information under different time windows is analyzed respectively. Based on Tables 1 to 2, it is known that the signal in the 100-500ms time window is the most effective.

[0161] Table 1 Experimental results of temporal information screening of EEG decoding induced by fine-grained target recognition (intra-class recognition) task

[0162] Time window Accuracy (%) Accuracy Recall F1 score 0-500 19.64 0.2242 0.2144 0.2045 0-100 14.96 0.1431 0.1627 0.1409 0-200 17.66 0.2060 0.1970 0.1874 0-300 19.32 0.2233 0.2118 0.2022 0-400 19.71 0.2306 0.2153 0.2070 400-500 14.34 0.1507 0.1728 0.1506 300-500 16.96 0.1983 0.1884 0.1777 200-500 18.92 0.2134 0.1997 0.1908 100-500 19.95 0.2216 0.2089 0.2006 0-100 14.96 0.1431 0.1627 0.1409 100-200 17.53 0.1679 0.1924 0.1662 200-300 18.15 0.1964 0.1982 0.1815 300-400 16.52 0.1602 0.1787 0.1568 400-500 14.34 0.1387 0.1606 0.1367

[0163] Table 2 Experimental results of temporal information screening of EEG decoding induced by target recognition (inter-class recognition) task

[0164]

[0165]

[0166] The wavelet time-frequency diagram with a frequency range of 4Hz-13Hz (θ+α) is selected, and the classification accuracy is the highest. The verification results are as follows:

[0167] Table 3 Experimental results of frequency domain information screening of EEG decoding induced by fine-grained target recognition (intra-class recognition) task

[0168] Frequency band Accuracy (%) Accuracy Recall F1 score δ+θ+α+β 19.64 0.2242 0.2144 0.2045 δ 12.93 0.1570 0.1469 0.1389 θ 19.75 0.2210 0.2187 0.2037 α 18.27 0.1973 0.2033 0.1837 β 12.97 0.1397 0.1472 0.1303 δ+θ 19.86 0.2294 0.2153 0.2065 θ+α 21.15 0.2319 0.2341 0.2190 α+β 16.97 0.1909 0.1898 0.1763

[0169] Table 4 Experimental results of frequency domain information screening of EEG decoding induced by target recognition (inter-class recognition) task

[0170] Frequency band Accuracy (%) Accuracy Recall F1 score δ+θ+α+β 24.97 0.2872 0.2680 0.2603 δ 15.58 0.1983 0.1799 0.1742 θ 25.69 0.2210 0.2187 0.2037 α 22.71 0.2507 0.2425 0.2311 β 15.22 0.1679 0.1714 0.1548 δ+θ 24.93 0.2897 0.2667 0.2605 θ+α 27.13 0.2918 0.2677 0.2632 α+β 19.82 0.2285 0.2201 0.2078

[0171] In the experiment, the brain responses of the subjects in the δ+θ+α+β frequency bands were collected. The frequency bands of different brain areas responsible for visual information decoding have different functional relationships. The control channel is the occipital lobe, the time window is 0-500ms, and the frequency is divided into segments to analyze the decoding validity of EEG information in different frequency bands. The results are shown in Tables 3 and 4. It can be seen that the frequency range of EEG signals can be widely distributed between 0-100Hz, but not all frequency bands are equally suitable for fine-grained target recognition tasks. The signal in the frequency band range of 4Hz-13Hz corresponding to θ+α is the most effective.

[0172] In some embodiments, the specific process of extracting the time-space-frequency global EEG features in step S4 is as follows:

[0173] Step S41, use 2D convolution to extract features of different frequency bands. The parameters of the convolution layer are configured as follows: the number of groups equals channel, the kernel size kernel = [frquency, 1], and the number of channels equals channel; the convolution operation is followed by batch normalization (BN) and ELU activation function:

[0174]

[0175]

[0176] Where: y k is the EEG sample output by 2D convolution, BN(y k ) is the EEG sample y k The result of BN; γ is the scaling factor, which is learnable during training; μ B is the batch mean of the input data, is the batch variance of the input data; ε is a smoothing term, which is a small constant to prevent the denominator from being zero; β is an offset factor that is learnable during training; ELU(x) is the result of activating the input x with the ELU activation function, α is a hyperparameter of the ELU activation function, which is used to control the saturation value when x≤0, and determines the speed at which the function value decreases when the input x is negative. The input x of the ELU activation function is the output of batch normalization BN(y k );

[0177] Step S42: Using the frequency features extracted in step S41 as input, apply 2D convolution to extract time domain features. The convolution operation parameters are configured as follows: the number of groups is equal to channel, the kernel size kernel = (1, time), where time can be set to 3, and then perform batch normalization BN and ELU activation functions.

[0178] Step S43, using the time domain features extracted in step S42 as input, applying 2D convolution to extract spatial domain features and scaling each channel, scaling each channel means halving the number of groups to equal channel / 2, setting the convolution kernel size to be no less than (1,13), such as setting the kernel size to (1,13), (1,15), (1,17), a large convolution kernel can cover a wider input area through one operation, making it possible for the network to learn and integrate features in a larger range, which is particularly effective for capturing large-scale patterns and structures, and a large convolution kernel can reach the same size of receptive field in fewer layers, which helps to reduce the network depth, thereby reducing the amount of calculation and the amount of parameters, and the convolution operation is followed by batch normalization BN and ReLU activation function:

[0179]

[0180] Where x is the input of the ReLU activation function;

[0181] Step S44: Add neuron dropout to the convolution layer in step S43 to reduce the probability of overfitting. Adding neuron dropout after the convolution layer can be expressed as:

[0182] h′=h⊙d; (17)

[0183] Where: h is the original activation value, i.e., the output value of the neuron in the convolutional layer, h′ is the activation value after neuron inactivation is applied; d is the dropout vector, which is a randomly generated vector of 0s and 1s equal to the number of neurons in this layer, where 1 indicates that the corresponding neuron retains its original activation value h, and 0 indicates that its original activation value h is discarded;

[0184] Step S45, applying 2D convolution to further reduce the channel size of the output result of step S44, the convolution kernel size is not less than (1,13), such as setting the kernel size to (1,13), (1,15), (1,17), the number of groups is 1 / 8channel, followed by batch normalization BN and ReLU activation function;

[0185] Step S46: Apply average pooling to the features after convolution in step S45 in the time dimension, and the convolution kernel size does not exceed (1,5), such as (1,1)(1,3)(1,5), to extract the features of the previous step in a fine-grained manner;

[0186] Step S47: Flatten the output of step S46, and then map it through a fully connected layer to output the final feature vector, with the mapping dimension set to the number of categories.

[0187] Network optimization design: The four-layer convolutional neural network structure used has significantly fewer parameters than other traditional networks. This design is particularly suitable for small sample data sets, enabling fast learning and accurate calibration while avoiding overfitting problems caused by high parameter counts.

[0188] Feature extraction order: In the four-layer convolutional neural network used, the first three convolutional layers are used to extract different feature types, with special emphasis on extracting frequency features before extracting time and space features. Reducing the frequency structure to one dimension allows the network to effectively extract the core features that affect classification while reducing complexity.

[0189] Feature extraction and parameter reduction strategy: When extracting channel features, feature scaling is implemented and the neuron random inactivation (dropout) technology is applied, which not only further reduces the number of model parameters, but also reduces the possibility of overfitting and improves the generalization of the model.

[0190] Balance between lightness and efficiency: For the fine-grained image classification task based on EEG signals with harsh experimental conditions, designing and building a lightweight and efficient convolutional neural network architecture is a major feature and contribution of this embodiment, which is crucial for practical applications.

[0191] In some embodiments, the loss function of step S6 training is set to cross entropy:

[0192]

[0193] Where: y i is the actual probability distribution of the target category. Ideally, for a specific sample, if it belongs to a certain category, then the y corresponding to this category is i The value is 1, and the y corresponding to other categories i The value is 0; pi is the probability distribution of the model predicting that the sample belongs to each category, each p i The value of is between 0 and 1, and all p i The values ​​of add up to 1; C is the total number of categories. In a multi-classification problem, C indicates how many different possible results there are.

[0194] This embodiment selects a data set for testing. The data set is the EEG signals collected under stimulation induced by the subjects performing fine-grained image recognition tasks. The stimulus images are of two major categories, namely human faces and animal faces, such as Figure 2 As shown in the figure, 12 categories of fine-grained classification are performed under each major category, and each picture stimulus has a total of 72 500ms EEG data. The two datasets are referred to as target recognition (inter-class recognition) and fine-grained target recognition (intra-class recognition) datasets.

[0195] The experimental plan is as follows: This experiment involves 10 subjects, using a 124-channel high-density EEG device; it is divided into 3 sessions (once each for 3 consecutive days), each session contains 2 blocks; each block contains 864 trials, each stimulus is presented for 500ms and then followed by a 750ms blank; Figure 3 As shown, each image appeared randomly 72 times throughout the experiment to collect visual-related EEG activity data.

[0196] like Figure 4 As shown in the figure, on the target recognition (inter-class recognition) dataset, the classification accuracy of the small sample EEG spatiotemporal frequency global decoding method for fine-grained target recognition tasks in this embodiment is 32.58%, while the classification accuracy of the method without bioinformatics guidance is 24.97%. Figure 5 As shown in Figure 2, on the fine-grained target recognition (intra-class recognition) dataset, the classification accuracy of the small sample EEG spatiotemporal frequency global decoding method for fine-grained target recognition tasks in this embodiment is 24.78, while the classification accuracy of the method without bioinformatics guidance is 19.64. Figures 6-7 As shown in the time sliding window experiment results, the classification accuracy of the fine-grained target recognition (intra-class recognition) dataset and the target recognition (inter-class recognition) dataset is the highest in 100-500ms, which are 19.95% and 25.53% respectively. Figures 8-9 As shown in the figure, O is the occipital lobe, T is the temporal lobe, and OFC is the orbitofrontal cortex. In the channel selection experiment results, the fine-grained target recognition (intra-class recognition) dataset and the target recognition (inter-class recognition) dataset have the highest EEG signals in the occipital lobe, which are 24.44% and 32.27% respectively. Figures 10-11As shown in the figure, under various frequency band conditions, the fine-grained target recognition (intra-class recognition) data set and the target recognition (inter-class recognition) data set are the highest at 4Hz-13Hz (θ+α), which are 21.15% and 27.13% respectively. According to the results, it can be seen that based on the same network structure, the method proposed in this embodiment improves the final classification results by 5.15%-7.61% on the two data sets of fine-grained target recognition (intra-class recognition) and target recognition (inter-class recognition).

[0197] An embodiment of the present invention also provides a small sample EEG space-time frequency full-domain decoding system for fine-grained target recognition tasks, comprising: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement the small sample EEG space-time frequency full-domain decoding method for fine-grained target recognition tasks as described above.

[0198] A small sample EEG space-time frequency global decoding system for fine-grained target recognition tasks may include an internal communication bus, a processor, a read-only memory (ROM), a random access memory (RAM), a communication port, and a hard disk. The internal communication bus can realize data communication between components of a small sample EEG space-time frequency global decoding system for fine-grained target recognition tasks. The processor can make judgments and issue prompts. In some embodiments, the processor can be composed of one or more processors. The communication port can realize data communication outside a small sample EEG space-time frequency global decoding system for fine-grained target recognition tasks. In some embodiments, a small sample EEG space-time frequency global decoding system for fine-grained target recognition tasks can also send and receive information and data from the network through the communication port. A small sample EEG space-time frequency global decoding system for fine-grained target recognition tasks can also include different forms of program storage units and data storage units, such as hard disks, read-only memories (ROMs) and random access memories (RAMs), which can store various data files used for computer processing and / or communication, as well as possible program instructions executed by the processor. The processor executes these instructions to implement the main part of the method. The results processed by the processor are transmitted to the subject's device through the communication port and displayed on the subject's interface.

[0199] The above-mentioned small sample EEG spatiotemporal frequency global decoding method for fine-grained target recognition tasks can be implemented as a computer program, saved in a hard disk, and recorded in a processor for execution to implement the method of the embodiment of the present invention.

[0200] An embodiment of the present invention also provides a computer-readable medium storing computer program code, which, when executed by a processor, implements the small sample EEG spatiotemporal-frequency global decoding method for fine-grained target recognition tasks as described above.

[0201] When a small sample EEG spatiotemporal frequency global decoding method for fine-grained target recognition tasks is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, a computer-readable storage medium may include, but is not limited to, magnetic storage devices (e.g., hard disks, floppy disks, magnetic strips), optical disks (e.g., compact disks (CDs), digital versatile disks (DVDs)), smart cards, and flash memory devices (e.g., electrically erasable programmable read-only memories (EPROMs), cards, sticks, key drives). In addition, the various storage media described in the embodiments of the present invention can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) that can store, contain and / or carry code and / or instructions and / or data.

[0202] It should be understood that the above-mentioned embodiments are only illustrative. The embodiments described in the present invention may be implemented in hardware, software, firmware, middleware, microcode or any combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors and / or other electronic units designed to perform the functions described in the present invention or in combination thereof.

[0203] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A small sample EEG spatiotemporal frequency global decoding method for fine-grained target recognition tasks, characterized by: The following steps are involved: Collect EEG signals induced by stimulation for fine-grained target recognition tasks, build and train a small sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks; A small-sample EEG spatiotemporal-frequency global decoding model for fine-grained target recognition tasks is used to perform small-sample EEG spatiotemporal-frequency global decoding for fine-grained target recognition tasks.

2. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to claim 1 is characterized in that: The specific process of building and training a small sample EEG spatiotemporal frequency global decoding model for fine-grained object recognition tasks is as follows: Step S1, preprocessing the EEG signal, including removing artifacts in the EEG signal and low-pass filtering; Step S2, performing wavelet transform on the preprocessed EEG signal; Step S3, selecting the wavelet time-frequency diagram containing the most effective classification information based on a combination of biological prior knowledge and calculation; Step S4, inputting the wavelet time-frequency graph selected in step S3 into the convolutional neural network to extract the time-space-frequency global EEG features; Step S5: Classify the feature vector output by the convolutional neural network through the softmax layer to obtain the probability distribution of each classification: Where: x i is the i-th element of the eigenvector, K is the number of elements in the eigenvector, x j is the jth element of the feature vector, Softmax(x i ) is x i The softmax result of Use the argmax function to select the category with the maximum probability: argmax i (x)=k x j ≥x i ; (2) Where: x is the feature vector after softmax calculation, x i is the i-th element of the eigenvector, x j is the jth element of the eigenvector, argmax i (x) is the argmax calculation of the feature vector x, and k is the argmax calculation result, i.e., the classification result; Step S6: Use the adam optimizer for training.

3. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to claim 2 is characterized in that: The step S1 uses a blind signal decoupling algorithm to remove artifacts in the EEG signal, including electrooculographic artifacts, electromyographic artifacts, and electrocardiographic artifacts. The specific process is as follows: Based on formula (3), the observed EEG signal data is input into the blind signal decoupling algorithm, which obtains the estimated signal matrix A and the mixing matrix S. The statistically independent signal components obtained by the denoising algorithm are analyzed, and the artifact components related to the electrooculogram, electromyography and electrocardiogram artifacts are identified by observing their time series, spectrum characteristics and topological diagrams. The identified artifact components are deleted from the mixing matrix S and the estimated signal matrix A, and the remaining components are retained to obtain the mixing matrix S_clean and the estimated signal matrix X_clean minus the artifact components. Then, the EEG signal X_clean with artifacts removed is reconstructed by matrix multiplication X_clean=A_clean*S_clean: X=AS; (3) Where: X is the matrix of the observed signal, and the matrix X represents the EEG signal data recorded by multiple channels, where each row corresponds to the signal of an EEG channel, and each column corresponds to the signal strength at a time point; A is the estimated signal matrix, which describes how the various components are mixed together to form the observed signal. Each column in the matrix is ​​regarded as a mixing mode, indicating how a component contributes to all the observed signals; s is the mixing matrix, which contains the time series of each independent component, and each row corresponds to an independent component, representing the source of the EEG signal, the electrooculographic artifact, the electromyographic artifact, and the electrocardiographic artifact.

4. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to claim 2 is characterized in that: The step S2 selects the wavelet function ψ(t) shown in formula (5) to perform wavelet transform: Where: t is the time variable, ω0 is the dimensionless frequency parameter in the wavelet function, defining the central frequency of the wavelet function; is a complex exponential function oscillating at an angular frequency ω0, i is an imaginary unit; And perform the same transformation operation on each channel of the preprocessed EEG signal. The collected multi-channel EEG signal is transformed by continuous wavelet transform to obtain a three-dimensional matrix [channel, frequency, time]. The continuous wavelet transform formula is as follows: Where: S is the scale parameter, |S| is the modulus of the scale parameter S; x(t) is the EEG signal to be analyzed, which is the source signal in the time domain; τ is the translation parameter, CWT(t, τ) is the wavelet transform result, is the wavelet mother function.

5. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to claim 2, characterized in that: In step S3, the process of selecting the wavelet time-frequency diagram containing the most effective classification information is as follows: For the discrete random variable Y in the classification problem, the information entropy H(Y) is calculated as follows: Among them, n is the total number of categories, p(y i ) is the i-th category y i Probability of occurrence; For the conditional entropy H(Y|X), that is, when the random variable X is known, the calculation formula for the entropy of the random variable Y is: Where m is the total number of possible values ​​of the random variable X, p(x j ) is the probability that the random variable X takes the jth value, p(y i |x j ) is when X=x j Under the condition that Y takes the i-th value y i The conditional probability of In a certain experiment, the accuracy entropy H accuracy The calculation of is as follows: H accuracy =-(Accuracy·log2(Accuracy)+(1-Accuracy)·log2(1-Accuracy)); (9) Among them, Accuracy is the accuracy of this experiment; For time domain information screening, three types of windows, long window, cross window and short window, were pre-specified according to biological prior results. Among them, the short window was 0-100ms and 100-200ms, the long window was 0-200ms, 0-300ms, 0-400ms, 0-500ms, 200-300ms, 300-400ms and 400-500ms, and the cross window was 100-500ms, 200-500ms and 300-500ms. Experiments were conducted on the above time windows respectively, and conditional entropy was calculated based on the experimental results to define the information gain IG of the experimental time window. time (Y; X i )for: IG time (Y;X i )=H(Y)-H(Y|X i ) + H accuracy ; (10) Where Y is the classification label, corresponding to the random variable Y in formulas (7) to (8); X i is the EEG signal feature in the i-th time window, corresponding to the random variable X in formula (8); H(Y) is the information entropy of Y, H(Y|X i ) is the given feature X calculated using formula (8) i The conditional entropy after accuracy is the accuracy entropy calculated using formula (9); Calculate the information gain IG corresponding to all candidate time windows time (Y; X i ), select the information gain IG time (Y; X i ) Maximum time window; For frequency domain information screening, three types of experiments were pre-specified based on biological prior results: independent frequency bands, combined frequency bands, and integrated frequency bands. The independent frequency band experiments included δ, θ, α, and β; the combined frequency bands included δ+θ, α+β, and θ+α; and the integrated frequency band experiments included δ+θ+α+β. Experiments were performed on the above frequency segments, and the experimental frequency band information gain IG was calculated based on the experimental results. freq (Y; X j ): IG freq (Y;X j )=H(Y)-H(Y|X j ) + H accuracy ; (11) Among them, X j is the EEG signal feature in the jth frequency band, corresponding to the random variable X in formula (8); H(Y|X j ) is the given feature X calculated using formula (8) j The conditional entropy after accuracy is the accuracy entropy calculated using formula (9); Calculate the information gain IG for all candidate frequency bands in turn freq (Y; X j ), and select information gain IG freq (Y; X j ) the largest frequency band; For spatial information screening, two types of experiments were pre-specified based on biological prior results: independent lobe and combined lobe experiments. The independent lobe retained the occipital lobe, temporal lobe, and orbitofrontal lobe. The combined lobe included the occipital lobe + temporal lobe, occipital lobe + temporal lobe + orbitofrontal cortex, occipital lobe + orbitofrontal cortex, and temporal lobe + orbitofrontal cortex. Experiments were conducted on the above brain regions separately, and the information gain IG of the experimental brain regions was calculated based on the experimental results. space (Y; X k )for: IG space (Y;X k )=H(Y)-H(Y|X k ) + H accuracy ; (12) Among them, X k is the EEG signal feature of the kth brain region, corresponding to the random variable X in formula (8); H(Y|X k ) is the given feature X calculated using formula (8) k The conditional entropy after accuracy is the accuracy entropy calculated using formula (9); Calculate information gain IG for all brain regions space (Y; X k ), select information gain IG space (Y; X k ) is the largest brain region.

6. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to any one of claims 2 to 5, characterized in that: In step S3, for the visual task EEG data [channel, frequency, time] with a time window of 500ms, the wavelet time-frequency map of the occipital lobe brain area of ​​100-500ms and 4Hz-13Hz is selected to construct a three-dimensional data matrix input into the deep neural network. The three-dimensional data matrix represents the interception of the occipital lobe signal after wavelet transformation in the specified time and frequency range: M={W occipital (f,t)|100ms≤t≤500ms,4Hz≤f≤13Hz}; (13) Among them, M is the EEG matrix guided by biological information, W occipital (f, t) is the wavelet transform result of the occipital lobe brain area, f represents frequency, and t represents time.

7. The method for decoding the small sample EEG space-time frequency domain for fine-grained target recognition tasks according to any one of claims 2 to 5, characterized in that: The specific process of extracting the time-space-frequency global EEG features in step S4 is as follows: Step S41, use 2D convolution to extract features of different frequency bands, the parameters of the convolution layer are configured as the number of groups equals channel, the kernel size kernel = [frquency, 1], and the number of channels equals channel; the convolution operation is followed by batch normalization BN and ELU activation functions: Where: y k is the EEG sample output by 2D convolution, BN(y k ) is the EEG sample y k The result of BN; γ is the scaling factor, which is learnable during training; μ B is the batch mean of the input data, is the batch variance of the input data; ε is a smoothing term, which is a small constant to prevent the denominator from being zero; β is an offset factor that is learnable during training; ELU(x) is the result of activating the input x with the ELU activation function, α is a hyperparameter of the ELU activation function, which is used to control the saturation value when x≤0, and determines the speed at which the function value decreases when the input x is negative. The input x of the ELU activation function is the output of batch normalization BN(y k ); Step S42: Taking the frequency features extracted in step S41 as input, applying 2D convolution to extract time domain features, the convolution operation parameters are configured as follows: the number of groups is equal to channel, the kernel size is kernel=(1, time), and then performing batch normalization BN and ELU activation function; Step S43, using the time domain features extracted in step S42 as input, applying 2D convolution to extract spatial domain features and scaling each channel, scaling each channel means halving the number of groups to equal channel / 2, setting the convolution kernel size to be no less than (1,13), and performing batch normalization BN and ReLU activation functions after the convolution operation: Where x is the input of the ReLU activation function; Step S44: Add neuron inactivation to the convolutional layer in step S43, expressed as: h′=h⊙d; (17) Where: h is the original activation value, i.e., the output value of the convolutional layer neuron, h′ is the activation value after neuron inactivation is applied; d is the inactivation vector, which is a randomly generated vector of 0s and 1s equal to the number of neurons in this layer, where 1 indicates that the corresponding neuron retains its original activation value h, and 0 indicates that its original activation value h is discarded; Step S45, applying 2D convolution to further reduce the channel size of the output result of step S44, the convolution kernel size is not less than (1,13), the number of groups is 1 / 8channel, and then batch normalization BN and ReLU activation function are used; Step S46: Apply average pooling to the features after convolution in step S45 in the time dimension, and the convolution kernel size does not exceed (1,5); Step S47: Flatten the output of step S46, and then map it through a fully connected layer to output the final feature vector, with the mapping dimension set to the number of categories.

8. The method for small sample EEG spatiotemporal-frequency global decoding for fine-grained target recognition tasks according to any one of claims 2 to 5, characterized in that: The loss function of step S6 training is set to cross entropy: Where: y i is the actual probability distribution of the target category. For a specific sample, if it belongs to a certain category, then the y corresponding to this category is i The value is 1, and the y corresponding to other categories i The value is 0; p i is the probability distribution of the model predicting that the sample belongs to each category, each p i The value of is between 0 and 1, and all p i The values ​​of add up to 1; C is the total number of possible categories predicted; The parameters of the adam optimizer trained in step S6 are set as: weighted average β1=0.9, weighted average β2=0.999, constant term ε=10 -7 ; The training hyperparameters are set as: learning rate = 0.001, batch size = 64, iterations = 400; after more than half of the iterations, the learning rate is reduced to 0.0001.

9. A small sample EEG time-space-frequency global decoding system for fine-grained target recognition tasks, characterized by including: a memory for storing instructions executable by a processor; A processor, configured to execute the instructions to implement the method according to any one of claims 1 to 8.

10. A computer-readable medium, characterized in that A computer program code is stored, and when the computer program code is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Small sample cross-subject task state electroencephalogram decoding method, model and system and readable storage medium

    CN120492906A

  • Visual information decoding method based on brain power positioning

    CN120765767A