Ultrahigh-lead electroencephalograph signal anti-aliasing method, device, equipment and medium

By using techniques such as ensemble empirical mode decomposition, wavelet transform, and CP decomposition in EEG signal processing, we can calculate and select significant channels of EEG signals, and use the convolutional gated recurrent unit model to determine the optimal channel, solving existing problems. The technology solves the problem of low accuracy in EEG signal channel selection and improves the robustness and reliability of pattern recognition.

CN118717043APending Publication Date: 2024-10-01WUHAN NEURACOM TECH DEV CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410738116.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When the existing technology processes a large number of EEG signals, it is unable to balance channels and performance when selecting signal channels, resulting in low accuracy of pattern recognition classification and insufficient robustness and reliability.

Method used

The ultra-high lead EEG signal anti-aliasing method is used to obtain EEG signal data, perform collective empirical mode decomposition, wavelet transform and CP decomposition, calculate the channel factor matrix, select significant channels, and use convolution gating The circulating unit model determines the optimal channel.

Benefits of technology

Effectively remove redundant information, reduce feature dimensions, avoid overfitting and dimensionality disaster, improve pattern classification recognition performance, and improve the robustness and separability of classifiers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118717043A_ABST
    Figure CN118717043A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electroencephalogram signal processing, and discloses an ultrahigh lead electroencephalogram signal anti-aliasing method, device and equipment and a medium. The method comprises the following steps: acquiring ultrahigh lead electroencephalogram signal data acquired by an electroencephalograph system, and constructing a training set and a test set; performing ensemble empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix; calculating and selecting significant channels based on the channel factor matrix and selecting a target channel from the significant channels; and judging whether the target channel is the optimal channel or not based on the classification result of the convolution gating loop unit model on the test set. Spectrum information is extracted through wavelet transform to improve classifier performance, ensemble empirical mode decomposition is added before wavelet transform to reduce mode aliasing and improve anti-noise performance and resolution, and therefore an optimal channel is determined according to a classification result to achieve effective channel selection, redundant information is effectively removed, feature dimensions are effectively reduced, and the robustness of the classifier is improved. And over-fitting and dimensionality disasters are avoided, and the pattern classification recognition performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electroencephalogram (EEG) signal processing, and in particular to an ultra-high-lead electroencephalogram (EEG) signal anti-aliasing method, device, equipment and medium. Background Art

[0002] At present, there are three channel selection algorithms for low-channel EEG signals: filtering, wrapping, and embedding. The embedding method is the most commonly used. However, there is no channel selection algorithm technology for ultra-high-channel EEG signals, such as 1024-channel EEG signals. At present, when multi-lead signals are removing channel redundancy and selecting effective channels, the pattern recognition classification accuracy is low and there is still room for improvement.

[0003] Current technology cannot ensure that the developed algorithm has good generalization performance on different individuals and different types of EEG devices; at the same time, current technology is also highly dependent on the EEG signal characteristics of specific users; current technology encounters some limitations when processing a large number of EEG signals, and cannot strike a good balance between channels and performance when selecting signal channels, resulting in limited pattern recognition and classification accuracy, and low robustness and reliability, all of which need to be improved. Summary of the invention

[0004] The main purpose of the present invention is to provide an ultra-high lead electroencephalogram signal anti-aliasing method, device, equipment and medium, aiming to solve the existing problems of low pattern recognition and classification accuracy when processing a large number of electroencephalogram signals for signal channel selection.

[0005] To achieve the above object, the present invention provides an ultra-high lead electroencephalogram signal anti-aliasing method, comprising:

[0006] Acquire ultra-high lead EEG signal data collected by an EEG system, and construct a training set and a test set based on the ultra-high lead EEG signal data;

[0007] Performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix;

[0008] Selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels;

[0009] Whether the target channel is the optimal channel is determined based on the classification result of the test set by the convolutional gated recurrent unit model.

[0010] In some embodiments, the step of acquiring ultra-high lead EEG signal data collected by an EEG system and constructing a training set and a test set based on the ultra-high lead EEG signal data includes:

[0011] The ultra-high lead EEG signal data was collected through the motor imagery experimental paradigm according to the EEG system;

[0012] Preprocessing the ultra-high lead EEG signal data to obtain a data set; wherein the preprocessing includes frequency reduction, filtering, artifact removal, baseline correction and normalization;

[0013] The data set was divided into a training set and a test set based on the K-fold cross validation method.

[0014] In some embodiments, performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix includes:

[0015] Performing empirical mode decomposition and wavelet transform on the training set to extract spectrum features;

[0016] Combining the spectral features with the preprocessed ultra-high lead EEG signal data to form a three-dimensional tensor; wherein the three-dimensional tensor includes channels, samples and frequencies;

[0017] Perform CP decomposition on the three-dimensional tensor to obtain a channel factor matrix.

[0018] In some embodiments, the selecting significant channels based on the channel factor matrix calculation and selecting the optimal channel among the significant channels includes:

