Abstract
Causal inference, or the task of estimating the causal effect of an exposure or interventional variable on an outcome from an observational dataset, requires precise and rigorous methods, based on assumptions about the system under study. Such assumptions can be articulated as a causal diagram, however use of this technique in medicine is uncommon due to challenges in causal diagram construction in high-dimensional settings. Recent introduction of cluster causal diagrams or C-DAGs promise to ease the task of diagram construction by allowing for the representation of some unknown or partially defined relationships. We evaluate the practical application of C-DAGs in simulated medical contexts. We estimate causal effects under varying sets of assumptions, determined by both causal diagrams and C-DAGs and compare our results. Our findings show empirically similar results, with little discrepancy between causal effect sizes or variance across experimental runs, although estimation and efficiency challenges remain to be explored.
Introduction
Determining the causal effect of one variable on another from observational data is a critical task in informatics for goals including assessing comparative safety and effectiveness of drugs or procedures, determining public health interventions, and other methods for improving patient outcomes1-4. Assumptions are required to perform causal inferences from observational data, and while popular informatics approaches to determining causal effects, such as those utilizing propensity scores5-6, have familiar assumptions, these assumptions may not apply for all questions or contexts. Other approaches to causal inference leverage graphical models known as causal diagrams1 which make explicit underlying assumptions, through representing an abstracted form of the functional models that show how variables in a system causally relate. In causal diagrams, the nodes are observed or unobserved variables and the edges are causal relationships between these variables. An edge is drawn from one variable X to another Y if X causes Y and a bidirected edge is drawn between two variables if there is unobserved confounding between them. Through a task known as identification7-11, causal diagrams are used to determine an expression of probabilities to precisely yield an unbiased causal effect, which is often, though not always, possible. In this latter case an effect is “not identifiable”1 due to lacking knowledge or data in the presence of certain confounding. When the expression of probabilities can be determined, it can then be estimated from data. One challenge with the methodology associated with causal diagrams, however, is that significant knowledge is required to completely articulate system assumptions in a causal diagram12. Specifically, one needs to have knowledge of the presence of causal and confounding relationships between all pairs of variables, which may be difficult in high-dimensional and complex settings like medicine.
Previously, cluster directed acyclic graphs (C-DAGs) also known as cluster causal diagrams12 have been introduced to allow for a graphical representation of groupings of nodes. In these diagrams, some set of variables among which the relationships may be only partially known or may be too cumbersome to explicitly define, can be grouped together as a cluster. Causal and confounding information pertaining to only a few variables in the cluster can be leveraged to construct the C-DAG, while the remaining relationships between all pairs of variables need not be defined. A number of properties of causal diagrams are proven to extend to cluster causal diagrams, providing clinicians and biomedical scientists a new theoretical framework to represent incomplete domain knowledge and allow for some ambiguity, enabling informatics researchers to leverage meaningful representations of knowledge into observational clinical studies on causality. Causal diagrams and C-DAGs are mathematically strong, with foundations for theoretically providing precise causal effect estimates. Yet, causal diagrams have seen little use in medicine, with approaches using propensity scores seeing more popularity due in part to perceived ease of use. Propensity scores consider groups of confounding variables in an abstracted way, but they come with a number of assumptions and stipulations which are inflexible and can yield incorrect estimations if inapplicable5-6. C-DAGs offer a method in between the coarseness of propensity scores and the rigidity of causal diagrams by allowing for domain knowledge to be exploited, while improving feasibility relative to causal diagrams. However, use of C-DAGs and associated causal effect estimation techniques have not yet been studied empirically, rendering their practical use uncertain.
We explore the practical use of C-DAGs in a simulated clinical context. We use the well-known ALARM (A Logical Alarm Reduction Mechanism) dataset13 and associated Bayesian network to evaluate how C-DAGs can be used for determining causal effects in practice and discuss the quality of estimation results relative to use of expanded knowledge in the form of causal diagrams.
Methods
Dataset
The ALARM dataset13 represents a system designed to provide an alarm message for monitoring patients under anesthesia. Simulated data is generated from a defined Bayesian network including 37 variables capturing diagnoses, measurements, and other intermediate variables, and 46 edges. All variables are either categorical or binary. The Bayesian network represents a causal diagram in that the edges represent causal relationships. There is no unobserved confounding between variables. We use the provided Bayesian network to generate datasets with 200,000 samples, which serve as the basis for our analysis.
Cluster Causal Diagram Construction
For our evaluation, we are interested in estimating the causal effect of high pulmonary venous oxygen saturation (PVS) on having normal blood pressure (BP). Note that while PVS is not a variable that could be easily intervened on in an experiment, the described causal effect is still one that can be estimated with a causal diagram and observational data and may inform clinical knowledge and patient care through drawing attention to important measurements to observe and regulate.
The Bayesian network that represents the data-generating process for the system serves as the true underlying causal diagram. In practice, this complete diagram is likely unavailable, but with some select information, we would be able to construct a cluster causal diagram. Firstly, the researcher must define a partition over the set of variables which determines which variables we wish to cluster together. The only requirement for grouping variables together in a cluster is that there are not conflicting causal relationships between variables in the cluster and those in other clusters so that acyclicity is preserved12; that is, if some variable in cluster X has a causal path to a variable in cluster Y, then no variable in Y can have a causal path to another variable in X. If the variables of arterial oxygen saturation (SAO2), catecholamine (CATECHOL), heart rate (HR) and cardiac output (CO) are all known to be causally affected by changes in pulmonary venous oxygen saturation, and cause changes to blood pressure, the four variables can be grouped together as a cluster, M, with an arrow pointing to the cluster from pulmonary venous oxygen saturation and with an arrow pointing to blood pressure. Similarly, if among the variables intubation (INT), ventilation tube (VTUB), kinked tube (KINK), lung ventilation (VLNG), shunt (SHUNT), pulmonary alveoli ventilation (VALV), arterial carbon dioxide (ARTCO2), and total peripheral resistance (TPR), it is known that at least one causes pulmonary venous oxygen saturation, at least one causes blood pressure, and at least one causes some variable in M, then we can group the aforementioned variables together as a cluster, Z, and draw an arrow pointing from the cluster to pulmonary venous oxygen saturation, an arrow to blood pressure, and an arrow to cluster M. The remaining variables in the Bayesian network will have no impact on our results and can be safely omitted from the cluster causal diagram and subsequent analyses, which we will do here, for simplicity. The completed cluster causal diagram can be found in Figure 1, and the included variables and clinical context in Table 1.
Figure 1.
ALARM Causal diagram with overlaid defined clusters (left) and the abstracted C-DAG representation (right).
Table 1.
Variables included in analysis.
| Variable | Abbreviation | Clinical context |
|---|---|---|
| Pulmonary venous oxygen | PVS | Of clinical interest, rarely measured |
| Blood pressure | BP | Commonly measured |
| Arterial oxygen saturation | SAO2 | Frequently measured in ICU |
| Catecholamine | CCHL | Of clinical interest, not measured regularly |
| Heart rate | HR | Commonly measured |
| Cardiac output | CO | Measured in ICU |
| Ventilation tube | VTUB | Frequently measured in ICU |
| Kinked tube | KINK | Possibly documented in notes |
| Intubation | INT | Frequently measured in ICU |
| Lung ventilation | VLNG | Calculated from measurable values |
| Shunt | SHUNT | Of clinical interest, not measured regularly |
| Pulmonary alveoli ventilation | VALV | Of clinical interest, not measured directly |
| Arterial CO2 | ARTCO2 | Frequently measured in ICU |
| Total peripheral resistance | TPR | Calculated from measurable values |
True Causal Effect Calculation
The true causal effect of pulmonary venous oxygen saturation on blood pressure can be determined by conditioning on the minimal adjustment set1, or the smallest set of variables that block all confounding paths, as determined by the causal diagram, between the exposure or intervention of interest, in our case, PVS, and the outcome, here BP. Using the full provided causal diagram, a minimal adjustment set can be determined to be pulmonary alveoli ventilation. Using this, we can precisely calculate the causal effect with the equation:
| (1) |
The Bayesian network describing the ALARM data-generating process includes probability tables for each node conditional on its parents, and through belief propagation through the network, the above quantity can be exactly determined based on the true probabilities provided. For all analyses we examine the case where PVS has a value of “high” and BP has a value of “normal”.
Causal Effect Estimation from Data
We illustrate causal effect estimation strategies using the available dataset and the C-DAG representation for different possible contexts. Firstly, we estimate the effect assuming the C-DAG illustrated in Figure 2a, using what is often referred to as the “back-door” formula1, where all variables in cluster Z are used as an adjustment set. Secondly, consider the possibility of at least one variable in cluster Z having confounding with the exposure variable, and at least one (possibly distinct) variable in cluster Z having confounding with the outcome variable. Assuming we have no additional information about the presence or lack of confounding between the variables in cluster Z and the exposure and outcome variables, this would lead to the construction of the C-DAG in Figure 2b, where we allow for the possibility of unobserved confounding between any variables in cluster Z and PVS and between Z and BP. This graphical structure is sometimes referred to as representing a “conditional front-door” graph1 as our estimation of the causal effect must leverage the mediators between the exposure and outcome (the “front-door” path) rather than the confounders (the “back-door” path). Lastly, we show implications of certain variables being unobserved as in Figure 2c, what additional knowledge would be required (Figure 2d) for the effect to be estimated, and what biases may be observed if no additional knowledge is able to render the effect identifiable. In one case, we assume that all mediators as well as TPR and SHUNT are unobserved and there is unobserved confounding between INT and BP, and between ARTCO2 and PVS. In another case, we can assume that all mediators as well as all variables in the Z cluster except ARTCO2 are unobserved, and we observe a biased effect estimate. For each example, we also calculate the effect using the simplified estimation expression for the analogous, DAG representations for the examples. For estimations, each probability value is determined by counting frequencies given conditional terms with smoothing. We compare the calculated effect to the determined true causal effect. For each example graph, we show average results and standard deviation (SD) over 10 experimental runs. We also include a finite sample analysis to explore findings under various sample size constraints.
Figure 2.
Possible C-DAG representations illustrating the system. (a): Where it is known that there is no unobserved confounding between clusters. (b): Where the possibility of unobserved confounding between the exposure and confounders, and the outcome and confounders is allowed for. (c): Where the same unobserved confounding in (b) is allowed for, with unobserved mediators, TPR, and SHUNT. The effect is not identifiable. (d): Illustration of example additional knowledge needed to determine the causal effect.
Analysis and Code
All analyses were done using R Statistical Software (version 4.3.2). R packages bnlearn (version 4.9.1) and gRain(1.4.1) were used for graphical construction, estimation of probabilities, and other analyses.
Results
Graphical analysis and estimation expressions
Fig. 2a (back-door): For the first analysis, cluster Z is considered as a single confounding entity to be adjusted for.
The causal effect is then estimated using the equation below.
| (2) |
where Z = {ARTCO2, INT, VTUB, KINK, VLNG, SHUNT, VALV, TPR}
Note that this equation is similar in structure to equation (1), but includes a greater number of variables for adjustment, as the relationship of these variables to the exposure and outcome are left ambiguous due to their inclusion in one cluster.
We compare estimation of this value to a backdoor estimation over the full causal diagram, where adjusting for the variable VALV is sufficient. This estimation includes probability values that are estimated from the data, whereas the calculation of the true causal effect in equation (1) uses gold standard, known probabilities.
| (3) |
Fig. 2b (front-door): In this context, adjusting for cluster Z alone is insufficient as doing so may allow for the possibility of confounding information to be passed between the exposure and outcome through Z. Equation (4) makes use of information in the mediator, avoiding residual bias from conditioning on cluster Z.
| (4) |
We compare estimation of this value to a conditional front-door estimation over the full causal diagram where CCHL is the only mediator variable used and SHUNT, VALV and TPR are sufficient confounding variables to adjust for.
| (5) |
Fig. 2c & 2d (latent variables, identifiable (ID)): Consider Figure 2c and our first scenario where all mediators, TPR and SHUNT, are unobserved and there is unobserved confounding between INT and BP, and between either ARTCO2 or VALV and PVS. As is, the information that is lost due to latent variables and due to abstraction through introducing the cluster, renders the effect for this context unidentifiable. That is, with the available data and assumptions in the C-DAG (Figure 2c), there is no way to eliminate all sources of bias. For the effect to be possibly identifiable here, additional knowledge is required to reconstruct the C-DAG. Note that the reason the effect for Figure 2c is unidentifiable is because there is a possibility that there is no additional knowledge to render the effect identifiable, and an unbiased effect is not possible to obtain (see the second scenario below). However, C-DAGs allow for abstractions that might mask an identifiable effect, which we will assume is the case here. As an example, if there were knowledge available such that the Z cluster could be broken down into Z2, containing ARTCO2 and VALV, intubation is pulled out to be its own cluster, and Z1 contains the remaining variables, and edges defined between these variables and the exposure, outcome, and clusters Z and M, as in Fig. 2d, there would be sufficient information for the effect to be identifiable. Important information needed to accomplish this includes that there is unobserved confounding only between INT and BP, and between either variable in Z2 and PVS. Importantly, we must know that there is no confounding between our two new clusters and Z1. Under this graph, the effect is identifiable by the equation below.
| (6) |
Note that this equation is similar in structure to equation (3), however, by incorporating clusters, the associated graph is still less cumbersome to define than the complete causal diagram. The analysis of equation (3) serves as our comparison for this example as well, as the full DAG for this example would yield the same simplified estimation.
Fig. 2c (latent variables, unidentifiable (non-ID)): Now we describe a second compatible scenario for Figure 2c in which all mediators as well as all variables in Z except for ARTCO2 are unobserved. Under this new context, the latent variables create an unobserved confounding between ARTCO2 and PVS, and between ARTCO2 and BP. ARTCO2 is then a collider between two bidirected edges, as is cluster Z in Figure 2c, and as there is also a directed edge from ARTCO2 to BP, the node additionally acts as a non-collider along this path. Unfortunately, no additional information in this context (other than observing unobserved variables) can allow for an identifiable effect. Equation (7) shows the adjustment one might attempt in this context, and we illustrate an increased bias, where the estimated value is more biased than even the unadjusted value.
| (7) |
Estimated effect sizes
Estimated results for all three scenarios described above can be found in Table 2. For all analyses, regardless of whether a DAG or C-DAG was used, the true effect size was found to be well within one standard deviation of the estimated value, indicating good accuracy of estimated effects. By contrast, the unadjusted value of P(BP | PVS) is almost three times the true value and shows significant bias, and the incorrect adjustment done for the non-identifiable graph yielded a value almost seven times the true value, showing even more bias than the unadjusted case. All other analytical approaches were able to adjust for these biases with reasonable accuracy.
Table 2.
True, unadjusted, and estimated causal effects for example diagrams in Figure 2.
| Analysis | Estimated causal effect (SD over 10 experiments) |
|---|---|
| True Conditional Independencies | 0.07185 (0.00000) |
| Backdoor DAG | 0.07204 (0.00319) |
| Backdoor C-DAG | 0.06899 (0.00382) |
| Front-door DAG | 0.07186 (0.00056) |
| Front-door C-DAG | 0.07030 (0.00282) |
| Latent variables C-DAG, ID | 0.07007 (0.00220) |
| Latent variables C-DAG, non-ID | 0.48912 (0.01307) |
| Unadjusted P(y | x) | 0.24840 (0.00182) |
Finite sample analysis
We repeated our analysis with decreasing sample sizes (n = {200000, 20000, 2000, 200}) to examine the implications of data volume needs for estimation of effects based on the different graphical assumptions in practice. The results are shown in Figure 3. While, with a sample size of 200,000, all causal estimands yielded a result close to the true causal effect, accuracy drops off as the sample size decreases, as would be expected, and the standard deviation increases. The back-door DAG analysis shows robustness with smaller sample sizes as low as 2,000, which aligns with this method’s use of the fewest variables for adjustment. By contrast, analysis for the front-door C-DAG and back-door C-DAG show a noticeable decrease in accuracy with a sample size of 20,000, and with a sample size of 2,000, all methods excluding the back-door DAG fail to include the true effect size within their confidence interval. This illustrates how estimations involving a greater number of variables require larger sample sizes to ensure accuracy and represent a limitation of the C-DAG approach.
Figure 3.
Finite Sample Analysis. Calculated log effect sizes and confidence intervals determined by the back-door and front-door from a DAG, back-door and front-door from a C-DAG, the example identifiable C-DAG with latent variables, the non-identifiable C-DAG with latent variables, the unadjusted probability of P(BP | PVS), and the ground truth. As the sample size decreases, precision and accuracy of the calculated effect decrease, with more rapid deterioration for the C-DAG models which involve a greater number of variables in calculations.
Discussion
The various estimation equations generated by the case examples yield causal effect estimations close in value to each other and to the true causal effect as determined by gold standard probabilistic values. The accuracy of these calculated results aligns with the theoretical findings on C-DAGs that estimation expressions generated from valid C-DAGs are equal to estimations generated from a fully specified causal diagram12. Our results illustrate that implementing C-DAGs compared to causal diagrams will not render meaningful empirical differences in estimated causal effects with sufficient sample size. The examples illustrated here clarify the procedure for cluster causal diagram construction, and the relative decrease in required knowledge for their construction compared to fully specified causal diagrams. Interestingly, the standard deviation of results from each analysis were also close in value. This is most likely in the controlled context of our simulations and may not be replicable in real-world data.
One of the most significant shortcomings of C-DAGs is the computational inefficiency for effect estimation from identified equations compared to causal diagrams. Due to the greater number of variables included in the analysis, determining individual probabilities for all possible combinations of values can result in an exponentially increasing runtime as more variables are included in a cluster and involved in analysis.
In our analysis, determining probabilities by counting with smoothing worked well for our purposes. This is in part due to the nature of the simulated categorical data with high positivity, and little missingness. With more complex datasets with greater numbers of variables, more complex methods such as rejection sampling may need to be used for probability estimation. When the causal diagram is known, conditional probabilities can be calculated by likelihood weighting, leveraging structural information of a causal diagram. When the causal diagram is unknown, to avoid risk of model misspecification, the most extreme case of a causal diagram compatible with the C-DAG could be used; in this case, all elements of a cluster are connected to each other and whenever a connection exists between two clusters, all variables between the two clusters should share a corresponding edge. This approach, however, suffers also from an extreme runtime impact. The challenge of estimating conditional and joint probabilities in high-dimensions with the challenges of irregular, high-dimensional healthcare data in the context of use of C-DAGs is an important area of future research.
As a simulation, there are limitations in understanding how exactly our results will extend to real-world data, with a greater number of variables included, presence of continuous data, and irregular data sampling. However, exploration of cluster causal diagram use in this context is an important step in proving feasibility of the approach, and highlighting the challenges to practical use of a theoretically strong framework.
Conclusions
Estimating causal effects with techniques supported by causal diagrams has several benefits including increased interpretability and clearly communicated assumptions. Cluster causal diagrams or C-DAGs are a recently introduced framework allowing for easier construction than a fully specified causal diagram due to less stringent knowledge requirements. Just as with causal diagrams, C-DAGs allow for an expression of probabilities to be determined and offer a way for use of methods supported by diagrams that is more feasible in high-dimensional settings. We estimate causal effect sizes under varying sets of assumptions, determined by both causal diagrams and C-DAGs and compare our results. Our findings show similar performance under both techniques and illustrate how C-DAGs may be leveraged to yield empirically similar results compared to use of a complete causal diagram.
Figures & Tables
References
- 1.Pearl J. xvi. New York, NY, US: Cambridge University Press; 2000. Causality: Models, reasoning, and inference; p. 384 p.. (Causality: Models, reasoning, and inference) [Google Scholar]
- 2.Spirtes. MIT Press. 2000. [cited 2023 Jun 2] Causation, Prediction, and Search Available from: https://mitpress.mit.edu/9780262527927/causation-prediction-and-search/
- 3.Bareinboim E, Pearl J. Causal inference and the data-fusion problem. Proceedings of the National Academy of Sciences. 2016 Jul 5;113(27):7345–52. doi: 10.1073/pnas.1510507113. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Peters J, Janzing D, Schölkopf B. Cambridge, MA, USA: The MIT Press; 2017. Elements of Causal Inference- Foundations and Learning Algorithms [Internet] [cited 2024 Mar 16]. (Adaptive Computation and Machine Learning Series). Available from: https://mitpress.mit.edu/9780262037310/elements-of-causal-inference/ [Google Scholar]
- 5.Rosenbaum PR, Rubin DB. The central role of the propensity score in observational studies for causal effects. Biometrika. 1983 Apr;70(1):41–55. [Google Scholar]
- 6.Rubin DB. Causal Inference Using Potential Outcomes: Design, Modeling, Decisions. Journal of the American Statistical Association. 2005;100(469):322–31. [Google Scholar]
- 7.Pearl J. Causal diagrams for empirical research. Biometrika. 1995 Dec 1;82(4):669–88. [Google Scholar]
- 8.Tian J, Pearl J. A General Identification Condition for Causal Effects. Proceedings of the National Conference on Artificial Intelligence. 2003 Aug 24.
- 9.Shpitser I, Pearl J. Identification of Joint Interventional Distributions in Recursive Semi-Markovian Causal Models. Proceedings of the Twenty-First AAAI Conference on Artificial Intelligence. pp. 1219–26.
- 10.Huang Y, Valtorta M. Pearl’s Calculus of Intervention Is Complete. Proceedings of the 22nd Conference on Uncertainty in Artificial Intelligence. 2006:217–24. [Google Scholar]
- 11.Lee S, Correa J, Bareinboim E. Adams R, Gogate V, editors. General Identifiability with Arbitrary Surrogate Experiments. 35TH UNCERTAINTY IN ARTIFICIAL INTELLIGENCE CONFERENCE (UAI 2019) 2020. pp. p. 389–98.
- 12.Anand TV, Ribeiro AH, Tian J, Bareinboim E. Causal Effect Identification in Cluster DAGs. Proceedings of the AAAI Conference on Artificial Intelligence. 2023 Jun 26;37(10):12172–9. [Google Scholar]
- 13.Beinlich IA, Suermondt HJ, Chavez RM, Cooper GF. The ALARM Monitoring System: A Case Study with two Probabilistic Inference Techniques for Belief Networks. In: Hunter J, Cookson J, Wyatt J, editors. AIME 89. Berlin, Heidelberg: Springer; 1989. pp. p. 247–56. [Google Scholar]



