CN113378650B - An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns - Google Patents
An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns Download PDFInfo
- Publication number
- CN113378650B CN113378650B CN202110546546.7A CN202110546546A CN113378650B CN 113378650 B CN113378650 B CN 113378650B CN 202110546546 A CN202110546546 A CN 202110546546A CN 113378650 B CN113378650 B CN 113378650B
- Authority
- CN
- China
- Prior art keywords
- matrix
- eeg
- spatial
- brain
- source signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000008909 emotion recognition Effects 0.000 title claims abstract description 20
- 238000003384 imaging method Methods 0.000 title claims abstract description 19
- 230000036624 brainpower Effects 0.000 title claims description 18
- 239000011159 matrix material Substances 0.000 claims abstract description 76
- 238000000034 method Methods 0.000 claims abstract description 28
- 239000013598 vector Substances 0.000 claims abstract description 18
- 238000012549 training Methods 0.000 claims abstract description 14
- 230000000694 effects Effects 0.000 claims abstract description 10
- 210000003710 cerebral cortex Anatomy 0.000 claims abstract description 9
- 238000005192 partition Methods 0.000 claims abstract description 7
- 230000008451 emotion Effects 0.000 claims abstract description 6
- 210000004556 brain Anatomy 0.000 claims description 31
- 238000009826 distribution Methods 0.000 claims description 23
- 210000004761 scalp Anatomy 0.000 claims description 10
- 238000012360 testing method Methods 0.000 claims description 10
- 230000001537 neural effect Effects 0.000 claims description 9
- 239000002131 composite material Substances 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 8
- 230000002087 whitening effect Effects 0.000 claims description 8
- 238000000354 decomposition reaction Methods 0.000 claims description 6
- 238000002474 experimental method Methods 0.000 claims description 6
- 230000037007 arousal Effects 0.000 claims description 3
- 239000004020 conductor Substances 0.000 claims description 3
- 230000005672 electromagnetic field Effects 0.000 claims description 3
- 238000002610 neuroimaging Methods 0.000 claims description 2
- 230000009466 transformation Effects 0.000 claims description 2
- 238000000605 extraction Methods 0.000 abstract description 7
- 238000007781 pre-processing Methods 0.000 abstract description 2
- 230000003925 brain function Effects 0.000 abstract 2
- 210000005036 nerve Anatomy 0.000 abstract 1
- 238000000537 electroencephalography Methods 0.000 description 50
- 230000001054 cortical effect Effects 0.000 description 10
- 238000002790 cross-validation Methods 0.000 description 5
- 239000000284 extract Substances 0.000 description 5
- PIZHFBODNLEQBL-UHFFFAOYSA-N 2,2-diethoxy-1-phenylethanone Chemical compound CCOC(OCC)C(=O)C1=CC=CC=C1 PIZHFBODNLEQBL-UHFFFAOYSA-N 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000036992 cognitive tasks Effects 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000009827 uniform distribution Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2218/00—Aspects of pattern recognition specially adapted for signal processing
- G06F2218/12—Classification; Matching
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/16—Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
- A61B5/165—Evaluating the state of mind, e.g. depression, anxiety
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/369—Electroencephalography [EEG]
- A61B5/372—Analysis of electroencephalograms
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N7/00—Computing arrangements based on specific mathematical models
- G06N7/01—Probabilistic graphical models, e.g. probabilistic networks
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Theoretical Computer Science (AREA)
- Psychiatry (AREA)
- Animal Behavior & Ethology (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Surgery (AREA)
- Molecular Biology (AREA)
- Medical Informatics (AREA)
- Heart & Thoracic Surgery (AREA)
- Biomedical Technology (AREA)
- Pathology (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Psychology (AREA)
- Mathematical Physics (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computing Systems (AREA)
- Child & Adolescent Psychology (AREA)
- Algebra (AREA)
- Computational Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Probability & Statistics with Applications (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Software Systems (AREA)
- Developmental Disabilities (AREA)
- Educational Technology (AREA)
- Hospice & Palliative Care (AREA)
- Social Psychology (AREA)
- Fuzzy Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及信号特征提取领域,特别涉及一种基于脑电源成像和正则化共空间模式的情绪识别方法。The invention relates to the field of signal feature extraction, in particular to an emotion recognition method based on brain power imaging and a regularized co-spatial pattern.
背景技术Background technique
情感分析作为人机交互的重要内容。脑电(Electroencephalography,EEG)信号反映认知任务下皮层神经活动,由于其高时间分辨率和非侵入性,在情绪识别中越来越受到重视。Sentiment analysis is an important part of human-computer interaction. Electroencephalography (EEG) signals reflect cortical neural activity under cognitive tasks, and are increasingly valued in emotion recognition due to their high temporal resolution and non-invasiveness.
目前常用的基于脑电情绪识别方法首先提取脑电信号的时域、频域等属性特征,然后利用模式分类器进行情绪识别。然而,由于容积效应,头皮EEG信号的空间分辨率较低,也限制了基于头皮EEG信号的脑电情绪识别性能。At present, the commonly used EEG-based emotion recognition methods first extract the attribute features of the EEG signal in the time domain and frequency domain, and then use the pattern classifier to perform emotion recognition. However, the lower spatial resolution of scalp EEG signals due to volumetric effects also limits the performance of EEG emotion recognition based on scalp EEG signals.
此外在实际应用中,跨被试的情绪识别是非常重要的研究内容。此前中国专利CN110070105B公布了一种基于元学习实例快速筛选的脑电情绪识别方法,该专利将各电极脑电数据的特征向量进行拼接,得到待识别特征向量,然后采用训练好的情绪识别模型,依据待识别特征向量,获取相应的情绪标签以实现跨被试的情绪识别。该方法仍然存在一些实用性问题,例如,不同被试者的脑电数据差异,导致难以获得能够跨被试使用的通用模型:鉴于脑电的非平稳特性,同一个被试者的脑电分布会随时间变化,难以获得可以长期使用的模型。由于人脑认知行为是若干脑区协同作用的结果,与脑区间的交互有关,因此脑网络蕴含丰富的时空分类信息。该方法忽略脑网络中蕴含的分类信息,未有效提取皮层脑网络的分类特征。同时,在基于脑电的跨被试情绪识别研究中,如何充分利用已有被试EEG数据的信息,依然是一个亟待解决的问题。In addition, in practical applications, emotion recognition across subjects is a very important research content. Previously, Chinese patent CN110070105B published an EEG emotion recognition method based on meta-learning instances for rapid screening. This patent splices the feature vectors of EEG data of each electrode to obtain the feature vector to be recognized, and then uses the trained emotion recognition model. According to the feature vector to be identified, the corresponding emotion label is obtained to realize the emotion recognition across subjects. There are still some practical problems with this method. For example, the EEG data of different subjects is different, which makes it difficult to obtain a general model that can be used across subjects: given the non-stationary nature of EEG, the EEG distribution of the same subject changes over time, making it difficult to obtain a model that can be used for a long time. Since human brain cognitive behavior is the result of the synergy of several brain regions and is related to the interaction of brain regions, the brain network contains rich spatiotemporal classification information. This method ignores the classification information contained in the brain network, and does not effectively extract the classification features of the cortical brain network. At the same time, in EEG-based cross-subject emotion recognition research, how to make full use of the information of the existing subjects' EEG data is still an urgent problem to be solved.
发明内容SUMMARY OF THE INVENTION
为了提高脑电信号分类的准确性,本发明提出一种基于脑电源成像和正则化共空间模式的情绪识别方法,包括以下步骤:In order to improve the accuracy of EEG signal classification, the present invention proposes an emotion recognition method based on brain power imaging and regularized co-spatial pattern, including the following steps:
采集脑电信号,并对脑电信号进行预处理;Collect EEG signals and preprocess the EEG signals;
利用贝叶斯最小模算法处理与处理后的脑电信号,通过搭建脑电源成像,重构大脑皮层神经电活动;Use the Bayesian least mode algorithm to process and process the EEG signals, and reconstruct the neural electrical activity of the cerebral cortex by building brain power imaging;
通过最小模算法,重构的EEG时间序列被投影到Brodman分区上,Brodman分区包括26个空间感兴趣的区域,在翻转方向相反的源信号后,将26个空间感兴趣的区域内所有源信号的时间序列取平均值;Through the least-modulus algorithm, the reconstructed EEG time series is projected onto the Brodman partition, which includes 26 regions of spatial interest. After flipping the source signals in opposite directions, all source signals in the 26 regions of spatial interest are The time series is averaged;
利用26个空间感兴趣的区域互信息构建脑功能连接矩阵;Using the mutual information of 26 spatial regions of interest to construct a brain functional connectivity matrix;
基于脑功能连接矩阵采用正则化的方式构建泛化样本的协方差矩阵,得到最优空间滤波器使两类信号的方差值差异最大化,从而得到具有较高区分度的特征向量;Based on the brain functional connectivity matrix, the covariance matrix of the generalized samples is constructed by regularization, and the optimal spatial filter is obtained to maximize the variance value difference between the two types of signals, so as to obtain the eigenvectors with higher discrimination;
将历史数据的特征输入分类器进行训练,并将待分类数据的特征向量输入分类器获得脑电情绪分类。The features of the historical data are input into the classifier for training, and the feature vector of the data to be classified is input into the classifier to obtain the EEG emotion classification.
进一步的,重构大脑皮层神经电活动具体包括以下步骤:Further, reconstructing the neural electrical activity of the cerebral cortex specifically includes the following steps:
根据生物导体中电磁场的传播规律,构建头皮表面的EEG电位分布与人脑内源空间信号的线性关系表达式;According to the propagation law of the electromagnetic field in the biological conductor, the linear relationship expression between the EEG potential distribution on the scalp surface and the endogenous spatial signal of the human brain was constructed;
对获取的线性关系表达式进行空间白化;Perform spatial whitening on the obtained linear relationship expression;
根据给定大脑皮层源信号的一个先验分布以及贝叶斯公式,计算该源信号的后验分布;According to a prior distribution of the given cerebral cortex source signal and the Bayesian formula, calculate the posterior distribution of the source signal;
利用最小模解估算源信号的最大后验估计,即利用最小模解选择能量最小的源结构作为最终的源信号估计,该源信号估计作为人脑成像的源信号。The maximum a posteriori estimate of the source signal is estimated by using the minimum modulus solution, that is, the source structure with the smallest energy is selected as the final source signal estimation by the minimum modulus solution, and the source signal estimation is used as the source signal for human brain imaging.
进一步的,利用最小模解估算源信号的最大后验估计,则源信号的最大后验估计表示为:Further, using the minimum modulus solution to estimate the maximum a posteriori estimate of the source signal, the maximum a posteriori estimate of the source signal is expressed as:
其中,S为源信号;为源信号的最大后验估计;p(S|B)为源信号S的后验分布;p(S)为源信号先验分布;L为导联矩阵;B为大脑头皮表面的脑电信号数据;λ为正则参数,I为单位矩阵;||·||F为F范数。Among them, S is the source signal; is the maximum a posteriori estimate of the source signal; p(S|B) is the posterior distribution of the source signal S; p(S) is the prior distribution of the source signal; L is the lead matrix; B is the EEG signal on the surface of the brain scalp data; λ is the regular parameter, I is the identity matrix; ||·|| F is the F norm.
进一步的,利用贝叶斯概率推断,通过数据自驱动的方式自动学习正则参数λ,该参数表示为:Further, using Bayesian probability inference, the regularization parameter λ is automatically learned in a data-driven manner, and the parameter is expressed as:
λ-1=γλ -1 = γ
其中,γ(k)表示第k次的迭代值;∑b为中间参数,定义为其中∑S为源信号高斯分布的方差;∑ε表示观测噪声高斯分布的方差。优选的,迭代更新,直到p(S|B)收敛或者相对变化小于某个阈值(比如10-6)。Among them, γ (k) represents the k-th iteration value; ∑ b is the intermediate parameter, defined as where ∑ S is the variance of the Gaussian distribution of the source signal; ∑ ε is the variance of the Gaussian distribution of the observation noise. Preferably, iteratively update until p(S|B) converges or the relative change is smaller than a certain threshold (such as 10 -6 ).
进一步的,利用互信息构建脑功能连接矩阵包括:对于每一个对象,分别计算26个空间感兴趣的区域的互信息值,且数据的自信息值为得到脑功能连接矩阵,其中区域x与区域y的互信息值表示为:Further, using mutual information to construct a brain functional connectivity matrix includes: for each object, calculating the mutual information values of 26 spatially interesting regions respectively, and obtaining the brain functional connectivity matrix from the self-information value of the data, where the region x and the region The mutual information value of y is expressed as:
其中,p(x)、p(y)和p(x,y)分别表示x,y概率密度和联合概率密度。where p(x), p(y) and p(x,y) represent the x, y probability density and the joint probability density, respectively.
进一步的,获取脑电数据的特征向量包括以下过程:Further, acquiring the feature vector of the EEG data includes the following processes:
将脑电数据唤醒类和效价类两个类别得到的协方差矩阵相加,得到正则化符合空间协方差;Add the covariance matrices obtained from the two categories of EEG data, arousal and valence, to obtain a regularization that conforms to the spatial covariance;
分别对两个类别的协方差矩阵进行白变换,并对白变换后的协方差矩阵进行分解,得到白化空间特征向量矩阵;Perform white transformation on the covariance matrices of the two categories respectively, and decompose the white transformed covariance matrix to obtain the whitened space eigenvector matrix;
并根据得到的白化空间特征向量矩阵和白化值矩阵,得到投影矩阵;And according to the obtained whitening space eigenvector matrix and whitening value matrix, the projection matrix is obtained;
根据自定义的特征参数α,保留第一个α和倒数一个α列的投影矩阵构成最有区分度的图像;According to the custom feature parameter α, the projection matrix of the first α and the last α column is reserved to form the most discriminative image;
将一个试验根据最有区分度的图像进行投影,并将投影矩阵的行的方差形成特征向量。Project a trial against the most discriminative image and form the eigenvectors from the variance of the rows of the projection matrix.
本发明与传统的CSP将把脑电数据作为输入进行特征提取和分类相比,本发明对预处理后的脑电信号,进行脑电源成像分析,构造协方差矩阵,并运用正则化技术解决小样本问题,除了脑电信号再引入其他个体的脑电数据,形成正则化协方差估计的公式,降低了偏差由于小数量的训练样本的误差;传统CSP算法依赖于基于样本的协方差矩阵估计,而本发明使用RCSP算法,融合了他人脑电样本的协方差矩阵,减少了估计偏差,提高了估计稳定性,最终分类出的结果准确率提高。Compared with the traditional CSP, which uses EEG data as input for feature extraction and classification, the present invention performs brain power imaging analysis on the preprocessed EEG signal, constructs a covariance matrix, and uses regularization technology to solve small problems. For the sample problem, in addition to the EEG signal, the EEG data of other individuals is introduced to form a formula for regularized covariance estimation, which reduces the error due to a small number of training samples; traditional CSP algorithms rely on sample-based covariance matrix estimation, However, the present invention uses the RCSP algorithm, which integrates the covariance matrix of other people's EEG samples, reduces the estimation deviation, improves the estimation stability, and improves the accuracy of the final classification result.
附图说明Description of drawings
图1为本发明一种基于脑电源成像和基于皮层脑网络的正则化共空间模式特征提取方法流程图。FIG. 1 is a flowchart of a method for extracting regularized co-spatial pattern features based on brain power imaging and cortical brain network according to the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明提出一种基于脑电源成像和正则化共空间模式的情绪识别方法,具体包括以下步骤:The present invention proposes an emotion recognition method based on brain power imaging and regularized co-spatial pattern, which specifically includes the following steps:
采集脑电信号,并对脑电信号进行预处理;Collect EEG signals and preprocess the EEG signals;
利用贝叶斯最小模算法处理预处理后的脑电信号,通过搭建脑电源成像,重构大脑皮层神经电活动;The preprocessed EEG signal is processed by the Bayesian least mode algorithm, and the neural electrical activity of the cerebral cortex is reconstructed by constructing the brain power imaging;
通过最小模算法,重构的EEG时间序列被投影到Brodman分区上,Brodman分区包括26个空间感兴趣的区域,在翻转方向相反的源信号后,将26个空间感兴趣的区域内所有源信号的时间序列取平均值;Through the least-modulus algorithm, the reconstructed EEG time series is projected onto the Brodman partition, which includes 26 regions of spatial interest. After flipping the source signals in opposite directions, all source signals in the 26 regions of spatial interest are The time series is averaged;
利用26个空间感兴趣的区域互信息构建脑功能连接矩阵;Using the mutual information of 26 spatial regions of interest to construct a brain functional connectivity matrix;
基于脑功能连接矩阵采用正则化的方式构建泛化样本的协方差矩阵,得到最优空间滤波器使两类信号的方差值差异最大化,从而得到具有较高区分度的特征向量;Based on the brain functional connectivity matrix, the covariance matrix of the generalized samples is constructed by regularization, and the optimal spatial filter is obtained to maximize the variance value difference between the two types of signals, so as to obtain the eigenvectors with higher discrimination;
将历史数据的特征输入分类器进行训练,并将待分类数据的特征向量输入分类器获得脑电情绪分类。The features of the historical data are input into the classifier for training, and the feature vector of the data to be classified is input into the classifier to obtain the EEG emotion classification.
如图1所示,本发明分为训练阶段集数据处理和测试集数据处理,两者的数据均需进行EEG脑电源成像以及皮层ROI信号获取,对训练集数据进行RCSP空间滤波器计算以及特征提取,并将该过程迁移训练为一个特征提取器,测试集数据通过该过程获取数据的RCSP特征,对训练集数据提取得到的特征对分类器进行训练,训练完成后迁移得到一个EEG情绪分类器,用于对测试集数据的RCSP特征进行分类处理,以上过程主要包括以下步骤:As shown in Figure 1, the present invention is divided into training stage set data processing and test set data processing, both data need to be subjected to EEG brain power imaging and cortical ROI signal acquisition, and the training set data is subjected to RCSP spatial filter calculation and feature Extract and transfer the process to a feature extractor. The test set data obtains the RCSP features of the data through this process, trains the classifier on the features extracted from the training set data, and migrates to obtain an EEG sentiment classifier after the training is completed. , which is used to classify the RCSP features of the test set data. The above process mainly includes the following steps:
(1)信号预处理,主要是进行去噪处理,以减少一些非脑电信号的干扰和个体间的差异效应。(1) Signal preprocessing, mainly denoising, in order to reduce the interference of some non-EEG signals and the effect of differences between individuals.
(2)利用贝叶斯最小模算法处理预处理后的脑电数据,通过搭建脑电源成像,重构大脑皮层神经电活动。(2) The preprocessed EEG data is processed by the Bayesian least-modulus algorithm, and the neural electrical activity of the cerebral cortex is reconstructed by constructing brain power imaging.
(3)通过最小模算法,重构的EEG时间序列被投影到Brodman分区上,其中包括26个空间感兴趣的区域,在翻转方向相反的源信号后,将ROI内所有源信号的时间序列取平均值。(3) Through the least modulus algorithm, the reconstructed EEG time series is projected onto the Brodman partition, which includes 26 spatial regions of interest. After flipping the source signals in the opposite direction, the time series of all source signals in the ROI are taken as average value.
(4)利用互信息构建脑功能连接矩阵(4) Using mutual information to construct a brain functional connectivity matrix
(5)利用RCSP算法,通过两个参数对协变矩阵估计进行正则化,从而降低估计方差,同时减小估计偏差。(5) Using the RCSP algorithm, the estimation of the covariance matrix is regularized by two parameters, thereby reducing the estimation variance and the estimation bias at the same time.
(6)对所求的特征向量提取皮层层面的分类特征,采用SVM或KNN等模式分类器实现脑电情绪分类。(6) Extract the cortical-level classification features from the required feature vector, and use pattern classifiers such as SVM or KNN to achieve EEG emotion classification.
1、基于贝叶斯最小模解的源成像1. Source imaging based on Bayesian minimum mode solution
利用脑电源成像计算,重构皮层源信号,从而获得同时具有高时间和空间分辨率的神经电活动。人脑头皮表面的EEG电位分布是由脑内神经电流源引起的,生物导体中电磁场的传播规律满足准静态的麦克斯韦方程组,头皮表面的EEG电位分布与人脑内源空间信号的关系可以用如下的线性关系表示:Using brain power imaging calculations, cortical source signals are reconstructed to obtain neural electrical activity with high temporal and spatial resolution simultaneously. The EEG potential distribution on the scalp surface of the human brain is caused by the neural current source in the brain. The propagation law of the electromagnetic field in the biological conductor satisfies the quasi-static Maxwell equations. The relationship between the EEG potential distribution on the scalp surface and the endogenous spatial signal of the human brain can be used The following linear relationship is expressed:
B=LS+ε (1)B=LS+ε (1)
其中,表示在人脑头皮表面db个电极测量的T个采样时间点上脑电信号数据。表示第t个采样的观测信号。是源空间内ds个源的源信号,表示t时刻的皮质神经活动。是观测噪声。in, represents the EEG signal data at T sampling time points measured by the db electrodes on the surface of the human brain scalp. represents the observed signal of the t-th sample. is the source signal of d s sources in the source space, represents the cortical neural activity at time t. is the observation noise.
表示导联矩阵,描述特定位置和方向的源信号与头皮表面测量的脑电信号的关系,其受到电极数目、源信号数目及头模型的约束。 Represents a lead matrix that describes the relationship between source signals at a specific location and orientation and EEG signals measured on the scalp surface, constrained by the number of electrodes, the number of source signals, and the head model.
假设源信号先验分布为p(S),观测噪声ε服从高斯分布N(0,Σε),则似然分布为P(B|S)~N(LS,Σε),Σε为观测噪声协方差。为了不失一般性,对观测方程(1)进行空间白化。具体来讲,就是对观测噪声协方差进行特征值分解,得到:Assuming that the prior distribution of the source signal is p(S) and the observation noise ε follows the Gaussian distribution N(0,Σ ε ), the likelihood distribution is P(B|S)~N(LS,Σ ε ), and Σ ε is the observation Noise covariance. Without loss of generality, the observation equation (1) is spatially whitened. Specifically, the eigenvalue decomposition of the observed noise covariance is performed to obtain:
B=LS+ε (2)B=LS+ε (2)
其中,且I为单位矩阵。为表示方便,在后文假设观测模型已白化,并去掉上式中变量符号上的波浪线。in, and I is the identity matrix. For convenience, in the following text, it is assumed that the observation model has been whitened, and the wavy line on the variable symbol in the above formula is removed.
给定大脑皮层源信号的某一个先验分布p(S),根据贝叶斯公式,源信号S的后验分布为:Given a certain prior distribution p(S) of the source signal in the cerebral cortex, according to the Bayesian formula, the posterior distribution of the source signal S is:
利用最小模解(MNE),选择能量最小(利用L2范数度量)的源结构为最终的源信号估计。MNE算法假设则S的最大后验估计为Using the minimum modulus solution (MNE), the source structure with the smallest energy (measured by the L2 norm) is selected as the final source signal estimate. MNE algorithm assumptions Then the maximum a posteriori estimate of S for
正则参数λ对最终的源信号估计有着重要的影响,一般可通过经验或者交叉验证等方法选择。本系统利用贝叶斯概率推断,通过数据自驱动的方式自动学习λ。具体来说,通过最大化λ的后验分布将λ的最大后验估计作为正则参数的估计值。假设λ的先验服从均匀分布,则The regularization parameter λ has an important influence on the final source signal estimation, and can generally be selected by methods such as experience or cross-validation. The system uses Bayesian probability inference to automatically learn λ in a data-driven manner. Specifically, by maximizing the posterior distribution of λ Take the maximum a posteriori estimate of λ as an estimate of the regularization parameter. Assuming that the prior of λ obeys a uniform distribution, then
其中,p(B|λ)=∫p(B|S)p(S|λ)dS~N(0,ΣB), Among them, p(B|λ)=∫p(B|S)p(S|λ)dS~N(0,Σ B ),
令得到make get
其中,x(k)表示x第k次的迭代值。迭代更新λ,直到p(B|λ)收敛或者相对变化小于某个阈值(比如10-6)。Among them, x (k) represents the k-th iteration value of x. Iteratively update λ until p(B|λ) converges or the relative change is less than a certain threshold (eg 10 -6 ).
2、ROI时间序列获取及皮层脑功能连接矩阵计算2. ROI time series acquisition and cortical brain functional connectivity matrix calculation
ROI时间序列获取:通过最小模算法,重构的EEG时间序列被投影到Brodman分区上,其中包括26个空间感兴趣区域(Region Of Interest,ROI),在翻转方向相反的源信号后,将ROI内所有源信号的时间序列取平均值。通过提取ROI的脑电源信号,从根本上提高了EEG信号的空间分辨率。ROI time series acquisition: Through the least modulus algorithm, the reconstructed EEG time series is projected onto the Brodman partition, which includes 26 regions of interest (Region Of Interest, ROI). The time series of all the source signals in the system are averaged. By extracting the brain power signal of the ROI, the spatial resolution of the EEG signal is fundamentally improved.
皮层脑功能连接矩阵计算:实验利用互信息度量电极间功能连接。随机变量间的互信息为:Cortical Brain Functional Connectivity Matrix Computation: Experiments use mutual information to measure functional connectivity between electrodes. Random Variables The mutual information between is:
其中p(x)、p(y)和p(x,y)分别表示x,y概率密度和联合概率密度,P为随机变量的向量长度。对每个样本,计算N个脑区间的互信息值,得到一个N×N脑功能连接矩阵。以DEAP数据集为例,选取被试某一划分时间段的单次试验样本,大小26*2560,利用nchoosek函数每次选取两行数据,分别求出每行数据的概率密度和两行数据的联合概率密度,对应于式(2)中的p(x)、p(y)和p(x,y),根据(联合)概率密度可求出两行数据的互信息MIxy,依次循环求得的样本大小为26*2560数据的对角线为0的对称脑功能连接矩阵为26×26。where p(x), p(y) and p(x,y) represent the x, y probability density and joint probability density, respectively, and P is the vector length of the random variable. For each sample, the mutual information value of N brain intervals is calculated to obtain an N×N brain functional connectivity matrix. Taking the DEAP data set as an example, a single test sample of a certain divided time period of the subjects was selected, with a size of 26*2560, and the nchoosek function was used to select two rows of data at a time, and the probability density of each row of data and the probability density of the two rows of data were obtained respectively. The joint probability density corresponds to p(x), p(y), and p(x,y) in formula (2). According to the (joint) probability density, the mutual information MI xy of the two rows of data can be obtained, and then cyclically obtain The obtained sample size is 26*2560 data and the symmetric brain functional connectivity matrix with 0 diagonals is 26*26.
3、基于RCSP和皮层脑网络的特征提取与分类3. Feature extraction and classification based on RCSP and cortical brain network
CSP方法中的协方差矩阵估计Covariance Matrix Estimation in CSP Method
在想象手运动过程中,CSP算法被广泛应用于多通道脑电信号的处理。它提取了几个空间滤波器,使滤波信号的方差对两个类是最具鉴别性的。在基于CSP的脑电图信号分类中,用大小为的N×T的E矩阵表示一个通道数量为N的脑电图实验,并且每一个通道中有T个样本,每个样本都作为一个单独实验。每个样本实验E的归一化样本协方差矩阵S为:In the process of imagining hand movement, the CSP algorithm is widely used in the processing of multi-channel EEG signals. It extracts several spatial filters so that the variance of the filtered signal is the most discriminative for both classes. In the CSP-based EEG signal classification, an EEG experiment with a number of N channels is represented by an E matrix of size N×T, and there are T samples in each channel, and each sample is treated as a separate experiment. The normalized sample covariance matrix S of each sample experiment E is:
其中上标‘T’表示矩阵的转置,tr(·)是矩阵的迹(对角线元素之和)。本发明只考虑二元类问题,因此只有两个类,通过c={1,2}对两个类进行索引。为了简单起见,假设M个试验可以在每个类中为一个受试者的实验对象进行训练,m为E(c,m),其中m=1,...,M。因此,每个试验都有相应的协方差矩阵S(c,m)。where the superscript 'T' denotes the transpose of the matrix and tr( ) is the trace (sum of diagonal elements) of the matrix. The present invention only considers the binary class problem, so there are only two classes, and the two classes are indexed by c={1,2}. For simplicity, assume that M trials can be trained for a subject's subject in each class, m being E (c,m) , where m=1,...,M. Therefore, each trial has a corresponding covariance matrix S (c,m) .
然后将每个类的平均空间协方差矩阵计算为:The mean spatial covariance matrix for each class is then computed as:
由于新受试者训练数据样本较少,通过RCSP技术,利用已有受试者的EEG数据,从而提高跨被试EEG情绪识别性能。Since there are fewer training data samples for new subjects, the EEG data of existing subjects is used through RCSP technology to improve the performance of EEG emotion recognition across subjects.
RCSP特征提取:RCSP feature extraction:
RCSP的特征提取遵循经典的CSP方法。正则化复合空间协方差的形成和分解如下:The feature extraction of RCSP follows the classical CSP method. The regularized composite space covariance is formed and decomposed as follows:
Σ(β,γ)=Σ1(β,γ)+Σ2(β,γ)=UΛUT (10)Σ(β,γ)=Σ 1 (β,γ)+Σ 2 (β,γ)=UΛU T (10)
其中,U是正则化复合空间协方差的特征向量矩阵,Λ是正则化复合空间协方差相应特征值的对角矩阵。本发明采用了特征值按降序排序的惯例。where U is the eigenvector matrix of the regularized composite spatial covariance, and Λ is the diagonal matrix of the corresponding eigenvalues of the regularized composite spatial covariance. The present invention adopts the convention that the eigenvalues are sorted in descending order.
接下来,得到白化变换为:Next, get the whitening transform as:
P=Λ-1/2UT (11)P=Λ -1/2 U T (11)
正则化复合空间协方差的第一分解Σ1(β,γ)及其第二分解Σ2(β,γ)被白化变换为:The first decomposition Σ 1 (β,γ) of the regularized composite spatial covariance and its second decomposition Σ 2 (β, γ) are whitened as:
Σ1(β,γ)=PΣ1(β,γ)PT (12)Σ 1 (β,γ)=PΣ 1 (β,γ)P T (12)
和and
Σ2(β,γ)=PΣ2(β,γ)PT (13)Σ 2 (β,γ)=PΣ 2 (β,γ)P T (13)
分别地,然后Σ1(β,γ)可以被分解为:Separately, then Σ 1 (β,γ) can be decomposed into:
Σ1(β,γ)=BΛ1BT (14)Σ 1 (β,γ)=BΛ 1 B T (14)
其中,Λ1为正则化复合空间协方差的第一分解Σ1(β,γ)相应特征值的对角矩阵,Σ2(β,γ)同理进行分解,分解为Σ2(β,γ)=BΛ2BT,Λ2为正则化复合空间协方差的第二分解Σ2(β,γ)相应的对角特征值矩阵,此处不再赘述。形成全投影矩阵为:Among them, Λ 1 is the diagonal matrix of the corresponding eigenvalues of the first decomposition of the regularized composite space covariance Σ 1 (β, γ), Σ 2 (β, γ) is decomposed in the same way, and decomposed into Σ 2 (β, γ ) )=BΛ 2 B T , where Λ 2 is the diagonal eigenvalue matrix corresponding to the second decomposition Σ 2 (β,γ) of the regularized composite space covariance, which is not repeated here. The full projection matrix is formed as:
W0=BTP (15)W 0 =B T P (15)
为了得到最有区分度的图像,第一个和最后一个α列W0保留形成一个N×Q,其中Q=2α。对于特征提取,首先将试验E投影为:In order to obtain the most discriminative image, the first and last α columns W 0 are reserved to form an N×Q, where Q=2α. For feature extraction, trial E is first projected as:
Z=WTE (16)Z=W T E (16)
然后,由Z的行的方差形成Q维特征向量y:Then, the Q-dimensional eigenvector y is formed by the variance of the rows of Z:
其中yq是y的第q个分量,是的第q行,是向量的方差。where y q is the qth component of y, Yes The qth row of , is a vector Variance.
分类:通过使用十折交叉验证,减小了差异,提高了算法准确性。将数据集分成十份,轮流将其中9份作为训练数据,1份作为测试数据,进行试验。Classification: By using ten-fold cross-validation, the variance is reduced and the algorithm accuracy is improved. The dataset is divided into ten parts, and 9 of them are used as training data and 1 is used as test data in turn for experimentation.
在数据集有限的情况下,使用十折交叉验证,相当于对一个数据集用同一个模型进行不同的测试,但每个训练的数据集又不全一样,相当于扩充了数据集,如果这十个模型的均值效果好的话,在一定程度上可以说这个模型有一定的泛化能力。In the case of limited data sets, using ten-fold cross-validation is equivalent to using the same model for different tests on a data set, but each training data set is not the same, which is equivalent to expanding the data set. If the mean effect of each model is good, it can be said that this model has a certain generalization ability to a certain extent.
利用SVM和KNN分类,其中SVM基于LIBSVM,选择RBF核函数,惩罚因子和核参数对训练数据通过网格搜索确定,其他参数使用默认值。对于KNN算法的k值,通过具体应用选取不同k,例如在DEAP数据集选取k=3和k=5可以得到最高准确率。Using SVM and KNN classification, where SVM is based on LIBSVM, RBF kernel function is selected, penalty factor and kernel parameters are determined by grid search on training data, and other parameters use default values. For the k value of the KNN algorithm, different k can be selected through specific applications. For example, selecting k=3 and k=5 in the DEAP data set can obtain the highest accuracy.
使用十折交叉验证,取十次测试结果的平均值作为交叉验证方法下的分类器性能指标,有效地避免过拟合和欠拟合的情况,获取的结果也比较可靠。利用SVM和KNN分类,其中SVM基于LIBSVM,选择RBF核函数,惩罚因子和核参数对训练数据通过网格搜索确定,其他参数使用默认值。对于KNN算法的k值,实验通过选取不同k,k=3和k=5在DEAP数据集得到最高准确率。Using ten-fold cross-validation, the average of ten test results is taken as the classifier performance index under the cross-validation method, which effectively avoids overfitting and underfitting, and the obtained results are more reliable. Using SVM and KNN classification, where SVM is based on LIBSVM, RBF kernel function is selected, penalty factor and kernel parameters are determined by grid search on training data, and other parameters use default values. For the k value of the KNN algorithm, the experiment obtains the highest accuracy in the DEAP dataset by selecting different k, k=3 and k=5.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, and substitutions can be made in these embodiments without departing from the principle and spirit of the invention and modifications, the scope of the present invention is defined by the appended claims and their equivalents.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546546.7A CN113378650B (en) | 2021-05-19 | 2021-05-19 | An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546546.7A CN113378650B (en) | 2021-05-19 | 2021-05-19 | An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113378650A CN113378650A (en) | 2021-09-10 |
CN113378650B true CN113378650B (en) | 2022-07-12 |
Family
ID=77571238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110546546.7A Active CN113378650B (en) | 2021-05-19 | 2021-05-19 | An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113378650B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113974625B (en) * | 2021-10-18 | 2024-05-03 | 杭州电子科技大学 | Emotion recognition method based on brain-computer cross-modal migration |
CN113974628B (en) * | 2021-10-29 | 2023-04-07 | 杭州电子科技大学 | Emotion recognition method based on brain-computer modal co-space |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102715911A (en) * | 2012-06-15 | 2012-10-10 | 天津大学 | Brain electric features based emotional state recognition method |
CN103425249A (en) * | 2013-09-06 | 2013-12-04 | 西安电子科技大学 | Electroencephalogram signal classifying and recognizing method based on regularized CSP and regularized SRC and electroencephalogram signal remote control system |
CN104771163A (en) * | 2015-01-30 | 2015-07-15 | 杭州电子科技大学 | Electroencephalogram feature extraction method based on CSP and R-CSP algorithms |
CN106943140A (en) * | 2017-03-08 | 2017-07-14 | 重庆邮电大学 | A kind of Mental imagery EEG feature extraction method based on RandomSelect RCSP |
CN109472194A (en) * | 2018-09-26 | 2019-03-15 | 重庆邮电大学 | A Feature Recognition Method of Motor Imagery EEG Signals Based on CBLSTM Algorithm Model |
CN109965869A (en) * | 2018-12-16 | 2019-07-05 | 北京工业大学 | MI-EEG recognition method based on brain source domain space |
CN111317466A (en) * | 2019-07-03 | 2020-06-23 | 重庆邮电大学 | EEG signal imaging method, system and computer equipment |
CN112084879A (en) * | 2020-08-14 | 2020-12-15 | 杭州电子科技大学 | Block selection common space mode feature extraction method for motor imagery electroencephalogram |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10379188B2 (en) * | 2013-09-05 | 2019-08-13 | Koninlijke Philips N.V. | MRI using spatially adaptive regularization for image reconstruction |
US11087459B2 (en) * | 2015-08-14 | 2021-08-10 | Elucid Bioimaging Inc. | Quantitative imaging for fractional flow reserve (FFR) |
-
2021
- 2021-05-19 CN CN202110546546.7A patent/CN113378650B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102715911A (en) * | 2012-06-15 | 2012-10-10 | 天津大学 | Brain electric features based emotional state recognition method |
CN103425249A (en) * | 2013-09-06 | 2013-12-04 | 西安电子科技大学 | Electroencephalogram signal classifying and recognizing method based on regularized CSP and regularized SRC and electroencephalogram signal remote control system |
CN104771163A (en) * | 2015-01-30 | 2015-07-15 | 杭州电子科技大学 | Electroencephalogram feature extraction method based on CSP and R-CSP algorithms |
CN106943140A (en) * | 2017-03-08 | 2017-07-14 | 重庆邮电大学 | A kind of Mental imagery EEG feature extraction method based on RandomSelect RCSP |
CN109472194A (en) * | 2018-09-26 | 2019-03-15 | 重庆邮电大学 | A Feature Recognition Method of Motor Imagery EEG Signals Based on CBLSTM Algorithm Model |
CN109965869A (en) * | 2018-12-16 | 2019-07-05 | 北京工业大学 | MI-EEG recognition method based on brain source domain space |
CN111317466A (en) * | 2019-07-03 | 2020-06-23 | 重庆邮电大学 | EEG signal imaging method, system and computer equipment |
CN112084879A (en) * | 2020-08-14 | 2020-12-15 | 杭州电子科技大学 | Block selection common space mode feature extraction method for motor imagery electroencephalogram |
Non-Patent Citations (5)
Title |
---|
"EEG feature extraction algorithm based on CSP and R-CSP";Yun Zheng;《ICCSS》;20210203;全文 * |
"EEG identificaiton based on brain functional network and autoregressive model";Sijia Zhao;《IEEE》;20201120;全文 * |
"基于脑功能网络和共空间模式分析的脑电情绪识别";刘柯;《计算机应用研究》;20210505;全文 * |
"基于贝叶斯理论和时空约束的脑电源成像方法研究";刘柯;《中国博士学位论文全文数据库》;20150531;全文 * |
"运动想象脑电信号的特征提取与识别算法研究";陈希豪;《中国优秀硕士学位论文全文数据库医药卫生科技辑》;20170430;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113378650A (en) | 2021-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ju et al. | Tensor-cspnet: A novel geometric deep learning framework for motor imagery classification | |
Lakshmi et al. | Survey on EEG signal processing methods | |
Wang et al. | Sparse Bayesian learning for end-to-end EEG decoding | |
CN114533086B (en) | Motor imagery brain electrolysis code method based on airspace characteristic time-frequency transformation | |
Zhang et al. | Bayesian learning for spatial filtering in an EEG-based brain–computer interface | |
Huang et al. | A review of electroencephalogram signal processing methods for brain-controlled robots | |
CN110367980A (en) | EEG signals Emotion identification method based on polynary empirical mode decomposition | |
CN111860410A (en) | EMG gesture recognition method based on multi-feature fusion CNN | |
Wang et al. | Identification of depression with a semi-supervised GCN based on EEG data | |
Saboksayr et al. | EEG-based emotion classification using graph signal processing | |
Hwaidi et al. | A noise removal approach from eeg recordings based on variational autoencoders | |
CN108038429A (en) | A kind of single brain electrical feature extraction sorting technique of Motor execution | |
Lotte et al. | EEG feature extraction | |
CN113378650B (en) | An Emotion Recognition Approach Based on Brain Power Imaging and Regularized Common Spatial Patterns | |
Vialatte et al. | Early detection of Alzheimer’s disease by blind source separation, time frequency representation, and bump modeling of EEG signals | |
Jinliang et al. | EEG emotion recognition based on granger causality and capsnet neural network | |
Shen et al. | Parallel sequence-channel projection convolutional neural network for EEG-based emotion recognition | |
Ghonchi et al. | Spatio-temporal deep learning for EEG-fNIRS brain computer interface | |
Ramakrishnan et al. | Seizure detection with local binary pattern and CNN classifier | |
CN116849679A (en) | Cross-mode hand action evaluation method | |
CN113128384A (en) | Brain-computer interface software key technical method of stroke rehabilitation system based on deep learning | |
Liu et al. | EEG classification algorithm of motor imagery based on CNN-Transformer fusion network | |
Shang et al. | Multi-band spatial feature extraction and classification for motor imaging EEG signals based on OSFBCSP-GAO-SVM model: EEG signal processing | |
Tang et al. | Multi-domain based dynamic graph representation learning for EEG emotion recognition | |
Behrouzi et al. | Understanding power of graph convolutional neural network on discriminating human EEG signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |