EEG signal quality assessment method based on characteristic wave detection and staging algorithm

Through the combination of characteristic wave detection and staging algorithm, deep neural network and spindle and slow wave detection are used to calculate the Pearson correlation coefficient, which solves the problem in the existing technology of only relying on the staging results to evaluate the quality of the EEG signal, and realizes the EEG signal quality assessment. Accurate assessment of signal quality and stability judgment.

CN114680904BActive Publication Date: 2024-08-30ZHEJIANG ROULING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210270365.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-08-30
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

When evaluating the signal quality of small EEG equipment, the existing technology only relies on the staging results and ignores the specific characteristics of the EEG signal, such as spindles and slow waves. It cannot accurately reflect the quality of the EEG data, resulting in the inability to effectively evaluate its use. Qualifications in sleep analysis and physiotherapy.

Method used

A method based on characteristic wave detection and staging algorithm is used to perform staging prediction through a deep neural network model. Combined with spindle wave and slow wave detection algorithms, the Pearson correlation coefficient is calculated to form a comprehensive evaluation index to evaluate signal quality.

Benefits of technology

It achieves accurate assessment of EEG signal quality, takes into account the stability and consistency of signal characteristics and staging results, provides a more accurate quality assessment score, and is suitable for stability assessment of other time series signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114680904B
    Figure CN114680904B
Patent Text Reader

Abstract

The present application discloses a method for evaluating the quality of EEG signals based on characteristic wave detection and staging algorithm. First, the original EEG data is obtained and preprocessed using the device to be tested; then, the EEG data set is respectively predicted by staging and the characteristic wave is detected to obtain the data of each parameter, and then the PSG device is used to repeatedly obtain the detection to obtain the data of each parameter under the PSG device, and the Pearson correlation coefficient of each parameter is calculated using all the parameter data; and the first index and the second index are respectively obtained based on the Pearson correlation coefficient of the parameters in the staging prediction result and the characteristic wave detection, and finally the first index and the second index are used to evaluate the quality of EEG signals. It can be seen that when evaluating the stability of signal quality, the present invention comprehensively considers the stability of the characteristics of the signal itself and the stability of the staging performance results, and generates six parameters to refine the evaluation and finally form a unified index, which can more accurately reflect the signal quality score.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal quality analysis, and in particular to a method for evaluating the quality of an electroencephalogram (EEG) signal based on a characteristic wave detection and staging algorithm. Background Art

[0002] In the field of medical health, polysomnography (PSG) is usually used as the gold standard for signal collection to record and analyze patients' sleep conditions. However, due to its high price and high installation threshold, the large-scale application and development of PSG are greatly restricted, and it is basically limited to large hospitals or laboratory research and use, resulting in many patients with sleep disorders or sub-health failing to obtain objective and quantitative sleep status analysis. As a result, some lightweight EEG devices came into being, representative ones include FLEEG, Sleep Profiler, etc. The quality assessment of the complex signals collected by these miniaturized devices, so as to determine whether they are qualified for medical application scenarios such as sleep analysis and sleep therapy, is an important topic for the further development of the sleep medical industry.

[0003] At present, the quantitative evaluation of the signal quality of a certain device is based solely on the staging results. The consistency of the staging results of the device's embedded algorithm and the PSG embedded algorithm or expert staging results is used as the only evaluation standard, while ignoring some specific features of the EEG signal itself, such as spindles and slow waves, which actually cannot well reflect the quality of EEG data. Therefore, it is urgent to develop an analysis method that can comprehensively consider EEG signal characteristics and staging results, accurately evaluate EEG signal quality, and provide a reference for the access standards of medical devices. Summary of the invention

[0004] Based on this, an embodiment of the present application provides an EEG signal quality assessment method based on a characteristic wave detection and staging algorithm, which includes a characteristic wave extraction and detection algorithm, a sleep staging algorithm and a corresponding consistency assessment statistical method, which can effectively measure the quality of signals recorded by other small devices relative to PSG recording signals.

[0005] The present application provides a method for evaluating the quality of an electroencephalogram signal based on a characteristic wave detection and staging algorithm, the method comprising:

[0006] S1, using the device to be tested to obtain raw EEG data, and preprocessing the raw EEG data to obtain an EEG data set;

[0007] S2, performing stage prediction on each screen of EEG data in the EEG data set by using a deep neural network model to obtain a stage prediction result of each screen of EEG data, wherein the stage prediction result includes a wake time parameter, a light sleep time parameter, a deep sleep time parameter, and a rapid eye movement time parameter;

