A fatigue EEG recognition method combined with spatial distribution correlation analysis
By combining spatial distribution correlation analysis methods, combined with multi-modal indicators and dimensionality reduction technology, the accuracy and efficiency problems of mental fatigue identification in the existing technology are solved, and efficient and accurate fatigue discrimination for different people and tasks is achieved.
Patent Information
- Application Number
- CN202410531155.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-04-29
AI Technical Summary
It is difficult for the existing technology to accurately judge the mental fatigue of different people and different tasks through a single indicator, especially in cortical coupling systems based on fast visual presentation, resulting in low accuracy and efficiency of fatigue EEG recognition.
The method of joint spatial distribution correlation analysis is used to construct joint spatial distribution characteristics through the fusion of multi-modal indicators such as time domain segmentation, multi-scale frequency band power spectrum, channel correlation, multi-band channel coherence and phase locking value, and Task-related component analysis and principal component analysis reduce dimensionality to improve the accuracy and speed of fatigue EEG recognition.
It achieves robustness and accuracy in identifying mental fatigue for different people and tasks, improves recognition speed and accuracy, reduces noise interference, and enhances the stability and computational efficiency of the algorithm.
Smart Images

Figure CN118412117B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mental fatigue recognition, and in particular to a fatigue electroencephalogram recognition method combined with spatial distribution correlation analysis. Background Art
[0002] With the development of brain-computer interface technology, target detection technology based on cortical coupling has great application potential in high-precision and rapid response fields such as real-time monitoring of police systems, environmental identification of unmanned autonomous driving, high-altitude reconnaissance of drones, and intelligence analysis of satellite photography. That is, through the high-speed processing of targets with characteristics such as low background noise, clear contours, and sharp contrast by computers, and at the same time using the high-resolution human eye and the brain with strong analytical and inference capabilities to process targets with complex backgrounds, blurred contours, weak, and similar characteristics, the intelligent coupling of computers and brains is formed, and the advantages complement each other, further expanding the scope of target detection. Among them, the cortical coupling system based on the Rapid Serial Visual Presentation (RSVP) paradigm is the most widely used. However, due to the fast flashing pictures and the need for the brain to maintain attention in cognitive tasks for a long time, workers are very easy to fatigue, which is manifested as a decrease in participation in the task at hand, and a decrease in cognitive and executive abilities related to the task. Therefore, timely detection of fatigue and real-time adjustment of task intensity and rest time are of great significance for improving work efficiency and reducing target missed and misjudgment rates.
[0003] At present, the identification of mental fatigue based on EEG analysis is considered to be one of the most reliable technologies. This technology mainly focuses on changes in brain activity related to tasks, and uses relatively single indicators such as frequency band energy, brain network functional connectivity, brain network topology, etc. to make separate judgments. However, due to the particularity of mental fatigue induced by RSVP tasks, it is difficult to use a single indicator to accurately judge mental fatigue of different people and different tasks. Therefore, how to obtain more extensive and stable features through the fusion of multimodal indicators is the difficulty of current research. Summary of the invention
[0004] The purpose of the present invention is to provide a fatigue EEG recognition method of joint spatial distribution correlation analysis, firstly, the EEG signal is segmented in the time domain, then the multi-scale band power spectrum, total energy, channel correlation, multi-band channel coherence and multi-band channel phase-locking value of each segment are calculated, and then the joint spatial distribution feature is constructed, and then the initial joint spatial distribution feature template is obtained by task related component analysis (TRCA), and the reduced dimension joint spatial distribution feature template is obtained by principal component analysis (PCA), and finally two-dimensional correlation calculation is performed to identify the test sample. This method realizes feature enhancement by combining the spatial distribution characteristics of multimodal indicators, and effectively improves the recognition speed and accuracy of fatigue EEG.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] A fatigue EEG recognition method combined with spatial distribution correlation analysis comprises the following steps:
[0007] Step 1) Time domain segmentation
[0008] n t The sampling points are the resolution, and the obtained training data X σ And test data Y are segmented in the time domain to obtain X σ of Time domain components and Y Time domain components They constitute segmented training data sets and test data sets respectively, where represents the preprocessed EEG training data sample set. When σ=σ1, represents the preprocessed fatigue EEG data sample set; when σ=σ2, represents the preprocessed non-fatigue EEG data sample set; Represents the single-sample test EEG data after preprocessing; N c Indicates the number of channels, N t Represents the number of sampling points in the time domain, N s represents the number of samples; X σ The bandpass filter range of Y during preprocessing is [N f0 ,N f1 ], record N f2 =N f1 -N f0 , indicating the frequency band range difference;
[0009] Step 2) Calculate the multi-scale frequency band power spectrum
[0010] For the segmented training data sets And the test dataset The Welch method is used to calculate the auto-power spectral density of each channel of a single component, and then the full channel power value of each frequency band at multiple scales is calculated and integrated to obtain The multi-scale band power spectrum of the training data of time domain components And the test data multi-scale band power spectrum collection
[0011] Step 3) Calculate the total energy
[0012] Separately segment the training data set And the test dataset Calculate the single-channel total energy of a single component and integrate the total energy matrix of all channels to obtain The total energy matrix of the training data of time domain components is And the total energy matrix of the test data is
[0013] Step 4) Calculate the correlation
[0014] Separately segment the training data set And the test dataset Calculate the correlation coefficients between the channels of a single component and integrate the correlation coefficient matrix of all channels to obtain The training data correlation coefficient matrix set of time domain components And the test data correlation coefficient matrix set
[0015] Step 5) Calculate multi-band coherence
[0016] For the segmented training data sets And the test dataset Calculate the cross-power spectral density between each channel of a single component, calculate the coherence coefficient based on the cross-power spectral density and integrate the coherence coefficient matrix of all channels, and then calculate the multi-band average coherence coefficient matrix and integrate it to obtain The training data multi-band coherence coefficient matrix set of time domain components And the test data multi-band coherence coefficient matrix set
[0017] Step 6) Calculate the multi-band phase lock value
[0018] Separately segment the training data set And the test dataset Calculate the Hilbert transform of each channel of a single component and a single frequency band and the phase difference between each channel, and then calculate the phase-locked value between each channel and integrate the phase-locked value matrix of all channels and the phase-locked value matrix of multiple frequency bands to obtain The training data multi-band phase-locked value matrix set of time domain components and test data multi-band phase-locked value matrix set
[0019] Step 7) Calculate the joint spatial distribution characteristics
[0020] The following steps are performed on the corresponding sets of training data and test data respectively to obtain the joint spatial distribution features UX of the training data. (σ) and the joint spatial distribution feature UY of the test data: integrate and normalize the multi-scale frequency band power spectrum set and the total energy matrix set to obtain the joint feature set of power spectrum and energy, and integrate the joint feature set of power spectrum and energy with the correlation coefficient matrix set, the multi-band coherence coefficient matrix set, and the multi-band phase-locked value matrix set to obtain the joint spatial distribution feature;
[0021] Step 8) Calculate the joint spatial distribution feature template
[0022] The joint spatial distribution feature UX of the training data (σ) Use the TRCA algorithm to obtain spatial filters, and use spatial filters to (σ) Perform spatial filtering with UY to obtain the initial joint spatial distribution feature template TempX of the training data (σ) and the initial joint spatial distribution feature template TempY of the test data (σ) , based on PCA, the initial joint spatial distribution feature template TempX (σ) ,TempY (σ) Perform dimensionality reduction to obtain the joint spatial distribution feature template of training data and test data dimensionality reduction and
[0023] Step 9) Template matching
[0024] The joint spatial distribution feature template of the dimension reduction and Calculate the two-dimensional correlation coefficient Based on the two-dimensional correlation coefficient, it is determined whether the test data belongs to the target EEG data, and the identification of the test data is completed.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] (1) The present invention adopts a time domain segmented analysis method, which can obtain detailed information about the time changes of fatigue and non-fatigue EEG, realize the expansion of feature dimensions, and help improve recognition accuracy.
[0027] (2) The present invention uses a multi-scale approach to analyze the frequency band power spectrum. Based on different frequency band sparsities, it fully mines the hidden information of fatigue and non-fatigue EEG spectra, improves the feature dimension, and is beneficial to improving the recognition accuracy and stability of the algorithm.
[0028] (3) The present invention utilizes the specificity of brain network functional connections in each frequency band through multi-band channel coherence and phase-locked value feature analysis technology, and at the same time uses dual-band integration technology to greatly reduce redundant features and avoid the occurrence of singular values in the matrix decomposition process of TRCA.
[0029] (4) The present invention utilizes the analysis technology of TRCA combined with PCA dimensionality reduction, which can effectively reduce the invalid features of the high-dimensional template and reduce the interference of noise information, which is beneficial to improving the calculation speed and accuracy of EEG recognition.
[0030] (5) The present invention integrates multi-scale frequency band power spectrum, total energy, channel correlation, multi-band channel coherence and multi-band channel phase-locking value indicators, and constructs multi-modal joint spatial distribution characteristics from the perspectives of energy analysis, spectrum analysis and brain network analysis, which is conducive to improving the robustness of mental fatigue judgment for different people and different tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of the method of the present invention;
[0032] Figure 2 It is a block diagram of the implementation principle of the present invention;
[0033] Figure 3 A flow chart for obtaining a multi-scale frequency band power spectrum set of the present invention;
[0034] Figure 4 A flow chart for obtaining a total energy matrix set of the present invention;
[0035] Figure 5 A flow chart for obtaining a correlation coefficient matrix set of the present invention;
[0036] Figure 6 A flow chart for obtaining a multi-band coherence coefficient matrix set of the present invention;
[0037] Figure 7 The present invention provides a flow chart for obtaining a multi-band phase-locked value matrix set. DETAILED DESCRIPTION
[0038] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0039] like Figure 1 As shown, this embodiment provides a fatigue EEG recognition method combined with spatial distribution correlation analysis, and its principle block diagram is shown in Figure 2 As shown, the method comprises the following steps:
[0040] Step 1) Time domain segmentation
[0041] n t The sampling points are the resolution, and the obtained training data X σ And test data Y are segmented in the time domain to obtain X σ of Time domain components and Y Time domain components They constitute segmented training data sets and test data sets respectively. Among them, represents the preprocessed EEG training data sample set. When σ=σ1, represents the preprocessed fatigue EEG data sample set; when σ=σ2, represents the preprocessed non-fatigue EEG data sample set; Represents the single-sample test EEG data after preprocessing; N c Indicates the number of channels, N t Represents the number of sampling points in the time domain, N s represents the number of samples; X σ The bandpass filter range of Y in preprocessing is [N f0 ,N f1 ], record N f2 =N f1 -N f0 , indicating the frequency band range difference.
[0042] Step 2) Calculate the multi-scale frequency band power spectrum
[0043] For the segmented training data sets And the test dataset The Welch method is used to calculate the autopower spectral density of each channel of a single component, and then the full channel power value of each frequency band at multiple scales is calculated and integrated to obtain The multi-scale band power spectrum of the training data of time domain components And the test data multi-scale band power spectrum collection
[0044] Specifically, Figure 3As shown, the following steps are included:
[0045] set up Represents the training dataset of the segment The data of the cth channel of the tth element, Represents the test dataset of the segment The data of the cth channel of the tth element of is respectively processed in a manner that allows data segments to overlap. and Segmentation, the lth data segment can be expressed as:
[0046]
[0047] In the formula, express The mth element of the lth data segment that was segmented, express The mth element of the lth data segment divided, D represents the step size of a single slide, and M represents the non-overlapping and The length of each data segment during segmentation, (l-1)D represents the starting point of the lth sequence, and L represents the number of segments obtained by overlapping segmentation; when consecutive segments overlap by 50%,
[0048] but The autopower spectral density at frequency f is and The autopower spectral density at frequency f is It is expressed as:
[0049]
[0050] In the formula, ω(m) represents the window function with m as the variable, U represents the power normalization factor in the window function, and e -j2πfm represents a complex exponential with frequency f.
[0051] Assume that the frequency band difference N in step 1) f2 All d divisors of are {a1,a2,…,a d}, then the frequency band [N f0 ,N f1 ] respectively with {a1,a2,…,a d} is divided into units d times, that is, a set of frequency bands of d scales is obtained, and the number of all sub-bands B in the set is expressed as:
[0052]
[0053] for and The b-th sub-band in the band set of b Total power and It is expressed as:
[0054]
[0055] In the formula, Indicates band b The lower frequency limit, Indicates band b upper frequency limit.
[0056] Similarly, determine X based on the total power (σ,t) In the frequency band b The total power matrix of all channels on and Y (t) In the frequency band b The total power matrix of all channels on
[0057]
[0058] In the formula, Respectively represent X (σ,t) , Y (t) In the frequency band b The total power of the ith channel on .
[0059] Then X (σ,t) and Y (t) The total power integration matrix PX in all frequency bands (σ,t) and PY (t) It is expressed as:
[0060]
[0061] In the formula, band B represents the last sub-band among B sub-bands, Respectively represent X (σ,t) , Y (t) In the frequency band i The total power matrix on .
[0062] Based on the total power integrated matrix PX (σ,t) and PY (t) The expressions for training data and test data are determined respectively. The multi-scale band power spectrum of the time domain component and
[0063] Step 3) Calculate the total energy
[0064] Separately segment the training data set And the test dataset Calculate the single-channel total energy of a single component and integrate the total energy matrix of all channels to obtain The total energy matrix of the training data of time domain components is And the total energy matrix of the test data is
[0065] Specifically, Figure 4 As shown, the following steps are included:
[0066] The single-channel training data of a single component in the cth channel in the training data set Total Energy And the single-channel test data of a single component in the cth channel in the test data set Total Energy It is expressed as:
[0067]
[0068] Where n t express and The number of sampling points, express The nth tt elements, express The nth tt elements.
[0069] Then X (σ,t) The total energy matrix EX on all channels (σ,t) and Y (t) The total energy matrix EY on all channels (t) It is expressed as:
[0070]
[0071] In the formula, Respectively represent X (σ,t) , Y (t) The total energy of the i-th channel.
[0072] The total energy matrix of all elements in the training dataset and the test dataset on all channels is obtained by integrating The total energy matrix of the time domain components is set and
[0073] Step 4) Calculate the correlation
[0074] Separately segment the training data set And the test dataset Calculate the correlation coefficients between the channels of a single component and integrate the correlation coefficient matrix of all channels to obtain The training data correlation coefficient matrix set of time domain components And the test data correlation coefficient matrix set
[0075] Specifically, Figure 5 As shown, the following steps are included:
[0076] Calculate a single component X in the training data set (σ,t) Correlation coefficient between channels and a single component Y in the test data set (t) Correlation coefficient between channels
[0077]
[0078] Where n tt Represents the range [1,n t ] in the nth tt elements, Respectively represent X (σ,t) , Y (t) Middle c i The nth channel tt elements.
[0079] Based on the calculation method of the correlation coefficient, determine X (σ,t) The correlation coefficient matrix CorX (σ,t) and Y (t) The correlation coefficient matrix CorY (t) :
[0080]
[0081] Where CorX (σ,t) and CorY (t) The elements on the main diagonal are 1, and Equal, both represent X (σ,t) The correlation coefficient between the ath and bth channels in .
[0082] Based on the correlation coefficient matrix of each element in the training data set and the test data set, we can get The correlation coefficient matrix of the time domain components and
[0083] Step 5) Calculate multi-band coherence
[0084] For the segmented training data sets And the test dataset Calculate the cross-power spectral density between each channel of a single component, calculate the coherence coefficient based on the cross-power spectral density and integrate the coherence coefficient matrix of all channels, and then calculate the multi-band average coherence coefficient matrix and integrate it to obtain The training data multi-band coherence coefficient matrix set of time domain components And the test data multi-band coherence coefficient matrix set
[0085] Specifically, Figure 6 As shown, the following steps are included:
[0086] Calculate the tth component X in the training data set respectively (σ,t) and the tth component Y in the test data set (t) The cross power spectral density between the inner channels at frequency f is:
[0087]
[0088] In the formula, Respectively represent X (σ,t) , Y (t) The cross power spectral density between the inner channels c1 and c2 at frequency f; M represents the cross power spectral density of X in a non-overlapping manner (σ,t) and Y (t) The length of each data segment when segmenting, L represents the number of segments obtained by overlapping segmentation; ω(m) represents the window function with m as the variable; U represents the power normalization factor in the window function; e -j2πfm represents a complex exponential with frequency f, e j2πfm Indicates e -j2πfm conjugation of; Respectively represent X (σ,t) The mth element in the c1th, c2th channel of the lth segment; Respectively represent Y (t) The mth element in the c1th, c2th channel of the lth segment in .
[0089] Then X (σ,t) and Y (t) The coherence coefficient between the inner channels at frequency f is expressed as:
[0090]
[0091] In the formula, Respectively represent X (σ,t) , Y (t) The coherence between channels within c1 and c2 at frequency f; Respectively represent X (σ,t) The auto-power spectral density of the inner channels c1, c2 at frequency f; Respectively represent Y (t) Autopower spectral density of inner channels c1, c2 at frequency f.
[0092] Then X (σ,t) and Y (t) The coherence coefficient matrix CohX at frequency f (σ,t) (f), CohY (t) (f) is expressed as:
[0093]
[0094] In the formula, Respectively represent X (σ,t) , Y (t) The coherence coefficient matrix of channels a and b at frequency f.
[0095] The frequency band difference N described in step 1) is calculated in units of g. f2 Divide equally to obtain H sub-band sets, H is an even number.
[0096] Then for X (σ,t) and Y (t) The hth sub-band in the band set of h The average coherence matrix and It is expressed as:
[0097]
[0098] In the formula, Indicates band h The lower frequency limit, Indicates band h upper frequency limit.
[0099] Determine X based on the calculation method of the average coherence coefficient matrix (σ,t) The coherence coefficient matrix CohX in all frequency bands (σ,t) and Y (t) The coherence coefficient matrix CohY in all frequency bands (t) :
[0100]
[0101] In the formula, band H represents the last sub-band among the H sub-bands, and Respectively represent X (σ,t) and Y (t) The average coherence coefficient matrix of the i-th sub-band, I represents the identity matrix.
[0102] Determine based on the coherence coefficient matrix of each element in the training data set and the test data set respectively The multi-band coherence coefficient matrix set of time domain components and
[0103] Step 6) Calculate the multi-band phase lock value
[0104] Separately segment the training data set And the test dataset Calculate the Hilbert transform of each channel of a single component and a single frequency band and the phase difference between each channel, and then calculate the phase-locked value between each channel and integrate the phase-locked value matrix of all channels and the phase-locked value matrix of multiple frequency bands to obtain The training data multi-band phase-locked value matrix set of time domain components and test data multi-band phase-locked value matrix set
[0105] Specifically, Figure 7 As shown, the following steps are included:
[0106] Let X (σ,t) , Y (t) Respectively represent the training data sets And the test dataset The tth component of step 1) is the frequency band difference N in units of j. f2 Divide it equally to obtain K sub-bands, K is an even number; for X (σ,t) and Y (t) The kth sub-band component in the frequency band set The Hilbert transform of each channel signal is calculated as:
[0107]
[0108] In the formula, Respectively The value of the c-th channel signal at the integral variable τ, Respectively The value of the c-th channel signal at position n after Hilbert transform, PV represents the Cauchy principal value.
[0109] Further, The phase difference between each channel signal at time point n is converted to the interval [0,2π) through modulo operation, and its calculation formula is expressed as:
[0110]
[0111] In the formula, Respectively The phase difference between the c1 and c2 channel signals at time point n; Respectively The values of the c1th and c2th channel signals at point n; Respectively The values of the c1th and c2th channel signals at point n; Respectively The values of the c1th and c2th channel signals at point n after Hilbert transform; Respectively The values of the c1 and c2 channel signals at point n after Hilbert transform.
[0112] but The phase lock value between the channels is expressed as:
[0113]
[0114] In the formula, Respectively Phase lock value between the internal c1 and c2 channel signals; n t for The number of sampling points; Indicates is the complex exponential function of the phase angle; Indicates is a complex exponential function of the phase angle.
[0115] Determining based on the phase lock value The phase-locked value matrix
[0116]
[0117] In the formula, Respectively Phase lock value between inner channels a and b.
[0118] Then X (σ,t) The phase-locked value matrix PlvX in all frequency bands (σ,t) and Y (t) The phase-locked value matrix PlvY in all frequency bands (t) It is expressed as:
[0119]
[0120] In the formula, Respectively represent X (σ,t) , Y (t) The phase-locking value matrix in the ith sub-band.
[0121] The phase-locked value matrices of each element in the training data set and the test data set are obtained respectively. The multi-band phase-locked value matrix set of time domain components and
[0122] Step 7) Calculate the joint spatial distribution characteristics
[0123] The following steps are performed on the corresponding sets of training data and test data respectively to obtain the joint spatial distribution features UX of the training data. (σ) and the joint spatial distribution characteristics UY of the test data: integrate and normalize the multi-scale frequency band power spectrum set described in step 2) and the total energy matrix set described in step 3) to obtain the joint feature set of power spectrum and energy, and integrate the joint feature set of power spectrum and energy with the correlation coefficient matrix set described in step 4), the multi-band coherence coefficient matrix set described in step 5), and the multi-band phase-locked value matrix set described in step 6) to obtain the joint spatial distribution characteristics.
[0124] Specifically, the multi-scale band power spectrum set of the training data set And the total energy matrix set Integration, get the integrated collection The multi-scale band power spectrum of the test data set is collected And the total energy matrix set Integration, get the integrated collection The calculation formula is:
[0125]
[0126] set up Respectively represent sets The c-th channel signal of the t-th component in is normalized for each channel:
[0127]
[0128] In the formula, Respectively The nth point in ; Respectively The average of all points in ; Respectively The nth tt points; Respectively The normalized signal The nth point in .
[0129] Based on the normalization calculation method, the normalized joint feature set of the training data set and the test data set is obtained respectively. and
[0130] Combine feature sets and the correlation coefficient matrix set Multi-band coherence coefficient matrix set Multi-band phase-locked value matrix set Perform integration to obtain the joint spatial distribution feature UX (σ) , the joint feature set and Respectively with the correlation coefficient matrix set Multi-band coherence coefficient matrix set Multi-band phase-locked value matrix set Perform integration to obtain the joint spatial distribution feature UY, and the calculation formula is:
[0131]
[0132] In the formula, Respectively represent X (σ) , the joint spatial distribution characteristics of Y in the t1th time domain segment; Respectively represent X (σ) , Y's The joint spatial distribution characteristics of the time domain segments.
[0133] Step 8) Calculate the joint spatial distribution feature template
[0134] The joint spatial distribution feature UX of the training data (σ) Use the TRCA algorithm to obtain spatial filters, and use spatial filters to (σ) Perform spatial filtering with UY to obtain the initial joint spatial distribution feature template TempX of the training data (σ) and the initial joint spatial distribution feature template TempY of the test data (σ) , based on PCA, the initial joint spatial distribution feature template TempX (σ) ,TempY (σ) Perform dimensionality reduction to obtain the joint spatial distribution feature template of training data and test data dimensionality reduction and
[0135] Set joint spatial feature Among them, N c Indicates the number of channels, Indicates the number of sampling points, N s Indicates the number of samples, UX (σ) The sum of the covariances between samples s1 and s2 is And the variance of the linear model of the task-related component between samples is Var(Temp (σ) ), then the covariance and variance Var(Temp (σ) ) is calculated as:
[0136]
[0137] In the formula, s1 and s2 represent values greater than or equal to 1 and less than or equal to N. s positive integer; c1 and c2 represent a positive integer greater than or equal to 1 and less than or equal to N c A positive integer of ; Respectively represent the UX (σ) The s1th and s2th samples in ; Respectively The nth element of the c1th channel component in The nth element of the c2th channel component; n represents the number of sampling points N T The nth point in ; The UX (σ) The nth element of the c1th and c2th channel components of all samples in ; Denotes the spatial filter W (σ) One of the solutions, for The transposed matrix of express The c1th and c2th sub-elements in S (σ) is the covariance matrix between samples of the same class; V (σ) is the covariance matrix between channels of samples of the same class.
[0138] When the variance Var(Temp (σ) )=1, a convergent constraint solution can be obtained, then the spatial filter W (σ) The optimal solution is expressed as:
[0139]
[0140] W (σ) That is V (σ) -1 S (σ) The eigenvalues of are arranged in descending order and correspond to the eigenvectors;
[0141] set up Representing the UX (σ) The template can be used by using W (σ) About the UX (σ) Perform spatial filtering and then solve the problem. The calculation formula is:
[0142]
[0143] In the formula, UX (s,σ) Representing the UX (σ) The sth sample in W (σ) T Denotes the spatial filter W (σ) Transpose of TempX (σ) Representing the UX (σ) All samples in W (σ) The average template after filtering.
[0144] set up The template representing the UY is calculated as follows:
[0145] TempY (σ) =W (σ) T UY,σ={σ1,σ2}
[0146] Where TempY (σ) Indicates that UY passes through W (σ) The filtered template, W (σ) T Denotes the spatial filter W (σ) The transpose of .
[0147] Suppose the template TempX (σ) Obtain N through PCA analysis c The eigenvalues λ of the covariance matrix in descending order (σ,1) ,λ (σ,2) ,...,λ (σ,Nc) and a principal component coefficient matrix Then the minimum value p (σ) Should meet:
[0148]
[0149] In the formula, λ (σ,c) Represents λ (σ,1) ,λ (σ,2) ,...,λ (σ,Nc) The c-th eigenvalue of .
[0150] The template after dimensionality reduction It is expressed as:
[0151]
[0152] In the formula, represents the first p of the Coeff (σ) A matrix of columns.
[0153] Template after dimensionality reduction It is expressed as:
[0154]
[0155] Step 9) Template matching
[0156] The joint spatial distribution feature template of the dimension reduction and Calculate the two-dimensional correlation coefficient Based on the two-dimensional correlation coefficient, it is determined whether the test data belongs to the target EEG data, and the identification of the test data is completed.
[0157] Joint spatial distribution feature template Including fatigue data template and non-fatigue data template; calculate fatigue data template and test data joint spatial distribution feature template respectively The two-dimensional correlation coefficient And the joint spatial distribution feature template of non-fatigue data template and test data The two-dimensional correlation coefficient if Greater than The test EEG data is determined to be fatigue EEG data, otherwise, the test EEG data is determined to be non-fatigue EEG data.
[0158] In this embodiment, the two-dimensional correlation coefficient The calculation process is:
[0159]
[0160] In the formula, For the The element in the i-th row and j-th column of For the The average of all elements of For the The element in the i-th row and j-th column of For the The average of all elements in ; when σ=σ1, the two-dimensional correlation coefficient between the fatigue data template and the test data template is When σ = σ2, the two-dimensional correlation coefficient between the non-fatigue data template and the test data template is
[0161] The method of this embodiment achieves efficient discrimination of fatigue EEG by fusing five multimodal indicators, namely power spectrum, total energy, correlation, coherence and phase-locking value, to obtain joint spatial distribution features. The time domain segmentation analysis method can capture the time-varying details of fatigue and non-fatigue EEG, expand the feature dimension, and help improve the recognition accuracy; the multi-scale method is used to analyze the band power spectrum, and based on different band sparsities, the hidden information of fatigue and non-fatigue EEG spectrum is fully mined, which further improves the feature dimension and helps improve the recognition accuracy and stability of the algorithm; the multi-band channel coherence and phase-locking value feature analysis technology is used to utilize the specificity of brain network functional connections in each frequency band, and the dual-band integration technology is used to greatly reduce redundant features, and the situation of singular values appearing in the matrix decomposition process of TRCA is avoided; the template matching analysis technology combined with TRCA and PCA dimensionality reduction can effectively eliminate the invalid features of the high-dimensional template, reduce the interference of noise information, and help improve the calculation speed and accuracy of EEG recognition.
[0162] Specifically, this embodiment adopts a method of obtaining multi-modal joint spatial distribution features in time periods. Compared with direct analysis using a single data segment, the method of this embodiment captures the periodic time-varying characteristics of fatigue EEG signal stages, greatly expands the multi-resolution time domain characteristics of fatigue EEG, and also creates conditions for TRCA analysis; this embodiment uses a multi-scale frequency band power spectrum with sparsity characteristics to construct features. Compared with using a single frequency band or a single-scale multi-frequency band, the method of this embodiment can extract power spectrum information from coarse to fine layers, which not only improves the overall dimension of effective features, but also avoids the possibility of cutting off cross-scale information by dividing a single frequency band or a single scale; this embodiment is based on the principle of energy conservation and uses the total energy index of EEG multi-channels for characterization. Compared with not using energy features, this implementation method can extract the overall features of fatigue and non-fatigue signals, which is conducive to further improving the recognition rate; this embodiment is based on the principle of brain network topology and uses the correlation of each channel to enhance features. Compared with not using correlation features, the method of this embodiment focuses on the changes in the connectivity of the global brain network of fatigue and non-fatigue EEG, which is conducive to further improving the effective feature dimension; this embodiment uses multi-band coherence and locking Phase value analysis combined with dual-band integration technology, compared with the use of a single-band feature, the method of this embodiment can make full use of the multi-band distribution characteristics of the functional connectivity of fatigue EEG and non-fatigue EEG, combined with the dual-band integration method to greatly reduce redundant spatial information, which is conducive to improving the recognition performance of the algorithm; this embodiment adopts the dimensionality reduction discrimination method of TRCA combined with PCA analysis, compared with the single use of TRCA discrimination, the method of this embodiment can solve the inherent disadvantage of the TRCA method containing noise information interference, and use PCA to intelligently screen the main component features for discrimination, which is conducive to improving the algorithm calculation speed and accuracy; the method of this embodiment effectively solves the problem of multimodal index fusion difficulties, compared with the use of a single indicator, the method of this embodiment obtains more extensive and stable features of fatigue EEG, and improves the generalization and robustness of the algorithm; the method of this embodiment solves the problem of fatigue discrimination of staff in the cortical coupling target detection system, which is of great significance to further realize the fatigue monitoring and control system, and promote the application of RSVP technology in the fields of high-precision rapid response such as accurate monitoring of police systems, environmental discrimination of unmanned automatic driving, high-altitude reconnaissance of drones, and intelligence analysis taken by satellites. The present invention has good market application prospects and social and economic benefits.
[0163] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning, or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A fatigue EEG recognition method combined with spatial distribution correlation analysis, characterized in that: The following steps are involved: Step 1) Time domain segmentation n t The sampling points are the resolution, and the obtained training data X σ And test data Y are segmented in the time domain to obtain X σ of Time domain components and Y Time domain components They constitute segmented training data sets and test data sets respectively, where represents the preprocessed EEG training data sample set. When σ=σ1, represents the preprocessed fatigue EEG data sample set; when σ=σ2, represents the preprocessed non-fatigue EEG data sample set; Represents the single-sample test EEG data after preprocessing; N c Indicates the number of channels, N t Represents the number of sampling points in the time domain, N s represents the number of samples; X σ The bandpass filter range of Y during preprocessing is [N f0 ,N f1 ], record N f2 =N f1 -N f0 , indicating the frequency band range difference; Step 2) Calculate the multi-scale frequency band power spectrum Separately segment the training data set and test dataset The Welch method is used to calculate the auto-power spectral density of each channel of a single component, and then the full channel power value of each frequency band at multiple scales is calculated and integrated to obtain The multi-scale band power spectrum of the training data of time domain components And the test data multi-scale band power spectrum collection Step 3) Calculate the total energy Separately segment the training data set and test dataset Calculate the single-channel total energy of a single component and integrate the total energy matrix of all channels to obtain The total energy matrix of the training data of time domain components is And the total energy matrix of the test data is Step 4) Calculate the correlation Separately segment the training data set and test dataset Calculate the correlation coefficients between the channels of a single component and integrate the correlation coefficient matrix of all channels to obtain The training data correlation coefficient matrix set of time domain components And the test data correlation coefficient matrix set Step 5) Calculate multi-band coherence Separately segment the training data set and test dataset Calculate the cross-power spectral density between each channel of a single component, calculate the coherence coefficient based on the cross-power spectral density and integrate the coherence coefficient matrix of all channels, and then calculate the multi-band average coherence coefficient matrix and integrate it to obtain The multi-band coherence coefficient matrix set of training data of time domain components And the test data multi-band coherence coefficient matrix set Step 6) Calculate the multi-band phase lock value Separately segment the training data set and test dataset Calculate the Hilbert transform of each channel of a single component and a single frequency band and the phase difference between each channel, and then calculate the phase-locked value between each channel and integrate the phase-locked value matrix of all channels and the phase-locked value matrix of multiple frequency bands to obtain The training data multi-band phase-locked value matrix set of time domain components and test data multi-band phase-locked value matrix set Step 7) Calculate the joint spatial distribution characteristics The following steps are performed on the corresponding sets of training data and test data respectively to obtain the joint spatial distribution features UX of the training data. (σ) and the joint spatial distribution feature UY of the test data: integrate and normalize the multi-scale frequency band power spectrum set and the total energy matrix set to obtain the joint feature set of power spectrum and energy, and integrate the joint feature set of power spectrum and energy with the correlation coefficient matrix set, the multi-band coherence coefficient matrix set, and the multi-band phase-locked value matrix set to obtain the joint spatial distribution feature; Step 8) Calculate the joint spatial distribution feature template The joint spatial distribution feature UX of the training data (σ) Use the TRCA algorithm to obtain spatial filters, and use spatial filters to (σ) Perform spatial filtering with UY to obtain the initial joint spatial distribution feature template TempX of the training data (σ) and the initial joint spatial distribution feature template TempY of the test data (σ) , based on PCA, the initial joint spatial distribution feature template TempX (σ) ,TempY (σ) Perform dimensionality reduction to obtain the joint spatial distribution feature template of training data and test data dimensionality reduction and Step 9) Template matching The joint spatial distribution feature template of the dimension reduction and Calculate the two-dimensional correlation coefficient Based on the two-dimensional correlation coefficient, it is determined whether the test data belongs to the target EEG data, and the identification of the test data is completed.
2. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 2) is specifically as follows: set up Represents the training dataset of the segment The data of the cth channel of the tth element, Represents the test dataset of the segment The data of the cth channel of the tth element of is respectively processed in a manner that allows data segments to overlap. and If the data is segmented, the lth data segment is expressed as: In the formula, express The mth element of the lth data segment that was segmented, express The mth element of the lth data segment divided, D represents the step size of a single slide, and M represents the non-overlapping and The length of each data segment during segmentation, (l-1)D represents the starting point of the lth sequence, and L represents the number of segments obtained by overlapping segmentation; when consecutive segments overlap by 50%, but The autopower spectral density at frequency f is and The autopower spectral density at frequency f is It is expressed as: In the formula, ω(m) represents the window function with m as the variable, U represents the power normalization factor in the window function, and e -j2πfm represents a complex exponential with frequency f; Assume that the frequency band difference N in step 1) f2 All d divisors of are {a1,a2,…,a d }, then the frequency band [N f0 ,N f1 ] respectively with {a1,a2,…,a d } is divided into units d times, that is, a set of frequency bands of d scales is obtained, and the number of all sub-bands B in the set is expressed as: for and The b-th sub-band in the band set of b Total power and It is expressed as: In the formula, Indicates band b The lower frequency limit, Indicates band b The upper frequency limit of Determine X based on total power (σ,t) In the frequency band b The total power matrix of all channels on and Y (t) In the frequency band b The total power matrix of all channels on In the formula, Respectively represent X (σ,t) , Y (t) In the frequency band b The total power of the i-th channel on ; Then X (σ,t) and Y (t) The total power integration matrix PX in all frequency bands (σ,t) and PY (t) It is expressed as: In the formula, band B represents the last sub-band among B sub-bands, Respectively represent X (σ,t) , Y (t) In the frequency band i The total power matrix on ; Based on the total power integrated matrix PX (σ,t) and PY (t) The expressions for training data and test data are determined respectively. The multi-scale band power spectrum of the time domain component and 3. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 3) is specifically as follows: The single-channel training data of a single component in the cth channel in the training data set Total Energy And the single-channel test data of a single component in the cth channel in the test data set Total Energy It is expressed as: Where n t express and The number of sampling points, express The nth tt elements, express The nth tt elements; Then X (σ,t) The total energy matrix EX on all channels (σ,t) and Y (t) The total energy matrix EY on all channels (t) It is expressed as: In the formula, Respectively represent X (σ,t) , Y (t) The total energy of the ith channel; The total energy matrix of all elements in the training dataset and the test dataset on all channels is obtained by integrating The total energy matrix of the time domain components is set and 4. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 4) is specifically as follows: Calculate a single component X in the training data set (σ,t) Correlation coefficient between channels and a single component Y in the test data set (t) Correlation coefficient between channels Where n tt Represents the range [1,n t ] in the nth tt elements, Respectively represent X (σ,t) , Y (t) C i The nth channel tt elements; Based on the calculation method of the correlation coefficient, determine X (σ,t) The correlation coefficient matrix CorX (σ,t) and Y (t) The correlation coefficient matrix CorY (t) : Where CorX (σ,t) and CorY (t) The elements on the main diagonal are all 1. and Equal, both represent X (σ,t) The correlation coefficient between the ath and bth channels; Based on the correlation coefficient matrix of each element in the training data set and the test data set, we can get The correlation coefficient matrix of the time domain components and 5. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 5) is specifically as follows: Calculate the tth component X in the training data set respectively (σ,t) and the tth component Y in the test data set (t) The cross power spectral density between the inner channels at frequency f is: In the formula, Respectively represent X (σ,t) , Y (t) The cross power spectral density between the inner channels c1 and c2 at frequency f; M represents the cross power spectral density of X in a non-overlapping manner (σ,t) and Y (t) The length of each data segment when segmenting, L represents the number of segments obtained by overlapping segmentation; ω(m) represents the window function with m as the variable; U represents the power normalization factor in the window function; e -j2πfm represents a complex exponential with frequency f, e j2πfm Indicates e -j2πfm conjugation of; Respectively represent X (σ,t) The mth element in the c1th, c2th channel of the lth segment; Respectively represent Y (t) The mth element in the c1th, c2th channel of the lth segment; Then X (σ,t) and Y (t) The coherence coefficient between the inner channels at frequency f is expressed as: In the formula, Respectively represent X (σ,t) , Y (t) The coherence between channels within c1 and c2 at frequency f; Respectively represent X (σ,t) The auto-power spectral density of the inner channels c1, c2 at frequency f; Respectively represent Y (t) The auto-power spectral density of the inner channels c1, c2 at frequency f; Then X (σ,t) and Y (t) The coherence coefficient matrix CohX at frequency f (σ,t) (f), CohY (t) (f) is expressed as: In the formula, Respectively represent X (σ,t) , Y (t) The coherence coefficient matrix of channels a and b at frequency f; The frequency band difference N described in step 1) is calculated in units of g. f2 Divide equally to obtain H sub-band sets, H is an even number; Then for X (σ,t) and Y (t) The hth sub-band in the band set of h The average coherence coefficient matrix and It is expressed as: In the formula, Indicates band h The lower frequency limit, Indicates band h The upper frequency limit of Determine X based on the calculation method of the average coherence coefficient matrix (σ,t) The coherence coefficient matrix CohX in all frequency bands (σ,t) and Y (t) The coherence coefficient matrix CohY in all frequency bands (t) : In the formula, band H represents the last sub-band among the H sub-bands, and Respectively represent X (σ,t) and Y (t) The average coherence coefficient matrix of the i-th sub-band, I represents the unit matrix; Determine based on the coherence coefficient matrix of each element in the training data set and the test data set respectively The multi-band coherence coefficient matrix set of time domain components and 6. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 6) is specifically as follows: Let X (σ,t) , Y (t) Respectively represent the training data sets and test dataset The tth component of step 1) is the frequency band difference N in units of j. f2 Divide it equally to obtain K sub-bands, K is an even number; for X (σ,t) and Y (t) The kth sub-band component in the frequency band set The Hilbert transform of each channel signal is calculated as: In the formula, Respectively The value of the c-th channel signal at the integral variable τ, Respectively The value of the c-th channel signal at n after Hilbert transform, PV represents the Cauchy principal value; Will The phase difference between each channel signal at time point n is converted to the interval [0,2π) through modulo operation, and its calculation formula is expressed as: In the formula, Respectively The phase difference between the c1 and c2 channel signals at time point n; Respectively The values of the c1th and c2th channel signals at point n; Respectively The values of the c1th and c2th channel signals at point n; Respectively The values of the c1th and c2th channel signals at point n after Hilbert transform; Respectively The values of the c1th and c2th channel signals at point n after Hilbert transform; but The phase lock value between the channels is expressed as: In the formula, Respectively Phase lock value between the internal c1 and c2 channel signals; n t for The number of sampling points; Indicates is the complex exponential function of the phase angle; Indicates is the complex exponential function of the phase angle; Determining based on the phase lock value The phase-locked value matrix In the formula, Respectively Phase lock value between inner channels a and b; Then X (σ,t) The phase-locked value matrix PlvX in all frequency bands (σ,t) and Y (t) The phase-locked value matrix PlvY in all frequency bands (t) It is expressed as: In the formula, Respectively represent X (σ,t) , Y (t) The phase-locking value matrix in the ith sub-band; The phase-locked value matrices of each element in the training data set and the test data set are obtained respectively. The multi-band phase-locked value matrix set of time domain components and 7. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 7) is specifically as follows: Integrate the multi-scale frequency band power spectrum set and the total energy matrix set of the training data set to obtain an integrated set Integrate the multi-scale frequency band power spectrum set and the total energy matrix set of the test data set to obtain an integrated set The calculation formula is: set up Respectively represent sets The c-th channel signal of the t-th component in is normalized for each channel: In the formula, Respectively The nth point in ; Respectively The average of all points in ; Respectively The nth tt points; Respectively The normalized signal The nth point in ; Based on the normalization calculation method, the normalized joint feature set of the training data set and the test data set is obtained respectively. and Combine feature sets and the correlation coefficient matrix set Multi-band coherence coefficient matrix set Multi-band phase-locked value matrix set Perform integration to obtain the joint spatial distribution feature UX (σ) , the joint feature set and Respectively with the correlation coefficient matrix set Multi-band coherence coefficient matrix set Multi-band phase-locked value matrix set Perform integration to obtain the joint spatial distribution feature UY, and the calculation formula is: In the formula, Respectively represent X (σ) , the joint spatial distribution characteristics of Y in the t1th time domain segment; Respectively represent X (σ) , Y's The joint spatial distribution characteristics of the time domain segments.
8. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The step 8) is specifically as follows: Set joint spatial feature Among them, N c Indicates the number of channels, Indicates the number of sampling points, N s Indicates the number of samples, UX (σ) The sum of the covariances between samples s1 and s2 is And the variance of the linear model of the task-related component between samples is Var(Temp (σ) ), then the covariance and variance Var(Temp (σ) ) is calculated as: In the formula, s1 and s2 represent values greater than or equal to 1 and less than or equal to N. s positive integer; c1 and c2 represent a positive integer greater than or equal to 1 and less than or equal to N c A positive integer of ; Respectively represent the UX (σ) The s1th and s2th samples in ; Respectively The nth element of the c1th channel component in The nth element of the c2th channel component; n represents the number of sampling points N T The nth point in ; The UX (σ) The nth element of the c1th and c2th channel components of all samples in ; Denotes the spatial filter W (σ) One of the solutions, for The transposed matrix of express The c1th and c2th sub-elements in S (σ) is the covariance matrix between samples of the same class; V (σ) is the covariance matrix between channels of samples of the same class; When the variance Var(Temp (σ) )=1, a convergent constraint solution is obtained, then the spatial filter W (σ) The optimal solution is expressed as: W (σ) That is V (σ) -1 S (σ) The eigenvalues of are arranged in descending order and correspond to the eigenvectors; set up Representing the UX (σ) template, by using W (σ) About the UX (σ) Perform spatial filtering and then solve the problem. The calculation formula is: In the formula, UX (s,σ) Representing the UX (σ) The sth sample in W (σ) T Denotes the spatial filter W (σ) The transpose of TempX (σ) Representing the UX (σ) All samples in W (σ) The average template after filtering; set up The template representing the UY is calculated as follows: TempY (σ) =W (σ) T ·UY,σ={σ1,σ2} Where TempY (σ) Indicates that UY passes through W (σ) The filtered template, W (σ) T Denotes the spatial filter W (σ) The transpose of Suppose the template TempX (σ) Obtain N through PCA analysis c The eigenvalues λ of the covariance matrix in descending order (σ,1) ,λ (σ,2) ,…,λ (σ,Nc) and a principal component coefficient matrix Then the minimum value p (σ) Should meet: In the formula, λ (σ,c) Represents λ (σ,1) ,λ (σ,2) ,…,λ (σ,Nc) The cth eigenvalue of ; The template after dimensionality reduction It is expressed as: In the formula, represents the first p of the Coeff (σ) A matrix consisting of columns; Template after dimensionality reduction It is expressed as:
9. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 1 is characterized in that: The joint spatial distribution feature template Including fatigue data template and non-fatigue data template, the step 9) is specifically: respectively calculating the fatigue data template and the test data joint spatial distribution feature template The two-dimensional correlation coefficient And the joint spatial distribution feature template of non-fatigue data template and test data The two-dimensional correlation coefficient if Greater than The test EEG data is determined to be fatigue EEG data, otherwise, the test EEG data is determined to be non-fatigue EEG data.
10. The fatigue EEG recognition method combined with spatial distribution correlation analysis according to claim 9, characterized in that: The two-dimensional correlation coefficient in step 9) The calculation process is: In the formula, For the The element in the i-th row and j-th column of For the The average of all elements of For the The element in the i-th row and j-th column of For the The average of all elements in .
