Intraoperative vital sign data artifact identification and correction system based on machine learning
Through a machine learning-based system, combined with multiple deep learning architectures and traditional algorithms, adaptive identification and correction of vital sign data during surgery is achieved, the problem of pseudo-variance identification is solved, the accuracy and efficiency of monitoring is improved, and the safety of surgery is achieved. Provides guarantees.
Patent Information
- Application Number
- CN202410961361.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-15
AI Technical Summary
During the operation, vital sign data often has artifacts due to sensor failure, signal interference and patient movement, and existing methods are difficult to adapt to the complex and changeable clinical environment, resulting in distortion of monitoring results, which brings trouble to medical staff's judgment and decision-making. .
Using a machine learning-based system, through data acquisition and preprocessing, feature extraction, pseudo-difference recognition and data correction modules, combining isolated forest models, convolutional neural networks (CNNs), long short-term memory networks (LSTMs) and autoregressive mobile averaging (ARMA) model to realize adaptive identification and correction of vital sign data during surgery.
Real-time and accurate identification and correction of different vital signs and clinical environments has been achieved, the efficiency and accuracy of surgical monitoring has been improved, the work burden of medical staff has been reduced, and the safety of surgical treatment has been provided for patients.
Smart Images

Figure CN118964907A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical information analysis, and in particular to a machine learning-based system for identifying and correcting artifacts in vital sign data during surgery. Background Art
[0002] During surgery, it is crucial to accurately monitor the patient's vital signs. However, due to factors such as sensor failure, signal interference, and patient movement, artifacts often occur in vital sign data, resulting in distorted monitoring results and causing trouble for medical staff in their judgment and decision-making. Traditional artifact recognition methods, such as threshold methods and filtering methods, are often targeted at specific types of artifacts and are difficult to adapt to complex and changing clinical environments. There are significant differences in the adaptability of different vital signs (such as heart rate, blood pressure, etc.) and clinical environments (such as operating rooms, ICU, etc.) to artifact detection methods.
[0003] The patent with application number CN1 14129169A discloses a method, system, medium and device for identifying bioelectric signal data, which relates to a method, system, medium and device for identifying bioelectric signal data, including: collecting bioelectric signal data to form a database; using bioelectric signal data to train the data identification model to obtain the optimal model; collecting new bioelectric signal data, and inputting the new bioelectric signal data into the optimal model to obtain the identification result; judging whether the identification result is correct, and correcting the incorrect result; adding the corrected identification result and its corresponding data to the database to update the database, training the optimal model with the updated database to obtain the optimized model, optimizing the data identification model multiple times until the final model that meets the requirements is obtained; inputting the bioelectric signal data to be identified into the final model for identification. It can extract bioelectric signal data more accurately and obtain a more accurate identification effect; however, the invention does not specifically disclose how to implement the identification of whether the bioelectric signal data is wrong, and how to correct the wrongly identified bioelectric signal data.
[0004] Therefore, there is an urgent need for an intelligent system that can adapt to different vital signs and clinical environments, accurately identify and correct artifacts in real time. This invention intends to use machine learning technology to build an adaptive model that integrates multiple deep learning architectures and traditional algorithms to achieve accurate quality control of vital sign data during surgery and provide reliable decision support for medical staff.
[0005] In view of this, the present invention proposes a system for identifying and correcting artifacts in vital sign data during surgery based on machine learning. Summary of the invention
[0006] To achieve the above-mentioned object, the present invention provides a system for identifying and correcting artifacts of vital signs data during surgery based on machine learning, and the specific technical scheme is as follows: the system for identifying and correcting artifacts of vital signs data during surgery based on machine learning comprises: a data acquisition and preprocessing module, a feature extraction module, an artifact identification module and a data correction module;
[0007] The data acquisition and preprocessing module is used to obtain multi-parameter vital sign monitoring data of the patient during surgery and preprocess the data;
[0008] The feature extraction module is used to extract features from the multi-parameter vital sign monitoring data of the patient during surgery, and to extract time domain features, frequency domain features and morphological features from the data;
[0009] The artifact recognition module trains an isolation forest model to recognize artifact data, uses a CNN model and an LSTM model integrated classifier to classify artifact types, and determines whether the artifact classification is accurate through confidence.
[0010] The data correction module uses the autoregressive moving average (ARMA) time series prediction model to correct the data with pseudo-errors according to the data of the time points before and after the pseudo-error data.
[0011] Preferably, the data acquisition and preprocessing module includes a data acquisition unit and a data preprocessing unit;
[0012] The data acquisition unit is used to obtain multi-parameter vital signs monitoring data of the patient during surgery from the monitor; the multi-parameter vital signs monitoring data includes electrocardiogram ECG, pulse oxygen saturation Sp02, non-invasive blood pressure NIBP, invasive blood pressure IBP, body temperature TEMP and respiratory rate RR;
[0013] The data preprocessing unit is used to remove the erroneous data that are lost and exceed the physiological limit in the acquired data and to perform linear difference correction on the abnormal values, and to integrate the preprocessed multi-parameter vital sign monitoring data into a vital sign monitoring data sequence X arranged in time sequence. T ;
[0014] The feature extraction module includes a time domain feature extraction unit, a frequency domain feature extraction unit and a morphological feature extraction unit;
[0015] The time domain feature extraction unit is used to extract statistical features from the vital sign monitoring data sequence, wherein the statistical features include mean, standard deviation, percentile, skewness and kurtosis;
[0016] The frequency domain feature extraction unit is used to perform Fourier transform on the vital sign monitoring data sequence to obtain the power spectrum density PSD, and extract the features of the dominant frequency and frequency band energy therefrom;
[0017] The morphological feature extraction unit is used to precisely locate and segment the QRS wave group of the electrocardiogram (ECG) and extract diagnostic indicators such as QRS width, QRS amplitude, QRS slope, PR interval and ST segment level.
[0018] Preferably, the artifact recognition module includes a artifact classification training submodule, a artifact classification submodule and a confidence assessment submodule:
[0019] The pseudo-difference classification training submodule is used to train the machine learning model to identify and classify pseudo-difference data; the vital sign monitoring data sequence X T And the corresponding time domain features, frequency features and morphology are integrated into a multidimensional time series X T ′, and use the sliding window to analyze the multidimensional time series X T ′ to slice the multidimensional time series X T ′ is sliced into n multidimensional time subsequences:
[0020] X T ′=[X1,X2,...,X n ]
[0021] Artifact types are divided by manual annotation, and the annotated samples are used to train a machine learning model; the machine learning model includes a convolutional neural network (CNN) and a long short-term memory (LSTM) network;
[0022] Assume that there are K types of manually labeled artifacts, then the multidimensional time series X T ′ is marked as the corresponding category label y n ,y n ∈0, 1, ..., K; where 0 means no artifacts, and n labeled samples are obtained to form the training set D:
[0023] D=(X T ′,y n )|X T ′=[X1,X2,...,X n ],y n ∈0,1,...,K
[0024] The artifact recognition problem is modeled as a K+1 classification task, with labels y n That is, the true category of the nth sample, when y n =k≠0, indicating that X i contains the kth artifact; when y n =0, indicating that X iis a normal subsequence, in the training set D consisting of labeled samples = (X T ′,y n ), y n For classification targets, through machine learning models, input X into the machine learning model i , predict X T ′ in the multidimensional time subsequence X i The artifact category to which Among them, X i is a multidimensional time subsequence, i is a parameter, i∈[1,n].
[0025] Preferably, the pseudo-difference classification training submodule is also used to train an isolation forest model to detect multidimensional time series X T Whether the multidimensional time subseries in ′ is suspected of artifacts;
[0026] The isolation forest model is trained with the training set D. The unsupervised anomaly detection algorithm of the isolation forest is used to determine the degree to which each multidimensional time subseries deviates from the normal sample distribution and whether the data in the multidimensional time subseries is suspected of artifacts.
[0027] Isolation forest randomly selects multi-dimensional time subsequences and recursively performs random binary division on each feature until each subsequence is isolated to a leaf node and reaches the maximum tree depth. This process is repeated multiple times to generate random isolation trees to form an isolation forest.
[0028] For each multidimensional time subsequence X i , measuring the average isolated path length E(H(X i )):
[0029]
[0030] Among them, H(n-1) is the harmonic number, which is the sum of all reciprocals from 1 to n-1; c(n) is the average value of the leaf nodes in the tree, E(H(X i ))The smaller the value, the i The faster you are isolated, the i The greater the probability of containing artifacts;
[0031] Construct the pseudo-error suspicion scoring function S(X i , n), and set the pseudo-error suspicion score threshold θ to detect the multidimensional time subsequence X i Is there any suspicion of artifacts in the data?
[0032]
[0033] Among them, the pseudo-suspect scoring function S(X i , n) ranges from 0 to 1, S(Xi , n) is closer to 1, the i The greater the probability that the data contains artifacts, the greater the probability that X i |S(X i , n) ≥ θ, then X i The data in the table are suspected of being false; if X i |S(X i , n)<θ, then X i There is no suspicion of artifacts in the data.
[0034] Preferably, the artifact classification submodule is used to initially screen out the multidimensional time subsequence X that is suspected of artifacts. i , an integrated classifier composed of trained CNN and LSTM models is used to finely identify the types of artifacts, and the integrated strategy adopts the weighted average method;
[0035] Construct a CNN model classifier and use a one-dimensional convolutional neural network to classify X that contains artifacts. i Perform hierarchical extraction of time domain, frequency domain and morphological data. Suppose the input of the first layer of convolution is X (l) , the convolution kernel is W (l) , with a bias of b (l) , the activation function is f, then the output is X (l+1 )for:
[0036] X (l+1) =f(X (l+1) *X (l) +b (l) )
[0037] Among them, * is a convolution operation. The last layer of CNN is connected to the fully connected layer and the Softmax layer to perform multiple classifications of artifact types.
[0038] Construct an LSTM model classifier, consider the time dependence of the artifact, introduce the long short-term memory network LSTM to model the artifact segment, and classify the X suspected of artifact i As input features, the LSTM model includes input gate it, forget gate ft, output gate ot and state gate ct. The hidden state of the last time step of the LSTM model passes through the fully connected layer and the Softmax layer to obtain the posterior probability of the pseudo-difference category;
[0039] The output probabilities of the CNN classifier and the LSTM classifier are weighted averaged to obtain the final probability distribution of the pseudo-difference type:
[0040] P = [p0, p1, p2, ..., p K ],p=λp k (CNN)+(1-λ)p k (LSTM)
[0041] Where P represents the probability distribution of the pseudo-error type, p K represents the probability of the Kth artifact, λ∈[0,1] is the integration weight, p k (CNN) is the probability that the CNN classifier outputs the artifact type K, p k (LSTM) is the probability that the LSTM classifier outputs the artifact type K;
[0042] Final prediction X i The categories of artifacts in are:
[0043]
[0044] Where K is the type of artifact, is the predicted pseudo-difference label, and argmax represents the category with the highest predicted probability.
[0045] Preferably, the confidence assessment submodule is used to assess the predicted X i Confidence of the artifact categories in ;
[0046] For the trained pseudo-difference classifiers CNN and LSTM, the dropout layer is retained in the inference phase and forward propagated G times repeatedly to obtain G groups of output probabilities p'1, P'2, ..., P' G ; For a given artifact segment X i , its predicted artifact label The average posterior probability is:
[0047]
[0048] in, is the weight of the g-th dropout model, 1≤g≤G; The larger the value of , the higher the confidence of the pseudo-difference classification prediction;
[0049] Set up a confidence threshold TH6, 0<THδ<1, if The confidence level of the artifact prediction classification result is too low, triggering an artifact detection review.
[0050] Preferably, the data correction module uses an autoregressive moving average (ARMA) time series prediction model to correct the artifacts according to the data of the previous and next time points of the artifact data;
[0051] For the multidimensional time subseries X where artifacts are detected i , taking the data point of the pseudo-error as the center, selecting the preset length of the front and back time windows, and constructing the local time series fragment;
[0052] On the local time series segments, the autoregressive moving average (ARMA) model is trained to learn the dynamic laws of vital sign signals, and the trained ARMA model is used to predict and correct the pseudo-error data points.
[0053] The method for identifying and correcting artifacts of vital signs data during surgery based on machine learning is implemented based on the system for identifying and correcting artifacts of vital signs data during surgery based on machine learning, and includes:
[0054] Obtain multi-parameter vital signs monitoring data of patients during surgery and pre-process the data;
[0055] Perform feature extraction on the multi-parameter vital signs monitoring data of patients during surgery, extracting the time domain features, frequency domain features and morphological features in the data;
[0056] The data of the isolation forest model artifacts are trained for identification, and the ensemble classifier composed of machine learning models is used to classify the artifact types, and the confidence level is used to determine whether the artifact classification is accurate;
[0057] The autoregressive moving average (ARMA) time series forecasting model is used to correct the data with artifacts according to the data of the time points before and after the artifacts.
[0058] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; the processor executes the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning by calling the computer program stored in the memory.
[0059] A computer-readable storage medium includes: instructions stored therein, which, when executed on a computer, enable the computer to execute the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning.
[0060] The beneficial effects of the present invention are as follows: through the data acquisition and preprocessing module, multi-parameter vital signs monitoring data of the patient during surgery can be acquired in real time, and the data can be cleaned and standardized, providing a high-quality data basis for subsequent feature extraction and artifact identification, thereby improving the reliability and robustness of the entire system.
[0061] By utilizing the feature extraction module, the dynamic characteristics of vital sign signals are comprehensively characterized from the time domain, frequency domain and morphological perspectives, and the effective information contained in the data is fully mined, providing rich feature representation for artifact recognition and helping to improve the accuracy of artifact detection.
[0062] In the artifact recognition module, advanced machine learning algorithms are used to fully learn the deep characteristics and temporal dependencies of vital sign signals through a combination of convolutional neural networks and long short-term memory networks, and a powerful artifact recognition model is established. At the same time, integrated learning strategies and confidence assessment mechanisms are introduced to further improve the accuracy and reliability of artifact detection.
[0063] For the detected artifact data, the data correction module uses the autoregressive moving average time series model to model the normal data segments before and after the artifact data, learns the dynamic change rules of vital signs signals, and realizes automatic correction of the artifact data, ensuring the continuity and integrity of the vital signs monitoring data.
[0064] The entire system of the present invention realizes the automated and intelligent processing of vital sign monitoring data during surgery, and performs real-time detection and correction of artifacts through machine learning algorithms, which greatly reduces the workload of medical staff, improves the efficiency and accuracy of surgical monitoring, and provides a strong guarantee for the safety of patients' surgeries. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a schematic diagram of the structure of the system for identifying and correcting artifacts of vital sign data during surgery based on machine learning of the present invention;
[0066] Figure 2 It is a flow chart of a method for identifying and correcting artifacts of vital sign data during surgery based on machine learning according to the present invention;
[0067] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0068] Figure 4 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0069] In order to better understand the present invention, a more detailed description will be made of various aspects of the present invention with reference to the accompanying drawings. It should be understood that these detailed descriptions are only descriptions of exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0070] In the accompanying drawings, the size, dimensions and shapes of the elements have been slightly adjusted for ease of illustration. The accompanying drawings are for illustration only and are not strictly drawn to scale. As used herein, the terms "substantially", "approximately" and similar terms are used as terms of approximation, not as terms of degree, and are intended to illustrate the inherent deviations in measurements or calculations that will be recognized by those of ordinary skill in the art. In addition, in the present invention, the order in which the steps are described does not necessarily represent the order in which these processes occur in actual operation, unless otherwise specified or can be derived from the context.
[0071] It should also be understood that expressions such as "comprises", "including", "having", "includes" and / or "comprising" are open rather than closed expressions in this specification, which indicate the presence of the stated features, elements and / or components, but do not exclude the presence of one or more other features, elements, components and / or combinations thereof. In addition, when expressions such as "at least one of..." appear after a list of listed features, they modify the entire list of features rather than just the individual elements in the list. In addition, when describing embodiments of the present invention, "may" is used to mean "one or more embodiments of the present invention". And, the term "exemplary" is intended to refer to an example or illustration.
[0072] Unless otherwise defined, all words (including engineering terms and scientific and technological terms) used in this article have the same meaning as those commonly understood by ordinary technicians in the field to which the present invention belongs. It should also be understood that unless there is a clear explanation in the present invention, the words defined in the commonly used dictionary should be interpreted as having the same meaning as their meaning in the context of the relevant technology, and should not be interpreted in an idealized or overly formal sense.
[0073] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0074] Example 1
[0075] Reference Figure 1 The first embodiment of the present invention provides a system for identifying and correcting artifacts in vital sign data during surgery based on machine learning.
[0076] The system comprises a data acquisition and preprocessing module, a feature extraction module, a pseudo-error recognition module and a data correction module.
[0077] The data acquisition and preprocessing module is used to obtain multi-parameter vital sign monitoring data of the patient during surgery and preprocess the data.
[0078] The feature extraction module is used to extract features from multi-parameter vital sign monitoring data of patients during surgery, and to extract time domain features, frequency domain features and morphological features from the data.
[0079] The artifact recognition module trains an isolation forest model to recognize artifact data, uses an integrated classifier to classify artifact types, and determines whether the artifact classification is accurate through confidence.
[0080] The data correction module uses the autoregressive moving average (ARMA) time series prediction model to correct the data with pseudo-errors according to the data of the time points before and after the pseudo-error data.
[0081] The data acquisition and preprocessing module includes a data acquisition unit and a data preprocessing unit.
[0082] The data acquisition unit is used to obtain multi-parameter vital signs monitoring data of the patient during surgery from the monitor; the multi-parameter vital signs monitoring data includes electrocardiogram ECG, pulse oxygen saturation SpO2, non-invasive blood pressure NIBP, invasive blood pressure IBP, body temperature TEMP and respiratory rate RR.
[0083] The data preprocessing unit is used to eliminate erroneous data that is lost or exceeds physiological limits in the acquired data and to perform linear difference correction on abnormal values.
[0084] Setting the physiological limit range threshold of multi-parameter vital signs monitoring data [L j , U j ], L j is the lower limit threshold of the jth vital sign monitoring data, U j The upper limit threshold of the jth type of vital sign monitoring data is used to remove data points in the vital sign monitoring data sequence that exceed the threshold range.
[0085] The zero value in the multi-parameter vital sign monitoring data is marked as an outlier, and the outlier is corrected by linear interpolation according to the adjacent data points; the sum of the normal data points before and after the zero-value data point is taken to perform linear interpolation correction.
[0086] Integrate the preprocessed multi-parameter vital signs monitoring data into a vital signs monitoring data sequence X arranged in chronological order T .
[0087] The feature extraction module includes a time domain feature extraction unit, a frequency domain feature extraction unit and a morphological feature extraction unit.
[0088] The time domain feature extraction unit is used to extract statistical features in the vital sign monitoring data sequence, and the statistical features include mean, standard deviation, percentile, skewness and kurtosis.
[0089] The frequency domain feature extraction unit is used to perform Fourier transform on the vital sign monitoring data sequence to obtain the power spectrum density PSD, and extract the features of the dominant frequency and frequency band energy therefrom.
[0090] The morphological feature extraction unit is used to precisely locate and segment the QRS wave group of the electrocardiogram (ECG) and extract diagnostic indicators such as QRS width, QRS amplitude, QRS slope, PR interval and ST segment level.
[0091] The QRS width is the duration of the QRS complex, reflecting the ventricular depolarization process; the QRS amplitude is the voltage amplitude of the QRS complex, reflecting the intensity of myocardial electrical activity; the QRS slope is the maximum slope of the signal before and after the R peak, reflecting the depolarization speed; the PR interval is the time interval between adjacent R peaks, reflecting the heart rate level; the ST segment level is the voltage mean of a fixed time after the S point, reflecting the myocardial hypoxia state.
[0092] The artifact recognition module includes a artifact classification training submodule, a artifact classification submodule and a confidence evaluation submodule.
[0093] The pseudo-difference classification training submodule is used to train the machine learning model to identify and classify pseudo-difference data; the vital sign monitoring data sequence X T And the corresponding time domain features, frequency features and morphology are integrated into a multidimensional time series X T ′, and use the sliding window to analyze the multidimensional time series X T ′ to slice the multidimensional time series X T ′ is sliced into n multidimensional time subsequences:
[0094] X T ′=[X1,X2,...,X n ]
[0095] Experienced anesthesiologists and monitoring specialists manually annotate the multidimensional time subseries and classify the artifact types through manual annotation, which include baseline drift, high-frequency noise, and body motion artifacts. The annotated samples are used to train the machine learning model, which includes a convolutional neural network (CNN) and a long short-term memory network (LSTM).
[0096] Assume that there are K types of manually labeled artifacts, then the multidimensional time series X T ′ is marked as the corresponding column label y n ,y n ∈0, 1, ..., K; where 0 means no artifacts, and n labeled samples are obtained to form the training set D:
[0097] D=(X T ′,yn )|X T ′=[X1,X2,...,X n ],y n ∈0,1,...,K
[0098] The artifact recognition problem is modeled as a K+1 classification task, with labels y n That is, the true category of the nth sample, when y n =k≠0, indicating that X i contains the kth artifact; when y n =0, indicating that X i is a normal subsequence, in the labeled sample D of the training set (X T ′,y n ), y n For classification targets, through machine learning models, input X into the machine learning model i , predict X T ′ in the multidimensional time subsequence X i The artifact category to which Among them, X i is a multidimensional time subsequence, i is a parameter, i∈[1,n].
[0099] The pseudo-difference classification training submodule is also used to train the isolation forest model to detect multidimensional time series X T ′ whether the multidimensional time subseries in is suspected of artifacts.
[0100] The isolation forest model is trained with the training set D. The unsupervised anomaly detection algorithm of the isolation forest is used to determine the degree to which each multidimensional time subseries deviates from the normal sample distribution and whether the data in the multidimensional time subseries is suspected of artifacts.
[0101] Isolation forest randomly selects multidimensional time subsequences and recursively performs random binary division on each feature until each subsequence is isolated to a leaf node and reaches the maximum tree depth. This process is repeated multiple times to generate random isolation trees to form an isolation forest.
[0102] For each multidimensional time subsequence X i , measuring the average isolated path length E(H(X i )):
[0103]
[0104] Among them, H(n-1) is the harmonic number, which is the sum of all reciprocals from 1 to n-1; c(n) is the average value of the leaf nodes in the tree, E(H(X i ))The smaller the value, the i The faster you are isolated, the iThe greater the probability of containing artifacts.
[0105] Construct the pseudo-error suspicion scoring function S(X i , n), and set the pseudo-error suspicion score threshold θ, which is determined by technicians in this field based on actual needs and a large amount of experimental data to detect the multidimensional time subsequence X i Is there any suspicion of artifacts in the data?
[0106]
[0107] Among them, the pseudo-suspect scoring function s(X i , n) ranges from 0 to 1, S(X i , n) is closer to 1, the i The greater the probability that the data contains artifacts, the greater the probability that X i |S(X i , n) ≥ θ, then X i The data in the table are suspected of being false; if X i LS(X i , n)<θ, then X i There is no suspicion of artifacts in the data.
[0108] The artifact classification submodule is used to preliminarily screen out the multidimensional time subsequences X that are suspected of artifacts. i ,The integrated classifier composed of the trained CNN and LSTM models is used to ,refine the types of artifacts, and the integrated strategy adopts the weighted ,average method.
[0109] Construct a CNN classifier and use a one-dimensional convolutional neural network to classify X that contains artifacts. i Perform hierarchical extraction of time domain, frequency domain and morphological data. Suppose the input of the first layer of convolution is X (l) , the convolution kernel is W (l) , with a bias of b (l) , the activation function is f, then the output is X (l+1 )for:
[0110] X (l+1) =f(X (l+1) *X (l) +b (l) )
[0111] Among them, * is a convolution operation. The last layer of CNN is connected to the fully connected layer and the Softmax layer to perform multiple classifications of artifact types.
[0112] Construct an LSTM classifier, consider the time dependence of the artifact, introduce the long short-term memory network LSTM to model the artifact segment, and classify the X suspected of artifact iAs input features, the LSTM model includes an input gate it, a forget gate ft, an output gate ot and a state gate ct. The hidden state of the last time step of the LSTM model passes through a fully connected layer and a Softmax layer to obtain the posterior probability of the pseudo-difference category.
[0113] The output probabilities of the CNN classifier and the LSTM classifier are weighted averaged to obtain the final probability distribution of the pseudo-difference type:
[0114] P = [p0, p1, p2, ..., p K ],p=λp k (CNN)+(1-λ)p k (LSTM)
[0115] Where P represents the probability distribution of the pseudo-error type, p K represents the probability of the Kth artifact, λ∈[0,1] is the integration weight, p k (CNN) is the probability that the CNN classifier outputs the artifact type K, p k (LSTM) is the probability that the LSTM classifier outputs the artifact type K.
[0116] Final prediction X i The categories of artifacts in are:
[0117]
[0118] Where K is the type of artifact, is the predicted pseudo-difference label, and argmax represents the category with the highest predicted probability.
[0119] The confidence evaluation submodule is used to evaluate the predicted i The confidence level of the artifact class in .
[0120] In order to estimate the uncertainty of pseudo-error classification results, the Monte Carlo method is introduced to randomly sample the output probability of the deep learning classifier to quantify the confidence.
[0121] For the trained pseudo-difference classifiers CNN and LSTM, the dropout layer is retained in the inference phase and forward propagated G times repeatedly to obtain G groups of output probabilities P'1, P'2, ..., P' G ; This is equivalent to sampling G models from the posterior probability distribution.
[0122] For a given artifact segment X i , its predicted artifact label The average posterior probability is:
[0123]
[0124] in, is the weight of the g-th dropout model, 1≤ g≤G; The larger the value of , the higher the confidence of the pseudo-difference classification prediction.
[0125] Set the confidence threshold TH6, 0<TH6<1, if The confidence level of the artifact prediction classification result is too low and needs to be reviewed by medical staff. The confidence threshold is determined by technical personnel in this field based on actual needs and a large amount of experimental data.
[0126] The data correction module uses the autoregressive moving average (ARMA) time series prediction model to correct the artifacts according to the data of the previous and next time points of the artifact data.
[0127] Detect the multidimensional time subsequence X i , taking the data point of the artifact as the center, select the preset length of the front and back time windows to construct the local time series fragment.
[0128] On the local time series segments, the autoregressive moving average (ARMA) model is trained to learn the dynamic laws of vital sign signals, and the trained ARMA model is used to predict and correct the pseudo-error data points.
[0129] The autoregressive moving average model ARMA consists of autoregressive AR and moving average MA, which describes the short-term correlation and long-term trend of the time series. i In the example, the pseudo-error data point is x t , then the ARMA(a, b) model is defined as:
[0130]
[0131] Among them, c is a constant term, is the autoregressive coefficient, θ j is the moving average, ε t is a white noise sequence, a and b are the orders of autoregression and moving average respectively.
[0132] For a given multidimensional time subseries X containing artifacts i , the training process of the ARMA model is as follows:
[0133] Use the ADF test to determine whether the time series is stationary. If it is not stationary, perform a difference operation until the time series is stationary.
[0134] The values of a and b are obtained through the tailing and truncation properties of the autocorrelation coefficient ACF and the partial correlation coefficient PACF;
[0135] Use the least squares method to obtain the parameters of the ARMA model and θ j The value of
[0136] Residual Perform a white noise test. If the test passes, the model is available, otherwise the order is recalculated.
[0137] Using the trained ARMA(a, b) model, the pseudo-difference data point x t Make corrections and set x t The predicted value of is:
[0138]
[0139] in, and are the estimated model parameters; Replace the original artifact data point x t value.
[0140] Example 2
[0141] Reference Figure 2 The second embodiment of the present invention provides a method for identifying and correcting artifacts in vital sign data during surgery based on machine learning.
[0142] The method includes: obtaining multi-parameter vital sign monitoring data of the patient during surgery and preprocessing the data;
[0143] Perform feature extraction on the multi-parameter vital signs monitoring data of patients during surgery, extracting the time domain features, frequency domain features and morphological features in the data;
[0144] The isolation forest model is trained to identify the artifact data, and the ensemble classifier composed of machine learning models is used to classify the artifact types, and the confidence level is used to determine whether the artifact classification is accurate;
[0145] The autoregressive moving average (ARMA) time series forecasting model is used to correct the data with artifacts according to the data of the time points before and after the artifacts.
[0146] Example 3
[0147] Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, according to another aspect of the present invention, an electronic device 500 is also provided. The electronic device 500 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning as described above can be executed.
[0148] The method or system according to the embodiment of the present invention can also be used by Figure 3 The architecture of the electronic device shown is implemented.
[0149] The electronic device 500 may include a bus 501, one or more CPUs 502, a read-only memory (ROM) 503, a random access memory (RAM) 504, a communication port 505 connected to a network, an input / output component 506, a hard disk 507, and the like.
[0150] The storage device in the electronic device 500, such as the ROM 503 or the hard disk 507, can store the intraoperative vital sign data artifact recognition and correction system based on machine learning provided by the present invention.
[0151] The method for identifying and correcting artifacts of vital sign data during surgery based on machine learning includes: obtaining multi-parameter vital sign monitoring data of patients during surgery and preprocessing the data; the feature extraction module is used to extract features of the multi-parameter vital sign monitoring data of patients during surgery, and extract time domain features, frequency domain features and morphological features in the data; training the data of artifacts of the isolation forest model to identify the artifact types, using an integrated classifier composed of a machine learning model to classify the artifact types, and judging whether the artifact classification is accurate through confidence; using an autoregressive moving average ARMA time series prediction model, and correcting the data with artifacts according to the data of the time points before and after the artifact data.
[0152] Example 4
[0153] Figure 4 It is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present invention.
[0154] like Figure 4 As shown, a computer readable storage medium 600 according to one embodiment of the present invention.
[0155] Computer readable storage medium 600 has computer readable instructions stored thereon.
[0156] When the computer-readable instructions are executed by a processor, the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning according to the embodiments of the present invention described with reference to the above drawings can be executed.
[0157] The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. In addition, according to an embodiment of the present invention, the process described above with reference to the flowchart may be implemented as a computer software program.
[0158] For example, the present invention provides a non-temporary machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be run by a processor to execute instructions corresponding to the method steps provided by the present invention, for example: obtaining multi-parameter vital signs monitoring data of the patient during surgery and preprocessing the data; the feature extraction module is used to extract features from the multi-parameter vital signs monitoring data of the patient during surgery, extracting time domain features, frequency domain features and morphological features in the data; training the data of the isolation forest model artifacts to identify the artifact types, using an integrated classifier composed of a machine learning model to classify the artifact types, and judging whether the artifact classification is accurate through confidence; using the autoregressive moving average ARMA time series prediction model to correct the data with artifacts according to the data of the time points before and after the artifact data.
[0159] When the computer program is executed by the central processing unit (CPU), the above functions defined in the method of the present invention are performed. The method, apparatus, and device of the present invention may be implemented in many ways. For example, the method, apparatus, and device of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware.
[0160] The above sequence for the steps of the method is for illustration only, and the steps of the method of the present invention are not limited to the sequence specifically described above unless otherwise specifically stated.
[0161] In addition, in some embodiments, the present invention can also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Therefore, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0162] In addition, the parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive redundancy.
[0163] The specific implementation modes as described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A machine learning-based intraoperative vital sign data artifact recognition and correction system, characterized in that: include: Data acquisition and preprocessing module, feature extraction module, artifact recognition module and data correction module; The data acquisition and preprocessing module is used to obtain multi-parameter vital sign monitoring data of the patient during surgery and preprocess the data; The feature extraction module is used to extract features from the multi-parameter vital sign monitoring data of the patient during surgery, and to extract time domain features, frequency domain features and morphological features from the data; The artifact recognition module trains an isolation forest model to recognize artifact data, uses a CNN model and an LSTM model integrated classifier to classify artifact types, and determines whether the artifact classification is accurate through confidence. The data correction module uses the autoregressive moving average (ARMA) time series prediction model to correct the data with pseudo-errors according to the data of the time points before and after the pseudo-error data.
2. The machine learning-based intraoperative vital sign data artifact recognition and correction system according to claim 1, characterized in that: The data acquisition and preprocessing module includes a data acquisition unit and a data preprocessing unit; The data acquisition unit is used to obtain multi-parameter vital sign monitoring data of the patient during surgery from the monitor; the multi-parameter vital sign monitoring data includes electrocardiogram ECG, pulse oxygen saturation SpO2, non-invasive blood pressure NIBP, invasive blood pressure IBP, body temperature TEMP and respiratory rate RR; The data preprocessing unit is used to remove the erroneous data that are lost and exceed the physiological limit in the acquired data and to perform linear difference correction on the abnormal values, and to integrate the preprocessed multi-parameter vital sign monitoring data into a vital sign monitoring data sequence X arranged in time sequence. T ; The feature extraction module includes a time domain feature extraction unit, a frequency domain feature extraction unit and a morphological feature extraction unit; The time domain feature extraction unit is used to extract statistical features from the vital sign monitoring data sequence, wherein the statistical features include mean, standard deviation, percentile, skewness and kurtosis; The frequency domain feature extraction unit is used to perform Fourier transform on the vital sign monitoring data sequence to obtain the power spectrum density PSD, and extract the features of the dominant frequency and frequency band energy therefrom; The morphological feature extraction unit is used to precisely locate and segment the QRS wave group of the electrocardiogram (ECG) and extract diagnostic indicators such as QRS width, QRS amplitude, QRS slope, PR interval and ST segment level.
3. The machine learning-based intraoperative vital sign data artifact recognition and correction system according to claim 2, characterized in that: The pseudo-difference identification module includes a pseudo-difference classification training submodule, a pseudo-difference classification submodule and a confidence assessment submodule: The pseudo-difference classification training submodule is used to train the machine learning model to identify and classify pseudo-difference data; the vital sign monitoring data sequence X T And the corresponding time domain features, frequency features and morphology are integrated into a multidimensional time series X T ′, and use the sliding window to analyze the multidimensional time series X T ′ to slice the multidimensional time series X T ′ is sliced into n multidimensional time subsequences: X T ′=[X1,X2,...,X n ] Artifact types are divided by manual annotation, and the annotated samples are used to train a machine learning model; the machine learning model includes a convolutional neural network (CNN) and a long short-term memory (LSTM) network; Assume that there are K types of manually labeled artifacts, then the multidimensional time series X T ′ is marked as the corresponding category label yn, y n ∈0,1,...,K; where 0 means no artifacts, and n labeled samples are obtained to form the training set D: D=(X r ′,y n )|X T ′=[X1,X2,...,X n ],y n ∈0.1,...,K The artifact recognition problem is modeled as a K+1 classification task, with labels y n That is, the true category of the nth sample, when y n =k≠0, indicating that X i contains the kth artifact; when y n =0, indicating that X i is a normal subsequence, in the training set D consisting of labeled samples = (X T ′,y n ), y n For classification targets, through machine learning models, input X into the machine learning model i , predict X T ′ in the multidimensional time subsequence X i The artifact category to which Among them, X i is a multidimensional time subsequence, i is a parameter, i∈[1,n].
4. The machine learning-based intraoperative vital sign data artifact recognition and correction system according to claim 3, characterized in that: The pseudo-difference classification training submodule is also used to train the isolation forest model to detect multidimensional time series X T Whether the multidimensional time subseries in ′ is suspected of artifacts; The isolation forest model is trained with the training set D. The unsupervised anomaly detection algorithm of the isolation forest is used to determine the degree to which each multidimensional time subseries deviates from the normal sample distribution and whether the data in the multidimensional time subseries is suspected of artifacts. Isolation forest randomly selects multi-dimensional time subsequences and recursively performs random binary division on each feature until each subsequence is isolated to a leaf node and reaches the maximum tree depth. This process is repeated multiple times to generate random isolation trees to form an isolation forest. For each multidimensional time subsequence X i , measuring the average isolated path length E(H(X i )): Among them, H(n-1) is the harmonic number, which is the sum of all reciprocals from 1 to n-1; c(n) is the average value of the leaf nodes in the tree, E(H(X i ))The smaller the value, the i The faster you are isolated, the i The greater the probability of containing artifacts; Construct the pseudo-error suspicion scoring function S(X i , n), and set the pseudo-error suspicion score threshold θ to detect the multidimensional time subsequence X i Is there any suspicion of artifacts in the data? Among them, the pseudo-suspect scoring function S(X i , n) ranges from 0 to 1, S(X i , n) is closer to 1, the i The greater the probability that the data contains artifacts, the greater the probability that X i |S(X i , n)≥θ, then X i The data in the table are suspected of being false; if X i |S(X i , n)<θ, then X i There is no suspicion of artifacts in the data.
5. The machine learning-based intraoperative vital sign data artifact recognition and correction system according to claim 4, characterized in that: The artifact classification submodule uses an integrated classifier composed of trained CNN and LSTM models to finely identify the artifact type for the multidimensional time subsequence Xi that is initially screened out to contain artifact suspicion, and the integrated strategy uses a weighted average method; Construct a CNN model classifier and use a one-dimensional convolutional neural network to classify X that contains artifacts. i Perform hierarchical extraction of time domain, frequency domain and morphological data. Suppose the input of the first layer of convolution is X (l) , the convolution kernel is W (l) , with a bias of b (l) , the activation function is f, then the output is X (l+1) for: X (l+1) =f(X (l+1) *X (l) +b (l) ) Among them, * is a convolution operation. The last layer of CNN is connected to the fully connected layer and the Softmax layer to perform multiple classifications of artifact types. Construct an LSTM model classifier, consider the time dependence of the artifact, introduce the long short-term memory network LSTM to model the artifact segment, and classify the X suspected of artifact i As input features, the LSTM model includes input gate it, forget gate ft, output gate ot and state gate ct. The hidden state of the last time step of the LSTM model passes through the fully connected layer and the Softmax layer to obtain the posterior probability of the pseudo-difference category; The output probabilities of the CNN classifier and the LSTM classifier are weighted averaged to obtain the final probability distribution of the pseudo-difference type: P=[p0,p1,p2,...,p K ],p=λp k (CNN)+(1-λ)p k (LSTM) Where P represents the probability distribution of the pseudo-error type, p K represents the probability of the Kth artifact, λ∈[0,1] is the integration weight, p k (CNN) is the probability that the CNN classifier outputs the artifact type K, p k (LSTM) is the probability that the LSTM classifier outputs the artifact type K; Final prediction X i The categories of artifacts in are: Where K is the type of artifact, is the predicted pseudo-difference label, and argmax represents the category with the highest predicted probability.
6. According to the machine learning-based intraoperative vital sign data artifact recognition and correction system of claim 5, the confidence evaluation submodule is used to evaluate the predicted X i Confidence of the artifact categories in ; For the trained pseudo-difference classifiers CNN and LSTM, the dropout layer is retained in the inference phase and forward propagated G times repeatedly to obtain G groups of output probabilities P'1, P'2, ..., P' G ; For a given artifact segment X i , its predicted artifact label The average posterior probability is: in, is the weight of the g-th dropout model, 1≤g≤G; The larger the value of , the higher the confidence of the pseudo-difference classification prediction; Set the confidence threshold TH6, 0<TH6<1, if The confidence level of the artifact prediction classification result is too low, triggering an artifact detection review.
7. The system for identifying and correcting artifacts of vital signs data during surgery based on machine learning according to claim 6, wherein the data correction module uses an autoregressive moving average (ARMA) time series prediction model to correct artifacts based on the data of the previous and next time points of the artifact data; For the multidimensional time subseries Xi where the artifacts are detected, the data point of the artifacts is taken as the center, and the preset length of the front and back time windows is selected to construct the local time series fragment; On the local time series segments, the autoregressive moving average (ARMA) model is trained to learn the dynamic laws of vital sign signals, and the trained ARMA model is used to predict and correct the pseudo-error data points.
8. A method for identifying and correcting artifacts in vital signs data during surgery based on machine learning, which is implemented based on the system for identifying and correcting artifacts in vital signs data during surgery based on machine learning as claimed in any one of claims 1 to 7, characterized in that: include: Obtain multi-parameter vital signs monitoring data of patients during surgery and pre-process the data; Perform feature extraction on the multi-parameter vital signs monitoring data of patients during surgery, extracting the time domain features, frequency domain features and morphological features in the data; The isolation forest model is trained to identify the artifact data, and the ensemble classifier composed of machine learning models is used to classify the artifact types, and the confidence level is used to determine whether the artifact classification is accurate. The autoregressive moving average (ARMA) time series forecasting model is used to correct the data with artifacts according to the data of the time points before and after the artifacts.
9. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning as described in claim 8 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which is suitable for being loaded by a processor to execute the steps of the method for identifying and correcting artifacts of vital sign data during surgery based on machine learning as described in claim 8.
Citation Information
Patent Citations
Bio-electricity signal data identification method, system, medium and equipment
CN114129169A
Method and system for identifying artifacts of dynamic electrocardiosignals
CN115778402A
River water quality real-time monitoring platform
CN118052450A
Method and data processing apparatus for generating real-time alerts about a patient
US20220051796A1
Cited By
Abnormal communication monitoring method and device, equipment and storage medium
CN119544324A