[0008] S3, executing a spindle wave detection algorithm on the EEG data set to obtain a first characteristic wave parameter, wherein the first characteristic wave parameter is used to characterize the number of spindle waves occurring per minute;

[0009] S4, executing a slow wave detection algorithm on the EEG data set to obtain a second characteristic wave parameter, wherein the second characteristic wave parameter is used to characterize an average screen-occupying ratio of slow waves in the N3 stage;

[0010] S5, repeatedly performing S1 to S4 using a PSG device to obtain parameter data sets with wakefulness time parameters, light sleep time parameters, deep sleep time parameters, rapid eye movement time parameters, first characteristic wave parameters, and second characteristic wave parameters as vectors;

[0011] S6, calculate the Pearson correlation coefficient of each parameter using each parameter data set;

[0012] S7, taking the weighted average of the Pearson correlation coefficients of the six time parameters included in the staging prediction result as the first indicator, taking the weighted average of the Pearson correlation coefficients of the first characteristic wave parameter and the second characteristic wave parameter as the second indicator, and evaluating the signal quality of the original EEG data by using the first indicator and the second indicator.

[0013] Optionally, the method further comprises:

[0014] S8, draw a linear regression graph for each parameter data set obtained in S5, with the parameter data measured by PSG as the horizontal axis and the parameter data measured by the device to be tested as the vertical axis, to determine the consistency and stability of the EEG data signal quality.

[0015] Optionally, in S6, the Pearson correlation coefficient of each parameter is calculated using each parameter data set, including:

[0016] S61, define the i-th parameter vector of the device under test data as X i =(x i1 ,x i2 ...x i29 ,x i30 ), the i-th parameter vector of PSG device data is Y i =(y i1 ,y i2 ...y i29 ,y i30 );

[0017] S62, calculate the Pearson correlation coefficient for each parameter, and the calculation formula for the i-th parameter is:

[0018]

[0019] Optionally, S8 draws a linear regression graph, including:

[0020] S81, for each parameter, calculate the average value of the parameter data respectively measured by the PSG and the device under test as the abscissa, and the difference as the ordinate, thereby determining the coordinates of each data point and drawing a Bland-Altman scatter plot;

[0021] S82, calculate the upper and lower limits of the 95% confidence interval for the ordinate and add them to the Bland-Altman scatter plot.

[0022] Optionally, executing a spindle wave detection algorithm on the EEG data set to obtain a first characteristic wave parameter in S3 includes:

[0023] The data in the EEG data set are first subjected to bandpass filtering, notch filtering, and synchronous compression transformation processing, and then the time-frequency energy spectrum and correlation coefficient spectrum are obtained through edge extraction algorithm and correlation analysis of reconstructed signals, and then a joint decision is made to determine the area and number of spindle waves.

[0024] Optionally, executing a slow wave detection algorithm on the EEG data set to obtain a second characteristic wave parameter in S4 includes:

[0025] After using the morphological method to determine the slow wave occurrence area, the slow wave screen ratio was estimated for each screen in the N3 stage, and then the average value was calculated to obtain the average slow wave screen ratio.

[0026] Optionally, in S5, S1 to S4 are repeatedly performed using the PSG device, including:

[0027] Repeat S1 to S4 for different experimental data at least 30 times using the PSG device, and obtain at least 30 sets of parameter data accordingly.

[0028] Optionally, before taking the weighted average of the Pearson correlation coefficients of the six time parameters included in the staging prediction result as the first indicator in S7, the following steps are included:

[0029] Different weights are assigned to the six time parameters included in the staging prediction result, and the weighted average of the Pearson correlation coefficients of the six time parameters is calculated according to the assigned weights.

[0030] Optionally, in S1, preprocessing the raw EEG data to obtain an EEG data set includes:

[0031] The raw EEG data is divided into one screen of data every 30 seconds, and the sampling frequency and timing information are obtained.

[0032] Optionally, before S2 performs stage prediction on each screen of EEG data in the EEG data set through a deep neural network model to obtain a stage prediction result for each screen of EEG data, the method includes:

[0033] The deep neural network model is trained using a labeled dataset.

