Pareto optimal causal effect estimation and strategy learning prediction method

Through Pareto optimal causal effect estimation and policy learning methods, combined with representation learning and Pareto optimization algorithms, the trade-off problem between short-term and long-term causal effects is solved, and the optimization of treatment strategies and accurate prediction of results are achieved. An effective treatment solution is provided to solve the complexity and conflict problems of causal effect estimation and policy learning tasks in the prior art.

CN118609803APending Publication Date: 2024-09-06ZHEJIANG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410225816.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to make an effective trade-off between short-term and long-term causal effects with existing technology, leading to conflicts in the direction of optimization of treatment strategies, and long-term effects are rarely studied and observed, resulting in the complexity of treatment effects and the impact of multiple outcomes not being fully resolved .

Method used

Using Pareto optimal causal effect estimation and strategy learning methods, by training the Pareto optimal causal effect estimation module and strategy learning module, combined with representation learning, counterfactual prediction and Pareto optimization algorithm, short-term and long-term causality are optimized. Trade-offs between effects yield optimal drug treatment doses and predicted outcomes.

Benefits of technology

It achieves accurate prediction of short-term and long-term potential outcomes, and provides effective treatment strategies so that the long-term and short-term outcomes corresponding to the strategies have the greatest benefits, and solves the problems of cross-task efficiency and outcome conflicts in causal effect estimation and policy learning tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609803A
    Figure CN118609803A
Patent Text Reader

Abstract

The invention discloses a Pareto optimal causal effect estimation and strategy learning prediction method, which comprises the following steps of inputting feature data of a patient to be predicted and drug intervention dosage data into a trained Pareto optimal causal effect estimation module, and correspondingly obtaining short-term and long-term rehabilitation rate results. And inputting the feature data of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose. Compared with the prior art, the method has the advantages that a novel end-to-end algorithm is provided, and the problem of conflict between long and short term results in the causal effect prediction task and the strategy learning task is solved at the same time. According to the method, the optimal value of the intervention variable can be determined, so that the short-term effect and the long-term effect caused by the intervention variable have Pareto optimality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of causal inference, and in particular relates to a Pareto optimal causal effect estimation and strategy learning prediction method. Background Art

[0002] In causal inference and policy learning, the estimation of short-term and long-term causal effects is a key problem in various fields such as healthcare, education, marketing, and social sciences. For example, when considering the dosage of antidepressants for depression, researchers usually focus on short-term indicators such as symptom relief, improved health status, and household expenditures in the short term. These short-term effects appear within a few days or months and are therefore easier to study. However, long-term results are also crucial, such as drug resistance and side effects that may emerge after several years, which may affect patients' lives and employment prospects. However, these long-term effects are rarely observed and studied due to the high cost and long time frame required for long-term studies.

[0003] The conflict between short-term and long-term causal effects is also rarely discussed. For example, higher drug doses may accelerate short-term recovery but may lead to serious long-term side effects. In addition, the conflict between short-term and long-term results has another meaning, that is, when training the estimation model, the optimization directions of various tasks may also conflict. Therefore, how to balance between short-term and long-term causal effects to achieve optimal treatment remains a challenge to be solved. Summary of the invention

[0004] The purpose of the present invention is to solve the problems existing in the prior art and to provide a Pareto optimal causal effect estimation and strategy learning prediction method and system.

[0005] The specific technical solutions adopted by the present invention are as follows:

[0006] In a first aspect, the present invention provides a Pareto optimal causal effect estimation and strategy learning prediction method, comprising the following steps:

[0007] S1. Input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module, obtain the short-term recovery rate result of the patient and the long-term recovery rate result of the patient, and complete the causal effect estimation based on Pareto optimization; the Pareto optimal causal effect estimation module includes a first representation learning network, a second representation learning network, a short-term counterfactual prediction network and a long-term counterfactual prediction network;

[0008] S2. Inputting the characteristic data of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose of the patient to be predicted, wherein the Pareto optimal strategy learning module includes a strategy learning network;

[0009] After the Pareto optimal causal effect estimation module has been iteratively trained in the first training phase alone, the parameters of the Pareto optimal causal effect estimation module are fixed, and the patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation finally output by the Pareto optimal causal effect estimation module are obtained. The patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation are used to perform iterative training of the Pareto optimal strategy learning module in the second training phase.

[0010] Based on the above scheme, each step can be implemented in the following preferred specific manner.

