A method for diagnosing depression based on EEG based on multi-frequency domain decomposition

Through the combination of multi-frequency domain decomposition and attention mechanism, the spatio-temporal frequency features are integrated, which solves the problem of failing to effectively integrate time domain, frequency domain and spatial domain information in the existing technology, and improves the accuracy and reliability of depression diagnosis. , providing stronger diagnostic support.

CN118490232BActive Publication Date: 2024-09-10NORTHEAST DIANLI UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410954182.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-10
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing depression diagnosis methods fail to effectively integrate information in the time domain, frequency domain and spatial domain, and ignore the differences between different frequency bands of EEG signals, resulting in the inability to fully capture the valuable information in the EEG signals, which affects depression. Early diagnosis and pathological mechanism research of the disease.

Method used

An EEG depression diagnosis method based on multi-frequency domain decomposition is adopted, and the EEG signal is band-pass filtered and channel selected through the channel feature extraction module. The convolutional neural network (CNN) and Transformer model are combined to introduce channel attention and temporal attention. mechanism, extract spatio-temporal frequency features, and build a classification model through the time trend-aware attention mechanism.

Benefits of technology

Improves the accuracy and reliability of depression diagnosis, can reveal the EEG signal characteristics of depression more comprehensively, enhances the model's focus on important features of different channels and time periods, achieves more accurate classification, and improves diagnosis Technical precision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118490232B
    Figure CN118490232B
Patent Text Reader

Abstract

The present invention relates to the technical field of depression treatment, and specifically discloses an electroencephalogram (EEG) depression diagnosis method based on multi-frequency domain decomposition, comprising a channel feature extraction module. First, bandpass filtering is performed on EEG signals to divide them into multiple frequency bands of δ (1-4 Hz), θ (4-8 Hz), α (8-12 Hz), β (12-30 Hz) and γ (30-50 Hz). The optimal channel of each frequency band is selected through a channel selection strategy to extract key spatiotemporal features. The spatio-frequency features are fused together to construct a classification model to achieve efficient depression recognition. The scheme designs a time trend-aware attention mechanism, which extracts local context information for each node so that each node has the ability to perceive the context environment. Then, an attention matrix is ​​constructed in the form of local trend-local trend (trend-wise). Compared with the traditional attention mechanism, the proposed trend-aware attention mechanism contributes to more accurate classification and has stronger stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of depression treatment, and in particular to an electroencephalogram (EEG) depression diagnosis method based on multi-frequency domain decomposition. Background Art

[0002] Depression is an affective mental disorder with approximately 350 million patients worldwide and is the leading cause of disability. Its clinical manifestations include low mood, slow thinking, loss of interest, and even thoughts or behaviors of self-harm and suicide in severe cases. It is predicted that by 2030, depression will become the world's number one burdensome disease. In addition, a recent study found that depression can even affect the function of human immune cells, which has a serious impact on the health and sustainable development of society. With the increase in the incidence and suicide rate of patients with depression, the use of computer-assisted technology to diagnose depression is one of the most pressing public health issues for disease monitoring of patients with depression.

[0003] Compared with other neuroimaging techniques, electroencephalography (EEG) has the advantages of low cost, non-invasiveness and high temporal resolution, and plays an important role in the diagnosis of related neurological diseases, including epileptic seizures, Alzheimer's disease, depression and other abnormal diseases. With the rapid increase of available biomedical data, a large number of researchers have tried to use traditional machine learning techniques to diagnose EEG signal features. Extracting relevant features from the signal is the key to successfully diagnosing depression. In recent years, deep learning has become popular due to advances in computing and has been widely used in the field of depression recognition. Convolutional neural networks (CNNs) have shown excellent representation capabilities in computer vision tasks and have become an effective method for learning high-level features in EEG. The improved CNN model ConvNet learns the discriminative features of the convolutional layer and achieves comparable performance to traditional algorithms in EEG classification tasks. Similarly, the compact EEGNet also shows excellent temporal feature perception and good generalization ability in multiple brain-computer interface paradigms. Sharmila et al. effectively converted EEG signals into spectral images and used CNN to detect depression. However, the experimental results of this model are not ideal. The main reason is that the single CNN model performs well in processing local features, but performs weakly in processing global information. Moreover, it only extracts the frequency domain and spatial domain features of the EEG signal, but ignores the time domain features of the EEG, resulting in poor final classification performance of the model.

