Who should be treated? Medical AI and causal decision-making
High risk and high treatment benefit are two distinct properties. Personalised medicine advances when AI helps people understand not only the expected event but also the consequences of a decision.
How this was made: this essay was written by the author's own research and analysis system from the cited sources; Zoltán Varga edited the topic, structure and final text. The cited works are the source of its factual claims.
Medical systems that predict risk regularly leave a seemingly simple question unanswered: what changes if someone makes a decision on the basis of the alert? I see the next step of personalised medicine in this question, because knowing the expected event and knowing the consequence of a decision are two separate kinds of knowledge. The second requires, beyond the volume of data, a suitable comparison, clear assumptions and goals that matter to the patient.
In a thought experiment, a hospital system flags two patients with a red alert. Both have a high estimated probability of deterioration in the next month. The first patient's condition can be improved significantly with a targeted intervention. For the second, the same intervention promises little benefit, while it may impose a heavy burden. The risk score is similar, yet the right decision differs.
In the example, the prediction system may even be accurate. The missing information is what would happen after each of the two possible decisions. One of the most important next tasks for medical AI is to address this difference, and with that the question shifts from the probability of disease towards a situation that can be improved.
One person has several possible futures
The effect of a treatment would require comparing two futures. One would have to observe the same person both with treatment and without it. In reality only one of these paths occurs, and the other possible outcome can be estimated from suitable comparison data. The textbook by Guido W. Imbens and Donald B. Rubin, Causal Inference for Statistics, Social, and Biomedical Sciences, builds on this idea: in the authors' conception every causal question is tied to a specific intervention and can be written as a comparison of potential outcomes, where each potential outcome corresponds to one level of the treatment 1.
That is why it is decisive whom the analysis compares the patient with. People in a more serious condition often receive more intensive care. If they later show worse outcomes, that alone does not establish that the more intensive care caused the difference. The baseline condition can influence both the choice of treatment and the outcome.
Causal analysis tries to uncover this structure. The basic methodological idea is that the intervention question to be answered and the comparison must be defined first, and the analytical procedure follows from them. Miguel A. Hernán and James M. Robins's 2016 study, Using Big Data to Emulate a Target Trial When a Randomized Trial Is Not Available, offers one detailed version of this with its target trial emulation framework 2.
A language model can bridge this evidentiary gap particularly easily with fluent text. A convincing explanation, however, is a different outcome from a properly identified treatment effect. A clinical application must indicate precisely which of the two it has. In my view, this is the developer's first design obligation: the interface must separate the estimated risk, the effect supported by a study and the mere textual justification.
The value of randomisation is a fair comparison
The purpose of random group assignment is to make the choice of treatment independent of the patient's known or hidden characteristics. Thus, under suitable conditions, a later difference between the groups can be linked to the intervention studied. The strength of the method comes from control over the decision process.
The 2015 report by the SPRINT Research Group, A Randomized Trial of Intensive versus Standard Blood-Pressure Control, compared two blood-pressure management strategies in a randomised trial among adults with elevated cardiovascular risk and without diabetes. The more intensive strategy improved certain important outcomes, although some adverse events were more frequent. The result called for weighing benefit and burden together in a specific population 3.
The methodological significance of the example is greater than a single treatment target, and here too it only illustrates the structure of the evidence. The success of a treatment is shaped by several outcomes, and different patients may value the same result differently. For one person, preventing a later event may come to the fore; for another, everyday functioning and the burden of care.
From a randomised trial, therefore, further interpretive work leads to the individual decision. One must examine how far the person resembles the participants, which outcome matters to them, and how much uncertainty remains around the personal gain.
Differences may lie behind the average effect
Treatment effect heterogeneity means that the expected benefit may differ between patients. The 2020 statement by David M. Kent and colleagues, The Predictive Approaches to Treatment effect Heterogeneity (PATH) Statement, distinguishes two approaches. One examines how the expected benefit differs by baseline risk; the other directly models interactions between the treatment and patient characteristics 4.
In a hypothetical example of my own, the same treatment reduces risk by one quarter in relative terms. With a baseline risk of twenty per cent, that is an absolute difference of five percentage points; with a baseline risk of four per cent, it is one percentage point. The relative effect is the same, but the size of the expected benefit differs. The calculation is an illustration and makes no claim about any specific treatment.
The situation becomes more complex when the risk of side effects also changes. A greater expected benefit may come with a greater burden, and quality-of-life considerations may call for further weighing. A single ranking makes this hard to present transparently.
Personalisation is therefore more than a system writing an individual score on the screen. Behind the score there must be an account of what outcomes people in similar situations could expect under which alternatives, and how much of that can be carried over to the decision at hand.
The causal forest estimate also rests on assumptions
The 2018 study by Stefan Wager and Susan Athey, Estimation and Inference of Heterogeneous Treatment Effects using Random Forests, developed a method called the causal forest for estimating differences in treatment effects. The approach combined the flexible pattern recognition of machine learning with statistical inference, and the proof depends on specific data-generating and methodological conditions 5.
Flexibility can be useful when the complex relationships of many patient characteristics have to be examined. However, a larger model does not by itself make up for missing comparative information. If a patient group almost always received the same treatment, little direct data is available on the consequences of the other option.
In an imaginary database, for example, hardly anyone among the oldest patients receives a new intervention. The system can produce a numerical estimate for them, but a significant part of it may be an extension of an association fitted to other groups. A good interface would convey this distance as well.
Showing uncertainty is therefore part of personalisation. A number that looks overly detailed can easily suggest more knowledge than the data actually contain. Clinical usefulness is served when the strength of the conclusion is visible alongside the estimate.
A 2025 preprint by Pawel Morzywolek and colleagues, Inference on Variable Importance for Treatment Effect Heterogeneity: Shapley Values and Beyond, points in this direction. The authors start from the observation that in medicine, decision-makers are reluctant to rely on treatment recommendations from opaque, so-called black-box algorithms, and they therefore propose a statistical framework that examines which characteristics matter in differences in effect. The importance measure may differ from one individual to another, and the statistical test answers whether a given characteristic is important for anyone; according to the authors, the procedure remains valid even when the differences in effect are estimated with machine learning 6. The paper is methodological work, and its abstract mentions an infection-prevention application as an illustration, so it does not report any clinical benefit.
A study must be built deliberately from hospital data
Target trial emulation first spells out which randomised trial would need to be conducted, then examines which of its elements can be approximated with the available observational data. Eligibility, treatment strategies, the start of follow-up and the outcome are all part of the design 2.
The start time is particularly instructive. A patient has to survive and remain in care until a later-starting treatment is received. If the analysis classifies this period incorrectly, the treatment can appear artificially favourable. The problem arises in the study design, so its solution must also be sought there.
Meanwhile, data richness offers a real advantage. Longer processes and rarer situations can be followed that are hard to study in a single experiment. Hernán and Robins's textbook, Causal Inference: What If, states the situation more generally: the randomised experiment is at the centre of causal inference theory, but in practice many scientific studies are observational, and a significant part of human knowledge comes from such studies 7. Methodological rigour is precisely what helps turn the advantage of data richness into credible knowledge.
Observational results and randomised evidence can thus together build a more accurate picture. Their divergence may be an interesting signal about the population, the implementation or measurement error. Neither data source's label makes understanding the analysis unnecessary.
The framework also has its own room for error. Mats Julius Stensrud's 2026 preprint, Sample splitting for valid statistical inference in target trial emulations, points out that in practice the protocol of a target trial usually evolves step by step: after familiarising themselves with the data, researchers modify the plan to fit what the observational data actually allow. This is part of ordinary scientific work, but it raises the risk of selective choice and invalid statistical inference. The proposed procedure is to split the data in two: on the first part, researchers explore the data and fix the protocol, and on the second they carry it out. According to the author, clinical trials proceed in a similar way, from the pilot stage to phase three 8.
Local sample size is a further limitation. A 2021 preprint by Xiaoqing Tan and colleagues, A Tree-based Model Averaging Approach for Personalized Treatment Effect Estimation from Heterogeneous Data Sources, starts from the situation in which the data of a single hospital often prove insufficient for accurately estimating a personalised effect, while privacy concerns and lack of resources hinder the transfer of patient-level data from other institutions. The authors' decision-tree-based model averaging uses models fitted at other institutions in such a way that individual data remain local, while also modelling the differences between institutions. They demonstrated the method on simulations and on an analysis of real data examining hospital survival 9. This allows a conclusion about the method's workability, but no finding about clinical practice follows from it.
The patient's own goal is part of a good decision
A clinical decision-support system could show several kinds of outcomes side by side. Expected benefit, side effects, treatment burden and the uncertainty of the estimate together may provide more substantive information than a single recommended choice.
In this system, the conversation between doctor and patient becomes more concrete. It may turn out that a small statistical advantage comes with a significant burden on lifestyle, or that an easily implemented change offers a considerable gain. The meaning of the decision arises from the meeting of data and the human situation.
The strong case for the technology is that people find it hard to weigh such complex trade-offs across many variables unaided. That is a good reason to support the calculation. Whether the task succeeds, however, is shown by whether the new workflow produces better decisions and better outcomes.
This question can be measured. According to Adam Kapelner and colleagues' 2014 preprint, Evaluating the Effectiveness of Personalized Medicine with Software, one practical obstacle to personalisation is precisely the lack of evaluation: practitioners have no simple way to judge whether their procedure is better than the standard of care. The authors' open-source software starts from the data of a randomised trial and a model fitted to the outcome, then, on data not used when fitting the model, estimates how much improvement can be expected for an average future patient, together with an uncertainty range. The estimate is valid under the assumption that future patients resemble the trial participants, and the method was demonstrated on simulated data and on data from a randomised comparative trial 10.
What an organisation needs to know about its own system
From the above, I conclude that an organisation introducing medical AI needs to know its own system before letting its output near a decision. The starting point is to clarify whether the system estimates risk or effect, because the two mean different data, a different study design and a different burden of proof. If it estimates effect, the next question is the comparison behind the estimate: a randomised trial, an observational analysis emulating a target trial, or the extension of an association fitted to other groups. The size of the uncertainty and the range of patient groups barely covered by the data depend on this, and the organisation also needs to know whether all of this reaches the person sitting in front of the screen.
For the developer, the same point is a design requirement. The score must be accompanied by information on which alternatives it was derived from, how uncertain it is, and which of the patient's goals it relates to. On the payer's side, the same point becomes a set of questions: besides the accuracy of the risk estimate, the payer should also ask whether use of the system has been shown in a study to improve decisions and outcomes. For me, the profession's responsibility begins where it treats a fluent explanation and an identified effect as two separate achievements.
Once the risk is recognised, the question is the consequence
Next-generation medical AI, after identifying high risk, keeps asking: which option actually changes the situation, for whom, at what cost and with what certainty. This is what turns personalisation from a detailed data sheet into real decision support. I consider a system mature if it shows these four answers together with its estimates and states when they are missing.
Recommended reading
- Using Big Data to Emulate a Target Trial When a Randomized Trial Is Not Available (Hernán, M. A. and Robins, J. M). The foundational text on target trial emulation, showing how a deliberately designed causal analysis can be constructed from observational data.
- Causal Inference for Statistics, Social, and Biomedical Sciences (Guido W. Imbens, Donald B. Rubin). A systematic textbook on the potential outcomes approach, which teaches how to formulate a causal question as a comparison tied to interventions.
- Causal Inference: What If (Miguel A. Hernán, James M. Robins). A textbook on causal inference that covers the relationship between randomised experiments and observational studies step by step.
- The Predictive Approaches to Treatment effect Heterogeneity (PATH) Statement (Kent, D. M. et al.). The PATH statement systematises how heterogeneity of treatment effect between patients can be examined using predictive approaches.
- Estimation and Inference of Heterogeneous Treatment Effects using Random Forests (Wager, S. and Athey, S). The paper introducing the causal forest method, which links machine learning with statistical inference in estimating differences in treatment effects.
Sources
- [1] Guido W. Imbens, Donald B. Rubin (2015): Causal Inference for Statistics, Social, and Biomedical Sciences.
- [2] Hernán, M. A. and Robins, J. M (2016): Using Big Data to Emulate a Target Trial When a Randomized Trial Is Not Available. American Journal of Epidemiology, 183, 758–764.
- [3] SPRINT Research Group (2015): A Randomized Trial of Intensive versus Standard Blood-Pressure Control. New England Journal of Medicine, 373, 2103–2116.
- [4] Kent, D. M. et al. (2020): The Predictive Approaches to Treatment effect Heterogeneity (PATH) Statement. Annals of Internal Medicine, 172, 35–45.
- [5] Wager, S. and Athey, S (2018): Estimation and Inference of Heterogeneous Treatment Effects using Random Forests. Journal of the American Statistical Association, 113, 1228–1242.
- [6] Pawel Morzywolek, Peter B. Gilbert, Alex Luedtke (2025): Inference on Variable Importance for Treatment Effect Heterogeneity: Shapley Values and Beyond. arXiv.
- [7] Miguel A. Hernán, James M. Robins (2020): Causal Inference: What If.
- [8] Mats Julius Stensrud (2026): Sample splitting for valid statistical inference in target trial emulations. arXiv.
- [9] Xiaoqing Tan, Chung-Chou H. Chang, Ling Zhou, Lu Tang (2021): A Tree-based Model Averaging Approach for Personalized Treatment Effect Estimation from Heterogeneous Data Sources. arXiv.
- [10] Adam Kapelner, Justin Bleich, Alina Levine, Zachary D. Cohen et al. (2014): Evaluating the Effectiveness of Personalized Medicine with Software. arXiv.