Method, device and equipment for processing electroencephalogram signals based on fractal dimension enhancement

Through tensor decomposition and self-attention matching technology, combined with smooth factor filtering of the optimization model and enhancement processing of high fractal dimension components, the problem of fractal dimension calculation accuracy and pattern extraction in EEG signal processing is solved, and the problem of Efficient quality assessment and pattern recognition of EEG signals.

CN118296306BActive Publication Date: 2024-09-06XIAOZHOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670608.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-06
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

Existing EEG signal processing methods based on fractal dimension have problems such as low accuracy of fractal dimension calculation, lack of high fractal dimension component recognition and enhancement mechanism, and single preprocessing process that cannot fully utilize time domain and frequency domain features.

Method used

Using tensor decomposition and self-attention matching technology, through time domain and frequency domain feature extraction and evaluation, combined with the optimization model to obtain smoothing factors for filtering, identify and enhance high fractal dimension components, reconstruct the EEG signal to improve signal quality and Pattern extraction capabilities.

Benefits of technology

It improves the accuracy of signal quality assessment of EEG signals and the ability to identify fractal patterns, enhances the ability to identify and amplify weak fractal patterns, and achieves a comprehensive description of multi-angle and multi-scale features of EEG data and the evaluation of signal quality. promote.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118296306B
    Figure CN118296306B
Patent Text Reader

Abstract

The present application provides an electroencephalogram (EEG) signal processing method, device and equipment based on fractal dimension enhancement. The method obtains multiple time-frequency components by preprocessing and decomposing the original electroencephalogram (EEG) signal; obtains the time domain characteristics, frequency domain characteristics and the number of modal components corresponding to the time-frequency components; calculates the time domain evaluation index according to the time domain characteristics, and calculates the frequency domain evaluation index according to the frequency domain characteristics and the number of modal components; inputs the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor for filtering the time-frequency components and calculating the fractal dimension values ​​of the filtered time-frequency components; determines the fractal dimension values ​​greater than the fractal dimension threshold as high fractal dimension components, performs preset gain modulation on the high fractal dimension components, and completes the enhancement processing of the high fractal dimension components; reconstructs the enhanced high fractal dimension components and the unenhanced fractal dimension values ​​to obtain the target measured EEG signal based on fractal dimension enhancement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of brain-computer interface technology, and in particular to a method, device and equipment for processing electroencephalogram (EEG) signals based on fractal dimension enhancement. Background Art

[0002] As an electrophysiological signal reflecting the brain's neural activity, EEG signals have broad application prospects in clinical medical diagnosis, brain-computer interface and other fields. However, factors such as the contact state between the scalp of the subject and the electrodes and skin of the EEG acquisition device, as well as environmental interference, can have an adverse effect on EEG signal acquisition, resulting in the collected EEG signals usually containing more noise and artifacts, which also contain some weak but extremely important pattern information. How to remove noise and artifacts from the original EEG signals and effectively amplify these potential pattern signals is the key to improving the quality of EEG data and the accuracy of analysis.

[0003] Traditional EEG signal preprocessing methods include filtering, artifact removal, independent component analysis, etc. Although they can remove interference noise to a certain extent, it is difficult to highlight the weak patterns contained in the signal. Fractal analysis, as a powerful nonlinear signal analysis tool, can be used to characterize and extract these weak fractal patterns. Studies have shown that there are rich fractal structures in EEG signals, and high fractal dimensions reflect more complex and irregular patterns in the signal. Using the fractal dimension index, EEG signals can be classified and encoded, thereby retaining important fractal pattern information while reducing noise.

[0004] The existing EEG signal processing methods based on fractal dimension have the following shortcomings: first, the accuracy of fractal dimension calculation is not high, and it is easily affected by noise and other interference; second, there is a lack of effective identification and enhancement mechanism for high fractal dimension components; third, the preprocessing process is relatively simple and cannot fully utilize multi-angle signal characteristics such as time domain and frequency domain. Therefore, it is necessary to propose a new EEG signal processing method to overcome the shortcomings of the existing technology. Summary of the invention

[0005] The embodiments of the present application provide an EEG signal processing method, device and computer equipment based on fractal dimension enhancement, which can solve the problem that the traditional method has a gap in the two links of pattern extraction and semantic interpretation, cannot establish a direct mapping relationship between the two, and is difficult to accurately interpret the brain's cognitive activities. The provided method can automatically mine potential spatiotemporal patterns and corresponding textual semantic descriptions from data through tensor decomposition and self-attention matching, without manual intervention, greatly improving efficiency.

[0006] In a first aspect, an embodiment of the present application provides an electroencephalogram signal processing method based on fractal dimension enhancement, the method comprising:

[0007] Acquire original EEG signals collected by an EEG acquisition device under multiple preset stimulation sources, preprocess the original EEG signals to obtain measured EEG signals, and decompose the measured EEG signals to obtain multiple time-frequency components;

[0008] Performing time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components to obtain the time domain features, frequency domain features and number of modal components corresponding to the time-frequency components;

[0009] According to the time domain features, calculating the time domain evaluation index corresponding to the time-frequency component, and according to the frequency domain features and the number of modal components, calculating the frequency domain evaluation index corresponding to the time-frequency component;

[0010] Inputting the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model;

[0011] Filtering the time-frequency component according to the smoothing factor, and calculating the fractal dimension value of the filtered time-frequency component;

[0012] Determining the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, performing preset gain modulation on the high fractal dimension component, and completing enhancement processing on the high fractal dimension component;

[0013] The enhanced high fractal dimension component and the remaining unenhanced fractal dimension values ​​are reconstructed to obtain a target measured EEG signal based on fractal dimension enhancement.

[0014] In a second aspect, the present application also provides an electroencephalogram signal processing device based on fractal dimension enhancement, comprising:

[0015] A signal acquisition module is used to acquire the original EEG signals acquired by the EEG acquisition device under multiple preset stimulation sources, pre-process the original EEG signals to obtain measured EEG signals, and decompose the measured EEG signals to obtain multiple time-frequency components;

[0016] A feature extraction module, used to perform time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components, and obtain the time domain features, frequency domain features and number of modal components corresponding to the time-frequency components;

[0017] An index calculation module, used to calculate the time domain evaluation index corresponding to the time-frequency component according to the time domain characteristics, and calculate the frequency domain evaluation index corresponding to the time-frequency component according to the frequency domain characteristics and the number of modal components;

[0018] A factor acquisition module, used to input the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model;

[0019] A filtering calculation module, used for filtering the time-frequency component according to the smoothing factor, and calculating the fractal dimension value of the filtered time-frequency component;

[0020] A gain modulation module, used for determining the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, performing preset gain modulation on the high fractal dimension component, and completing enhancement processing on the high fractal dimension component;

[0021] The signal reconstruction module is used to reconstruct the high fractal dimension component after enhancement processing and the remaining unenhanced fractal dimension values ​​to obtain a target measured EEG signal based on fractal dimension enhancement.

[0022] In a third aspect, the present application further provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method for processing electroencephalogram signals based on fractal dimension enhancement as described in the first aspect is implemented.

[0023] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the EEG signal processing method based on fractal dimension enhancement as described in the first aspect.

[0024] The method provided in the present application obtains the fractal dimension values ​​corresponding to the time-frequency components of the original EEG signal by performing time-domain and frequency-domain analysis and evaluation on the time-frequency separation corresponding to the original EEG signal, and then reconstructs the high components and the remaining components in the fractal dimension values ​​to complete the fractal dimension enhancement of the original EEG signal.

[0025] At the same time, this application has at least the following beneficial effects:

[0026] 1. Comprehensively extract the time domain and frequency domain features of EEG signals, construct signal quality evaluation indicators, and provide effective quality control for fractal dimension calculation.

[0027] EEG signal is a nonlinear and non-stationary physiological signal, which contains a lot of valuable time domain and frequency domain pattern information. The present invention extracts the characteristics of binary amplitude entropy, fluctuation change, zero crossing times in the time domain, and the characteristics of fundamental frequency energy change, fundamental frequency energy difference coefficient, fundamental frequency signal attenuation rate in the frequency domain, and also includes the number of modal components after EMD decomposition. It comprehensively describes the statistical characteristics and nonlinear characteristics of the signal from multiple angles and multi-scale levels. Then, these time domain and frequency domain features are fused to construct time domain evaluation indicators and frequency domain evaluation indicators to evaluate the overall quality and signal-to-noise ratio level of EEG signals. This comprehensive signal quality evaluation mechanism can, on the one hand, reflect the credibility of the collected EEG data, and on the other hand, lay the foundation for subsequent parameter optimization and fractal dimension calculation, ensuring the accuracy and reliability of fractal feature extraction from the source.

[0028] 2. Introduce filtering parameter optimization mechanism to improve the accuracy of fractal dimension calculation.

