"My nose is running." "Are you also coughing?": Building A Medical Diagnosis Agent with Interpretable Inquiry Logics

Wenge Liu, Yi Cheng, Hao Wang, Jianheng Tang, Yafei Liu, Ruihui Zhao, Wenjie Li, Yefeng Zheng, Xiaodan Liang

Abstract

Dialogue Systems for Medical Diagnosis (DSMD) face significant hurdles in interpretability and data availability. This paper introduces the Bayesian Reinforced Agent (BR-Agent), a novel framework that decomposes the diagnostic process into two interpretable stages: Disease Inference using a differentiable Bayesian Network and Symptom Inquiry driven by dual-logic matrices. By mimicking the clinical intuition of confirming suspicions while ruling out alternatives, the BR-Agent provides transparent reasoning for its actions. Experimental results on a newly introduced large-scale dataset, GMD-12, demonstrate that the BR-Agent significantly outperforms existing neural models in both diagnostic accuracy and inquiry rationality.

Introduction

Developing Dialogue Systems for Medical Diagnosis (DSMD) is a high-stakes challenge. While recent research has shifted from rigid, rule-based systems to flexible, data-driven neural models, these modern approaches suffer from two major flaws:

  1. Lack of Interpretability: Most models are "black boxes" that predict diseases and symptoms simultaneously. In a medical context, a system that cannot explain why it is asking a specific question or how it reached a diagnosis is difficult for clinicians to trust.
  2. Data Sparsity: Existing datasets are tiny (often fewer than 1,000 dialogues) and lack the diversity of real-world clinical encounters, leading to models that generalize poorly.

The authors aim to bridge the gap between the transparency of traditional medical logic and the performance of modern reinforcement learning through the BR-Agent.

Methods

The BR-Agent breaks the dialogue process into two distinct, interpretable stages: Disease Inference and Symptom Inquiry. This architecture allows the system to maintain a clear probabilistic model of the patient's state while optimizing its questioning strategy.

The two-stage architecture of BR-Agent, separating Disease Inference from Symptom Inquiry.

1. Disease Inference (The "What")

Instead of a standard neural layer, the model uses a Bayesian Network (BayesNet) to model the relationship between diseases and symptoms.

  • Interpretability: The parameters (prior and conditional probabilities) are practically meaningful (e.g., "What is the probability of a cough given pneumonia?").
  • Innovation: Unlike traditional BayesNets that are static, this one is differentiable. It is initialized with statistical data but fine-tuned end-to-end using Reinforcement Learning (RL), allowing it to learn from dialogue interactions.

2. Symptom Inquiry (The "Why")

To decide which symptom to ask about next, the model employs a Neural Logic Switcher that chooses between two distinct inquiry logics:

  • Conditional Probability Matrix ($M_c$): Used to "ensure" a suspicion by asking about high-frequency symptoms associated with a suspected disease.
  • Mutual Information Matrix ($M_m$): Used to "distinguish" between similar diseases by asking about symptoms that are unique to one and not the other.

The entire system is trained using the Advantage Actor-Critic (A2C) reinforcement learning framework, where the agent receives rewards for correct diagnoses and penalties for inefficient or incorrect inquiries.

Datasets

The study utilizes two existing public datasets and introduces a significant new benchmark to address the data sparsity problem. As shown in the comparison below, the new GMD-12 dataset provides a much more robust foundation for training medical agents.

Comparison of the new GMD-12 dataset against existing benchmarks in terms of scale and rationality.
  • Muzhi: 710 dialogues, 4 pediatric diseases, 66 symptoms.
  • Dxy: 527 dialogues, 5 diseases, 41 symptoms.
  • GMD-12 (New): Collected from real hospital records, this dataset contains 2,374 dialogues, 12 diseases, and 118 symptoms. It is three times larger than previous sets and was refined by clinical experts to ensure high "rationality" (professional quality).

Key Results and Insights

The BR-Agent significantly outperformed previous state-of-the-art models (like KR-DS and GAMP) across all metrics:

  • Diagnosis Accuracy: Achieved absolute improvements of 7.7% on Dxy, 3.0% on Muzhi, and 10.0% on the new GMD-12 dataset.
  • Symptom Recall: The model was far more efficient at identifying a patient's underlying symptoms, with a massive 54% improvement on the Muzhi dataset compared to baselines.
  • Human Evaluation: Clinical experts rated the rationality of the BR-Agent's inquiries at 4.30/5.0, compared to just 2.35/5.0 for a transparent version of a standard neural baseline.

Mimicking Clinical Intuition

The core innovation is the realization that doctors don't just ask random questions; they alternate between confirming a hunch and ruling out alternatives. Modeling this as a choice between Conditional Probability and Mutual Information creates a much more human-like agent. Furthermore, by making a Bayesian Network differentiable, the authors prove you don't have to sacrifice the optimization power of Deep Learning to maintain the transparency of Probabilistic Graphical Models.

Limitations and Future Work

While the BR-Agent represents a major step forward, several challenges remain. The authors noted that many Bayesian parameters stayed near their initial values, suggesting that even larger datasets are needed to fully fine-tune complex medical probabilities. Additionally, while GMD-12 is a significant improvement, 12 diseases represent only a small fraction of medical practice. Future work will focus on scaling this interpretable logic to hundreds of conditions and integrating the system with raw Natural Language Understanding (NLU) for live clinical deployment.

Summary updated

BibTeX
@inproceedings{liu2022my,
  author = {Wenge Liu and Yi Cheng and Hao Wang and Jianheng Tang and Yafei Liu and Ruihui Zhao and Wenjie Li and Yefeng Zheng and Xiaodan Liang},
  title = {{"My nose is running." "Are you also coughing?": Building A Medical Diagnosis Agent with Interpretable Inquiry Logics}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/592},
}
Figure