[0011] Preferably, in each round of training of the first training stage of the Pareto optimal causal effect estimation module, the parameters of the Pareto optimal causal effect estimation module updated in the previous round of training are obtained, the drug intervention dosage data of the patient to be predicted is input into the first representation learning network to obtain a first representation, and the characteristic data of the patient to be predicted is input into the second representation learning network to obtain a second representation; the first representation and the second representation are horizontally spliced ​​to obtain a merged vector, the merged vector is input into the short-term counterfactual prediction network to obtain a prediction result of the patient's short-term recovery rate, the merged vector is horizontally spliced ​​with the prediction result of the patient's short-term recovery rate to obtain an intermediate vector, and the intermediate vector is input into the short-term counterfactual prediction network to obtain a prediction result of the patient's short-term recovery rate. The method comprises the following steps: first, calculating the first loss based on the drug intervention dosage data of the patient to be predicted and the second representation, calculating the second loss based on the short-term recovery rate prediction result of the patient and the true value of the short-term recovery rate of the patient, and calculating the third loss based on the long-term recovery rate prediction result of the patient and the true value of the long-term recovery rate of the patient. The weighted sum of the first loss, the second loss and the third loss is taken as the first total loss. The parameters of the Pareto optimal causal effect estimation module are updated using the first total loss and the Pareto optimization algorithm. The training is continuously iterated until the Pareto optimal causal effect estimation module converges. Finally, the training is completed to obtain a trained Pareto optimal causal effect estimation module.

[0012] Preferably, in each round of training of the second training stage of the Pareto optimal strategy learning module, the parameters of the Pareto optimal strategy learning module updated in the previous round of training are obtained, the characteristic data of the patient to be predicted is input into the strategy learning network to obtain the optimal drug treatment dose of the patient to be predicted, the optimal drug treatment dose of the patient to be predicted is input into the first representation learning network to obtain a third representation, the second representation and the third representation are horizontally spliced ​​to obtain a spliced ​​vector, the spliced ​​vector is input into the short-term counterfactual prediction network to obtain a new patient short-term recovery rate prediction result, and the spliced ​​vector is combined with the new patient short-term recovery rate prediction result. The results are horizontally spliced ​​to obtain a new intermediate vector, and the new intermediate vector is input into the long-term counterfactual prediction network to obtain a new patient long-term recovery rate prediction result; the fourth loss is calculated based on the true value of the patient's short-term recovery rate and the new patient short-term recovery rate prediction result, and the fifth loss is calculated based on the true value of the patient's long-term recovery rate and the new patient long-term recovery rate prediction result, and the weighted sum of the fourth loss and the fifth loss is taken as the second total loss, and the second total loss and the Pareto optimization algorithm are used to update the Pareto optimal strategy learning module parameters, and the training is continuously iterated until the Pareto optimal strategy learning module converges, and finally the training is completed to obtain a trained Pareto optimal strategy learning module.

[0013] Preferably, the first loss L MI The functional form is:

[0014]

[0015]

[0016]

[0017] Where n represents the total number of characteristic data of the patient to be predicted; logq θ (t i |Φ(x i )) represents the positive sample pair (t i |Φ(x i ))'s conditional log-likelihood; logq θ (t j |Φ(x i )) represents the negative sample pair (t j |Φ(x i ))'s conditional log-likelihood; t i ,t j Respectively represent the drug intervention dosage data of the i-th and j-th patients to be predicted; Φ(x i ) represents the i-th second representation value; Φ(·) represents the second representation learning network; μ θ (Φ(xi ))、Var θ (Φ(x i )) corresponds to the variational distribution q θ (Φ(x i ))’s mean and variance.

[0018] Preferably, the second loss L s The functional form is:

[0019]

[0020] in, represents the predicted value of the short-term recovery rate of the i-th patient; s i Represents the true value of the short-term recovery rate of the i-th patient.

[0021] Preferably, the third loss L y The functional form is:

[0022]

[0023] in, represents the predicted value of the long-term recovery rate of the i-th patient; y i Represents the true value of the long-term recovery rate of the i-th patient.

[0024] Preferably, the fourth loss R s The functional form is:

[0025]

[0026] in, represents the maximum value of the true value of the short-term recovery rate of the i-th patient; represents horizontal splicing; Ψ(·) represents the first representation learning network; represents the i-th third representation value; h represents the predicted value of the short-term recovery rate of the i-th new patient; s (·) represents the short-term counterfactual prediction network.

[0027] Preferably, the fifth loss R y The functional form is:

[0028]

[0029] in, represents the predicted result value of the long-term recovery rate of the i-th new patient; represents the maximum value of the true value of the long-term recovery rate of the i-th patient; h y (·) represents the long-term counterfactual prediction network.

[0030] Preferably, the first representation learning network, the second representation learning network, the short-term counterfactual prediction network, the long-term counterfactual prediction network and the strategy learning network all adopt multi-layer perceptron MLP.

[0031] In a second aspect, the present invention provides a Pareto optimal causal effect estimation and strategy learning prediction system, comprising:

[0032] The first prediction module is used to input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module to obtain the patient's short-term recovery rate result and the patient's long-term recovery rate results, completing the causal effect estimation based on Pareto optimization; the Pareto optimal causal effect estimation module includes a first representation learning network, a second representation learning network, a short-term counterfactual prediction network and a long-term counterfactual prediction network;

[0033] The second prediction module is used to input the characteristic data X of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose of the patient to be predicted. The Pareto optimal strategy learning module includes a strategy learning network.

