An acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning
The deep supervised reinforcement learning model combines patient history and real-time data to dynamically adjust treatment strategies, solving the problems of insufficient data utilization and low efficiency in the acute pancreatitis treatment recommendation model, and achieving more efficient and personalized treatment decision support.
Patent Information
- Application Number
- CN202411178543.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-27
AI Technical Summary
Existing acute pancreatitis treatment recommendation models fail to make full use of patients' historical health data and clinical expert experience, and suffer from insufficient efficiency and accuracy when dealing with complex dynamic treatment decisions.
An acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning is used to collect patients' laboratory examination and vital sign data through the data collection and preprocessing module. It combines supervised learning and reinforcement learning models to construct a policy function and behavior value function, and dynamically adjust Treatment strategy, using SOFA score and reward function to optimize treatment decisions.
It improves the adaptability and accuracy of treatment strategies, enhances the flexibility and accuracy of response in the face of different disease changes, significantly improves the sustainability and personalization level of treatment effects, and is able to learn and learn by itself in complex clinical environments. Adapt to optimize the quality of treatment decisions.
Smart Images

Figure CN118711845B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical technology, and in particular to an acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning. Background Art
[0002] Acute pancreatitis (AP) is a serious inflammatory disease of the pancreas that not only causes acute abdominal pain but also often requires hospitalization. With changes in lifestyles and improvements in diagnostic technology around the world, the incidence of AP is on the rise. The treatment of AP patients involves symptomatic treatment and management of serious complications, which poses a major challenge to the healthcare system and has a significant impact on the socioeconomics. The treatment of acute pancreatitis is a complex and dynamic process that requires adjustment of treatment plans based on the patient's real-time health status.
[0003] Dynamic treatment recommendation is a method that uses algorithm models to dynamically provide treatment suggestions based on the patient's current and historical health data. This method can optimize the patient's treatment process and adjust the treatment strategy in real time to respond to changes in the condition. In the treatment of acute pancreatitis, dynamic treatment recommendations are particularly critical because the patient's condition may change rapidly. It can improve the flexibility and personalization of treatment, thereby improving treatment outcomes and patient satisfaction.
[0004] In recent years, with the widespread application of electronic medical record systems in hospitals and the accumulation of medical data, rich data resources have been provided for building a dynamic treatment recommendation model for acute pancreatitis. However, traditional statistical methods for randomized controlled trials (RCTs) and sequential designs face challenges in processing such data, such as high dimensionality, nonlinear relationships, and time dependence. In addition, traditional supervised learning methods also have limitations in dealing with such sequential decision-making problems. Therefore, reinforcement learning, as an emerging method, has been introduced into this field, and with its advantages in dealing with sequential decision-making problems, it provides new possibilities for dynamic treatment recommendations.
[0005] Reinforcement learning, especially deep reinforcement learning, has shown great potential in building dynamic treatment recommendation models based on electronic medical record data. By learning and updating policy models in real time, reinforcement learning can adapt to changes in patient conditions and optimize treatment decisions. For example, by using deep reinforcement learning methods, the best treatment strategies can be learned from historical treatment data to achieve personalized treatment recommendations.
[0006] Matthieu Komorowski et al. developed a reinforcement learning agent called "Artificial Intelligence Clinician" to make personalized recommendations for the treatment of sepsis patients. By analyzing the patient's real-time clinical data, the reinforcement learning model can recommend the most appropriate dosing strategy for intravenous fluids and vasopressors, significantly improving the effectiveness and efficiency of treatment. This case demonstrates the application value and actual effect of reinforcement learning in dynamic treatment recommendations.
[0007] Current research still has some limitations in the field of dynamic treatment recommendations. For example, many algorithms have not yet fully utilized the patient's historical health data and have failed to fully integrate the experience and knowledge of clinical experts. In addition, the dynamic treatment recommendation model for acute pancreatitis is still in its early stages. Future research needs to develop more efficient and accurate algorithms that integrate more extensive data and expert knowledge to achieve truly personalized medicine. At the same time, more clinical trials are needed to verify the actual effects of these models. Summary of the invention
[0008] Based on the above problems, the purpose of the present invention is to provide an acute pancreatitis treatment recommendation system, which is based on the patient's dynamic laboratory tests and vital signs, combined with supervised learning and reinforcement learning models, and can dynamically recommend treatment strategies for the treatment process of patients with acute pancreatitis.
[0009] The technical solution adopted by the present invention to achieve its invention purpose is a deep supervised reinforcement learning-based acute pancreatitis treatment recommendation system, including a data acquisition and preprocessing module, a reward function construction module, a strategy function pre-training module, and a deep supervised reinforcement learning model construction module, wherein:
[0010] The data acquisition and preprocessing module is used to collect and preprocess the status data and doctor's order data of patients with acute pancreatitis, wherein the status data includes laboratory test indicators and vital signs data, and the doctor's order data is the treatment behavior accepted by the patient;
[0011] The reward function building module is used to calculate the SOFA score of each patient at each time point according to the preprocessed state data output by the data acquisition and preprocessing module, and calculate the reward function according to the SOFA score to obtain the reward feedback value; the SOFA score (Sequential Organ Failure Assessment Score) is a clinical tool for assessing the degree of organ failure in critically ill patients, and the SOFA scoring method of the existing technology is used for scoring in the specific implementation;
[0012] The strategy function pre-training module is used to construct a strategy function based on the pre-processed patient status data output by the acquisition and pre-processing module and the historical information encoding context vector, and use the actual treatment behavior received by the patient at each time point to pre-train the strategy function so that the strategy function learns expert experience and outputs the parameters of the optimized strategy function. The historical information encoding context vector is obtained by encoding the historical status data and the treatment behavior through a recurrent neural network RNN;
[0013] The deep supervised reinforcement learning model building module is used to construct the behavior value function and its objective function, to construct the objective function of the strategy function, and to jointly train the behavior value function and the strategy function. It is also used to encode the context vector according to the patient's current state and historical information, and to output the recommended treatment behavior using the strategy function with optimized parameters.
[0014] Furthermore, the data acquisition and preprocessing module performs preprocessing including:
[0015] Merge the same type of medical order data to remove redundancy in the behavior space; the same type refers to drugs and treatment methods with the same therapeutic effect;
[0016] The state data is preprocessed, including outlier processing, that is, the 99% quantile is used as the threshold point of the outlier, and the value exceeding this threshold is defined as an outlier; missing value processing, that is, for the state data, the method of filling forward with the last observed value and filling backward with the last observed value is used to fill; one-hot encoding is used to encode discrete state data; Z transform is used to standardize continuous state data, and the Z transform formula is:
[0017]
[0018] in: Represents the original data value of the continuous state data before normalization. represent The mean of represent The standard deviation of the standardized data called Fraction.
[0019] Furthermore, the specific method for the reward function construction module to calculate the reward function to obtain the reward feedback value is:
[0020] Defining the reward function , which is based on the SOFA scores at two consecutive time points and , and predetermined coefficients and threshold parameters to calculate the reward feedback value :
[0021] ;
[0022] in: is the reward feedback value, and The time points and SOFA score, and are the predetermined thresholds of SOFA scores at different intervals, is a predetermined coefficient for adjusting rewards or penalties;
[0023] The reward function is divided into three cases:
[0024] When improving (score decreases): If , then the reward feedback value is:
[0025]
[0026] Such a calculation provides a reward for any drop in rating, with a particular emphasis on larger rewards when dropping from a high rating;
[0027] When stable (rating unchanged): If , different rules are used according to the rating level:
[0028] if Rating ,but , penalizes high but stable scores;
[0029] if Rating ,but , rewards very low and stable ratings;
[0030] In other cases, 0, indicating neither reward nor penalty for moderately stable scores;
[0031] When worsening (score increases): If , then the reward feedback value is:
[0032]
[0033] because If it is a negative number, it is a penalty.
[0034] Furthermore, the policy function constructed by the policy function pre-training module is ,in represents the parameters to be optimized in the strategy function, Represents at the moment , recommended by the policy function A vector of treatment actions, It is at the moment The state vector is obtained based on the laboratory test indicators and vital signs data of patients with acute pancreatitis. Encode the context vector for historical information, covering the historical time length ω, ;RNN stands for recurrent neural network, which is a classic neural network structure. Its calculation process will not be described here. The patient's to The state sequence of The patient's to Sequence of records of treatments received.
[0035] The specific method for pre-training the strategy function is:
[0036] Constructing the loss function ,
[0037]
[0038] In the formula, is the total time step, is the number of types of treatment behaviors, It's at the time For therapeutic behavior The actual situation of taking, the value is 0 or 1, The model is in state and historical information encoding context vector Recommended treatment behaviors probability;
[0039] Leverage patients’ actual treatment behaviors at each time point To policy function Perform pre-training and optimize the loss function using the Adam algorithm , get the initial optimized parameters , and obtain the pre-trained strategy function The Adam algorithm optimization steps include initializing parameters, calculating the gradient of the loss function, and applying gradient updates to minimize the loss function and improve the predictive performance of the policy function.
[0040] Furthermore, the behavior value function constructed by the deep supervision reinforcement learning model construction module is , using a neural network to learn the action value function , which is used to guide the strategy function Directions of performance improvement during training The input to the action value function includes the patient's state vector , historical information encoding context vector , and the vector of treatment actions recommended by the strategy function , the output of the behavior value network is to take treatment actions Post-state of Value, by -function predict;
[0041] The objective function of the behavior value function is:
[0042]
[0043]
[0044]
[0045] In the formula, Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; is the policy function network According to the patient Status of the moment and historical information , recommended treatment behaviors probability; , and Patients The state of the moment, Historical information at the moment and Therapeutic behavior that is accepted at all times; express Instant rewards of the moment; and They are Status and history information at all times; represents the target behavior value function (target Q function), which is used to reduce instability during training. Specifically, It is a relatively stable copy, whose parameters are the same as the main behavior value network. After each round of training, the parameters are updated to avoid the main network The frequent updates during training lead to dramatic fluctuations in the estimated value, thereby improving the stability of the Q-value estimation and the convergence of the training process; It is a neural network The parameters of are updated by gradient descent:
[0046]
[0047] In the formula, is a parameter The learning rate, It is called the temporal difference error and is used to learn -function; Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of
[0048] After each round of training, The parameter update formula is:
[0049]
[0050] In the formula, The target network Parameters, Is the main network Parameters, is the update coefficient (usually set to a small value, such as 0.001). The parameters of the network change only slightly each time it is updated, which can alleviate the instability caused by frequent updates of the main network, thereby improving the stability and convergence of training;
[0051] The objective function of the strategy function is:
[0052]
[0053] This is a joint optimization objective function constructed by combining reinforcement learning objectives and supervised learning objectives. The objective function aims to predict medical solutions that can bring high expected returns while reducing errors.
[0054] In the formula, is the weight parameter used to balance reinforcement learning and supervised learning tasks;
[0055] The reinforcement learning goal is to maximize the expected return by maximizing The state value is used to learn the strategy, averaged over the state distribution of the doctor's behavior:
[0056]
[0057] In the formula, It’s a strategy The state-value function under Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training;
[0058] The supervised learning objective is to minimize the difference between the treatment behavior predicted by the policy function and the actual prescription of the doctor, and the cross entropy loss function is used to measure this difference:
[0059]
[0060] In the formula, represents the probability distribution of the state, Indicates that from the distribution Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; is the number of types of treatment behaviors, Indicates at time Did the doctor choose the Therapeutic behavior, The policy function The predicted The probability of a treatment behavior.
[0061] The above operations are all part of the iterative gradient descent optimization operation of the behavior value function and the policy function under the actor-critic framework. The loss function of the behavior value function based on the time difference error is Optimization is performed via gradient descent, which is the critic part that evaluates actions under a given policy. and They correspond to the optimization of the policy function in reinforcement learning and supervised learning objectives respectively. By optimizing the parameters of the policy function through gradient ascent / descent, the actor (strategist) learns how to choose the optimal action.
[0062] Furthermore, the specific process of jointly training the behavior value function and the strategy function is as follows:
[0063] First, the policy function parameters obtained by pre-training in the policy function pre-training module are used To initialize the policy function parameters in joint training :
[0064]
[0065] The behavior value function and the policy function are then iteratively optimized through the actor-critic framework. During the joint training process, the parameters of the policy function and the parameters of the action value function The update is performed via the Adam optimizer to maximize the joint objective function:
[0066]
[0067]
[0068] In the formula, and The parameters are and The learning rate, Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of and They are the parameters in the reinforcement learning objective and the supervised learning objective function. By using the pre-trained policy function parameters for initialization and combining the objectives of reinforcement learning and supervised learning in the joint training process, a policy function with better performance and more in line with doctors’ experience can be obtained.
[0069] Furthermore, the specific process of outputting the recommended treatment behavior is:
[0070] Based on the strategy function completed by joint training, starting from the initial time of each patient, traversing all time points, according to the patient's current state and historical information encoding context vector , driving strategy function Output recommended treatment actions .
[0071] The beneficial effects of the present invention are:
[0072] (I) The present invention combines supervised learning and reinforcement learning techniques to construct an efficient and dynamic treatment recommendation system, which effectively improves the adaptability and accuracy of treatment strategies and provides scientific decision-making support for the treatment of acute pancreatitis;
[0073] (ii) The present invention is not only applicable to the treatment recommendation of acute pancreatitis, but its methods and technical framework can also be extended to the treatment management of other complex diseases, and has broad application prospects;
[0074] (III) The present invention adopts a deep supervised reinforcement learning model, effectively integrating patient history and real-time data, and significantly improving the sustainability and personalization of treatment effects by dynamically adjusting treatment plans in real time;
[0075] (iv) By constructing a strategy function and a behavior value function, the present invention enables the treatment recommendation system to have self-learning and adaptability in a complex clinical environment, and can continuously optimize and improve the quality of treatment decisions;
[0076] (V) The present invention uses the reward function to dynamically adjust the treatment strategy, which enhances the model's response flexibility and accuracy when facing different changes in disease conditions, and improves the safety and effectiveness of the treatment process;
[0077] (VI) The present invention can also be used to study and analyze data patterns and trends during the treatment of acute pancreatitis, providing powerful data support and new research tools for clinical research. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 This is a schematic diagram of the system structure of an embodiment of the present invention;
[0079] Figure 2 A schematic diagram of the change trajectory of the objective functions of the value function and the strategy function in the training process according to an embodiment of the present invention;
[0080] Figure 3 A co-occurrence matrix between K kinds of behaviors recommended by the model of the embodiment of the present invention;
[0081] Figure 4 is a co-occurrence matrix between K kinds of behaviors recommended by clinicians in an embodiment of the present invention;
[0082] Figure 5 This is a schematic diagram of dynamic treatment recommendation according to an embodiment of the present invention. DETAILED DESCRIPTION
[0083] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0084] Figure 1 A specific implementation of the acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning of the present invention is shown, including a data acquisition and preprocessing module 1, a reward function construction module 2, a strategy function pre-training module 3, and a deep supervised reinforcement learning model construction module 4, wherein:
[0085] The data acquisition and preprocessing module 1 is used to collect the status data and doctor's order data of the patient with acute pancreatitis and perform preprocessing, wherein the status data includes laboratory test indicators and vital signs data, and the doctor's order data is the treatment behavior accepted by the patient;
[0086] The reward function construction module 2 is used to calculate the SOFA score of each patient at each time point according to the preprocessed state data output by the data acquisition and preprocessing module 1, and calculate the reward function according to the SOFA score to obtain the reward feedback value;
[0087] The strategy function pre-training module 3 is used to construct a strategy function according to the pre-processed patient status data output by the acquisition and pre-processing module 1 and the historical information encoding context vector, and use the actual treatment behavior received by the patient at each time point to pre-train the strategy function, and output the parameters of the optimized strategy function, wherein the historical information encoding context vector is obtained by encoding the historical status data and the treatment behavior through a recurrent neural network RNN;
[0088] The deep supervised reinforcement learning model construction module 4 is used to construct the behavior value function and its objective function, to construct the objective function of the strategy function, and to jointly train the behavior value function and the strategy function. It is also used to encode the context vector according to the patient's current state and historical information, and to output the recommended treatment behavior using the strategy function with optimized parameters.
[0089] The following is a detailed description of the working process of the acute pancreatitis treatment recommendation system using a specific implementation step:
[0090] S1. Collect dynamic measurement data of patients with acute pancreatitis from the hospital's electronic medical record system, including laboratory test indicators and vital signs data as patient status data, and collect medical advice data of patients with acute pancreatitis as the treatment behavior received by the patients.
[0091] In order to obtain variables used to represent the health information of patients at each time point, the laboratory test indicators and vital signs data of patients with acute pancreatitis were collected from the hospital electronic medical record system as state variables representing the health information of patients, a total of 116 variables, including: sodium, serum; chloride, serum; potassium, serum; anion gap, serum; carbon dioxide combining capacity, serum; serum inorganic phosphorus, serum; magnesium, serum; calcium, serum; glutamyl transpeptidase, serum; alkaline phosphatase, serum; aspartate aminotransferase, serum; white-globulin ratio, serum; globulin, serum; albumin, serum; total protein, serum; alanine aminotransferase, serum; direct bilirubin, serum; total bilirubin, serum; indirect bilirubin, serum; creatinine, serum; Serum cystatin C assay, serum; urea, serum; uric acid, serum; glucose, serum; low-density lipoprotein, serum; high-density lipoprotein, serum; cholesterol, serum; triglycerides, serum; creatine kinase, serum; hydroxybutyrate dehydrogenase, serum; lactate dehydrogenase, serum; amylase, serum; lipase, serum; serum β-hydroxybutyrate assay, serum; lymphocyte percentage, whole blood; neutrophil percentage, whole blood; white blood cell count, whole blood; platelet count, whole blood; RBC distribution width SD, whole blood; RBC distribution width CV, whole blood; mean corpuscular HGB concentration, whole blood; mean corpuscular HGB content, whole blood; mean corpuscular volume, whole blood; hematocrit, whole blood; hemoglobin, whole blood; red blood cells count, whole blood; lymphocytes, absolute, whole blood; neutrophils, absolute, whole blood; monocyte percentage, whole blood; monocytes, absolute, whole blood; eosinophil percentage, whole blood; eosinophils, absolute, whole blood; basophils, absolute, whole blood; basophils, absolute, whole blood; pH, random urine; specific gravity, random urine; leukocytes, random urine; erythrocytes, random urine; bacteria, random urine; casts, random urine; epithelial cells, random urine; erythrocytes, random urine; leukocytes, random urine; conductivity, random urine; thrombin time, plasma; activated partial thromboplastin time, plasma; prothrombin time, plasma; international normalized ratio, plasma; fibrinogen, plasma; D, dimer, plasma; antithrombin III , plasma; pancreatic amylase, serum; C, reactive protein, serum; serum CA19-9, pleural effusion; semiquantitative hepatitis B core antibody, whole blood; semiquantitative hepatitis B e antibody, whole blood; semiquantitative hepatitis B e antigen, whole blood; quantitative hepatitis B surface antibody, whole blood; semiquantitative hepatitis B surface antigen, whole blood; hepatitis C antibody (chemiluminescence), whole blood; serum CA-125, pleural effusion; large platelet ratio, whole blood; mean platelet volume, whole blood; interleukin 6, serum; fibrin and fibrinogen degradation products, plasma; percentage of nucleated red blood cells, whole blood; total bile acid, serum; glycosylated hemoglobin A1c, plasma; non-small cell lung cancer antigen, pleural effusion; creatine kinase isoenzyme MB mass, serum; troponin-T, serum; myoglobin, serum;Urinary natriuretic peptide, serum; plasma lactate, plasma; neutrophil band percentage, whole blood; neutrophil band absolute value, whole blood; carbohydrate antigen 72-4, serum; carbon dioxide partial pressure, whole blood; pH, whole blood; oxygen saturation, whole blood; oxygen partial pressure; buffer base; oxyhemoglobin concentration; methemoglobin; carboxyhemoglobin; bicarbonate; free PSA-serum; interleukin 10-serum; total hemoglobin concentration; body temperature; respiration; systolic blood pressure; diastolic blood pressure; pulse; 24-hour intake; 24-hour output. ;
[0092] Physician order data to record patients’ treatment behaviors were also collected.
[0093] S2. Merge the same type of medical advice data of patients with acute pancreatitis to remove redundancy in the behavior space;
[0094] In order to remove redundancy in the behavior space, treatment behaviors with different behavior names that have the same treatment effect are merged, as shown in Table 1. The first column is the behavior name after merging, and the second column is the behavior name before merging. After merging, a total of 49 treatment behaviors are included.
[0095] Table 1. Detailed information on combined treatment behaviors of the same type
[0096] Merged name Name before merger Remove the drainage tube Remove the drainage tube Liver protection drugs ZSYH-Reduced Glutathione for Injection, HYXGGGTN-Reduced Glutathione Sodium for Injection, ELCSEYBA-Compound Diisopropylamine Dichloroacetate Injection, DXLZDJ-Polyene Phosphatidylcholine Injection, YGCSM-Magnesium Isoglycyrrhizinate Injection, LPLN-Tiopronin Injection Electrolyte supplementation LHJ-potassium chloride injection, PTTSG-calcium gluconate injection, LHJ-potassium chloride oral solution, LHN-concentrated sodium chloride injection, GYLSN-sodium glycerophosphate injection, LHJ-potassium chloride sustained-release tablets, MDASJMZSY-potassium magnesium aspartate injection, FFDJZZSY-compound electrolyte injection, KFBYY-oral rehydration salt powder (I), FFJYECDJZS-compound polyethylene glycol electrolyte powder (II) Shenmai Injection Shenmai Injection Enteral nutrition ZFRAJSPTTY-lipid emulsion amino acid (17) glucose (11%) injection, enteral high nutrition therapy, AS-enteric nutrition powder (TP), CNYYJTPFD-enteric nutrition emulsion (TPF-D), enteral nutrition (drip through fistula), nasogastric tube placement, CNYYJTP-enteric nutrition emulsion (TP), gastric tube 16# (adult), gastrointestinal catheterization through gastroscope, CNYY-enteric nutrition emulsion (TPF-T), CNY-enteric nutrition emulsion (TPF), enteral nutrition finished product, CNYY-enteric nutrition emulsion (TP-HE), gastrointestinal catheterization through gastroscope (treatment during examination), RD-enteric nutrition emulsion (TPF-D), nasogastric tube placement (full), nasal test tube placement (feeding / drug injection) (gold card surcharge), RS-enteric nutrition emulsion (TP), nasogastric tube placement (feeding, drug injection, duodenal instillation surcharge) Parenteral Nutrition FFAJSZSY18-compound amino acid injection (18AA-Ⅱ), SRXWSS-water-soluble vitamins for injection, intravenous high nutrition therapy, BAXGAXA-alanyl-glutamine injection, FFWSS-compound vitamin injection (4), three-liter bag, HHWLYS-multiple trace elements injection (Ⅱ), WSSC-vitamin C injection, ZRXWSS-fat-soluble vitamin injection (Ⅱ), ZCLZFR-medium / long-chain fat emulsion injection (C6-24), ZFRZSY-fat emulsion injection (C14-24), FFAJSZSY -Compound amino acid injection (3AA), WSSK1-Vitamin K1 injection, FHLSQJ-Compound potassium hydrogen phosphate injection, ZCLZFRZSY-Medium / long chain fat emulsion injection (C8-24), WSSB-Vitamin B1 injection, ffajs-Compound amino acid injection (9AA), WSSB-Vitamin B6 injection, ZCLZFRZSYVE-Medium / long chain fat emulsion injection (C8-24Ve), BBFZCL-Propofol medium / long chain fat emulsion, ZFR-Fat emulsion injection, ZFRC-Structured fat emulsion injection C6~24 Paracentesis Color Doppler ultrasound-guided abdominal abscess puncture and drainage, percutaneous pelvic abscess puncture and drainage Metabolic acidosis Metabolic acidosis Gallbladder surgery Percutaneous transhepatic biliary drainage, cholecystectomy, cholecystostomy, intraoperative choledocholithotomy, transduodenoscope endoscopic biliary stone removal, transduodenoscope papillary dilatation (outpatient use), transduodenoscope endoscopic endoscopic biliary sphincterotomy, laparoscopic cholecystectomy, endoscopic nasobiliary drainage (ENBD), biliary stent placement, biliary balloon dilatation, common bile duct incision and removal of stones, cholecystolithotomy, residual cholecystectomy, common bile duct incision and drainage, cholecystotomy and drainage, common bile duct lesion resection Regulate blood sugar aCZRYDS-recombinant human insulin injection, ZYDSDX-insulin injection, GJYDS-glargine insulin injection, AKBT-acarbose tablets, MDY-aspart insulin injection, EJSG-metformin hydrochloride tablets, GLMZ-glimepiride tablets, YDSR-biosynthetic human insulin injection, MDY-aspart insulin 30 injection, LPYDS-lispro insulin injection, DTYDS-detemir insulin injection, YDSR-protamine biosynthetic human insulin injection (premixed 30R), JDBSWHCRYDSZSY-protamine biosynthetic human insulin injection, insulin subcutaneous injection injection, GLQT-gliclazide sustained-release tablets, EJSG-metformin hydrochloride enteric-coated tablets, RGLN-repaglinide tablets, YDS-protamine zinc recombinant human insulin mixed injection, JDBCZ-protamine recombinant human insulin injection, LPYDS-protamine zinc recombinant lispro insulin mixed injection (25R), YDS-30 / 70 mixed recombinant human insulin injection, LKT-metformin hydrochloride tablets, insulin pump continuous subcutaneous insulin injection, insulin pump continuous subcutaneous insulin injection (full), JDBCXCZLPYDSHH-protamine zinc recombinant lispro insulin mixed injection (50R), XGLTP-sitagliptin phosphate tablets Regulate blood pressure FLDP-Felodipine sustained-release tablets, XBDP-Nifedipine controlled-release tablets, ALDP-Amlodipine besylate tablets, MTLE-Metoprolol succinate sustained-release tablets, EBST-Irbesartan tablets, BHSZXALDP-L-Amlodipine besylate tablets, XPN-Sodium nitroprusside for injection, ZST-Valsartan capsules, BSLE-Bisoprolol fumarate tablets, KTPL-Captopril tablets, MTLE-Metoprolol tartrate tablets, WLDE-Urapidil hydrochloride injection, PDPLSDA-Perindopril tert-butylamine tablets, FXPL-Fosinopril sodium tablets, LSTJ-Losartan potassium tablets, pzq-Prazosin hydrochloride tablets, BNPL-Benazepril hydrochloride tablets, YDPA-Indapamide Tablets, EBSTQLZZ-Irbesartan Hydrochlorothiazide Tablets, TMST-Telmisartan Tablets, PNLE-Propranolol Hydrochloride Tablets, YSWLDE-Urapidil Hydrochloride Injection, DELZHS-Diltiazem Hydrochloride Sustained Release Capsules (Ⅱ), YSALJNLE-Arotinolol Hydrochloride Tablets, LXDP-Lacidipine Tablets, TLZQ-Terazosin Hydrochloride Tablets, XSTALDP-Valsartan Amlodipine Tablets (I), LSTJQLZZ-Losartan Potassium Hydrochlorothiazide Tablets, JXT-Valsartan Dispersible Tablets, NQDP-Nifedipine Tablets, KDST-Candesartan Ciloxime Tablets, XBDP-Nifedipine Tablets, GLBQ-Glipizide Controlled Release Tablets, XSTQLSQ-Valsartan Hydrochlorothiazide Tablets Regulate blood lipids FNBT-Fenofibrate Capsules, ATFTTG-Atorvastatin Calcium Tablets, RSFTTG-Rosuvastatin Calcium Tablets, PFTT-Pravavastatin Sodium Tablets, FFTT-Fluvastatin Sodium Capsules Secondary care Secondary care, secondary care (full), special disease care-secondary care, secondary care (gold card surcharge) Assisted breathing Ventilator-assisted breathing (invasive) (intermittent), ventilator-assisted breathing (non-invasive), ventilator-assisted breathing (invasive) (continuous), endotracheal intubation (ICU), endotracheal intubation with special methods, tracheotomy (ICU), flushable endotracheal intubation, tracheotomy, endotracheal intubation with special methods, percutaneous tracheotomy, endotracheal intubation, simple ventilator-assisted breathing, ventilator-assisted breathing (full), endotracheal intubation Draining ascites Abdominal puncture (abdominal fluid treatment ICU), Abdominal puncture (abdominal fluid treatment), Abdominal puncture (abdominal fluid treatment) (full) Treating hyperammonemia MDASNAS-Ornithine Aspartate for Injection, RGT-Lactulose Oral Solution Cooling General physical cooling, special physical cooling, special physical cooling (extra charge), mild hypothermia treatment (24h), mild hypothermia treatment (hourly), general physical cooling (full), general physical cooling (pediatric), general physical cooling (gold card extra charge), special physical cooling (pediatric) Treating anxiety and panic APZL-Alprazolam Tablets fasting Fasting, fasting, fasting, fasting Laparotomy Debridement and drainage of necrotizing pancreatitis, drainage of pancreatic abscess, removal of residual necrotic tissue of the pancreas, drainage of abdominal abscess, transabdominal drainage of pelvic abscess, distal pancreatectomy, partial pancreatectomy, external drainage of pancreatic cyst, resection of pancreatic lesions, internal drainage of pancreatic pseudocyst, pancreaticojejunostomy, removal of pancreatic necrotic tissue + cholecystectomy, pancreatic duct lithotomy, duodenum-preserving pancreatic head resection, Whipple's procedure (radical pancreaticoduodenectomy), internal drainage of pancreatic cyst, resection of pancreatic head, resection of pancreatic pseudocyst, extended pancreaticoduodenectomy, pancreatic peripheral nerve resection, pancreatic repair, pancreatectomy, pancreatic exploration, total pancreatectomy antibiotic YAPNXSTD-Imipenem Cilastatin Sodium for Injection, PLXLNSBTN-Piperacillin Sodium and Sulbactam Sodium for Injection (2:1), TBPTNSBTN-Cefoperazone Sodium and Sulbactam Sodium for Injection, YSMXSX-Moxifloxacin Hydrochloride and Sodium Chloride Injection, TXZPTT-Tinidazole and Glucose Injection, PLXLLTZBTL-Piperacillin Sodium and Tazobactam Sodium for Injection, pnpnbtml-Panipenem Betamipron for Injection, AQL-Aztreonam for Injection, HBSXLHN-Ciprofloxacin Lactate and Sodium Chloride Injection, FKZLHN-Fluconazole Sodium Chloride Injection, ZY FSXLHN-Levofloxacin Sodium Chloride Injection, JXZ-Metronidazole Sodium Chloride Injection, WGMS-Vancomycin Hydrochloride Injection, YSWGMS-Vancomycin Hydrochloride Injection, TJHS-Tigecycline Injection, TBTD-Ceftazidime Injection, FLKZ-Voriconazole Injection, AXZ-Ornidazole Sodium Chloride Injection, MLPL-Meropenem Injection, ZYFSX-Levofloxacin Hydrochloride Injection, TBZWN-Cefuroxime Sodium Injection, TBLM-Cefathiamidine Injection, RSZYFSX-Lactated Levofloxacin Sodium Chloride Injection, LNZA-Linezolid Injection injection, AMKX-amikacin sulfate injection, TZQS-cefotaxime sodium injection, YSQJWG-norvancomycin hydrochloride injection, KLMSLSZ-clindamycin phosphate injection, MLPL-meropenem, MXSX-moxifloxacin hydrochloride tablets, QDMS-gentamicin sulfate injection, YSXBJP-berberine hydrochloride tablets, FLKZ-voriconazole tablets, TBKL-cefaclor capsules, LXMS-amphotericin B injection, ZMS-nystatin tablets, ZSYLXMSB-amphotericin B liposome injection, TKLL-teicoplanin injection, TBDN-cefadroxil Fudinir Capsules, TZZZ-Cefazolin Sodium for Injection, TBTA-Ceftiam Hydrochloride for Injection, FKZZSY-Fluconazole Injection, ZYFSX-Levofloxacin Tablets, YSWGMS-Vancomycin Hydrochloride, YQKZ-Itraconazole Injection, HBSX-Ciprofloxacin Lactate Sodium Chloride Injection, TBPA-Cefpiramide, ALXL-Azlocillin Sodium for Injection, AMXLSBTN-Amoxicillin and Sulbactam Sodium, TBKL-Cefaclor Dry Suspension, AQMS-Azithromycin for Injection, AMXLKLWSJ-Amoxicillin and Clavulanate Potassium Tablets, TBKW-Cefixime Capsules Clearing stomach contents Chinese medicine enema, MSBL-Mosapride citrate tablets, gastrointestinal decompression, enema, DPLT-domperidone tablets, KSL-supplement (containing glycerin), retention enema, simple enema (supplement), retention enema (ICU), gastrointestinal decompression (full), enema (full), enema (gold card surcharge), gastrointestinal decompression first time Tertiary Care Tertiary Care Treatment of upper gastrointestinal ulcers and bleeding Level 3 nursing, ASAMLZ-esomeprazole sodium for injection, ZSYSZ-somatostatin for injection, PTLZ-pantoprazole sodium for injection, AMLZ-omeprazole sodium for injection, AQT-octreotide acetate injection, ASAMLZM-esomeprazole magnesium enteric-coated tablets, LSLZ-lansoprazole for injection, LTL-sucralfate oral suspension, ZSYASMLZ-esomeprazole sodium for injection, TSQN-sodium bicarbonate tablets, GAXA-glutamine Capsules, FMTD-Famotidine for injection, CTHY-Posterior pituitary injection, LSLNJ-Aluminum phosphate gel, TPRT-Teprenone capsules, PTLZ-Pantoprazole sodium enteric-coated capsules, JTGJZ-Colloidal pectin bismuth capsules, LLTD-Ranitidine hydrochloride injection, LTSM-Magnesium aluminum carbonate tablets, LZWSL-Combination package of potassium citrate bismuth tablets / tinidazole tablets / clarithromycin tablets, TLJY-Terlipressin for injection, XMTD-Cimetidine injection Warming up Disposable warming blankets, patient warming systems Blood transfusion Intravenous blood transfusion, blood transfusion (pediatric) Special care Special nursing care, special nursing care (hourly), special nursing care (full) Extracorporeal blood purification Continuous blood purification, continuous blood purification (hourly), hemodialysis (catheter type), hemoperfusion, hemodialysis (fistula type), hemodiafiltration (fistula type), hemodialysis (direct-through type) Antipyretic ATD-Compound Aminababarbital Injection Oxygen ATD-Compound Aminababarbital Injection, Continuous Oxygen Inhalation (One Day), Pressurized Oxygen Inhalation, Pressurized Oxygen Inhalation (Hours), Continuous Oxygen Inhalation (Half Day), Oxygen Inhalation (Intermittent), Nasal Oxygen Cannula, Oxygen Inhalation (Continuous), Continuous Oxygen Inhalation All Day (Full), Pressurized Oxygen Inhalation (Full), Intermittent Oxygen Inhalation (Full), Intermittent Oxygen Inhalation for the First Time, Intermittent Oxygen Inhalation for the First Time (Hours), Continuous Oxygen Inhalation for Half a Day (Gold Card Surcharge) Treating indigestion YM-Pancreatic enzyme enteric-coated capsules, DM-Multienzyme tablets, CT-Changtai mixture, YTBL-Itopride hydrochloride tablets Treating heart failure DGX-Digoxin Tablets Treating heart failure DGX-Digoxin Tablets, HLXGPA-Cycloadenosine Glucoside for Injection, QYXMHD-Deacetyl-Danaphthoside Injection, DBFDA-Dobutamine Hydrochloride Injection, MLL-Milrinone Injection, ALN-Amrinone for Injection Treating shock CF-Shenfu injection, DBA-Dopamine hydrochloride injection, YBSSXS-Isoproterenol hydrochloride injection, YXT-Dextran 40 glucose injection Fluid therapy LHN-sodium chloride injection, PTT-glucose injection, PTTLHN-glucose sodium chloride injection, NJMGPTT-sodium potassium magnesium calcium glucose injection, RXBDB-human serum albumin, RSNLG-sodium lactate Ringer's injection, QYJDF-hydroxyethyl starch 130 / 0.4 sodium chloride injection, HPXMJ-succinylated gelatin injection, zhtzsy-invert sugar injection, JMJT-polygeline injection First-level care Level 1 Nursing, Level 1 Nursing (Full), Special Disease Nursing-Level 1 Nursing, Special Disease Level 1 Nursing (Pediatrics), Level 1 Nursing (Gold Card Surcharge) Inhibit pancreatic enzyme activity jhsjbz-gabexate mesylate for injection, ZSYWSTD-ulinastatin for injection Dietary adjustments Liquid diet, low-fat diet, general diet, diabetic diet A, semi-liquid diet, soft diet, low-salt and low-fat diet, diabetic diet, diabetic diet B, general diet after 6 hours of fasting, liver disease diet, low-salt and low-fat diabetic diet, low-salt and low-fat high-quality protein diet, low-residue diet, low-protein diet, light and low-fat diet, diabetic light diet, diabetic diet C, high-protein diet, cold liquid diet Acupuncture Electroacupuncture, Embedding Needle Therapy, Conventional Acupuncture, Warm Needle (5 Acupoints), Acupuncture Analgesia JYSFTN-fentanyl citrate injection, DZXZSY-dezocine injection, SFTN-sufentanil citrate injection, QMD-tramadol hydrochloride injection, YSPTD-pethidine hydrochloride injection, LTD-rotundine tablets, ZSYPRXB-parecoxib sodium for injection, QMD-tramadol hydrochloride sustained-release tablets, patient-controlled intravenous analgesia, XXSLDJ-racemic anisodamine tablets, JBSF-phloroglucinol injection, QKT-oxycodone hydrochloride sustained-release tablets, QMD-tramadol hydrochloride capsules Antiemetic JYLPA-Metoclopramide Hydrochloride Injection, ADSQ-Ondansetron Hydrochloride Injection, JYLPA-Metoclopramide Tablets Stop bleeding MTFSXNM-Agkistrodon acutus hemocoagulase for injection, AJHSLHN-tranexamic acid sodium chloride injection Treating cholestasis XGDAS-Adenosylmethionine Butanedisulfonate for Injection Chinese Herbal Medicine Chinese Herbal Medicine
[0097] S3. Preprocess the dynamic state variables, including outlier processing (using the 99% quantile as the threshold point of the outlier, and values exceeding this threshold are defined as outliers); missing value processing (for dynamic data, the last observed value is used to fill forward and the last observed value is used to fill backward); Z-transformation is used to standardize continuous state variables; one-hot encoding is used to encode discrete state variables;
[0098] The Z transform formula is:
[0099]
[0100] in: Represents the original data value of the continuous state data before normalization. represent The mean of represent The standard deviation of the standardized data called Fraction.
[0101] Outlier processing can identify and process extreme data points that may distort the analysis results, prevent overfitting during model training, and improve the model's adaptability to common situations and prediction accuracy. Missing value processing is to obtain complete data to ensure that the model can run. Standardization of continuous state variables is to eliminate the impact of different dimensions and magnitudes, convert discrete variables into a numerical one-hot encoding format, so that the model can better understand and process categorical data and avoid the model from incorrectly interpreting the ordered relationship between categories.
[0102] S4. Calculate the SOFA score of each patient at each time point, and then calculate the reward feedback value of the treatment behavior based on the SOFA scores at adjacent time points .
[0103] The SOFA score of each patient at each time point was calculated according to the SOFA score calculation method in the literature "Vincent JL, De Mendonça A, Cantraine F, et al. Use of the SOFA score to assess the incidence of organ dysfunction / failure in intensive care units: results of a multicenter, prospective study[J]. Critical caremedicine, 1998, 26(11): 1793-1800", and then the reward feedback value of the treatment behavior was calculated according to the following formula :
[0104]
[0105] in: is the reward feedback value, and The time points and SOFA score, and are the predetermined thresholds of SOFA scores at different intervals, is a predetermined coefficient for adjusting rewards or penalties;
[0106] The reward function is divided into three cases:
[0107] (1) When improving (score decreases): If , then the reward feedback value is:
[0108]
[0109] Such a calculation provides a reward for any drop in rating, with a particular emphasis on larger rewards when dropping from a high rating;
[0110] (2) Stable (score remains unchanged): If , different rules are used according to the rating level:
[0111] if Rating ,but , penalizes high but stable scores;
[0112] if Rating ,but , rewards very low and stable ratings;
[0113] In other cases, 0, indicating neither reward nor penalty for moderately stable scores;
[0114] (3) When the condition worsens (score increases): If , then the reward feedback value is:
[0115]
[0116] because If it is a negative number, it is a penalty.
[0117] In this embodiment, The value of is 0, The value of is 5. The value of is 0.1, The value of is 0.1, The value of is 0, The value of is 0.1.
[0118] S5. Construct a strategy function and use the existing state sequence and treatment behavior sequence in the data to pre-train the strategy function.
[0119] (1) Constructing a strategy function ,in represents the parameters to be optimized in the strategy function, Represents at the moment Strategy function recommended A vector of treatment actions, It is at the moment The state vector is obtained based on the laboratory test indicators and vital signs data of patients with acute pancreatitis. The context vector is encoded for historical information, covering the historical time length ω. In this embodiment, is a binary vector of length 49, whose elements are , 0 means that a certain behavior is not executed, and 1 means it is executed. represents a real vector of length 116.
[0120] (2) Construct a recurrent neural network to The state and treatment behavior trajectory before the moment are encoded to obtain .
[0121] (3) Constructing the loss function :
[0122]
[0123] In the formula, is the total time step, is the number of types of treatment behaviors, It's at the time For therapeutic behavior The actual situation of taking, the value is 0 or 1, The model is in state and historical information encoding context vector Recommended treatment behaviors probability;
[0124] Leverage patients’ actual treatment behaviors at each time point To policy function Pre-training is performed to enable the strategy function to learn expert experience. The loss function is optimized using the Adam algorithm. , get the initial optimized parameters , and obtain the pre-trained strategy function .
[0125] S6. Construct the behavior value function and its objective function;
[0126] The behavior value function constructed is , using a neural network to learn the action value function , the input of the behavior value function includes the patient's state vector , historical information encoding context vector , and the vector of treatment actions recommended by the strategy function , the output of the behavior value network is to take treatment actions Post-state of Value, by -function predict;
[0127] The objective function of the behavior value function is:
[0128]
[0129]
[0130]
[0131] In the formula, Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; is the policy function network According to the patient Status of the moment and historical information , recommended treatment behaviors probability; , and Patients The state of the moment, Historical information at the moment and Therapeutic behavior that is accepted at all times; and They are Status and history information at all times; express Instant rewards of the moment; represents the target behavior value function (target Q function), which is used to reduce instability during training. Specifically, It is a relatively stable copy, whose parameters are the same as the main behavior value network. After each round of training, the parameters are updated to avoid the main network The frequent updates during training lead to dramatic fluctuations in the estimated value, thereby improving the stability of the Q-value estimation and the convergence of the training process; It is a neural network The parameters of are updated by gradient descent:
[0132]
[0133] in, is a parameter The learning rate, It is called the temporal difference error and is used to learn -function; Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of
[0134] After each round of training, The parameter update formula is: ;
[0135] In the formula, The target network Parameters, Is the main network Parameters, is the update coefficient (usually set to a small value, such as 0.001). The parameters of the network change only slightly at each update, which can alleviate the instability caused by frequent updates of the main network and thus improve the stability and convergence of the training.
[0136] S7. Construct the objective function of the strategy function:
[0137] Combine the reinforcement learning objectives with the supervised learning objectives to construct a joint optimization objective function:
[0138]
[0139] In the formula, is a weight parameter used to balance reinforcement learning and supervised learning tasks. In this embodiment, Set to 0.5.
[0140] The reinforcement learning goal is to maximize the expected return by maximizing The state value is used to learn the strategy, averaged over the state distribution of the doctor's behavior:
[0141]
[0142] In the formula, Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training;
[0143] The supervised learning objective is to minimize the difference between the treatment behavior predicted by the policy function and the actual prescription of the doctor, and the cross entropy loss function is used to measure this difference:
[0144]
[0145] In the formula, represents the probability distribution of the state, Indicates that from the distribution In the sampling state, Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; is the number of types of treatment behaviors, Indicates at time Did the doctor choose the Therapeutic behavior, The policy function The predicted The probability of a treatment behavior.
[0146] S8. Iteratively jointly optimize the behavior value function and the policy function through the actor-critic framework:
[0147] First, use the policy function parameters obtained by pre-training in step S5 To initialize the policy function parameters in joint training :
[0148]
[0149] The behavior value function and the policy function are then iteratively optimized through the actor-critic framework. During the joint training process, the parameters of the policy function and the parameters of the action value function The update is performed via the Adam optimizer to maximize the joint objective function:
[0150]
[0151]
[0152] In the formula, and The parameters are and The learning rate, Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of and They are the parameters in the reinforcement learning objective and the supervised learning objective function. gradient.
[0153] Figure 2 The figure shows the changing tracks of the objective function of the behavior value function and the policy function in the training process in step S8. The left side shows the track of the objective function of the behavior value function, and the right side shows the track of the objective function of the policy function.
[0154] S9, based on the strategy function completed by joint training, starting from the initial time of each patient, traversing all time points, according to the patient's current state and the context vector of historical information , driving strategy function Output recommended treatment actions .
[0155] Figure 3 and Figure 4 Represents the co-occurrence matrix between K behaviors in the test set. Figure 3 is the co-occurrence matrix (co-occurring in a treatment combination) between the K behaviors recommended by the model, Figure 4 The co-occurrence matrix between K behaviors that are actually accepted by patients (indicating that they are recommended by clinicians). The darker the cell, the more times the corresponding two behaviors co-occur.
[0156] Figure 5 This shows a dynamic treatment recommendation example for a patient with acute pancreatitis. The left side shows the treatment behaviors recommended by the model day by day during the patient's stay in the hospital; the right side shows the treatment behaviors actually received by the patient day by day during the patient's stay in the hospital. In the matrix, the vertical axis represents the patient's timeline from top to bottom, and the horizontal axis represents 49 treatment behaviors.
[0157] from Figure 3 , Figure 4 as well as Figure 5 It can be seen that the acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning proposed in the present invention has a high degree of overall consistency between the treatment behaviors recommended by the model and the treatment behaviors actually accepted by the patients, which fully verifies the effectiveness and accuracy of the present invention.
[0158] The above embodiments of the present invention are merely examples for illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes and modifications can be made based on the above description. It is impossible to list all the embodiments here. Any obvious changes or modifications derived from the technical solution of the present invention are still within the scope of protection of the present invention.
Claims
1. An acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning, characterized in that: It includes a data collection and preprocessing module (1), a reward function construction module (2), a strategy function pre-training module (3), and a deep supervised reinforcement learning model construction module (4), wherein: The data collection and preprocessing module (1) is used to collect status data and doctor's order data of patients with acute pancreatitis and perform preprocessing, wherein the status data includes laboratory test indicators and vital sign data, and the doctor's order data is the treatment behavior accepted by the patient; The reward function construction module (2) is used to calculate the SOFA score of each patient at each time point according to the preprocessed state data output by the data acquisition and preprocessing module (1), and calculate the reward function according to the SOFA score to obtain a reward feedback value; The strategy function pre-training module (3) is used to construct a strategy function based on the pre-processed patient status data output by the acquisition and pre-processing module (1) and the historical information encoding context vector, and to pre-train the strategy function using the actual treatment behavior received by the patient at each time point, and output the parameters of the optimized strategy function, wherein the historical information encoding context vector is obtained by encoding the historical status data and the treatment behavior through a recurrent neural network (RNN); The deep supervised reinforcement learning model building module (4) is used to construct a behavior value function and its objective function, to construct an objective function of a policy function, and to jointly train the behavior value function and the policy function, and to encode a context vector according to the patient's current state and historical information, and to output a recommended treatment behavior using the policy function after optimizing parameters; The specific method of the reward function building module (2) calculating the reward function to obtain the reward feedback value is: Defining the reward function : ; in: is the reward feedback value, and The time points and SOFA score, and are the predetermined thresholds of SOFA scores at different intervals, is a predetermined coefficient for adjusting rewards or penalties; if , then the reward feedback value is: ; if , different rules are used according to the rating level: if Rating ,but ; if Rating ,but ; In other cases, 0; if , then the reward feedback value is: ; If it is a negative number, it is a penalty; The strategy function constructed by the strategy function pre-training module (3) is: ,in represents the parameters to be optimized in the strategy function, Represents at the moment Strategy function recommended A vector of therapeutic behavior, It is at the moment The state vector is obtained based on the laboratory test indicators and vital signs data of patients with acute pancreatitis. Encode the context vector for historical information, covering the historical time length ω, , RNN represents recurrent neural network, The patient's to The state sequence of The patient's to the sequence of treatment records received; The specific method for pre-training the strategy function is: Constructing the loss function , ; In the formula, is the total time step, is the number of types of treatment behaviors, It's at the time For therapeutic behavior The actual situation of taking, the value is 0 or 1, The model is in state and historical information encoding context vector Recommended treatment behaviors The probability of Leverage patients’ actual treatment behaviors at each time point To policy function Perform pre-training and optimize the loss function using the Adam algorithm , and obtain the initial optimized parameters , and obtain the pre-trained strategy function ; The behavior value function constructed by the deep supervision reinforcement learning model construction module (4) is: , the input of the behavior value function includes the patient's state vector , historical information encoding context vector , and the vector of treatment actions recommended by the strategy function , the output of the behavior value network is to take treatment actions Post-state of Value, by -function predict; The objective function of the behavior value function is: ; In the formula, Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; Represents the policy function network According to the patient Status of the moment and historical information , recommended treatment behaviors The probability of , and Patients The state of the moment, Historical information at the moment and Therapeutic behavior that is accepted at all times; and They are Status and history information at all times; express Instant rewards of the moment; Represents the target behavior value function target Q function; is the action value function The parameters of are updated by gradient descent: ; In the formula, is a parameter The learning rate, It is called the temporal difference error and is used to learn -function; Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of After each round of training, The parameter update formula is: ; In the formula, The target network Parameters, Is the main network Parameters, is the update coefficient; The objective function of the strategy function is: ; In the formula, is the weight parameter used to balance reinforcement learning and supervised learning tasks; To strengthen the learning objectives: ; In the formula, It’s a strategy The state-value function under Represents a given strategy In the case of, the probability distribution of the state, Represents a given strategy , from the probability distribution of state and reward Sampling status ; Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; For supervised learning objectives: ; In the formula, represents the probability distribution of the state, Indicates that from the distribution Sampling status , Indicates the status The probability distribution of The expectation of is approximated by the weighted mean of the samples during training; is the number of types of treatment behaviors, Indicates at time Did the doctor choose the Therapeutic behavior, The policy function The predicted The probability of a treatment behavior; The specific process of jointly training the behavior value function and the strategy function is as follows: First, the policy function parameters obtained by pre-training in the policy function pre-training module are used To initialize the policy function parameters in joint training : ; The behavior value function and the policy function are then iteratively optimized through the actor-critic framework. During the joint training process, the parameters of the policy function and the parameters of the action value function The update is performed via the Adam optimizer to maximize the joint objective function: ; ; In the formula, Representation parameters The gradient operator of Representing the behavior value function Parameters The rate of change of parameter The gradient of and They are the parameters in the reinforcement learning objective and the supervised learning objective function. gradient.
2. The acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning according to claim 1, characterized in that: The data acquisition and preprocessing module (1) performs preprocessing including: Merge the same type of medical order data; The state data is preprocessed, including outlier processing, that is, the 99% quantile is used as the threshold point of the outlier, and the value exceeding this threshold is defined as an outlier; missing value processing, that is, for the state data, the method of filling forward with the last observed value and filling backward with the last observed value is used to fill; one-hot encoding is used to encode discrete state data; Z transform is used to standardize continuous state data, and the Z transform formula is: ; in: Represents the original data value of the continuous state data before normalization. represent The mean of represent The standard deviation of the standardized data called Fraction.
3. The acute pancreatitis treatment recommendation system based on deep supervised reinforcement learning according to claim 1, characterized in that: The specific process of outputting the recommended treatment behavior is: Based on the strategy function completed by joint training, starting from the initial time of each patient, traversing all time points, according to the patient's current state and historical information encoding context vector , driving strategy function Output recommended treatment actions .