[0034] In the technical solution provided in the embodiment of the present application, the original EEG data is first obtained by using the device to be tested, and the original EEG data is preprocessed to obtain an EEG data set; then, the EEG data set is respectively subjected to stage prediction and characteristic wave detection through a deep neural network model to obtain various parameter data, and then the above steps are repeated using a PSG device to obtain various parameter data under the PSG device, and finally, the Pearson correlation coefficient of each parameter is calculated using all parameter data; and a first index is obtained based on the Pearson correlation coefficient of the parameter in the stage prediction result, and a second index is obtained based on the Pearson correlation coefficient of the parameter in the characteristic wave detection, and the quality of the EEG signal is evaluated using the first index and the second index. It can be seen that the beneficial effects of the present invention are:

[0035] (1) This method innovatively proposes a method to analyze the quality of EEG signals by integrating the characteristics of the signal itself and the staging results. This idea is applicable regardless of whether the characteristics or staging are obtained by manual annotation or algorithm;

[0036] (2) When evaluating the stability of signal quality, this method also comprehensively considers the stability of the signal characteristics and the stability of the stage performance results. This method is not limited to EEG signals. This idea can be applied to the stability evaluation of other time series signal acquisitions;

[0037] (3) When calculating the consistency of staging results, this method generates six parameters to refine the evaluation and finally forms a unified index, which can more accurately reflect the signal quality score. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0039] Figure 1 A step diagram of the quality of EEG signals based on characteristic wave detection and staging algorithm provided in an embodiment of the present application;

[0040] Figure 2The parameter data measured by the device under test provided in the embodiment of the present application is plotted into a linear regression graph;

[0041] Figure 3 A Bland-Altman scatter plot diagram of parameter data measured by a device under test provided in an embodiment of the present application;

[0042] Figure 4 A linear regression graph of wakefulness, rapid eye movement, light sleep and deep sleep parameter data in a staging result provided in an embodiment of the present application;

[0043] Figure 5 A Bland-Altman scatter plot diagram of wakefulness, rapid eye movement, light sleep and deep sleep parameter data in a staging result provided in an embodiment of the present application;

[0044] Figure 6 A flowchart of EEG signal quality based on characteristic wave detection and staging algorithm provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are 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.

[0046] The quality assessment of EEG signals is to compare the signal recording differences between a certain device and a PSG device on the same object. However, EEG signals are usually very complex time series, and different acquisition channels will also have large signal differences. Therefore, in current practice, EEG signals are further processed - sleep stage staging, and then the accuracy of its staging results relative to PSG staging results and other indicators are used as the only quality assessment standard. In fact, due to the extreme reliance on manual staging or the performance of staging algorithms, there will be large differences when using different staging methods to evaluate the signal quality of the same signal. Moreover, since the general AASM sleep staging rules comprehensively consider multiple indicators (such as the screen occupancy rate of each band, whether the characteristic wave appears, etc.), it has a high fault tolerance rate, so EEG signals with obvious signal loss may also obtain more accurate staging results, thereby having a better quality assessment score.

[0047] In order to improve the quality assessment method's ability to reflect actual signal quality, this method uses the number of spindles and the proportion of slow waves in EEG as another evaluation dimension. The spindle detection algorithm uses the currently highest-performing adaptive time-frequency analysis method, which has high robustness to signal parameter settings and the signal-to-noise ratio of the equipment; the staging algorithm also uses a model trained by a cutting-edge deep neural network for prediction. The present invention intends to develop a new quality assessment method, using these two algorithms to quantify the similarity between the characteristics of the signal quality itself and the staging performance using statistical methods, and then comprehensively analyzes the overall consistency of the results of the two dimensions, and finally obtains an assessment score for the signal quality.

[0048] Specifically, please refer to Figure 1 , which shows a step diagram of a method for evaluating the quality of an electroencephalogram signal based on a characteristic wave detection and staging algorithm provided in an embodiment of the present application. The method may include the following steps:

[0049] S1, using the device under test to obtain raw EEG data, and preprocessing the raw EEG data to obtain an EEG data set.

[0050] In the embodiment of the present application, the original EEG data is collected using an existing device capable of collecting EEG data, and each 30 seconds is divided into one screen to obtain the sampling frequency and timing information.

[0051] S2, performing stage prediction on each screen of EEG data in the EEG data set through a deep neural network model to obtain the stage prediction results of each screen of EEG data, and the stage prediction results include wake time parameters, light sleep time parameters, deep sleep time parameters and rapid eye movement time parameters.

[0052] In the embodiment of the present application, the staging algorithm is executed on the data after S1 screen splitting to obtain the sleep staging prediction for each screen, and further calculates the four staging parameters of wakefulness time, light sleep time (N1 stage + N2 stage), deep sleep time and rapid eye movement sleep time. The algorithm model is a deep neural network model obtained by training a certain amount of labeled data.