[0004] Transformer was first proposed by Vaswani et al. in 2017 and has achieved remarkable success in natural language processing and computer vision. Unlike CNN networks, this model overcomes the limitations of local receptive fields and is able to consider information at all positions in the sequence simultaneously. Therefore, it is good at capturing global relationships and shows excellent performance in calculating the correlation between features in long sequences while effectively handling long-term dependencies. However, this model ignores the learning of local features, which is also required for EEG decoding. Therefore, in recent years, many researchers have effectively improved the performance and effect of the model by combining CNN with Transformer, taking advantage of CNN's ability to extract local features and Transformer's ability to capture global information. The EEGConformer model proposed by Song et al. encapsulates local and global features in a unified EEG signal classification framework. Yao et al. used two parallel Transformer encoders to extract spatiotemporal features from emotion-related EEG signals and aggregated them using CNN, achieving relatively ideal results on different data sets.

[0005] In addition, using more electrode channels for EEG signals can achieve higher spatial resolution, but this often introduces additional noise. If the noise channels can be effectively eliminated, using fewer electrode channels can also achieve better classification accuracy. Moreover, recent studies have shown that the brain structure and function of patients with major depression have undergone substantial changes. Changes in EEG frequency bands can provide intuitive information. For example, delta rhythms are usually more active when drowsy; theta rhythms are related to states such as inattention and distraction; alpha rhythms often appear in a relaxed but not sleepy state; beta rhythms are closely related to thinking, perception, self-state and surrounding environment. By studying the changes in EEG frequency bands, we can better understand the abnormal characteristics of brain activity in patients with depression. Grin Yatsenko et al. found that the theta, alpha and beta bands in the occipital and parietal regions of the brain of depressed patients increased significantly. Meng Ming et al. proposed the Block-Selection for CSP (BS-CSP), which uses Fisher alignment to select channels and frequency bands simultaneously.

[0006] Accurate diagnosis of depression is crucial for early intervention and treatment. This study will focus on integrating multi-dimensional information of EEG signals to improve the accuracy and reliability of diagnosis of depression. This will not only help to better understand the neural mechanisms of depression, but also provide stronger support for clinical diagnosis.

[0007] In the current research on depression diagnosis, electroencephalogram (EEG) analysis still faces some key problems that need to be solved urgently. First, there may be potential differences between different frequency bands of EEG signals, and these differences are important for revealing abnormal brain function in patients with depression. However, existing diagnostic methods usually ignore this point, resulting in the inability to fully capture the valuable information in EEG signals. Therefore, in-depth exploration of the differences between frequency bands can provide new perspectives and basis for the early diagnosis and pathological mechanism research of depression. Secondly, the current depression diagnosis method based on EEG signals fails to effectively integrate information in the time domain, frequency domain and spatial domain. Summary of the invention

[0008] The purpose of the present invention is to provide a method for diagnosing depression based on EEG based on multi-frequency domain decomposition to solve the problems raised in the above background technology.

[0009] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a method for diagnosing depression based on EEG based on multi-frequency domain decomposition, including a channel feature extraction module, firstly band-pass filtering the EEG signal to divide it into multiple frequency bands of δ (1-4 Hz), θ (4-8 Hz), α (8-12 Hz), β (12-30 Hz) and γ (30-50 Hz), and selecting the optimal channel of each frequency band through a channel selection strategy to extract key spatiotemporal features, and also including a convolution module and a self-attention module;

[0010] The following steps are also included:

[0011] S1: CNN extracts local spatiotemporal features and captures global spatiotemporal relationships through Transformer;

[0012] S2: Introducing channel attention and time attention mechanisms to enhance the model’s attention to important features of different channels and time periods;

[0013] S3: Combine the spatiotemporal and frequency features to build a classification model for depression identification.

[0014] Preferably, the convolution module is designed by separating the two-dimensional convolution operator into two one-dimensional time and space convolution layers, and three layers are set;

[0015] The first layer has s kernels of size (1, 25) and a stride of (1, 1), which means that the convolution is performed in the time dimension.