[0034] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a Pareto optimal causal effect estimation and strategy learning prediction method as described in any one of the first aspects above is implemented.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention comprehensively studies the complexity of optimizing treatment and its impact on multiple outcomes, and solves the new challenges faced by the two tasks of causal effect estimation and strategy learning when there is a conflict between long-term and short-term treatment effects, which cannot be solved by the prior art. The present invention proposes a novel Pareto optimization algorithm, including a Pareto optimal causal effect estimation module (POE) and a Pareto optimal strategy learning module (POPL). Among them, the Pareto optimal causal effect estimation module POE integrates the continuous Pareto algorithm and representation balance, which significantly improves the estimation efficiency across tasks. The Pareto optimal strategy learning module POPL focuses on deriving short-term and long-term results associated with different intervention levels. In general, the present invention can not only accurately predict short-term and long-term potential results based on observed data, but also provide an effective strategy (i.e., the optimal value of intervention) so that the long-term and short-term results corresponding to the strategy have the maximum benefit. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1It is a medical case schematic diagram of the present invention;

[0038] Figure 2 It is a schematic diagram of a module of the present invention;

[0039] Figure 3 is a schematic diagram of the Pareto optimization algorithm in step S1 of this embodiment;

[0040] Figure 4 is a schematic diagram of the Pareto optimization algorithm in step S2 of this embodiment;

[0041] Figure 5 is an overall schematic diagram of the Pareto optimization algorithm of this embodiment;

[0042] Figure 6 is a schematic diagram of the visualization result of this embodiment;

[0043] Figure 7 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0044] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0045] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.

[0046] In a preferred embodiment of the present invention, a Pareto optimal causal effect estimation and strategy learning prediction method is provided, comprising the following steps:

[0047] S1. Input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module to obtain the patient's short-term recovery rate results and the patient's long-term recovery rate results, and complete the causal effect estimation based on Pareto optimization.

[0048] S1. Input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the Pareto optimal causal effect estimation module that has been iteratively trained in the first training phase, obtain the patient's short-term recovery rate results and the patient's long-term recovery rate results, and complete the causal effect estimation based on Pareto optimization.

[0049] It should be noted that the Pareto optimal causal effect estimation module of the present invention includes a first representation learning network Ψ(·), a second representation learning network Φ(·), a short-term counterfactual prediction network h s (·) and the long-term counterfactual prediction network h y (·). In the kth round of training of the Pareto optimal causal effect estimation module, the Pareto optimal causal effect estimation module parameter ξ updated in the previous round of training is obtained. k , input the drug intervention dose data T of the patient to be predicted into the first representation learning network Ψ(·) to obtain the first representation Ψ(T), input the feature data X of the patient to be predicted into the second representation learning network Φ(·) to obtain the second representation Φ(X); horizontally splice the first representation Ψ(T) and the second representation Φ(X) to obtain the merged vector Indicates horizontal splicing, the merged vector Input to the short-term counterfactual prediction network h s (·) to obtain the patient's short-term recovery rate prediction result The combined vector Prediction results of short-term recovery rate of patients Perform horizontal splicing to obtain an intermediate vector, and input the intermediate vector into the long-term counterfactual prediction network h y (·) to obtain the patient's long-term recovery rate prediction result The first loss L is calculated based on the drug intervention dose data T of the patient to be predicted and the second representation Φ(X) MI , based on the patient's short-term recovery rate prediction results The second loss L is calculated by the true value s of the patient's short-term recovery rate s , based on the patient's long-term recovery rate prediction results and the true value y of the patient's long-term recovery rate to calculate the third loss L y , taking the first loss L MI The second loss L s And the third loss L y The weighted sum is used as the first total loss, and the first total loss and the Pareto optimization algorithm are used to update the parameters ξ of the Pareto optimal causal effect estimation module k+1 , the training is continuously iterated until the Pareto optimal causal effect estimation module converges, and finally the training is completed to obtain a trained Pareto optimal causal effect estimation module.

[0050] It should also be noted that step S1 of the present invention mainly includes representation learning, counterfactual inference and Pareto causal effect estimation optimization process. Given the patient's characteristic data X (covariate) and drug intervention dosage data T (intervention variable), the Pareto optimal causal effect estimation module first learns their balanced representations. The ultimate goal is to predict the corresponding short-term potential results and long-term potential results. The present invention uses the Pareto optimization algorithm to perform joint optimization among multiple learning objectives.

[0051] The specific implementation of the above step S1 is described in detail below with reference to the accompanying drawings. Taking a medical case as an example, Figure 1 This is a schematic diagram of the causal relationship between various variables in the present invention. The characteristic data X of a patient with depression includes his age, gender, income, health status, etc. A certain dose of antidepressant drugs is applied to the patient, and the drug intervention dose data T can be obtained. Figure 2 In the upper left half of , the present invention shows the processing flow of the Pareto optimal causal effect estimation module.