[0019] Constructing a channel ranking list based on the channel factor matrix, and selecting significant channels from the channel ranking list;

[0020] Divide the significant channels into different regions according to brain regions, and extract FBCSP features of each region;

[0021] splicing the FBCSP features into word typical data;

[0022] Obtaining the number of sparse expression coefficients corresponding to each of the regions according to the typical data of the characters;

[0023] An optimal channel is selected from the significant channels according to a comparison result between the number of the sparse expression coefficients and a preset sparse expression coefficient threshold.

[0024] In some embodiments, constructing a channel ranking list based on the channel factor matrix, and selecting significant channels from the channel ranking list includes:

[0025] Calculating the correlation between the channels based on the channel factor matrix to obtain a channel correlation matrix for each channel;

[0026] Taking row average of the channel correlation matrix to obtain a set of column vectors;

[0027] Determine the number of times each channel appears in the matrix based on the column vector;

[0028] Sorting according to the number of times to obtain a channel sorting list;

[0029] The channels whose times are greater than a preset times threshold are extracted based on the channel sorting list as significant channels.

[0030] In some embodiments, judging whether the target channel is the optimal channel based on the classification result of the test set by the convolutional gated recurrent unit model includes:

[0031] Extracting feature information of the target channel based on a common spatial pattern;

[0032] Inputting the feature information into a convolutional gated recurrent unit model for training to obtain a trained convolutional gated recurrent unit model;

[0033] Performing set empirical mode decomposition and wavelet transform processing on the test set, and then inputting the processed set into the trained convolutional gated recurrent unit model for classification to obtain a classification result;

[0034] Based on the classification result, it is determined whether the target channel is an optimal channel.

[0035] In some embodiments, extracting feature information of the target channel based on the common spatial pattern includes:

[0036] Extracting the first type of data and the second type of data of the target channel based on the common space pattern;

[0037] Calculating a mixed space covariance matrix of the first category of data and the second category of data;

[0038] Performing eigenvalue decomposition on the mixed space covariance matrix to obtain a whitened eigenvalue matrix;

[0039] Transforming the whitened eigenvalue matrix to obtain a projection matrix, and determining a spatial filter corresponding to the projection matrix;

[0040] Feature information is extracted based on the spatial filter.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also proposes an ultra-high lead electroencephalogram signal anti-aliasing device, comprising:

[0042] A signal acquisition module, used to obtain ultra-high lead EEG signal data collected by the EEG system, and to construct a training set and a test set based on the ultra-high lead EEG signal data;

[0043] A signal processing module, used for performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix;

[0044] A channel selection module, used for selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels;

[0045] A model classification module is used to determine whether the target channel is an optimal channel based on the classification result of the test set by a convolutional gated recurrent unit model.

[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, which includes: a memory, a processor, and an ultra-high lead EEG signal anti-aliasing program stored in the memory and run on the processor, and the ultra-high lead EEG signal anti-aliasing program is configured to implement the ultra-high lead EEG signal anti-aliasing method described above.

[0047] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, which stores an ultra-high lead EEG signal anti-aliasing program, and the ultra-high lead EEG signal anti-aliasing program is used to enable the processor to implement the ultra-high lead EEG signal anti-aliasing method described above when executing.

[0048] The present invention proposes an anti-aliasing method for ultra-high lead electroencephalogram (EEG) machine signals, comprising: obtaining ultra-high lead electroencephalogram (EEG) signal data collected by an EEG machine system, and constructing a training set and a test set according to the ultra-high lead electroencephalogram (EEG) signal data; performing ensemble empirical mode decomposition, wavelet transform, and CP decomposition on the training set to obtain a channel factor matrix; selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels; and judging whether the target channel is the optimal channel based on the classification result of the test set by a convolution gated recurrent unit model. In the present invention, ensemble empirical mode decomposition (EEMD) is added before the wavelet transform is used to extract the spectral information to reduce modal aliasing, improve time-frequency localization, and improve anti-noise performance and resolution. In addition, the spectral information is extracted by wavelet transform to achieve feature enhancement, increase the robustness and separability of the classifier, and improve the classifier performance, so as to determine the optimal channel according to the classification result. By effectively identifying and selecting channels for the collected signals, channel selection can effectively remove redundant information, reduce feature dimensions, avoid overfitting and dimensionality disaster, improve pattern classification and recognition performance, and solve the existing problems of low pattern recognition and classification accuracy when processing a large number of EEG signals for signal channel selection. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 Design a prototype of the ultra-high density EEG cap involved in the embodiment of the present invention;

[0050] Figure 2a This is a 1024-channel EEG layout diagram involved in the embodiment of the present invention;

[0051] Figure 2b This is a schematic diagram of the EEG cap electrode leads involved in the embodiment of the present invention;

[0052] Figure 3 A schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;

[0053] Figure 4 It is a flow chart of an embodiment of a method for anti-aliasing of ultra-high-lead electroencephalogram signals of the present invention;

[0054] Figure 5 A flowchart of data processing involved in an embodiment of the present invention;

[0055] Figure 6 A schematic diagram of a motor imagery experiment paradigm involved in an embodiment of the present invention;

[0056] Figure 7 This is a flow chart of an anti-aliasing channel selection algorithm for an ultra-high lead electroencephalogram machine according to an embodiment of the present invention;

[0057] Figure 8 A flowchart of specific steps of CP construction and decomposition involved in an embodiment of the present invention;

[0058] Fig. 9 This is a schematic diagram of CP decomposition involved in an embodiment of the present invention;

[0059] Fig.10 A flow chart of channel sorting involved in an embodiment of the present invention;

[0060] Fig.11 A flow chart of the CSP algorithm combined with formula steps involved in the embodiment of the present invention;

[0061] Fig.12 The present invention is a structural block diagram of an embodiment of an ultra-high lead electroencephalogram signal anti-aliasing device of the present invention.

[0062] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0063] The following will be combined with the drawings in 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.