[0029] Filtering and denoising EEG signals are key pre-steps to improve signal quality and reduce computational errors. Traditional filtering algorithms are usually based on preset fixed parameters and cannot be dynamically adjusted according to actual signal characteristics, and have certain lags and suboptimalities. The present invention inputs time domain and frequency domain evaluation indicators into the optimization model, and the model outputs the optimal filtering smoothing factor that can eliminate noise and artifacts to the maximum extent, which serves as the parameter for subsequent Wiener filtering. This parameter optimization mechanism is combined with the previous signal quality evaluation link, and can dynamically adjust the filtering parameters according to the time-frequency statistical characteristics and nonlinear characteristics of the EEG data itself, thereby making the denoised signal more "refined", creating a good signal foundation for the subsequent extraction and calculation of fractal dimension features.

[0030] 3. Establish a high fractal dimension component recognition and enhancement mechanism to amplify the important fractal patterns of EEG signals.

[0031] The weak fractal patterns contained in EEG signals are usually mapped to high fractal dimension components, which often carry important brain function and cognitive information. However, due to the small energy, it is difficult to highlight these pattern characteristics by directly performing fractal analysis on the original signal. The present invention proposes to first decompose the preprocessed EEG signal into different time-frequency components by wavelet decomposition, then calculate the fractal dimension value of each component, and then identify the high fractal dimension components based on the preset fractal dimension threshold, and finally perform gain modulation on these identified components, thereby achieving effective amplification of the high fractal dimension patterns contained in the EEG signals. Compared with the prior art, this scheme breaks through the limitations of simple fractal dimension analysis, greatly enhances the ability to identify and amplify weak fractal patterns, and thus obtains richer pattern information.

[0032] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a flow chart of an electroencephalogram signal processing method based on fractal dimension enhancement according to an embodiment of the present application;

[0034] Figure 2 This is a schematic diagram of the structure of an electroencephalogram signal processing device based on fractal dimension enhancement shown in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of the structure of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0037] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0038] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0039] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0040] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0041] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0042] The technical solution of the embodiment of the present application is introduced below.

[0043] As an electrophysiological signal reflecting the brain's neural activity, EEG signals have broad application prospects in clinical medical diagnosis, brain-computer interface and other fields. However, factors such as the contact state between the scalp of the subject and the electrodes and skin of the EEG acquisition device, as well as environmental interference, can have an adverse effect on EEG signal acquisition, resulting in the collected EEG signals usually containing more noise and artifacts, which also contain some weak but extremely important pattern information. How to remove noise and artifacts from the original EEG signals and effectively amplify these potential pattern signals is the key to improving the quality of EEG data and the accuracy of analysis.

[0044] Traditional EEG signal preprocessing methods include filtering, artifact removal, independent component analysis, etc. Although they can remove interference noise to a certain extent, it is difficult to highlight the weak patterns contained in the signal. Fractal analysis, as a powerful nonlinear signal analysis tool, can be used to characterize and extract these weak fractal patterns. Studies have shown that there are rich fractal structures in EEG signals, and high fractal dimensions reflect more complex and irregular patterns in the signal. Using the fractal dimension index, EEG signals can be classified and encoded, thereby retaining important fractal pattern information while reducing noise.

[0045] The existing EEG signal processing methods based on fractal dimension have the following shortcomings: first, the accuracy of fractal dimension calculation is not high, and it is easily affected by noise and other interference; second, there is a lack of effective identification and enhancement mechanism for high fractal dimension components; third, the preprocessing process is relatively simple and cannot fully utilize multi-angle signal characteristics such as time domain and frequency domain. Therefore, it is necessary to propose a new EEG signal processing method to overcome the shortcomings of the existing technology.

[0046] To solve the above problems, please refer to Figure 1 , Figure 1The flowchart of a method for processing EEG signals based on fractal dimension enhancement provided in the embodiment of the present application is shown below. The method for processing EEG signals based on fractal dimension enhancement in the embodiment of the present application can be applied to computer devices, including but not limited to smart phones, laptops, tablet computers, desktop computers, physical servers, cloud servers and other devices. Figure 1 As shown, the EEG signal processing method based on fractal dimension enhancement of this embodiment includes steps S101 to S107, which are described in detail as follows:

[0047] Step S101, obtaining the original EEG signals collected by the EEG acquisition device under multiple preset stimulation sources, preprocessing the original EEG signals to obtain measured EEG signals, and decomposing the measured EEG signals to obtain multiple time-frequency components.

[0048] In this step, by using an EEG acquisition device to acquire the original EEG signals collected from the user as the subject under a variety of different preset stimulation sources, it is possible to obtain diverse original EEG signals and extract corresponding time-frequency information to analyze the EEG signals from the time domain and frequency domain dimensions, thereby improving the accuracy of the provided method.

[0049] In some embodiments, the preset stimulation sources include resting state stimulation sources and steady-state visual evoked stimulation sources; the acquisition of the original EEG signals collected by the EEG acquisition device under multiple preset stimulation sources includes: acquiring the original EEG signals corresponding to the spontaneous EEG activities of the user under the resting state stimulation source; acquiring the EEG acquisition device under the steady-state visual evoked stimulation source, changing the light source module of the EEG acquisition device, generating flash stimulation of different frequencies to the user wearing the EEG acquisition device, and acquiring the original EEG signals of the user under the flash stimulation.

[0050] Wearable dry electrode headband EEG acquisition equipment is used to obtain the original EEG data of users in resting state and steady-state visual evoked (SSVEP) conditions in daily life environment in real time as the input raw data of the technical solution. A dry electrode headband system that does not require the use of conductive paste is used. It has 21 built-in dry electrodes arranged according to the international 10-20 system. It is comfortable to wear and convenient for long-term real-time EEG data collection. The headband device uses wireless Bluetooth transmission, has a certain anti-interference ability, and has a built-in lithium battery, which can realize mobile acquisition in various outdoor and indoor environments. The sampling rate of the device is set to 1024Hz, and the quantization resolution is 24 bits to ensure good capture of EEG signals of various frequency components and accurate recording of small amplitude changes.

[0051] Data collection is divided into two modes: real-time collection of resting state data and real-time collection of SSVEP task state data. In the resting state data collection mode, after the user puts on the headband, he only needs to start it with one button through the mobile phone APP or voice assistant, and the system can collect the user's current EEG data in real time and record his spontaneous EEG activity. Since the data is collected in the daily life environment, the user can freely choose to sit still, walk or other active states, and the system will continue to record EEG data for 10 minutes. At the same time, the system will automatically collect 5 minutes of noise data of the headband device itself to prepare for the subsequent elimination of device noise.

[0052] In the SSVEP task-state data acquisition mode, the system will switch to the SSVEP stimulation state. Users can start the SSVEP mode through the APP or voice commands, and the system will call the built-in LED light source module to generate flash stimulation of different frequencies. Users only need to look at the mobile phone screen or the surrounding LED flash source, and the system will automatically recognize the user's gaze state and start to continuously record EEG data. Each stimulation frequency lasts for 120 seconds, covering the typical SSVEP frequency range of 8~30Hz, and each frequency is repeated 3 times to obtain sufficient data samples. For example, at a frequency of 8Hz, the LED light will flash at a frequency of 8Hz for 120 seconds, repeated 3 times; then switch to a frequency of 12Hz and repeat the above process; and so on until all SSVEP frequencies are collected.

[0053] During the real-time acquisition process, this application will take the following measures to eliminate interference noise: 1) The headband device uses active noise control technology to capture environmental noise through reference electrodes and perform adaptive noise reduction; 2) The device has a built-in motion sensor that can detect violent movements and automatically pause acquisition to avoid artifacts caused by movement; 3) Use an electrode impedance detection unit to monitor the contact status of each electrode with the scalp, and give a prompt when the contact is poor; 4) Use wireless digital transmission to avoid motion artifacts caused by wired cables.

[0054] All collected EEG raw data will be uploaded to the cloud server in real time and labeled according to unified naming and coding rules in the format of "user ID_condition number_timestamp.data file". For example, "U0012_C01_20230415103022.edf" represents the EEG data file with user ID U0012, condition number C01 (resting state), and collection time of 10:30:22 on April 15, 2023. Users can view and manage their EEG data through the mobile phone APP.

[0055] Through the above-mentioned portable real-time acquisition method, the present application can obtain the user's spontaneous EEG activity data in daily living environment, as well as the EEG response data under SSVEP visual stimulation conditions.

[0056] In some embodiments, the preprocessing of the original EEG signal includes: denoising, re-referencing, removing artifacts, etc. of the original EEG signal to obtain a high-quality measured EEG signal.

