Method and system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer
By obtaining and screening the historical physiological characteristics and treatment outcomes of patients with gastric cancer or esophageal cancer, a risk prediction model is established, which solves the problem of low assessment accuracy in the existing technology and achieves highly accurate assessment of the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer. prediction, reducing prevention errors.
Patent Information
- Application Number
- CN202410931031.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In the current technology, the accuracy of risk assessment of venous thromboembolism in patients with gastric cancer or esophageal cancer is low, leading to insufficient or over-prevention and increasing the risk of poor prognosis.
By obtaining physiological characteristics and treatment outcomes from historical medical records, we conduct feature screening and model training to establish a risk prediction model to specifically predict the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer and improve the prediction accuracy.
It achieves targeted prediction of the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer, improves the prediction accuracy, reduces the difficulty of designing the prediction model and the patient's medical burden, and reduces the probability of reduced prediction accuracy due to drug interactions.
Smart Images

Figure CN118471520B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of clinical medical risk assessment, and specifically to a method and system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer. Background Art
[0002] Gastric cancer and esophageal cancer are very common types of upper gastrointestinal malignancies, with high morbidity, high mortality and poor prognosis. Among them, venous thromboembolism (VTE) is one of the important factors affecting the prognosis of gastric cancer and esophageal cancer patients. Although there are preventive and therapeutic measures for VTE at this stage, VTE is still the second leading cause of death after tumor progression due to its hidden symptoms, high rates of missed diagnosis and misdiagnosis. Therefore, effective identification of high-risk VTE patients is crucial to taking preventive measures and improving the quality of life of patients.
[0003] Currently, the existing technology has predicted the risk of VTE events in patients with malignant tumors based on universal evaluation indicators, such as the Khorana score, Caprini score, and Padua score. Although the association of thrombosis in cancer patients has been established, the risk of thromboembolic events will be affected by the site of the tumor, that is, the risk of VTE events in patients with different tumor sites will vary. Therefore, predicting the risk of VTE events in patients with gastric cancer or esophageal cancer based on existing universal evaluation indicators is prone to reduced accuracy of the evaluation results, which in turn leads to an increased probability of insufficient or excessive prevention, and increases the risk of poor prognosis in patients. Summary of the invention
[0004] In response to the technical problem of low accuracy in VTE risk assessment for patients with gastric cancer or esophageal cancer in the prior art, the present invention provides a method and system for predicting venous thromboembolism risk in patients with gastric cancer or esophageal cancer, which can achieve targeted prediction of VTE risk in patients with gastric cancer or esophageal cancer and improve prediction accuracy.
[0005] According to a first aspect of the present invention, the present invention claims a method for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer, comprising:
[0006] Obtaining the values of all first physiological characteristics and treatment outcomes of historical patients in the historical medical records to obtain first historical information; wherein the first physiological characteristics include basic characteristics and diagnostic characteristics, the diagnostic characteristics include the examination indicators and treatment plans of the patients at the time of admission, and the treatment outcomes are used to indicate whether the patients have experienced venous thromboembolism events or have not experienced venous thromboembolism events within a preset time period;
[0007] Performing feature screening on the first physiological feature to obtain a target physiological feature;
[0008] Filtering the value of the target physiological characteristic and the treatment outcome of each historical patient from the first historical information to obtain second historical information;
[0009] Training a risk prediction model according to the second historical information to obtain a first target prediction model;
[0010] Acquiring physiological information of a target patient, and obtaining target physiological information according to the target physiological characteristics;
[0011] The target physiological information is input into the first target prediction model to obtain the target treatment outcome of the target patient.
[0012] In the present application, the feature screening of the first physiological feature also includes:
[0013] Splitting the processing flow of the first historical information into processing sub-stages, wherein the processing sub-stages include a feature screening sub-stage;
[0014] Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2;
[0015] Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow;
[0016] Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics;
[0017] The step of training the risk prediction model according to the second historical information further includes:
[0018] Establishing a risk prediction model according to the target physiological characteristics corresponding to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model;
[0019] The performance indicators of all the first candidate prediction models are evaluated, and the first target prediction model is obtained according to the first candidate prediction model that best corresponds to the performance indicator.
[0020] In the present application, the step of obtaining the first target prediction model according to the first candidate prediction model that best corresponds to the performance indicator further includes:
[0021] Taking the first candidate prediction model with the best performance indicator as the second target prediction model;
[0022] Determine whether the number of input features of the second target prediction model is greater than a first preset threshold. If the number of input features of the second target prediction model is greater than the first preset threshold, sort the input features of the second target prediction model in descending order according to the importance of the physiological features, and take the physiological feature whose rank among all the input features of the second target prediction model is not greater than the first preset threshold as the target physiological feature;
[0023] Filtering the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information;
[0024] Establishing a risk prediction model according to the third historical information and the preset model, and training each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model;
[0025] The performance indicators of all the second candidate prediction models are evaluated, and the second candidate prediction model with the best performance indicator is selected as the first target prediction model.
[0026] In the present application, the importance includes outcome relevance and prediction contribution, and the step of arranging the input features of the second target prediction model in descending order according to the importance of physiological features also includes:
[0027] Respectively obtaining the correlation between each input feature of the second target prediction model and the treatment outcome to obtain the outcome correlation; wherein the correlation between the input feature and the treatment outcome is obtained according to the preset execution mode corresponding to the second target prediction model in the feature screening sub-stage;
[0028] Calculating respectively the contribution of each input feature of the second target prediction model to the completion of the prediction operation by the second target prediction model to obtain the prediction contribution degree;
[0029] The importance of the corresponding input feature is calculated based on the outcome relevance and the prediction contribution.
[0030] In the present application, the method for constructing the second candidate prediction model also includes:
[0031] Obtaining the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information;
[0032] The input feature of the second candidate prediction model is obtained according to the third physiological feature and the physiological feature corresponding to the third historical information; and the risk prediction model is trained according to the fourth historical information and the third historical information to obtain the second candidate prediction model.
[0033] In the present application, the third physiological characteristic includes liquid intake information. In the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records, the liquid intake information of the corresponding historical patient is also calculated based on the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection.
[0034] In the present application, the liquid intake information of the corresponding historical patient calculated according to the historical active liquid intake and passive liquid intake of the patient also includes:
[0035] Calculate the actual fluid intake of the corresponding historical patient according to the active fluid intake and the passive fluid intake of the historical patient;
[0036] Obtain reference fluid intake;
[0037] The ratio of the actual fluid intake to the reference fluid intake is calculated to obtain the fluid intake information of the corresponding historical patient.
[0038] In the present application, the step of obtaining the reference liquid intake also includes:
[0039] According to the first historical information of the historical patient, a database is queried to obtain a reference patient, wherein the reference patient is the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than a second preset threshold among all the historical patients who did not have a venous thromboembolism event within the preset time period;
[0040] The reference fluid intake corresponding to the historical patient is obtained according to the average of the actual fluid intakes of all the reference patients.
[0041] In the present application, the step of querying a database according to the first historical information of historical patients to obtain a reference patient also includes:
[0042] Calculate the similarity between the basic feature values of each historical patient and the basic feature values of other historical patients to obtain the basic similarity;
[0043] Calculate the similarity between the values of the examination indicators of each historical patient and the values of the examination indicators of other historical patients to obtain the indicator similarity;
[0044] Calculate the similarity between the treatment plan of each historical patient and the treatment plans of other historical patients respectively to obtain the similarity of the treatment plans;
[0045] The basic similarity, the indicator similarity and the treatment plan similarity are linearly weighted according to the weights to obtain the similarity between each historical patient and other historical patients;
[0046] Among them, the weight of the basic similarity and the weight of the treatment plan similarity are greater than the weight of the indicator similarity.
[0047] According to a second aspect of the present invention, the present invention claims protection for a system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer, comprising:
[0048] A first acquisition module, the first acquisition module is used to obtain the values of all first physiological characteristics and treatment outcomes of historical patients in the historical medical records to obtain first historical information; wherein the first physiological characteristics include basic characteristics and diagnostic characteristics, the diagnostic characteristics include the examination indicators and treatment plans of the patients at the time of admission, and the treatment outcomes are used to indicate whether the patients have experienced venous thromboembolism events or have not experienced venous thromboembolism events within a preset time period;
[0049] a first screening module, the first screening module being used to perform feature screening on the first physiological feature to obtain a target physiological feature; and screening out the value of the target physiological feature and the treatment outcome of each historical patient from the first historical information to obtain second historical information;
[0050] A first training module, the first training module is used to train a risk prediction model according to the second historical information to obtain a first target prediction model;
[0051] A second acquisition module, the second acquisition module is used to acquire physiological information of a target patient, and obtain target physiological information according to the target physiological characteristics;
[0052] A first processing module, wherein the first processing module is used to input the target physiological information into the first target prediction model to obtain a target treatment outcome for the target patient.
[0053] In the present application, the first screening module also includes:
[0054] Splitting the processing flow of the first historical information into processing sub-stages, wherein the processing sub-stages include a feature screening sub-stage;
[0055] Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2;
[0056] Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow;
[0057] Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics;
[0058] The first training module also includes:
[0059] Establishing a risk prediction model according to the target physiological characteristics corresponding to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model;
[0060] The performance indicators of all the first candidate prediction models are evaluated, and the first target prediction model is obtained according to the first candidate prediction model that best corresponds to the performance indicator.
[0061] In this application, the first training module also includes:
[0062] Taking the first candidate prediction model with the best performance indicator as the second target prediction model;
[0063] Determine whether the number of input features of the second target prediction model is greater than a first preset threshold. If the number of input features of the second target prediction model is greater than the first preset threshold, sort the input features of the second target prediction model in descending order according to the importance of the physiological features, and take the physiological feature whose rank among all the input features of the second target prediction model is not greater than the first preset threshold as the target physiological feature;
[0064] Filtering the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information;
[0065] Establishing a risk prediction model according to the third historical information and the preset model, and training each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model;
[0066] The performance indicators of all the second candidate prediction models are evaluated, and the second candidate prediction model with the best performance indicator is selected as the first target prediction model.
[0067] In the present application, the importance includes outcome relevance and prediction contribution, and the first training module also includes:
[0068] Respectively obtaining the correlation between each input feature of the second target prediction model and the treatment outcome to obtain the outcome correlation; wherein the correlation between the input feature and the treatment outcome is obtained according to the preset execution mode corresponding to the second target prediction model in the feature screening sub-stage;
[0069] Calculating respectively the contribution of each input feature of the second target prediction model to the completion of the prediction operation by the second target prediction model to obtain the prediction contribution degree;
[0070] The importance of the corresponding input feature is calculated based on the outcome relevance and the prediction contribution.
[0071] In the present application, the method for constructing the second candidate prediction model also includes:
[0072] Obtaining the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information;
[0073] The input feature of the second candidate prediction model is obtained according to the third physiological feature and the physiological feature corresponding to the third historical information; and the risk prediction model is trained according to the fourth historical information and the third historical information to obtain the second candidate prediction model.
[0074] In the present application, the third physiological characteristic includes liquid intake information, and the first training module also includes calculating the liquid intake information of the corresponding historical patient based on the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection.
[0075] In this application, the first training module also includes:
[0076] Calculate the actual fluid intake of the corresponding historical patient according to the active fluid intake and the passive fluid intake of the historical patient;
[0077] Obtain reference fluid intake;
[0078] The ratio of the actual fluid intake to the reference fluid intake is calculated to obtain the fluid intake information of the corresponding historical patient.
[0079] In this application, the first training module also includes:
[0080] According to the first historical information of the historical patient, a database is queried to obtain a reference patient, wherein the reference patient is the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than a second preset threshold among all the historical patients who did not have a venous thromboembolism event within the preset time period;
[0081] The reference fluid intake corresponding to the historical patient is obtained according to the average of the actual fluid intakes of all the reference patients.
[0082] In this application, the first training module also includes:
[0083] Calculate the similarity between the basic feature values of each historical patient and the basic feature values of other historical patients to obtain the basic similarity;
[0084] Calculate the similarity between the values of the examination indicators of each historical patient and the values of the examination indicators of other historical patients to obtain the indicator similarity;
[0085] Calculate the similarity between the treatment plan of each historical patient and the treatment plans of other historical patients respectively to obtain the similarity of the treatment plans;
[0086] The basic similarity, the indicator similarity and the treatment plan similarity are linearly weighted according to the weights to obtain the similarity between each historical patient and other historical patients;
[0087] Among them, the weight of the basic similarity and the weight of the treatment plan similarity are greater than the weight of the indicator similarity.
[0088] This application has the following beneficial effects:
[0089] 1. A first target prediction model is trained based on the physiological data of all gastric cancer patients or esophageal cancer patients in the historical medical records. The first target prediction model classifies historical patients into two categories according to their physiological characteristics, namely, venous thromboembolism events will occur or will not occur within a preset time period, thereby achieving targeted prediction of the risk of VTE in gastric cancer patients or esophageal cancer patients.
[0090] 2. Different feature screening methods are used to screen the first physiological feature of the first historical information, and the feature screening results obtained are not all the same. The data features of the first historical information are fully mined through a variety of different feature screening methods to obtain corresponding feature screening results, and the corresponding first candidate prediction model is established based on different feature screening results. The best risk prediction model and the best feature screening method are screened out through the evaluation results of the performance indicators of each first candidate prediction model to improve the prediction accuracy of venous thromboembolism events in patients with gastric cancer or esophageal cancer. At the same time, different data processing methods and different preset models have different focuses on data features. Therefore, each processing sub-stage and the preset model are combined with each other, and the first target prediction model is obtained according to the performance indicators of the first candidate prediction model, which improves the prediction accuracy while reducing the difficulty of designing the prediction model.
[0091] 3. The screening results of the first candidate prediction model with the best performance index in the feature screening sub-stage are used as the screening basis for the secondary screening. The physiological characteristics that have a great impact on the patient's treatment outcome are obtained from the input physiological characteristics of the second target prediction model according to the importance of the physiological characteristics, and are used as the input features of the risk prediction model. This reduces the number of risk prediction features, reduces the difficulty of model training, reduces the input features of the risk prediction model, reduces the medical burden on patients, and improves the actual application scenarios.
[0092] 4. Due to the interaction between physiological characteristics, such as drug interactions, the risk of VTE events in patients will change. Therefore, screening the patient's physiological characteristics according to the predicted contribution value can reduce the probability of reduced prediction accuracy due to drug interactions.
[0093] 5. The patient's fluid intake will affect the patient's blood viscosity and blood flow rate, which in turn affects the occurrence of venous thrombosis in the patient. Drinking water and eating are the main ways for patients to take in water, but for patients with gastric cancer or esophageal cancer, the course of the disease and the choice of treatment methods will affect the patient's active intake of water, such as patients having difficulty eating and patients needing to fast after surgical treatment. Therefore, the active fluid intake and passive fluid intake are used together as the preset third physiological characteristics to predict the patient's treatment outcome, and to assist in the formulation of treatment plans while monitoring the patient's fluid intake.
[0094] 6. The amount of fluid intake required by patients with different physiological characteristics varies. The reference fluid intake is used as the standard, and the patient's fluid intake information is obtained based on the ratio of the patient's actual fluid intake to the reference fluid intake. Due to factors such as the condition, physiological characteristics, and treatment regimen, different patients require different amounts of fluid intake. When the patient's actual fluid intake is too little, the probability of venous thrombosis increases. Reference patients are selected as reference standards based on the similarity of physiological characteristics, and the actual fluid intake of the reference patients is used as the patient's fluid intake standard, to achieve personalized matching of fluid intake standards for patients with different conditions, different physiological characteristics, and different treatment regimens. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0096] Figure 1 This is a flow chart of a method for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer according to an embodiment of the present application;
[0097] Figure 2A schematic diagram of a method for obtaining a first target prediction model according to an embodiment of the present application;
[0098] Figure 3 This is a schematic diagram of the structure of a system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer according to an embodiment of the present application;
[0099] Figure 4 This is a schematic diagram of the structure of an electronic device involved in an embodiment of the present application. DETAILED DESCRIPTION
[0100] The present invention provides a method and system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer. In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the technical scheme in the embodiment of the present application will be clearly and completely described in combination with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, not all embodiments. The components of the embodiment of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, with reference to the terms "one embodiment", "some embodiments", "implementation", "embodiment", "illustrative embodiment", "example", "specific example" or "some examples", the following detailed description of the embodiment of the present application provided in the drawings is not intended to limit the scope of the present application to be protected, but only indicates that the specific features, structures or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0101] It should be noted that similar reference numerals and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in the subsequent figures. At the same time, in the description of this application, the terms "first", "second" and other relational terms are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0102] According to a first aspect of the present invention, the present invention claims a method for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer, referring to the attached Figure 1 As shown, including:
[0103] S1: Obtain the values of all first physiological characteristics and treatment outcomes of historical patients in historical medical records to obtain first historical information.
[0104] It should be noted that the historical patients are patients diagnosed with gastric cancer or esophageal cancer. The first physiological characteristics include basic characteristics and diagnostic characteristics. The basic characteristics include the patient's age, gender, nationality, drinking history, smoking history, blood transfusion history, personal medical history and family medical history, but are not limited to this. The diagnostic characteristics include the patient's admission time, all examination indicators at admission, tumor TNM stage, tumor histological classification, maximum diameter, whether the tumor is infiltrated, whether neoadjuvant chemotherapy is performed, whether surgery is performed, type of surgery, duration of surgery, whether an intravenous catheter device is used, whether radiotherapy is performed, drug use records, whether VTE occurs, VTE occurrence time and VTE distribution location, but are not limited to this. Examination indicators include BMI, white blood cells, neutrophils, monocytes, red blood cells, platelets, hemoglobin, hematocrit, albumin, creatinine, international normalized ratio of prothrombin, activated partial thromboplastin time, activated partial thromboplastin ratio, prothrombin time, thrombin time, fibrinogen, fibrin (ogen) degradation products, D-dimer, whole blood high-sensitivity C-reactive protein, high-sensitivity troponin I, carcinoembryonic antigen, carbohydrate antigen 19-9, carbohydrate antigen 125, carbohydrate antigen 72-4, carbohydrate antigen 242, high-density lipoprotein and Barthel score, of course, it is not limited to these.
[0105] It should be noted that step S1 also includes: step S11, obtaining the physiological information of all historical patients diagnosed with gastric cancer or esophageal cancer from historical diagnosis records to obtain original historical information; step S12, preprocessing the original historical information; step S13, extracting the physiological characteristics of each historical patient in the original historical information after preprocessing, and taking the union to obtain the first physiological characteristics.
[0106] It should be noted that the preprocessing in step S12 includes standardization, data encoding, normalization and data pre-screening, but it is not limited to this. Standardization is used to normalize the expression of the original historical information, including drug type standardization, disease name standardization, calculating the patient's BIM value based on the height and weight of the historical patient, and obtaining the patient's treatment outcome based on the patient's admission time and the time of occurrence of the venous thromboembolism event, but it is not limited to this. The treatment outcome is used to indicate whether the patient has a venous thromboembolism event or not within a preset time period. In this embodiment, the preset time period is 6 months after the patient is admitted to the hospital. In step S12, whether a gastric cancer or esophageal cancer patient has a VTE within 6 months after admission can be obtained based on the patient's admission time, whether VTE occurs and the time of VTE. Data encoding is used to encode the original historical information to convert the original historical information into a data form that can be processed later. For example, for a binary qualitative variable, a binary encoding strategy is used to convert its corresponding eigenvalues into 0 or 1; for an ordered multi-class qualitative variable, a one-hot encoding method is used to convert its corresponding eigenvalues into mutually exclusive multidimensional features. Normalization is used to convert quantitative variables of different magnitudes into the same magnitude, such as using the Z-Score normalization method. Data pre-screening is used to remove features with a data missing ratio of more than 90%.
[0107] S2: Perform feature screening on the first physiological feature to obtain a target physiological feature. A LASSO regression model may be selected for screening, or other feature screening algorithms may be selected to complete feature screening.
[0108] S3: Filter out the value of the target physiological characteristic and the treatment outcome of each historical patient from the first historical information to obtain second historical information.
[0109] S4: training a risk prediction model based on the second historical information to obtain a first target prediction model. The first target prediction model is used to predict the patient's treatment outcome, that is, whether the patient will have a venous thromboembolic event within 6 months after admission, based on the patient's target physiological characteristic value.
[0110] In this embodiment, the training method of the first target prediction model includes:
[0111] The treatment outcome of each of the historical patients in the second historical information is used as the true treatment outcome. The second historical information is divided into a training data set and a test data set, the training data set is used to train the risk prediction model, and the test data set is used to calculate the performance index of the trained risk prediction model. A risk prediction model can be established based on a binary classification neural network model, and the difference between the predicted treatment outcome of the risk prediction model and the true treatment outcome is calculated based on the loss function. When the difference is minimized, the training of the risk prediction model is completed.
[0112] S5: Acquire physiological information of a target patient, and obtain target physiological information according to the target physiological characteristics.
[0113] In this embodiment, the target physiological information of the target patient is obtained by filtering the target patient's physiological information at the target physiological characteristic. The target patient includes a patient who has been diagnosed with gastric cancer or esophageal cancer but does not currently have venous thromboembolism. The target patient's physiological information includes the patient's examination indicators and the treatment plan to be used.
[0114] S6: Inputting the target physiological information into the first target prediction model to obtain the target treatment outcome of the target patient.
[0115] It should be noted that the first target prediction model is obtained by training the physiological data of all gastric cancer patients or esophageal cancer patients in the historical medical records. The first target prediction model classifies historical patients into two categories according to their physiological characteristics, that is, venous thromboembolism events will occur or will not occur within a preset time period, thereby achieving targeted prediction of VTE risks in gastric cancer patients or esophageal cancer patients.
[0116] In a possible implementation, refer to the attached Figure 2 As shown, the method for obtaining the first target prediction model includes:
[0117] S1: Obtain the values of all first physiological characteristics and treatment outcomes of historical patients in historical medical records to obtain first historical information.
[0118] S2: Screening the first physiological characteristic. Step S2 also includes the following sub-steps:
[0119] S21: Split the processing flow of the first historical information into processing sub-stages.
[0120] It should be noted that the processing of the first historical information is divided into one or more processing sub-stages. For example, the processing task may include an encoding sub-stage for encoding the first historical information, and other processing sub-stages, but it is not limited thereto.
[0121] In this embodiment, the processing sub-stage includes a filling sub-stage, a sampling sub-stage and a feature screening sub-stage, but it is not limited thereto. The filling sub-stage is used to fill the missing values in the first historical information. The sampling sub-stage is used to perform a sampling operation on the first historical information that has completed the filling sub-stage. The feature screening sub-stage is used to screen the first physiological feature.
[0122] S22: Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2. The preset execution modes are used to complete the processing tasks corresponding to the processing sub-stages.
[0123] In this embodiment, the preset execution mode of the filling sub-stage includes K-nearest neighbor filling, simple filling, random forest filling and iterative singular value decomposition, which may not be limited to this. The preset execution mode of the sampling sub-stage includes random oversampling, SMOTE method, boundary SMOTE method and SMOTE method for classification features, which may not be limited to this. The preset execution mode of the feature screening sub-stage includes LASSO regression method, Ridge regression method, elastic net regression model and Boruta algorithm, which may not be limited to this.
[0124] S23: Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow.
[0125] It should be noted that the set of candidate processing flows is denoted as R 1 , R = {R 1,1 , …, R 1,i , …, R 1,n}. Among them, R 1,i represents the i-th candidate process flow, and n represents the number of candidate process flows. The candidate process flows are represented by triples, that is, R 1,i =(P i , S i , F i ). Among them, P i represents the preset execution mode selected by the i-th candidate processing flow in the filling sub-stage, S i represents the preset execution mode selected by the i-th candidate processing flow in the sampling sub-stage, F i Indicates the preset execution mode selected by the i-th candidate processing flow in the feature screening sub-stage.
[0126] In this embodiment, P i The range of S is {K-nearest neighbor filling, simple filling, random forest filling and iterative singular value decomposition},i The range of the value of is {random oversampling, SMOTE method, boundary SMOTE method and SMOTE method for classification features}, F i The value range of is {LASSO regression method, Ridge regression method, elastic net regression model and Boruta algorithm}. For example, the triple (K-nearest neighbor algorithm filling, SMOTE method, LASSO regression method) indicates that the candidate processing flow uses the K-nearest neighbor algorithm to fill the first historical information in the filling sub-stage, and then uses the SMOTE method to sample in the sampling sub-stage. After the sampling operation is completed, the LASSO regression method is used to screen the preset physiological features in the feature screening sub-stage. After combining the preset execution methods of all the processing sub-stages, 64 different candidate processing flows are obtained.
[0127] S24: Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics.
[0128] In this embodiment, the first historical information is processed according to the 64 candidate processing flows to obtain the corresponding 64 target physiological characteristics.
[0129] S3: Filter out the value of the target physiological characteristic and the treatment outcome of each historical patient from the first historical information to obtain corresponding second historical information.
[0130] S4: training a risk prediction model based on the second historical information. Step S4 also includes the following sub-steps:
[0131] S41: establishing a risk prediction model according to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model.
[0132] In this embodiment, the preset models include support vector machine, logistic regression, KNN algorithm, random forest, extreme gradient boosting, adaptive boosting, light gradient boosting machine, category feature boosting machine and gradient boosting machine, but they are not limited thereto. A risk prediction model is constructed according to each of the preset models. The prediction model constructed by each of the preset models is trained according to each of the training data sets to obtain 576 of the first candidate prediction models.
[0133] It should be noted that the first candidate prediction model is used 2 Indicates that R 2 ={R 2,1 , …, R 2,j , …, R 2,m}. Among them, R 2,jrepresents the jth first candidate prediction model, and m represents the number of the first candidate prediction models. 2,j =(R 1,j , M j ), R 1,j represents the candidate processing flow corresponding to the jth candidate prediction model, M j represents the preset model corresponding to the jth first candidate prediction model. j The value range of is {support vector machine, logistic regression, KNN algorithm, random forest, extreme gradient boosting, adaptive boosting, light gradient boosting machine, categorical feature boosting machine and gradient boosting machine}.
[0134] It should be noted that step S41 also includes setting a hyperparameter candidate value list for each preset model, and the hyperparameter candidate value list includes all feasible hyperparameter value combinations. Each first candidate prediction sub-model is trained according to each hyperparameter value combination in the hyperparameter candidate value list. The performance indicators of all the first candidate prediction sub-models corresponding to the first candidate prediction model are evaluated. The first candidate prediction sub-model with the best performance indicator is taken to obtain the corresponding first candidate prediction model. The hyperparameter value combinations between different first candidate prediction sub-models corresponding to the same first candidate prediction model are different. The evaluation method is similar to step S42 and will not be described in detail here.
[0135] S42: Evaluate the performance indicators of all the first candidate prediction models, and obtain the first target prediction model according to the first candidate prediction model that best corresponds to the performance indicator.
[0136] It should be noted that, according to the prediction results and the true results, the samples are divided into true positive samples, true negative samples, false positive samples and false negative samples. Among them, the true positive samples include patient samples with venous thromboembolic events predicted to have venous thromboembolic events, the true negative samples include patient samples without venous thromboembolic events predicted to not have venous thromboembolic events, the false positive samples include patient samples with venous thromboembolic events predicted to not have venous thromboembolic events, and the false negative samples include patient samples without venous thromboembolic events predicted to have venous thromboembolic events. The value of the performance index is obtained according to the number of true positive samples, the number of true negative samples, the number of false positive samples and the number of false negative samples. The performance index includes accuracy, precision, recall rate, F1 value, ROC curve, AUC and PR curve, of course, it may not be limited to this. The first evaluation result is calculated according to the values of all the performance indicators of the first candidate prediction model. The first candidate prediction model with the best performance index is taken as the first target prediction model.
[0137] It should be noted that each of the first candidate prediction models is tested by a ten-fold cross validation method. The corresponding second historical data is divided into non-overlapping subsets of similar size. Nine data subsets are used for training the first candidate prediction model each time, and the remaining data subset is used for performance testing of the first candidate prediction model. This cycle is repeated 10 times, and the average score of each of the first candidate prediction models in all performance indicators is calculated through 10 iterative trainings.
[0138] In this embodiment, the input feature of the first target prediction model is used as the target physiological feature. The value of the target physiological feature is screened from the physiological information of the target patient to obtain the target physiological information. Whether the target patient will have a venous thromboembolism event within a preset time period is predicted based on the target physiological information.
[0139] It should be noted that different feature screening methods are used to screen the first physiological feature of the first historical information, and the feature screening results obtained are not all the same. The data features of the first historical information are fully mined by a variety of different feature screening methods to obtain corresponding feature screening results, and the corresponding first candidate prediction models are established according to different feature screening results. The best risk prediction model and the best feature screening method are screened out through the evaluation results of the performance indicators of each first candidate prediction model to improve the prediction accuracy of venous thromboembolism events in gastric cancer patients or esophageal cancer patients. At the same time, different data processing methods and different preset models have different focus points on data features, that is, different first candidate prediction models established and trained according to the feature screening results obtained by the same data processing method and different preset models may produce different prediction results when predicting the treatment outcome of the same target patient; similarly, different first candidate prediction models established and trained according to the feature screening results obtained by different data processing methods and the same preset model may also produce different prediction results when predicting the treatment outcome of the same target patient. Therefore, each processing sub-stage and the preset model are combined with each other, and the first target prediction model is obtained according to the performance indicators of the first candidate prediction model, which improves the prediction accuracy while reducing the difficulty of designing the prediction model.
[0140] In a feasible implementation, step S42 further includes:
[0141] S421: Take the first candidate prediction model that best corresponds to the performance indicator as the second target prediction model.
[0142] S422: Determine whether the number of input features of the second target prediction model is greater than the first preset threshold. If the number of input features of the second target prediction model is greater than the first preset threshold, the input features of the second target prediction model are arranged in descending order according to the importance of the physiological features, and the physiological features whose ranking among all the input features of the second target prediction model is not greater than the first preset threshold are taken as the target physiological features, and step S423 is continued; if the number of input features of the second target prediction model is not greater than the first preset threshold, the second target prediction model is taken as the first target prediction model.
[0143] It should be noted that the physiological feature with a higher degree of importance plays a greater role in predicting the patient's treatment outcome, and the candidate physiological feature with a lower degree of importance plays a smaller role in predicting the patient's treatment outcome. The importance of physiological features can be obtained by manual scoring based on expert experience, or by the preset execution method corresponding to the second target prediction model in the feature screening sub-stage, or by other feasible methods.
[0144] In this embodiment, the importance includes outcome relevance and prediction contribution, and step S422 further includes the following sub-steps:
[0145] S4221: Obtain the correlation degree between each input feature of the second target prediction model and the treatment outcome respectively to obtain the outcome correlation degree; wherein the correlation degree between the input feature and the treatment outcome is obtained according to the preset execution method corresponding to the second target prediction model in the feature screening sub-stage.
[0146] In this embodiment, if the optimal screening method is LASSO regression, the outcome relevance of each input feature can be obtained according to the logarithm logλ of the penalty coefficient when the corresponding input feature is compressed to 0. The larger the value of the logarithm logλ of the penalty coefficient when the input feature is compressed to 0, the greater the relevance of the input feature to the target outcome, and the larger the outcome relevance is adopted; the smaller the value of the logarithm logλ of the penalty coefficient when the input feature is compressed to 0, the smaller the relevance of the candidate physiological feature to the target outcome, and the smaller the outcome relevance is adopted. If the optimal screening method is Ridge regression, the outcome relevance of each input feature can be obtained according to the coefficient of the corresponding input feature in the Ridge regression model. The larger the coefficient of the input feature in the Ridge regression model, the greater the relevance of the corresponding input feature to the target outcome, and the larger the outcome relevance is adopted; the smaller the coefficient of the input feature in the Ridge regression model, the smaller the relevance of the corresponding input feature to the target outcome, and the smaller the outcome relevance is adopted. If the optimal screening method is the elastic net, the outcome relevance of each input feature can be obtained based on the penalty coefficient and the coefficient corresponding to the candidate physiological feature. Under the condition that the value of the penalty coefficient remains unchanged, the input feature with a larger distance between the coefficient and 0 adopts a larger outcome relevance, and the input feature with a smaller distance between the coefficient and 0 adopts a smaller outcome relevance. If the optimal screening method is the Boruta algorithm, the outcome relevance of each input feature is obtained based on the importance score of the corresponding input feature. The input feature with a higher importance score adopts a larger outcome relevance, and the input feature with a lower importance score adopts a smaller outcome relevance.
[0147] S4222: Calculate the contribution of each input feature of the second target prediction model to the second target prediction model completing the prediction operation, and obtain the prediction contribution degree.
[0148] It should be noted that the prediction contribution can be calculated based on the marginal contribution value of each input feature to the second target prediction model. The input feature with a larger absolute value of the marginal contribution value corresponds to the prediction contribution degree with a larger value. The calculation method of the marginal contribution value may include:
[0149] ;
[0150] Wherein, φ represents the marginal contribution value of input feature k in predicting the treatment outcome of sample x, f represents the predicted treatment outcome of the second target prediction model, represents all subsets of all input features except input feature k, Representation Subset The size of K represents the total number of input features. The second target prediction model is based on the subset The predicted treatment outcome is obtained by predicting the input features in The second target prediction model is based on the subset The predicted treatment outcome is predicted by the input features in and the input feature k together.
[0151] In this embodiment, the absolute value of the marginal contribution value of each input feature in all samples in the second target prediction model is calculated, and the predicted contribution value of the corresponding input feature is obtained according to the average value of the marginal contribution value of each input feature.
[0152] S4223: Calculate the importance of the corresponding input feature according to the outcome relevance and the predicted contribution. For example, after normalizing the outcome relevance and the contribution of each input feature, the importance of the corresponding input feature can be calculated according to the outcome relevance and the predicted contribution by setting a weight.
[0153] It should be noted that due to the interaction between physiological characteristics, for example, the interaction between drugs can change the risk of VTE events in patients. Therefore, screening the physiological characteristics of patients according to the predicted contribution value can reduce the probability of reduced prediction accuracy due to the interaction between drugs.
[0154] In this embodiment, the preset threshold is set to 12. When the number of input features of the second target prediction model is greater than 12, the top 12 physiological features in terms of importance among all input features of the second target prediction model are taken as the target physiological features.
[0155] S423: Filter the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information.
[0156] S424: Establish a risk prediction model according to the third historical information and the preset model, and train each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model. The training method of the second candidate prediction model is similar to the training method of the first candidate prediction model, and will not be described in detail here.
[0157] S425: Evaluate the performance indicators of all the second candidate prediction models, and select the second candidate prediction model with the best performance indicator as the first target prediction model. The performance indicator evaluation method of the second candidate prediction model is similar to the performance indicator evaluation method of the first candidate prediction model, and will not be described in detail here.
[0158] If it is necessary to explain, the screening results of the second target prediction model in the feature screening sub-stage are used as the screening basis for the secondary screening, and the physiological characteristics that have a great impact on the patient's treatment outcome among the input physiological characteristics of the second target prediction model are obtained according to the importance of the physiological characteristics, and are used as the input features of the risk prediction model. This achieves the goal of reducing the number of risk prediction features, reducing the difficulty of model training, reducing the input features of the risk prediction model, reducing the medical burden on patients, and improving the actual application scenarios.
[0159] In a feasible implementation manner, step S424 further includes the following sub-steps:
[0160] S4241: Obtain the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information.
[0161] It should be noted that the third physiological characteristic is a preset physiological characteristic, such as the patient's activity level, food intake, and whether hemostatic drugs are used, etc. The first physiological characteristic does not include the third physiological characteristic. In this embodiment, the third physiological characteristic includes liquid intake information.
[0162] S4242: Obtain input features of the second candidate prediction model according to the third physiological feature and the physiological feature corresponding to the third historical information; train a risk prediction model according to the fourth historical information and the third historical information to obtain the second candidate prediction model. The training method of the second candidate prediction model is similar to the training method of the first candidate prediction model, and will not be described in detail here.
[0163] In this embodiment, the input features of the second candidate prediction model include the first physiological feature after feature screening and the third physiological feature. The third physiological feature is used to specify the physiological feature known to be related to whether the patient has VTE. The first physiological feature is used to reduce the computational complexity of feature screening by screening out the physiological feature related to whether the patient has VTE from all physiological features of historical patients.
[0164] In a feasible embodiment, the third physiological characteristic includes liquid intake information, and step S4241 also includes calculating the liquid intake information of the corresponding historical patient based on the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection.
[0165] In this embodiment, the active fluid intake of the historical patient who experienced venous thromboembolism events can be obtained based on the patient's water intake before the venous thrombosis events occurred. The active fluid intake of the historical patient who did not experience venous thromboembolism events can be obtained based on the patient's water intake during the preset time period. The active fluid intake of the target patient is preset based on the target patient's historical water intake, condition and treatment plan. The passive fluid intake of the historical patient and the target patient can be obtained based on the treatment plan.
[0166] It should be noted that the patient's fluid intake will affect the patient's blood viscosity and blood flow rate, and thus affect the occurrence of venous thrombosis in the patient. Drinking water and eating are the main ways for patients to take in water, but for patients with gastric cancer or esophageal cancer, the course of the disease and the choice of treatment will affect the patient's active intake of water, such as the patient's difficulty eating and the need for the patient to fast after surgical treatment. Therefore, the third physiological characteristic based on the active fluid intake and the passive fluid intake is used as the preset one to predict the patient's treatment outcome, and to assist in the formulation of a treatment plan while monitoring the patient's fluid intake.
[0167] In a feasible implementation, step S4241 further includes:
[0168] S42411. Calculate the actual fluid intake of the corresponding historical patient based on the active fluid intake and the passive fluid intake of the historical patient. S42412. Obtain a reference fluid intake. S42413. Calculate the ratio of the actual fluid intake to the reference fluid intake to obtain the fluid intake information of the corresponding historical patient. Patients with different physiological characteristics require different fluid intakes. The reference fluid intake is used as a standard, and the fluid intake information of the patient is obtained based on the ratio of the patient's actual fluid intake to the reference fluid intake.
[0169] In this embodiment, the target physiological characteristic includes the first physiological characteristic and the third physiological characteristic after characteristic screening.
[0170] It should be noted that the reference fluid intake can be preset according to the patient's physiological characteristics, condition and treatment plan.
[0171] In this embodiment, step S42412 also includes: querying the database according to the first historical information of the historical patient to obtain a reference patient, the reference patient being the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than the second preset threshold value among all the historical patients who have not experienced venous thromboembolism events within the preset time period; obtaining the reference liquid intake corresponding to the historical patient according to the average value of the actual liquid intake of all the reference patients. Due to factors such as the condition, physiological characteristics and treatment regimen, different patients require different liquid intakes. When the patient's actual liquid intake is too little, the probability of venous thrombosis in the patient increases. The reference patient as the reference standard is selected according to the similarity of physiological characteristics, and the actual liquid intake of the reference patient is used as the patient's liquid intake standard, so as to realize personalized matching of the liquid intake standard for patients with different conditions, different physiological characteristics and different treatment regimens.
[0172] In this embodiment, the similarity may be cosine similarity. The value of the second preset threshold is 90%. The method for obtaining the reference fluid intake corresponding to the target patient is similar to the method for obtaining the reference fluid intake corresponding to the historical patient, and will not be described in detail here.
[0173] In a feasible implementation manner, the querying of a database according to the first historical information of historical patients to obtain a reference patient further includes:
[0174] Calculate the similarity between the values of basic characteristics of each historical patient and the values of basic characteristics of other historical patients respectively to obtain the basic similarity; calculate the similarity between the values of examination indicators of each historical patient and the values of examination indicators of other historical patients respectively to obtain the indicator similarity; calculate the similarity between the treatment plan of each historical patient and the treatment plan of other historical patients respectively to obtain the treatment plan similarity; linearly weight the basic similarity, the indicator similarity and the treatment plan similarity according to the weight to obtain the similarity between the corresponding historical patient and the other historical patients; wherein the weight of the basic similarity and the weight of the treatment plan similarity are greater than the weight of the indicator similarity.
[0175] It should be noted that the feature vectors of the treatment plans can be extracted through a neural network model, and the cosine similarity between the feature vectors of the treatment plans can be calculated to obtain the similarity of the treatment plans.
[0176] According to a second aspect of the present invention, the present invention claims protection for a system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer, Figure 3 As shown, including:
[0177] A first acquisition module, the first acquisition module is used to obtain the values of all first physiological characteristics and treatment outcomes of historical patients in the historical medical records to obtain first historical information; wherein the first physiological characteristics include basic characteristics and diagnostic characteristics, the diagnostic characteristics include the examination indicators and treatment plans of the patients at the time of admission, and the treatment outcomes are used to indicate whether the patients have experienced venous thromboembolism events or have not experienced venous thromboembolism events within a preset time period;
[0178] a first screening module, the first screening module being used to perform feature screening on the first physiological feature to obtain a target physiological feature; and screening out the value of the target physiological feature and the treatment outcome of each historical patient from the first historical information to obtain second historical information;
[0179] A first training module, the first training module is used to train a risk prediction model according to the second historical information to obtain a first target prediction model;
[0180] A second acquisition module, the second acquisition module is used to acquire physiological information of a target patient, and obtain target physiological information according to the target physiological characteristics;
[0181] A first processing module, wherein the first processing module is used to input the target physiological information into the first target prediction model to obtain a target treatment outcome for the target patient.
[0182] In a feasible implementation, the first screening module further includes:
[0183] Splitting the processing flow of the first historical information into processing sub-stages, wherein the processing sub-stages include a feature screening sub-stage;
[0184] Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2;
[0185] Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow;
[0186] Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics;
[0187] The first training module also includes:
[0188] Establishing a risk prediction model according to the target physiological characteristics corresponding to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model;
[0189] The performance indicators of all the first candidate prediction models are evaluated, and the first target prediction model is obtained according to the first candidate prediction model that best corresponds to the performance indicator.
[0190] In a feasible implementation manner, the first training module further includes:
[0191] Taking the first candidate prediction model with the best performance indicator as the second target prediction model;
[0192] Determine whether the number of input features of the second target prediction model is greater than a first preset threshold. If the number of input features of the second target prediction model is greater than the first preset threshold, sort the input features of the second target prediction model in descending order according to the importance of the physiological features, and take the physiological feature whose rank among all the input features of the second target prediction model is not greater than the first preset threshold as the target physiological feature;
[0193] Filtering the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information;
[0194] Establishing a risk prediction model according to the third historical information and the preset model, and training each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model;
[0195] The performance indicators of all the second candidate prediction models are evaluated, and the second candidate prediction model with the best performance indicator is selected as the first target prediction model.
[0196] In a feasible implementation, the importance level includes outcome relevance level and prediction contribution level, and the first training module further includes:
[0197] Respectively obtaining the correlation between each input feature of the second target prediction model and the treatment outcome to obtain the outcome correlation; wherein the correlation between the input feature and the treatment outcome is obtained according to the preset execution mode corresponding to the second target prediction model in the feature screening sub-stage;
[0198] Calculating respectively the contribution of each input feature of the second target prediction model to the completion of the prediction operation by the second target prediction model to obtain the prediction contribution degree;
[0199] The importance of the corresponding input feature is calculated based on the outcome relevance and the prediction contribution.
[0200] In a feasible implementation manner, the method for constructing the second candidate prediction model further includes:
[0201] Obtaining the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information;
[0202] The input feature of the second candidate prediction model is obtained according to the third physiological feature and the physiological feature corresponding to the third historical information; and the risk prediction model is trained according to the fourth historical information and the third historical information to obtain the second candidate prediction model.
[0203] In a feasible embodiment, the third physiological characteristic includes liquid intake information, and the first training module also includes calculating the liquid intake information of the corresponding historical patient based on the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection.
[0204] In a feasible implementation manner, the first training module further includes:
[0205] Calculate the actual fluid intake of the corresponding historical patient according to the active fluid intake and the passive fluid intake of the historical patient;
[0206] Obtain reference fluid intake;
[0207] The ratio of the actual fluid intake to the reference fluid intake is calculated to obtain the fluid intake information of the corresponding historical patient.
[0208] In a feasible implementation manner, the first training module further includes:
[0209] According to the first historical information of the historical patient, a database is queried to obtain a reference patient, wherein the reference patient is the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than a second preset threshold among all the historical patients who did not have a venous thromboembolism event within the preset time period;
[0210] The reference fluid intake corresponding to the historical patient is obtained according to the average of the actual fluid intakes of all the reference patients.
[0211] In a feasible implementation manner, the first training module further includes:
[0212] Calculate the similarity between the basic feature values of each historical patient and the basic feature values of other historical patients to obtain the basic similarity;
[0213] Calculate the similarity between the values of the examination indicators of each historical patient and the values of the examination indicators of other historical patients to obtain the indicator similarity;
[0214] Calculate the similarity between the treatment plan of each historical patient and the treatment plans of other historical patients respectively to obtain the similarity of the treatment plans;
[0215] The basic similarity, the indicator similarity and the treatment plan similarity are linearly weighted according to the weights to obtain the similarity between each historical patient and other historical patients;
[0216] Among them, the weight of the basic similarity and the weight of the treatment plan similarity are greater than the weight of the indicator similarity.
[0217] See attached Figure 4 As shown, an embodiment of the present application provides an electronic device, including: a processor and a memory, the processor and the memory are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not shown), the memory stores a computer program executable by the processor, and when the computing device is running, the processor executes the computer program to execute the system in any optional implementation of the above embodiments.
[0218] The embodiment of the present application provides a storage medium, and when the computer program is executed by the processor, the system in any optional implementation of the above embodiment is executed. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, disk or optical disk.
[0219] In the embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the modules is only a logical function division, and can be implemented in another way. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some communication interface, system or unit, which can be electrical, mechanical or other forms.
[0220] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0221] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0222] Flowcharts are used herein to illustrate the steps of the method of the embodiments of the present disclosure. It should be understood that the preceding or following steps are not necessarily performed precisely in order. On the contrary, various steps may be evaluated in reverse order or simultaneously. At the same time, other operations may also be added to these processes.
[0223] Unless otherwise defined, all terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present disclosure belongs. It should also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant technology, and should not be interpreted in an idealized or highly formal sense, unless explicitly defined as such herein.
[0224] The above is a detailed introduction to the provided method and system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only an embodiment of this application, which is only used to help understand the method and system for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer of this application, and is not used to limit the scope of protection of this application. At the same time, for those skilled in the art, this application can have various changes and variations. Any modifications and equivalent substitutions made within the spirit and principles of this application should be included in the scope of protection of this application.
Claims
1. Methods for predicting the risk of venous thromboembolism in patients with gastric or esophageal cancer. It is characterized in that include: Obtaining the values of all first physiological characteristics and treatment outcomes of historical patients in the historical medical records to obtain first historical information; wherein the first physiological characteristics include basic characteristics and diagnostic characteristics, the diagnostic characteristics include the examination indicators and treatment plans of the patients at the time of admission, and the treatment outcomes are used to indicate whether the patients have experienced venous thromboembolism events or have not experienced venous thromboembolism events within a preset time period; Performing feature screening on the first physiological feature to obtain a target physiological feature; Filtering the value of the target physiological characteristic and the treatment outcome of each historical patient from the first historical information to obtain second historical information; Training a risk prediction model according to the second historical information to obtain a first target prediction model; Acquiring physiological information of a target patient, and obtaining target physiological information according to the target physiological characteristics; Inputting the target physiological information into the first target prediction model to obtain the target treatment outcome of the target patient; The step of screening the first physiological characteristic further includes: Splitting the processing flow of the first historical information into processing sub-stages, wherein the processing sub-stages include a feature screening sub-stage; Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2; Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow; Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics; The step of training the risk prediction model according to the second historical information further includes: Establishing a risk prediction model according to the target physiological characteristics corresponding to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model; Evaluate the performance indicators of all the first candidate prediction models, and obtain the first target prediction model according to the first candidate prediction model with the best performance indicator; The step of obtaining the first target prediction model according to the first candidate prediction model that best corresponds to the performance indicator further includes: Taking the first candidate prediction model with the best performance indicator as the second target prediction model; Determine whether the number of input features of the second target prediction model is greater than a first preset threshold; if the number of input features of the second target prediction model is greater than the first preset threshold, arrange the input features of the second target prediction model in descending order according to the importance of the physiological features, and take the physiological feature whose rank among all the input features of the second target prediction model is not greater than the first preset threshold as the target physiological feature; Filtering the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information; Establishing a risk prediction model according to the third historical information and the preset model, and training each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model; Evaluate the performance indicators of all the second candidate prediction models, and select the second candidate prediction model with the best performance indicator as the first target prediction model; The importance level includes the outcome relevance level and the prediction contribution level, and in the step of arranging the input features of the second target prediction model in descending order according to the importance level of the physiological features, the step further includes: Respectively obtaining the correlation between each input feature of the second target prediction model and the treatment outcome to obtain the outcome correlation; wherein the correlation between the input feature and the treatment outcome is obtained according to the preset execution mode corresponding to the second target prediction model in the feature screening sub-stage; Calculating respectively the contribution of each input feature of the second target prediction model to the second target prediction model completing the prediction operation, and obtaining the prediction contribution degree; The importance of the corresponding input feature is calculated according to the outcome relevance and the prediction contribution; The method for constructing the second candidate prediction model also includes: Obtaining the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information; Obtaining input features of the second candidate prediction model according to the third physiological feature and the physiological feature corresponding to the third historical information; training a risk prediction model according to the fourth historical information and the third historical information to obtain the second candidate prediction model; The third physiological characteristic includes liquid intake information. In the acquisition of the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records, the liquid intake information of the corresponding historical patient is calculated based on the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection; The step of calculating the liquid intake information of the corresponding historical patient according to the active liquid intake and passive liquid intake of the historical patient also includes: Calculate the actual fluid intake of the corresponding historical patient according to the active fluid intake and the passive fluid intake of the historical patient; Obtain reference fluid intake; Calculating the ratio of the actual fluid intake to the reference fluid intake to obtain the fluid intake information of the corresponding historical patient; The step of obtaining the reference fluid intake further includes: According to the first historical information of the historical patient, a database is queried to obtain a reference patient, wherein the reference patient is the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than a second preset threshold among all the historical patients who did not have a venous thromboembolism event within the preset time period; The reference fluid intake corresponding to the historical patient is obtained according to the average of the actual fluid intakes of all the reference patients.
2. The method for predicting the risk of venous thromboembolism in patients with gastric cancer or esophageal cancer according to claim 1, It is characterized in that The step of querying a database according to the first historical information of historical patients to obtain a reference patient further includes: Calculate the similarity between the basic feature values of each historical patient and the basic feature values of other historical patients to obtain the basic similarity; Calculate the similarity between the values of the examination indicators of each historical patient and the values of the examination indicators of other historical patients to obtain the indicator similarity; Calculate the similarity between the treatment plan of each historical patient and the treatment plans of other historical patients respectively to obtain the similarity of the treatment plans; The basic similarity, the indicator similarity and the treatment plan similarity are linearly weighted according to the weights to obtain the similarity between each historical patient and other historical patients; Among them, the weight of the basic similarity and the weight of the treatment plan similarity are greater than the weight of the indicator similarity.
3. Venous thromboembolism risk prediction system for patients with gastric or esophageal cancer, It is characterized in that include: A first acquisition module, the first acquisition module is used to obtain the values of all first physiological characteristics and treatment outcomes of historical patients in the historical medical records to obtain first historical information; wherein the first physiological characteristics include basic characteristics and diagnostic characteristics, the diagnostic characteristics include the examination indicators and treatment plans of the patients at the time of admission, and the treatment outcomes are used to indicate whether the patients have experienced venous thromboembolism events or have not experienced venous thromboembolism events within a preset time period; a first screening module, the first screening module being used to perform feature screening on the first physiological feature to obtain a target physiological feature; and screening out the value of the target physiological feature and the treatment outcome of each historical patient from the first historical information to obtain second historical information; A first training module, the first training module is used to train a risk prediction model according to the second historical information to obtain a first target prediction model; A second acquisition module, the second acquisition module is used to acquire physiological information of a target patient, and obtain target physiological information according to the target physiological characteristics; a first processing module, the first processing module being used to input the target physiological information into the first target prediction model to obtain a target treatment outcome of the target patient; The first screening module also includes: Splitting the processing flow of the first historical information into processing sub-stages, wherein the processing sub-stages include a feature screening sub-stage; Obtaining a preset execution mode for each of the processing sub-stages, wherein the number of the preset execution modes corresponding to the feature screening sub-stage is at least 2; Combining the preset execution modes of all the processing sub-stages to obtain a candidate processing flow; Processing the first historical information according to each of the candidate processing procedures to obtain the corresponding target physiological characteristics; The first training module also includes: Establishing a risk prediction model according to the target physiological characteristics corresponding to the second historical information and a preset model, and training each risk prediction model according to the second historical information to obtain a first candidate prediction model; Evaluate the performance indicators of all the first candidate prediction models, and obtain the first target prediction model according to the first candidate prediction model with the best performance indicator; The first training module also includes: Taking the first candidate prediction model with the best performance indicator as the second target prediction model; Determine whether the number of input features of the second target prediction model is greater than a first preset threshold; if the number of input features of the second target prediction model is greater than the first preset threshold, arrange the input features of the second target prediction model in descending order according to the importance of the physiological features, and take the physiological feature whose rank among all the input features of the second target prediction model is not greater than the first preset threshold as the target physiological feature; Filtering the second historical information corresponding to the second target prediction model according to the target physiological characteristics to obtain third historical information; Establishing a risk prediction model according to the third historical information and the preset model, and training each risk prediction model according to the third historical information to obtain a corresponding second candidate prediction model; Evaluate the performance indicators of all the second candidate prediction models, and select the second candidate prediction model with the best performance indicator as the first target prediction model; The importance includes outcome relevance and prediction contribution, and the first training module further includes: Respectively obtaining the correlation between each input feature of the second target prediction model and the treatment outcome to obtain the outcome correlation; wherein the correlation between the input feature and the treatment outcome is obtained according to the preset execution mode corresponding to the second target prediction model in the feature screening sub-stage; Calculating respectively the contribution of each input feature of the second target prediction model to the second target prediction model completing the prediction operation, and obtaining the prediction contribution degree; The importance of the corresponding input feature is calculated according to the outcome relevance and the prediction contribution; The method for constructing the second candidate prediction model also includes: Obtaining the value of the third physiological characteristic of the gastric cancer patient or the esophageal cancer patient in the historical medical records to obtain fourth historical information; Obtaining input features of the second candidate prediction model according to the third physiological feature and the physiological feature corresponding to the third historical information; training a risk prediction model according to the fourth historical information and the third historical information to obtain the second candidate prediction model; The third physiological characteristic includes liquid intake information, and the first training module further includes calculating the liquid intake information of the corresponding historical patient according to the active liquid intake and passive liquid intake of the historical patient; wherein the active liquid intake includes the amount of water drunk, and the passive liquid intake includes the amount of infusion and the amount of drug injection; The first training module also includes: Calculate the actual fluid intake of the corresponding historical patient according to the active fluid intake and the passive fluid intake of the historical patient; Obtain reference fluid intake; Calculating the ratio of the actual fluid intake to the reference fluid intake to obtain the fluid intake information of the corresponding historical patient; The first training module also includes: According to the first historical information of the historical patient, a database is queried to obtain a reference patient, wherein the reference patient is the historical patient whose similarity with the first historical information of the corresponding historical patient is greater than a second preset threshold among all the historical patients who did not have a venous thromboembolism event within the preset time period; The reference fluid intake corresponding to the historical patient is obtained according to the average of the actual fluid intakes of all the reference patients.
Citation Information
Patent Citations
Nursing risk assessment early warning method and system
CN115274089A
Method for predicting death probability of hospitalized patient with coronary heart disease
CN116230222A
System and method for configuring a medical device or patient treatment option
EP3848938A1