[0064] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0065] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0066] Aliasing of electroencephalogram (EEG) signals mainly refers to the overlap of signals from different brain regions or brain power sources during conduction. This overlap complicates the identification and analysis of signals, affecting the quality of data and the accuracy of decoding, because they overlap in space or time, making it difficult to distinguish their independent contributions. This problem is particularly prominent in processing complex EEG data, especially in ultra-high-density EEG recordings. Figure 1 Designed a prototype for an ultra-high density EEG machine (ultra-high density EEG cap). Figure 2a This is the 1024-channel EEG layout. Figure 2b This is a schematic diagram of the EEG cap electrode leads. Current technology encounters some limitations when processing a large number of EEG signals, such as 1024-channel EEG signals. It is unable to strike a good balance between channels and performance when selecting signal channels, resulting in limited pattern recognition and classification accuracy. The robustness and reliability are low and need to be improved.

[0067] In order to solve the above problems, the present invention provides an ultra-high lead EEG cap (such as an ultra-high lead EEG cap with 1024 channels) for ultra-high lead EEG caps. Figure 1 , Figure 2a and Figure 2b The present invention proposes an anti-aliasing algorithm technology for ultra-high lead electroencephalogram (EEG) machine. Specifically, the present invention proposes an anti-aliasing method, device, equipment and storage medium for ultra-high lead electroencephalogram (EEG) machine signal.

[0068] Reference Figure 3 , Figure 3 The figure is a schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present invention.

[0069] like Figure 3As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM memory) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0070] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0071] like Figure 3 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an ultra-high lead electroencephalogram signal anti-aliasing program.

[0072] exist Figure 3 In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the ultra-high lead EEG signal anti-aliasing program stored in the memory 1005 through the processor 1001, and executes the ultra-high lead EEG signal anti-aliasing method provided in an embodiment of the present invention.

[0073] The embodiment of the present invention provides an ultra-high lead electroencephalogram signal anti-aliasing method, referring to Figure 4 , Figure 4 The figure is a flow chart of an embodiment of a method for anti-aliasing of ultra-high-lead electroencephalogram signals of the present invention.

[0074] like Figure 4 As shown, the ultra-high lead electroencephalogram signal anti-aliasing method comprises:

[0075] Step S100: obtaining ultra-high lead EEG signal data collected by the EEG system, and constructing a training set and a test set according to the ultra-high lead EEG signal data;

[0076] Step S200: performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix;

[0077] Step S300: selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels;

[0078] Step S400: judging whether the target channel is the optimal channel based on the classification result of the test set by the convolutional gated recurrent unit model.

[0079] It should be noted that the execution subject in this embodiment may be an electronic device, which may be a computer device with data processing functions, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, a computer device is used as an example for explanation.

[0080] It is understandable that this embodiment is described by taking the anti-aliasing method for signals collected by a large number of electroencephalogram machines as an example. In view of the aliasing of internal brain source signals in space and time, most channels have information redundancy and noise interference. In this embodiment, a new algorithm, namely the anti-aliasing method for ultra-high lead electroencephalogram machine signals, is developed to select effective channels for the collected signals. Channel selection can effectively remove redundant information, reduce feature dimensions, avoid overfitting and dimensionality disaster, improve pattern classification and recognition performance, and effectively reduce aliasing in a large amount of EEG data, such as 1024-channel EEG data, while maintaining signal quality.

[0081] Specifically, Figure 5 This is a flowchart of processing a large amount of EEG signal data. Figure 4 and Figure 5 , the specific process of the ultra-high lead electroencephalogram signal anti-aliasing method of this embodiment is described.

[0082] In one embodiment, ultra-high lead EEG signal data collected by an electroencephalograph system is obtained, and a training set and a test set are constructed based on the ultra-high lead EEG signal data, including: collecting ultra-high lead EEG signal data through a motor imagery experiment paradigm according to the electroencephalograph system; preprocessing the ultra-high lead EEG signal data to obtain a data set; wherein the preprocessing includes frequency reduction, filtering, artifact removal, baseline correction and normalization; and dividing the data set into a training set and a test set based on a K-fold cross-validation method.