[0052] 1) In representation learning, corresponding representations are generated for covariates and intervention variables respectively, and the two representations are concatenated. At the same time, a balance constraint is imposed on the learning of covariate representation so that the covariate representation is independent of the continuous intervention variable. Specifically, first, based on the deep neural network Ψ(·), the imposed intervention variable T is projected onto the representation space. Then, based on the deep neural network Φ(·), all observed covariates X are projected onto the representation space. At the same time, in order to meet the assumption that Φ(X)⊥T, thereby solving the confusion bias caused by the unbalanced distribution of covariates, the neural network Φ(·) aims to learn a balanced representation that is independent of T, where ⊥ indicates independence. The present invention uses mutual information to measure the correlation between the covariate representation Φ(X) and the intervention variable T, and then constructs the first loss L MI . Using the merged vector To achieve unbiased causal effect estimation. Considering the need to make a trade-off between severe information loss and increased costs caused by strict constraints, the present invention hopes to combine information on short-term and long-term potential results to supplement and strengthen this shared representation process.

[0053] In the present invention, the first loss L MI The functional form is:

[0054]

[0055]

[0056]

[0057] Where n represents the total number of characteristic data of the patient to be predicted; logq θ (t i |Φ(x i )) represents the positive sample pair (t i |Φ(x i ))'s conditional log-likelihood; logq θ (t j |Φ(x i )) represents the negative sample pair (t j |Φ(x i ))'s conditional log-likelihood; t i ,t j Respectively represent the drug intervention dosage data of the i-th and j-th patients to be predicted; Φ(x i ) represents the i-th second characterization value; μ θ (Φ(x i ))、Var θ (Φ(x i )) corresponds to the variational distribution q θ (Φ(x i ))’s mean and variance.

[0058] 2) In counterfactual inference, the learned covariate representations and intervention variable representations are used to predict the short-term potential outcomes and long-term potential outcomes of the counterfactual. Specifically, we first learn a short-term counterfactual prediction network h s (·), used to predict short-term causal effects, the goal is to minimize the second loss (i.e., mean square error loss) L s After obtaining the short-term causal effects, a long-term counterfactual prediction network h is learned y (·), which is used to predict long-term causal effects and aims to minimize the third loss.

[0059] In the present invention, the second loss L s The functional form is:

[0060]

[0061] in, represents the predicted value of the short-term recovery rate of the i-th patient; s i Represents the true value of the short-term recovery rate of the i-th patient.

[0062] In the present invention, the third loss L y The functional form is:

[0063]

[0064] in, represents the predicted value of the long-term recovery rate of the i-th patient; y iRepresents the true value of the long-term recovery rate of the i-th patient.

[0065] 3) In the Pareto causal effect estimation optimization process, a trade-off is made between the accuracy of the short-term causal effect prediction in step 2), the accuracy of the long-term causal effect prediction, and the balance of the covariate representation in step 1), the Pareto optimization direction is explored, and the parameters of the Pareto optimal causal effect estimation module are updated. Specifically, the first loss L MI , the second loss L s and the third loss L y The weighted sum is taken as the first total loss L = w1*L MI +w2*L s +w3*L y ,in Represents a hyperparameter, which is used to adjust the weights between multiple losses. Represents a 3-dimensional positive real number. Then the Pareto optimization algorithm is used to transform the trade-offs between multiple tasks into a continuous Pareto optimization problem.

[0066] The Pareto optimization algorithm used in the present invention is implemented in the prior art, and a brief introduction is given below to facilitate understanding of the principle of using the Pareto optimization algorithm. Specifically, Figure 3 As shown, first find the gradients of the three components in the first total loss and obtain the gradient vector G of the first total loss:

[0067]

[0068] in, Represent the gradients of the first loss, the second loss, and the third loss respectively. Considering that the range of each loss is different, a padding operation is used to make them consistent with each other. Then minimize the first objective function J:

[0069]

[0070] swt T 1 l =1,w≥0

[0071] Furthermore, the first objective function J is rewritten into the form of augmented Lagrangian:

[0072]

[0073] After the above process, the optimization process of the Pareto optimal causal effect estimation module can be expressed as:

[0074]

[0075] In the k-th optimization step, the weight parameter w of the first total loss is optimized by the Pareto optimization algorithm, and the update direction d=Gw of the Pareto optimal causal effect estimation module is obtained by using the optimized weight parameter of the first total loss and the gradient vector of the first total loss. Then, the parameter ξ of the Pareto optimal causal effect estimation module can be updated in the following form:

[0076] ξ k+1 =ξ k -ηd

[0077] Among them, w l ∈{w1,w2,w3} represents the lth hyperparameter; represents the derivative of the gradient of the parameter ξ of the Pareto optimal causal effect estimation module; represents the square of the 2-norm; T represents transpose; 1 l represents the unit matrix; st represents the constraint condition; L represents the number of loss functions. In the Pareto causal effect estimation module, L = 3; μ and ρ represent the Lagrangian operator and the augmented Lagrangian operator respectively; I represents the unit matrix; d is the optimal direction in the k-th step optimization; η is the step size.

