Clinical Reasoning over Tabular Data and Text with Bayesian Networks

Paloma Rabaey, Johannes Deleu, Stefan Heytens, Thomas Demeester

Executive Summary

Bayesian Networks (BNs) are highly valued in the medical field for their transparent clinical reasoning and ability to handle uncertainty. However, they traditionally struggle with unstructured text. Conversely, Neural Networks (NNs) excel at processing text but function as "black boxes," lacking the interpretability required for high-stakes clinical decisions. This research introduces a hybrid approach—specifically the BN-discr-text model—which integrates neural text classifiers directly into a Bayesian Network structure. This allows the model to "read" clinical notes to uncover hidden symptoms while maintaining a rigorous, explainable reasoning framework.

The Challenge of Multimodal Clinical Reasoning

Clinical reasoning involves synthesizing diverse patient data, from structured vitals (tabular data) to unstructured consultation notes. While BNs are the "gold standard" for modeling medical expert knowledge, they typically require text to be manually converted into structured variables. This information extraction step is labor-intensive and often loses critical nuance. Pure Deep Learning models can process raw text but make it difficult for clinicians to audit their logic or handle missing data gracefully. The authors propose a solution that performs joint reasoning over both tabular data and raw text.

Methods

The researchers propose and compare two primary architectures for augmenting BNs with neural text representations:

  1. BN-discr-text (Discriminative): This model conditions diagnoses and symptoms on the text. It utilizes modular neural classifiers to predict the probability of a symptom or diagnosis given the clinical note. These probabilities are then integrated into the BN's probabilistic framework, allowing for joint inference across all available data types.
  2. BN-gen-text (Generative): This model adds a "text node" to the BN, attempting to model the distribution of text embeddings (generated via BioLORD, a clinical language model) as multivariate Gaussians conditioned on symptoms and diagnoses. This follows the causal flow of a clinician writing a note based on observations.
The BN-discr-text architecture integrates modular neural classifiers into a Bayesian Network framework to process text embeddings alongside tabular variables.

These models were compared against standard BNs (tabular only) and a standard Feed-Forward Neural Network (FF-discr-text) that concatenates all features into a single vector.

Datasets and Experimental Design

Due to the scarcity of real-world clinical data with verified ground-truth reasoning, the authors developed an artificial yet realistic dataset focused on diagnosing pneumonia versus the common cold.

The data generation pipeline: (1) Expert BN definition, (2) Tabular variable sampling, (3) LLM-based clinical note generation, and (4) Strategic masking of symptoms to test text extraction capabilities.
  • The Core: A ground-truth BN defined by medical experts.
  • The Text: GPT-3.5 was used to generate 5,000 fictitious consultation notes based on sampled symptoms.
  • The Challenge: To simulate real-world gaps, critical symptoms like fever and chest pain were "masked" from the tabular data. These symptoms were only accessible if the model could successfully extract them from the unstructured text.

Key Results

The study measured performance using Average Precision (AP) for diagnosing pneumonia:

  • Standard BN (Tabular only): ~0.09 AP. This model failed because it could not account for the fever and pain symptoms hidden in the text.
  • Standard Neural Network: ~0.66 AP.
  • BN-discr-text (The Hybrid): ~0.75 AP.

The hybrid model not only extracted "hidden" symptoms from the text more effectively than a pure NN but also leveraged background variables (like "season") more efficiently through its Bayesian structure.

Insights and Discussion

  • Modularity Beats the Black Box: The BN-discr-text model outperformed standard NNs by breaking the problem into modular classifiers. This makes the model more robust and easier for humans to audit (e.g., checking if the "cough" classifier is working correctly).
  • The Failure of Generative Text Modeling: The BN-gen-text approach struggled because high-dimensional text embeddings are mathematically complex. Simple Gaussian distributions are often insufficient to capture the nuances of human language.
  • Handling "The Silence": A major advantage of the BN approach is its inherent ability to handle missing data. If a patient note is absent, the BN simply marginalizes that node, whereas a standard NN might require biased "dummy" values.

Limitations and Future Work

While the clinical notes generated by GPT-3.5 were realistic, they may lack the shorthand and ambiguity found in real-world Electronic Medical Records (EMRs). Future research will focus on scaling these architectures to complex diseases with dozens of indicators and testing them on large-scale real-world datasets like MIMIC-III to verify their interpretability benefits in high-stakes environments.

Summary updated

BibTeX
@inproceedings{rabaey2024clinical,
  author = {Paloma Rabaey and Johannes Deleu and Stefan Heytens and Thomas Demeester},
  title = {{Clinical Reasoning over Tabular Data and Text with Bayesian Networks}},
  booktitle = {AIME},
  year = {2024},
  doi = {10.1007/978-3-031-66538-7\_24},
}
Figure