[0083] It should be noted that, according to the electroencephalograph system collecting ultra-high lead EEG signal data through the motor imagery experiment paradigm, the ultra-high lead EEG signal data can be generated after the user receives a preset visual stimulus.

[0084] In practical applications, for the ultra-high density EEG system, a large number of subjects are recruited and experimental data are collected using different experimental paradigms. One embodiment is the motor imagery experimental paradigm. The specific design of the motor imagery experimental paradigm is as follows: Figure 6 shown.

[0085] For example, reference Figure 6 , a total of 20 trials were trained, each trial training included a 40-second pre-task conditioning phase, a 30-second motor imagery task, and a 40-second post-task conditioning phase. Among them, the 30-second motor imagery task included a 1-second task prompt to start, 8 seconds of actual motor imagery execution, a 1-second task prompt to end, and a 20-second rest period. A beep sounded at the beginning and end of the task. The specific operation process of the motor imagery task phase of 20 trials included: there was a beep prompt sound before and after the motor imagery task of each trial; during the motor imagery task, the instruction screen displayed "+", and the imagination of left or right movement was indicated by displaying "L" or "R" on the screen. At the same time, the screen displayed a picture of virtual left and right hand movements, and then the subject imagined the instruction action of left-grasp or right-grasp. The instructions of left-grasp or right-grasp were random, and the "hand" in the animation could display each action second by second. During the rest period, the instruction screen displayed "-" to give the subject a prompt. In order to allow the blood flow signals of the subjects to return to a stable baseline level after performing a motor imagery task, they were given a 20-second recovery time.

[0086] Specifically, during the data acquisition process, EEG signals from all 1024 channels are collected simultaneously to synchronously record electrical activities from multiple brain regions. The ultra-high lead EEG signal data is preprocessed to obtain a data set: To reduce noise and interference and ensure the purity and high signal-to-noise ratio of the data, the signal is processed, including but not limited to frequency reduction, filtering, artifact removal, baseline correction, and normalization, such as filtering (removing unnecessary frequency components and retaining components of interest), noise reduction (reducing random changes in the signal), etc. Among the 1024 channels, not all channels are equally important. Some channels may capture signals that are more relevant to research or applications, while some channels do not contribute much to specific research or applications. Therefore, effective channels need to be identified and selected.

[0087] refer to Figure 7 , Figure 7This is a flow chart of the channel selection algorithm. Specifically, an ultra-high lead electroencephalograph is used to collect experimental data to obtain an experimental data set; data preprocessing is performed, including frequency reduction, filtering, anti-counterfeiting, baseline correction, normalization, etc.; the data set is divided into a training set and a test set based on the K-fold cross-validation method. Exemplarily, the K-fold cross-validation method is used to divide the data set into a training set and a test set. For example, if the value of K is 5, 4 / 5 are randomly selected as the training set, and the remaining 1 / 5 is used as the test set. It should be noted that the value of K in the K-fold cross-validation method can be set according to the actual situation, and this embodiment does not limit this.

[0088] In one embodiment, the training set is subjected to ensemble empirical mode decomposition, wavelet transform and CP decomposition to obtain a channel factor matrix, including: performing ensemble empirical mode decomposition and wavelet transform on the training set to extract spectral features; combining the spectral features with preprocessed ultra-high lead EEG signal data to form a three-dimensional tensor; wherein the three-dimensional tensor includes channels, samples and frequencies; and performing CP decomposition on the three-dimensional tensor to obtain a channel factor matrix.

[0089] Specifically, Figure 7 and Figure 8 As shown, the training set is subjected to collective empirical mode decomposition and then wavelet transform to extract spectral features, which are combined with the preprocessed EEG signal (a two-dimensional signal of channel*sample) to form a three-dimensional tensor of channel*sample*frequency, and then the channel factor matrix is ​​obtained through CP decomposition.

[0090] It can be understood that forming a three-dimensional tensor of channel*sample*frequency, that is, adding the original data to the spectral component, has the following advantages: (1) Feature enhancement: It can better capture the frequency characteristics of the signal and enhance the features. (2) Multimodal information: Obtaining time domain and frequency domain information, better processing different data patterns and changes, and increasing the robustness of the classifier. (3) Increased separability: Data may have obvious differences in the frequency domain, which is easier to distinguish in the frequency domain, which can improve the classifier performance.