[0016] The second layer retains s kernels of size (ch, 1) and stride (1, 1), where ch = the number of electrode channels of the EEG data. This layer acts as a spatial filter to learn the representation of the interaction between different electrode channels. Subsequently, batch normalization is used to speed up the training process and alleviate the overfitting problem, and elu is used as the nonlinear activation function.

[0017] The third layer is the average pooling along the time dimension, with a kernel size of (1, 75) and a step size of (1, 15). The third layer smoothes the time features, avoiding overfitting and reducing computational complexity. The hyperparameter k is set to 40.

[0018] Finally, the feature maps of the convolutional modules are rearranged to compress the electrode channel dimension and transpose the convolution channel dimension with the time dimension. In this way, all feature channels at each time point are fed to the next module as tokens.

[0019] Preferably, the self-attention module includes given an input , R is the set of real numbers, N is the number of sequences, M is the sampling points, and C is the number of channels;

[0020] The context representation of each time step is extracted through two 1D causal convolutional layers with a convolution kernel size of 1×s, generating queries (Query, Q) and keys (Key, K) respectively, and values ​​(Value, V) are generated through a 1×1 convolutional layer:

[0021] ;

[0022] ;

[0023] ;

[0024] Among them, Conv represents convolution, s represents the size of the convolution kernel, and x is the given input.

[0025] Preferably, 1D causal convolution ensures that each time step can only focus on the information of the previous time step, and the shape of the output is kept consistent with the shape of the input through padding operation, in this way, Each time step of contains contextual semantic information;

[0026] Reshape the Q, K, V matrices through the reshape operation to obtain a multi-head representation:

[0027] ;

[0028] ;

[0029] ;

[0030] Among them, N is the number of sequences, M is the sampling points, h is the number of attention heads, d is the number of channels of each attention head, and reshape is the reshaping operation.

[0031] Preferably, the attention matrix is ​​calculated in a local context manner and normalized by softmax (normalized exponential function):

[0032] ;

[0033] Among them, A is the normalized attention matrix, R is the set of real numbers in mathematics, Q is the query, K represents the key, T is the mathematical symbol transposition, h is the number of attention heads, and d is the number of channels of each attention head.

[0034] Preferably, V is weighted and restored to the same shape as the input: ;

[0035] ;

[0036] ;

[0037] is the output of the trend-aware attention mechanism;

[0038] Among them, C is the number of channels, h is the number of attention heads, d is the number of channels of each attention head, Y is the output of the trend-aware attention mechanism, and V represents the value.

[0039] Preferably, bandpass filtered and normalized EEG data are input into the model, and then the data passes through the temporal and spatial convolutional layers in sequence and is arranged into tokens by the pooling layer, followed by N self-attention layers, and finally a fully connected layer to output the classification result.

[0040] The present invention has at least the following beneficial effects:

[0041] 1. Use convolutional neural networks (CNN) to extract local spatiotemporal features and use Transformer to capture global spatiotemporal relationships. On this basis, channel attention and time attention mechanisms are further introduced to enhance the model's attention to important features of different channels and time periods;

[0042] 2. A temporal trend-aware attention mechanism is designed. By extracting local context information for each node, each node has the ability to perceive the context environment, and then constructs an attention matrix in the form of local trend-local trend (trend-wise). Compared with the traditional attention mechanism, the proposed trend-aware attention mechanism helps to classify more accurately and has stronger stability;

[0043] 3. The time domain characteristics reflect the temporal variation of EEG signals, the frequency domain characteristics reveal the power spectrum characteristics of different frequency components, and the spatial domain characteristics involve the spatial distribution characteristics of signals between brain regions. Combining these three can more comprehensively reveal the EEG signal characteristics of depression and improve the accuracy and reliability of diagnosis. Therefore, conducting this research will not only help improve the accuracy of depression diagnosis technology, but may also promote the discovery of related biomarkers, thereby providing theoretical support and practical basis for the early diagnosis and individualized treatment of depression. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the overall architecture of the EEG depression diagnosis method based on multi-frequency domain decomposition of the present invention;

[0045] Figure 2 Schematic diagram of the basic architecture of the convolution module of the present invention;

[0046] Figure 3 Schematic diagram of the self-attention module architecture of the present invention. DETAILED DESCRIPTION

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