[0078] S2. Input the characteristic data X of the patient to be predicted into the Pareto optimal strategy learning module that has been iteratively trained in the second training phase to obtain the optimal drug treatment dose for the patient to be predicted. The Pareto optimal strategy learning module includes a strategy learning network Π(·).

[0079] After the Pareto optimal causal effect estimation module has been iteratively trained in the first training phase alone, the parameters of the Pareto optimal causal effect estimation module are fixed, and the patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation finally output by the Pareto optimal causal effect estimation module are obtained. The patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation are used to perform iterative training of the Pareto optimal strategy learning module in the second training phase.

[0080] It should be noted that in each round of training in the second training phase of the Pareto optimal strategy learning module, the present invention fixes the parameter ξ of the Pareto optimal causal effect estimation module to obtain the patient long-term recovery rate prediction result finally output by the Pareto optimal causal effect estimation module. Prediction results of patients' short-term recovery rate and the second representation Φ(X), obtain the Pareto optimal strategy learning module parameters updated in the previous round of training, input the feature data X of the patient to be predicted into the strategy learning network Π(·), and obtain the optimal drug treatment dose for the patient to be predicted The optimal drug treatment dose for the patient to be predicted Input into the first representation learning network Ψ(·) to obtain the third representation The second representation Φ(X) and the third representation Perform horizontal splicing to obtain the spliced ​​vector The concatenated vector Input to the short-term counterfactual prediction network h s In this paper, we get new prediction results of short-term recovery rate of patients The concatenated vector Short-term recovery rate prediction results for new patients Perform horizontal splicing to obtain a new intermediate vector The new intermediate vector is input into the long-term counterfactual prediction network h y New patient long-term recovery rate prediction results were obtained Based on the new patient short-term recovery rate prediction results and the true value of the patient's short-term recovery rate s * Calculate the fourth loss R s , based on new patient long-term recovery rate prediction results And the true value of the patient's long-term recovery rate y * Calculate the fifth loss R y , with the fourth loss R s and the fifth loss R y The weighted sum is used as the second total loss, and the second total loss and the Pareto optimization algorithm are used to update the parameters of the Pareto optimal strategy learning module. The training is continuously iterated until the Pareto optimal strategy learning module converges, and finally the training is completed to obtain a trained Pareto optimal strategy learning module.

[0081] It should also be noted that step S2 of the present invention mainly includes strategy learning and Pareto strategy learning optimization process. First, the covariate is given to predict the optimal value of the intervention variable; then, combined with the Pareto optimal strategy learning module trained in step S1, the long-term and short-term potential results corresponding to the optimal intervention variable are predicted, and the corresponding regret loss of the two is calculated. Finally, the Pareto optimization algorithm is used to weigh the two regret losses and select the optimal optimization direction of the Pareto optimal strategy learning module.

[0082] The specific implementation of the above step S2 is described in detail below with reference to the accompanying drawings. Figure 2 In the lower left half of , the present invention shows the processing flow of the Pareto optimal strategy learning module.

[0083] 4) In strategy learning, given the covariate, a strategy network Π(·) is learned to predict the best value of the intervention variable Through the short-term counterfactual prediction network h trained in step S1 s (·) and the long-term counterfactual prediction network h y (·), and obtain the new patient short-term and long-term recovery rate prediction results corresponding to Π(X). Using two regret functions: the fourth loss R s and the fifth loss R y To constrain the learning of the best strategy, finally use the Pareto optimization algorithm to perform joint optimization between the two learning objectives and select the best optimization direction of the Pareto optimal strategy learning module.

[0084] In the present invention, the fourth loss R s The functional form is:

[0085]

[0086] in, represents the maximum value of the true value of the short-term recovery rate of the i-th patient; Indicates horizontal splicing; represents the i-th third representation value; Represents the predicted value of the short-term recovery rate of the i-th new patient.

[0087] In the present invention, the fifth loss R y The functional form is:

[0088]

[0089] in, represents the predicted result value of the long-term recovery rate of the i-th new patient; Represents the maximum value of the true value of the long-term recovery rate of the i-th patient.

[0090] 5) In the Pareto strategy learning optimization process, similar to step 3), firstly, the fourth loss R s And the fifth loss R y The weighted sum is the second total loss R = w4*R s +w5*R y ,in represents a hyperparameter, such as Figure 4 As shown, first find the gradients of the two components in the second total loss R Then, the Pareto optimization algorithm is used to convert the trade-off between the two tasks into a continuous Pareto optimization problem. Finally, the Pareto optimization direction is explored and the parameters of the Pareto optimal strategy learning module are updated. Combined with step S1, the overall process of the Pareto optimization algorithm updating the parameters of the two network modules is as follows: Figure 5 shown.

[0091] It should also be noted that in the embodiment of the present invention, the above-mentioned first representation learning network, second representation learning network, short-term counterfactual prediction network, long-term counterfactual prediction network and strategy learning network all adopt multi-layer perceptron MLP, which will not be repeated here.