[0091] It should be noted that, in this embodiment, in order to further optimize the spectral characteristics, before using wavelet transform to extract spectral information, ensemble empirical mode decomposition (EEMD) is added. EEMD is an adaptive signal processing method for decomposing complex signals into a set of intrinsic mode functions (IMFs). Each IMF is a simple oscillation mode that represents the intrinsic oscillation characteristics of the signal. The advantages of adding EEMD before wavelet transform are: (1) Reducing modal aliasing: EEMD helps to distinguish signal components with similar frequencies by adding white noise and performing multiple EMD decompositions, thereby reducing modal aliasing. This means that the difference in signal characteristics is clearer. (2) Improving time-frequency localization: Decomposing the signal into IMFs can improve the time-frequency localization of the wavelet transform, because each IMF is a smoother and simpler signal component that can be more easily captured and analyzed by the wavelet basis. (3) Anti-noise performance: The ensemble averaging process of EEMD can reduce the impact of noise, so applying EEMD before wavelet transform can provide a cleaner signal, which helps the wavelet transform to extract spectral characteristics more accurately. (4) Improved resolution: Decomposing the signal before wavelet transform allows each IMF to be analyzed at its own characteristic time scale, thus providing finer spectral features.

[0092] Specifically, the ensemble empirical mode decomposition method is as follows:

[0093] ① Set the average processing times of the original signal x(t) to N, with initial i = 1, 2, ..., N. Add Gaussian white noise ρ to x(t) i (t) obtain the new signal X1(t):

[0094] X1(t)=x(t)+ρ i (t)

[0095] ② Decompose X1(t) to obtain intrinsic mode function IMF components of different scales:

[0096]

[0097] Where n is the number of decomposed IMFs, r i,n (t) is the residual component obtained after EEMD decomposition.

[0098] ③Add different Gaussian white noise to X(t), repeat steps ① and ②, and get the kth component of x(t) after EEMD decomposition:

[0099]

[0100] ④Average the IMF components to eliminate the interference of noise on the signal.

[0101]

[0102] Use the IMF n The error between the reconstructed signal obtained by summing (t) and the original signal X(t) satisfies the following formula:

[0103]

[0104] Among them, N is used to set the number of times noise is added, and N is usually 100 or 200. As can be seen from the above formula, n decreases as the number of aggregations N increases. ω is used to set the standard deviation of the added Gaussian white noise to eliminate the noise of the original signal. ω depends on the specific situation of the noise interference in the original signal, and is generally set to 0.01 to 0.4.

[0105] Specifically, the main feature of wavelet transform is to highlight the characteristic information of the signal through transformation, analyze the local frequency in time and space, and gradually scale the signal through scaling and translation transformation, so as to show the high and low frequency information of the signal. Studies have shown that the characteristics of wavelet transform in time-frequency analysis can be applied to electrophysiological signals. It is to transform a signal through the time transformation and scale transformation of a specified mother wavelet, and obtain several scale coefficient functions (W) corresponding to this scale signal similar to the mother wavelet, which are defined as:

[0106]

[0107] Among them, a is the scale transformation, and τ is the time transformation. The calculation process of W is equivalent to using a bandpass filter to filter the signal one level at a time according to a certain frequency band range to obtain new signals of different frequency bands, that is, decomposing the source signal according to different frequency bands.

[0108] Specifically, refer to Fig. 9 CP decomposition diagram shown: CP decomposition is to decompose a tensor into the sum of multiple single-rank tensors. Given a third-order tensor, the CP decomposition can be written as:

[0109]

[0110] Where o is the vector outer product, R is a positive integer and

[0111] In one embodiment, significant channels are selected based on the channel factor matrix calculation, and the optimal channel is selected from the significant channels, including: constructing a channel sorting list based on the channel factor matrix, and selecting significant channels from the channel sorting list; dividing the significant channels into different regions according to brain regions, and extracting FBCSP features of each of the regions; splicing the FBCSP features into character-typical data; obtaining the number of sparse expression coefficients corresponding to each of the regions according to the character-typical data; and selecting the optimal channel from the significant channels according to a comparison result of the number of sparse expression coefficients with a preset sparse expression coefficient threshold.

[0112] Among them, constructing a channel sorting list based on the channel factor matrix, and selecting significant channels from the channel sorting list, including: calculating the correlation between channels based on the channel factor matrix to obtain a channel correlation matrix for each channel; taking row averages of the channel correlation matrix to obtain a set of column vectors; determining the number of times each channel appears in the matrix based on the column vectors; sorting according to the number of times to obtain a channel sorting list; extracting channels whose number of times is greater than a preset number threshold based on the channel sorting list as significant channels.

[0113] For example, the correlation coefficient between channels is calculated, channels above the threshold are selected, and the channels are sorted to extract significant channels. The significant channels are divided into different regions according to the brain area, and the FBCSP features extracted from each region are spliced ​​into typical data. The number of sparse expression coefficients of each region is used to characterize its regional classification ability, so as to select the optimal channel in the selected channel area.

[0114] Specifically, Fig.10 As shown in the figure, the channel factor matrix is ​​obtained by CP decomposition. This matrix combines the time domain, frequency domain, and spatial domain information. This matrix is ​​richer in effective information than the traditional two-dimensional matrix; the correlation between each channel is calculated to obtain the channel correlation matrix; the channel correlation matrix is ​​averaged to obtain a set of column vectors. It should be noted that the above processing is performed on all experimental data to obtain the correlation matrix of all channels. According to the number of times each channel appears in the matrix, the more times it appears, the more important the channel is, and the channel ranking list is obtained.

