Continuous physiological signal quality assessment device
By applying the unsupervised learning method of isolated forest model in continuous physiological signal quality assessment, the noise difference and insufficient label problems of signal quality assessment in the prior art are solved, and the automated evaluation and accurate distinction of signal quality are realized, and the model is improved. Generalization performance and flexibility.
Patent Information
- Application Number
- CN202110167866.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-07
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-02-07
AI Technical Summary
When evaluating the quality of continuous physiological signal, the prior art faces signal differences caused by the noise source and intensity that are different from those of wearable devices. High-performance machine learning models require a large amount of label data, resulting in insufficient generalization performance and difficult to apply in the real world.
Adopt an unsupervised learning method based on the isolated forest model, and through signal segmentation, preprocessing, feature extraction and evaluation, combined with pretrained model and threshold judgment, the automatic evaluation of signal quality is achieved, avoiding a large amount of data annotation work, and improving the flexibility of the model. and generalization performance.
Effectively distinguish signal quality levels, improve the accuracy of signal analysis, especially in electrocardiogram and respiratory signals, can correctly distinguish signal quality, and even if there is pathological change, it can correctly evaluate signal quality and expand to the quality of other physiological signals. evaluate.
Smart Images

Figure CN112971801B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the detection of physiological signals, and in particular to a quality control device for physiological signals. Background Art
[0002] Continuous physiological signals refer to continuously recorded signals such as ECG, respiration, pulse, etc. that are highly related to human health and disease status. Currently, their value in disease diagnosis, adverse event prediction, human status assessment, and rehabilitation prognosis evaluation is increasingly recognized. For example, the deterioration of some clinical diseases is usually manifested in physiological signals 8-24 hours before causing more serious clinical outcomes (such as sudden cardiac death). Clinicians and researchers in this field are increasingly aware of the importance of continuous monitoring and in-depth mining and analysis of physiological signals.
[0003] In recent years, a variety of measurement methods and sensors have developed rapidly and integrated into wearable devices, greatly enriching the means for people to continuously obtain physiological signals. For example, electrocardiography (ECG) is a technology that uses electrodes attached to the surface of human skin to record the overall potential changes of the heart and usually displays it as a waveform. It has been widely recognized in the clinic and is used in the diagnosis and analysis of heart diseases in medicine; Photoplethysmography (PPG) is a method that uses photoelectric means to measure blood volume changes in living tissues. This method uses a fixed wavelength of light to pass through the skin, and each time the heart beats, the blood vessels will contract and expand, which in turn affects the light reflection. The intensity of the light reflection recorded by the sensor reflects the characteristics of blood flow. This technology is currently the core monitoring technology of various health monitoring devices, especially health monitoring bracelets, and has broad application prospects and rich scientific research value; Respiratory Inductive Plethysmography (RIP) is a method of recording the chest and abdominal movements of the subject by wrapping two elastic straps around the chest and abdomen of the subject respectively, and the breathing movement drives the elastic straps to expand and contract, and the coil area changes. This method provides a non-invasive and indirect measurement method for respiratory movement, which has the advantages of convenience, low load and high accuracy.
[0004] However, although there are many ways to measure and record physiological signals, most physiological signals have small amplitude, low frequency, and are susceptible to interference. In addition, the sources of noise in the real world are complex and uncontrollable, so physiological signals measured in daily life are often drowned by noise, which greatly affects the process and accuracy of subsequent signal in-depth mining and analysis. Therefore, signal quality assessment is usually the first step in the subsequent research and analysis of continuous physiological signals. Automatically screening out signal segments with high signal quality from long-range continuous physiological signals is a prerequisite for related subsequent work.
[0005] For a specific physiological signal, researchers usually use the following methods to evaluate signal quality: 1. Threshold method. That is, extract features based on the characteristics of the signal. Once the feature exceeds the predetermined threshold, the signal is determined to be of poor quality; 2. Establish a corresponding signal quality score (Signal Quality Index, SQI). For example, for ECG signals, people use the features of signal calculations and add certain weight coefficients to develop kSQI, sSQI, pSQI and other scoring methods; 3. Use artificial intelligence, machine learning and deep learning methods to build models. The current mainstream model building method is still supervised learning, that is, the model learns a large amount of pre-labeled data, summarizes the rules and uses them for subsequent signal quality evaluation and analysis.
[0006] However, the above methods all have strong limitations: First, the signals in early studies / patents mostly come from bedside monitors, which collect signals that are fundamentally different from real-world signals, and the source and intensity of noise are different from the problems faced by wearable devices; second, despite the rapid development of high-performance machine learning / deep learning models, most of these methods require a large number of labels to complete the model learning steps. Insufficient number of labels or too strong limitations of model training samples will lead to insufficient generalization performance of the model, making it difficult to meet the requirements of use. The problem is that it is relatively easy to obtain massive amounts of data, but it takes a lot of manpower and time to label all of this data, and the rapid iteration of wearable device hardware and software has further increased the task of labeling. Summary of the invention
[0007] In view of the above problems, the present application aims to propose a continuous physiological signal quality assessment device.
[0008] The continuous physiological signal quality assessment device of the present application comprises: a signal segmentation unit, a signal preprocessing unit, a feature extraction unit, a signal quality assessment unit, and a classification judgment unit;
[0009] The signal segmentation unit is used for receiving the original physiological signal, and segmenting the original physiological signal by windowing to obtain a segmented signal;
[0010] The signal preprocessing unit is used to preprocess the segmented signal to obtain a preprocessed signal; the preprocessing includes removing the signal baseline, bandpass filtering, and median filtering;
[0011] The feature extraction unit is used to extract feature values from the preprocessed signal to obtain extracted feature values;
[0012] The signal quality evaluation unit includes a pre-trained model, which is an isolation forest model; the signal quality evaluation unit inputs the extracted feature value into the pre-trained model to obtain a scoring result score;
[0013] The classification judgment unit is used to judge the scoring result according to the set thresholds L1 and L2 to obtain the evaluation result of the signal quality.
[0014] Preferably, the pre-trained model is trained on a large sample unlabeled training set, and then verified and the threshold is determined on a small sample manually annotated verification set.
[0015] Preferably, the pre-trained model returns a scoring result of [-1, 1] on the validation set and sends it to the classification judgment unit;
[0016] When score ≥ L2, the classification judgment unit judges it as category 1, the signal quality is good, and it returns to category 1;
[0017] When L1≤score<L2, the classification judgment unit judges it as category 2, the signal quality is medium, and it returns to category 2;
[0018] When score is less than L1, for the data segment with score less than L1, the signal preprocessing unit uses a larger window mean filter to remove the baseline, and then the feature extraction unit performs feature extraction, and inputs the extracted feature values into the pre-trained model in the signal quality assessment unit and scores again. If the score is still less than L1, the classification judgment unit judges it as category 3, and the signal quality is poor; if the score is greater than L1, the classification judgment unit judges it as category 2, and the signal quality is medium.
[0019] Preferably, when the signal segmentation unit segments the original physiological signal by windowing, the length of the window is fixed;
[0020] If the physiological signal is an electrocardiogram signal, the window length is 10 seconds; if the physiological signal is a respiratory signal, the window length is 30 seconds.
[0021] Preferably, when removing the signal baseline, the signal preprocessing unit scans with a sliding window of 2s to obtain the median of the signal within 2s, that is, the baseline of the current signal, and the signal baseline is removed by subtracting the baseline from the original signal;
[0022] The signal preprocessing unit uses a bandpass filter for filtering in the bandpass filtering, and selects the passband according to the signal characteristics; if the physiological signal is an electrocardiogram signal, the passband is set to 0.1-100 Hz; if the physiological signal is a respiratory signal, the passband is set to 0.01-20 Hz;
[0023] The signal preprocessing unit uses a median filter to remove outliers in the median filtering, and the filter length of the median filter is set to 40 data points.
[0024] Preferably, the feature values extracted by the feature extraction unit include skewness, kurtosis, and a distance between two adjacent waveforms calculated based on a dynamic time warping algorithm.
[0025] Preferably, the feature extraction unit is based on Perform skewness calculations;
[0026] The feature extraction unit is based on Perform kurtosis calculation;
[0027] Among them, μ is the sample mean, σ is the sample standard deviation, N is the number of samples, Skewness is the skewness, and Kurtosis is the kurtosis.
[0028] Preferably, the feature extraction unit uses a linear function to normalize the extracted feature values.
[0029] Preferably, the feature extraction unit extracts the feature value as a feature vector;
[0030] The feature extraction unit uses the extracted feature values Normalize the feature vector;
[0031] Among them, X norm is the normalized eigenvector, X is the original eigenvector, X min and X max are the minimum and maximum values in the eigenvector respectively.
[0032] The device of this application attempts for the first time to apply the idea of anomaly detection and the isolation forest model to the quality assessment of continuous physiological signals; the device of this application is based on the unsupervised model isolation forest, which avoids a lot of data labeling work, and the model is flexible and easy to adjust, with strong generalization performance; the application results of the device of this application on ECG and respiratory signals show that the patented algorithm can effectively distinguish the signal quality level, and the test results are good. Even if there are some pathological changes in the signal, the signal quality can still be correctly distinguished. The device of this application can also be expanded to the quality evaluation of other physiological signals, with a wide range of application scenarios and great potential. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A flowchart of an evaluation method performed by the physiological signal quality evaluation device of the present application;
[0034] Figure 2 It is the original signal diagram of ECG and respiratory wave;
[0035] Figure 3 To verify the quality results of the ECG signal;
[0036] Figure 4 This is the breathing signal quality result of the test set;
[0037] Figure 5 It is the result of ECG signal quality assessment;
[0038] Figure 6 It is the result of respiratory signal quality assessment;
[0039] Figure 7 is the signal quality assessment result;
[0040] Figure 8 Assess results for signal quality in the presence of pathology;
[0041] Fig. 9 Schematic diagram of the structure of the physiological signal quality assessment device of the present application. DETAILED DESCRIPTION
[0042] Below, the present application is described in detail with reference to the accompanying drawings.
[0043] The signal segmentation unit, signal preprocessing unit, feature extraction unit, signal quality assessment unit, and classification judgment unit included in the continuous physiological signal quality assessment device of the present application can be implemented by running corresponding programs through a computing device (such as a computer, etc.), or can be a specially designed computing circuit. The signal segmentation unit is used to receive the original physiological signal, and segment the original physiological signal by windowing to obtain a segmented signal; the signal preprocessing unit is used to preprocess the segmented signal to obtain a preprocessed signal; the preprocessing includes removing the signal baseline, bandpass filtering, and median filtering; the feature extraction unit is used to extract feature values from the preprocessed signal to obtain extracted feature values; the signal quality assessment unit includes a pretraining model, which is an isolation forest model; the signal quality assessment unit inputs the extracted feature values into the pretraining model to obtain a scoring result score; the classification judgment unit is used to judge the scoring result according to the set thresholds L1 and L2 to obtain the signal quality assessment result.
[0044] The continuous physiological signal quality assessment device of the present application invents an algorithm for continuous physiological signal quality assessment based on the idea of abnormality detection. The core of the algorithm is to use an unsupervised machine learning model, Isolation Forest, to extract features through window splitting, then read the model to score the abnormality of the signal, and classify the signal according to the model scoring result.
[0045] The continuous physiological signal quality assessment device of the present application (ECG and respiratory signals are used as examples in this example) splits the signal by windowing, removes the signal baseline, filters, removes outliers, extracts features and normalizes the features in the window, then reads the isolation forest model for classification assessment, and evaluates the signal quality based on the scoring results.
[0046] The signal quality assessment process is as follows: Figure 1 shown.
[0047] 1. The original signal of the signal in this example is as follows Figure 2 shown.
[0048] 2. Window splitting
[0049] The physiological signals are segmented with fixed time window lengths, in this case 10 seconds for cardiac electrocardiography and 30 seconds for respiration. The signal quality of the signal in each time window is determined.
[0050] 3. Signal preprocessing
[0051] Scan the signal with a 2S sliding window to obtain the median of the signal within 2S, that is, the baseline of the current signal. Subtract the baseline from the original signal to remove the signal baseline.
[0052] Use a bandpass filter to filter the signal and select the passband according to the signal characteristics. In this example, the central electrical signal passband is set to 0.1-100Hz, and the respiratory signal passband is set to 0.01-20Hz;
[0053] A median filter was used to remove outliers from the signal, and the filter length was set to 40 data points;
[0054] 4. Feature extraction and normalization
[0055] Features used include skewness and kurtosis:
[0056] Skewness:
[0057]
[0058] Kurtosis:
[0059]
[0060] Where μ is the sample mean, σ is the sample standard deviation, and N is the number of samples.
[0061] Extract characteristic points from physiological signals (such as R waves in ECG signals, peaks and troughs in respiratory signals, etc.), cut the signal in the window into several parts, that is, each part represents a complete physiological signal waveform (such as cardiac cycle and respiratory cycle), calculate the DTW distance of the waveforms of two adjacent parts, and form a sequence of waveform similarity in the window. Select Q1, median, and Q3 quantiles in the sequence as features.
[0062] Other features include the entropy of the signal within the window, spectrum distribution, energy proportion of each frequency band, etc., which need to be determined according to the specific signal.
[0063] Linear function normalization (Min-Max scaling) is used to normalize the features, that is, for specific features, the following normalization is performed:
[0064]
[0065] Where X norm is the normalized eigenvector, X is the original eigenvector, X min and X max are the minimum and maximum values in the eigenvector respectively.
[0066] 5. Model construction and evaluation
[0067] 1) Training the model
[0068] The data for training the model mainly comes from the patient and healthy person data collected by the research team in advance. The data collection time for each case is about 24 hours. The specific model training process is as follows:
[0069] · 10 examples of signal data that are considered to be of relatively high quality were selected, and the signals were split according to the predetermined window length, and about 100,000 data sets were selected for training;
[0070] Extract signal features within the window and form a feature matrix;
[0071] ·Training model, the model selected is the isolation forest model, and the parameter settings are: n_estimators = 2000, contamination = 0.05. The model returns a score of -1 to 1, reflecting the quality of the signal.
[0072] 2) Determination of classification threshold
[0073] In order to improve the robustness of the model and map the scoring results to the three-category results, we set the classification thresholds L1 and L2. To determine the values of L1 and L2, we construct a labeled model validation set. In this example, the validation set of ECG data contains 3460 data with a window length of 10s, and the respiratory data contains 2086 data with a window length of 30s. These data are annotated in advance by clinical and biomedical engineering experts on the signal quality of the data, and the annotation results are good signal quality (Good), medium quality (Acceptable), and poor quality (Unacceptable). At the same time, we test the performance of the model on this verification and quantitatively obtain the test results, which are quantified using a confusion matrix. The specific operation process is as follows:
[0074] Preprocess and extract features of the validation set signals to form a feature matrix;
[0075] Input the feature matrix into the trained model to obtain the model signal quality score for each window data;
[0076] L1, L2 starts with the lowest model score and divides the threshold with a step size of 0.001. When score ≥ L2, it is judged as category 1, the signal quality is good (Good), and 1 is returned; L1 ≤ score < L2, it is judged as category 2, the signal quality is medium (Acceptable), and 2 is returned; score < L1, the signal quality is poor (Unacceptable). The performance results of the model are obtained and evaluated by the accuracy of the model classification (Accuracy).
[0077] According to the best classification accuracy, determine L1 and L2. In this example, for ECG signals, L1 = 0.0, L2 = 0.03; for respiratory signals, L1 = -0.002, L2 = 0.042.
[0078] 3) Model fine-tuning
[0079] To reduce the risk of misclassifying pathological changes as poor signal quality, we further fine-tuned the model to ensure that the parts classified as poor signal quality have higher credibility, and further processed the data segments with model score < L1:
[0080] For the data segment with score < L1, the original data is further filtered using mean filtering, and then the feature extraction in step 3 is performed. After the feature value is input into the model, the classification score is obtained. If the score is < L1, it is judged as category 3 with poor signal quality (Unacceptable). If the score is > L1, it is judged as category 2 with medium signal quality (Acceptable).
[0081] 4) Test results
[0082] Embodiment 1
[0083] For ECG signals, the 3460 labeled data were used as a validation set and feature extraction was performed and input into the model. The model scoring results were compared with the manually labeled labels to obtain the confusion matrix, as shown in Table 1. The accuracy rate reached 94.97%. Figure 3 shown.
[0084] Table 1. Test set ECG signal quality results
[0085]
[0086] Accuracy: 94.97%
[0087] Embodiment 2
[0088] For respiratory signals, the 2086 labeled data were used as validation sets and feature extraction was performed and input into the model. The thresholds L1 = -0.002 and L2 = 0.042 were determined. The model scoring results were compared with the manually labeled labels to obtain the confusion matrix, as shown in Table 2. The accuracy rate reached 81.06%. The respiratory signal quality results are shown in Figure 4 shown.
[0089] Table 2. Validation set respiratory signal quality results
[0090]
[0091]
[0092] Accuracy: 81.06%
[0093] Examples:
[0094] Wang XX, male, 176cm, 53 years old, extracted features from his monitored ECG and respiratory signals and input them into the model to obtain the signal quality evaluation results as follows Figure 5-8 shown.
[0095] Unless otherwise defined, all technical and / or scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which the invention relates. The materials, methods and examples mentioned in this application are illustrative only and not limiting.
[0096] Although the present invention has been described in conjunction with specific embodiments, within the spirit of the invention of this application, those skilled in the art may make appropriate substitutions, modifications and changes, and such substitutions, modifications and changes still fall within the scope of protection of this application.
Claims
1. A continuous physiological signal quality assessment device, comprising: Signal segmentation unit, signal preprocessing unit, feature extraction unit, signal quality assessment unit, classification judgment unit; The signal segmentation unit is used for receiving the original physiological signal, and segmenting the original physiological signal by windowing to obtain a segmented signal; The signal preprocessing unit is used to preprocess the segmented signal to obtain a preprocessed signal; The preprocessing includes signal baseline removal, bandpass filtering and median filtering; The feature extraction unit is used to extract feature values from the preprocessed signal to obtain extracted feature values; The feature values extracted by the feature extraction unit include skewness, kurtosis, and the distance between two adjacent waveforms calculated based on a dynamic time warping algorithm; The signal quality evaluation unit includes a pre-trained model, which is an isolation forest model; the signal quality evaluation unit inputs the extracted feature value into the pre-trained model to obtain a scoring result score; The classification judgment unit is used to judge the scoring result according to the set thresholds L1 and L2 to obtain the evaluation result of the signal quality; When the signal segmentation unit segments the original physiological signal by windowing, the length of the window is fixed; When removing the signal baseline, the signal preprocessing unit scans with a 2-second sliding window to obtain the median of the signal within 2 seconds, that is, the baseline of the current signal. The baseline is subtracted from the original signal to remove the signal baseline. The feature extraction unit is based on Perform skewness calculations; The feature extraction unit is based on Perform kurtosis calculation; Among them, μ is the sample mean, σ is the sample standard deviation, N is the number of samples, Skewness is the skewness, and Kurtosis is the kurtosis.
2. The continuous physiological signal quality assessment device according to claim 1, characterized in that: The pre-trained model is trained on a large sample unlabeled training set, and then verified and the threshold is determined on a small sample manually annotated verification set.
3. The continuous physiological signal quality assessment device according to claim 1, characterized in that: The pre-trained model returns a scoring result of [-1, 1] on the validation set and sends it to the classification judgment unit; When score ≥ L2, the classification judgment unit judges it as category 1, the signal quality is good, and it returns to category 1; When L1≤score<L2, the classification judgment unit judges it as category 2, the signal quality is medium, and it returns to category 2; When score is less than L1, for the data segment with score less than L1, the signal preprocessing unit uses a larger window mean filter to remove the baseline, and then the feature extraction unit extracts features, and inputs the extracted feature values into the pre-trained model in the signal quality assessment unit and scores again. If the score is still less than L1, the classification judgment unit judges it as category 3, and the signal quality is poor; if the score is greater than L1, the classification judgment unit judges it as category 2, and the signal quality is medium.
4. The continuous physiological signal quality assessment device according to claim 1, characterized in that: If the physiological signal is an electrocardiogram signal, the window length is 10 seconds; if the physiological signal is a respiratory signal, the window length is 30 seconds.
5. The continuous physiological signal quality assessment device according to claim 1, characterized in that: The signal preprocessing unit uses a bandpass filter for filtering in the bandpass filtering, and selects the passband according to the signal characteristics; if the physiological signal is an electrocardiogram signal, the passband is set to 0.1-100 Hz; if the physiological signal is a respiratory signal, the passband is set to 0.01-20 Hz; The signal preprocessing unit uses a median filter to remove outliers in the median filtering, and the filter length of the median filter is set to 40 data points.
6. The continuous physiological signal quality assessment device according to claim 1, characterized in that: The feature extraction unit uses a linear function to normalize the extracted feature values.
7. The continuous physiological signal quality assessment device according to claim 6, characterized in that: The feature value extracted by the feature extraction unit is a feature vector; The feature extraction unit uses the extracted feature values Normalize the feature vector; Among them, X norm is the normalized eigenvector, X is the original eigenvector, X min and X max are the minimum and maximum values in the eigenvector respectively.
Citation Information
Patent Citations
Physiological signal quality assessment system and methods
CN102270264A
