A method and system for auditory attention detection based on time-frequency domain fusion
By adopting the time-frequency domain fusion method in auditory attention detection, combined with CSP spatial filter, multi-band differential entropy and time/frequency residual network, the problem of low detection accuracy in multi-sound source environment is solved and a higher level is achieved. Detection accuracy.
Patent Information
- Application Number
- CN202410155072.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-02-02
AI Technical Summary
Existing auditory attention detection methods lack time-frequency domain fusion in multi-sound source environments, resulting in low detection accuracy.
A method based on time-frequency domain fusion is used to extract the spatial domain features of the EEG signal through the CSP spatial filter, and the multi-band differential entropy extracts the frequency domain features, and combines the temporal attention network and the frequency residual convolution network to perform feature fusion to improve Detection accuracy.
Through sliding window technology and feature fusion, the signal-to-noise ratio of the EEG signal is improved, more comprehensive features are obtained, and the accuracy of auditory attention detection is significantly improved.
Smart Images

Figure CN118121192B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electroencephalogram signal processing, and in particular to an auditory attention detection method based on time-frequency domain deterioration and a system thereof. Background Art
[0002] People have the ability to isolate and focus on a single sound source in a noisy, talkative environment, a skill often referred to as the cocktail party effect. However, people with hearing impairments may have reduced or completely lost the ability to focus on a specific speaker amidst background noise. Most existing hearing aids fail to address the fundamental challenge of accurately locating the target speaker. Based on previous neuroscience research, there is a link between brain activity and auditory attention, and decoding auditory attention from brain neural activity is auditory attention.
[0003] Auditory attention detection research mainly focuses on two paradigms: speaker identification and tracking spatial attention. Recent advances in neuroscience have revealed the connection between neural activity and auditory detection. Based on the conclusions, some studies have adopted stimulus reconstruction or speech envelope reconstruction methods, which require the use of clean auditory stimuli as input. However, most real-life scenes are multi-sound environments, and listeners receive a mixture of multiple sounds, which makes it a challenge to obtain clean auditory stimuli. Therefore, the research focuses on using only EEG signals as input to achieve tracking spatial attention.
[0004] Traditional auditory detection tasks rely on linear methods to process EEG signals, however, these linear methods often struggle with nonlinear mapping relationships, resulting in the need for longer decision windows. Previous studies have shown that each frequency band contains different spatial features, depicting different states of the human body. Therefore, some studies focus on the frequency of EEG signals. They use convolutional neural networks to decode from frequency bands with good performance, extract differential entropy from frequency bands and project it onto a two-dimensional topological map. However, it ignores the dynamic time-varying characteristics of EEG signals. Other studies focus on the temporal aspect of EEG signals. Some of them directly use convolutional networks to decode the time domain, while others introduce attention mechanisms because EEG signals are essentially time series data, and both methods have achieved successful results. Although EEG time series signals have rich time-varying information, their limited spectral-spatial features in the time domain indicate weak correlation with human spatial attention. Therefore, it is necessary to fuse the time domain and frequency domain to obtain more comprehensive features. However, there is no work exploring the fusion of time domain and frequency domain features in auditory detection. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an auditory attention detection method and system based on time-frequency domain fusion, which can solve the problem of low detection accuracy caused by lack of time-frequency domain fusion in auditory detection work.
[0006] To solve the above technical problems, the first technical solution adopted by the present invention is to provide an auditory attention detection method based on time-frequency domain fusion, which is used to detect the spatial orientation of a target sound source in a multi-sound source environment, comprising the following steps:
[0007] S1: Obtain the EEG signal to be detected in a multi-sound source scene, perform preprocessing, and divide it into N sliding windows according to the size of the decision window;
[0008] S2: Extract the spatial features of the EEG signal through a CSP spatial filter;
[0009] S3: Divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band by multi-band differential entropy extraction, project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane;
[0010] S4: Input the data processed by the CSP spatial filter into the temporal attention network to extract its temporal features;
[0011] S5: Input the EEG signal extracted by multi-band differential entropy into the frequency residual convolution network to extract frequency domain features;
[0012] S6: The time domain features and frequency domain features are fused, and the left / right spatial direction probability of auditory attention is obtained through a classifier.
[0013] In a preferred embodiment of the present invention, the specific steps of step S1 include:
[0014] Firstly, the EEG signals to be detected in the multi-sound source scenario are filtered to remove the 50Hz line noise and harmonics;
[0015] Secondly, the EEG signal is band-pass filtered from 0.1Hz to 50Hz;
[0016] Then, the EEG signal is resampled to a specific frequency using a resampling technique based on fast Fourier transform;
[0017] Finally, the EEG signal data is normalized to ensure that the data variance is zero. At the same time, the EEG signal is divided into N sliding windows with 50% overlap according to the resampling frequency and decision window size during preprocessing.
[0018] In a preferred embodiment of the present invention, in step S2, the expression of the CSP spatial domain filter is as follows:
[0019]
[0020] Where W is the CSP spatial filter coefficient, W T Transpose its corresponding irepresents the covariance matrix corresponding to the i-th target category; X represents the EEG signal; J(W) is the objective function to be optimized; Z is the spatial feature extracted by the CSP spatial filter.
[0021] In a preferred embodiment of the present invention, in step S3, the multi-band differential entropy expression is as follows:
[0022]
[0023] Where FFT is Fourier transform; i m represents the i-th EEG signal in the m-th frequency band; N represents the total number of EEG signal segments, h m Represents the value of the differential entropy of the mth frequency band.
[0024] In a preferred embodiment of the present invention, in step S3, the three-dimensional EEG electrode coordinates are projected onto a two-dimensional plane using azimuth projection, and the expression of azimuth projection is as follows:
[0025]
[0026] Where x, y, z are the three-dimensional spatial coordinates of the EEG electrode; θ represents the elevation angle, that is, the angle between the coordinate point and the z-axis; φ represents the azimuth angle, that is, the angle between the coordinate point on the xy plane and the positive x-axis; ρ represents the angular distance from the coordinate point to the pole; x′, y′ represent the coordinates of the coordinate point in the two-dimensional plane, respectively.
[0027] In a preferred embodiment of the present invention, in step S4, the method for extracting time domain features from the EEG signal includes:
[0028] The EEG signal is encoded through a layer of Transformer Encoder, and then the time domain features are extracted through one-dimensional convolution, adaptive average pooling layer and two fully connected layers.
[0029] In a preferred embodiment of the present invention, in step S5, the method for extracting frequency domain features in the EEG signal includes:
[0030] The multi-band EEG signals are feature extracted through a three-dimensional convolution layer and a maximum pooling layer, and then the frequency domain features are extracted after passing through three residual blocks, a three-dimensional convolution, a three-dimensional batch normalization and an adaptive average pooling layer.
[0031] In order to solve the above technical problems, the second technical solution adopted by the present invention is to provide an auditory attention detection system based on time-frequency domain fusion, comprising:
[0032] The EEG signal acquisition and processing module is used to acquire the EEG signals to be detected in a multi-sound source scenario, perform preprocessing, and divide them into N sliding windows according to the size of the decision window;
[0033] A spatial feature extraction module is used to extract the spatial features of EEG signals through a CSP spatial filter;
[0034] The multi-band differential entropy module is used to divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band through multi-band differential entropy extraction, and then project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane;
[0035] A temporal attention module, used for inputting the data processed by the spatial domain feature extraction module into a temporal attention network to extract its temporal features;
[0036] A frequency residual module, used for inputting the multi-band differential entropy extracted by the multi-band differential entropy module into a frequency residual convolutional network to extract frequency domain features;
[0037] The feature fusion and classifier module is used to perform feature fusion on the time domain features extracted by the time attention module and the frequency domain features extracted by the frequency residual module, and obtain the left / right spatial direction probability of auditory attention through a classifier.
[0038] In order to solve the above technical problems, the third technical solution adopted by the present invention is: to provide a device for decoding auditory attention, which is composed of a storage device, a processing unit, and a software program loaded in the storage device and executable on the processing unit, and is characterized in that when the processing unit runs the software program, it can construct a network model and execute the auditory attention detection method based on time-frequency domain fusion as described in any of the above items.
[0039] In order to solve the above technical problems, the fourth technical solution adopted by the present invention is: to provide a non-transitory computer-readable storage medium storing computer instructions, characterized in that the computer instructions are used to enable the computer to execute the auditory attention detection method based on time-frequency domain fusion as described in any of the above items.
[0040] The beneficial effects of the present invention are:
[0041] The present invention uses a sliding window technique to divide the signal into continuous time segments based on the frequency characteristics of the preprocessed EEG signal when processing EEG signal data, so as to more accurately evaluate the time response of the listener in the attention switch;
[0042] Through CSP spatial domain filter and multi-band differential entropy feature extraction, the time domain information and frequency domain information of EEG signals are extracted, which improves the signal-to-noise ratio of EEG signals.
[0043] The present invention extracts features of EEG signals from the time domain and frequency domain respectively, which not only includes the time-varying characteristics of EEG signals but also the spectral space characteristics, so as to obtain more comprehensive EEG signal features. After feature fusion, the prediction results obtained by the classifier are more accurate than those of the existing methods, thereby improving the accuracy of auditory attention detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flow chart of the auditory attention detection method based on time-frequency domain fusion of the present invention;
[0045] Figure 2 It is a structural block diagram of the auditory attention detection system based on time-frequency domain fusion. DETAILED DESCRIPTION
[0046] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0047] See also Figure 1 , the embodiment of the present invention includes:
[0048] An auditory attention detection method based on time-frequency domain fusion is used to detect the spatial orientation of a target sound source in a multi-sound source environment, comprising the following steps:
[0049] S1: Obtain the EEG signal to be detected in a multi-sound source scene, perform preprocessing, and divide it into N sliding windows according to the size of the decision window;
[0050] The EEG signal to be detected needs to be preprocessed: first, the 50Hz line noise and harmonics need to be filtered out; secondly, the EEG signal is band-pass filtered from 0.1Hz to 50Hz; then, the EEG signal is resampled to a specific frequency using a resampling technique based on fast Fourier transform; finally, the EEG signal data is normalized to ensure that the data variance is zero.
[0051] The EEG data after preprocessing is divided into N sliding windows according to the resampling frequency and decision window size during preprocessing. The decision window size can be a value within 5s, and there is a 50% overlap between each sliding window, and its size is the resampling frequency during preprocessing multiplied by the size of the decision window.
[0052] S2: Extract the spatial features of the EEG signal through a CSP spatial filter;
[0053] Specifically, the expression of the CSP spatial domain filter is as follows:
[0054]
[0055] Where W is the CSP spatial filter coefficient, W T Transpose its corresponding i represents the covariance matrix corresponding to the i-th target category; X represents the EEG signal; J(W) is the objective function to be optimized; Z is the spatial feature extracted by the CSP spatial filter.
[0056] S3: Divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band by multi-band differential entropy extraction, project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane;
[0057] Specifically, the multi-band differential entropy expression is as follows:
[0058]
[0059] Where FFT is Fourier transform; i m represents the i-th EEG signal in the m-th frequency band; N represents the total number of EEG signal segments, h m Represents the value of the differential entropy of the mth frequency band.
[0060] The differential entropy values of each channel are mapped to a two-dimensional plane using azimuth projection. The expression of azimuth projection is as follows:
[0061]
[0062] Where x, y, z are the three-dimensional spatial coordinates of the EEG electrode; θ represents the elevation angle, that is, the angle between the coordinate point and the z-axis; φ represents the azimuth angle, that is, the angle between the coordinate point on the xy plane and the positive x-axis; ρ represents the angular distance from the coordinate point to the pole; x′, y′ represent the coordinates of the coordinate point in the two-dimensional plane, respectively.
[0063] Finally, the Clough-Tocher interpolation method is used to estimate the differential entropy values on the two-dimensional 32×32 grid from the original differential entropy values under each three-dimensional coordinate.
[0064] S4: Input the data processed by the CSP spatial filter into the temporal attention network to extract its temporal features;
[0065] Specifically, the temporal attention network extracts the time domain features in the EEG signal according to the following steps:
[0066] The EEG signal is encoded through a layer of Transformer Encoder to encode the input data, and then the time domain features are extracted through a one-dimensional convolution (convolution kernel: 64×7, step size: 1), an adaptive average pooling layer (output: 1) and two fully connected layers (input: 64, middle: 16, output: 4).
[0067] S5: Input the EEG signal extracted by multi-band differential entropy into the frequency residual convolution network to extract frequency domain features;
[0068] The method for extracting frequency domain features in EEG signals using a frequency residual convolutional network includes:
[0069] The multi-band EEG signals are feature extracted through a three-dimensional convolution layer and a maximum pooling layer, and then the frequency domain features are extracted after passing through three residual blocks, a three-dimensional convolution, a three-dimensional batch normalization and an adaptive average pooling layer.
[0070] Specifically, the frequency residual convolutional network regards the multi-band EEG signal as a single-channel data, inputs a three-dimensional convolution layer (convolution kernel: 32×1×7×7) and a three-dimensional batch normalization layer, and then passes through three residual blocks, a three-dimensional convolution (convolution kernel: 4×1×1×1), a three-dimensional batch normalization and an adaptive average pooling layer (output: 1×1×1) to flatten it and extract frequency domain features.
[0071] Among them, the specific structure of the residual block is as follows:
[0072] The first layer is a 1×1 convolution, the second layer is a 3×3 convolution, and the third layer is also a 1×1 convolution. There is a jump connection after the third layer, and the output is adjusted by a 1×1 convolution. There is a dropout layer with a probability of 0.3 before the output.
[0073] S6: The time domain features and frequency domain features are fused, and the left / right spatial direction probability of auditory attention is obtained through a classifier.
[0074] The two features of the time domain and the frequency domain are concatenated into a new vector, and then a fully connected layer (input: 8, output: 1) is used to implement the classifier function to obtain the left / right probability of auditory attention. If the probability of auditory attention on the left side is greater than that on the right side, it indicates that the auditory attention is on the left side; otherwise, it is on the right side.
[0075] This example uses prediction accuracy as the evaluation object and probability error as the training target. The loss function is used to reduce the probability error to iterate the training parameters. The specific loss function is as follows:
[0076]
[0077] Among them, N is the total number of samples, y i Denotes the true label of the i-th sample, Q i It is expressed as the corresponding predicted probability and L is the corresponding loss value.
[0078] After multiple iterations, the training parameters with the smallest loss are selected as the trained model parameters for auditory attention detection.
[0079] See also Figure 2 In the example of the present invention, an auditory attention detection system based on time-frequency domain fusion is also provided, including:
[0080] The EEG signal acquisition and processing module is used to acquire the EEG signals to be detected in a multi-sound source scenario, perform preprocessing, and divide them into N sliding windows according to the size of the decision window;
[0081] A spatial feature extraction module is used to extract the spatial features of EEG signals through a CSP spatial filter;
[0082] The multi-band differential entropy module is used to divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band through multi-band differential entropy extraction, and then project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane;
[0083] A temporal attention module, used for inputting the data processed by the spatial domain feature extraction module into a temporal attention network to extract its temporal features;
[0084] A frequency residual module, used for inputting the multi-band differential entropy extracted by the multi-band differential entropy module into a frequency residual convolutional network to extract frequency domain features;
[0085] The feature fusion and classifier module is used to perform feature fusion on the time domain features extracted by the time attention module and the frequency domain features extracted by the frequency residual module, and obtain the left / right spatial direction probability of auditory attention through a classifier.
[0086] An auditory attention detection system based on time-frequency domain fusion in this example can execute an auditory attention detection method based on time-frequency domain fusion provided by the present invention, and can execute any combination of implementation steps of the method example, and has the corresponding functions and beneficial effects of the method.
[0087] In an example of the present invention, a device for decoding auditory attention is also provided, which is composed of a storage device, a processing unit, and a software program loaded in the storage device and executable on the processing unit. It is characterized in that when the processing unit runs the software program, it can construct a network model and execute the auditory attention detection method based on time-frequency domain fusion as described in any of the above items.
[0088] The method mentioned above can be implemented in software form through various types of memory, including internal memory (such as hard disk, RAM) and external storage devices (such as USB flash drive, SD card). These memories are not only used to store operating systems and application software, but also to temporarily save data. Specifically in this example, it can be designed as a stand-alone program, stored on a device such as a solid-state drive, and can be started by an external trigger.
[0089] In an example of the present invention, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to enable the computer to execute the auditory attention detection method based on time-frequency domain fusion as described in any one of the above items.
[0090] In the example of the present invention, an experimental verification is also carried out for the auditory attention detection method based on time-frequency domain fusion provided:
[0091] KUL and DTU are two public datasets for auditory attention detection, both of which are dual-speaker scenarios. Existing mainstream models all conduct auditory attention detection experiments on these two datasets. Similar to the previous mainstream models, this embodiment applies the method described in the present invention to conduct auditory attention detection experiments on these two datasets.
[0092] Table 1 shows the accuracy of auditory attention detection of the present invention and other mainstream models on the KUL dataset:
[0093]
[0094] Table 2 shows the accuracy of auditory attention detection of the present invention and other mainstream models on the DTU dataset:
[0095]
[0096]
[0097] It can be seen from the results in Table 1 and Table 2 that the present invention and the current mainstream model have different degrees of improvement under the conditions of decision sizes of 1 second and 2 seconds. This result confirms the effectiveness and superiority of the present invention in auditory attention detection.
[0098] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An auditory attention detection method based on time-frequency domain fusion, characterized in that: The method is used to detect the spatial orientation of a target sound source in a multi-sound source environment, comprising the following steps: S1: Obtain the EEG signal to be detected in a multi-sound source scene, perform preprocessing, and divide it into N sliding windows according to the size of the decision window; S2: Extract the spatial features of EEG signals through a CSP spatial filter; S3: Divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band by multi-band differential entropy extraction, project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane; S4: Input the data processed by the CSP spatial filter into the temporal attention network to extract its temporal features; S5: Input the EEG signal extracted by multi-band differential entropy into the frequency residual convolution network to extract frequency domain features; S6: The time domain features and frequency domain features are fused, and the left / right spatial direction probability of auditory attention is obtained through a classifier.
2. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: The specific steps of step S1 include: Firstly, the EEG signals to be detected in the multi-sound source scenario are filtered to remove the 50Hz line noise and harmonics; Secondly, the EEG signal is band-pass filtered from 0.1Hz to 50Hz; Then, the EEG signal is resampled to a specific frequency using a resampling technique based on fast Fourier transform; Finally, the EEG signal data is normalized to ensure that the data variance is zero. At the same time, the EEG signal is divided into N sliding windows with 50% overlap according to the resampling frequency and decision window size during preprocessing.
3. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: In step S2, the expression of the CSP spatial domain filter is as follows: Where W is the CSP spatial filter coefficient, W T Transpose its corresponding i represents the covariance matrix corresponding to the i-th target category; X represents the EEG signal; J(W) is the objective function to be optimized; Z is the spatial feature extracted by the CSP spatial filter.
4. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: In step S3, the multi-band differential entropy expression is as follows: Where FFT is Fourier transform; i m represents the i-th EEG signal in the m-th frequency band; N represents the total number of EEG signal segments, h m Represents the value of the differential entropy of the mth frequency band.
5. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: In step S3, the three-dimensional EEG electrode coordinates are projected onto a two-dimensional plane using azimuth projection. The expression of azimuth projection is as follows: Where x, y, z are the three-dimensional spatial coordinates of the EEG electrode; θ represents the elevation angle, that is, the angle between the coordinate point and the z-axis; φ represents the azimuth angle, that is, the angle between the coordinate point on the xy plane and the positive x-axis; ρ represents the angular distance from the coordinate point to the pole; x′, y′ represent the coordinates of the coordinate point in the two-dimensional plane, respectively.
6. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: In step S4, the method for extracting time domain features from the EEG signal includes: The EEG signal is encoded through a layer of Transformer Encoder, and then the time domain features are extracted through one-dimensional convolution, adaptive average pooling layer and two fully connected layers.
7. The auditory attention detection method based on time-frequency domain fusion according to claim 1 is characterized in that: In step S5, the method of extracting frequency domain features from the EEG signal includes: The multi-band EEG signals are feature extracted through a three-dimensional convolution layer and a maximum pooling layer, and then the frequency domain features are extracted after passing through three residual blocks, a three-dimensional convolution, a three-dimensional batch normalization and an adaptive average pooling layer.
8. An auditory attention detection system based on time-frequency domain fusion, characterized in that: include: The EEG signal acquisition and processing module is used to acquire the EEG signals to be detected in a multi-sound source scenario, perform preprocessing, and divide them into N sliding windows according to the size of the decision window; A spatial feature extraction module is used to extract the spatial features of EEG signals through a CSP spatial filter; The multi-band differential entropy module is used to divide the EEG signal into multiple frequency bands, obtain the differential entropy of the EEG signal in each frequency band through multi-band differential entropy extraction, and then project it onto a two-dimensional plane, and use the interpolation method to obtain the value of the multi-band differential entropy of the two-dimensional plane; A temporal attention module, used for inputting the data processed by the spatial domain feature extraction module into a temporal attention network to extract its temporal features; A frequency residual module, used for inputting the multi-band differential entropy extracted by the multi-band differential entropy module into a frequency residual convolutional network to extract frequency domain features; The feature fusion and classifier module is used to perform feature fusion on the time domain features extracted by the time attention module and the frequency domain features extracted by the frequency residual module, and obtain the left / right spatial direction probability of auditory attention through a classifier.
9. An apparatus for decoding auditory attention, comprising a storage device, a processing unit, and a software program loaded into the storage device and executable on the processing unit, characterized in that: When the processing unit runs the software program, it is able to construct a network model and execute the auditory attention detection method based on time-frequency domain fusion as described in any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the auditory attention detection method based on time-frequency domain fusion as described in any one of claims 1-7.