[0057] The first is the bandpass filter noise reduction link. The main frequency components of the EEG signal are concentrated in the range of 0.5~50Hz, so this application sets the cutoff frequency of the bandpass filter to 0.5Hz and 50Hz, and adopts the least squares linear phase FIR filter with an order of 300 to achieve extremely small passband ripple and extremely steep stopband attenuation. At the same time, this application also introduces active noise control (ANC) technology based on adaptive filters, which captures environmental noise through reference electrodes, and then uses adaptive algorithms (such as LMS algorithms) to adaptively estimate the interference noise and deduct it from the EEG signal, thereby effectively eliminating random noise interference from the surrounding environment.

[0058] For high-frequency noise, this application uses a notch filter to effectively suppress 50 / 60Hz power frequency interference and its harmonic components. The filter adopts an IIR structure with adjustable notch bandwidth, which can accurately "dig out" specific narrowband noise while retaining the integrity of other frequency components. The design parameters of the notch filter are: stopband center frequency 60Hz, 3dB bandwidth 2Hz, minimum stopband attenuation 40dB, and passband ripple not exceeding 0.1dB. Through the above-mentioned noise reduction filtering process, this application can effectively eliminate high-frequency and low-frequency noise in EEG data, laying the foundation for subsequent preprocessing.

[0059] Next is the baseline correction step to eliminate the DC component and slow-changing component in the data. This application uses wavelet small-scale components as baseline estimation. The specific steps are: 1) wavelet decomposition of the original data, with 5 decomposition layers; 2) taking the minimum scale component of the wavelet decomposition as the baseline estimate; 3) subtracting the estimated baseline from the original data to obtain the baseline-corrected data. This wavelet-based baseline estimation method can effectively track and eliminate slowly changing trend items without affecting the actual EEG amplitude.

[0060] The electrode re-reference link uses the generalized spherical Strange convolution (GSS) algorithm as a reference-free technology. Unlike traditional single-electrode or average reference, the reference-free technology does not introduce any reference electrode, but directly records the potential difference between electrodes, thereby retaining the topological structure of the original signal. The GSS algorithm uses the Strange convolution kernel to perform spatial deconvolution on the electrode array, thereby separating the original mixed potential difference components into a set of independent components with unchanged positions, and performs artifact removal processing based on the spatial filter characteristics to obtain a more accurate and interpretable source distribution.

[0061] The last part is the automatic artifact removal link. This application combines multiple algorithms such as independent component analysis (ICA), regression correction analysis (RCA) and signal space projection (SSP). First, ICA is used to decompose the preprocessed EEG data into a set of statistically unrelated independent components, and the artifact components related to electrooculography, electromyography, etc. are identified through reference electrodes. Then the RCA algorithm is used to separate and fit these artifact components and remove them from the total component. For instantaneous artifacts such as head movement, the SSP algorithm is used to eliminate them from the total signal by constructing an artifact shadow space projection matrix. The above-mentioned various artifact removal algorithms can run automatically without manual intervention, thereby achieving effective removal of various artifacts such as electrooculography, electromyography, and motion artifacts.

[0062] The parameters of the preprocessing process are set as follows: the FIR filter cutoff frequency is 0.5Hz and 50Hz, and the order is 300; the ANC adaptive filter adopts the normalized LMS algorithm with a step size of 0.1; the notch filter stopband center frequency is 60Hz, the 3dB bandwidth is 2Hz, and the minimum stopband attenuation is 40dB; the wavelet decomposition layer number is 5, and Daubechies wavelet is used; the GSS re-reference algorithm order is 80, and the regularization coefficient is 0.05; the ICA algorithm uses Infomax, and the truncation threshold is 20; the RCA model order is 4th order; the SSP pseudo-shadow space order is 3rd order.

[0063] Through this series of automated preprocessing steps, the present application can efficiently remove various noises and artifacts from the original EEG data and obtain high-quality and reliable measured EEG signals.

[0064] In some embodiments, decomposing the measured EEG signal includes: decomposing the measured EEG signal according to a wavelet decomposition method.

[0065] Wavelet decomposition is a time-frequency analysis tool that can obtain the frequency domain information of the signal while maintaining the time domain waveform characteristics. It is widely used in the field of biomedical signal processing. The basic idea of ​​wavelet decomposition is to project the signal onto a set of hierarchical wavelet basis functions to obtain the corresponding wavelet coefficients, which reflect the amplitude change characteristics of the signal at the corresponding time and scale. Wavelet decomposition can be used to decompose the EEG signal into different time-frequency components, each component corresponding to a specific frequency sub-band, thereby achieving the characterization of the signal at various scales. In this technical solution, the present application uses discrete wavelet transform (DWT) to perform wavelet decomposition on the preprocessed measured EEG signal. The discrete wavelet transform process can be mathematically expressed as follows: Let f(t) be the input signal and Ψ(t) be the wavelet basis function. Then the wavelet transform can be expressed as: W(a,b)=∫f(t)Ψ*((tb) / a)dt, where a is the scale factor, which controls the extension of the wavelet basis function; b is the translation factor, which controls the position of the wavelet basis on the time axis; Ψ is the conjugate complex number of the wavelet basis function. The discrete wavelet transform uses binary sampling, that is, the scale factor and the translation factor both change in powers of 2, that is, a=2^j, b=k2^j. After discretizing the above formula, we get: W(j,k)=∑f(n)Ψ*(2^(-j)nk), where j is the scale index, which controls the scale of the wavelet basis function; k is the displacement index, which controls the displacement of the wavelet basis on the time axis. By changing the values ​​of j and k, we can obtain the wavelet coefficients W(j,k) of the signal at different times and scales.

[0066] In actual operation, this application selects Daubechies wavelet as the wavelet basis for decomposition, which has the characteristics of a compact support set and good centralization in the time-frequency domain. The preprocessed EEG signal x(n) is decomposed by N layers of wavelet to obtain N+1 components, including a low-frequency approximate component A_N and N detail components D_1, D_2,..., D_N. The specific decomposition process is as follows: 1) The input signal x(n) is passed through a low-pass filter and a high-pass filter to obtain the low-frequency approximate component coefficient A_1 and the high-frequency detail component coefficient D_1. The filter design utilizes the properties of Daubechies wavelet. The coefficient of the low-pass filter is: h_k=(-1)^(1-k) / sqrt(2)Ψ((2k+1-N) / 2), and the coefficient of the high-pass filter is: g_k=(-1)^kh_(N-1-k); 2) The low-frequency approximate component A_1 is further subjected to a wavelet decomposition to obtain A_2 and D_2; 3) The above process is repeated until N layers of decomposition are completed to obtain the final N detail components D_1, D_2,..., D_N and a low-frequency approximate component A_N. Through the above multi-layer wavelet decomposition, the present application can decompose the EEG signal into different time-frequency components. Among them, the low-frequency approximate component A_N reflects the low-frequency trend of the signal; and the detail component D_j (j=1,2,...,N) reflects the high-frequency oscillation behavior of the signal in the corresponding frequency subband. Each detail component D_j corresponds to a specific frequency subband, whose center frequency can be determined by the wavelet scale factor a_j, and the bandwidth is determined by the selected wavelet basis function. For example, for an EEG signal with a sampling frequency of 1024Hz, assuming that this application performs a 5-layer wavelet decomposition and uses the Daubechies 4 wavelet, the frequency ranges corresponding to each component are approximately: D_1: 256-512Hz, D_2: 128-256Hz, D_3: 64-128Hz, D_4: 32-64Hz, D_5: 16-32Hz, A_5: 0-16Hz.

[0067] It can be seen that this application divides the original EEG signal into frequency components through wavelet decomposition, and each component reflects the oscillation characteristics of the signal in the corresponding frequency range. It should be noted that in the actual operation process, the number of layers N of wavelet decomposition and the type of wavelet basis function selected will affect the final decomposition result. Generally speaking, the more layers, the higher the time-frequency resolution, but it will also increase the computational complexity. Different wavelet basis functions have different concentrations in the time domain and frequency domain, so it is necessary to select the appropriate number of decomposition layers and wavelet basis types for specific application scenarios. In this technical solution, this application recommends using a 5-layer wavelet decomposition and selecting Daubechies 4 wavelet as the basis function to achieve a reasonable balance between time-frequency resolution and computational complexity.

[0068] Step S102, performing time domain feature extraction, frequency domain feature extraction and modal decomposition on each time-frequency component to obtain the time domain features, frequency domain features and number of modal components corresponding to the time-frequency component.

[0069] In this step, by performing time domain feature extraction, frequency domain feature extraction and modal decomposition on each time-frequency component, basic data for time domain analysis and frequency domain analysis can be obtained, so as to enable a comprehensive evaluation of the original EEG signal in the time domain and frequency domain.

[0070] Step S103, calculating the time domain evaluation index corresponding to the time-frequency component according to the time domain characteristics, and calculating the frequency domain evaluation index corresponding to the time-frequency component according to the frequency domain characteristics and the number of modal components.

