Multi-feature sequence spatial-temporal feature fusion electroencephalogram depression detection method

Through the multi-feature sequence spatio-temporal feature fusion of the SFFNet network model, combined with LGTN, SCCN and PAM modules, the problem of difficulty in capturing complex features in the existing technology is solved, and the accuracy and robustness of depression recognition in EEG signals are improved.

CN118656691AActive Publication Date: 2024-09-17NORTHEAST FORESTRY UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410643288.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-17
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing EEG signal depression recognition technology is difficult to fully capture complex features. Traditional machine learning methods require a lot of time for feature engineering. Deep learning models do not fully utilize the complementary relationship between spatio-temporal features, which affects classification accuracy.

Method used

A depression detection method in EEG signals based on spatio-temporal feature fusion learning of multi-feature sequences is proposed. The SFFNet network model comprehensively considers time domain, frequency domain and spatial features, uses multi-band feature maps and EEG time series, and combines LGTN, SCCN and PAM modules. Perform feature extraction and fusion.

Benefits of technology

It improves the accuracy and robustness of depression recognition in EEG signals, enhances the information extraction ability of depression-related information, and improves the model's learning ability and recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656691A
    Figure CN118656691A
Patent Text Reader

Abstract

The beneficial effects of the invention are that the method comprehensively considers that the current deep learning model does not fully utilize the complementary relation among the space, frequency domain and time features, and the classification accuracy of the model is affected. In order to solve the problem, the invention provides a spatial-temporal feature fusion network (SFFNet) based on a feature image sequence and a time sequence for electroencephalogram depression identification. The method comprises the following steps: fully considering the difference of EEG among subjects in the aspect of EEG data, identifying robust features with discrimination capability from the EEG, windowing the data, constructing a feature matrix graph by using a topological structure of a signal channel in a brain space and the voltage density of the signal channel, and performing channel superposition on multi-band feature graphs to form a multi-channel feature graph sequence; and the windowed EEG time sequence corresponding to the EEG time sequence is used for time feature extraction. The SCCN and LGTN network modules in the SFFNet are used for extracting related features, the PAM and SWAM attention modules are used for carrying out feature fusion on the extracted features, multi-feature complementary fusion of EEG is achieved, and the learning ability of the network on multiple features and the accuracy of network recognition are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The present invention relates to the field of medical signal processing, and in particular to an electroencephalogram signal depression detection method by fusing spatiotemporal features of multiple feature sequences. Background technology:

[0002] Depression is a serious mental health disorder that is usually manifested by persistent, severe depressed mood and loss of interest in daily life. The diagnosis of depression usually relies on the patient's subjective report and the doctor's clinical judgment, which may lead to misdiagnosis or missed diagnosis. In contrast, electroencephalography is a non-invasive neurophysiological technique for measuring the electrical activity of the brain. It is used to detect neurological diseases. EEG signals provide the necessary features for depression recognition, which shows that depression recognition based on EEG signals is feasible. To date, most EEG depression recognition technologies have focused on solving two main problems: 1) How to extract discriminative depression-related features from EEG signals; 2) How to build a more efficient depression recognition model.

[0003] Early researchers built a variety of machine learning models for depression recognition, using a variety of machine learning algorithms such as random forests, logistic regression, and support vector machines to build binary classification models. However, traditional machine learning methods usually require manual design and extraction of features, which may require domain expertise and experience. The feature engineering process may be time-consuming and may not capture underlying complex features. This may lead to unstable performance of the model in actual clinical applications.

[0004] Deep learning has emerged in biomedical signal recognition with more powerful feature learning, large-scale data processing, and flexibility. Although it is a powerful machine learning technology, its internal operation is difficult to explain. Current EEG signal research is limited to extracting single features of time domain, frequency domain or spatial information, which cannot fully reflect psychological states such as depression, limiting its in-depth understanding.

[0005] To solve the above problems, the present invention learns more effective feature representations for brain decoding based on EEG. Inspired by the advantages of combining multiple features in 3D convolutional attention neural networks and 4D convolutional recurrent neural networks, we propose a new depression recognition method. Summary of the invention:

[0006] The present invention proposes a method for detecting depression in EEG signals by fusion learning of spatiotemporal features of multi-feature sequences. The method inputs multi-band feature graph representation and EEG time series into the SFFNet network model that considers multi-feature information for classification. This method comprehensively considers EEG signal features from multiple aspects, and integrates the difference feature information in the time domain, frequency domain, and left and right cerebral hemispheres through a feature graph constructed with voltage density as the core. Thus, information related to depression is enhanced in the spatial, temporal, and frequency dimensions.