[0048] See also Figure 1 - Figure 3, a method for EEG depression diagnosis based on multi-frequency domain decomposition, including a Spatial-Channel Self-Attention Network (SCSAN) based on EEG signals, for the classification of EEG signals of depression. First, we bandpass filter the EEG signal and divide it into multiple frequency bands such as δ (1-4 Hz), θ (4-8 Hz), α (8-12 Hz), β (12-30 Hz) and γ (30-50 Hz). Then, the optimal channel of each frequency band is selected through the channel selection strategy to extract key spatiotemporal features. Next, convolutional neural network (CNN) is used to extract local spatiotemporal features, and Transformer is used to capture global spatiotemporal relationships. On this basis, we further introduce channel attention and temporal attention mechanisms to enhance the model's attention to important features of different channels and time periods. Finally, we fuse these spatiotemporal and frequency features together to build a powerful classification model for efficient depression recognition.

[0049] (1) Channel feature extraction module

[0050] First, we bandpass filter the EEG signal and divide it into multiple frequency bands such as θ (1-4 Hz), (4-8 Hz), α (8-12 Hz), β (12-30 Hz) and γ (30-50 Hz). Through the CSP method, a relatively stable spatial filter is obtained, that is, a relatively stable channel weight is obtained; then the channel weights are sorted by the L2 norm. The EEG data of the first K channels are selected for CSP feature extraction, and the optimal K value is determined according to the classification accuracy of the classifier, so as to obtain the optimal number of channels and channel combination. Finally, CSP is used for feature extraction for the optimal channel combination and multiple classifiers are used to evaluate the performance of the proposed channel selection method.

[0051] (2) Convolutional module

[0052] We design the convolution module by separating the 2D convolution operator into two 1D temporal and spatial convolution layers. The first layer has s kernels of size (1, 25) with stride (1, 1), which means that the convolution is performed on the temporal dimension. The second layer retains s kernels of size (ch, 1) with stride (1, 1), where ch = the number of electrode channels of the EEG data. This layer acts as a spatial filter to learn a representation of the interaction between different electrode channels. Subsequently, batch normalization is used to speed up the training process and alleviate the overfitting problem. We use exponential linear unit (ELU) as the activation function for the following nonlinearity. The third layer is average pooling along the temporal dimension with kernel size (1, 75) and stride (1, 15). This pooling layer smoothes the temporal features, avoiding overfitting and reducing the computational complexity. The hyperparameter k is set to 40. Finally, we rearrange the feature maps of the convolution module to compress the electrode channel dimension and transpose the convolution channel dimension with the temporal dimension. In this way, we feed all feature channels at each time point as tokens to the next module.

[0053] Given a feature , H is the number of sequences, W is the sampling point, and C is the number of channels. In order to effectively obtain a more comprehensive global information representation in space, global average pooling and global max pooling are used at the same time to obtain the average pooled features respectively. And the features after maximum pooling .

[0054] (1)

[0055] (2)

[0056] Among them, F represents the input feature, AvgPool represents average pooling, and MaxPool represents maximum pooling. represents the feature obtained by average pooling on the channel, Represents the features obtained by the maximum pooling on the channel.

[0057] Then, the two global vectors pass through an MLP (sharing the parameters in the same MLP) to obtain average pooling respectively. and max pooling , where the MLP is composed of Conv-ReLU-Conv. Next, we sum the two and then use the gating mechanism (implemented by the sigmoid function) to obtain the channel attention weight representation :

[0058] (3)

[0059] (4)

[0060] (5)

[0061] Among them, Avgc represents average pooling, Maxc represents maximum pooling, and MLP represents multi-layer perceptron. represents the feature obtained by average pooling on the channel, represents the feature obtained by the maximum pooling on the channel, Mc represents the channel attention weight, and sigmoid represents the sigmoid() function.

[0062] The weight is expressed as With input features Multiply to get the intermediate feature :

[0063] (6)

[0064] Among them, F' represents the intermediate feature obtained in the channel dimension, Mc represents the channel attention weight, F represents the input feature, and ⊙ represents element-by-element multiplication.

[0065] Spatial attention aims to generate a weight matrix to emphasize spatially important features and suppress spatially unimportant features. Given a feature Global average pooling and global maximum pooling are also applied in the spatial attention module, but the calculation is performed in the channel direction (the purpose is to obtain the average and maximum features of the channel), so the average pooled features are obtained respectively. And the features after maximum pooling :

[0066] (7)

[0067] (8)

[0068] Among them, F' represents the intermediate features obtained in the channel dimension, AvgPool represents average pooling, and MaxPool represents maximum pooling. Represents the features obtained by spatial average pooling, Represents the features obtained by the maximum pooling in space.

[0069] and By concatenating in the second dimension, we get , and then remap the channels to one dimension through MLP: , which is to aggregate the maximum and average features on the channel. Then a gating mechanism is used to generate the spatial attention weight representation :

[0070] (9)

[0071] (10)

[0072] (11)

[0073] in, Represents the features obtained by spatial average pooling, Represents the features obtained by the maximum pooling in space, Represents the features obtained by splicing in the second dimension, Represents the maximum and average features on the aggregated channel, MLP represents a multi-layer perceptron, Ms represents the spatial attention weight, and sigmoid represents the sigmoid() function.

[0074] The weight is expressed as With input features Multiply them to get the output features :

[0075] (12)

[0076] Among them, F'' represents the final output feature, ⊙ represents element-by-element multiplication, and F' represents the intermediate feature obtained in the channel dimension.

[0077] (3) Self-attention module

[0078] Since neural activities are coherent, context-dependent representations in low-level spatiotemporal features will be beneficial for EEG decoding. In this module, we use self-attention to learn the global temporal dependencies of EEG features to supplement the limited receptive field in the convolutional module. However, the traditional self-attention mechanism calculates the similarity between query and key point-wise without utilizing contextual information. If the observation value at a certain time step is an outlier, it will incorrectly match the relevant points, which will bring potential optimization problems to self-attention. This scheme designs a temporal trend-aware attention mechanism, which extracts local context information for each node so that each node has the ability to perceive the contextual environment, and then constructs the attention matrix in the form of local trend-local trend. Compared with the traditional attention mechanism, the proposed trend-aware attention mechanism contributes to more accurate classification and has stronger stability.

[0079] Given input , N is the number of sequences, M is the sampling point, and C is the number of channels. First, two 1D causal convolutional layers with a convolution kernel size of 1×s are used to extract the context representation of each time step, query (Query, Q), and generate the value (Value, V) through a 1×1 convolutional layer:

[0080] (13)

[0081] (14)

[0082] (15)

[0083] Among them, Conv represents convolution, s represents the size of the convolution kernel, and x is the given input.

[0084] 1D causal convolution ensures that each time step can only focus on the previous time step information, and through the padding operation, the output shape is kept consistent with the input shape, in this way, Each time step of contains contextual semantic information.

[0085] Reshape the Q, K, V matrices through the reshape operation to obtain a multi-head representation:

[0086] (16)

[0087] (17)

[0088] (18)

[0089] Among them, N is the number of sequences, M is the sampling points, h is the number of attention heads, d is the number of channels of each attention head, and reshape is the reshaping operation.

[0090] Then, the attention matrix is ​​calculated in a local context manner (relative to the point-wise form, our proposed method is more stable) and normalized by softmax:

[0091] (19)

[0092] Where A is the normalized attention matrix, R is the set of real numbers in mathematics, Q is the query, K represents the key, T is the mathematical symbol transpose, h is the number of attention heads, d is the number of channels of each attention head, and:

[0093] Finally, V is weighted and restored to the same shape as the input: ;

[0094] (20)

[0095] (twenty one)

[0096] Among them, C is the number of channels, h is the number of attention heads, and d is the number of channels of each attention head. is the output of the trend-aware attention mechanism, and V represents value.

[0097] In summary, the bandpass filtered and normalized EEG data is first input into the model. The data then passes through the temporal and spatial convolutional layers in sequence and is arranged into tokens by the pooling layer. N self-attention layers are then used, and finally the fully connected layer outputs the classification result.

[0098] (1) Experimental Dataset

[0099] The dataset used in this study was the Depression Research Dataset (MODMA) for Mental Disorder Analysis, which was publicly available from the Key Laboratory of Wearable Computing of Lanzhou University. It was approved by the Ethics Committee of the Second Affiliated Hospital of Lanzhou University, and written informed consent was obtained from all subjects.

[0100] The dataset contained 24 patients with depression and 29 healthy controls, selected based on PHQ-9 and CAD-7 scores and physicians’ diagnoses;

[0101] As shown in Table 1, the p value is used as a key statistical measure to evaluate the significant difference between patients and controls. The scalp electrode positions for EEG data acquisition with 128 leads were used, using the HCGSN (HydroCelGeodesicSensorNet) system;

[0102] Collect EEG data and NetStation software to record EEG data, the sampling frequency of the whole acquisition process was set to 250Hz. In the experiment, the whole recording process was carried out in a quiet, dimly lit room without electromagnetic interference.

[0103] Participants were asked to sit in a chair and remain still with their eyes closed for approximately 5 minutes.

[0104] In addition, they were asked to stay awake, not think, and reduce movement to reduce electromyography (EMG) and electrooculography (EOG) noise.

[0105] Table 1 Detailed description of the data

[0106]

[0107] (2) Specific implementation

[0108] The preprocessing is completed using the eeglab toolbox of MATLAB software, and the steps are as follows:

[0109] (1) Important reference: Whole brain average reference

[0110] (2) Filtering: Set high-pass and low-pass filters to filter the signal. The cutoff frequency of the high-pass filter is set to 1 Hz, and the cutoff frequency of the low-pass filter is set to 50 Hz. The purpose is to filter out power frequency interference, high-frequency noise, DC drift, and electromyographic artifacts.

[0111] (3) Obtaining EEG rhythm: Set the bandpass filter cutoff frequency for the EEG data segment to obtain EEG rhythms in five different frequency bands: delta (1 Hz to 4 Hz), theta (4 Hz to 8 Hz), alpha (8 Hz to 12 Hz), beta (12 Hz to 30 Hz), and gamma (30 Hz to 50 Hz).

[0112] (4) ICA independent component analysis: remove artifacts.

[0113] (3) Experimental comparison results

[0114] Ablation experiment

[0115] Many studies have found that different frequency band information of EEG signals can be used as a biomarker for identifying depression. In this paper, the original EEG signal has been processed by a 1-50Hz bandpass filter, so the five frequency bands are set as delta (1-4Hz), theta (4-8Hz), alpha (8-12Hz), beta (12-30Hz) and gamma (30-50Hz). The EEG signals in the MODMA dataset are divided into the above five frequency bands to form a feature set, and the SCSAN network is used to test the EEG signals of different frequency bands. The results are shown in Table 2. By comparing the classification ability of depression in different frequency bands, it is found that the classification accuracy of theta, alpha, and beta frequency bands is better than that of other frequency bands, indicating that high-frequency EEG is more related to depression. The classification accuracy of theta frequency band can reach about 96.65%, indicating that the theta frequency band contributes the most to the depression EEG classification task. Moreover, by adding different modules for ablation experiments, our model SCSAN has the highest accuracy in different frequency bands.

[0116] Table 2 After channel selection

[0117]

[0118] Comparison of MODMA results under different methods:

[0119] To further verify the performance of the depression EEG classification model SCSAN, it was compared with other depression EEG experiments using the same dataset MODMA. The detailed experimental results are shown in Table 3. 1DCNN integrates gender and age factors into the one-dimensional CNN through the attention mechanism, prompting the one-dimensional CNN to explore the complex association between EEG signals and demographic factors. 1TD+L-TCN extracts the instantaneous amplitude and instantaneous frequency of the signal, and then uses the improved temporal convolutional network (L-TCN) to obtain the classification results. The AMG method integrates the bidirectional autoencoder, multi-head attention mechanism and graph convolutional network into one structure to further process the EEG features from the two aspects of hidden feature learning and spatial information aggregation. MGSN obtains multi-scale topological information in parallel and aggregates multi-channel spatiotemporal attributes by using multiple diffusion branches with different receptive fields. CNN+GRU first converts the EEG signal data into a brain spectrum with frequency domain and spatial features, and then uses CNN and GRU to identify depression. SparNet adds an attention mechanism to extract the spatial-frequency domain features of EEG in local brain regions and whole brain regions. Combining the model structure and experimental results, we can see that the model SCSAN in this paper integrates the time domain, frequency domain and spatial domain features of depression EEG signals through the attention mechanism, and the classification accuracy and F1 value reach about 97.24% and 97.18% respectively. This shows that the proposed model effectively captures the EEG semantic information related to the task and makes full use of the time-frequency-spatial domain characteristics of EEG signals. In addition, compared with the methods 1DCNN and SparNet, it uses fewer electrode channels but achieves better accuracy, and obtains the best results in the classification of depression patients and healthy controls in this dataset, which can provide better solutions for future real-time applications.