[0053] S3, executing a spindle wave detection algorithm on the EEG data set to obtain a first characteristic wave parameter, where the first characteristic wave parameter is used to characterize the number of spindle waves occurring per minute.

[0054] The specific process of this step includes preprocessing the data by bandpass filtering, notch filtering, synchronous compression transformation, etc., and then obtaining the time-frequency energy spectrum and correlation coefficient spectrum through edge extraction algorithm and correlation analysis of reconstructed signals, and then making a joint decision to determine the area and number of spindle waves.

[0055] S4, executing a slow wave detection algorithm on the EEG data set to obtain a second characteristic wave parameter, where the second characteristic wave parameter is used to characterize the average screen-occupancy ratio of the slow wave in the N3 stage.

[0056] The specific process of this step includes using morphological methods to determine the slow wave occurrence area, estimating the slow wave screen ratio for each screen in the N3 stage, and then calculating the average value to obtain the average slow wave screen ratio.

[0057] S5, repeatedly executing S1 to S4 using the PSG device to obtain various parameter data sets with wakefulness time parameters, light sleep time parameters, deep sleep time parameters, rapid eye movement time parameters, first characteristic wave parameters and second characteristic wave parameters as vectors.

[0058] S6, using each parameter data set, calculate the Pearson correlation coefficient of each parameter.

[0059] In the embodiment of the present application, the above steps are repeated 30 times or more for different experimental data using a PSG device, and six parameter sets of the device data to be tested and the PSG data are obtained as vectors, and the Pearson correlation coefficient of each parameter is calculated.

[0060] In an optional embodiment of the present application: using each parameter data set to calculate the Pearson correlation coefficient of each parameter respectively, including:

[0061] S61, define the i-th parameter vector of the device under test data as X i =(x i1 ,x i2 ...x i29 ,x i30 ), the i-th parameter vector of PSG device data is Y i =(y i1 ,y i2 ...y i29 ,y i30 ), wherein the above steps are repeated 30 times using a PSG device as an example.

[0062] S62, calculate the Pearson correlation coefficient for each parameter, and the calculation formula for the i-th parameter is:

[0063]

[0064] in, represents the Pearson correlation coefficient of the i-th parameter.

[0065] S7, taking the weighted average of the Pearson correlation coefficients of the six time parameters included in the staging prediction results as the first indicator, taking the weighted average of the Pearson correlation coefficients of the first characteristic wave parameter and the second characteristic wave parameter as the second indicator, and evaluating the signal quality of the original EEG data by the first indicator and the second indicator.

[0066] S8, draw a linear regression graph for each parameter data set obtained in S5, with the parameter data measured by PSG as the horizontal axis and the parameter data measured by the device to be measured as the vertical axis, to determine the consistency and stability of the EEG data signal quality, including

[0067] S81, for each parameter, calculate the average value of the parameter data respectively measured by the PSG and the device under test as the abscissa, and the difference as the ordinate, thereby determining the coordinates of each data point and drawing a Bland-Altman scatter plot;

[0068] S82, calculate the upper and lower limits of the 95% confidence interval for the ordinate and add them to the Bland-Altman scatter plot.

[0069] like Figure 2 , the parameter data measured by the device under test in this embodiment is plotted into a linear regression graph, wherein the left graph represents the first characteristic wave parameters and the right graph represents the second characteristic wave parameters;

[0070] like Figure 3 , a Bland-Altman scatter plot diagram of parameter data measured by the device under test in this embodiment is given; wherein the left figure represents the first characteristic wave parameters, and the right figure represents the second characteristic wave parameters;

[0071] like Figure 4 , a linear regression graph is shown of the parameter data of wakefulness (upper left), deep sleep (upper right), rapid eye movement sleep (lower left), and light sleep (lower right) in the staging results of this embodiment;

[0072] like Figure 5 , a Bland-Altman scatter plot diagram of the parameter data of wakefulness (upper left), deep sleep (upper right), rapid eye movement sleep (lower left), and light sleep (lower right) in the staging results of this embodiment is given;

[0073] Please refer to Figure 6 , which shows a flow chart of an EEG signal quality assessment method based on characteristic wave detection and staging algorithm provided in an embodiment of the present application, for implementing the above steps.