[0071] In this step, by calculating the time domain features obtained in step S102, the time domain evaluation index can be obtained, and according to the frequency domain features and the number of modal components, the frequency domain evaluation index corresponding to the time-frequency component of the original signal can be obtained, thereby completing the signal quality evaluation of the original EEG signal.

[0072] In some embodiments, the time-domain feature extraction, frequency-domain feature extraction and modal decomposition are performed on each of the time-frequency components to obtain the time-domain features, frequency-domain features and number of modal components corresponding to the time-frequency components, including: obtaining the binary amplitude entropy, fluctuation change features and number of zero-crossings of the time-frequency components, the binary amplitude entropy, the fluctuation change features and the number of zero-crossings constituting the time-domain features; performing fast Fourier transform on the time-frequency components to obtain the power spectrum density corresponding to the time-frequency components; obtaining the fundamental frequency energy change, fundamental frequency energy difference coefficient and fundamental frequency signal attenuation rate corresponding to the time-frequency components according to the power spectrum density, the fundamental frequency energy change, the fundamental frequency energy difference coefficient and the fundamental frequency signal attenuation rate constituting the frequency domain features; performing adaptive decomposition on a plurality of the time-frequency components to obtain a plurality of internal modal functions, and taking the number of the internal modal functions as the number of modal components.

[0073] For time domain feature extraction, the present application first calculates the binary amplitude entropy of each time-frequency component. Binary amplitude entropy can effectively reflect the degree of irregularity of the signal amplitude distribution and is an important indicator for quantifying signal complexity. The calculation process is to first construct a binary distribution probability matrix p(x_i, x_j) of the signal amplitude value, that is, to count the probability p(x_i, x_j) of each pair of amplitude values ​​x_i and x_j appearing at the same time. Then, according to each probability value and its logarithm in the probability matrix, the final binary amplitude entropy BinAmpEn=∑∑p(x_i,x_j)log(p(x_i,x_j)) is calculated. For a completely regular and highly repetitive signal, its amplitude value distribution will be very concentrated, so only a few values ​​in the probability matrix will occupy a high probability, and most of the other probability values ​​are close to 0, at which time the binary amplitude entropy value will be low. For highly irregular and chaotic signals, since the amplitude distribution will be more dispersed and the repeatability will be poor, the probability values ​​in the probability matrix will be more evenly distributed, and the binary amplitude entropy value will be higher. Therefore, through the binary amplitude entropy index, this application can effectively quantify and distinguish the regular components and random chaotic components in EEG signals.

[0074] Next, the present application extracts the fluctuation change characteristics of each time-frequency component to describe the smoothness of the signal amplitude change. It is defined as the standard deviation of the difference between each amplitude sample value and the mean of the entire time series, that is, Wave_var=sqrt((1 / N)∑(x(n)-μ)^2), where x(n) is the nth amplitude sample value, μ is the mean of the entire time series, and N is the total number of sample points. The fluctuation change value reflects the degree of dispersion of the signal amplitude around the mean. When the amplitude value remains basically unchanged or changes slowly, the fluctuation change value will be small, indicating that the signal tends to be smooth and without fluctuations; on the contrary, if the amplitude value fluctuates violently, then the fluctuation change value will be large, indicating that the signal has violent irregular motion. For EEG signals, a higher fluctuation change value may mean that the synchronous discharge behavior of the neuronal population is more disordered and random.

[0075] Finally, the present application calculates the number of zero crossings of each time-frequency component, that is, the number of times the time-domain waveform crosses the zero point on the time axis. The number of zero crossings can reflect the discontinuity and discreteness of the signal, and its calculation formula is ZeroCros=∑|sign(x(n))-sign(x(n-1))| / 2, where sign(x) is the sign function of x, when x>0, sign(x)=1; when x<0, sign(x)=-1; when x=0, sign(x)=0. By comparing the sign changes of two adjacent amplitude sample points, each time a sign change occurs (from positive to negative or from negative to positive), the zero crossing count is accumulated. The more zero crossings there are, the more frequent the signal jumps on the time axis, thus showing a higher discontinuous discrete characteristic. On the contrary, a continuous and smooth signal will have fewer zero crossings.

[0076] In terms of frequency domain feature extraction, the present application first needs to perform a fast Fourier transform (FFT) on each time-frequency component, converting it from the time domain to the frequency domain, so as to obtain the energy distribution of the signal on each frequency component, that is, the power spectrum density. Specifically, the present application transforms the time domain signal x(n) through FFT to obtain the corresponding frequency domain signal X(k), where k is the frequency index, and the square of the modulus value of X(k) |X(k)|^2 reflects the energy intensity of x(n) on the corresponding frequency component. After obtaining the power spectrum density, the present application can extract some characteristic parameters that can effectively describe the frequency domain characteristics of the signal.

[0077] First, the application calculates the fundamental frequency energy change of each time-frequency component. The so-called fundamental frequency refers to the frequency component corresponding to the main peak on the power spectrum density curve of the component, which reflects the dominant frequency component of the signal. The fundamental frequency energy change is used to measure the percentage change of the energy of the dominant frequency component compared to the average energy level of the entire component, and its formula is FundEngChg=(Ef-Eavg) / Eavg*100%. Among them, Ef is the energy value at the fundamental frequency, that is, it corresponds to the peak point energy on the power spectrum density curve; Eavg is the average energy level of the component in the entire frequency band. The magnitude of the fundamental frequency energy change reflects the degree of deviation of the energy of the dominant frequency component from the average level. If the change is large and positive, it means that the oscillation behavior of the signal at the dominant frequency is more significant; conversely, if the change is small or negative, it means that the dominant frequency component of the signal is not prominent.

[0078] Next, the application extracts the fundamental frequency energy difference coefficient. This indicator reflects the proportion of fundamental frequency energy to the total energy of the time-frequency component, and is used to measure the energy distribution ratio of the dominant frequency component in the entire signal. The calculation formula is FundEngRatio=Ef / Etotal, where Etotal is the total energy of the component in the entire frequency band. The larger the value of the fundamental frequency energy difference coefficient, the greater the energy share of the dominant frequency component, the more concentrated the entire signal is, and the stronger the periodicity; conversely, a smaller difference coefficient means that the signal distribution in the frequency domain is more dispersed and the periodicity is weaker.

[0079] Finally, the present application calculates the fundamental frequency signal attenuation rate of each component, that is, the degree of attenuation of the fundamental frequency amplitude over time. This indicator can effectively reflect the stability and duration characteristics of the signal at the dominant frequency. The specific calculation method is to first filter the fundamental frequency signal component from the time domain waveform of the component, then fit the exponential attenuation model to the fundamental frequency signal, and extract its attenuation coefficient as the fundamental frequency attenuation rate of the component. Generally speaking, the larger the fundamental frequency attenuation rate, the faster the amplitude of the dominant frequency component decays over time, and the shorter the duration of the signal; conversely, a smaller fundamental frequency attenuation rate means that the signal exhibits better stability and persistence. Through this indicator, the present application can quantify and evaluate the time duration characteristics of each dominant frequency component in the EEG signal.

[0080] Adaptive modal decomposition (EMD) can decompose the signal into a finite number of components with different time scale characteristics, namely modal components, according to the characteristics of the signal itself. Unlike traditional Fourier analysis and wavelet analysis, EMD decomposition does not require pre-setting of basis functions, but adaptively constructs internal modal functions (IMFs) based on the extreme points and zero crossings of the signal itself, so that each decomposed modal component has physical meaning and reflects the intrinsic oscillation mode of the signal on the corresponding time scale.

[0081] Specifically, the EMD decomposition process includes the following main steps: first, connect the extreme points of the original signal to obtain the upper and lower envelopes; then calculate the mean of the two envelopes, and subtract the mean line from the signal to obtain the first IMF component; then repeat the above steps for the remaining signal until a certain termination condition is met, and the remaining signal is the last residual component. In this way, the application decomposes the original signal into a series of IMF components and a residual component. It is worth noting that in the EMD decomposition process, each IMF component must meet the narrowband requirement and the involution condition, that is, the component must be a single amplitude function on the entire data sequence, and the distance between its envelopes must approach zero. Only when these conditions are met can the physical rationality of the decomposition be guaranteed.

[0082] In the EMD decomposition process, different signals have different numbers of IMFs due to their inherent characteristics. Generally speaking, the more complex the distribution and the stronger the non-stationarity of the signal, the more IMFs it has. On the contrary, a simpler and more stable signal only needs fewer IMF components to be better characterized. Therefore, the number of IMFs obtained by EMD decomposition reflects the complexity of the signal distribution in the frequency domain to a certain extent.

[0083] For the technical solution of this application, this application will perform EMD decomposition on each time-frequency component obtained in the above steps. The specific operation is to first construct an envelope, and then iterate and solve according to the above steps until all IMF components and residual components are decomposed. While decomposing, this application will also record the number of IMFs corresponding to each time-frequency component. For example, for a certain time-frequency component, assuming that the EMD decomposition obtains 5 IMFs and 1 residual component, then this application records the number of IMFs of this component as 5.