[0007] A method for detecting depression in electroencephalogram signals by fusion learning of spatiotemporal features of multi-feature sequences, characterized by comprising the following steps:

[0008] Step 1: Preprocess the data and use the designed algorithm to extract its features;

[0009] Step 2: Construct a spatiotemporal feature fusion network structure SFFNet for the sequence weight attention module designed for the present invention;

[0010] Step 3: Use SFFNet to train the processed data and verify the performance of SFFNet.

[0011] The implementation of step 1 includes:

[0012] Step 1.1: First, filter the signal using a 50Hz notch filter.

[0013] Step 1.2: The signal from the second stage is filtered by a fourth-order Butterworth bandpass filter;

[0014] Step 1.3: Fast independent component analysis (fast ICA) to remove artifacts of electrooculogram and electromyography signals;

[0015] Step 1.4: Window the signal into 60 1-second time series without overlapping;

[0016] Step 1.5: Use the designed algorithm to convert the signal into a multi-band feature image;

[0017] The implementation of step 2 includes:

[0018] Step 2.1: Use the LGTN module to learn the time series features of EEG;

[0019] Step 2.2: Use the SCCN module to receive the input multi-band feature image;

[0020] Step 2.3: Use the PAM module and the improved SWAM module to process the feature inputs from the SCCN module and the LGTN module respectively;

[0021] The implementation of step 3 includes:

[0022] Step 3.1: Use SFFNet to train the processed data;

[0023] Step 3.2: Compare the performance with recent state-of-the-art methods.

[0024] Beneficial results of the present invention: The present invention comprehensively considers that the current deep learning model does not fully utilize the complementary relationship between spatial, frequency domain and temporal features, which affects the classification accuracy of the model. To solve this problem, this paper proposes a spatiotemporal feature fusion network (SFFNet) based on feature image sequence and time series for EEG depression recognition. In terms of EEG data, the differences between subjects are fully considered, and robust features with discriminative ability are identified from EEG. After the data is windowed, the signal channel is used to construct a feature matrix diagram with its voltage density in the brain space topological structure and the multi-band feature diagrams are channel-superimposed to form a multi-channel feature diagram sequence, and the corresponding windowed EEG time series is used as time feature extraction. The SCCN and LGTN network modules in SFFNet are used to extract relevant features, and the PAM and SWAM attention modules are used to fuse the extracted features to achieve EEG multi-feature complementary fusion, which improves the network's learning ability on multiple features and the accuracy of network recognition. Description of the drawings:

[0025] Figure 1 This is the overall flow chart of the method.

[0026] Figure 2 This is the overall framework diagram of the method.

[0027] Figure 3 This is the SFFNet model structure diagram.

[0028] Figure 4 This is the structure diagram of the PAM module and the improved SWAM module. Specific implementation method:

[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. 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;

[0030] Figure 1 is an overall flow chart of the method of the present invention, Figure 2 This is the overall framework diagram of the method. Figure 3 This is the SFFNet model structure diagram. Figure 4 This is the structure diagram of the PAM module and the improved SWAM module, such as Figure 1 Figure 2 Figure 3 Figure 4 As shown, the method includes:

[0031] Step 1.1: Select a 50Hz notch filter to filter the signal for the first time;

[0032] Step 1.2: Select a fourth-order Butterworth bandpass filter to filter the signal in the second stage;

[0033] Step 1.3: Use fast independent component analysis (fast ICA) to remove artifacts of electrooculogram and electromyography signals;

[0034] Step 1.4: Select the sample points within the first minute of 19 channels and transform the EEG signals into 60 1-second time series without overlapping windows;

[0035] Step 1.5: Use discrete Fourier transform (DFT) in the frequency domain to convert the EEG signal in the time domain into relevant information in the frequency domain, divide the frequency domain into frequency bands, and derive the voltage density of each channel in each frequency band. The formula is:

[0036]

[0037] Where i is the number of channels, x i [n] is the discrete time signal, X i [k] is the discrete Fourier transform of the signal in the frequency domain. k is a discrete frequency index, usually ranging from 0 to N-1, where N is the length of the signal. The following is the voltage density calculation process. We have a given channel signal X i The discrete Fourier transform result of [k] is:

[0038] X i [k]=[X(0),X(1),X(2),...,X(N-1)]

[0039] Where N is the length of the signal. Frequency domain signal X i The magnitude spectrum (absolute value spectrum) of [k] is Z i [k] can be expressed as:

[0040] Z i [k]=|X i [k]|=[|X(0)|, |X(1)|, |X(2)|,..., |X(N / 2)|]

[0041] In the above formula, [X(0), X(1), X(2), ..., X(N / 2)] is the complex value corresponding to the frequency component, and [|X(0)|, lX(1)|, lX(2)|, ..., |X(N / 2)|] is the corresponding amplitude value, that is, the amplitude spectrum. Finally, the voltage density of the five frequency bands of δ wave, θ wave, α wave, β wave and γ wave is calculated as:

[0042]

[0043] In the above formula, j is the corresponding frequency band index, V i [j] is the voltage density, 'band_start' and 'band_end' are the beginning and end of the corresponding frequency band;

[0044] Take the V you have obtained i [j] data are arranged (where V is the voltage density, i is the corresponding channel number, and j is the corresponding frequency band index). After extracting the features, it is mapped into the feature image G of the multi-band channel of the nth EEG test n ∈R H×W×J , the conversion function of the feature image converted to a multi-band channel is:

[0045]

[0046] The implementation of step 2 includes:

[0047] Step 2.1: Input the EEG time series into the multi-scale temporal convolution layer in LGTN. The length of the temporal convolution kernel in the layer is set to the EEG sampling rate (f s ) in different proportions. This proportionality coefficient is recorded as a k , where k represents the level of the temporal convolutional layer, and the value of k varies from 1 to k (a = 0.5, k = 3). Therefore, the size of the T kernels in the kth layer can be expressed as The specific formula is:

[0048]

[0049] The EEG signal is input into the long short-term memory recurrent neural network after multi-scale convolution;

[0050] Step 2.2: Use the spatial component smart convolutional network SCCN to learn the temporal and spatial correlations in EEG signals. The structure is as follows Figure 3 As shown, the data is filtered in the spatial domain;

[0051] Step 2.3: Use the spatial attention module PAM after the SCCN module to process local features and establish a contextual relationship model. The specific implementation is to set the local features of the given multi-band feature image as P∈R D×H×W, which is input into the convolutional layer to generate two new feature maps A, B∈R respectively. D×H×W , and then reshape them into R D×N After that, matrix multiplication is performed between the transpose of A and B, and a softmax layer is applied to compute the spatial attention map, as follows:

[0052]

[0053] where f ji It is to calculate the influence of the i-th position on the j-th position. The feature P is also input into the convolution layer to generate a new feature map C∈R D×H×W , multiply it by the scaling factor α, and perform an element-wise sum operation on the feature A to obtain the final output G j The specific formula is:

[0054]

[0055] After the LGTN module, the improved sequence weighted attention module SWAM based on the dual attention module is used. Let L be the sequence input set, which can be defined as:

[0056] L={L1,L2,…,L D}

[0057] Where D represents the EEG sequence channel. The permutation layer implements the dimensionality conversion of the set L to obtain the set L′. The set L′ is passed through the softmax layer to obtain the sequence weight attention matrix Y′, which can be expressed as:

[0058]

[0059] The matrix Y′ is realized by permutation layer i Dimension conversion, get the matrix Y i The result is then multiplied by the scale parameter β and element-wise summed with L to obtain the final output:

[0060]

[0061] The implementation of step 3 includes:

[0062] Step 3.1: Use SFFNet to train the processed data and use the average results of 10 cross-validation to evaluate the performance of the model;

[0063] Step 3.2: This experiment is compared with previous similar works that used hybrid neural networks and EEG signals to automatically detect several neurological diseases. The results are shown in Table 1.

[0064] Table 1 Comparison results of this experiment with other similar experiments.

[0065]

[0066] It should be understood that parts not elaborated in detail in this specification belong to the prior art.

[0067] The above description in combination with the accompanying drawings is only a specific implementation method and process of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art should understand that this is only an example, and various changes and substitutions can be made to this implementation method without departing from the essence of the present invention. The scope of the present invention is limited only by the attached claims.

[0068] The embodiments of the present invention described with reference to the accompanying drawings are exemplary and are only used to explain the present invention. They should not be understood as limiting the present invention. The specific scope of the embodiments of the present invention is not limited thereto. On the contrary, all embodiments of the present invention include all changes and modifications that fall within the spirit and connotation of the appended claims.

Claims

1. A method for detecting depression in EEG signals based on spatiotemporal feature fusion learning of multi-feature sequences, characterized in that: The steps include: Step 1: Preprocess the data and use the designed algorithm to extract its features; Step 2: Construct a spatiotemporal feature fusion network structure SFFNet for the sequence weight attention module designed for the present invention; Step 1 specifically includes the following steps: Step 1.1: Select a 50Hz notch filter to filter the signal for the first time; Step 1.2: Select a fourth-order Butterworth bandpass filter to filter the signal in the second stage; Step 1.3: Use fast independent component analysis (fast ICA) to remove artifacts of electrooculogram and electromyography signals; Step 1.4: Window the selected 19-channel EEG signals into 60 1-second time series without overlapping; Step 1.5: Use discrete Fourier transform (DFT) in the frequency domain to convert the EEG signal into relevant information in the frequency domain, divide the frequency domain into frequency bands, and derive the voltage density of each channel in each frequency band. The formula is: Where i is the number of channels, x i [n] is a discrete time signal, X i [k] is the discrete Fourier transform of the signal in the frequency domain. k is the discrete frequency index and N is the length of the signal. The following is the voltage density calculation process. We have a given channel signal X i The discrete Fourier transform result of [k] is: X i [k]=[X(0),X(1),X(2),...,X(N-1)] Where N is the length of the signal. Frequency domain signal X i The magnitude spectrum (absolute value spectrum) of [k] is Z i [k] can be expressed as: Z i [k]=∣X i [k]∣=[∣X(0)∣,∣X(1)∣,∣X(2)∣,...,∣X(N / 2)∣] In the above formula, [X(0), X(1), X(2), ..., X(N / 2)] is the complex value corresponding to the frequency component, and [|X(0)|, |X(1)|, |X(2)|, ..., |X(N / 2)|] is the corresponding amplitude value, that is, the amplitude spectrum. Finally, the voltage density of the five frequency bands of δ wave, θ wave, α wave, β wave and γ wave is calculated as: In the above formula, j is the corresponding frequency band index, V i [j] is the voltage density, 'band_start' and 'band_end' are the beginning and end of the corresponding frequency band; The obtained V i [j] data are arranged (where V is the voltage density, i is the corresponding channel number, and j is the corresponding frequency band index). After extracting the features, it is mapped into the feature image G of the multi-band channel of the nth EEG test n ∈R H×W×J , the conversion function of the feature image converted to a multi-band channel is: Step 2 specifically includes the following steps: Step 2.1: Input the EEG time series into the multi-scale temporal convolution layer in LGTN. The length of the temporal convolution kernel in the layer is set to the EEG sampling rate (f s ) in different proportions. This proportionality coefficient is recorded as a k , where k represents the level of the temporal convolutional layer, and the value of k varies from 1 to k (a = 0.5, k = 3). Therefore, the size of the T kernels in the kth layer can be expressed as The specific formula is: The EEG signal is input into the long short-term memory recurrent neural network after multi-scale convolution; Step 2.2: Use the spatial component smart convolutional network SCCN to learn the temporal and spatial correlation in the EEG signal. The structure is shown in Figure 3 to filter the data in the spatial domain; Step 2.3: After the SCCN module, a spatial attention module PAM is used to process local features and build a contextual relationship model. After the LGTN module, a sequence weighted attention module SWAM is used, which is improved based on the dual attention module. Let L be the sequence input set, which can be defined as: L={L1,L2,…,L D } Where D represents the EEG sequence channel. The permutation layer implements the dimensionality conversion of the set L to obtain the set L′. The set L′ is passed through the softmax layer to obtain the sequence weight attention matrix Y′, which can be expressed as: The matrix Y′ is realized by permutation layer i Dimension conversion, get the matrix Y i The result is then multiplied by the scale parameter β and element-wise summed with L to obtain the final output:

Citation Information

Patent Citations

  • Method for extracting electroencephalogram characteristic based on quantitative electroencephalogram

    CN102715903A

  • Depression diagnosis method based on multistage spatial-temporal characteristics and mixed attention network

    CN113782190A

  • Emotion recognition method based on twin network architecture and graph convolution

    CN114330436A

  • Method for realizing a multi-channel convolutional recurrent neural network EEG emotion recognition model using transfer learning

    US20230039900A1