Nothing Special   »   [go: up one dir, main page]

CN114343675B - Electroencephalogram component extraction method - Google Patents

Electroencephalogram component extraction method Download PDF

Info

Publication number
CN114343675B
CN114343675B CN202111614625.3A CN202111614625A CN114343675B CN 114343675 B CN114343675 B CN 114343675B CN 202111614625 A CN202111614625 A CN 202111614625A CN 114343675 B CN114343675 B CN 114343675B
Authority
CN
China
Prior art keywords
state
covariance matrix
electrical signal
brain electrical
electroencephalogram
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
Application number
CN202111614625.3A
Other languages
Chinese (zh)
Other versions
CN114343675A (en
Inventor
李海峰
薄洪健
马琳
丰上
徐聪
李洪伟
孙聪珊
徐忠亮
丁施航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Shenzhen Academy of Aerospace Technology
Original Assignee
Harbin Institute of Technology
Shenzhen Academy of Aerospace Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology, Shenzhen Academy of Aerospace Technology filed Critical Harbin Institute of Technology
Priority to CN202111614625.3A priority Critical patent/CN114343675B/en
Publication of CN114343675A publication Critical patent/CN114343675A/en
Application granted granted Critical
Publication of CN114343675B publication Critical patent/CN114343675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention provides an electroencephalogram component extraction method, which comprises the following steps: acquiring an original brain electrical signal, and acquiring a resting brain electrical signal and an excitation brain electrical signal from the original brain electrical signal; taking the resting electroencephalogram signal as a value basis to carry out parameter estimation of a Kalman filtering model to obtain state prediction parameters; and carrying out Kalman filtering on the excited electroencephalogram signals according to the state prediction parameters so as to obtain filtered electroencephalogram signals. Because the resting brain electrical signal and the excitation brain electrical signal are part of the original brain electrical signal, the noise components in the resting brain electrical signal and the excitation brain electrical signal are approximate. In addition, the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the signal fluctuation is stable, thereby being suitable for being used as a value basis of the extraction state prediction parameters. The resting electroencephalogram signal is used as a value basis for parameter estimation, and a high-quality state prediction parameter can be provided for a filtering process of exciting the electroencephalogram signal, so that the accuracy of electroencephalogram component extraction is further improved.

Description

Electroencephalogram component extraction method
Technical Field
The invention relates to the field of computer information processing, in particular to an electroencephalogram component extraction method.
Background
Current studies on brain function cognition are mainly accomplished by extracting relevant components from brain electrical signals. Because the electroencephalogram signal is a complex non-stationary random signal, the data acquisition process is easily interfered by the external environment and the physiological condition of the subject. Therefore, the signals are filtered to eliminate the influence of interference, and the required cognitive components are obtained as much as possible.
In the related art, kalman filtering is often applied to the extraction of cognitive components of brain electrical signals, however, the development of theory is not mature enough. The application of Kalman filtering to the extraction of cognitive components of an electroencephalogram signal requires the calculation of a Jacobi (Jacobi) matrix, and the complex calculation of the Jacobi matrix plays a certain limiting role on practical application. Therefore, in order to improve the calculation efficiency of the kalman filtering and improve the numerical stability of the algorithm in the electroencephalogram component estimation, there is a need for an electroencephalogram component extraction method capable of more accurately estimating the electroencephalogram noise.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides an electroencephalogram component extraction method which can be used for more accurately estimating the electroencephalogram noise.
The electroencephalogram component extraction method according to the embodiment of the invention comprises the following steps:
collecting an original brain electrical signal, and obtaining a resting brain electrical signal and an excitation brain electrical signal from the original brain electrical signal, wherein the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the excitation brain electrical signal reflects the brain electrical signal of which the brain is in a stimulated state;
taking the resting electroencephalogram signal as a value basis to perform parameter estimation of a Kalman filtering model to obtain state prediction parameters;
and carrying out Kalman filtering on the excited electroencephalogram signals according to the state prediction parameters so as to obtain filtered electroencephalogram signals.
The electroencephalogram component extraction method provided by the embodiment of the invention has at least the following beneficial effects:
the electroencephalogram component extraction method of the invention firstly collects the original electroencephalogram signals, and then obtains the resting electroencephalogram signals and the excitation electroencephalogram signals from the original electroencephalogram signals. Further, the rest electroencephalogram signal is used as a value basis to carry out Kalman filtering parameter estimation to obtain state prediction parameters, kalman filtering is carried out on the excited electroencephalogram signal according to the state prediction parameters, and finally the filtered electroencephalogram signal is obtained. Because the resting brain electrical signal and the excitation brain electrical signal are part of the original brain electrical signal, the noise components in the resting brain electrical signal and the excitation brain electrical signal are approximate. In addition, the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the signal fluctuation is stable, thereby being suitable for being used as a value basis of the extraction state prediction parameters. Based on the reasons, the resting electroencephalogram signal is used as a value basis for parameter estimation, so that higher-quality state prediction parameters can be provided for the filtering process of the excited electroencephalogram signal, and the accuracy of electroencephalogram component extraction can be further improved.
Optionally, according to some embodiments of the present invention, the estimating parameters of the kalman filter model based on the resting electroencephalogram signal to obtain state prediction parameters includes:
analyzing the resting brain electrical signal to obtain an autoregressive model coefficient;
substituting the autoregressive model coefficient into a state equation and an observation equation, and estimating to obtain a state transition matrix and a measurement matrix in the state prediction parameters;
and obtaining an observation noise covariance matrix and a process noise covariance matrix in the state prediction parameters according to the autoregressive model coefficient, the state equation and the observation equation.
Optionally, according to some embodiments of the invention, the method further comprises:
establishing a P-order autoregressive model
Figure BDA0003436592430000021
Wherein a is 1 ,a 2 ,...,a p For the P-order autoregressive model coefficient, z s Representing said resting brain electrical signal without noise, v s K represents the time at which observation data is acquired for observation noise;
when x is p (k)=[z s (k-p),z s (k-p+1),…z s (k-1),z s (k)] T Obtaining the state equation of Kalman filtering through the autoregressive model:
Figure BDA0003436592430000022
obtaining the observation equation of Kalman filtering through the autoregressive model:
Figure BDA0003436592430000023
Wherein x is a state variable, said I p-1 Is a P-1 order identity matrix,/one>
Figure BDA0003436592430000024
For process noise, z represents a noisy resting brain electrical signal.
Optionally, according to some embodiments of the present invention, substituting the autoregressive model coefficient into a state equation and an observation equation and estimating to obtain a state transition matrix and a measurement matrix in the state prediction parameters includes:
p-order autoregressive model coefficient a extracted from resting electroencephalogram signals 1 ,a 2 ,...,a p Substituting the state equation and the observation equation, and estimating to obtain a Kalman filtering state transition matrix in the state prediction parameters
Figure BDA0003436592430000025
Measurement matrix h= [0 … 01 of kalman filter]。
Optionally, according to some embodiments of the invention, the deriving the observed noise covariance matrix and the process noise covariance matrix in the state prediction parameter includes:
the observed noise v s A multivariate normal distribution (0, R) expressed as mean 0 and covariance matrix R;
the resting electroencephalogram signal is used as an observation base to measure the observation noise v s And obtaining the observed noise covariance matrix R;
noise the process
Figure BDA0003436592430000026
A multivariate normal distribution (0, Q) expressed as a mean of 0 and a covariance matrix of Q; />
According to the P-order autoregressive model coefficient a 1 ,a 2 ,...,a p With the observed noise v s And obtaining the process noise covariance matrix Q.
Optionally, according to some embodiments of the invention, the performing kalman filtering on the excitation electroencephalogram signal according to the state prediction parameter includes:
according to the excitation electroencephalogram signal J (t-1) detected at the previous moment t-1 and the state prediction parameter, a priori state vector of the current moment t is calculated from the previous moment t-1 to the current moment t
Figure BDA0003436592430000027
Covariance matrix with prior error->
Figure BDA0003436592430000028
According to the prior state vector of the current time t
Figure BDA0003436592430000031
Covariance matrix with prior error->
Figure BDA0003436592430000032
Obtaining Kalman gain;
the excitation EEG signal J (t), the Kalman gain and the prior state vector detected according to the current moment t
Figure BDA0003436592430000033
Covariance matrix with the prior error +.>
Figure BDA0003436592430000034
Calculating a posterior state vector x of the current time t t Posterior error covariance matrix P t
According to said x t With said P t And generating an output value of the filtered electroencephalogram signal at the current time t.
Optionally, according to some embodiments of the invention, the method further comprises:
the x is set to t As a priori state vector at time t+1, the P is determined t As a priori error covariance matrix at the time t+1, calculating and updating the Kalman gain and updating the state prediction parameters;
according to the excitation electroencephalogram signal J (t+1) detected at the next moment t+1, the Kalman gain of the updated state and the state prediction parameters of the updated state, a posterior state vector x of the next moment t+1 is calculated t+1 Posterior error covariance matrix P t+1
According to said x t+1 With said P t+1 And generating an output value of the filtered electroencephalogram signal at the next time t+1.
Optionally, according to some embodiments of the invention, the prior state vector of the current time t is calculated from the previous time t-1 to the current time t
Figure BDA0003436592430000035
Covariance matrix with prior error->
Figure BDA0003436592430000036
Comprising the following steps:
substituting a state transition matrix A and the process noise covariance matrix Q in the state prediction parameters into a state variable update equation
Figure BDA0003436592430000037
Update equation with error covariance->
Figure BDA0003436592430000038
Deriving said->
Figure BDA0003436592430000039
Is in contact with the->
Figure BDA00034365924300000310
Wherein x is t-1 P being the state variable at the last time t-1 t-1 Is the error covariance matrix of the last time t-1.
Optionally, according to some embodiments of the invention, the prior state vector according to the current time t
Figure BDA00034365924300000311
Covariance matrix with prior error->
Figure BDA00034365924300000312
Deriving a kalman gain comprising:
the measurement matrix H, the observed noise covariance matrix R and the prior state vector of the current moment t
Figure BDA00034365924300000313
Covariance matrix with prior error->
Figure BDA00034365924300000314
Substitution formula->
Figure BDA00034365924300000315
Obtaining Kalman gain K.
Alternatively, according to some embodiments of the invention, the derivingThe posterior state vector x of the current time t is obtained t Posterior error covariance matrix P t Comprising:
the measurement matrix H, the Kalman gain K, the excitation electroencephalogram signal J (t) detected at the current moment t and the prior state vector at the current moment t are processed
Figure BDA00034365924300000316
Substitution formula->
Figure BDA00034365924300000317
Obtaining posterior state vector x at current time t t
The measurement matrix H, the Kalman gain K and the prior error covariance matrix of the current moment t are obtained
Figure BDA00034365924300000318
Substitution formula->
Figure BDA00034365924300000319
Obtaining a posterior error covariance matrix P of the current moment t t 。/>
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
FIG. 1 is a schematic flow chart of an electroencephalogram component extraction method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 6 is a flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 7 is a flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
FIG. 8 is a flow chart of another method for extracting brain electrical components according to an embodiment of the present invention;
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, a number means one or more, a number means two or more, and greater than, less than, exceeding, etc. are understood to not include the present number, and above, below, within, etc. are understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, it should be understood that the direction or positional relationship indicated with respect to the description of the orientation, such as up, down, left, right, front, rear, etc., is based on the direction or positional relationship shown in the drawings, is merely for convenience of describing the present invention and simplifying the description, and does not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be determined reasonably by a person skilled in the art in combination with the specific content of the technical solution.
Current studies on brain function cognition are mainly accomplished by extracting relevant components from brain electrical signals. Because the electroencephalogram signal is a complex non-stationary random signal, the data acquisition process is easily interfered by the external environment and the physiological condition of the subject. Therefore, the signals are filtered to eliminate the influence of interference, and the required cognitive components are obtained as much as possible.
In the related art, kalman filtering is often applied to the extraction of cognitive components of brain electrical signals, however, the development of theory is not mature enough. The application of Kalman filtering to the extraction of cognitive components of an electroencephalogram signal requires the calculation of a Jacobi (Jacobi) matrix, and the complex calculation of the Jacobi matrix plays a certain limiting role on practical application. Therefore, in order to improve the calculation efficiency of the kalman filtering and improve the numerical stability of the algorithm in the electroencephalogram component estimation, there is a need for an electroencephalogram component extraction method capable of more accurately estimating the electroencephalogram noise.
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides an electroencephalogram component extraction method which can be used for more accurately estimating the electroencephalogram noise.
The following is further described with reference to the accompanying drawings.
Referring to fig. 1, an electroencephalogram component extraction method according to an embodiment of the present invention includes:
step S101, acquiring an original brain electrical signal, and acquiring a resting brain electrical signal and an excitation brain electrical signal from the original brain electrical signal, wherein the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the excitation brain electrical signal reflects the brain electrical signal of which the brain is in a stimulated state;
in some embodiments of the invention, the acquisition of the original brain electrical signal includes a resting brain electrical signal reflecting that the brain is in an unstimulated state, and includes an stimulated brain electrical signal reflecting that the brain is in a stimulated state. The whole original brain electrical signal records the brain from the unstimulated state to the stimulated state, and the brain electrical signal change process and the continuous process.
Step S102, parameter estimation of a Kalman filtering model is carried out by taking a resting electroencephalogram signal as a value basis, and state prediction parameters are obtained;
the rest brain electrical signal and the excitation brain electrical signal are part of the original brain electrical signal, so that noise components in the rest brain electrical signal and the excitation brain electrical signal are approximate. In addition, the resting brain electrical signal reflects the brain electrical signal of the brain in the unstimulated state, and the signal fluctuation is stable. Therefore, the resting electroencephalogram signal is suitable to be used as a value basis for extracting state prediction parameters, and the extracted state prediction parameters are used for carrying out Kalman filtering on the excited electroencephalogram signal subsequently so as to extract the filtered electroencephalogram signal.
Step S103, kalman filtering is carried out on the excited electroencephalogram signals according to the state prediction parameters so as to obtain filtered electroencephalogram signals.
The theoretical basis of the kalman filtering is to filter noise from an observed signal containing noise, and to recover the target signal itself or approach the target signal. The input of the filter is the observed quantity of the system, the calculated estimated value is the output of the filter by utilizing the statistical characteristics of system noise and observation noise, the time updating equation and the observation updating equation link the input and the output of the filter together, and all signals to be processed are estimated according to the two equations. The Kalman filtering design method is simple and easy to implement and wide in application range, but the theory development is not mature enough. Firstly, a Jacobi matrix needs to be calculated, and the complex calculation of the Jacobi matrix has a certain limiting effect on practical application; in addition, the assumption that the probability distribution function has gaussian characteristics makes it unusable for non-linear non-gaussian random systems. Therefore, the state prediction parameters obtained by taking the resting electroencephalogram signals as the value basis can improve the numerical stability of the algorithm on electroencephalogram component estimation.
The electroencephalogram component extraction method of the invention firstly collects the original electroencephalogram signals, and then obtains the resting electroencephalogram signals and the excitation electroencephalogram signals from the original electroencephalogram signals. Further, the rest electroencephalogram signal is used as a value basis to carry out Kalman filtering parameter estimation to obtain state prediction parameters, kalman filtering is carried out on the excited electroencephalogram signal according to the state prediction parameters, and finally the filtered electroencephalogram signal is obtained. Because the resting brain electrical signal and the excitation brain electrical signal are part of the original brain electrical signal, the noise components in the resting brain electrical signal and the excitation brain electrical signal are approximate. In addition, the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the signal fluctuation is stable, thereby being suitable for being used as a value basis of the extraction state prediction parameters. Based on the reasons, the resting electroencephalogram signal is used as a value basis for parameter estimation, so that higher-quality state prediction parameters can be provided for the filtering process of the excited electroencephalogram signal, and the accuracy of electroencephalogram component extraction can be further improved.
Referring to fig. 2, in step S102, parameter estimation of a kalman filter model is performed based on a resting electroencephalogram signal as a value basis to obtain a state prediction parameter, which includes:
step S201, analyzing a resting brain electrical signal and obtaining an autoregressive model coefficient;
step S202, substituting the autoregressive model coefficient into a state equation and an observation equation, and estimating to obtain a state transition matrix and a measurement matrix in the state prediction parameters;
step S203, according to the autoregressive model coefficient, the state equation and the observation equation, an observation noise covariance matrix and a process noise covariance matrix in the state prediction parameters are obtained.
The state prediction parameters include a state transition matrix, a measurement matrix, an observation noise covariance matrix, and a process noise covariance matrix. In some embodiments of the present invention, a state transition matrix, a measurement matrix, an observation noise covariance matrix, and a process noise covariance matrix, which are obtained by taking a resting electroencephalogram signal as a value basis, are used to construct a priori estimates for a subsequent kalman filtering process of an excitation electroencephalogram signal.
Referring to fig. 3, a kalman filtered state equation and a kalman filtered observation equation are obtained according to some embodiments of the invention by:
step S301, establishing a P-order autoregressive model
Figure BDA0003436592430000051
Wherein a is 1 ,a 2 ,...,a p For the P-order autoregressive model coefficient, z s Representing a noise-free resting brain electrical signal, v s K represents the time at which observation data is acquired for observation noise;
the autoregressive model (Autoregressive model, AR model) is a method of statistically processing time series, and uses the previous phases of the same variable to predict the performance of the phase, and assumes that they are in a linear relationship. Since this is developed from linear regression in regression analysis, the variables of each previous period are used to predict the current phase behavior of the variables themselves, and are therefore called autoregressions.
And step S302, when the state variable takes a value from the resting brain electrical signal, obtaining a Kalman filtering state equation and an observation equation through an autoregressive model.
When x is p (k)=[z s (k-p),z s (k-p+1),…z s (k-1),z s (k)] T And obtaining a Kalman filtering state equation through an autoregressive model:
Figure BDA0003436592430000061
obtaining an observation equation of Kalman filtering through an autoregressive model:
Figure BDA0003436592430000062
Where x is a state variable, I p-1 Is a P-1 order identity matrix,/one>
Figure BDA0003436592430000063
For process noise, z represents a noisy resting brain electrical signal.
Referring to fig. 4, according to some embodiments of the present invention, substituting the autoregressive model coefficients into the state equation and the observation equation in step S202 and estimating the state transition matrix and the measurement matrix in the state prediction parameters includes:
step S401, extracting P-order autoregressive model coefficient a from resting brain electrical signal 1 ,a 2 ,...,a p Substituting a state equation and an observation equation;
step S402, estimating a Kalman filtering state transition matrix in the state prediction parameters
Figure BDA0003436592430000064
Measurement matrix h= [0 … 01 of kalman filter]。
Referring to fig. 5, according to some embodiments of the present invention, deriving the observed noise covariance matrix and the process noise covariance matrix in the state prediction parameters in step S203 includes:
step S501, observe noise v s The process noise is represented by a multivariate normal distribution (0, R) with a mean value of 0 and a covariance matrix of R
Figure BDA0003436592430000065
A multivariate normal distribution (0, Q) expressed as a mean of 0 and a covariance matrix of Q;
step S502, measuring observation noise v by taking resting brain electrical signal as observation base s Obtaining an observation noise covariance matrix R;
step S503, according to the P-order autoregressive model coefficient a 1 ,a 2 ,...,a p And observation noise v s And obtaining a process noise covariance matrix Q.
Referring to fig. 6, step S103 performs kalman filtering on the excitation electroencephalogram signal according to the state prediction parameters, including:
step S601, detecting according to the previous time t-1The obtained excitation EEG signal J (t-1) and the state prediction parameters calculate the prior state vector of the current time t from the previous time t-1 to the current time t
Figure BDA0003436592430000066
Covariance matrix with prior error->
Figure BDA0003436592430000067
According to some embodiments of the present invention, if the current time t is the starting time of the excitation electroencephalogram, the excitation electroencephalogram does not exist at the previous time t-1, and the prior state vector of the current time t is performed according to the state prediction parameters acquired by taking the resting electroencephalogram as the value basis
Figure BDA0003436592430000071
Covariance matrix with prior error->
Figure BDA0003436592430000072
It is to be understood that the case where the current time t is the excitation electroencephalogram signal start time is included in the literal meaning of step S601.
Step S602, according to the prior state vector of the current time t
Figure BDA0003436592430000073
Covariance matrix with prior error->
Figure BDA0003436592430000074
Obtaining Kalman gain;
step S603, according to the excitation EEG signal J (t), kalman gain and prior state vector detected at the current time t
Figure BDA0003436592430000075
Covariance matrix with prior error->
Figure BDA0003436592430000076
Estimating the posterior state direction of the current time tQuantity x t Posterior error covariance matrix P t
The excitation brain signal J (t), kalman gain estimation and prior state vector detected according to the current time t
Figure BDA0003436592430000077
Covariance matrix with prior error->
Figure BDA0003436592430000078
Obtaining posterior state vector x at current time t t Posterior error covariance matrix P t A priori state vector for the current time t is intended to be reduced +.>
Figure BDA0003436592430000079
Covariance matrix with prior error->
Figure BDA00034365924300000710
Error from actual value, thereby obtaining posterior state vector x closer to actual value t Posterior error covariance matrix P t
Step S604, according to x t And P t And generating an output value of the filtered electroencephalogram signal at the current time t.
It should be noted that, based on the posterior state vector x t Posterior error covariance matrix P t The generated output value is the value of the filtered electroencephalogram signal at the current time t. In general, posterior state vectors and posterior error covariance matrixes of all moments obtained by processing observed values of excitation electroencephalogram signals at all moments are obtained, output values of all moments are obtained, and finally the output values of all moments are combined to form waveforms of the filtered electroencephalogram signals.
Referring to fig. 7, step S103 performs kalman filtering on the excitation electroencephalogram signal according to the state prediction parameters, and further includes:
step S701, X is calculated t As a priori state vector at time t+1, P is taken as t As tCalculating an updated Kalman gain and an updated state prediction parameter by using the prior error covariance matrix at the moment +1;
in some embodiments of the present invention, updating the state prediction parameters mainly refers to updating the process noise covariance Q. Specifically, through Q t+1 =K 1 Q t +K 2 K (J (t+1) -HX) to update the process noise covariance Q, where K 1 ,K 2 Are all weighting coefficients, and 0<K 1 <1,0<K 2 <1, K is Kalman filtering gain, J (t+1) is an excitation electroencephalogram signal detected at the next moment t+1, H is a Kalman filtering measurement matrix, and X is a state variable matrix formed by state variables. Along with the update of the Kalman gain according to the state prediction parameters in each round of circulation, the Kalman filtering process can generate self-adaptive adjustment along with the change of the excitation electroencephalogram signals, so that the accuracy of the electroencephalogram component extraction method is further improved.
Step S702, estimating the posterior state vector x of the next time t+1 according to the excitation electroencephalogram signal J (t+1) detected at the next time t+1, the Kalman gain of the updated state, and the state prediction parameters of the updated state t+1 Posterior error covariance matrix P t+1
Step S703, according to x t+1 And P t+1 And generating an output value of the filtered electroencephalogram signal at the next time t+1.
It should be noted that, in this embodiment, steps S701 to S703 form a cycle of the kalman filtering process, and the kalman gain and the state prediction parameter can be updated once after each cycle, and an output value of the filtered electroencephalogram signal is obtained until the kalman filtering is completed to excite all the electroencephalogram signals to be processed, and the filtered electroencephalogram signals are randomly generated. The output of each cycle is obtained by the posterior state vector and the posterior error covariance matrix corresponding to the cycle, so that the output value close to the actual value can be obtained for each cycle, and the accuracy of the finally formed filtered electroencephalogram signal is correspondingly improved.
Referring to FIG. 8, step S601 is from the last time instant according to some embodiments of the present inventiont-1 calculates a priori state vector of the current time t from the current time t
Figure BDA00034365924300000711
Covariance matrix with prior error->
Figure BDA00034365924300000712
Comprising the following steps:
step S801, substituting the state transition matrix A and the process noise covariance matrix Q in the state prediction parameters into the state variable update equation
Figure BDA00034365924300000713
Update equation with error covariance->
Figure BDA00034365924300000714
Wherein x is t-1 P being the state variable at the last time t-1 t-1 An error covariance matrix of the last time t-1;
step S802, obtaining a priori state vector of the current time t
Figure BDA00034365924300000715
Covariance matrix with prior error->
Figure BDA00034365924300000716
According to some embodiments of the invention, step S602 is based on an a priori state vector at the current time t
Figure BDA00034365924300000717
Covariance matrix with prior error->
Figure BDA00034365924300000718
Deriving a kalman gain comprising:
the prior state vector of the measurement matrix H, the observed noise covariance matrix R and the current moment t
Figure BDA0003436592430000081
With a prioriError covariance matrix->
Figure BDA0003436592430000082
Substitution formula->
Figure BDA0003436592430000083
Obtaining Kalman gain K.
According to some embodiments of the invention, a posterior state vector x of the current time t is calculated in step S603 t Posterior error covariance matrix P t Comprising:
the measurement matrix H, the Kalman gain K, the excitation electroencephalogram signal J (t) detected at the current moment t and the prior state vector at the current moment t are measured
Figure BDA0003436592430000084
Substitution formula->
Figure BDA0003436592430000085
Obtaining posterior state vector x at current time t t
The prior error covariance matrix of the current moment t is obtained by measuring the matrix H, the Kalman gain K and the prior error covariance matrix of the current moment t
Figure BDA0003436592430000086
Substitution formula
Figure BDA0003436592430000087
Obtaining a posterior error covariance matrix P of the current moment t t
It should be appreciated that the various embodiments provided by the embodiments of the present invention may be arbitrarily combined to achieve different technical effects.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit and scope of the present invention, and these equivalent modifications or substitutions are included in the scope of the present invention as defined in the appended claims.

Claims (6)

1. An electroencephalogram component extraction method, characterized by comprising:
collecting an original brain electrical signal, and obtaining a resting brain electrical signal and an excitation brain electrical signal from the original brain electrical signal, wherein the resting brain electrical signal reflects the brain electrical signal of which the brain is in an unstimulated state, and the excitation brain electrical signal reflects the brain electrical signal of which the brain is in a stimulated state;
carrying out parameter estimation of a Kalman filtering model by taking the resting electroencephalogram signal as a value basis to obtain state prediction parameters, wherein the state prediction parameters comprise a state transition matrix, a measurement matrix, an observation noise covariance matrix and a process noise covariance matrix; the method for estimating parameters of the Kalman filtering model by taking the resting electroencephalogram signal as a value basis to obtain state prediction parameters comprises the following steps:
analyzing the resting electroencephalogram signals to obtain autoregressive model coefficients, wherein establishing
Figure QLYQS_3
Order autoregressive model
Figure QLYQS_5
Wherein->
Figure QLYQS_7
Is->
Figure QLYQS_2
Order autoregressive model coefficients,>
Figure QLYQS_4
representing said resting brain electrical signal without noise, < >>
Figure QLYQS_6
For observing noise +.>
Figure QLYQS_8
Indicating the time at which the observed data was acquired; when (when)
Figure QLYQS_1
And obtaining a Kalman filtering state equation through the autoregressive model:
Figure QLYQS_9
obtaining an observation equation of Kalman filtering through the autoregressive model:
Figure QLYQS_10
Wherein->
Figure QLYQS_11
Is a state variable, said->
Figure QLYQS_12
Is->
Figure QLYQS_13
Order identity matrix>
Figure QLYQS_14
For process noise->
Figure QLYQS_15
A resting brain electrical signal representing noise;
substituting the autoregressive model coefficient into the state equation and the observation equation, and estimating to obtain a state transition matrix and a measurement matrix in the state prediction parameters, wherein the state transition matrix and the measurement matrix are extracted from the resting electroencephalogram signal
Figure QLYQS_16
Coefficient of order autoregressive model
Figure QLYQS_17
Substituting the state equation and the observation equation, and estimating to obtain a Kalman filtering state transition matrix in the state prediction parameters>
Figure QLYQS_18
Measurement matrix of Kalman filtering>
Figure QLYQS_19
Obtaining an observation noise covariance matrix and a process noise covariance matrix in the state prediction parameters according to the autoregressive model coefficient, the state equation and the observation equation, wherein the observation noise covariance matrix is obtained by using the method
Figure QLYQS_23
Expressed as mean 0, covariance matrix +.>
Figure QLYQS_26
Is->
Figure QLYQS_29
The method comprises the steps of carrying out a first treatment on the surface of the Measuring the observation noise by taking the resting electroencephalogram signal as an observation basis>
Figure QLYQS_21
And deriving an observed noise covariance matrix in said state prediction parameters>
Figure QLYQS_25
The method comprises the steps of carrying out a first treatment on the surface of the The process noise is->
Figure QLYQS_28
Expressed as mean 0, covariance matrix +.>
Figure QLYQS_31
Is->
Figure QLYQS_20
The method comprises the steps of carrying out a first treatment on the surface of the According to said->
Figure QLYQS_24
Coefficient of order autoregressive model
Figure QLYQS_27
Is +.>
Figure QLYQS_30
Deriving a process noise covariance matrix in the state prediction parameters>
Figure QLYQS_22
;/>
And carrying out Kalman filtering on the excited electroencephalogram signals according to the state prediction parameters so as to obtain filtered electroencephalogram signals.
2. The method of claim 1, wherein said kalman filtering said excitation electroencephalogram signal according to said state prediction parameters comprises:
according to the last time
Figure QLYQS_63
The detected stimulated electroencephalogram signal +.>
Figure QLYQS_64
The state prediction parameter, from the last moment +.>
Figure QLYQS_65
To the current time->
Figure QLYQS_66
Calculating the current moment +.>
Figure QLYQS_67
Is>
Figure QLYQS_68
Covariance matrix with prior error->
Figure QLYQS_69
According to the current time
Figure QLYQS_70
Is>
Figure QLYQS_71
Covariance matrix with prior error->
Figure QLYQS_72
Obtaining Kalman gain;
according to the current time
Figure QLYQS_73
The detected stimulated electroencephalogram signal +.>
Figure QLYQS_74
Said Kalman gain, said a priori state vector +.>
Figure QLYQS_75
Covariance matrix with the prior error +.>
Figure QLYQS_76
Calculating the current moment +.>
Figure QLYQS_77
Posterior state vector->
Figure QLYQS_78
Covariance matrix with posterior error->
Figure QLYQS_79
According to the described
Figure QLYQS_80
Is in contact with the->
Figure QLYQS_81
GeneratingThe filtered EEG signal is +.>
Figure QLYQS_82
Is a function of the output value of (a).
3. The method of claim 2, wherein said kalman filtering said excitation electroencephalogram signal according to said state prediction parameters further comprises:
the said
Figure QLYQS_83
As->
Figure QLYQS_84
A priori state vector of the moment of time, said +.>
Figure QLYQS_85
As->
Figure QLYQS_86
Calculating and updating the Kalman gain and the state prediction parameters by using the priori error covariance matrix of the moment;
according to the next time
Figure QLYQS_87
The detected stimulated electroencephalogram signal +.>
Figure QLYQS_88
The Kalman gain of the updated state and the state prediction parameter of the updated state are calculated to obtain the next moment +.>
Figure QLYQS_89
Posterior state vector->
Figure QLYQS_90
Covariance matrix with posterior error->
Figure QLYQS_91
According to the described
Figure QLYQS_92
Is in contact with the->
Figure QLYQS_93
Generating said filtered brain electrical signal at the next moment +.>
Figure QLYQS_94
Is a function of the output value of (a).
4. The method of claim 2, wherein the since the last time
Figure QLYQS_95
To the current time->
Figure QLYQS_96
Calculating the current moment +.>
Figure QLYQS_97
Is>
Figure QLYQS_98
Covariance matrix with prior error->
Figure QLYQS_99
Comprising:
state transition matrix in the state prediction parameters
Figure QLYQS_103
Covariance matrix with the process noise +.>
Figure QLYQS_105
Substitution of the state variable update equation +.>
Figure QLYQS_108
Update equation with error covariance->
Figure QLYQS_101
=
Figure QLYQS_104
+
Figure QLYQS_107
Deriving said->
Figure QLYQS_110
Is in contact with the->
Figure QLYQS_100
Wherein->
Figure QLYQS_106
For the last moment +.>
Figure QLYQS_109
State variable of->
Figure QLYQS_111
For the last moment +.>
Figure QLYQS_102
Error covariance matrix of (a) is obtained.
5. The method according to claim 4, wherein said step of determining said current time
Figure QLYQS_112
Prior state vector of (c)
Figure QLYQS_113
Covariance matrix with prior error->
Figure QLYQS_114
Obtaining the Kalman gainComprising:
the measurement matrix
Figure QLYQS_115
The observed noise covariance matrix +.>
Figure QLYQS_116
Current time->
Figure QLYQS_117
Is>
Figure QLYQS_118
Covariance matrix with prior error->
Figure QLYQS_119
Substitution formula k= =>
Figure QLYQS_120
The Kalman gain K is obtained.
6. The method according to claim 5, wherein the calculating results in a current time
Figure QLYQS_121
Posterior state vector->
Figure QLYQS_122
Covariance matrix with posterior error->
Figure QLYQS_123
Comprising:
the measurement matrix
Figure QLYQS_125
Said kalman gain K, current moment +.>
Figure QLYQS_129
The detected stimulated electroencephalogramSignal->
Figure QLYQS_130
Current time->
Figure QLYQS_126
Is +.>
Figure QLYQS_127
Substitution formula->
Figure QLYQS_131
=
Figure QLYQS_133
+
Figure QLYQS_124
Obtaining the current moment +.>
Figure QLYQS_128
Posterior state vector->
Figure QLYQS_132
The measurement matrix
Figure QLYQS_134
Said kalman gain K, current moment +.>
Figure QLYQS_135
Is a priori error covariance matrix->
Figure QLYQS_136
Substitution formula->
Figure QLYQS_137
=
Figure QLYQS_138
Obtaining the current moment +.>
Figure QLYQS_139
Posterior error covariance matrix of->
Figure QLYQS_140
。/>
CN202111614625.3A 2021-12-27 2021-12-27 Electroencephalogram component extraction method Active CN114343675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111614625.3A CN114343675B (en) 2021-12-27 2021-12-27 Electroencephalogram component extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111614625.3A CN114343675B (en) 2021-12-27 2021-12-27 Electroencephalogram component extraction method

Publications (2)

Publication Number Publication Date
CN114343675A CN114343675A (en) 2022-04-15
CN114343675B true CN114343675B (en) 2023-05-30

Family

ID=81101162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111614625.3A Active CN114343675B (en) 2021-12-27 2021-12-27 Electroencephalogram component extraction method

Country Status (1)

Country Link
CN (1) CN114343675B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115276782A (en) * 2022-07-27 2022-11-01 深圳未来脑律科技有限公司 Method, system, terminal and storage medium for decoding near-infrared signals of stroke patient in real time

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012146116A (en) * 2011-01-12 2012-08-02 Kyushu Institute Of Technology Device and method for identifying speech content
CN102713890A (en) * 2009-08-28 2012-10-03 Kg医疗有限公司 Method for calibrating a diagnostic measuring device
CN108143411A (en) * 2017-12-13 2018-06-12 东南大学 A kind of tranquillization state brain electricity analytical system towards Autism Diagnostic
CN108784693A (en) * 2018-06-15 2018-11-13 北京理工大学 P300 single-trial extraction technologies based on independent component analysis and Kalman smoothing
CN110327043A (en) * 2019-08-05 2019-10-15 哈尔滨工业大学 A kind of event related potential waveform map method for solving based on sparse modeling
CN113367695A (en) * 2021-06-09 2021-09-10 广东电网有限责任公司 Electroencephalogram signal-based fatigue monitoring method and device
EP3877041A1 (en) * 2018-12-14 2021-09-15 Brainpatch Ltd Brain interfacing apparatus and method
CN113729711A (en) * 2021-09-30 2021-12-03 深圳航天科技创新研究院 Electroencephalogram signal analysis method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102713890A (en) * 2009-08-28 2012-10-03 Kg医疗有限公司 Method for calibrating a diagnostic measuring device
JP2012146116A (en) * 2011-01-12 2012-08-02 Kyushu Institute Of Technology Device and method for identifying speech content
CN108143411A (en) * 2017-12-13 2018-06-12 东南大学 A kind of tranquillization state brain electricity analytical system towards Autism Diagnostic
CN108784693A (en) * 2018-06-15 2018-11-13 北京理工大学 P300 single-trial extraction technologies based on independent component analysis and Kalman smoothing
EP3877041A1 (en) * 2018-12-14 2021-09-15 Brainpatch Ltd Brain interfacing apparatus and method
CN110327043A (en) * 2019-08-05 2019-10-15 哈尔滨工业大学 A kind of event related potential waveform map method for solving based on sparse modeling
CN113367695A (en) * 2021-06-09 2021-09-10 广东电网有限责任公司 Electroencephalogram signal-based fatigue monitoring method and device
CN113729711A (en) * 2021-09-30 2021-12-03 深圳航天科技创新研究院 Electroencephalogram signal analysis method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于卡尔曼滤波脑认知动态特征提取方法研究;王姝宇;《中国优秀硕士学位论文全文数据库(医药卫生科技辑)》(第2期);全文 *
音乐情感的脑电信号分析技术及神经机制研究;李洪伟;《中国优秀硕士学位论文全文数据库(信息科技辑)》(第1期);全文 *

Also Published As

Publication number Publication date
CN114343675A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US8655612B2 (en) Battery model identification method
JP5691592B2 (en) Battery state estimation device
US8798726B2 (en) Method and apparatus for eliminating motion artifacts of bio signal using personalized bio signal pattern
CN114343675B (en) Electroencephalogram component extraction method
JP6455914B2 (en) Storage power remaining amount estimation device, method for estimating remaining power storage amount of storage battery, and computer program
JP6393984B2 (en) Pulse measuring device, pulse measuring method and pulse measuring program
CN111860102A (en) Apparatus and method for analyzing state of system in noisy environment
US20180365194A1 (en) Digital signal processing using sliding windowed infinite fourier transform
JP2017029628A (en) Heart beat detection method and heart beat detection device
CN109498001B (en) Sleep quality evaluation method and device
Lee et al. Respiratory rate extraction via an autoregressive model using the optimal parameter search criterion
CN114403820A (en) Vital sign detection method and system for moving target
La Vecchia et al. Robust heart rate variability analysis by generalized entropy minimization
CN114469046A (en) Electrical impedance imaging method, electrical impedance imaging system, storage medium, and electronic apparatus
JP2015096831A (en) Information processing device, information processing method, and program
CN108198623A (en) Human body condition detection method, device, storage medium and electronic equipment
CN112842304B (en) Data processing method and device, electronic equipment and storage medium
EP4138173A1 (en) Remaining capacity estimation device, model generation device, remaining capacity estimation method, model generation method, and program
JPWO2012056546A1 (en) Arousal level determination device, arousal level determination method, and arousal level determination program
CN104902809B (en) Method and apparatus for reducing motion artifacts in ECG signals
CN111929585B (en) Battery charge state calculating device, method, server and medium
RU2766409C2 (en) System and method for estimating blood volume in the brain, and/or blood flow in the brain, and/or depth of anesthesia of a patient
CN106777972B (en) Brain wave analysis method and system
Molkkari Advanced Methods in Detrended Fluctuation Analysis with Applications in Computational Cardiology
CN107407712A (en) For the method for the characteristic physical quantity for estimating battery

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