[0084] Exemplarily, the time domain evaluation index corresponding to the time-frequency component is calculated according to the time domain characteristics, and the frequency domain evaluation index corresponding to the time-frequency component is calculated according to the frequency domain characteristics and the number of modal components, including: normalizing the binary amplitude entropy, fluctuation change characteristics and number of zero crossings; constructing the time domain evaluation index according to the normalized binary amplitude entropy, fluctuation change characteristics and number of zero crossings; normalizing the fundamental frequency energy change, the fundamental frequency energy difference coefficient and the fundamental frequency signal attenuation rate; constructing the frequency domain evaluation index according to the normalized fundamental frequency energy change, the fundamental frequency energy difference coefficient and the fundamental frequency signal attenuation rate and the number of modal components.

[0085] The calculation of time domain evaluation index is mainly based on the three time domain features extracted in the above steps: binary amplitude entropy (BinAmpEn), fluctuation change (Wave_var) and zero crossing times (ZeroCros). This application first normalizes these three features so that their value ranges are uniformly mapped to the interval [0,1]. The formulas are as follows: BinAmpEn_norm=(BinAmpEn-BinAmpEn_min) / (BinAmpEn_max-BinAmpEn_min), Wave_var_norm=(Wave_var-Wave_var_min) / (Wave_var_max-Wave_var_min), ZeroCros_norm=(ZeroCros-ZeroCros_min) / (ZeroCros_max-ZeroCros_min), where min and max are the minimum and maximum values ​​of the corresponding features in the entire time-frequency component set, respectively. Then, this application constructs the time domain evaluation index TDI (TimeDomain Index) based on these normalized eigenvalues, and the formula is: TDI=w1BinAmpEn_norm+w2Wave_var_norm+w3*(1-ZeroCros_norm), where w1, w2, and w3 are the weight coefficients of the corresponding features, and these coefficients can be optimized and solved through training sample data and machine learning algorithms. In the above formula, the purpose of (1-ZeroCros_norm) is to make the number of zero crossings negatively correlated with the evaluation index, that is, the more zero crossings, the lower the evaluation index. The value range of TDI is [0,1]. The closer the value is to 1, the higher the quality of the signal in the time domain, and the more regular, smooth, and continuous the signal is.

[0086] The calculation of frequency domain evaluation index requires the use of three frequency domain features extracted in the above steps: fundamental frequency energy change (FundEngChg), fundamental frequency energy difference coefficient (FundEngRatio) and fundamental frequency signal decay rate (FundDecay), as well as the number of EMD modal components (IMFNum) of each time-frequency component. This application first normalizes the fundamental frequency energy change and fundamental frequency energy difference coefficient so that their value range is mapped to [0,1]. The formula is as follows: FundEngChg_norm=FundEngChg / max(abs(FundEngChg)), FundEngRatio_norm=FundEngRatio / max(FundEngRatio), where max(abs(FundEngChg)) and max(FundEngRatio) are the maximum absolute value and maximum value of the corresponding features in the entire time-frequency component set, respectively. Next, this application maps the fundamental signal attenuation rate FundDecay to the interval [0,1], and the formula is: FundDecay_norm=1-exp(-FundDecay). This exponential mapping can make smaller FundDecay values ​​correspond to lower FundDecay_norm values, and vice versa, thereby reflecting that the smaller the attenuation rate (that is, the more stable and persistent the signal is), the higher the corresponding evaluation score. Finally, this application constructs the frequency domain evaluation index FDI (Frequency Domain Index) based on the above three normalized features and the number of EMD modal components IMFNum, and the formula is: FDI=w4FundEngChg_norm+w5FundEngRatio_norm+w6FundDecay_norm+w7(1-IMFNum_norm), where w4, w5, w6, and w7 are the weight coefficients of the corresponding features, and IMFNum_norm is the normalized value of the number of EMD modal components. In the above formula, the purpose of (1-IMFNum_norm) is to make IMFNum negatively correlated with the evaluation index, that is, the more modal components there are (that is, the more complex the frequency domain distribution is), the lower the evaluation index is. The value range of FDI is also [0,1]. The closer the value is to 1, the higher the quality of the signal in the frequency domain, that is, the more significant the dominant frequency component is, the more concentrated the energy distribution is, and the more gentle and stable the attenuation characteristics are.

[0087] Finally, this application weightedly merges the time domain evaluation index TDI and the frequency domain evaluation index FDI to obtain the comprehensive evaluation index SI (Signal Index), the formula is: SI = α * TDI + (1-α) * FDI, where α is the weight coefficient of the time domain and frequency domain indicators, which can be adjusted according to the actual application scenario. The closer the SI value is to 1, the higher the overall quality of the time-frequency component, the more regular, smoother and more stable the signal is, and the higher the accuracy of the fractal dimension calculation. On the contrary, if the SI value is low, it means that there are more noise and artifact components in the component, and the subsequent fractal dimension results may be greatly affected.

[0088] Through the construction of the above-mentioned dual evaluation indicators in the time domain and frequency domain, the present application can comprehensively and accurately evaluate the signal quality of each time-frequency component, thereby providing important decision-making basis for subsequent parameter optimization and fractal dimension analysis. For example, for time-frequency components with poor quality, the present application can adjust the corresponding smoothing factor and perform more thorough denoising filtering on them, thereby improving their quality scores and ensuring the accuracy of fractal dimension calculations. For components that already have high quality, the present application can appropriately reduce the filtering intensity to avoid the loss of useful information due to excessive filtering.

[0089] Step S104: input the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model.

[0090] In this step, the time domain evaluation index and the frequency domain evaluation index can be combined based on the preset optimization model. The optimization model can be a pre-trained machine learning model. The output goal of the optimization model is to give an optimized smoothing factor λ to guide the subsequent filtering and denoising operations. The so-called smoothing factor refers to the trade-off coefficient used to balance the retention of the intrinsic components of the signal and the removal of the noise components. Its numerical value directly determines the filtering strength. Generally speaking, the larger the smoothing factor, the stronger the filtering effect, but it may also cause the loss of useful signal components; conversely, the smaller the smoothing factor, the weaker the filtering effect, but it helps to retain more signal detail information.

[0091] In some embodiments, the optimization model is a support vector machine regression model; the time domain evaluation index and the frequency domain evaluation index are input into a preset optimization model to obtain a smoothing factor output by the optimization model, including: constructing a feature vector based on the time domain evaluation index and the frequency domain evaluation index, inputting the feature vector into the support vector machine regression model, and obtaining the smoothing factor.

[0092] The present application first uses the time domain evaluation index TDI and the frequency domain evaluation index FDI calculated in the above steps as input features, and adopts a support vector machine (SVM) regression model based on the kernel method, whose input feature vector is X=[TDI, FDI], and the output is a continuous smoothing factor λ. In the model training stage, the present application uses a batch of standard EEG data samples, manually marks the optimal smoothing factor λ of each sample, and forms a training sample set with the corresponding TDI and FDI feature values. Then, based on these training samples, the present application uses the SVM regression algorithm to determine the optimal hyperplane equation coefficient w and bias term b, so as to learn the mapping relationship between the input feature X and the output smoothing factor λ, that is: λ=w^T*X+b.

[0093] In practical applications, the present application inputs the TDI and FDI values ​​corresponding to each time-frequency component into the above-trained SVM regression model, and the model can automatically give the optimal smoothing factor λ of the component based on the learned mapping relationship. This adaptive optimization method based on machine learning can make full use of the time domain and frequency domain quality feature information of the signal and dynamically adjust the filtering parameters, thereby achieving a better denoising effect than fixed parameter filtering.

[0094] It is worth noting that in the training process of the SVM regression model, the present application adopts the polynomial kernel function K(x_i,x_j)=(x_i^T*x_j+1)^d, where d is the order of the kernel function. The polynomial kernel function can not only handle nonlinear mapping problems well, but also show high performance in computational efficiency. At the same time, the present application also optimizes the regularization coefficient C of the model to balance empirical risk and structural risk and improve the generalization ability of the model. In addition, the present application also introduces a cross-validation mechanism, divides the training sample set into a training set and a validation set, and dynamically adjusts the model parameters during the training process to prevent the occurrence of overfitting.

[0095] Through the above series of optimization measures, the SVM regression model obtained in this application not only has strong nonlinear mapping ability, but also has good robustness and generalization performance, and can automatically learn the optimal smoothing factor λ from the time domain and frequency domain evaluation indicators. Experimental results show that compared with fixed parameter filtering, the use of this adaptive optimization method can improve the denoising effect of the signal by 15%-25%, effectively reduce the noise and artifact residue, and create favorable conditions for subsequent fractal dimension analysis.