[0115] Specifically, Fig.10 As shown, where N c is the number of channels; R is the interaction information in the time-frequency and spatial domains; N tr is the number of training experiments.

[0116] Specifically, sparse representation: sparse representation is to represent data or signals with as few non-zero elements as possible. Suppose there is a signal x∈R n , through a dictionary matrix D∈Rn×m To represent, where the number of columns m of D is usually greater than the number of rows n (that is, the dictionary is overcomplete). Each column of the dictionary matrix is ​​called an atom, and these atoms together constitute the representation space of the signal. The goal of sparse representation is to find a sparse coefficient vector α∈R m , so that x can be expressed as a linear combination of a few columns (atoms) of D, that is:

[0117] x≈Dα

[0118] Among them, most elements of vector α are zero or close to zero, and only a few elements are non-zero.

[0119] In the problem of sparse representation, a common challenge is how to find a suitable sparse coefficient vector α. This is usually achieved by solving the following optimization problem:

[0120]

[0121] or

[0122]

[0123] Here, ||α||0 is the 0-norm of α, indicating the number of nonzero elements in α, ||x-Dα||2 is the 2-norm of the reconstruction error, ∈ is the error tolerance, and k is the sparsity limit.

[0124] In one embodiment, judging whether the target channel is the optimal channel based on the classification result of the test set using a convolutional gated recurrent unit model includes: extracting feature information of the target channel based on a common spatial pattern; inputting the feature information into a convolutional gated recurrent unit model for training to obtain a trained convolutional gated recurrent unit model; performing collective empirical mode decomposition and wavelet transform processing on the test set and then inputting the result into the trained convolutional gated recurrent unit model for classification to obtain a classification result; judging whether the target channel is the optimal channel based on the classification result.

[0125] Among them, extracting the characteristic information of the target channel based on the common space pattern includes: extracting the first type of data and the second type of data of the target channel based on the common space pattern; calculating the mixed space covariance matrix of the first type of data and the second type of data; performing eigenvalue decomposition on the mixed space covariance matrix to obtain a whitened eigenvalue matrix; transforming the whitened eigenvalue matrix to obtain a projection matrix, and determining the spatial filter corresponding to the projection matrix; extracting the characteristic information based on the spatial filter.

[0126] Exemplarily, common spatial pattern (CSP) aims to enhance the spatial features of certain categories in multi-channel signals while suppressing other categories, thereby making signals of different categories easier to distinguish in terms of spatial patterns.

[0127] refer to Fig.11 The CSP algorithm shown in the formula step flow chart, the common space mode (CSP) algorithm step flow chart is as follows:

[0128] 1. Two types of data X1, X2 (N*T dimensions);

[0129] 2. Mixed space covariance matrix R;

[0130] 3. Whiten eigenvalue matrix P;

[0131] 4. Spatial filter W (2m*N dimension);

[0132] 5. Feature extraction (2m*1 dimension).

[0133] Specifically, the covariance matrix of the mixed space: the covariance matrices R1 and R2 after normalization of X1 and X2 are:

[0134]

[0135] Among them, X T represents the transpose of the X matrix, and trace(X) represents the sum of the elements on the diagonal of the matrix. Then find the mixed space covariance matrix R:

[0136]

[0137] in, are the average covariance matrices of Task 1 and 2 experiments respectively.

[0138] Specifically, the whitened eigenvalue matrix P is: the mixed space covariance matrix R is decomposed according to the formula:

[0139] R=UλU T

[0140] Among them, U is the eigenvector matrix of matrix λ, and λ is the diagonal matrix of the corresponding eigenvalues. Arrange the eigenvalues ​​in descending order, and the whitening matrix is:

[0141]

[0142] Specifically, the spatial filter W (2m*N dimension): transforms R1 and R2 as follows:

[0143] S1=PR1P T ,S2=PR2P T

[0144] Then do principal component decomposition on S1 and S2 to get:

[0145]

[0146] The above formula proves that the eigenvector matrix of matrix S1 is equal to the eigenvector matrix of matrix S2, that is:

[0147] B1=B2=V

[0148] At the same time, the sum of the diagonal matrices λ1 and λ2 of the two eigenvalues ​​is the identity matrix, that is,

[0149] λ1+λ2=I

[0150] Since the sum of the eigenvalues ​​of the two types of matrices is always 1, the eigenvector corresponding to the maximum eigenvalue of S1 makes S2 have the minimum eigenvalue, and vice versa.

[0151] If the eigenvalues ​​in λ1 are arranged in descending order, the corresponding eigenvalues ​​in λ2 are arranged in ascending order. Based on this, it can be inferred that λ1 and λ2 have the following form:

[0152] λ1=diag(I1 σ M 0),λ2=diag(0 σ M I2)

[0153] The transformation of the whitened EEG to the eigenvector corresponding to the largest eigenvalue in λ1 and λ2 is optimal for separating the variance in the two signal matrices, and the projection matrix W is the corresponding spatial filter:

[0154] W=B T P

[0155] Specifically, feature extraction (2m*1 dimension): after obtaining the spatial filter, the filter is used to obtain the required feature vector for subsequent classification.

[0156] The original data X N×T Use ω spatial filtering:

[0157] Z 2m×T =ω 2m×N X N×T

[0158] Selecting feature vectors

[0159]

[0160] in, It's Z 2m×T The variance of the p-th row in .

[0161] All Integrated into f i That is, the features extracted for each trial EEG data.

[0162] It should be noted that currently, the EEG machine has not yet realized a 1024-lead EEG cap. In this embodiment, the MEMS integrated arrangement technology can be used to realize an ultra-high-lead EEG cap, such as a 1024-lead EEG cap (such as Figure 1 , Figure 2a and Figure 2b As shown in the figure, in view of the limitations of current technology in processing a large number of EEG signals, the inability to strike a good balance between channels and performance in the selection of signal channels, and the limited accuracy of pattern recognition and classification, a large number of improvements have been made to the anti-aliasing method of ultra-high lead EEG signal in this embodiment, which avoids some problems of traditional channel selection algorithms and pattern recognition and classification algorithms, and can effectively improve the robustness and reliability of the classification model.

[0163] This embodiment proposes an anti-aliasing method for ultra-high lead electroencephalogram (EEG) machine signals, including: obtaining ultra-high lead EEG signal data collected by an EEG machine system, and constructing a training set and a test set based on the ultra-high lead EEG signal data; performing ensemble empirical mode decomposition, wavelet transform, and CP decomposition on the training set to obtain a channel factor matrix; selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels; judging whether the target channel is the optimal channel based on the classification result of the test set by a convolutional gated recurrent unit model. In this embodiment, before extracting spectral information by wavelet transform, ensemble empirical mode decomposition (EEMD) is added to reduce modal aliasing, improve time-frequency localization, and improve anti-noise performance and resolution. In addition, spectral information is extracted by wavelet transform to achieve feature enhancement, increase the robustness and separability of the classifier, and improve the performance of the classifier, so as to determine the optimal channel according to the classification result. By effectively identifying and selecting channels for the collected signals, channel selection can effectively remove redundant information, reduce feature dimensions, avoid overfitting and dimensionality disaster, improve pattern classification and recognition performance, and solve the existing problems of low pattern recognition and classification accuracy when processing a large number of EEG signals for signal channel selection.

[0164] In addition, an embodiment of the present invention further proposes a storage medium, on which is stored an ultra-high lead EEG signal anti-aliasing program, which, when executed by a processor, implements the steps of the ultra-high lead EEG signal anti-aliasing method as described above.

[0165] Reference Fig.12 , Fig.12 The present invention is a structural block diagram of an embodiment of an ultra-high lead electroencephalogram signal anti-aliasing device of the present invention.

[0166] like Fig.12 As shown, the ultra-high lead electroencephalogram signal anti-aliasing device comprises:

[0167] The signal acquisition module 10 is used to obtain the ultra-high lead EEG signal data collected by the EEG system, and to construct a training set and a test set based on the ultra-high lead EEG signal data;

[0168] The signal processing module 20 is used to perform set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix;

[0169] A channel selection module 30, configured to select significant channels based on the channel factor matrix calculation, and select a target channel from the significant channels;

[0170] The model classification module 40 is used to determine whether the target channel is the optimal channel based on the classification result of the test set by the convolutional gated recurrent unit model.

[0171] This embodiment proposes an anti-aliasing device for ultra-high lead electroencephalograph signals. In this embodiment, through the modules of the anti-aliasing device for ultra-high lead electroencephalograph signals, before the wavelet transform is used to extract the spectrum information, the ensemble empirical mode decomposition (EEMD) is added to reduce modal aliasing, improve time-frequency localization, and improve the anti-noise performance and resolution. In addition, the spectrum information is extracted by wavelet transform to achieve feature enhancement, increase the robustness and separability of the classifier, and improve the performance of the classifier, so as to determine the optimal channel according to the classification result. By performing effective channel identification and selection on the collected signal, the channel selection can effectively remove redundant information, reduce the feature dimension, avoid overfitting and dimensionality disaster, improve the pattern classification recognition performance, and solve the existing problems of low pattern recognition classification accuracy when processing a large number of EEG signals for signal channel selection.

[0172] It should be noted that the technical details that are not described in detail in the embodiment of the ultra-high lead EEG signal anti-aliasing device can be referred to the ultra-high lead EEG signal anti-aliasing method provided in any embodiment of the present invention as described above, and will not be repeated here.

[0173] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0174] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0175] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0176] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0177] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0178] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for anti-aliasing of ultra-high lead electroencephalogram signals, characterized in that: include: Acquire ultra-high lead EEG signal data collected by an EEG system, and construct a training set and a test set based on the ultra-high lead EEG signal data; Performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix; Selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels; Whether the target channel is the optimal channel is determined based on the classification result of the test set using a convolutional gated recurrent unit model.

