Electroencephalogram signal extraction method and device, equipment and storage medium
In EEG signal processing, the type judgment and correction of the signal to be processed is used to judge and correct the problem of inaccurate EEG signal extraction in the magnetic resonance environment, and the accuracy of signal extraction is improved.
Patent Information
- Application Number
- CN202410952216.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-01
AI Technical Summary
In the magnetic resonance environment, the prior art can easily lead to inaccurate extraction of EEG signals when using independent component analysis methods, and some effective data are eliminated, resulting in information loss.
By obtaining the signal to be processed, the signal type is judged using the preset discrimination rules, the non-noise signal is determined, and the correction process is performed according to the preset signal correction rules, and then the inverse transformation of independent component analysis is performed to obtain the target EEG signal.
It improves the judgment accuracy of non-noise signals, reduces the lack of effective information, and enhances the extraction accuracy of EEG signals.
Smart Images

Figure CN118873155A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electroencephalogram (EEG) signal processing, and in particular to an EEG signal extraction method and device, equipment and storage medium. Background Art
[0002] Electroencephalogram (EEG) is a very important electrophysiological signal for studying the level of brain neural activity. Recently, with the gradual development of medical technology, the use of EEG in magnetic resonance environment has also increased. Since EEG has the characteristics of low signal amplitude and susceptibility to interference, it is particularly important to effectively pre-process EEG in magnetic resonance environment to eliminate noise.
[0003] Currently, many technologies use independent component analysis (ICA) to separate the collected original signals and remove noise. However, directly using ICA to remove some signal components may cause some valid data in the EEG to be removed, resulting in information loss and inaccurate extraction of EEG signals. Summary of the invention
[0004] The main purpose of the present invention is to provide a method and device for extracting EEG signals, a device and a storage medium, which can solve the problem of inaccurate extraction of EEG signals in the prior art.
[0005] To achieve the above object, the present invention provides a method for extracting an electroencephalogram signal in a first aspect, the method comprising:
[0006] Acquire a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment collected by each data collection channel;
[0007] Performing type discrimination on each of the signals to be processed according to a preset discrimination rule to determine the signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal;
[0008] If the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed;
[0009] An inverse transformation process of independent component analysis is performed on the corrected signal to obtain a target EEG signal of the target user.
[0010] To achieve the above object, the second aspect of the present invention provides an electroencephalogram signal extraction device, the device comprising:
[0011] Data acquisition module: used to acquire a number of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment collected by each data acquisition channel;
[0012] A type discrimination module: used to discriminate the type of each of the signals to be processed according to a preset discrimination rule, and determine the signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal;
[0013] A signal correction module: used for, if the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed;
[0014] Signal determination module: used to perform inverse transformation processing of independent component analysis according to the corrected signal to obtain the target EEG signal of the target user.
[0015] To achieve the above objective, the third aspect of the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps shown in the first aspect.
[0016] To achieve the above objectives, the fourth aspect of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps shown in the first aspect.
[0017] The embodiments of the present invention have the following beneficial effects:
[0018] The present invention provides a method for extracting electroencephalogram (EEG) signals, which comprises: obtaining a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each electroencephalogram (EEG) data of a target user collected by each data collection channel in a magnetic resonance environment; performing type discrimination on each signal to be processed according to a preset discrimination rule, and determining the signal type of each signal to be processed, wherein the signal type at least includes a non-noise signal; if the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule, and obtaining a corrected signal of the signal to be processed; and performing inverse transformation processing of independent component analysis on the corrected signal, and obtaining a target electroencephalogram (EEG) signal of the target user.
[0019] Through the above method, it is achieved that the type of the signal to be processed is first judged by the discrimination rule, the signal type of the signal to be processed is determined, the accuracy of the judgment of the non-noise signal is improved, the lack of effective information is reduced, and the signal to be processed whose signal type is the non-noise signal is further processed, the signal correction rule is used to correct the non-noise signal to be processed, and the inverse transformation processing of the target EEG signal of the target user is obtained based on the corrected signal, which further improves the accuracy of the extraction of the target EEG signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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.
[0021] in:
[0022] Figure 1 is a flow chart of a method for extracting EEG signals in an embodiment of the present invention;
[0023] Figure 2 is another flow chart of a method for extracting an electroencephalogram signal according to an embodiment of the present invention;
[0024] Figure 3 is a structural block diagram of a device for extracting EEG signals in an embodiment of the present invention;
[0025] Figure 4 4 is a structural block diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] 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.
[0027] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for extracting an EEG signal according to an embodiment of the present invention. Figure 1The method shown can be applied to both a terminal and a server. The terminal can be a desktop terminal or a mobile terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server can be implemented by an independent server or a server cluster composed of multiple servers. This embodiment is described by applying to a terminal as an example. Figure 1 The method shown includes the following steps:
[0028] 101. Acquire a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user collected by each data collection channel in a magnetic resonance environment;
[0029] It should be noted that, in this embodiment, the signal separated by independent component analysis (ICA) is further processed before the inverse transformation of independent component analysis, and then the inverse transformation of independent component analysis is performed after further processing to improve the accuracy of EEG signal extraction. Among them, the signal to be processed is obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment collected by each data acquisition channel. The target user can be one or more. If there are multiple target users, the steps of the method shown in this application are performed in parallel or serially for each target user to obtain the target EEG signal of each target user. This application only takes the target user as an example for illustration, wherein the target user can be a user who is undergoing EEG monitoring, and the data acquisition channel is used to collect the EEG data of the target user in the magnetic resonance environment. The signal to be processed can be an independent component signal separated after independent component analysis of the EEG data of the target user collected by multiple data acquisition channels of no less than four channels.
[0030] For example, if there are N data acquisition channels, each data acquisition channel will collect one channel of EEG data of the target user in the magnetic resonance environment. At this time, the total number of data to be processed is also N. Then, by performing independent component analysis on the N data to be processed, the independent component corresponding to each data acquisition channel can be obtained. The independent component is the above-mentioned signal to be processed. At this time, the total number of signals to be processed is also N.
[0031] In a feasible implementation, the independent component analysis of EEG data may be performed with reference to the following steps, that is, the above method may further include steps M01 to M03:
[0032] M01. Acquire the EEG data of the target user collected by each data collection channel in the magnetic resonance environment;
[0033] M02, performing signal filtering processing on the EEG data to obtain filtered EEG data;
[0034] M03. Perform independent component analysis on the filtered EEG data to obtain a signal to be processed corresponding to the EEG data.
[0035] It can be understood that the terminal can obtain the EEG data of the target user collected by each data acquisition channel in the magnetic resonance environment. Taking the terminal as an EEG signal monitoring device as an example, after obtaining the above EEG data, the EEG data can be subjected to signal filtering processing to obtain filtered EEG data to reduce data noise, and further perform independent component analysis on the filtered EEG data to obtain the signal to be processed corresponding to the EEG data.
[0036] For example, the EEG data can be filtered at a frequency of filtering each channel data once every 0.5s, and then analysis and extraction can be started. The mathematical expression for ICA analysis of the filtered signal is as follows:
[0037]
[0038] In the above formula, n represents the number of the data acquisition channel, n∈N, N is the total number of data acquisition channels, and n can be from 1 to N; x n(t) is the observed signal corresponding to data acquisition channel n, x 1(t) ~x n(t) is the observation signal of data acquisition channels 1 to n, and the observation signal is the signal composed of the filtered EEG data; s n(t) is the independent component corresponding to data acquisition channel n, s 1(t) ~s n(t) are the independent components obtained by data acquisition channels 1 to n, and the independent component s 1(t) ~s n(t) is the signal to be processed; W is the unmixing matrix.
[0039] 102. Perform type discrimination on each of the signals to be processed according to a preset discrimination rule to determine a signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal;
[0040] Further, after obtaining the above-mentioned signal to be processed, the above-mentioned signal to be processed can be screened to obtain a non-noise signal, thereby improving the accuracy of the target EEG signal when the subsequent independent component analysis inverse transform is performed to obtain the target EEG signal of the target user. Specifically, a discrimination rule is pre-set to perform type discrimination on the signal to be processed, so as to know the signal type of each signal to be processed, and the signal type includes a noise signal and a non-noise signal. The signal type of the signal to be processed can be a noise signal or a non-noise signal, wherein the discrimination rule can be set based on the specific signal characteristics of the noise signal, the specific signal characteristics of the EEG signal, or other signal characteristics that can distinguish the signal type, which is not limited here. The signal type of each signal to be processed is known through type discrimination. If the signal type of the signal to be processed is a noise signal, the signal to be processed is directly eliminated. If the signal type of the signal to be processed is a non-noise signal, step 103 is executed to perform signal correction on the signal to be processed, thereby further improving the accuracy of subsequent target EEG signal extraction.
[0041] 103. If the signal type of the signal to be processed is a non-noise signal, perform signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed;
[0042] It should be noted that if the signal type of the signal to be processed is a non-noise signal, the signal to be processed can be further corrected to reduce the error interference in the signal, and if there are multiple signals to be processed whose signal type is a non-noise signal, each signal to be processed whose signal type is a non-noise signal will be processed in step 103, such as performing the processing of step 103 in parallel or serially, so as to obtain the corrected signal of each signal to be processed.
[0043] 104. Perform inverse transformation processing of independent component analysis on the corrected signal to obtain a target EEG signal of the target user.
[0044] Furthermore, the target EEG signal of the target user can be obtained by performing an inverse transformation of the independent component analysis on each corrected signal. It should be noted that the inverse transformation of the independent component analysis can use the inverse matrix W of the unmixing matrix W shown in formula (1): -1 To achieve this, use the inverse matrix W of the unmixing matrix W -1 And the correction signals of each signal to be processed are used to restore the target EEG signal.
[0045] The present invention provides a method for extracting an electroencephalogram signal, the method comprising: obtaining a plurality of signals to be processed, the signals to be processed are obtained by performing independent component analysis on each electroencephalogram data of a target user collected by each data acquisition channel in a magnetic resonance environment; performing type discrimination on each signal to be processed according to a preset discrimination rule, determining the signal type of each signal to be processed, the signal type at least including a non-noise signal; if the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule, obtaining a corrected signal of the signal to be processed; performing inverse transformation processing of independent component analysis on the corrected signal, obtaining a target electroencephalogram signal of the target user. Through the above-mentioned method, it is realized that the type of the signal to be processed is first judged by using the discrimination rule, the signal type of the signal to be processed is determined, the accuracy of judging the non-noise signal is improved, the situation of missing effective information is reduced, and the signal to be processed whose signal type is a non-noise signal is further processed, the signal correction rule is used to correct the signal to be processed of the non-noise signal, and the inverse transformation processing of the target electroencephalogram signal of the target user is obtained based on the corrected signal, further improving the extraction accuracy of the target electroencephalogram signal.
[0046] See also Figure 2 , Figure 2 FIG. 4 is another flow chart of a method for extracting an EEG signal according to an embodiment of the present invention. Figure 2 The method shown comprises the following steps:
[0047] 201. Acquire a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user collected by each data collection channel in a magnetic resonance environment;
[0048] It is understandable that the content of the step shown in step 201 is the same as Figure 1 The contents of step 101 in the method shown are similar, and are not described here to avoid repetition. For details, please refer to Figure 1 The content of step 101 in the method shown.
[0049] In a feasible implementation, the discrimination rule includes at least a preset signal feature threshold, and then the type of each of the signals to be processed is discriminated according to the preset discrimination rule to determine the signal type of each of the signals to be processed, which may include steps 202 to 203 to discriminate the signal type of the signal to be processed.
[0050] 202. Perform feature extraction on the signal to be processed to obtain signal features of the signal to be processed;
[0051] 203. Determine a signal type of the signal to be processed according to the signal feature and the signal feature threshold;
[0052] It should be noted that in order to distinguish the signal type of each signal to be processed, the discrimination rules include several signal feature thresholds, where the signal features include but are not limited to variance, amplitude maximum difference, total power and 95% spectrum edge frequency, etc. The signal feature threshold is the threshold that can reflect the signal feature corresponding to the noise signal. After obtaining the signal to be processed, the required signal features are extracted from the signal to be processed, and the signal features are compared with the signal feature threshold to determine the type of the signal to be processed.
[0053] Exemplarily, the signal features may be extracted by respectively calculating the variance, amplitude maximum difference, total power (TP), and 95% spectrum edge frequency (SEF) of each independent component, and the calculation formula is as follows:
[0054] Variance var:
[0055] Amplitude maximum difference Diff: Diff = x max -x min Diff = x max -x min ; (3)
[0056] Total power TP:
[0057] 95% spectrum edge frequency SEF:
[0058] In the above formula, x represents the data point of the signal to be processed; mean represents the mean of the data of the signal to be processed; L represents the length of the data of the signal to be processed; x max Indicates the maximum value of this data of the signal to be processed; x min It represents the minimum value of the data of the signal to be processed; fs is the data sampling rate of the EEG signal; P is the result of Fourier transform (FFT transform for short) of the filtered data; k is the index of the data point.
[0059] Wherein, the signal characteristic threshold includes at least a first threshold, a second threshold, a third threshold and a fourth threshold, and step 203 may include steps A01 to A04:
[0060] A01. Determine whether the variance of the signal to be processed is greater than a first threshold;
[0061] A02. If the variance of the signal to be processed is less than or equal to the first threshold, determine whether the amplitude maximum difference of the signal to be processed is greater than the second threshold;
[0062] A03. If the amplitude maximum difference of the signal to be processed is greater than the second threshold, determining whether the total power of the signal to be processed is greater than the third threshold;
[0063] A04. If the amplitude maximum difference of the signal to be processed is less than or equal to the second threshold, determine whether the first 95% spectrum edge frequency of the signal to be processed is greater than a fourth threshold;
[0064] A05. If the total power of the signal to be processed is less than or equal to a third threshold or the first 95% spectrum edge frequency is less than or equal to a fourth threshold, determine that the signal type of the signal to be processed is a non-noise signal.
[0065] It can be understood that type discrimination is achieved by comparing signal characteristics such as variance, amplitude maximum difference, total power, 95% spectrum edge frequency with their corresponding first threshold Thr1, second threshold Thr2, third threshold Thr3, and fourth threshold Thr4. By way of example, the first threshold may be a variance threshold, the second threshold may be an amplitude maximum difference threshold, the third threshold may be a total power threshold, and the fourth threshold may be a 95% spectrum edge frequency threshold. The first step of discrimination can be performed through step A01. If the variance of the signal to be processed is greater than the first threshold, the part of data is discarded, that is, the signal to be processed with a variance greater than the first threshold is deleted, and there is no need to continue the subsequent discrimination. On the contrary, if the variance of the signal to be processed is less than or equal to the first threshold, the second step of discrimination can be performed, that is, step A02 is executed. The second step of judgment is performed through step A02, and it is continued to be judged whether the amplitude maximum difference of the signal to be processed whose variance is less than or equal to the first threshold is greater than the second threshold. If the amplitude maximum difference of the signal to be processed is greater than the second threshold, step A03 is executed; if the amplitude maximum difference of the signal to be processed is less than or equal to the second threshold, step A04 is executed, so as to decide which signal feature to focus on in the third step of judgment.
[0066] If the amplitude maximum difference of the signal to be processed is greater than the second threshold, step A03 is executed, and the third step of judgment is continued using the total power; if the amplitude maximum difference of the signal to be processed is less than or equal to the second threshold, step A04 is executed, and the third step of judgment is continued using the 95% spectrum edge frequency.
[0067] Wherein, if the total power of the signal to be processed is less than or equal to the third threshold or the first 95% spectrum edge frequency is less than or equal to the fourth threshold, the signal type of the signal to be processed is determined to be a non-noise signal; on the contrary, if the total power of the signal to be processed is greater than the third threshold or the first 95% spectrum edge frequency is greater than the fourth threshold, the part of the data is discarded, that is, the signal to be processed is deleted, and the deleted signal to be processed does not execute the subsequent steps and does not perform the subsequent steps. Wherein, it can be considered that the deleted signals to be processed are all noise signals.
[0068] 204. If the signal type of the signal to be processed is a non-noise signal, perform signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed;
[0069] It should be noted that step 204 and Figure 1 The contents of step 103 in the method shown are similar, and are not described here to avoid repetition. For details, please refer to Figure 1 The content of step 103 in the method shown.
[0070] In a feasible implementation, the signal correction rule at least includes a frequency correction rule, and the signal correction processing is performed on each of the to-be-processed signals according to the preset signal correction rule to obtain a corrected signal, including steps B01 to B02:
[0071] B01, performing wavelet decomposition on the signal to be processed to obtain a decomposition result, wherein the decomposition result is used to reflect the decomposition of the signal to be processed at each frequency;
[0072] Furthermore, after discarding and retaining the data of each signal to be processed, wavelet transform is performed on each retained independent signal to be processed, that is, the signal to be processed whose signal type is a non-noise signal.
[0073] Exemplarily, the selected wavelet basis function may be db6, the number of decomposition layers may be 8, and the frequency range corresponding to the detail signal and the approximate signal of each layer is calculated at the same time, and the calculation formula is:
[0074] freq=fs / numL; (6)
[0075] Among them, fs is the signal sampling frequency, numl is the current number of layers. For example, if the sampling frequency fs is 256Hz, the frequency range of the approximate signal of the first layer is 0-128Hz, and the frequency range of the detail signal of the first layer is 128-256Hz. Furthermore, the frequency range of the approximate signal of the second layer is 0-64Hz, and the frequency range of the detail signal of the second layer is 64-128Hz, and so on.
[0076] B02, performing frequency correction processing according to the decomposition result and a preset frequency correction rule to determine a corrected decomposition result;
[0077] Specifically, the frequency correction rule includes at least the correspondence between the decomposition layer number of the wavelet decomposition and the threshold value. The decomposition layer number is used to reflect the frequency range of the wavelet decomposition. The decomposition result includes a number of decomposition components and the decomposition layer numbers corresponding to the decomposition components. For example, after 8 layers of wavelet decomposition, the decomposition components of each layer can be obtained. For example, the decomposition components of the first layer include at least detail signals in the frequency range of 128-256Hz; the decomposition components of the second layer include at least detail signals in the frequency range of 64-128Hz... and the decomposition components of the eighth layer include at least approximate signals in the frequency range of 0-1Hz and detail signals in the frequency range of 1-2Hz. Finally, the decomposition result of the signal to be processed may include 9 decomposition components (8 detail signals and 1 approximate signal) and the decomposition layer numbers corresponding to each decomposition component.
[0078] Further, step B02 includes steps C01 to C02:
[0079] C01, extracting features of the decomposed components to determine frequency features of the decomposed components;
[0080] C02. using the decomposition level number corresponding to the decomposition component, and determining the target threshold value corresponding to the decomposition level number from the corresponding relationship between the decomposition level number and the threshold value;
[0081] It should be noted that after obtaining the decomposition components after wavelet decomposition and the frequency corresponding to each component, the target threshold corresponding to the decomposition layer number can be determined through the corresponding relationship between the decomposition layer number and the threshold, and then different thresholds are provided for the decomposition components of different layers to improve the accuracy of correction. For example, each component and corresponding frequency of the wavelet decomposition of a certain signal to be processed can be obtained, and the 95% SEF of the decomposition component after each wavelet decomposition can be calculated, and the threshold Thr(i,j) corresponding to each decomposition component can be calculated. The calculation formula is as follows:
[0082] Thr(i,j)=log(a*j*f+b); (7)
[0083] Among them, i represents different signals to be processed; j represents the threshold of the wavelet decomposition of the signal to be processed that is currently being calculated. For example, if it is the threshold of the first layer of wavelet decomposition, j is 1, if it is the second layer, j is 2, and so on; f represents the intermediate frequency band of the current wavelet decomposition component, for example, 0-128Hz, then f=64Hz; a and b are certain thresholds, which will be different according to different original signal sampling rates. a and b are both empirical thresholds, which are set in advance. Among them, the corresponding relationship between the number of decomposition layers and the threshold can refer to the calculation formula of the above threshold Thr(i,j).
[0084] C03. Determine a corrected decomposition result according to the frequency characteristics and the target threshold.
[0085] Specifically, the frequency feature includes the second 95% spectrum edge frequency, and step C03 may be: if the second 95% spectrum edge frequency of the decomposition component is greater than the target threshold, the decomposition component is deleted from the decomposition result to obtain a modified decomposition result.
[0086] That is, after obtaining the 95% SEF of each decomposition component and the corresponding threshold Thr(i, j), the 95% SEF of each decomposition component can be compared with the corresponding threshold Thr(i, j). If it is greater than the threshold Thr(i, j), the decomposition component is discarded, and if it is less than the threshold Thr(i, j), the decomposition component is retained. The retained decomposition component can be regarded as the modified decomposition result.
[0087] B03. Perform inverse wavelet decomposition transform according to the corrected decomposition result to obtain a corrected signal.
[0088] Further, the retained decomposition components are subjected to inverse wavelet transform, and the reconstructed signal is formed into a modified signal to be processed, that is, a modified signal. Then, each modified signal is subjected to inverse ICA transform to obtain the target EEG signal of the target user in the magnetic resonance environment after removing noise, that is, executing step 205 to obtain the target EEG signal.
[0089] It should be noted that the inverse transform of wavelet transform refers to the reverse transformation of the result of wavelet transform to restore the original signal. The inverse transform of wavelet transform is implemented by using the inverse transform matrix of wavelet transform to perform matrix multiplication on the result of wavelet transform to restore the original signal.
[0090] 205. Perform inverse transformation processing of independent component analysis on the corrected signal to obtain a target EEG signal of the target user.
[0091] It should be noted that the content of step 205 is the same as Figure 1 The contents of step 104 are similar to those shown in FIG. 1 , and are not described here in detail to avoid repetition. Figure 1 The content of step 104 is shown.
[0092] The present invention provides a method for extracting an electroencephalogram signal, the method comprising: obtaining a number of signals to be processed, the signals to be processed are obtained by performing independent component analysis on each electroencephalogram data of a target user collected by each data acquisition channel under a magnetic resonance environment; extracting features of the signals to be processed to obtain signal features of the signals to be processed; determining the signal type of the signals to be processed according to the signal features and the signal feature threshold, the signal type at least including a non-noise signal; if the signal type of the signals to be processed is a non-noise signal, performing signal correction processing on the signals to be processed according to a preset signal correction rule to obtain a corrected signal of the signals to be processed; performing inverse transformation processing of independent component analysis on the corrected signals to obtain a target electroencephalogram signal of the target user. Through the above-mentioned method, it is realized that the type of the signals to be processed is first judged by using the discrimination rules, the signal type of the signals to be processed is determined, the accuracy of judging the non-noise signals is improved, the situation of missing effective information is reduced, and the signals to be processed whose signal types are non-noise signals are further processed, the signals to be processed of the non-noise signals are corrected by using the signal correction rules, and the inverse transformation processing of the target electroencephalogram signal of the target user is obtained based on the corrected signals, and the accuracy of extracting the target electroencephalogram signal is further improved. In addition, multiple characteristic parameters are used to determine the components that need to be discarded after ICA, making the screening of ICA components more reliable. At the same time, the retained ICA components are further processed to further eliminate unnecessary interference. Not only can relevant processing continue after ICA analysis of the original data to retain as much effective EEG signal data as possible, but it is also more scientific and rigorous when judging whether the signal components after ICA analysis are noise, preventing erroneous elimination, thereby improving the accuracy of removing EEG noise measured in a magnetic resonance environment, and can effectively remove EEG noise measured in a magnetic resonance environment.
[0093] See also Figure 3 , Figure 3 FIG. 1 is a structural block diagram of a device for extracting EEG signals according to an embodiment of the present invention. Figure 3 The device shown comprises:
[0094] Data acquisition module 301: used to acquire a number of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment acquired by each data acquisition channel;
[0095] The type discrimination module 302 is used to discriminate the type of each of the signals to be processed according to a preset discrimination rule, and determine the signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal;
[0096] The signal correction module 303 is configured to perform signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed if the signal type of the signal to be processed is a non-noise signal;
[0097] Signal determination module 304: used for performing inverse transformation processing of independent component analysis according to the modified signal to obtain the target EEG signal of the target user.
[0098] It should be noted that Figure 3 The functions of each module in the device shown are Figure 1 The contents of each step in the method shown are similar, and are not described here to avoid repetition. For details, please refer to Figure 1 The content of each step in the method shown.
[0099] The present invention provides an electroencephalogram signal extraction device, which comprises: a data acquisition module: used for acquiring a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each electroencephalogram data of a target user collected by each data acquisition channel in a magnetic resonance environment; a type discrimination module: used for performing type discrimination on each signal to be processed according to a preset discrimination rule, and determining the signal type of each signal to be processed, wherein the signal type at least includes a non-noise signal; a signal correction module: used for performing signal correction processing on the signal to be processed according to a preset signal correction rule if the signal type of the signal to be processed is a non-noise signal, and obtaining a corrected signal of the signal to be processed; a signal determination module: used for performing inverse transformation processing of independent component analysis on the corrected signal, and obtaining a target electroencephalogram signal of the target user. Through the above-mentioned device, it is achieved to first use the discrimination rule to judge the type of the signal to be processed, determine the signal type of the signal to be processed, improve the accuracy of judging non-noise signals, reduce the situation of missing effective information, and further process the signal to be processed whose signal type is non-noise signal. The signal to be processed of non-noise signal is corrected by using the signal correction rule, and the inverse transformation processing of the target EEG signal of the target user is obtained based on the corrected signal, thereby further improving the accuracy of extracting the target EEG signal.
[0100] Figure 4 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 4As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement the above method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can implement the above method. Those skilled in the art can understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0101] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps: Figure 1 or Figure 2 The steps of the method are shown.
[0102] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor performs the following steps: Figure 1 or Figure 2 The steps of the method are shown.
[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0104] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0105] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for extracting electroencephalogram signals, characterized in that: The method comprises: Acquire a plurality of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment collected by each data collection channel; Performing type discrimination on each of the signals to be processed according to a preset discrimination rule to determine the signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal; If the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed; An inverse transformation process of independent component analysis is performed on the corrected signal to obtain a target EEG signal of the target user.
2. The method according to claim 1, characterized in that: The discrimination rule at least includes a preset signal feature threshold, and the type discrimination of each of the signals to be processed is performed according to the preset discrimination rule to determine the signal type of each of the signals to be processed, including: Extracting features of the signal to be processed to obtain signal features of the signal to be processed; The signal type of the signal to be processed is determined according to the signal feature and the signal feature threshold.
3. The method according to claim 2, characterized in that: The signal characteristics at least include variance, amplitude maximum difference, total power and 95% spectrum edge frequency, and the signal characteristic thresholds at least include a first threshold, a second threshold, a third threshold and a fourth threshold. Then, determining the signal type of the signal to be processed according to the signal characteristics and the signal characteristic thresholds includes: Determining whether the variance of the signal to be processed is greater than a first threshold; If the variance of the signal to be processed is less than or equal to the first threshold, determining whether the amplitude maximum difference of the signal to be processed is greater than the second threshold; If the amplitude maximum difference of the signal to be processed is greater than the second threshold, determining whether the total power of the signal to be processed is greater than a third threshold; If the amplitude maximum difference of the signal to be processed is less than or equal to the second threshold, determining whether the first 95% spectrum edge frequency of the signal to be processed is greater than a fourth threshold; If the total power of the signal to be processed is less than or equal to the third threshold or the first 95% spectrum edge frequency is less than or equal to the fourth threshold, it is determined that the signal type of the signal to be processed is a non-noise signal.
4. The method according to claim 1, characterized in that: The signal correction rule at least includes a frequency correction rule, and the signal correction processing is performed on each of the to-be-processed signals according to the preset signal correction rule to obtain a corrected signal, including: Performing wavelet decomposition on the signal to be processed to obtain a decomposition result, wherein the decomposition result is used to reflect the decomposition of the signal to be processed at each frequency; Perform frequency correction processing according to the decomposition result and a preset frequency correction rule to determine a corrected decomposition result; Perform inverse wavelet decomposition transform according to the corrected decomposition result to obtain a corrected signal.
5. The method according to claim 4, characterized in that: The frequency correction rule at least includes the corresponding relationship between the decomposition level of the wavelet decomposition and the threshold, the decomposition level is used to reflect the frequency range of the wavelet decomposition, and the decomposition result includes a number of decomposition components and the decomposition level numbers corresponding to the decomposition components; Then the frequency correction processing is performed according to the decomposition result and the preset frequency correction rule to determine the corrected decomposition result, including: Performing feature extraction on the decomposed components to determine frequency features of the decomposed components; Using the decomposition level number corresponding to the decomposition component, determine the target threshold value corresponding to the decomposition level number from the corresponding relationship between the decomposition level number and the threshold value; A modified decomposition result is determined according to the frequency feature and the target threshold.
6. The method according to claim 5, characterized in that: The step of determining a modified decomposition result according to the frequency feature and the target threshold comprises: If the second 95% spectrum edge frequency of the decomposition component is greater than the target threshold, the decomposition component is deleted from the decomposition result to obtain a modified decomposition result, and the frequency feature includes the second 95% spectrum edge frequency.
7. The method according to claim 1, characterized in that: The method further comprises: Acquire the EEG data of the target user collected by each data collection channel in the magnetic resonance environment; Performing signal filtering processing on the EEG data to obtain filtered EEG data; Independent component analysis is performed on the filtered EEG data to obtain a signal to be processed corresponding to the EEG data.
8. A device for extracting electroencephalogram signals, characterized in that: The device comprises: Data acquisition module: used to acquire a number of signals to be processed, wherein the signals to be processed are obtained by performing independent component analysis on each EEG data of the target user in the magnetic resonance environment collected by each data acquisition channel; A type discrimination module: used to discriminate the type of each of the signals to be processed according to a preset discrimination rule, and determine the signal type of each of the signals to be processed, wherein the signal type at least includes a non-noise signal; A signal correction module: used for, if the signal type of the signal to be processed is a non-noise signal, performing signal correction processing on the signal to be processed according to a preset signal correction rule to obtain a corrected signal of the signal to be processed; Signal determination module: used to perform inverse transformation processing of independent component analysis according to the corrected signal to obtain the target EEG signal of the target user.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Multi-level electroencephalogram signal analysis method, device and equipment based on space-time coding
CN119720110A
Multilevel electroencephalogram signal analysis method, device and equipment based on spatio-temporal coding
CN119720110B