[0096] It should be noted that the output smoothing factor λ of the above optimization model is only for a single time-frequency component. Therefore, in practical applications, this application needs to input the TDI and FDI values ​​of each time-frequency component respectively to obtain the corresponding λ value, and then input these λ values ​​into the Wiener filter of the above steps to achieve component-level adaptive denoising. In addition, the value range of the smoothing factor λ is (0,1). When it is close to 0, it means that almost no filtering is performed, and when it is close to 1, it means that the signal is strongly smoothed. This application usually performs a certain compression or expansion transformation on the λ value output by the model to adapt to the filtering requirements in different application scenarios. For example, for components with lower quality scores, this application can perform exponential expansion on their λ values ​​to obtain stronger denoising capabilities; and for components with higher quality scores, this application can perform logarithmic compression on their λ values ​​to retain valuable signal details as much as possible.

[0097] By introducing the adaptive filtering parameter optimization link, this application seamlessly connects the filtering operation with the signal quality assessment, realizes dynamic adjustment and full-process adaptation, thereby greatly improving the pertinence and effectiveness of denoising.

[0098] Step S105 , filtering the time-frequency component according to the smoothing factor, and calculating the fractal dimension value of the filtered time-frequency component.

[0099] In this step, the smoothing factor obtained by optimization in step S104 is used to perform denoising filtering on each time-frequency component through a filtering algorithm to obtain the filtered and denoised time-frequency component, and its fractal dimension value is calculated to prepare for subsequent component identification and enhancement.

[0100] In some embodiments, filtering the time-frequency component according to the smoothing factor includes: inputting the time-frequency component and the corresponding smoothing factor into a Wiener filter, and the Wiener filter adaptively filtering the time-frequency component according to the smoothing factor.

[0101] Wiener filtering is used here, which is a linear optimization estimation filtering algorithm based on the minimum mean square error criterion. It uses the known statistical characteristics of the signal to obtain the optimal estimated filter coefficient by solving the minimum value of the cost function. In this technical solution, the application uses a stationary random process model to approximate the time-frequency component signal and sets the following objective function: min E{[x(n)-x̂(n)]^2}, where x(n) is the actual time-frequency component signal and x̂(n) is the estimated signal. By minimizing the above formula, the coefficient equation of the Wiener filter can be obtained:

[0102] ∑h(k)Rxx(nk)=Rxy(n).

[0103] Where h(k) is the filter coefficient, Rxx(n) is the signal autocorrelation function, and Rxy(n) is the cross-correlation function between the signal and the expected output. The above equation is the famous Wiener-Hoff equation, and its solution is the optimal filter coefficient sequence that minimizes the mean square error E{[x(n)-x̂(n)]^2}.

[0104] In actual calculations, the present application usually uses an autoregressive (AR) model to estimate the autocorrelation function Rxx(n) of the time-frequency component signal, and uses the Levinson-Durbin algorithm to effectively solve the Wiener-Hoff equation to obtain the coefficients of the Wiener filter. Specifically, for a time-frequency component x(n), the present application first uses the linear predictive coding (LPC) method to estimate an M-order AR model coefficient a=[1,a1,a2,...,aM] and the prediction error energy σ^2 based on the first M sample values ​​of the component. Then, the present application constructs the estimated values ​​of the autocorrelation function Rxx(n) and the cross-correlation function Rxy(n) of the component:

[0105] R̂xx(n)=σ^2ρ^|n|.

[0106] ρ=∑a_i(a_i / a_0) R̂xy(n)=0.

[0107] n<0 =σ^2.

[0108] n=0=σ^2∑a_iρ^(ni), n>0.

[0109] Substituting the above estimated value into the Wiener-Hoff equation and solving it using the Levinson-Durbin recursive algorithm, the present application can obtain the coefficient sequence ĥ=[ĥ_0,ĥ_1,...,ĥ_M] of the Wiener filter. Among them, ĥ_0 is used as the gain factor of the time-frequency component, and it needs to be scaled and adjusted according to the smoothing factor λ obtained in the above steps in the subsequent steps.

[0110] The output of the Wiener filter is the filter estimation sequence of the time-frequency component, and the formula is: x̂(n)=∑ĥ(k)x(nk). Among them, the scaling adjustment formula of the gain factor ĥ_0 is: ĥ'_0=λĥ_0+(1-λ). Substituting the adjusted gain factor into the above formula, the present application can obtain the final filter output of the time-frequency component. It can be seen that when the smoothing factor λ is close to 1, ĥ'_0 will also approach 1. At this time, the filter output x̂(n) will mainly consist of the smoothing component of the original signal x(n), and the high-frequency noise is effectively suppressed; conversely, when λ is close to 0, ĥ'_0 will also approach the original ĥ_0 value. At this time, the filter output x̂(n) will retain more high-frequency detail components. Therefore, by adjusting the size of the smoothing factor λ, the present application can flexibly control the strength of the filter and strike a balance between noise suppression and detail retention.

[0111] It should be noted that in the actual calculation process, the present application will perform the above-mentioned Wiener filtering operation on each time-frequency component. That is to say, for the N time-frequency components x_1(n), x_2(n), ..., x_N(n) obtained in the above steps, the present application first uses the optimization model of the above steps to output the corresponding optimal smoothing factors λ_1, λ_2, ..., λ_N for them respectively. Then, these smoothing factors are substituted into the Wiener filter for component-level adaptive filtering, thereby obtaining N corresponding filtering outputs x̂_1(n), x̂_2(n), ..., x̂_N(n). Not only the noise of these filtered time-frequency components is greatly reduced, but also their respective intrinsic characteristics are well preserved, which is ready for the subsequent fractal dimension analysis.

[0112] It can be seen that through the above-mentioned adaptive Wiener filtering process, the present application successfully integrates the smoothing factor λ optimized in the above steps into the classic Wiener filtering algorithm, and realizes the dynamic adjustment of the filtering strength. For time-frequency components with low quality scores and more noise, the corresponding λ value will be larger, and the gain factor ĥ'_0 of the filter will be close to 1, thereby producing a strong smoothing effect and effectively suppressing high-frequency noise; while for components with high quality scores and better signal-to-noise ratios, the λ value will be smaller, and ĥ'_0 will also be smaller, and the filter will retain more high-frequency detail components of the original signal, avoiding information loss caused by excessive filtering.

[0113] In some embodiments, the calculation of the fractal dimension value of the time-frequency component after filtering includes: constructing a radial set corresponding to the time-frequency component; determining the scale value corresponding to the time-frequency component after filtering and calculating the similarity index of the scale value corresponding to the radial set; and calculating the fractal dimension value according to the similarity index.

[0114] By calculating the fractal dimension value of each denoised time-frequency component, this application will be able to distinguish and identify the highly irregular and high fractal dimension components contained therein, and perform targeted enhancement processing on these components, thereby amplifying and highlighting the potential important pattern features in the EEG signal. The fractal dimension calculation process is mainly based on the classical Katz algorithm, which provides an accurate and efficient method to estimate the fractal dimension of fractal signals.

[0115] The basic idea of ​​the classical Katz algorithm is to use the discrete sample points of the signal to construct a similar radial set, and estimate the fractal dimension based on the similarity measure of the set. Specifically, for a given one-dimensional signal sequence x(n) (n=1,2,...,N), this application first constructs a similar radial set: Δx(n,r)={x(m):|mn|≤r}, that is, the set of all sample points in a spherical neighborhood with x(n) as the center and a radius of r. Then, this application calculates the difference between the maximum and minimum values ​​in the neighborhood as a similarity measure metric(n,r)=max|x(m)-x(n)|, m∈Δx(n,r). Next, define an overall similarity index:

[0116] D(r)=∑metric(n,r) / N.

[0117] Where N is the total number of signal sample points. When the radius r approaches 0, the above formula can be written as D(r)~r^α, where α is the fractal dimension to be estimated. After taking the logarithm, the application can fit the linear relationship between log(D(r)) and log(r) by the least squares method to obtain an estimate of α, that is, an estimate of the fractal dimension. It should be noted that since discrete sample points are used, in actual calculations, the application takes a finite number of scales r_i (i=1,2,...,L) instead of the limiting process approaching 0, and introduces a weight factor for logarithmic linear fitting to obtain a more robust fractal dimension estimate.

[0118] The specific steps of calculating the fractal dimension are as follows: First, for each time-frequency component x(n), the present application selects a finite set of scale values ​​ri, which are usually taken as several fractions of the component length N, such as ri=N / 2^i (i=1,2,...,L), where L is the maximum scale series. Then, for each scale ri, the present application calculates the corresponding similarity index D(ri). Next, take the logarithm of D(ri) and perform weighted linear fitting to obtain log(D(ri))=α*log(ri)+C, where α is the desired fractal dimension estimate and C is a constant term. The weight used in the linear fitting is w_i=1 / log(ri)^2, the purpose of which is to make the data points corresponding to the smaller scale ri occupy a larger weight in the fitting, thereby improving the estimation accuracy. Through the above steps, the present application can obtain the fractal dimension estimate α of the time-frequency component.

