Electroencephalogram emotion recognition method and system based on multi-scale dispersion entropy analysis

文档序号:1943750 发布日期:2021-12-10 浏览:20次 中文

阅读说明:本技术 基于多尺度色散熵分析的脑电情感识别方法及系统 (Electroencephalogram emotion recognition method and system based on multi-scale dispersion entropy analysis ) 是由 刘振焘 胡思俊 佘锦华 徐迟 赵娟 徐鑫 于 2021-09-03 设计创作,主要内容包括:本发明涉及脑电信息处理领域,提供一种基于多尺度色散熵分析的脑电情感识别方法及系统,包括:获取原始脑电信号,对所述原始脑电信号进行预处理,获得预处理后的脑电信号;所述预处理后的脑电信号包括:θ节律脑电信号、α节律脑电信号、β节律脑电信号和γ节律脑电信号;提取所述预处理后的脑电信号的多尺度色散熵;将所述多尺度色散熵输入训练好的轻量梯度提升树,获得情感分类。本发明能够深入分析各节律脑电信号所蕴含的情感信息,提取出表征能力更强的脑电情感特征;使用色散熵作为特征提取方法,无需计算嵌入维数分别为s和s+1的任意两个复合延迟向量之间的距离,不对每个嵌入向量的幅度值进行排序,能够有效降低特征提取运算消耗。(The invention relates to the field of electroencephalogram information processing, and provides an electroencephalogram emotion recognition method and system based on multi-scale dispersion entropy analysis, wherein the method comprises the following steps: acquiring an original electroencephalogram signal, and preprocessing the original electroencephalogram signal to obtain a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal; extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal; inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification. The method can deeply analyze the emotional information contained in each rhythm electroencephalogram signal and extract the electroencephalogram emotional characteristics with stronger representation capability; the dispersion entropy is used as a feature extraction method, the distance between any two composite delay vectors with embedding dimensions s and s +1 respectively does not need to be calculated, the amplitude value of each embedded vector is not sequenced, and the feature extraction operation consumption can be effectively reduced.)

1. A brain electric emotion recognition method based on multi-scale dispersion entropy analysis is characterized by comprising the following steps:

s1: acquiring an original electroencephalogram signal, and preprocessing the original electroencephalogram signal to obtain a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

s2: extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

s3: inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification.

2. The electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis, as claimed in claim 1, wherein step S1 specifically comprises:

s11: performing band-pass filtering on the original electroencephalogram signal to obtain an electroencephalogram signal after band-pass filtering;

s12: performing notch filtering on the EEG signal subjected to the band-pass filtering to obtain a notch-filtered EEG signal;

s13: removing electrocardio, electrooculogram, myoelectricity and motion artifacts in the EEG signals subjected to notch filtering by an independent component analysis method to obtain EEG signals subjected to artifact removal;

s14: and inputting the electroencephalogram signals without artifacts into a four-order Butterworth filter to obtain the preprocessed electroencephalogram signals.

3. The electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis, as claimed in claim 1, wherein step S2 specifically comprises:

s21: selecting one rhythm electroencephalogram signal in the preprocessed electroencephalogram signals, and carrying out coarse graining processing on the rhythm electroencephalogram signal to obtain a coarse grained rhythm electroencephalogram signal xj(j ═ 1,2,. cndot, N); wherein j represents the time sequence of the rhythm electroencephalogram signal, and N represents the time length of the rhythm electroencephalogram signal;

s22: for the coarsely granulated rhythm electroencephalogram signal xjMapping to obtain mapped rhythm EEG signal YcExpressed as:

wherein the content of the first and second substances,representing the mapped rhythm electroencephalogram signals corresponding to each time sequence, and c representing the number of mapping categories;

s23: the mapped rhythm electroencephalogram signal YcConstructing a time series with a time delay parameter t and an embedding dimension sExpressed as:

wherein s represents the number of elements in the time series;

s24: obtaining the time seriesCorresponding dispersion modeWherein the content of the first and second substances,

s25: calculating the dispersion modePotential relative probability of

S26: according to Shannon entropy theory, passing the potential relative probabilityComputingObtaining the dispersion entropy of the rhythm electroencephalogram signal;

s27: repeating the steps S21-S26 for 4 times to obtain the multi-scale dispersion entropy, which comprises the following steps: the dispersion entropy of theta rhythm electroencephalogram signals, the dispersion entropy of alpha rhythm electroencephalogram signals, the dispersion entropy of beta rhythm electroencephalogram signals and the dispersion entropy of gamma rhythm electroencephalogram signals.

4. The electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis as claimed in claim 3, wherein the coarsely granulated rhythm electroencephalogram signal x in step S21jThe expression of (a) is as follows:

wherein u isbRepresenting the rhythmic electroencephalogram signals, L representing the length of the rhythmic electroencephalogram signals, and tau representing the scale factor.

5. The method for electroencephalogram emotion recognition based on multi-scale dispersion entropy analysis as claimed in claim 3, wherein the potential relative probability in step S25The calculation formula of (a) is as follows:

where, # denotes the calculation base.

6. The electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis, as claimed in claim 3, wherein the calculation formula of the dispersion entropy of the rhythm electroencephalogram signal in step S26 is as follows:

wherein the content of the first and second substances,csrepresenting each time seriesU represents the rhythmic brain electrical signal.

7. The electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis, as claimed in claim 1, wherein the training process of the trained lightweight gradient spanning tree in step S3 is as follows:

s31: acquiring a lightweight gradient lifting tree, and inputting training data into the lightweight gradient lifting tree;

s32: optimizing a layer growth strategy of a decision tree in the lightweight gradient spanning tree into a leaf growth strategy;

s33: reducing the storage space consumption during the operation of the lightweight gradient lifting tree by a histogram algorithm;

s34: reducing the data operation amount of the light-weight gradient lifting tree in operation through a unilateral gradient sampling algorithm and a mutual exclusion binding algorithm;

s35: optimizing the operation overhead and the operation efficiency of the lightweight gradient lifting tree in the classification process;

s36: and selecting the optimal model hyper-parameter of the lightweight gradient lifting tree by a Bayesian optimization method to obtain the trained lightweight gradient lifting tree.

8. The utility model provides a brain electricity emotion recognition system based on multiscale dispersion entropy analysis which characterized in that includes:

the preprocessing module is used for acquiring an original electroencephalogram signal, preprocessing the original electroencephalogram signal and acquiring a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

the multi-scale dispersion entropy extraction module is used for extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

and the emotion classification module is used for inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification.

Technical Field

The invention relates to the field of electroencephalogram information processing, in particular to an electroencephalogram emotion recognition method and system based on multi-scale dispersion entropy analysis.

Background

At present, electroencephalogram emotional feature extraction is mainly carried out through methods such as time domain analysis, frequency domain analysis and time-frequency domain analysis. However, due to the strong randomness and non-stationarity of the electroencephalogram signals, analysis methods such as time domain, frequency domain and time-frequency domain analysis cannot comprehensively represent information of the electroencephalogram signals. The time domain analysis ignores the frequency domain information of the electroencephalogram signal, the frequency domain analysis loses the important phase characteristics of the signal, and the randomness and the non-stationarity of the electroencephalogram signal cannot be represented by the method and the time-frequency domain analysis method. The extracted features are not comprehensive enough in characterization of the electroencephalogram signals, and therefore the final emotion recognition result is influenced.

In recent years, with the successful application of more and more information entropy feature extraction methods in different physiological and psychological disease researches, the attention of students in the electroencephalogram emotion recognition research field to the information entropy extraction methods is also promoted. More and more researchers apply different information entropies to electroencephalogram emotion recognition research. At present, mainstream information entropy analysis methods applied to electroencephalogram emotion recognition mainly comprise sample entropy and displacement entropy analysis methods and the like, and a certain effect is achieved. However, these methods take too much time for feature extraction, and are unreliable in processing results of time-series signals with short length, and are easily interfered by noise. The representation capability of the methods on the emotion information contained in the electroencephalogram signals also needs to be further improved, and therefore the electroencephalogram emotion recognition rate is improved.

The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.

Disclosure of Invention

The main purpose of the invention is to solve the problems that the extracted features have weak representation capability on emotion information and low emotion recognition rate in the prior art; the calculation time consumption during the feature extraction is too long, the processing result of the time series signal with shorter length is unreliable, and the noise interference is easy to occur; the technical problem of insufficient representation capability of the emotional information contained in the electroencephalogram signal.

In order to achieve the purpose, the invention provides an electroencephalogram emotion recognition method based on multi-scale dispersion entropy analysis, which comprises the following steps:

s1: acquiring an original electroencephalogram signal, and preprocessing the original electroencephalogram signal to obtain a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

s2: extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

s3: inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification.

Preferably, step S1 is specifically:

s11: performing band-pass filtering on the original electroencephalogram signal to obtain an electroencephalogram signal after band-pass filtering;

s12: performing notch filtering on the EEG signal subjected to the band-pass filtering to obtain a notch-filtered EEG signal;

s13: removing electrocardio, electrooculogram, myoelectricity and motion artifacts in the EEG signals subjected to notch filtering by an independent component analysis method to obtain EEG signals subjected to artifact removal;

s14: and inputting the electroencephalogram signals without artifacts into a four-order Butterworth filter to obtain the preprocessed electroencephalogram signals.

Preferably, step S2 is specifically:

s21: selecting one rhythm electroencephalogram signal in the preprocessed electroencephalogram signals, and carrying out coarse graining processing on the rhythm electroencephalogram signal to obtain a coarse grained rhythm electroencephalogram signal xj(j ═ 1,2,. cndot, N); wherein j represents the time sequence of the rhythm electroencephalogram signal, and N represents the time length of the rhythm electroencephalogram signal;

s22: for the coarsely granulated rhythm electroencephalogram signal xjMapping to obtain mapped rhythm EEG signal YcExpressed as:

wherein the content of the first and second substances,representing the mapped rhythm electroencephalogram signals corresponding to each time sequence, and c representing the number of mapping categories;

s23: the mapped rhythm electroencephalogram signal YcConstructing a time series with a time delay parameter t and an embedding dimension sExpressed as:

wherein s represents the number of elements in the time series;

s24: obtaining the time seriesCorresponding dispersion modeWherein the content of the first and second substances,

s25: calculating the dispersion modePotential relative probability of

S26: according to Shannon entropy theory, passing the potential relative probabilityCalculating to obtain the dispersion entropy of the rhythm electroencephalogram signal;

s27: repeating the steps S21-S26 for 4 times to obtain the multi-scale dispersion entropy, which comprises the following steps: the dispersion entropy of theta rhythm electroencephalogram signals, the dispersion entropy of alpha rhythm electroencephalogram signals, the dispersion entropy of beta rhythm electroencephalogram signals and the dispersion entropy of gamma rhythm electroencephalogram signals.

Preferably, the coarsely granulated electroencephalogram signal x of rhythm in step S21jThe expression of (a) is as follows:

wherein u isbRepresenting the rhythmic electroencephalogram signals, L representing the length of the rhythmic electroencephalogram signals, and tau representing the scale factor.

Preferably, the potential relative probabilities in step S25The calculation formula of (a) is as follows:

where, # denotes the calculation base.

Preferably, the calculation formula of the dispersion entropy of the rhythmic brain electrical signal in the step S26 is as follows:

wherein the content of the first and second substances,csrepresenting each time seriesU represents the rhythmic brain electrical signal.

Preferably, the training process of the trained lightweight gradient spanning tree in step S3 is as follows:

s31: acquiring a lightweight gradient lifting tree, and inputting training data into the lightweight gradient lifting tree;

s32: optimizing a layer growth strategy of a decision tree in the lightweight gradient spanning tree into a leaf growth strategy;

s33: reducing the storage space consumption during the operation of the lightweight gradient lifting tree by a histogram algorithm;

s34: reducing the data operation amount of the light-weight gradient lifting tree in operation through a unilateral gradient sampling algorithm and a mutual exclusion binding algorithm;

s35: optimizing the operation overhead and the operation efficiency of the lightweight gradient lifting tree in the classification process;

s36: and selecting the optimal model hyper-parameter of the lightweight gradient lifting tree by a Bayesian optimization method to obtain the trained lightweight gradient lifting tree.

A brain electric emotion recognition system based on multi-scale dispersion entropy analysis comprises:

the preprocessing module is used for acquiring an original electroencephalogram signal, preprocessing the original electroencephalogram signal and acquiring a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

the multi-scale dispersion entropy extraction module is used for extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

and the emotion classification module is used for inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification.

The invention has the following beneficial effects:

1. the emotion information contained in each rhythm electroencephalogram signal can be deeply analyzed, and electroencephalogram emotion characteristics with stronger representation capability are extracted;

2. the dispersion entropy is used as a feature extraction method, the distance between any two composite delay vectors with embedding dimensions s and s +1 respectively does not need to be calculated, the amplitude value of each embedded vector is not sequenced, and the feature extraction operation consumption can be effectively reduced.

Drawings

FIG. 1 is a flow chart of a method according to an embodiment of the present invention;

FIG. 2 is a system block diagram according to an embodiment of the present invention;

the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

At present, electroencephalogram emotional feature extraction is mainly carried out by methods such as time domain analysis, frequency domain analysis, time-frequency domain analysis and the like, and the traditional methods have the following problems:

1. the electroencephalogram signals belong to low-frequency weak signals with strong nonlinearity and non-stationarity, and the existing time domain, frequency domain and time frequency domain electroencephalogram emotional feature extraction methods cannot well represent emotional information contained in the electroencephalogram signals, so that the extracted features have weak representation capability on the emotional information and low emotion recognition rate.

2. Analysis methods such as sample entropy, displacement entropy, dispersion entropy, multi-scale sample entropy and multi-scale displacement entropy are applied to electroencephalogram emotional feature extraction, and certain effects are achieved.

3. The representation capability of the sample entropy, the displacement entropy, the dispersion entropy and other methods on the emotion information contained in the electroencephalogram signal also needs to be further improved, and therefore the electroencephalogram emotion recognition rate is improved.

Referring to fig. 1, aiming at the above problems, the invention provides a method for recognizing electroencephalogram emotion based on multi-scale dispersion entropy analysis, which comprises the following steps:

s1: acquiring an original electroencephalogram signal, and preprocessing the original electroencephalogram signal to obtain a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

s2: extracting the multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

s3: inputting the multi-scale dispersion entropy into the trained light-weight gradient lifting tree to obtain emotion classification.

In this embodiment, step S1 specifically includes:

s11: performing band-pass filtering on the original electroencephalogram signal to obtain an electroencephalogram signal after band-pass filtering;

in the specific implementation, the main frequency range of the electroencephalogram signals subjected to band-pass filtering is 0.5-50 Hz, the frequency range acquired by electroencephalogram acquisition equipment is usually larger than the frequency range, a band-pass filter is required to perform band-pass filtering on the acquired original electroencephalogram signals, and the rest frequency components are removed to obtain the main frequency range of the electroencephalogram signals subjected to band-pass filtering;

s12: performing notch filtering on the EEG signal subjected to the band-pass filtering to obtain a notch-filtered EEG signal;

in the specific implementation, because of power frequency interference, the EEG signal after band-pass filtering still contains 50Hz power frequency noise, and the 50Hz power frequency noise needs to be filtered by a notch filter;

s13: removing electrocardio, electrooculogram, myoelectricity and motion artifacts in the EEG signals subjected to notch filtering by an independent component analysis method to obtain EEG signals subjected to artifact removal;

in the specific implementation, heart beating, eyeball movement, blinking, muscle activity and body movement of a person all affect the electroencephalogram signal, so that corresponding artifact components appear in the electroencephalogram signal, and various components can be separated by using an independent component analysis method, so that the artifacts are removed;

s14: inputting the electroencephalogram signals without artifacts into a four-order Butterworth filter to obtain the preprocessed electroencephalogram signals;

in the specific implementation, the preprocessed electroencephalogram signals mainly comprise: the four-step Butterworth filter is directly adopted to decompose the electroencephalogram signals to obtain theta rhythm electroencephalogram signals, alpha rhythm electroencephalogram signals, beta rhythm electroencephalogram signals and gamma rhythm electroencephalogram signals.

In this embodiment, step S2 specifically includes:

s21: selecting one rhythm electroencephalogram signal in the preprocessed electroencephalogram signals, and carrying out coarse graining processing on the rhythm electroencephalogram signal to obtain a coarse grained rhythm electroencephalogram signal xj(j ═ 1,2,. cndot, N); wherein j represents the time sequence of the rhythm electroencephalogram signal, and N represents the time length of the rhythm electroencephalogram signal;

s22: for the coarsely granulated rhythm electroencephalogram signal xjMapping, and using S-type mapping method to obtain coarse-grained rhythm EEG signal xjMapping to c different categories (the indexes of the c categories are integers from 1 to c respectively) to obtain mapped rhythm electroencephalogram signals YcExpressed as:

wherein the content of the first and second substances,representing the mapped rhythm electroencephalogram signals corresponding to each time sequence, and c representing the number of mapping categories;

s23: the mapped rhythm electroencephalogram signal YcConstructing a time series with a time delay parameter t and an embedding dimension sExpressed as:

wherein s represents the number of elements in the time series;

s24: obtaining the time seriesCorresponding dispersion modeWherein the content of the first and second substances,

in the calculation of step S24, each time series is assignedIs equal to cs(ii) a Because of the time sequenceHas s elements, and each element may be mapped into a category indexed by integers 1 through c;

s25: calculating the dispersion modePotential relative probability of

S26: according to Shannon entropy theory, passing the potential relative probabilityCalculating to obtain Dispersion Entropy (Dispersion Entropy, Dispen) of the rhythm electroencephalogram signal;

s27: repeating the steps S21-S26 for 4 times to obtain the multi-scale dispersion entropy, which comprises the following steps: the dispersion entropy of theta rhythm electroencephalogram signals, the dispersion entropy of alpha rhythm electroencephalogram signals, the dispersion entropy of beta rhythm electroencephalogram signals and the dispersion entropy of gamma rhythm electroencephalogram signals.

In this embodiment, the coarsely granulated electroencephalogram signal x of rhythm described in step S21jThe expression of (a) is as follows:

wherein u isbRepresenting the rhythmic electroencephalogram signals, L representing the length of the rhythmic electroencephalogram signals, and tau representing the scale factor.

In this embodiment, the potential relative probability in step S25The calculation formula of (a) is as follows:

wherein, # denotes the calculation base; in practice, the amount of the liquid to be used,indicating assignment to time seriesDispersion mode ofIs divided by s as the embedding dimension, and thus,can also be expressed as:

in this embodiment, the formula for calculating the dispersion entropy of the rhythm electroencephalogram signal in step S26 is as follows:

wherein the content of the first and second substances,csrepresenting each time seriesU represents the rhythmic brain electrical signal.

In this embodiment, the training process of the trained lightweight gradient spanning tree in step S3 is as follows:

s31: acquiring a lightweight gradient lifting tree, and inputting training data into the lightweight gradient lifting tree;

s32: optimizing a layer growth strategy of a decision tree in the lightweight gradient spanning tree into a leaf growth strategy;

s33: reducing the storage space consumption during the operation of the lightweight gradient lifting tree by a histogram algorithm;

s34: reducing the data operation amount of the light-weight gradient lifting tree in operation through a unilateral gradient sampling algorithm and a mutual exclusion binding algorithm;

s35: optimizing the operation overhead and the operation efficiency of the lightweight gradient lifting tree in the classification process;

s36: and selecting the optimal model hyper-parameter of the lightweight gradient lifting tree by a Bayesian optimization method to obtain the trained lightweight gradient lifting tree.

Referring to fig. 2, the invention provides a brain emotion recognition system based on multi-scale dispersion entropy analysis, comprising:

the preprocessing module 10 is used for acquiring an original electroencephalogram signal, preprocessing the original electroencephalogram signal and acquiring a preprocessed electroencephalogram signal; the preprocessed electroencephalogram signals comprise: theta rhythm EEG signal, alpha rhythm EEG signal, beta rhythm EEG signal and gamma rhythm EEG signal;

a multi-scale dispersion entropy extraction module 20, configured to extract a multi-scale dispersion entropy of the preprocessed electroencephalogram signal;

and the emotion classification module 30 is configured to input the multi-scale dispersion entropy into the trained lightweight gradient lifting tree to obtain emotion classification.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third and the like do not denote any order, but rather the words first, second and the like may be interpreted as indicating any order.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于深度学习和静息态脑电数据分析病人意识水平的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!