Method and system for predicting blood transfusion probability based on KGLR model
The KGLR model combines the replication mask mechanism and the knockoffGAN framework to solve the problems of poor interpretability and low efficiency of missing data inference in blood transfusion prediction, achieve efficient and accurate blood transfusion prediction, and provide a simple, transparent, and sparse model to improve improve the reliability of clinical blood transfusion studies.
Patent Information
- Application Number
- CN202410662042.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology has problems in blood transfusion prediction such as poor interpretability, low efficiency of missing data inference, and suboptimal feature screening methods, which makes it difficult to balance model performance and interpretability, affecting the accuracy and reliability of clinical prediction.
The replication mask mechanism based on the KGLR model is used for missing data inference, combined with the knockoffGAN framework to control the false discovery rate, remove redundant features, and use the L1 regularized logistic regression model for red blood cell transfusion prediction, providing a simple, transparent, sparse and high-performance Interpretable models for accuracy.
It improves the accuracy and interpretability of blood transfusion prediction, ensures the efficiency and objectivity of the model, is suitable for blood transfusion prediction in various situations, makes up for the shortcomings of missing data inference and feature screening methods in the existing technology, and improves the Reliability of clinical transfusion studies.
Smart Images

Figure CN118609809A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis and processing, and in particular to a method and system for predicting blood transfusion probability based on a KGLR model. Background Art
[0002] Blood shortage is a global challenge, and elective surgeries with high bleeding risks may be postponed due to insufficient blood supply. Accurately predicting intraoperative blood usage, optimizing the utilization of blood resources, and ensuring timely and safe treatment of patients undergoing elective surgery have become urgent issues. Patients undergoing high-risk surgery are usually at risk of massive bleeding during surgery, so whether blood transfusions can be provided to maintain the hemodynamic stability of patients with intraoperative bleeding is a prerequisite for determining whether the operation can be carried out. However, with the advancement of medical technology, not all patients need intraoperative blood. With the increasing tension in global blood resources, elective surgeries may not be carried out as scheduled due to ischemia. Therefore, how to accurately predict intraoperative blood usage, maximize the rational use of blood resources, and ensure that high-risk surgical patients receive timely and safe treatment has become an urgent problem to be solved in blood usage prediction.
[0003] Machine learning is a field of artificial intelligence that learns from data based on computational modeling. As an application of artificial intelligence, machine learning can be used to analyze big data and generate algorithms for predicting results. The advantage of machine learning is personalized prediction, which can process a large number of predictive variables at the same time, learn the hidden laws of data from known data, and integrate them in a nonlinear and highly interactive way to predict results at the individual patient level. Therefore, the transfusion prediction model established based on machine learning algorithms is often used to predict intraoperative red blood cell transfusions for various surgical patients. According to the prediction results, targeted preventive measures can be taken for high-risk patients to reduce unnecessary costs and side effects, which is beneficial to the treatment and prognosis of patients.
[0004] There has been a large amount of research using deep neural networks and other complex machine learning models to solve problems such as intraoperative transfusion prediction. However, the interpretability of these models remains a difficult problem, especially for applications involving high-risk decisions, such as clinical transfusion prediction. In addition, when the original data itself is not well understood, interpretable models can generate deeper insights and facilitate inference and decision-making.
[0005] However, the interpretability of models in the existing technology is usually at the expense of model accuracy. For example, simple linear regression models and tree-based models can easily provide explanations for specific decisions made by the model, but usually make some sacrifices in model performance. This sacrifice is due to their inherent problems: linear models may have high bias, while tree-based models may have high variance (fully grown tree models), resulting in model overfitting. In contrast, more complex models, such as integrated models and deep learning models that have become popular in recent years, are usually able to achieve better performance, but they are often called "black box models" because it is difficult to explain how the model actually makes decisions. In order to better balance the trade-off between interpretability and predictive performance, various methods have been proposed in previous studies. For example, saliency methods are used to visualize the activation of a single input feature, while attribution methods such as LIME and SHAP can quantify the impact of each feature on the model output. However, these techniques are usually post-hoc explanatory methods rather than aimed at simplifying the model itself.
[0006] Secondly, an excellent feature screening strategy can improve the predictive accuracy of the interpretable model. However, in many existing transfusion prediction studies, the variable screening methods used are usually subjective and inaccurate, such as those based on literature retrieval, clinical experience, and expert discussion. Some studies also screen statistically significant features by calculating p-values and recursive feature elimination. We point out that these variable screening methods are suboptimal. In addition, the missing data inference method used by most studies only uses the mean or mode of the corresponding variable, which does not take into account the dependency between features and the distribution of the original data.
[0007] In addition, how to infer missing data is also an important issue. In the biomedical field, missing data is very common. For example, clinicians need to consider the economic burden when arranging laboratory tests for patients. In order to effectively treat patients by performing the minimum number of tests and diagnoses, data may be missing in this process. Analyzing data sets with missing data may lead to loss of statistical power or biased results, so a reliable and efficient missing inference method is needed. In the past, most clinical transfusion studies were limited to inferring missing data by filling in the mean (continuous data), filling in the mode (categorical data), or deleting samples with a missing rate exceeding a given threshold. Accurate missing inference requires not only modeling the dependency between features, but also considering the distribution of the original data. These preprocessing methods cannot capture the dependency between features and may even change the distribution of the original data. In addition, directly deleting samples with missing values may reduce the effective sample size, thereby affecting the quality of downstream analysis.
[0008] Missing inference based on deep learning methods is very attractive because neural networks have the ability to capture the complex dependencies between variables and learn the characteristics of data distribution. In addition, missing data can be regarded as a kind of noise that interferes with the original data. By using the regularity of the neural network itself, the purpose of denoising (reconstructing the original data) can be achieved. Various works have explored the application of missing inference using deep learning frameworks, but these existing methods have disadvantages such as low efficiency, complex algorithms, large amount of calculations, and inaccurate results. Summary of the invention
[0009] Compared with the prior art, in order to solve the above technical problems, the present invention proposes a risk factor analysis method and system based on the KGLR model, which is used to use this simple, transparent, more sparse and highly accurate interpretable model to quickly and accurately predict samples at high risk of transfusion, which helps to predict and evaluate blood transfusion for patients before surgery.
[0010] On the one hand, in the improved scheme of the present application, based on the proposed copy-masking method, a lightweight and efficient missing inference framework is constructed for inferring and filling missing data. The copy-masking mechanism simulates a missing pattern of propagation data in reality, and can realize missing inference without reducing the effective sample size. The entire missing inference model is an automatic encoder, which maps the original data with missing values to a hidden representation, and then maps it to the original feature space for reconstruction. This missing inference method realizes efficient and reasonable inference of missing data without reducing the effective sample size.
[0011] On the other hand, the present invention improves a new model KGLR based on the knockoffGAN framework, controls the false discovery rate (FDR) without assuming any feature distribution, mines out covariates with potential causal relationship with the response variable, and removes other redundant covariates, and then uses these screened features to fit the logistic regression model with L1 regularization to complete the prediction of red blood cell transfusion.
[0012] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0013] This paper proposes a new model KGLR based on the knockoffGAN framework for transfusion prediction. It controls the false discovery rate without assuming any feature distribution, mines covariates with potential causal associations with the target variable, removes other redundant covariates, and then uses a highly interpretable model to predict the possibility of red blood cell transfusion for patients during surgery. The prediction calculation method of the improved scheme is reasonable and efficient, suitable for transfusion prediction calculations in various occasions, and can effectively improve the accuracy of clinical possible transfusion prediction evaluation. The scheme is efficient, practical, objective and accurate.
[0014] Secondly, the present invention also uses a deep learning missing inference framework, which makes up for the defects of the existing technology in the past clinical transfusion research, such as the pre-processing methods based on mean and mode missing inference methods, which cannot capture the dependency between features and may change the distribution of the original data, thus affecting the effect of downstream analysis. Compared with the use of other more complex machine learning algorithms, the present invention combines the missing inference method based on the copy mask mechanism with the KGLR model based on the control variable selection of knockoffGAN, providing a simpler, more transparent, and sparser high-precision model, which is of great significance for the development of clinical transfusion research or other biomedical research. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the blood transfusion prediction method provided by an embodiment of the present invention.
[0016] Figure 2 It is a schematic diagram of the network structure of a KGLR model based on a knockoffGAN framework provided in an embodiment of the present invention.
[0017] Figure 3 Schematic diagram of the importance of characteristic variables of the KGLR prediction model provided by the embodiment of the present invention, wherein Figure 3 (a) A graph showing the accuracy of the KGLR model using different false discovery rates; Figure 3 (b) A graph showing the number of features screened by knockoffGAN using different false discovery rates.
[0018] Figure 4 It is a schematic diagram of the importance of characteristic variables of the KGLR prediction model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making any creative work should all fall within the scope of protection of this application.
[0020] The common data prediction framework model in the prior art performs simple data preprocessing on the original clinical transfusion data, extracts data features using some existing classic feature screening methods, and uses a classifier to analyze and predict the target data. The following embodiments of the present invention will propose an improved KGLR model based on the knockoffGAN framework, which is a simpler, more transparent, sparser and more accurate interpretable model, mainly improving the three key modules of missing data inference, feature screening, and model interpretation. At the same time, the embodiment of the present invention will use the prediction results of the model to analyze the influence of various factors, and take the situation of assuming aortic valve replacement surgery as the target object, so as to explain the specific scheme in detail, explore and study the potential causal risk factors affecting transfusion during surgery, and provide the decision boundaries of these factors. In other embodiments, the target object can also be a hypothetical scenario of other surgeries, or transfusion prediction data in similar scenarios, which is only the analysis object targeted by the technical solution of the present invention, and it is subject to the specific application of the scheme of the present invention and the solution of the corresponding technical problems.
[0021] It should be further explained that the framework models and corresponding blood transfusion data prediction methods and systems provided in the various embodiments of the present invention are methods for obtaining and processing information as intermediate results. The data prediction results cannot directly lead to the diagnosis results of the disease or the health status. Whether blood transfusion preparation is ultimately carried out depends on the doctor's diagnostic decision.
[0022] Example 1
[0023] like Figure 1 As shown, this embodiment is a method for predicting blood transfusion based on an improved KGLR model, comprising the following steps:
[0024] S01, collecting original clinical blood transfusion data, and performing data preprocessing on the collected original clinical blood transfusion sample data, wherein the data preprocessing at least includes using a missing inference framework based on a copy-masking mechanism to perform missing judgment on the sample data and fill in the missing values.
[0025] Since missing data is very common in the biomedical field, a reliable and efficient missing data inference method is needed. An effective missing data inference framework can improve the efficacy of feature screening methods and the performance of downstream analysis. In the past, most clinical transfusion studies have limited the inference of missing data to mean filling (continuous data), mode filling (categorical data) or deleting samples with missing rates exceeding a given threshold. These preprocessing methods cannot capture the dependency between features and may even greatly change the distribution of the original data, which may affect the effect of downstream analysis.
[0026] In a preferred embodiment, step S01 further comprises:
[0027] S101, select and retain all usable features in the sample data, for example, discard unusable features such as certain texts and numbers.
[0028] S102: discard relevant features with sample missing rate exceeding a certain proportion and use them as baseline features for subsequent analysis; and exclude patient samples with feature missing rate exceeding a certain threshold.
[0029] S103, using the missing inference framework based on the copy mask mechanism to judge the missingness of the sample data, and effectively fill the missing values when there is missing data.
[0030] S104, performing deviation normalization processing on the filled data to eliminate the influence of the dimension.
[0031] Specifically, step S103 mainly constructs a lightweight and efficient missing inference framework based on the copy-masking mechanism. The copy-masking mechanism simulates a missing pattern of propagation data in reality, and can achieve missing inference without reducing the effective sample size. The entire missing inference framework is an automatic encoder that maps the original data with missing values to a hidden representation, and then maps it to the original feature space for reconstruction. The entire specific missing inference process is as follows:
[0032] Let F be the true feature corresponding to the original sample data, and M be an n×p mask matrix, where M ij = 0 means that the jth eigenvalue of the ith sample is missing, otherwise M ij = 1. For simplicity, assume that F n×p The first C columns of the matrix (n represents the number of rows, and p represents the number of columns) are continuous phenotypes (such as age, height, and other variables), and the last (pC) columns are binary phenotypes (such as gender, type of surgery, and other variables), and the missing phenotypic values are filled with 0. Let the copy mask network h be the corresponding nonlinear network, which is instantiated as an autoencoder to infer missing phenotypic values and reconstruct observed values. In the calculation process, only estimated missing values are used. Similarly, to simplify the notation, let us assume that the copy mask network h is just an autoencoder with a single hidden layer and the hidden layer dimension is R, then W(1) is an R×p matrix and W(2) is a p×R matrix. F i,: is a column vector consisting of the i-th row element F of the matrix where the true feature F is located. i Construct, that is, the phenotype vector corresponding to sample individual i, then:
[0033] h(1) =Ψ(W (1) F i,: +b (1) ) (1)
[0034] h (2) =W (2) h (1) +b (2) (2)
[0035]
[0036] Ψ(x)=max(0,x)-l min(0,x) (4)
[0037]
[0038] Given the copy mask network h, the final reconstructed true feature is the F′ matrix, which is constructed as follows:
[0039] F′ i,: =M i,: ⊙F i,: +(1-M i,: )⊙h(F i,: ) (6)
[0040] Among them, ⊙ is element-wise multiplication. It should be noted that, in order to facilitate the distinction, F and F′ are used here to represent the real features before and after preprocessing, respectively. Although the real feature F is used as the initial feature in the subsequent step description, it refers to the real feature F′ after preprocessing without additional explanation.
[0041] To utilize the copy-masking mechanism, this embodiment randomly samples binary mask vectors from the rows of the mask matrix M. and applied to the input of the copy mask network h, so that for sample i, the jth phenotype value is is blocked when The parameter ρ is used to control the probability of occurrence of the masking mechanism during training, that is, the probability of an individual acting as a copy-masking mechanism.
[0042] The loss function L corresponding to the copy mask network h is described below all , the loss function L all Training of the copy mask network h. In a preferred embodiment, the parameters of the copy mask network h are updated by a gradient descent algorithm.
[0043]
[0044]
[0045]
[0046] in, is the output corresponding to the replication mask network h, i.e., the predicted phenotypic value of sample individual i; is the predicted value of the jth phenotype of sample individual i; loss i is the loss function corresponding to sample individual i.
[0047] Finally, the copy mask network weights that achieved the best validation loss were loaded back into the copy mask mechanism model for missing data inference and downstream analysis.
[0048] Step S02: extract knockoffGAN features from the preprocessed sample data based on the knockoffGAN model Determine the true feature corresponding to the sample - knockoffGAN feature pair
[0049] like Figure 2 The improved knockoffGAN framework of this embodiment, i.e., the architecture diagram of the KGLR model, is shown. Some improved adjustments are made to better discover the demographic characteristics of aortic valve replacement surgery, including the addition of a relevancy power sub-network, so that the improved knockoffGAN framework utilizes the information of the label space (thus, it is a supervised algorithm) to improve the algorithm's ability to discover features. The knockoffGAN framework consists of five sub-networks described below:
[0050] (1) Generator G is a fully connected feedforward neural subnetwork parameterized by φ. It receives the true features F and the uniform distribution U([0,1] c ), concatenate the two random variables as input, and generate the initial knockoffGAN features The generator G is modeled as a subnetwork G φ (·,·):F×[0,1] c →F, that is:
[0051]
[0052] (2) Discriminator D θ , whose task is to identify the real feature-knockoffGAN feature pairs Is there a feature swap in the discriminator D? θ is modeled as a subnetwork D θ (·,·):F×F→[0,1]p , which receives the knockoffGAN features from the real features F and the output of the generator G Similarly, the concatenation operation of the two swapped random variables is used as input Final discriminator D θ (·,·) outputs a vector of length p, where each i-th component represents the probability of the i-th feature being swapped, that is, the probability of i∈S.
[0053] Then construct the prompt vector H, which is a random vector. H is realized by sampling a multivariate Bernoulli random variable B, where each component of the random vector B is independent and identically distributed. i ~Bernoulli(0.9). Then construct the hint vector H by setting the following rules:
[0054]
[0055] Therefore, the discriminator D θ It is only necessary to predict the Si value of component i corresponding to Bi=0 (the probability value of the i-th component being exchanged), and the rest can be directly inferred from the prompt vector H.
[0056] Discriminator D θ The corresponding sub-network loss function is constructed as:
[0057]
[0058] Where ⊙ represents element-wise multiplication, l=(1,...,1), S=(S1,...,Sp), and the expectation of B is implicit in the expectation of H.
[0059] (3) Wasserstein GAN discriminator W ψ :This discriminator is used to improve the performance of the model. In addition, when the distribution exchange property is satisfied, adding this discriminator will not affect the optimal solution of the final loss function. The Wasserstein GAN discriminator is instantiated as a fully connected neural network, denoted as the Wasserstein GAN subnetwork W ψ , and its corresponding sub-network loss function loss W The definition is as follows:
[0060]
[0061]
[0062] Wherein, η is a hyperparameter. In a preferred embodiment, η can be set to 10. At the same time, the sub-network loss function loss Wis added to the final loss term.
[0063] (4) Mutual Information Neural Estimation (MINE) Network MI γ :
[0064] In order to maximize the efficacy of the knockoffGAN variable selection procedure, the true features F and knockoffGAN features In order to maximize such independence, this embodiment proposes a method for estimating mutual information based on a deep neural network framework to calculate the minimum true feature F and knockoffGAN feature The mutual information (MI) between two random variables U and V is estimated by using the gradient descent method, which is achieved by optimizing the following objective function:
[0065]
[0066] in, Denoted as the joint measure of U and V, and Denoted as the corresponding marginal measure, (n) Denote as the empirical distribution corresponding to n iid samples.
[0067] The mutual information neural estimation framework is used to calculate the true feature F and knockoffGAN feature The mutual information between them, this embodiment uses p neural networks M1, M2, ..., M p , each neural network consists of γ1, γ2, ..., γ p Parameterized, these neural networks are denoted as MI γ , which can improve the ability of KGLR model to discover variables. In addition, the mutual information neural estimation network MI γ The corresponding sub-function loss function loss MI The definition is as follows:
[0068]
[0069] where κ refers to a random permutation of [n], [n] refers to the integer sequence 1, 2, 3, …, n, (i) Refers to the i-th sample.
[0070] (5) Relevancy Power Subnetwork: In this embodiment, in order to improve the effectiveness of demographic features in screening clinical transfusion data, a relevancy power subnetwork is added so that the knockoffGAN framework can utilize the information in the label space to improve the ability of the KGLR model to discover features.
[0071] The correlation efficacy subnetwork considers the relationship between the real features, knockoffGAN features, and the label space. The correlation with the label space L should be "similar" to the correlation between the real feature F and the label space L, so consider minimizing the real feature F and the knockoffGAN feature The correlation difference between them and the label space L is measured using mutual information.
[0072] Similar to the mutual information neural estimation (MINE), the correlation efficacy subnetwork consists of another p neural networks R1, R2, ..., R p Each neural network consists of Ω1, ...Ω2, ..., Ω p Parameterized, these networks are denoted as RM Ω The sub-network loss function corresponding to the correlation effect sub-network is loss RM It can be expressed as:
[0073]
[0074] (6) Calculate the final optimization item Loss G , the final optimization term Loss G It is the loss function corresponding to the knockoffGAN framework, which is used to learn the generator G and update the parameters of the generator G.
[0075] Final optimization item Loss G The goal is obtained by weighting the loss functions of the previous four sub-networks, thus obtaining a minimization and maximization problem:
[0076]
[0077] Among them, λ1, λ2, λ3 are hyperparameters. In a preferred embodiment, λ1, λ2, λ3 are set to 1.01, 0.01, and 0.4 respectively. In addition, the learning rate used by each sub-network is 1×10 -4 , and use weight decay to reduce the risk of overfitting.
[0078] Then use the learned generator G to update the generated feature parameters and get the final knockoffGAN features
[0079] S03, based on the real feature-knockoffGAN feature pair while controlling the false discovery rate (FDR) and statistical power Perform feature screening and obtain the filtered feature results.
[0080] In this embodiment, once the corresponding knockoffGAN features are generated by the knockoffGAN model, feature selection can be performed under the condition of controlling the false discovery rate (FDR) and statistical power (TPR), that is, there are relevant definitions such as the false discovery rate (FDR) and statistical power (TPR) related to the knockoffGAN features, and the relevant descriptions are as follows.
[0081] Let F represent the space corresponding to the real features, L represent the label space, and let the dimension of F be p. Assume F = {f1,...,f i ,f p} and L are random variables on F and L respectively, and a feature f i ∈F is “null” if the label space L can be represented by only f -i The feature is inferred, ieL⊥f i |f -i In other words, this step is to select only the features related to L while controlling the false discovery rate (FDR), and avoid selecting unimportant ("empty") feature sets H0. The strict definition is as follows:
[0082] Definition 1: A feature variable f i is called "null" if and only if the label L is in Conditionally independent of f i . Alternatively, define H0 as the set of all “null” variables.
[0083] In addition, suppose that the feature set obtained by a feature selection module is The corresponding false discovery rate (FDR) can be defined as:
[0084]
[0085] Since it is usually desired to keep the false discovery rate (FDR) below some pre-specified desired threshold q∈[0,1], it is easy to see that the false discovery rate (FDR) is a measure of the first type error of feature selection.
[0086] Second, another important aspect of feature selection is statistical power (TPR), which is defined as:
[0087]
[0088] Among them, S★={f1,...,fp}\H0 is the set of all non-"empty" feature variables.
[0089] Because under the given sample size n, the first type error α corresponding to the false discovery rate (FDR) and the second type error β corresponding to the statistical power (TPR) usually cannot be reduced at the same time: the smaller the false discovery rate (FDR), the smaller the corresponding first type error α; the larger the statistical power (TPR), the larger the corresponding 1-β, that is, the smaller the second type error β. In other words, the more features are screened, the higher the false discovery rate (TPR); the fewer wrong features (or false features) are screened, the smaller the statistical power (FDR). If you want to get a feature selection algorithm, while theoretically controlling the low false discovery rate (TPR), you can try to achieve a high statistical power (FDR), that is, you don't want the screening process to be too conservative.
[0090] In the embodiment of the invention, the improvement of statistical power (TPR) depends on the correlation power sub-network RM Ω The introduction of Figure 3 As shown, Figure 3 (a) A graph showing the accuracy of the KGLR model using different false discovery rate (FDR) levels; Figure 3 (b) A graph showing the number of features screened by knockoffGAN using different false discovery rate (FDR) levels. Figure 3 It can be seen that the more features are screened, the higher the corresponding statistical power (TPR), that is, the improved correlation power subnetwork RM introduced in this embodiment Ω The KGLR model method is effective for improving statistical power (TPR).
[0091] Definition 2: knockoffGAN features corresponding to real features F Refers to a random variable The following two properties must be met:
[0092]
[0093]
[0094] Definition 1 For all All are true. Where ⊥ means that under the condition of given real feature F, the random variable and the random variable label L are independent; (·,·)swap(S) represents the vector obtained by swapping the i-th component with the (i+p)-th component, and this swap operation is performed for each i∈S; Means they are equal in distribution.
[0095] In order to use knockoffGAN for feature selection, an appropriate knockoffGAN feature statistic Wi must be defined, which depends on F, and L, so the knockoffGAN feature statistics W i Can be w i express: where w i A property called "sign flipping" must be satisfied:
[0096]
[0097] In a preferred embodiment, the knockoffGAN feature statistics W can be constructed using the LASSO regression model i :Using the augmented real feature-knockoffGAN feature matrix as the feature matrix to be regressed, the corresponding LASSO coefficients b1,...,b can be calculated 2p ,then
[0098] KnockoffGAN feature statistics W i can be instantiated as
[0099] W i =|b i |-|b i+p | (24)
[0100] Next, in order to screen features while controlling the false discovery rate (FDR), this embodiment uses the knockoffGAN feature statistic W i A threshold τ is defined:
[0101]
[0102] Once a knockoffGAN feature statistic W i If it is greater than the threshold τ, the feature is screened and retained.
[0103] The corresponding variable feature set is:
[0104]
[0105] Among them, the screening method can control the false discovery rate (FDR) below the threshold q, ie
[0106]
[0107] In another preferred embodiment, it is also possible to choose to calculate the knockoffGAN feature statistics W based on glm (generalized linear regression model)i If in one embodiment it is desired to control the false discovery rate (FDR) to a level of 10%, then it can be expected that approximately 90% of the selected features are significant or relevant.
[0108] S04, training and learning the filtered feature results using an explainable classifier, and using the trained classifier to evaluate and predict the data to be predicted, and outputting the final prediction result.
[0109] Since the embodiment of the present invention studies a case-control prediction problem, patients who need intraoperative blood transfusion are recorded as case samples, and patients who do not need intraoperative blood transfusion are recorded as control samples. In a preferred embodiment, a certain proportion of the data set is randomly assigned as a training set, and the remaining data set is assigned as a test set, and the training set and the test set are used to input into an interpretable classifier to evaluate the prediction performance.
[0110] In a preferred embodiment, the classifier used in the KGLR model is a logistic regression model based on L1 regularization, which is an interpretable model that outputs the probability distribution of all classes to estimate the class with the largest probability as the label of the final prediction result. In addition, it uses the penalty of the L1 norm to obtain a more sparse model, thereby further improving the interpretability of the model.
[0111] Example 2
[0112] This embodiment is a system for predicting the probability of blood transfusion based on the KGLR model, characterized in that the system is a device composed of module units corresponding to the steps of the method for predicting the probability of blood transfusion based on the KGLR model in any of the aforementioned embodiments, and is used to automatically predict the probability of blood transfusion.
[0113] Example 3
[0114] The improved scheme of the present invention can use the prediction results of the improved model to analyze the influence of factors, explore and study the potential causal risk factors that affect blood transfusion in patients undergoing aortic valve replacement surgery, and provide decision boundaries for these factors to guide the assessment of the patient's need for intraoperative blood transfusion in the prediction. The following examples are verified by using relevant data of patients undergoing aortic valve replacement surgery, and on this data, it is proved that the KGLR model can reach a level comparable to that of existing complex machine learning models under various evaluation indicators, and some indicators are even better. Secondly, the KGLR model in this embodiment is fully interpretable, which has important practical guiding significance for the study of transfusion prediction problems. Although this embodiment focuses on some specific data sets, the improved scheme can be widely applied to other types of data prediction or classification. The following will evaluate and illustrate the performance of the improved scheme for predicting the probability of transfusion based on the KGLR model in the aforementioned embodiment through specific experimental data.
[0115] The information of all patients who underwent aortic valve replacement surgery between January 1, 2012 and December 31, 2018 was retrieved from the big data platform of a hospital in Sichuan, including patients with simple aortic valve replacement and combined with other valve replacement. The big data platform integrates the clinical data of all patients in the hospital, such as the medical record information system and the laboratory information system, and extracts relevant results such as patient demographic characteristics, laboratory test results (routine coagulation, blood routine and biochemical routine), diagnosis, blood transfusion records and surgical records. With the hospitalization number as the only identification information, according to the patient's operation time and discharge time, the patient's preoperative (the most recent one within 7 days before the operation date) and discharge (the most recent one within 7 days before the discharge date) laboratory test results, including the intraoperative and postoperative blood volume, were extracted.
[0116] The data for the examples included people aged ≥18 years who had not undergone multiple surgeries. Exclusion criteria were patient samples with more than 30% missing key data. The decision to transfuse red blood cells during surgery was ultimately made by the attending anesthesiologist. Anesthesiologists strictly followed institutional guidelines that dictated appropriate red blood cell transfusion practices in the operating room that were implemented throughout the study period. Indications for red blood cell transfusion included hemoglobin <70 g / L, West China Perioperative Transfusion Score hemoglobin between 70-100 g / L, or any patient with rapid bleeding and significant cardiovascular instability.
[0117] Accordingly, the embodiment selects intraoperative allogeneic red blood cell (RBC) transfusion as the response variable, that is, whether intraoperative transfusion is performed on patients undergoing aortic valve replacement surgery. Intraoperative red blood cell transfusion refers to the number of allogeneic red blood cells transfused from the beginning to the end of the operation.
[0118] First, all the acquired data are preprocessed using the data preprocessing method in the aforementioned embodiment of the present invention. After initially discarding relevant features with a sample missing rate exceeding 30% and excluding samples with a feature missing rate exceeding 70%, a missing inference framework based on a copy mask mechanism is used to perform missing judgment on these sample data, and the missing values of the remaining samples are filled.
[0119] Remember F pre is a data set obtained by preprocessing with mean or mode filling, F imputed Denoted as the data set inferred based on the copy-masking mechanism.
[0120] Afterwards, F pre and F imputed After normalization, F pre and F imputed The training-test set was randomly divided in the same way, with 80% of the data used as the training set (626 cases, of which 247 patients received red blood cell transfusion during surgery) and 20% of the data used as the test set (157 cases, of which 62 patients received red blood cell transfusion during surgery).
[0121] The final example included 783 patients, and the preoperative characteristics data F imputed The preoperative characteristics of the patients included age, height, weight, etc. Among them, the average age of the patients was 54.42 years old, 35.0% were female, and the average weight was 61.20 kg. The amount of red blood cell transfusion ranged from 1.5 units to 17.5 units, and the average red blood cell consumption was 3.66 ± 0.68 units. For subsequent comparison of the feature screening method using the p value, the preoperative feature data F after interpolation using the copy mask mechanism imputed A univariate analysis was performed, and since the statistical parameter P < 0.1 was considered to be statistically significant, some features with P ≥ 0.1 were discarded, leaving 40 features.
[0122] In the following Table 1, each classifier is based on F pre and F imputed The 10-fold cross validation results on the divided training set, in order to evaluate the effectiveness of these prediction models, the evaluation indicators used in this embodiment include the area under the ROC curve (AUC), accuracy (ACC), F1-score (F1), precision (Precision) and recall (Recall). In this process, the baseline features are used for prediction and classification.
[0123] Compared with F preFrom the classifier results, we can see that almost all classifiers have been improved in various indicators, among which the performance of the Linear discriminant analysis (LDA) prediction model has improved the most, and Lasso can achieve the highest AUC result. In short, it can be seen that the missing inference method based on the copy-masking mechanism can produce lower classification errors and better classification performance, improving the performance of various prediction models.
[0124] Table 1 Based on F pre and F imputed The performance results of each classifier
[0125]
[0126] Secondly, in order to illustrate the advantages of the knockoffGAN (FDR = 0.1) feature screening framework, that is, the improved knockoffGAN feature screening framework in the embodiment of the present invention improves the accuracy of the interpretable model, the recursive feature elimination (RFE) and the secondary screening methods based on p-value and Logistic Analysis (LA) are further compared, which are the commonly used methods in the past transfusion prediction research. Specifically, recursive feature elimination (RFE) obtains the optimal variable combination that maximizes the model performance by adding or deleting specific feature variables, and applies it to the screening of key variables. In this process, the random forest model is used to achieve the screening. Based on the p-value and LA secondary screening method, all independent variables are first subjected to univariate analysis, and p < 0.1 is used for screening; then the variables screened by the univariate screening are input into the logistic model for reverse screening. When p ≥ 0.1, each variable is eliminated. The knockoffGAN feature screening framework screens variables based on the calculated knockoffGAN feature statistic Wi. The details of the three feature screening results are shown in Table 2 below.
[0127] Table 2 Results of three feature screening methods
[0128]
[0129] In general, it can be observed that the use of knockoffGAN feature selection can improve model interpretability (FDR = 0.1), because models based on fewer features are easier to interpret, and knockoffGAN has the least number of features to screen (14). In addition, the best results of most classifiers are achieved after using the knockoffGAN feature screening framework, and only a few low-precision classifiers (BernoulliNB, GaussianNB) and some ensemble models (Random forest, LightGBM) are best achieved in other screening frameworks. However, in the comparison of various indicators of all classifiers, the best algorithms are knockoffGAN+Lasso and knockoffGAN+LDA. It is worth noting that the best AUC value of the ensemble model is easy to achieve using the RFE framework, which may be because the RFE feature screening method is based on the random forest model and has a preference for the results of the ensemble model. Therefore, it can be argued that the controlled feature selection approach using knockoffGAN is more attractive, not only because knockoffGAN can improve the downstream analysis performance of various interpretable models, but also because the knockoffGAN framework can control the FDR at a given level, and its screening results are model-independent.
[0130] Similarly, a 10-fold cross-validation was performed on the three feature screening results on the training set to compare the performance of various interpretable models when using different feature screening methods, as shown in Table 3 below.
[0131] Table 3 Performance of Lasso classifier under various feature screening methods
[0132]
[0133] It can be seen that the KGLR model has the best performance. When the prediction accuracy of Lasso after principal component analysis (PCA) of the data is further compared. The best performance can be achieved under the knockoffGAN framework. Among them, we fixed the number of principal components to match the number of features selected by knockoffGAN. Furthermore, since Lasso itself has the function of feature dimensionality reduction, KGLR implements a more sparse model and screens out 13 transfusion risk features. Compared with the prediction results using baseline characteristics and only using p-values, the KGLR model can achieve the best prediction results using the least features, which shows that KGLR eliminates most of the redundant variables and mines factors with potential causal risks.
[0134] Furthermore, this embodiment uses the parameter SHAP value (Shapley Additive explanations) to perform an explanatory analysis on the KGLR model and visualize the importance of the selected features. The SHAP value generates a predicted value for each sample, and the SHAP value is the value assigned to each feature in the sample.
[0135] like Figure 4 The figure shows the importance of the variable features selected by the KGLR prediction model. The longer the bar, the higher the importance of the feature. In addition, by comparison, it can be found that the feature importance ranking given by the SHAP value overlaps with the absolute value ranking of the knockoffGAN statistic of the KGLR model (the order of the top five important features is the same)
[0136] LA was further used to verify the statistical significance of the 13 risk features screened by the KGLR model. The results are shown in Table 4 below, where TP (total protein) and RDW-CV (width-coefficient of variation of red blood cell distribution) were excluded (p>0.1). Further analysis using the KGLR model found that HGB hemoglobin (<135.28g / L), sex (female), age (>53.65y), operation_way (traditional surgery), PLT platelets (<171.03109 / L), HDL-C high-density lipoprotein cholesterol (>1.33mmol / L), TT thrombin time (<19.58s), BMI (<23.23kg / m2) and FIB fibrinogen (>2.81g / L) were the main risk-related factors for red blood cell transfusion, and the decision boundaries of these factors were provided, which can be used as a benchmark for determining whether a patient needs transfusion in predictive analysis.
[0137] Table 4 Performance of Lasso classifier under various feature screening methods
[0138]
[0139] The prediction results of the KGLR model on the test set are shown in Table 5 below. The features shown in the table are the main risk factors mined by KGLR. Among them, 121 cases were predicted accurately (77.1%), 16 were false positives (FP), and 20 were false negatives (FN). Specific analysis of the results in Table 3.9 shows that in the gender feature, the FP results mainly appear in female patients, while the FN results mainly appear in male patients; for the HGB feature, the FP results appear in patients with lower HGB, and the FN results appear in patients with higher HGB; for the PLT feature, the FP results appear in patients with higher PLT, and the FN results appear in patients with lower PLT.
[0140] Table 5 Analysis of KGLR prediction results on the test set
[0141]
[0142] In addition, by comparison, it can be found that the feature importance ranking given by the SHAP value overlaps with the absolute value ranking of the knockoffGAN statistic of the KGLR model (the order of the top five important features is the same). That is, the absolute value comparison of the KGLR model coefficient can be used as a reference for feature importance. In addition, HGB (hemoglobin) is the most important risk factor in these three importance rankings.
[0143] In summary, the present invention proposes a new model KGLR based on the knockoffGAN framework, which controls the false discovery rate without assuming any feature distribution, mines covariates with potential causal associations with the target variable, removes other redundant covariates, and then uses a highly interpretable model to predict the possibility of transfusing red blood cells to patients during surgery. The prediction calculation method is reasonable and efficient, suitable for transfusion prediction calculations in various occasions, and can effectively improve the accuracy of clinical possible transfusion prediction evaluation. The scheme is efficient, practical, objective and accurate. Secondly, the present invention also uses a deep learning missing inference framework to make up for the defects of the preprocessing methods such as the mean and mode missing inference methods used in the past clinical transfusion research in the prior art that cannot capture the dependency between features and may change the distribution of the original data, thereby affecting the effect of downstream analysis. Compared with the use of other more complex machine learning algorithms, the present invention combines the missing inference method based on the copy mask mechanism with the KGLR model based on the knockoffGAN control variable selection, providing a simpler, more transparent, and more sparse high-precision model, which is of great significance for the development of clinical transfusion research or other biomedical research.
[0144] All features disclosed in this specification, or steps in all methods or processes disclosed, except mutually exclusive features and / or steps, can be combined in any manner.
[0145] The present invention is not limited to the above-mentioned specific embodiments, but extends to any new features or any new combination disclosed in this specification, as well as any new method or process steps or any new combination disclosed.
Claims
1. A method for predicting the probability of blood transfusion based on the KGLR model. It is characterized in that The steps include: S01, collecting original clinical blood transfusion data, and performing data preprocessing on the collected original clinical blood transfusion data; The data preprocessing at least includes performing missing inference and / or missing value filling on the sample data using a missing inference framework based on a copy mask mechanism; S02, using the KGLR model based on the knockoffGAN framework to extract the corresponding knockoffGAN features from the preprocessed sample data, and determine the real feature-knockoffGAN feature pair; S03, performing feature screening based on the real feature-knockoffGAN feature pair while controlling the false discovery rate and statistical power, and obtaining the screened feature results; S04, training and learning the filtered feature results using an explainable classifier, and using the trained classifier to evaluate and predict the data to be predicted, and outputting the final prediction result.
2. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 1, It is characterized in that The step S01 comprises: S101, select and retain all usable features; S102, discard the relevant features whose sample missing rate exceeds a certain ratio and use them as the baseline features for subsequent analysis; and exclude samples whose feature missing rate exceeds a certain threshold; S103, using a missing inference framework based on a copy mask mechanism to perform missing judgment on sample data, and fill in missing values that exist; S104, normalizing the filled data.
3. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 1, It is characterized in that In step S103, using the missing inference framework based on the copy mask mechanism to perform missing judgment on the sample data includes: Let M be an n×p mask matrix, where M ij = 0 means that the jth eigenvalue of the ith sample is missing, otherwise M ij =1; Assume that the sample feature matrix F n×p The first C columns are continuous phenotypes, the last (p-C) columns are binary phenotypes, and missing phenotype values are filled with 0; The copy mask network h is used to infer missing phenotypic values and reconstruct observed values. Suppose the copy mask network h is an autoencoder with a single hidden layer and the hidden layer dimension is R. Then W(1) is an R×p matrix and W(2) is a p×R matrix. F i,: is a column vector constructed from the i-th row elements of the true feature F sample matrix: h (1) =Ψ(W (1) F i,: +b (1) ) (1) h (2) =W (2) h (1) +b (2) (2) Ψ(x)=max(0,x)-l min(0,x) (4) Given the copy mask network h, the reconstructed true feature F′ matrix is constructed as follows: F′ i.: =M i,: ⊙F i,: +(1-M i,: )⊙h(F i,: ) (6) where ⊙ is element-wise multiplication.
4. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 3, It is characterized in that The step S103 further includes: To exploit the copy mask mechanism, a binary mask vector is randomly sampled from the rows of the mask matrix M. And applied to the input of the copy mask network h, so that the j-th phenotype value for sample i is is blocked when The parameter ρ is used to control the probability of occurrence of the masking mechanism during training, that is, the probability of an individual copying the mask.
5. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 1, It is characterized in that The knockoffGAN framework in step S102 includes the following sub-networks: Generator G φ , used to generate initial knockoffGAN features; The discriminator Dθ is used to identify whether there is feature exchange in the real feature-knockoffGAN feature pair; Wasserstein GAN Discriminator W ψ , used to improve the performance of the knockoffGAN feature model; Mutual Information Neural Estimation Network MI γ , used to calculate the mutual information between the minimized real features and knockoffGAN features; Relevance Efficacy Sub-Network RM Ω , which is used to utilize the information in the label space to improve the ability of the knockoffGAN framework to discover features.
6. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 5, It is characterized in that Step S02 includes: S201, using generator G φ , generate initial knockoffGAN features from the preprocessed real features; S202, respectively using the discriminator Dθ and the Wasserstein GAN discriminator W ψ , Mutual Information Neural Estimation Network MI γ , correlation efficacy sub-network RM Ω Calculate the corresponding sub-network loss function lossD, loss W 、loss MI 、loss RM ; S203, calculate the final optimization item Loss G , the final optimization term Loss G The loss function of the four sub-networks is weighted: Among them, λ 1 ,λ 2 ,λ 3 is a hyperparameter, and the final optimization term Loss G For the generator G φ learning; S204, using the learned generator G φ Update the generated feature parameters to obtain the final knockoffGAN features.
7. A method for predicting the probability of blood transfusion based on the KGLR model as claimed in claim 1, It is characterized in that The simultaneous control of the false discovery rate and the statistical power in step S03 includes: simultaneously making the false discovery rate low and the statistical power high.
8. A method for predicting blood transfusion probability based on the KGLR model as claimed in claim 1, It is characterized in that The false discovery rate FDR in step S03 is: in, is the feature set obtained by the feature selection module, Feature i ∈ feature space F is "empty", H 0 is the set of all "empty" variables; The statistical power TPR is: Among them, S★={f1,...,fp}\H0 is the set of all non-"empty" feature variables.
9. A method for predicting blood transfusion probability based on the KGLR model as claimed in claim 1, It is characterized in that The step S03 specifically includes: Define a knockoffGAN feature statistic Wi, where w i The following properties must be met: The threshold τ is defined using the knockoffGAN feature statistic Wi: The real feature-knockoffGAN feature pair corresponding to the knockoffGAN feature statistic Wi being greater than the threshold τ is taken as the screened feature result. The screened feature result set is 10. A system for predicting the probability of blood transfusion based on the KGLR model. It is characterized in that The system is a system composed of module units corresponding to the steps of any blood transfusion probability prediction method in claims 1-9, and is used for automatically predicting and evaluating blood transfusion probability.
