A method based on EEG signal analysis
By performing big data preprocessing and support vector machine model training on EEG signals, and calculating sample entropy and other parameters, the problem of insufficient real-time and reliability of EEG signal processing in the existing technology is solved, and high real-time and high precision are achieved. Calculation of anesthesia depth index.
Patent Information
- Application Number
- CN202110903834.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-08-06
AI Technical Summary
In the prior art, the anesthesia depth index obtained after processing the EEG signals generated by anesthesia has problems of poor real-time performance and reliability.
After using big data denoising preprocessing, the sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency parameters are calculated through a 10-second window, and the support vector machine SVC model is input for training to obtain the BIS index and signal complexity index. , combining low-pass filtering and high-pass filtering to remove noise.
It achieves high real-time and high precision of EEG data, and shortens the calculation window of anesthesia depth index from 30 seconds to 10 seconds, which improves the processing speed and accuracy and enhances the reliability of real-time monitoring.
Smart Images

Figure CN113491525B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of physiological electrical signal processing, and in particular to a method based on electroencephalogram (EEG) signal analysis, which can be applied to the accurate evaluation of EEG signals or to EEG scientific research. Background Art
[0002] Consciousness monitoring is required during anesthesia surgery to prevent poor postoperative effects and complications caused by too deep or too shallow anesthesia. When giving patients anesthetics during surgery, the depth of anesthesia index (BIS) can be used to determine consciousness monitoring: the index ranges from 0 to 100, with 100 being a fully awake state and 0 being a completely unconscious state. The BIS index is a clinically recognized reliable number converted after a series of calculations on EEG signals. Effective anesthesia consciousness monitoring can reduce intraoperative awareness caused by too shallow anesthesia depth and poor prognosis caused by too deep anesthesia depth. It can also help reduce surgical costs and speed up patient awakening after surgery. Therefore, an accurate BIS index is of great significance for clinical applications.
[0003] Chinese patent document CN 104545949 discloses an EEG-based anesthesia depth monitoring method, which uses a decision tree classifier with immutable weight parameters, poor versatility, a 30-second window, and poor real-time performance.
[0004] Chinese patent document CN110840411 discloses a method, storage medium and electronic device for measuring the depth of anesthesia, which collects multi-channel EEG to generate analog signals for anesthesia depth assessment. It requires modeling of the brain and generating analog EEG at corresponding points, and has poor reliability. Summary of the invention
[0005] The purpose of the present invention is to solve the problem that the anesthesia depth index obtained after processing the electroencephalogram (EEG) signals generated by anesthesia in the prior art has poor real-time and reliability. To this end, the present invention provides a method based on EEG signal analysis, so that the processed EEG data has better real-time and versatility.
[0006] The present invention adopts the following technical solution:
[0007] A method based on electroencephalogram signal analysis, the method comprising the following steps:
[0008] Step 1: De-noising and pre-processing the collected EEG data through big data;
[0009] Step 2: Perform 10-second window calculation on the preprocessed EEG data, and calculate the sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency parameters based on the data in each window;
[0010] Step 3: Input all the parameters obtained in step 2 into the established support vector machine SVC model for training to obtain the BIS index, and output the BIS index and burst suppression rate.
[0011] After iterative calculation by the machine learning algorithm SVC, the sample entropy, permutation entropy and wavelet entropy obtained in step 2 are weighted and allocated through sample training, and the signal complexity index of the data is calculated and output.
[0012] In step 1, a combination of high-pass filtering and low-pass filtering is used to remove environmental noise and biological signal noise contained in the brain waves.
[0013] The calculation method of the EEG sample entropy in step 2 is:
[0014] In the time series composed of N collected EEG data, a vector sequence with dimension m is formed according to the sequence number. m (i) and X m (j), if X is given m (i), statistics X m (i) To X m (j) The number of j whose distance between them is less than r, denoted as B i :
[0015]
[0016] And define
[0017] Increase the dimension to m+1, for B i m+1 (r) and B m+1 (r) Perform the calculation again to calculate the entropy of the brain wave sample:
[0018]
[0019] The calculation method of the EEG permutation entropy in step 2 is:
[0020] The time series X of the collected EEG data is reconstructed in phase space (the size of the phase space is denoted as m) to obtain a matrix, in which each row is a sequence of the length of the phase space;
[0021] Rearrange each row in the matrix in ascending order, and record the order of the subscripts before the row is sorted to obtain a set of symbol sequences. There are m! different symbol sequences for the m-dimensional phase space mapping;
[0022] The probability of each symbol sequence appearing is recorded as P1, P2, ...P kAccording to the definition of information entropy, the permutation entropy of k different symbol sequences of the time series X(i) is defined as PE(m) = -∑P j LqCy j
[0023] The calculation method of the EEG wavelet entropy in step 2 is:
[0024] After calculating the dwt constant C and the quantity vector L through the EEG data, the total wave energy E of the EEG signal is calculated t , using the formula WE=-sum(E t .*log(E t )), calculate the final total wavelet entropy.
[0025] The calculation method of the EEG burst suppression rate in step 2 is:
[0026] When the difference between adjacent peaks and troughs in the EEG data was less than 5 μV and the duration was > 0.5 s, it was determined as inhibition before the burst;
[0027] Record the number of consecutive data in which the difference between adjacent peaks and troughs in the EEG data is less than 5 μV, and represent the data between the peaks and troughs as 1 as the suppressed data;
[0028] Record the number of consecutive data with the difference between adjacent peaks and troughs > 5 μV in the EEG data, and represent the data between the peaks and troughs as 0 as the other part;
[0029] The EEG data were windowed without overlap, and the percentage of the suppressed data in each window to all the data in the total window was calculated to obtain the EEG burst suppression rate.
[0030] The calculation method of the EEG edge frequency in step 2 is:
[0031] Draw the FFT spectrum of the EEG data, calculate the total spectrum area of 90% or 95% below the spectrum data, and obtain the frequency corresponding to the total spectrum area, that is, the edge frequency.
[0032] The technical solution of the present invention has the following advantages:
[0033] A. Compared with the prior art, the present invention provides better real-time performance, can achieve high real-time performance and high precision of EEG data, and can also achieve a 10-second window for calculating the anesthesia depth index BIS, which is a significant improvement over the 30-second window used in the prior art. At the same time, the present invention accelerates the processing speed by establishing a support vector machine SVC training model, and the training model trained by big data also ensures that the noise can be effectively filtered out and the numerical value can be accurately calculated by selecting a shorter data window.
[0034] Most of the existing commercial equipment is based on the parameter model described in the paper (A Primer for EEG Signal Processing inAnesthesia), including dual-spectrum domain parameters, burst suppression ratio, edge frequency, beta ratio, etc., among which the dual-spectrum domain parameters have the largest amount of calculation, including Fourier transform, and the time complexity is power order. At the same time, in order to ensure the accuracy of the dual-spectrum domain parameters, EEG signals of longer time segments must be selected. Therefore, the subsequent commercial equipment based on this paper has adopted the setting of a 30-second window. The present invention optimizes the parameter group, abandons the dual-spectrum domain parameters with high time complexity, and selects multiple parameter groups with simple calculations and wide feature coverage to describe the depth of anesthesia, thereby improving real-time performance. The present invention uses entropy parameters as a substitute for dual-spectrum domain parameters, which can effectively detect the characteristics of EEG at different anesthesia depths and ensure the accuracy of anesthesia depth calculation.
[0035] B. The present invention uses five parameters, namely sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency, for fusion. The BIS index, burst suppression rate and signal complexity index are obtained after calculation by the established and trained support vector machine SVC training model, which helps doctors to make accurate judgments on the depth of anesthesia based on the obtained parameters. The output signal complexity index value and burst suppression rate value have practical application effects in real-time monitoring scenarios during surgery and have high practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the specific embodiments of the present invention, the drawings required for use in the specific embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a schematic diagram of the composition structure of the EEG signal analysis method provided by the present invention.
[0038] Figure 2 It is a flow chart of the EEG signal analysis method provided by the present invention. DETAILED DESCRIPTION
[0039] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] like Figure 1 and Figure 2As shown, the present invention provides a method based on EEG signal analysis, comprising the following steps:
[0041] Step 1: Use big data to pre-process the collected EEG data to remove noise; use a combination of low-pass filtering and high-pass filtering to remove environmental noise and biological signal noise contained in the EEG waves; the biological signal noise here, for example, in the process of collecting EEG, it is easy to collect eye contact noise that is close to the EEG, so eye contact noise filtering is also required.
[0042] The big data sources here are divided into two parts: one part is self-collected EEG data; the other part comes from https: / / vitaldb.net, the vitaldb open source anesthesia database.
[0043] Step 2: Perform 10-second window calculation on the preprocessed EEG data, and calculate the sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency parameters based on the data in each window;
[0044] The signal complexity index of the data is calculated and output by weighting the sample entropy, permutation entropy and wavelet entropy; the burst suppression rate parameter is obtained based on the calculation of the burst suppression rate;
[0045] The pre-processed EEG data is windowed and calculated. Here, a 10-second window is preferably used. All parameters are calculated and outputted through the data in each window. As each new EEG data is input, the 10-second window moves backward, and the length of each parameter increases accordingly, so as to output the parameters in real time.
[0046] Step 3: Input all the five parameters obtained in step 2 into the established support vector machine SVC model for training to obtain the BIS index, and output the BIS index, burst suppression rate and signal complexity index.
[0047] The present invention can achieve high real-time and high precision of EEG data, and can achieve a 10-second window for the calculation of the anesthesia depth index BIS, which is a significant improvement over the 30-second window used in the prior art. The present invention uses entropy parameters as a substitute for bispectral domain parameters, and uses multiple parameter groups with simple calculations and wide feature coverage to describe the depth of anesthesia, which improves real-time performance, accelerates the implementation processing speed, can effectively detect the characteristics of EEG at different anesthesia depths, and ensures the accuracy of anesthesia depth calculation.
[0048] The calculation methods of the five parameters are as follows:
[0049] (1) Calculation method of EEG sample entropy:
[0050] In the time series composed of N collected EEG data, a vector sequence with dimension m is formed according to the sequence number. The vector Xm (i), X m (j) are subsequences of an array composed of N electroencephalogram data. Between two defined vectors X m (i) and X m (j), if X m (i) is given, count the number of j with a vector distance less than r between X m (i) and X m (j), denoted as B i :
[0051] Given a threshold r (r > 0), count the number of d[X m (i), X m (j)] < r, and the ratio to the total number of vectors N - m
[0052]
[0053] And take the average of the result obtained from the above formula, that is, define
[0054] Increase the dimension to m + 1, and perform operations on B i m+1 (r) and B m+1 (r) again, and calculate the electroencephalogram sample entropy as:
[0055]
[0056] (2) Calculation method of electroencephalogram permutation entropy:
[0057] Perform phase space reconstruction on the time series X of the collected electroencephalogram data (the size of the phase space is denoted as m) to obtain a matrix, and each row in the matrix is a sequence of the phase space length;
[0058] Rearrange each row in the matrix in ascending order, and record the subscript order before sorting of this row to obtain a set of symbol sequences. There are m! different symbol sequences for the m-dimensional phase space mapping;
[0059] Denote the probability of each symbol sequence appearing as P1, P2,... P k , according to the definition of information entropy, the permutation entropy of k different symbol sequences of the time series X(i) is defined as PE(m) = -∑P j lnP j
[0060] (3) The calculation method of electroencephalogram wavelet entropy is:
[0061] j is the number of wavelet decomposition layers. In the range of j, Cj(k) is the decomposition coefficient, and there is wavelet energy
[0062]
[0063] L j C j (k) is the number of
[0064] Therefore, the total energy of the signal is:
[0065]
[0066] The relative wavelet energy is:
[0067]
[0068] Finally, the wavelet entropy is calculated as:
[0069]
[0070] (4) The calculation method of EEG burst suppression rate is:
[0071] When the difference between adjacent peaks and troughs in the EEG data was less than 5 μV and the duration was > 0.5 s, it was determined as inhibition before the burst;
[0072] Record the number of consecutive data in which the difference between adjacent peaks and troughs in the EEG data is less than 5 μV, and represent the data between the peaks and troughs as 1;
[0073] Record the number of consecutive data with the difference between adjacent peaks and troughs > 5 μV in the EEG data, and represent the data between the peaks and troughs as 0;
[0074] After all data are represented by 1 and 0, 1 is the suppressed part of the data, and 0 is the other part. Perform non-overlapping windowing calculation on the EEG data, calculate the percentage of the sum of the suppressed part of the data in all windows to the total amount of data in the total window, and get the EEG burst suppression rate. That is:
[0075] BSR = amount of suppressed data in the window / total data in the window*100%.
[0076] (5) The calculation method of EEG edge frequency is:
[0077] Draw the FFT spectrum of the EEG data, calculate the total spectrum area of 90% or 95% below the spectrum data, and obtain the frequency corresponding to the total spectrum area, that is, the edge frequency.
[0078] First use the fft function to calculate magRD and fRD;
[0079] Calculate the total spectral area
[0080] smMag=sum(magRD(1:round(length(magRD) / 2)).^2);
[0081] Let curSum = 0;
[0082] for i=1:len
[0083] curSum = curSum + magRD(i)^2;
[0084] When curSum>smMag*0.95, output dataSEF=fRD(i-2).
[0085] The present invention uses five parameters, namely sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency, for fusion. After calculation by the established support vector machine SVC training model, the BIS index, burst suppression rate and signal complexity index are obtained, which helps doctors make accurate judgments on the depth of anesthesia based on the obtained parameters. At the same time, the output signal complexity index value and burst suppression rate value are used to embed the analysis method of the present invention in the real-time monitoring scene device during surgery, which has a good practical application effect.
[0086] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.
Claims
1. A method based on EEG signal analysis, It is characterized in that The method comprises the following steps: Step 1: pre-processing the collected EEG data by denoising through big data, where the big data sources include self-collected EEG data and an open source anesthesia database; Step 2: Perform 10-second window calculation on the preprocessed EEG data, and calculate the sample entropy, permutation entropy, wavelet entropy, burst suppression rate and edge frequency parameters according to the data in each window; after iterative calculation by the machine learning algorithm SVC, weights are assigned to the obtained sample entropy, permutation entropy and wavelet entropy through sample training, and the signal complexity index of the data is calculated and output; Among them, the calculation method of EEG burst suppression rate is: When the difference between adjacent peaks and troughs in the EEG data was less than 5 μV and the duration was > 0.5 s, it was determined as inhibition before the burst; Record the number of consecutive data in which the difference between adjacent peaks and troughs in the EEG data is less than 5 μV, and represent the data between the peaks and troughs as 1 as the suppressed data; Record the number of consecutive data with the difference between adjacent peaks and troughs > 5 μV in the EEG data, and represent the data between the peaks and troughs as 0 as the other part; Perform non-overlapping windowing calculation on the EEG data, calculate the percentage of the suppressed data in each window to the total data in the window, and obtain the EEG burst suppression rate; Among them, the calculation method of EEG edge frequency is: Draw the FFT spectrum of the EEG data, calculate the total spectrum area of 90% or 95% below the spectrum data, and obtain the frequency corresponding to the total spectrum area, that is, the edge frequency; Step 3: Input all the parameters obtained in step 2 into the established support vector machine SVC model for training to obtain the BIS index, and output the BIS index and burst suppression rate.
2. The method based on EEG signal analysis according to claim 1, It is characterized in that In step 1, a combination of high-pass filtering and low-pass filtering is used to remove environmental noise and biological signal noise contained in the brain waves.
3. The method based on EEG signal analysis according to claim 1, It is characterized in that The calculation method of the EEG sample entropy in step 2 is: In the time series composed of N collected EEG data, a vector sequence with dimension m is formed according to the sequence number. m (i) and X m (j) If X is given m (i), statistics X m (i) To X m (j) The number of j whose distance between them is less than r, denoted as B i : And define Increase the dimension to m+1, and B m+1 (r) Perform the operation again to calculate the sample entropy of EEG data:
4. The method based on EEG signal analysis according to claim 1, It is characterized in that The calculation method of the EEG permutation entropy in step 2 is: The time series X of the collected EEG data is reconstructed in phase space (the size of the phase space is denoted as m) to obtain a matrix, in which each row is a sequence of the length of the phase space; Rearrange each row in the matrix in ascending order, and record the order of the subscripts before the row is sorted to obtain a set of symbol sequences. There are m! different symbol sequences for the m-dimensional phase space mapping; The probability of each symbol sequence appearing is denoted as P 1 , P 2 , ...P k According to the definition of information entropy, the permutation entropy of k different symbol sequences of the time series X(i) is defined as PE(m) = -∑P j oeLh j。 5. The method based on EEG signal analysis according to claim 1, It is characterized in that The calculation method of the EEG wavelet entropy in step 2 is: After calculating the discrete wavelet transform dwt constant C and the quantity vector L through the EEG data, the total wave energy E of the EEG signal is calculated t , using the formula Calculate the final total wavelet entropy.