[0074] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0075] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A method for evaluating the quality of electroencephalogram signals based on characteristic wave detection and staging algorithm, characterized in that: The method comprises: S1, using the device to be tested to obtain raw EEG data, and preprocessing the raw EEG data to obtain an EEG data set; S2, performing stage prediction on each screen of EEG data in the EEG data set by using a deep neural network model to obtain a stage prediction result of each screen of EEG data, wherein the stage prediction result includes a wake time parameter, a light sleep time parameter, a deep sleep time parameter, and a rapid eye movement time parameter; S3, executing a spindle wave detection algorithm on the EEG data set to obtain a first characteristic wave parameter, wherein the first characteristic wave parameter is used to characterize the number of spindle waves occurring per minute; S4, executing a slow wave detection algorithm on the EEG data set to obtain a second characteristic wave parameter, wherein the second characteristic wave parameter is used to characterize an average screen-occupying ratio of slow waves in the N3 stage; S5, repeatedly performing S1 to S4 using a PSG device to obtain parameter data sets with wakefulness time parameters, light sleep time parameters, deep sleep time parameters, rapid eye movement time parameters, first characteristic wave parameters, and second characteristic wave parameters as vectors; S6, calculate the Pearson correlation coefficient of each parameter using each parameter data set; S7, taking the weighted average of the Pearson correlation coefficients of the six time parameters included in the staging prediction result as the first indicator, taking the weighted average of the Pearson correlation coefficients of the first characteristic wave parameter and the second characteristic wave parameter as the second indicator, and evaluating the signal quality of the original EEG data by using the first indicator and the second indicator.

2. The method according to claim 1, characterized in that The method further comprises: S8, draw a linear regression graph for each parameter data set obtained in S5, with the parameter data measured by PSG as the horizontal axis and the parameter data measured by the device to be tested as the vertical axis, to determine the consistency and stability of the EEG data signal quality.

3. The method according to claim 1, characterized in that In S6, the Pearson correlation coefficient of each parameter is calculated using each parameter data set, including: S61, define the i-th parameter vector of the device under test data as X i =(x i1 ,x i2 ...x i29 ,x i30 ), the i-th parameter vector of PSG device data is Y i =(y i1 ,y i2 ...y i29 ,y i30 ); S62, calculate the Pearson correlation coefficient for each parameter, and the calculation formula for the i-th parameter is:

4. The method according to claim 2, characterized in that: Linear regression plots are drawn in S8, including: S81, for each parameter, calculate the average value of the parameter data respectively measured by the PSG and the device under test as the abscissa, and the difference as the ordinate, thereby determining the coordinates of each data point and drawing a Bland-Altman scatter plot; S82, calculate the upper and lower limits of the 95% confidence interval for the ordinate and add them to the Bland-Altman scatter plot.

5. The method according to claim 1, characterized in that In S3, a spindle wave detection algorithm is executed on the EEG data set to obtain a first characteristic wave parameter, including: The data in the EEG data set are first subjected to bandpass filtering, notch filtering, and synchronous compression transformation processing, and then the time-frequency energy spectrum and correlation coefficient spectrum are obtained through edge extraction algorithm and correlation analysis of reconstructed signals, and then a joint decision is made to determine the area and number of spindle waves.

6. The method according to claim 1, characterized in that In S4, a slow wave detection algorithm is executed on the EEG data set to obtain a second characteristic wave parameter, including: After using the morphological method to determine the slow wave occurrence area, the slow wave screen ratio was estimated for each screen in the N3 stage, and then the average value was calculated to obtain the average slow wave screen ratio.

7. The method according to claim 1, characterized in that In S5, S1 to S4 are repeatedly executed using the PSG device, including: Repeat S1 to S4 for different experimental data at least 30 times using the PSG device, and obtain at least 30 sets of parameter data accordingly.

8. The method according to claim 1, characterized in that Before taking the weighted average of the Pearson correlation coefficients of the six time parameters included in the stage prediction result as the first indicator in S7, it includes: Different weights are assigned to the six time parameters included in the staging prediction result, and the weighted average of the Pearson correlation coefficients of the six time parameters is calculated according to the assigned weights.

9. The method according to claim 1, characterized in that: In S1, the raw EEG data is preprocessed to obtain an EEG data set, including: The raw EEG data is divided into one screen of data every 30 seconds, and the sampling frequency and timing information are obtained.

10. The method according to claim 1, characterized in that Before S2 performs stage prediction on each screen of EEG data in the EEG data set through a deep neural network model to obtain a stage prediction result for each screen of EEG data, the method includes: The deep neural network model is trained using a labeled dataset.

Citation Information

Patent Citations

  • Data receiving and processing method for brain wave signals

    CN110491498A

  • Intelligent sleep phase detection and sleep quality evaluation system and method

    CN110623665A