[0119] It should be noted that the value range of the fractal dimension α is between 0 and 1. When α is close to 0, it indicates that the time-frequency component is relatively smooth and regular; when α is close to 1, it indicates that the component exhibits highly irregular and fractal behavior. Generally speaking, the higher the fractal dimension, the more complex the signal and the greater the degree of irregularity. In practical applications, this application usually regards time-frequency components with higher fractal dimension values ​​(such as greater than 0.6) as high fractal dimension components, which often reflect some key pattern features in EEG signals and deserve further identification and enhancement.

[0120] For ease of understanding, this application gives a specific numerical example. Assuming that the length of a certain time-frequency component x(n) is N=1024, this application takes the maximum scale level L=6, then the corresponding finite scale set is r_i=1024 / 2^i(i=1,2,...,6)={512,256,128,64,32,16}. For the scale r_1=512, this application constructs the same radial set Δx(n,512) and calculates the similarity index D(512)=37.28; for the scale r_2=256, the corresponding D(256)=23.51; and so on, this application can obtain the similarity index values ​​at different scales. Then, the application takes the logarithm of D(r_i) and uses the weight w_i=1 / log(r_i)^2 for weighted linear fitting. The fitting result is log(D(r_i))=0.725*log(r_i)+1.183. Therefore, the estimated fractal dimension α of this time-frequency component is 0.725. Since 0.725 is closer to 1, it means that this component exhibits strong fractal and irregular behavior, and it is likely to contain important pattern information, which needs to be identified and enhanced in subsequent steps.

[0121] Step S106: determine the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, perform preset gain modulation on the high fractal dimension component, and complete the enhancement processing of the high fractal dimension component.

[0122] In this step, we first need to set a reasonable fractal dimension threshold to distinguish high fractal dimension components from low fractal dimension components. Generally speaking, the closer the fractal dimension is to 1, the more complex and irregular the signal is. By performing preset gain modulation on the identified high fractal dimension component, the enhancement processing of the component is achieved.

[0123] In some embodiments, the preset gain modulation of the high fractal dimension component includes: calculating the energy value and the root mean square value corresponding to the high fractal dimension component; constructing a time-varying gain factor according to the fractal dimension value, the energy value and the root mean square value corresponding to the high fractal dimension component; multiplying the high fractal dimension component by the time-varying gain factor to obtain the enhanced high fractal dimension component.

[0124] The present application first needs to set a reasonable fractal dimension threshold to distinguish high fractal dimension components from low fractal dimension components. Generally speaking, the closer the fractal dimension is to 1, the more complex the signal and the higher the degree of irregularity. Based on the statistical analysis of a large number of EEG data samples, the present application found that when the fractal dimension value is greater than 0.65, the component often contains important pattern feature information and is worthy of further enhancement. Therefore, the present application sets the fractal dimension threshold α_th to 0.65. The fractal dimension value α_i of each time-frequency component calculated in the above steps is compared with the threshold. When α_i > α_th, the present application identifies the component as a high fractal dimension component and needs to be enhanced. For example, assuming that the fractal dimension calculation result of a time-frequency component x_k(n) is α_k=0.72, since 0.72 is greater than the threshold 0.65, the present application identifies x_k(n) as a high fractal dimension component and includes it in the enhancement target set.

[0125] For the identified high fractal dimension component, the present application uses a preset gain modulation algorithm to enhance it. Specifically, let the high fractal dimension component be y(n), and the present application multiplies it by a preset time-varying gain factor g(n) to obtain the enhanced component y'(n)=y(n)*g(n). The gain factor g(n) here is a regular sequence with values ​​in the interval (0,1], and its determination needs to be combined with the statistical characteristics of the high fractal dimension component itself. The present application first calculates the energy E_y=∑y^2(n) and the root mean square value RMS_y=sqrt(E_y / N) of the high fractal dimension component y(n), where N is the number of sample points of the component. Then, based on the fractal dimension value α_y, energy E_y and RMS_y of the component, a nonlinear gain function model is constructed to generate the gain factor sequence g(n). The form of the gain function model is:

[0126] g(n)=1 / (1+Aexp(-Bα_y))(1+Cy(n) / RMS_y)^D.

[0127] Among them, A, B, C, and D are model parameters, which can be obtained through training. In the above formula, the first term (1+Aexp(-Bα_y)) reflects the influence of fractal dimension on gain factor. The larger α_y is, the smaller this term is, thus amplifying the gain factor; the second term (1+Cy(n) / RMS_y)^D reflects the influence of component amplitude on gain factor. When y(n) is much larger than RMS_y, this term is close to 1 and has no effect on gain; but when y(n) is small, this term will be greater than 1, which plays a role in amplifying the amplitude of y(n). Through the coupling effect of the above two terms, the present application can generate a time-varying gain sequence g(n) that can effectively amplify high fractal dimension components. For example, when A=2.5, B=5, C=1, and D=0.6, if the high fractal dimension component has α_y=0.8 and y(n)=2RMS_y, the corresponding gain factor g(n) is about 1.78, which can amplify y(n) at that moment by nearly one-fold.

[0128] Through the above-mentioned gain modulation, the present application successfully amplifies the potential fractal pattern components in the high fractal dimension component x_k(n) and obtains the enhanced y'_k(n).

[0129] Step S107, reconstructing the enhanced high fractal dimension components and the remaining unenhanced fractal dimension values ​​to obtain a target measured EEG signal based on fractal dimension enhancement.

[0130] In this step, the classic Norton wavelet reconstruction formula is used, and its mathematical expression is: x'(n)=∑W_φ(j_0,k)φ{j_0,k}(n)+∑∑d'{j,k}ψ{j,k}(n), where W_φ(j_0,k) is the scale coefficient of the low-frequency approximate component at scale j_0, d'{j,k} is the wavelet coefficient of the enhanced high fractal dimension component, φ{j_0,k}(n) and ψ_{j,k}(n) are the corresponding scaling function and wavelet basis function, respectively.

[0131] Specifically, in the above steps, the present application performs N-layer wavelet decomposition on the preprocessed EEG measurement signal, and obtains N detail components D_1, D_2, ..., D_N and a low-frequency approximate component A_N. Assume that in the above steps, the present application identifies the k-th detail component D_k as a high fractal dimension component, and enhances it to obtain the enhanced D'k. Then, during wavelet reconstruction, the present application will use D'k to replace the original D_k, while retaining the remaining N-1 unenhanced detail components D_i (i≠k) and the low-frequency approximate component A_N, and reconstruct them according to the following formula:

[0132] x'(n)=∑W_φ(N,k)φ{N,k}(n)+∑d'{N,k}ψ_{N,k}(n)+∑∑d_{j,k}ψ_{j,k}(n).

[0133] The first term is the reconstruction part of the low-frequency approximate component A_N, and W_φ(N,k) is the scale coefficient of A_N; the second term is the reconstruction part of the enhanced high fractal dimension component D'k, and d'{N,k} is the wavelet coefficient of D'k; the third term is the reconstruction part of the remaining unenhanced detail components D_i (i≠k), and d{j,k} is the wavelet coefficient of each D_i. Through the above formula, this application fuses the enhanced high fractal dimension component D'_k with other components to finally obtain the enhanced measured EEG signal x'(n).

[0134] It should be noted that in the actual reconstruction calculation process, this application usually adopts a compact framework of wavelet basis functions and scaling functions, thereby simplifying the above reconstruction formula into a fast convolution algorithm to improve computational efficiency. Specifically, assume that the wavelet basis ψ_{j,k}(n) and the scaling function φ_{j,k}(n) are generated by two sequences h_j(n) and g_j(n) through upsampling and downsampling operations, that is: ψ_{j,k}(n)=∑h_j(m-2^jk)δ(n-2^jm), φ_{j,k}(n)=∑g_j(m-2^jk)δ(n-2^jm), where δ(n) is the unit impulse function. Substituting the above formula into the reconstruction formula, we can get:

[0135] x'(n)=∑∑d'{N,k}h_N(n-2^Nk)+∑∑d{j,k}h_j(n-2^jk)+∑∑W_φ(N,k)g_N(n-2^Nk).

[0136] The above formula is a specific algorithm for wavelet reconstruction using fast convolution, which mainly includes three convolution operations: the first term is the convolution and summation of the wavelet coefficients of the high fractal dimension component D'_k and the finest wavelet basis h_N; the second term is the convolution and summation of the wavelet coefficients of the remaining detail components D_i and the corresponding wavelet basis h_j; the third term is the convolution and summation of the scale coefficients of the low-frequency approximate component A_N and the scale function g_N. Through this compact framework fast convolution algorithm, the present application can efficiently realize wavelet reconstruction and greatly reduce the computational complexity.