[0092] In order to better demonstrate the specific implementation and technical effects of the present invention, a Pareto optimal causal effect estimation and strategy learning prediction method shown in steps S1-S2 in the above preferred implementation is applied to a specific example.

[0093] Example

[0094] This embodiment is conducted on a public data set of a certain country, the Infant Health and Development Program (IHDP), the impact of vocational training on future employment (Jobs), and the impact of weight on twin survival rate (Twins), as well as a simulation data set. The data set of a certain country is not introduced, and only the effect of the present invention in the data set is shown.

[0096] The Infant Health and Development Project (IHDP) dataset is a longitudinal study conducted in the United States from 1985 to 1993 to study the impact of low birth weight and preterm birth on the future development of infants (measured by cognitive test scores). There are 25 covariates covering various aspects of infants and their mothers, such as neonatal health index, prenatal care, mother's age, education level, etc. This example uses these covariates to generate continuous intervention variables, short-term outcomes, and long-term outcomes:

[0097]

[0098] The Jobs dataset contains information such as age, education level, and previous income in the covariate X. Similar to the generation formula of the IHDP dataset, this example uses 17 covariates to generate intervention variables and outcome variables through the following formula:

[0099]

[0100] The Twins dataset collects all babies born in the United States from 1989 to 1991, and twins weighing less than 2 kg have complete and non-missing characteristic records. Covariates measure information on 38 dimensions, including pregnancy, quality of care, pregnancy risk factors, and place of residence. In the experiment of this example, interventions, long-term and short-term results are generated through covariates:

[0101]

[0102] Considering the diversity of covariates and sample numbers, this embodiment also generates a 2D covariate simulation data set, which contains a total of 20,000 samples. Each dimension of the covariate follows a uniform distribution X i ~U(0,2). The rules for intervention allocation and two outcome generation are as follows:

[0103]

[0104] Since the covariates of the three semi-synthetic data sets and the simulated data set are very different, this embodiment adopts different generation rules to ensure that the short-term results S and the long-term results Y show conflicting trends as the intervention T changes.

[0105] In this embodiment, 50 points are uniformly selected within the possible interval of T as the t of the counterfactual prediction. cf The mean square error (MSE) is used to evaluate the capability of each module of the present invention. After randomly selecting 10 seeds to train each module of the present invention, all results are presented in the form of (mean ± standard deviation).

[0106] Table 1 Results of causal effect estimation on a certain dataset

[0107]

[0108] The experimental results of the XXX dataset are shown in Table 1. The treatment here is binary, and only crimes in the XXX city are considered as the treatment group (implementing bail reform). For each sample in the treatment group, this embodiment finds the three most similar samples with the highest Pearson correlation coefficient from the control group. This embodiment calculates the weighted average of the selected sample results as the ground truth for counterfactual prediction. According to the results of Table 1, the method of the present invention has achieved significant improvement over the baseline method, which includes the TarNet model, the DRNet model, the VCNet model, and the CFR model. Among them, TarNet is a representation network model for intervention unknowns, which comes from the prior art literature: Uri Shalit, Fredrik D.Johansson, and David Sontag. Estimating individual treatment effect: generalization bounds and algorithms [C]. In Proceedings of the 34th International Conference on Machine Learning, 2017, p3076–3085. DRNet is a dose-response network model, which is derived from the prior art literature: SchwabPatrick, Linhardt Lorenz, Bauer Stefan, Buhmann Joachim M., and KarlenWalter. Learning Counterfactual Representations for Estimating IndividualDose-Response Curves[C]. In the 34th AAAI Conference on ArtificialIntelligence, 2020, p5612-5619. VCNet is a time-varying factor neural network model, which is derived from the prior art literature: Lizhen Nie, Mao Ye, Qiang Liu, and Dan Nicolae. VCNet and Functional Targeted Regularization For Learning Causal Effects of Continuous Treatments[C]. In 9th International Conference on Learning Representations, 2021.CFR is a counterfactual regression model, which is derived from the prior art literature: Uri Shalit, Fredrik D. Johansson, and David Sontag. Estimating individual treatment effect: generalization bounds and algorithms [C]. In Proceedings of the 34th International Conference on Machine Learning, 2017, p3076–3085.

[0109] Table 2 Results of causal effect estimation on the simulation dataset

[0110]

[0111] The results on the simulation data set are shown in Table 2. Due to the large amount of training data, each network model has been extensively trained, so the error values ​​are relatively low. Even when the baseline methods all perform well, the method proposed in this invention still achieves a significant improvement of one order of magnitude.

[0112] Table 3 Results of causal effect estimation on semi-synthetic dataset

[0113]

[0114] The experimental results on three semi-synthetic datasets are shown in Table 3. The method of the present invention is always better than the four baseline methods in all datasets. On the IHDP dataset, the method of the present invention achieved the lowest mean square error. In the Jobs dataset, the method of the present invention showed significant advantages in accuracy and stability. The Twins dataset is less challenging because there are a sufficient number of samples for training. Although all baseline methods performed well on this dataset, the method of the present invention still achieved the best performance.

