WiseR: An end-to-end structure learning and deployment framework for causal graphical models

Shubham Maheshwari, Khushbu Pahwa, Tavpritesh SethiarXiv 2021

Abstract: Structure learning offers an expressive, versatile and explainable approach to causal and mechanistic modeling of complex biological data. We present wiseR, an open source application for learning, evaluating and deploying robust causal graphical models using graph neural networks and Bayesian networks. We demonstrate the utility of this application through application on for biomarker discovery in a COVID-19 clinical dataset.

Introduction

In biological and medical research, the distinction between correlation and causation is a critical hurdle. While modern deep learning excels at pattern recognition, it often fails to explain the underlying mechanisms or provide a clear path for effective intervention. Causal graphical models, such as Bayesian Networks (BNs), address this by mapping the flow of influence between variables. However, building these models is computationally intensive (an NP-hard problem) and typically requires advanced programming skills.

wiseR is an open-source R package and web application designed to bridge this gap. It provides an end-to-end pipeline for causal discovery, allowing researchers to move from raw data to deployed decision-support dashboards without requiring deep expertise in coding.

The wiseR Framework

The framework is built primarily in R using Shiny for the user interface, leveraging a hybrid backend to ensure both accessibility and power. The workflow is divided into two main phases: data exploration and structure learning.

The wiseR end-to-end pipeline, from data pre-processing to decision support.

Methodology

  • Structure Learning: wiseR integrates classic score-based and constraint-based algorithms (e.g., Hill Climbing) via the bnlearn package. It also incorporates state-of-the-art Graph Neural Networks (GNNs) like DAG-GNN and NoTears to model complex, non-linear relationships.
  • Expert Knowledge Injection: The tool allows users to "blacklist" or "whitelist" specific edges, ensuring models respect known biological laws.
  • Robustness and Inference: To ensure stability, the tool employs bootstrapping and ensemble averaging. It also supports the creation of "Decision Networks" by adding Utility and Decision Nodes, transforming a causal map into a system that calculates optimal clinical actions.
  • Deployment: A unique feature allows users to export their entire analysis as a standalone dashboard for clinical use.

Key Results and Applications

The utility of wiseR was validated using several benchmarks, including the landmark Sachs protein signaling dataset and standard networks like Alarm and Asia.

COVID-19 Biomarker Discovery

In a real-world case study using a COVID-19 multi-omics clinical dataset, wiseR was used to identify biomarkers for disease severity. The model identified the S100A12 protein (P_S100_calcium_binding_protein_A12) as the strongest causal predictor of the WHO ordinal scale for disease severity. This finding aligns with recent peer-reviewed literature, demonstrating the tool's ability to uncover biologically relevant insights.

Causal graph showing the relationship between S100A12 protein and the WHO Ordinal Scale for COVID-19 severity.

Discussion and Insights

The development of wiseR highlights the potential for democratizing causal AI. By providing a graphical user interface (GUI), the framework allows clinicians with domain expertise to interactively build and validate models. Furthermore, the authors demonstrate that approximate inference with error bars is nearly as accurate as exact inference for large biological networks while being significantly more computationally efficient, making real-time decision support feasible.

Limitations and Future Work

While powerful, wiseR currently requires external installations of JAGS for decision networks and a Python/Conda environment for GNN features, which may present a barrier for some users. Additionally, extremely high-dimensional "omics" data remains a computational challenge. Future iterations may incorporate Natural Language Processing (NLP) to automatically extract expert knowledge from medical literature to further streamline the modeling process.

Summary updated

BibTeX
@misc{maheshwari2021wiser,
  author = {Shubham Maheshwari and Khushbu Pahwa and Tavpritesh Sethi},
  title = {{WiseR: An end-to-end structure learning and deployment framework for causal graphical models}},
  year = {2021},
  eprint = {2108.07046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.07046},
}
Figure