Cardiovascular acute event prediction method based on Xgboost algorithm
By constructing a cardiovascular acute event prediction model using the Xgboost algorithm, the problems of traditional models relying on artificial feature variables and insufficient data utilization are solved, achieving higher prediction accuracy and reliability, and supporting medical decision-making.
Patent Information
- Application Number
- CN202410909209.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional cardiovascular acute event prediction models rely on manually selected feature variables, ignore complex relationships, and cannot make full use of large-scale medical data, resulting in limited prediction accuracy and scope.
The Xgboost algorithm was used to collect data from a health information platform, select multiple variables as input, perform preprocessing and segmentation, establish a prediction model for acute events of cardiovascular diseases, and use multiple indicators to evaluate the model performance to ensure high accuracy.
It improves the accuracy and reliability of predicting acute cardiovascular events, provides important information for medical decision-making, and reduces the incidence and mortality of events.
Smart Images

Figure CN118888136A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine learning, and in particular to a method for predicting acute cardiovascular events based on an Xgboost algorithm. Background Art
[0002] Acute cardiovascular events are one of the important reasons for the high mortality rate worldwide. In order to predict and intervene in these events in advance, many studies have been carried out, including the use of machine learning algorithms. At present, the prediction of acute cardiovascular events is mainly based on traditional risk assessment models, such as using chi-square tests, regression analysis and other methods to predict patients' risk of disease.
[0003] However, traditional risk assessment models have some defects that limit their application scope and accuracy. First, traditional models mainly rely on manually selected and agreed feature variables, which limits the input dimension and prediction ability of the model. Second, these models usually ignore the complex relationship between various related factors and cannot fully explore potential predictive features. In addition, due to the lack of strong data analysis and mining capabilities, traditional models cannot fully utilize the potential of large-scale medical data and have difficulty identifying and predicting some small but important signals.
[0004] Therefore, a new prediction scheme for acute cardiovascular events is needed to overcome the limitations of traditional models. Summary of the invention
[0005] The purpose of the present invention is to provide a method for predicting acute cardiovascular events based on the Xgboost algorithm, which can provide more accurate and comprehensive prediction results so as to better carry out case screening, intervention measures, etc.
[0006] The present invention solves the technical problem and adopts the following technical solution:
[0007] A method for predicting acute cardiovascular events based on the Xgboost algorithm comprises the following steps:
[0008] Collect basic information data of patients with acute cardiovascular diseases and basic information data of patients without cardiovascular diseases on the health information platform, and match the collected data according to a first set ratio;
[0009] Among the collected data, several variables were selected as inputs to the prediction model for acute cardiovascular events;
[0010] Performing a preprocessing operation on the collected data, and randomly dividing the preprocessed data into a training set and a test set according to a second set ratio;
[0011] The data in the training set were trained based on the XGBoost algorithm, and a prediction model for acute cardiovascular disease events was established;
[0012] The test set was used to evaluate the established cardiovascular disease acute event prediction model;
[0013] Obtain real-time input data and use the evaluated cardiovascular disease acute event prediction model to output the disease risk probability.
[0014] As a further optimization, the basic information data of the patients with acute cardiovascular disease and the basic information data of the patients without cardiovascular disease include: personal disease record ID number, basic demographic information, past medical history and family history, biochemical test indicators, illness time, disease name and ICD code.
[0015] As a further optimization, the basic information data collected from patients with acute cardiovascular diseases are used as the positive group, and the basic information data collected from patients without cardiovascular diseases are used as the negative group. The first set ratio between the positive group and the negative group is not less than 1:4.
[0016] As a further optimization, the selected multiple variables are general sociodemographic characteristics, past medical history and family history, and biochemical test indicators;
[0017] The general sociodemographic characteristics, including sex and age;
[0018] The past medical and family history, including history of hypertension and diabetes;
[0019] The biochemical detection indicators include systolic blood pressure, diastolic blood pressure, homocysteine, triglycerides, cholesterol, low-density lipoprotein, white blood cell count and lymphocyte percentage.
[0020] As a further optimization, the preprocessing operation on the collected data includes:
[0021] After the collected data is integrated and the file format is unified, it is summarized and processed uniformly;
[0022] Delete the collected data that contains personal privacy and logical errors;
[0023] If there is data in the collected data that uses non-standard numerical values in the inspection results, it is converted into standard data.
[0024] As a further optimization, the second setting ratio is 7:3.
[0025] As a further optimization, the data in the training set is trained based on the XGBoost algorithm, and a cardiovascular disease acute event prediction model is established, wherein:
[0026] Assume that the sample set is T = {(x1, y1), (x2, y2), ..., (x N ,y N )},x∈R N , y∈R, the initial objective function is:
[0027] In this prediction model, each tree is fitted with the residual of the previous prediction, so there are:
[0028]
[0029] The objective function is used to define the loss function and regularization term in the model training process. As a constant, the objective function is simplified to:
[0030]
[0031] Performing a second-order Taylor expansion on it yields:
[0032]
[0033] The simplified objective function is:
[0034]
[0035] Parameterize a single decision tree, use iw to represent the weight of the leaf node, and use Ij to represent the instance set of the jth leaf node, where I j ={i|q(x i )=j}, T represents the number of leaf nodes, and L2 regularization is used:
[0036]
[0037]
[0038] Then take the derivative of wj and set it equal to 0, and bring it into the objective function to get the optimal solution:
[0039]
[0040] As a further optimization, the XGBoost algorithm uses a greedy algorithm to find the best branch node. In the greedy algorithm, the optimal objective function value before and after the split is calculated at each step. The information gain calculation formula includes the features and labels of the training samples. The specific formula is as follows:
[0041]
[0042] As a further optimization, when the test set is used to evaluate the established cardiovascular disease acute event prediction model, the evaluation indicators include: area under the ROC curve, sensitivity, specificity and accuracy; among which:
[0043] Specificity = TN / (FP+TN);
[0044] Sensitivity = TP / (TP+FN);
[0045] Accuracy = (TP+TN) / (FP+TN+TP+FN);
[0046] Among them, TP refers to the actual number of positive samples that are correctly classified, that is, samples predicted to be positive are actually positive samples; FP refers to the number of negative samples that are incorrectly marked as positive samples, that is, samples that are actually negative but predicted to be positive samples; TN refers to the number of negative samples that are correctly classified, that is, samples predicted to be negative but are actually negative samples; FN refers to the number of positive samples that are incorrectly marked as negative samples, that is, samples that are actually positive but predicted to be negative samples;
[0047] The area under the ROC curve is above 0.95.
[0048] As a further optimization, the steps of drawing the ROC curve include:
[0049] The cardiovascular disease acute event prediction model established based on the training set was used to predict the outcomes of the training set and the test set respectively;
[0050] The results are divided into positive and negative according to different thresholds;
[0051] Calculate the true positive rate and false positive rate based on the set threshold and actual label;
[0052] The ROC curve was drawn according to the true positive rate and false positive rate calculated at different thresholds, and the area under the ROC curve was calculated.
[0053] The beneficial effects of the present invention are: through the above-mentioned cardiovascular acute event prediction method based on the Xgboost algorithm, firstly, the present invention adopts multiple variables as input, and these variables comprehensively consider factors such as the patient's personal information, health status and biochemical indicators, and can comprehensively evaluate the patient's cardiovascular acute event risk; secondly, the present invention collects data from a large number of outpatient records and inpatient records captured by the health information platform to construct a prediction model with high accuracy. Such data sources are wide, which can better reflect the actual patient situation and improve the accuracy and reliability of the prediction; finally, the present invention adopts multiple indicators to evaluate the performance of the model in the model evaluation process, and sets indicator requirements. Such requirements ensure that the prediction model has high accuracy and prediction ability, and can provide important decision-making basis for medical personnel, reducing the incidence and mortality of cardiovascular acute events. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 The present invention is a flowchart of a method for predicting acute cardiovascular events based on the Xgboost algorithm in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Example
[0057] This embodiment provides a method for predicting acute cardiovascular events based on the Xgboost algorithm. Figure 1 , wherein the method comprises the following steps:
[0058] S1. Collect basic information data of patients with acute cardiovascular diseases and basic information data of patients without cardiovascular diseases on the health information platform, and match the collected data according to the first set ratio;
[0059] S2. In the collected data, multiple variables are selected as inputs to the prediction model for acute cardiovascular events;
[0060] S3, performing a preprocessing operation on the collected data, and randomly dividing the preprocessed data into a training set and a test set according to a second set ratio;
[0061] S4. Train the data in the training set based on the XGBoost algorithm and establish a prediction model for acute events of cardiovascular disease;
[0062] S5. Use the test set to evaluate the established cardiovascular disease acute event prediction model;
[0063] S6. Obtain real-time input data and use the evaluated cardiovascular disease acute event prediction model to output the disease risk probability.
[0064] Specifically, in step S1, this embodiment captures the basic information data (personal disease record ID number, basic demographic information, past medical history and family history, biochemical detection index, illness time, disease name, ICD code) of new acute cardiovascular disease patients from 2016 to 2021 in the outpatient records and hospitalization records of Ningbo Health Information Platform. The basic information data (personal disease record ID number, basic demographic information, past medical history and family history, biochemical detection index, illness time, disease name, ICD code) of patients with cardiovascular disease who were not hospitalized in the outpatient records of the orthopedics department were captured from the Ningbo Health Information Platform. In order to achieve a more satisfactory research effect, according to the epidemiological matching far side, the ratio of the case group to the control group shall not be less than 1:4. Therefore, this embodiment performs 1:3 matching of the case group (acute cardiovascular disease group, also the positive group) and the control group (non-acute cardiovascular disease group, also the negative group) according to gender and age according to the propensity score matching method. Therefore, in this embodiment, the basic information data of the patients with acute cardiovascular disease and the basic information data of the patients without cardiovascular disease may include: personal disease record ID number, basic demographic information, past medical history and family history, biochemical test indicators, illness time, disease name and ICD code, etc.
[0065] With reference to existing literature and risk factors for acute cardiovascular events, the following variables were selected as inputs to the prediction model from the collected data: general sociodemographic characteristics, past medical and family history, and biochemical test indicators;
[0066] The general socio-demographic characteristics may include gender and age;
[0067] The past medical history and family history may include a history of hypertension and diabetes;
[0068] The biochemical detection indexes may include systolic blood pressure, diastolic blood pressure, homocysteine, triglycerides, cholesterol, low-density lipoprotein, white blood cell count and lymphocyte percentage.
[0069] After collecting data and selecting the input of the cardiovascular disease acute event prediction model, it is necessary to perform preprocessing operations on the collected data. In this embodiment, the preprocessing operations on the collected data may include:
[0070] After the collected data is integrated and the file format is unified, it is summarized and processed uniformly to facilitate subsequent processing;
[0071] Delete the data related to personal privacy and data with logical errors in the collected data. Since the original data may contain a lot of personal privacy, such as personal ID and ID number of personal information, only the personal ID is retained and the rest of the information is deleted, such as the result reference value and other information. If there are logical errors in the data, they will also be deleted. The use of the method of supplementing the missing data will not guarantee the authenticity of the data, and the real physical data of the person cannot be restored, which will affect the prediction effect, so the data in this case will be deleted;
[0072] For the data collected that contain non-standard test results, they are converted into standard data. For the original data that contain non-standard test results, for example, if 120 / 70 is used to represent blood pressure, it is processed into two variables: diastolic pressure and systolic pressure.
[0073] In order to maintain the relative balance of data, provide sufficient samples for training and have a data set to evaluate the performance of the model, the preprocessed data can be randomly divided into a training set and a test set in a ratio of 7:3, and then the preprocessed data can be trained using the XGBoost algorithm to establish a cardiovascular disease acute event prediction model. Therefore, the second set ratio in this embodiment can be 7:3.
[0074] In this embodiment, XGBoost takes the sum of the predicted values of the samples in the k trees as the final predicted value of the sample. It can fit the residual of the last prediction by continuously adding new trees. In the k trees obtained in the end, the corresponding leaf nodes and the corresponding scores are found according to the sample characteristics. Finally, the sum of all corresponding scores is the final predicted value of the sample. In the XGBoost algorithm of this embodiment, not all parameters are a specific value, so it is impossible to optimize the parameters using traditional parameter optimization methods. When solving the objective function, the main purpose is to convert it into a simpler algorithm related to the structure of the tree, so as to establish the structure of the tree and the model effect. The XGBoost algorithm of this embodiment uses an overlay training method to train the model, and its initial objective function is a combination of model complexity and traditional loss function. Assume that the sample set is T = {(x1, y1), (x2, y2), ..., (x N ,y N )},x∈R N , y∈R, the initial objective function is:
[0075]
[0076] Since each tree is fitted to the residual of the previous prediction, we have:
[0077]
[0078] The objective function is used to define the loss function and regularization term in the model training process. It can be regarded as a constant. By simplifying, the objective function is:
[0079]
[0080] Performing a second-order Taylor expansion on it yields:
[0081]
[0082] The simplified objective function is:
[0083]
[0084] In order to improve the model effect, the single decision tree is parameterized and i w Indicates the weight of the leaf node, with I j represents the instance set of the jth leaf node, where I j ={i|q(x i )=j}, T represents the number of leaf nodes, and L2 regularization is used:
[0085]
[0086]
[0087] Then take the derivative of wj and set it equal to 0, and bring it into the objective function to get the optimal solution:
[0088]
[0089] In this embodiment, the XGBoost algorithm used in the search for the best branch node uses a greedy algorithm. To obtain the overall optimal tree structure, as long as all leaves are optimal, the best branch point can be found quickly without enumerating all possible tree structures. Therefore, the optimal objective function value before and after the split must be calculated at each step. The larger the difference, the better the model effect after segmentation. The information gain calculation formula brings in the features and labels of the training samples. The larger the information gain value, the more important the corresponding features play in the judgment and classification of the model. The specific formula is as follows:
[0090]
[0091] The Xgboost algorithm model in this embodiment is an additive model. The base model generally selects a tree model, but other types of models such as logistic regression can also be selected. Xgboost belongs to the category of gradient boosting tree (GBDT) model. The basic idea of GBDT is to let the new base model fit the deviation of the previous model, thereby continuously reducing the deviation of the additive model. It has the characteristics of fast running speed and good classification effect. The XGBoost in this embodiment has the following innovative technologies and advantages over the traditional gradient boosting algorithm: First, it introduces a regularization term to control the complexity of the model and prevent overfitting, which includes L1 and L2 regularization, so that the model can be better generalized to unseen data. Secondly, the XGBoost algorithm in this embodiment adopts a column sampling technique, that is, a part of the features is randomly selected for training in each iteration, which helps to reduce the dimension of the feature space, improve the generalization ability of the model, and reduce the risk of overfitting; then, the XGBoost algorithm in this embodiment also supports custom loss functions, allowing users to define their own loss functions according to the needs of specific problems, which enables the XGBoost algorithm in this embodiment to adapt to various tasks and data characteristics and have better flexibility; in addition, the XGBoost algorithm in this embodiment also supports early stopping technology, by monitoring the performance of the validation set, stopping the iteration when the model performance is no longer improved, to avoid overfitting; in addition, the XGBoost algorithm in this embodiment also has the ability of parallel computing, and uses technologies such as multi-threading and approximate algorithms to accelerate the speed of model training; finally, the XGBoost algorithm in this embodiment can automatically handle missing values without additional filling or processing, making model training more convenient.
[0092] In general, when the XGBoost algorithm in this embodiment is actually applied, the model is constructed using the xgboost package of the R language, eval_metric is set to logloss, num_rounds is set to 100, eta is set to 0.3, max_depth is set to 6, min_child_weight is set to 1, gamma is set to 0, colsample_bytree is set to 1, lambda is set to 1, alpha is set to 0, and nthread is set to 2. Finally, the output of the model is the disease risk probability.
[0093] It should be noted that in this embodiment, a training set can be used for model training, and a test set can be used for model evaluation. Evaluation indicators include the area under the ROC curve (AUC), sensitivity, specificity, and accuracy. In this embodiment, the model evaluation process is also aimed at a binary classification problem. In the binary classification problem, the classifier marks the classification of an instance as yes or no, which can be represented by a confusion matrix. The confusion matrix has four categories, as shown in the following table:
[0094] Actualpositive Actualnegative Predictedpositive TP FP Predictednegative FN TN
[0095] The columns correspond to the categories to which the instances actually belong, and the rows represent the categories predicted by the classification.
[0096] Specifically, in this embodiment:
[0097] TP (True Positive): refers to the actual number of positive samples that are correctly classified, that is, samples that are predicted to be positive are actually positive samples.
[0098] FP (False Positive): refers to the number of negative samples that are mistakenly marked as positive samples, that is, actually negative samples are predicted as positive samples.
[0099] TN (True Negative): refers to the number of correctly classified negative samples, that is, samples predicted to be negative are actually negative samples.
[0100] FN (False Negative): refers to the number of positive samples that are mistakenly marked as negative samples, that is, actually positive samples are predicted as negative samples.
[0101] Specificity = TN / (FP+TN);
[0102] Sensitivity = TP / (TP+FN);
[0103] Accuracy = (TP+TN) / (FP+TN+TP+FN).
[0104] In this embodiment, the evaluation indicators mainly include indicators such as AUC (area under the curve), and the AUC is required to be above 0.95 to ensure that the model has high accuracy and predictive ability.
[0105] It should be noted that the model evaluation results of this embodiment are as follows:
[0106] Dataset AUC P-value Accuracy Sensitivity Specificity Training set 0.999 <0.001 0.983 0.966 0.990 Test Set 0.987 <0.001 0.987 0.973 0.990
[0107] Finally, based on the model constructed above, a cardiovascular acute event prediction platform can be built. By inputting parameters, the risk probability can be automatically displayed and can be used by residents and medical personnel.
[0108] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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 method for predicting acute cardiovascular events based on the Xgboost algorithm, characterized in that: The steps include: Collect basic information data of patients with acute cardiovascular diseases and basic information data of patients without cardiovascular diseases on the health information platform, and match the collected data according to a first set ratio; Among the collected data, several variables were selected as inputs to the prediction model for acute cardiovascular events; Performing a preprocessing operation on the collected data, and randomly dividing the preprocessed data into a training set and a test set according to a second set ratio; The data in the training set were trained based on the XGBoost algorithm, and a prediction model for acute cardiovascular disease events was established; The test set was used to evaluate the established cardiovascular disease acute event prediction model; Obtain real-time input data and use the evaluated cardiovascular disease acute event prediction model to output the disease risk probability.
2. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: The basic information data of the patients with acute cardiovascular diseases and the basic information data of the patients without cardiovascular diseases include: personal disease record ID number, basic demographic information, past medical history and family history, biochemical test indicators, duration of illness, disease name and ICD code.
3. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 2, characterized in that: The collected basic information data of patients with acute cardiovascular diseases are used as the positive group, and the collected basic information data of patients without cardiovascular diseases are used as the negative group. The first set ratio between the positive group and the negative group is not less than 1:
4.
4. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: The selected multiple variables are general socio-demographic characteristics, past medical history and family history, and biochemical test indicators; The general sociodemographic characteristics, including sex and age; The past medical and family history, including history of hypertension and diabetes; The biochemical detection indicators include systolic blood pressure, diastolic blood pressure, homocysteine, triglycerides, cholesterol, low-density lipoprotein, white blood cell count and lymphocyte percentage.
5. The method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: The preprocessing operation on the collected data includes: After the collected data is integrated and the file format is unified, it is summarized and processed uniformly; Delete the collected data that contains personal privacy and logical errors; If there is data in the collected data that uses non-standard numerical values in the inspection results, it is converted into standard data.
6. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: The second setting ratio is 7:
3.
7. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: The data in the training set are trained based on the XGBoost algorithm, and a cardiovascular disease acute event prediction model is established, wherein: Assume that the sample set is T = {(x1,y1),(x2,y2),…,(x N ,y N )},x∈R N ,y∈R, the initial objective function is: Ob j is the objective function, is the loss function used to calculate the true value y of the i-th sample i and predicted values The loss between them. n represents the number of iterations. Represents the predicted value after the nth iteration. Ω(f m ) represents the complexity of the mth tree model, which is a regularization term used to control the complexity of the model and avoid overfitting. m is the mth decision tree. N is the total number of samples, and M is the total number of decision trees in the final model. In this prediction model, each tree is fitted with the residual of the previous prediction, so there are: The objective function is used to define the loss function and regularization term in the model training process. As a constant, the objective function is simplified to: Performing a second-order Taylor expansion on it yields It is the first-order derivative of the loss function with respect to the model's predicted value, and is used to quantify the rate of change of the loss function when the predicted value changes. It is the second-order derivative of the loss function with respect to the predicted value, which is used to quantify the acceleration of the change of the loss function when the predicted value changes. It's about i and A function or indicator value used to adjust the influence of the second-order derivative. C is a constant term that usually appears in the second-order Taylor expansion. Here it can be regarded as a constant that can be ignored during optimization (because the goal of optimization is to minimize the change of the objective function, not the absolute value). The simplified objective function is: g i It is the first-order derivative of the loss function L with respect to the predicted value of the n-1th iteration, that is, the gradient of the predicted value, which reflects the direction and degree of change of the model predicted value. m (x i ) is the mth tree for sample x i The predicted value of h i It is the second-order derivative of the loss function L with respect to the predicted value of the n-1th iteration, that is, the curvature about the predicted value, which reflects the acceleration of the change of the model's predicted value and helps to adjust the optimization step size. Parameterize a single decision tree, use iw to represent the weight of the leaf node, and use Ij to represent the instance set of the j-th leaf node, where I j ={i|q(x i )=j}, T represents the number of leaf nodes, and L2 regularization is used: Ω(f n ) represents the regularization term of the nth tree. γ is the regularization parameter used to control the number of trees (i.e. the number of leaf nodes). For each additional leaf node, the loss function increases by γ. T represents the total number of leaf nodes. λ represents the L2 regularization parameter, which is used to control the sum of squares of leaf node weights to avoid overfitting. w j Represents the weight of the jth leaf node. j G represents the sample set belonging to the jth leaf node. j H represents the sum of all sample gradients on the jth leaf node. j represents the sum of the curvatures of all samples on the jth leaf node. Then to w j Take the derivative and set it equal to 0, and substitute it into the objective function to obtain the optimal solution:
8. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 7, characterized in that: The XGBoost algorithm uses a greedy algorithm to find the best branch node. In the greedy algorithm, the optimal objective function value before and after the segmentation is calculated at each step. The information gain calculation formula includes the features and labels of the training samples. The specific formula is as follows: Gain represents information gain, which indicates the improvement in the objective function value brought about by splitting the node. XGBoost will give priority to splitting methods with large information gain when selecting split features and split points. represents the sum of all sample gradients in the left subtree, represents the sum of the second-order derivatives of all samples in the left subtree, represents the sum of all sample gradients in the right subtree, Represents the sum of the second-order derivatives of all samples in the right subtree. ∑ i∈I g i Represents the sum of all sample gradients in the parent node before the node is split. ∑ i∈I h i Represents the sum of the second-order derivatives of all samples in the parent node before the split node.
9. The method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 1, characterized in that: When the test set is used to evaluate the established cardiovascular disease acute event prediction model, the evaluation indicators include: area under the ROC curve, sensitivity, specificity and accuracy; wherein: Specificity = TN / (FP+TN); Sensitivity = TP / (TP+FN); Accuracy = (TP+TN) / (FP+TN+TP+FN); Among them, TP refers to the actual number of positive samples that are correctly classified, that is, samples predicted to be positive are actually positive samples; FP refers to the number of negative samples that are incorrectly marked as positive samples, that is, samples that are actually negative but predicted to be positive samples; TN refers to the number of negative samples that are correctly classified, that is, samples predicted to be negative but are actually negative samples; FN refers to the number of positive samples that are incorrectly marked as negative samples, that is, samples that are actually positive but predicted to be negative samples; The area under the ROC curve is above 0.
95.
10. A method for predicting acute cardiovascular events based on the Xgboost algorithm according to claim 9, characterized in that: The steps of drawing the ROC curve include: The cardiovascular disease acute event prediction model established based on the training set was used to predict the outcomes of the training set and the test set respectively; The results are divided into positive and negative according to different thresholds; Calculate the true positive rate and false positive rate based on the set threshold and actual label; The ROC curve was drawn according to the true positive rate and false positive rate calculated at different thresholds, and the area under the ROC curve was calculated.
Citation Information
Patent Citations
XGBoost disease probability predicting method, system and storage medium
CN110111888A
Prediction method, system and equipment for sepsis respiratory failure probability and medium
CN117116483A
Construction method and system of XGBoost machine learning model for judging autoimmune encephalitis prognosis
CN118039173A
Method of predicting cardiovascular disease risk using cardiovascular disease risk factors
KR1020160086730A
Method for establishing deep learning-based model for predicting functions after post-cerebral stroke early rehabilitation
WO2023241012A1
Cited By
Ionized layer irregular body identification method and system based on machine learning
CN119596351A
Ionospheric irregularity identification method and system based on machine learning
CN119596351B