[0115] The visualization of the second stage of strategy learning in this embodiment is as follows Figure 6 As shown, the x-axis corresponds to the short-term result, the y-axis represents the value of the intervention T, and the z-axis represents the long-term result. The embodiment of the present invention discretizes the interval of T, and uses the generation formula to obtain the corresponding short-term and long-term results (gray points), and further explores the Pareto frontier (blue). Strategy learning optimal intervention value t * The corresponding long-term and short-term results are marked with red stars. It can be seen that the red stars are located on the Pareto frontier, and the effectiveness of each network module of the present invention has been verified in each data set.

[0116] In summary, in view of the possible conflict between long-term and short-term causal effects, the present invention discloses a Pareto optimal causal effect estimation and strategy learning prediction method, which aims to solve the problem that there may be conflict between long-term and short-term causal effects. The present invention uses a two-stage method. In the first stage, a balance constraint is imposed in the representation generation process, and an accuracy constraint is imposed in the counterfactual inference process. Multiple modules promote or compete with each other, and finally the Pareto technique is used for dynamic trade-offs in the joint optimization of multiple learning objectives. The second stage aims to predict the optimal intervention variable value corresponding to a given covariate, so as to achieve Pareto optimal long-term and short-term potential results. The present invention comprehensively studies the complexity of optimizing treatment and its impact on multiple results. In view of the possible conflict between long-term and short-term results, a novel Pareto optimization algorithm is introduced, which integrates a continuous Pareto boundary exploration algorithm and a representation balance constraint, and significantly improves the accuracy of multiple causal effect estimation tasks. At the same time, based on the Pareto optimal causal effect estimation module, the Pareto optimal strategy learning module is trained, which can determine the optimal value of the intervention variable, so that the short-term and long-term effects predicted by it have Pareto optimality.

[0117] It should also be noted that the Pareto optimal causal effect estimation and strategy learning method in the above embodiment can essentially be executed by a computer program or module. Therefore, similarly, based on the same inventive concept, another preferred embodiment of the present invention also provides a Pareto optimal causal effect estimation and strategy learning prediction system corresponding to the Pareto optimal causal effect estimation and strategy learning prediction method provided in the above embodiment, such as Figure 7 As shown, it includes:

[0118] The first prediction module is used to input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module to obtain the patient's short-term recovery rate result and the patient's long-term recovery rate results, completing the causal effect estimation based on Pareto optimization; the Pareto optimal causal effect estimation module includes a first representation learning network, a second representation learning network, a short-term counterfactual prediction network and a long-term counterfactual prediction network;

[0119] The second prediction module is used to input the characteristic data of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose of the patient to be predicted. The Pareto optimal strategy learning module includes a strategy learning network.

[0120] Therefore, based on the same inventive concept, another preferred embodiment of the present invention also provides a computer-readable storage medium corresponding to a Pareto optimal causal effect estimation and strategy learning prediction method provided in the above embodiment, and a computer program is stored on the storage medium. When the computer program is executed by the processor, it can implement a Pareto optimal causal effect estimation and strategy learning prediction method in the above embodiment.

[0121] It is understandable that the above storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. The storage medium may also be a U disk, a mobile hard disk, a magnetic disk or an optical disk, etc., which can store program codes.

[0122] It is understandable that the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0123] It should also be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the various embodiments provided in this application, the division of steps or modules in the system and method is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or steps can be combined or integrated together, and a module or step can also be split.

[0124] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A Pareto optimal causal effect estimation and strategy learning prediction method, characterized in that: The following steps are involved: S1. Input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module, obtain the short-term recovery rate result of the patient and the long-term recovery rate result of the patient, and complete the causal effect estimation based on Pareto optimization; the Pareto optimal causal effect estimation module includes a first representation learning network, a second representation learning network, a short-term counterfactual prediction network and a long-term counterfactual prediction network; S2. Inputting the characteristic data of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose of the patient to be predicted, wherein the Pareto optimal strategy learning module includes a strategy learning network; After the Pareto optimal causal effect estimation module has been iteratively trained in the first training phase alone, the parameters of the Pareto optimal causal effect estimation module are fixed, and the patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation finally output by the Pareto optimal causal effect estimation module are obtained. The patient's long-term recovery rate prediction result, the patient's short-term recovery rate prediction result and the second representation are used to perform iterative training of the Pareto optimal strategy learning module in the second training phase.

2. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 1, characterized in that: In each round of training of the first training stage of the Pareto optimal causal effect estimation module, the parameters of the Pareto optimal causal effect estimation module updated in the previous round of training are obtained, the drug intervention dosage data of the patient to be predicted is input into the first representation learning network to obtain a first representation, and the characteristic data of the patient to be predicted is input into the second representation learning network to obtain a second representation; horizontally concatenating the first representation and the second representation to obtain a combined vector, inputting the combined vector into the short-term counterfactual prediction network to obtain a short-term recovery rate prediction result of the patient, horizontally concatenating the combined vector with the short-term recovery rate prediction result of the patient to obtain an intermediate vector, inputting the intermediate vector into the long-term counterfactual prediction network to obtain a long-term recovery rate prediction result of the patient; A first loss is calculated based on the drug intervention dosage data of the patient to be predicted and the second representation, a second loss is calculated based on the patient's short-term recovery rate prediction result and the patient's true short-term recovery rate value, and a third loss is calculated based on the patient's long-term recovery rate prediction result and the patient's true long-term recovery rate value. The weighted sum of the first loss, the second loss and the third loss is taken as the first total loss, and the first total loss and the Pareto optimization algorithm are used to update the parameters of the Pareto optimal causal effect estimation module. The training is continuously iterated until the Pareto optimal causal effect estimation module converges, and finally the training is completed to obtain a trained Pareto optimal causal effect estimation module.

3. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 2, characterized in that: In each round of training of the second training phase of the Pareto optimal strategy learning module, the parameters of the Pareto optimal strategy learning module updated in the previous round of training are obtained, the characteristic data of the patient to be predicted is input into the strategy learning network to obtain the optimal drug treatment dose of the patient to be predicted, the optimal drug treatment dose of the patient to be predicted is input into the first representation learning network to obtain a third representation, the second representation and the third representation are horizontally spliced ​​to obtain a spliced ​​vector, the spliced ​​vector is input into the short-term counterfactual prediction network to obtain a new patient short-term recovery rate prediction result, and the spliced ​​vector is horizontally spliced ​​with the new patient short-term recovery rate prediction result. Horizontally splicing to obtain a new intermediate vector, input the new intermediate vector into the long-term counterfactual prediction network to obtain a new patient long-term recovery rate prediction result; calculate the fourth loss based on the true value of the patient's short-term recovery rate and the new patient short-term recovery rate prediction result, calculate the fifth loss based on the true value of the patient's long-term recovery rate and the new patient long-term recovery rate prediction result, take the weighted sum of the fourth loss and the fifth loss as the second total loss, use the second total loss and the Pareto optimization algorithm to update the Pareto optimal strategy learning module parameters, continuously iterate the training until the Pareto optimal strategy learning module converges, and finally complete the training to obtain a trained Pareto optimal strategy learning module.

4. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 2, characterized in that: The first loss L MI The functional form is: Where n represents the total number of characteristic data of the patient to be predicted; log q θ (t i |Φ(x i )) represents the positive sample pair (t i |Φ(x i ))'s conditional log-likelihood; log q θ (t j |Φ(x i )) represents the negative sample pair (t j |Φ(x i ))'s conditional log-likelihood; t i ,t j Respectively represent the drug intervention dosage data of the i-th and j-th patients to be predicted; Φ(x i ) represents the i-th second representation value; Φ(·) represents the second representation learning network; μ θ (Φ(x i ))、Var θ (Φ(x i )) corresponds to the variational distribution q θ (Φ(x i ))’s mean and variance.

5. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 4, characterized in that: The second loss L s The functional form is: in, represents the predicted value of the short-term recovery rate of the i-th patient; s i Represents the true value of the short-term recovery rate of the i-th patient.

6. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 4, characterized in that: The third loss L y The functional form is: in, represents the predicted value of the long-term recovery rate of the i-th patient; y i Represents the true value of the long-term recovery rate of the i-th patient.

7. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 4, characterized in that: The fourth loss R s The functional form is: in, represents the maximum value of the true value of the short-term recovery rate of the i-th patient; represents horizontal splicing; Ψ(·) represents the first representation learning network; represents the i-th third representation value; h represents the predicted value of the short-term recovery rate of the i-th new patient; s (·) represents the short-term counterfactual prediction network.

8. A Pareto optimal causal effect estimation and strategy learning prediction method as claimed in claim 7, characterized in that: The fifth loss R y The functional form is: in, represents the predicted result value of the long-term recovery rate of the i-th new patient; represents the maximum value of the true value of the long-term recovery rate of the i-th patient; h y (·) represents the long-term counterfactual prediction network.

9. A Pareto optimal causal effect estimation and strategy learning prediction system, characterized in that: include: The first prediction module is used to input the characteristic data of the patient to be predicted and the drug intervention dosage data of the patient to be predicted into the trained Pareto optimal causal effect estimation module to obtain the patient's short-term recovery rate result. and the patient's long-term recovery rate results, completing the causal effect estimation based on Pareto optimization; the Pareto optimal causal effect estimation module includes a first representation learning network, a second representation learning network, a short-term counterfactual prediction network and a long-term counterfactual prediction network; The second prediction module is used to input the characteristic data of the patient to be predicted into the trained Pareto optimal strategy learning module to obtain the optimal drug treatment dose of the patient to be predicted. The Pareto optimal strategy learning module includes a strategy learning network.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, a Pareto optimal causal effect estimation and strategy learning prediction method as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Embolism and hemorrhage risk prediction method and system based on causal Transform model

    CN120183709A

  • Training of a model for causal inference

    WO2026102592A1