2. The method according to claim 1, characterized in that The step of obtaining ultra-high lead EEG signal data collected by the EEG system and constructing a training set and a test set according to the ultra-high lead EEG signal data includes: The ultra-high lead EEG signal data was collected through the motor imagery experimental paradigm according to the EEG system; Preprocessing the ultra-high lead EEG signal data to obtain a data set; wherein the preprocessing includes frequency reduction, filtering, artifact removal, baseline correction and normalization; The data set was divided into a training set and a test set based on the K-fold cross validation method.

3. The method according to claim 2, characterized in that The step of performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix includes: Performing empirical mode decomposition and wavelet transform on the training set to extract spectrum features; Combining the spectral features with the preprocessed ultra-high lead EEG signal data to form a three-dimensional tensor; wherein the three-dimensional tensor includes channels, samples and frequencies; Perform CP decomposition on the three-dimensional tensor to obtain a channel factor matrix.

4. The method according to claim 1, characterized in that The selecting of significant channels based on the channel factor matrix calculation, and selecting the optimal channel among the significant channels, comprises: Constructing a channel ranking list based on the channel factor matrix, and selecting significant channels from the channel ranking list; Divide the significant channels into different regions according to brain regions, and extract FBCSP features of each region; splicing the FBCSP features into word typical data; Obtaining the number of sparse expression coefficients corresponding to each of the regions according to the typical data of the characters; An optimal channel is selected from the significant channels according to a comparison result between the number of the sparse expression coefficients and a preset sparse expression coefficient threshold.

5. The method according to claim 4, characterized in that The step of constructing a channel ranking list based on the channel factor matrix and selecting significant channels from the channel ranking list comprises: Calculating the correlation between the channels based on the channel factor matrix to obtain a channel correlation matrix for each channel; Taking row average of the channel correlation matrix to obtain a set of column vectors; Determine the number of times each channel appears in the matrix based on the column vector; Sorting according to the number of times to obtain a channel sorting list; The channels whose times are greater than a preset times threshold are extracted based on the channel sorting list as significant channels.

6. The method according to claim 1, characterized in that The determining whether the target channel is the optimal channel based on the classification result of the test set by the convolutional gated recurrent unit model includes: Extracting feature information of the target channel based on a common spatial pattern; Inputting the feature information into a convolutional gated recurrent unit model for training to obtain a trained convolutional gated recurrent unit model; Performing set empirical mode decomposition and wavelet transform processing on the test set, and then inputting the processed set into the trained convolutional gated recurrent unit model for classification to obtain a classification result; Based on the classification result, it is determined whether the target channel is an optimal channel.

7. The method according to claim 6, characterized in that The extracting feature information of the target channel based on the common space pattern includes: Extracting the first type of data and the second type of data of the target channel based on the common space pattern; Calculating a mixed space covariance matrix of the first category of data and the second category of data; Performing eigenvalue decomposition on the mixed space covariance matrix to obtain a whitened eigenvalue matrix; Transforming the whitened eigenvalue matrix to obtain a projection matrix, and determining a spatial filter corresponding to the projection matrix; Feature information is extracted based on the spatial filter.

8. An ultra-high lead electroencephalogram signal anti-aliasing device, characterized in that: include: A signal acquisition module, used to obtain ultra-high lead EEG signal data collected by the EEG system, and to construct a training set and a test set based on the ultra-high lead EEG signal data; A signal processing module, used for performing set empirical mode decomposition, wavelet transform and CP decomposition on the training set to obtain a channel factor matrix; A channel selection module, used for selecting significant channels based on the channel factor matrix calculation, and selecting a target channel from the significant channels; A model classification module is used to determine whether the target channel is an optimal channel based on the classification result of the test set by a convolutional gated recurrent unit model.

9. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and an ultra-high lead electroencephalograph signal anti-aliasing program stored in the memory and executable on the processor, wherein the ultra-high lead electroencephalograph signal anti-aliasing program is configured to implement the ultra-high lead electroencephalograph signal anti-aliasing method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores an ultra-high lead electroencephalograph signal anti-aliasing program, and the ultra-high lead electroencephalograph signal anti-aliasing program is used to enable the processor to implement the ultra-high lead electroencephalograph signal anti-aliasing method as described in any one of claims 1 to 7 when executing.

Citation Information

Patent Citations

  • Method for creating a depression detection classification model based on a channel selection from multichannel electroencephalography.

    CH716863A2

  • Electroencephalogram signal noise elimination method

    CN106951835A

  • Electroencephalogram-based modified EEMD (ensemble empirical mode decomposition) algorithm

    CN108095722A

  • SSVEP EEG classification method based on convolution neural model enhanced by EMD data

    CN109299751A

  • A wavelet neural network motor imagery electroencephalogram classification method based on EEMD data enhancement

    CN109598222A