[0120] Table 3 Experimental results of different methods on the same dataset (MODMA)

[0121]

[0122] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0123] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

Claims

1. A method for diagnosing depression based on EEG based on multi-frequency domain decomposition, including a channel feature extraction module, firstly band-pass filtering the EEG signal to divide it into multiple frequency bands of δ (1-4 Hz), θ (4-8 Hz), α (8-12 Hz), β (12-30 Hz) and γ (30-50 Hz), and selecting the optimal channel of each frequency band through a channel selection strategy to extract key spatiotemporal features, and also including a convolution module and a self-attention module; It is characterized in that The following steps are also included: S1: CNN extracts local spatiotemporal features and captures global spatiotemporal relationships through Transformer; S2: Introducing channel attention and time attention mechanisms to enhance the model’s attention to important features of different channels and time periods; S3: Combine the spatiotemporal and frequency features to build a classification model for depression identification; The convolution module is designed by separating the two-dimensional convolution operator into two one-dimensional time and space convolution layers, and three layers are set; The first layer has s kernels of size (1, 25) and a stride of (1, 1), which means that the convolution is performed in the time dimension. The second layer retains s kernels of size (ch, 1) and stride (1, 1), where ch = the number of electrode channels of the EEG data. This layer acts as a spatial filter to learn the representation of the interaction between different electrode channels. Subsequently, batch normalization is used to speed up the training process and alleviate the overfitting problem, and elu is used as the nonlinear activation function. The third layer is the average pooling along the time dimension, with a kernel size of (1, 75) and a step size of (1, 15). The third layer smoothes the time features, avoiding overfitting and reducing computational complexity. The hyperparameter k is set to 40. Finally, the feature maps of the convolutional module are rearranged, the electrode channel dimension is compressed, and the convolution channel dimension is transposed with the time dimension. In this way, all feature channels at each time point are fed to the next module as tokens; The self-attention module consists of a given input , R is the set of real numbers, N is the number of sequences, M is the sampling points, and C is the number of channels; The context representation of each time step is extracted through two 1D causal convolutional layers with a convolution kernel size of 1×s, generating queries (Query, Q) and keys (Key, K) respectively, and values ​​(Value, V) are generated through a 1×1 convolutional layer: ; ; ; Among them, Conv represents convolution, s represents the size of the convolution kernel, and x is the given input; 1D causal convolution ensures that each time step can only focus on the previous time step information, and through the padding operation, the output shape is kept consistent with the input shape, in this way, Each time step of contains contextual semantic information; Reshape the Q, K, V matrices through the reshape operation to obtain a multi-head representation: ; ; ; Where N is the number of sequences, M is the sampling points, h is the number of attention heads, d is the number of channels of each attention head, and reshape is the reshaping operation; The attention matrix is ​​calculated in a local context manner and normalized by softmax (normalized exponential function): ; Among them, A is the normalized attention matrix, R is the set of real numbers in mathematics, Q is the query, K represents the key, T is the mathematical symbol transposition, h is the number of attention heads, and d is the number of channels of each attention head; Perform a weighted sum on V and restore it to the same shape as the input: ; ; ; is the output of the trend-aware attention mechanism; Among them, C is the number of channels, h is the number of attention heads, d is the number of channels of each attention head, Y is the output of the trend-aware attention mechanism, and V represents the value.

2. The method for diagnosing depression based on EEG based on multi-frequency domain decomposition according to claim 1, characterized in that: The bandpass filtered and normalized EEG data are input into the model, and then the data passes through the temporal and spatial convolutional layers in sequence and is arranged into tokens by the pooling layer. After that, N self-attention layers are used, and finally the fully connected layer outputs the classification results.

Citation Information

Cited By

  • Semantic feature and graph structure feature fused depression auxiliary analysis method

    CN120837076A