[0137] This application can use this pattern representation to build a complete EEG pattern knowledge base covering various cognitive functions. Each pattern instance in the knowledge base not only records its distribution parameters in time and space frequency, but also maps with the corresponding cognitive function semantics. Based on this knowledge base, this application can decode and classify newly detected EEG data in real time and infer the current cognitive state, such as ongoing high-level cognitive processes such as visual attention, emotional processing, and decision-making. This direct mapping from EEG patterns to cognitive functions will greatly improve the interpretability and reliability of cognitive computing systems.

[0138] In order to implement the EEG signal processing method based on fractal dimension enhancement corresponding to the above method embodiment, so as to achieve the corresponding functions and technical effects. Figure 2 , Figure 2 The structural block diagram of an electroencephalogram signal processing device 200 based on fractal dimension enhancement provided in an embodiment of the present application is shown. For the convenience of explanation, only the parts related to the present embodiment are shown. The electroencephalogram signal processing device 200 based on fractal dimension enhancement provided in an embodiment of the present application includes:

[0139] The signal acquisition module 201 is used to acquire the original EEG signals acquired by the EEG acquisition device under multiple preset stimulation sources, pre-process the original EEG signals to obtain measured EEG signals, and decompose the measured EEG signals to obtain multiple time-frequency components.

[0140] The feature extraction module 202 is used to perform time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components to obtain the time domain features, frequency domain features and the number of modal components corresponding to the time-frequency components.

[0141] The index calculation module 203 is used to calculate the time domain evaluation index corresponding to the time-frequency component according to the time domain characteristics, and calculate the frequency domain evaluation index corresponding to the time-frequency component according to the frequency domain characteristics and the number of modal components.

[0142] The factor acquisition module 204 is used to input the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model.

[0143] The filtering calculation module 205 is used to filter the time-frequency component according to the smoothing factor and calculate the fractal dimension value of the filtered time-frequency component.

[0144] The gain modulation module 206 is used to determine the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, perform preset gain modulation on the high fractal dimension component, and complete enhancement processing on the high fractal dimension component.

[0145] The signal reconstruction module 207 is used to reconstruct the enhanced high fractal dimension component and the remaining unenhanced fractal dimension values ​​to obtain a target measured EEG signal based on fractal dimension enhancement.

[0146] The above-mentioned EEG signal processing device 200 based on fractal dimension enhancement can implement the EEG signal processing method based on fractal dimension enhancement of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0147] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 3 As shown, the computer device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure), a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above method embodiments when executing the computer program 32.

[0148] The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a cloud server, etc. The computer device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0149] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0150] In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0151] In addition, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0152] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0153] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0154] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0155] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for processing electroencephalogram signals based on fractal dimension enhancement, characterized in that: The method comprises: Acquire original EEG signals collected by an EEG acquisition device under multiple preset stimulation sources, preprocess the original EEG signals to obtain measured EEG signals, and decompose the measured EEG signals to obtain multiple time-frequency components; Performing time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components to obtain the time domain features, frequency domain features and number of modal components corresponding to the time-frequency components; According to the time domain features, calculating the time domain evaluation index corresponding to the time-frequency component, and according to the frequency domain features and the number of modal components, calculating the frequency domain evaluation index corresponding to the time-frequency component; Inputting the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model; Filtering the time-frequency component according to the smoothing factor, and calculating the fractal dimension value of the filtered time-frequency component; Determining the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, performing preset gain modulation on the high fractal dimension component, and completing enhancement processing on the high fractal dimension component; The enhanced high fractal dimension component and the remaining unenhanced fractal dimension values ​​are reconstructed to obtain a target measured EEG signal based on fractal dimension enhancement.

2. The method according to claim 1, characterized in that The preset stimulus sources include a resting state stimulus source and a steady-state visual evoked stimulus source; the acquisition of the original EEG signals collected by the EEG acquisition device under multiple preset stimulus sources includes: Acquire the original EEG signal corresponding to the spontaneous EEG activity of the user under the resting state stimulation source; The EEG acquisition device is obtained under the steady-state visual induced stimulation source, and the light source module of the EEG acquisition device is changed to generate flash stimulation of different frequencies to the user wearing the EEG acquisition device, so as to obtain the original EEG signal of the user under the flash stimulation.

3. The method according to claim 1, characterized in that: The step of performing time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components to obtain the time domain features, frequency domain features and the number of modal components corresponding to the time-frequency components includes: Acquire the binary amplitude entropy, fluctuation change characteristics and zero-crossing times of the time-frequency component, wherein the binary amplitude entropy, the fluctuation change characteristics and the zero-crossing times constitute the time domain feature; Performing a fast Fourier transform on the time-frequency component to obtain a power spectrum density corresponding to the time-frequency component; Acquire the fundamental frequency energy variation, fundamental frequency energy difference coefficient and fundamental frequency signal attenuation rate corresponding to the time-frequency component according to the power spectrum density, wherein the fundamental frequency energy variation, the fundamental frequency energy difference coefficient and the fundamental frequency signal attenuation rate constitute the frequency domain feature; Adaptively decompose the multiple time-frequency components to obtain multiple internal mode functions, and use the number of the internal mode functions as the number of the modal components.

4. The method according to claim 3, characterized in that The step of calculating the time domain evaluation index corresponding to the time-frequency component according to the time domain feature, and calculating the frequency domain evaluation index corresponding to the time-frequency component according to the frequency domain feature and the number of modal components, includes: Normalizing the binary amplitude entropy, fluctuation change characteristics and zero-crossing times; Constructing a time domain evaluation index according to the normalized binary amplitude entropy, fluctuation change characteristics and zero crossing times; Normalizing the fundamental frequency energy variation, the fundamental frequency energy difference coefficient, and the fundamental frequency signal attenuation rate; The frequency domain evaluation index is constructed according to the normalized fundamental frequency energy change, the fundamental frequency energy difference coefficient, the fundamental frequency signal attenuation rate and the number of modal components.

5. The method according to claim 1, characterized in that The optimization model is a support vector machine regression model; the time domain evaluation index and the frequency domain evaluation index are input into a preset optimization model to obtain a smoothing factor output by the optimization model, including: A feature vector is constructed according to the time domain evaluation index and the frequency domain evaluation index, and the feature vector is input into the support vector machine regression model to obtain the smoothing factor.

6. The method according to claim 1, characterized in that Filtering the time-frequency component according to the smoothing factor includes: The time-frequency component and the corresponding smoothing factor are input into a Wiener filter, and the Wiener filter performs adaptive filtering on the time-frequency component according to the smoothing factor.

7. The method according to claim 1, characterized in that The step of calculating the fractal dimension value of the filtered time-frequency component comprises: Constructing a co-radial set corresponding to the time-frequency components; Determine the scale value corresponding to the filtered time-frequency component; Calculating a similarity index of the scale value corresponding to the same radial set; The fractal dimension value is calculated according to the similarity index.

8. The method according to claim 1, characterized in that The performing preset gain modulation on the high fractal dimension component comprises: Calculating the energy value and the root mean square value corresponding to the high fractal dimension component; Constructing a time-varying gain factor according to the fractal dimension value corresponding to the high fractal dimension component, the energy value and the root mean square value; The high fractal dimension component is multiplied by the time-varying gain factor to obtain the enhanced high fractal dimension component.

9. An electroencephalogram signal processing device based on fractal dimension enhancement, characterized in that: include: A signal acquisition module is used to acquire the original EEG signals acquired by the EEG acquisition device under multiple preset stimulation sources, pre-process the original EEG signals to obtain measured EEG signals, and decompose the measured EEG signals to obtain multiple time-frequency components; A feature extraction module, used to perform time domain feature extraction, frequency domain feature extraction and modal decomposition on each of the time-frequency components, and obtain the time domain features, frequency domain features and number of modal components corresponding to the time-frequency components; An index calculation module, used to calculate the time domain evaluation index corresponding to the time-frequency component according to the time domain characteristics, and calculate the frequency domain evaluation index corresponding to the time-frequency component according to the frequency domain characteristics and the number of modal components; A factor acquisition module, used to input the time domain evaluation index and the frequency domain evaluation index into a preset optimization model to obtain a smoothing factor output by the optimization model; A filtering calculation module, used for filtering the time-frequency component according to the smoothing factor, and calculating the fractal dimension value of the filtered time-frequency component; A gain modulation module, used for determining the fractal dimension value greater than the fractal dimension threshold as a high fractal dimension component, performing preset gain modulation on the high fractal dimension component, and completing enhancement processing on the high fractal dimension component; The signal reconstruction module is used to reconstruct the high fractal dimension component after enhancement processing and the remaining unenhanced fractal dimension values ​​to obtain a target measured EEG signal based on fractal dimension enhancement.

10. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the method for processing electroencephalogram signals based on fractal dimension enhancement as claimed in any one of claims 1 to 8 are implemented.