"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 · DOI

Abstract

Dialogue Systems for Medical Diagnosis (DSMD) are increasingly utilized to assist in preliminary patient assessments. However, most existing models rely on "black-box" neural networks that lack transparency and struggle with the data sparsity inherent in medical records. This paper presents the Bayesian Reinforced Agent (BR-Agent), a novel framework that decomposes the diagnostic process into two interpretable stages: disease inference and symptom inquiry. By mimicking the rational inquiry strategies of human physicians—specifically confirmation and differentiation—the BR-Agent achieves significant improvements in diagnostic accuracy and symptom recall across multiple datasets, including the newly released GMD-12 dataset.

Introduction

In high-stakes medical environments, the utility of an AI agent is often limited by its interpretability. While deep learning has advanced the state of the art in dialogue systems, standard models often generate diagnoses and follow-up questions simultaneously through opaque statistical correlations. This "black-box" approach presents two primary challenges: clinicians cannot verify the reasoning behind a query, and models often fail to learn complex symptom-disease relationships from small, noisy datasets.

To address these issues, we propose that a medical AI must be intrinsically interpretable. Rather than treating diagnosis as a simple classification task, the BR-Agent mirrors the logical decision-making process of a doctor, ensuring that every question asked and every diagnosis reached is grounded in explicit probabilistic relationships.

Methodology: The BR-Agent Framework

The BR-Agent operates through a two-stage process that separates "thinking" (inference) from "acting" (inquiry).

Stage 1: Disease Inference (The Bayesian Brain)

At the core of the agent is a Bayesian Network (BayesNet). Unlike a standard neural layer, the BayesNet represents the relationships between symptoms and diseases as a set of conditional probabilities. For instance, it explicitly models the probability of a specific symptom given a suspected disease. Using Variable Elimination, the model calculates the most likely disease based on the symptoms confirmed or denied by the patient during the dialogue. This structure ensures that the agent's internal state is always readable by a human clinician.

Stage 2: Symptom Inquiry (Interpretable Logics)

If the agent's confidence in a diagnosis is below a certain threshold, it must decide which symptom to ask about next. The BR-Agent employs a Neural Logic Switcher to choose between two distinct human-like strategies:

  1. Conditional Probability ($M_c$): This strategy focuses on confirmation. The agent asks about high-frequency symptoms associated with the most likely disease (e.g., "If you have a cold, do you also have a runny nose?").
  2. Mutual Information ($M_m$): This strategy focuses on differentiation. When two diseases appear equally likely, the agent identifies symptoms that can best distinguish between them (e.g., "Both a cold and the flu cause fever, but do you have muscle aches?").

The entire system is optimized using Advantage Actor-Critic (A2C) reinforcement learning, which allows the BayesNet to be fine-tuned end-to-end while preserving its symbolic, interpretable structure.

Data and Experimental Setup

The study evaluates the BR-Agent on three key datasets:

  • Muzhi: 710 pediatric dialogues.
  • Dxy: 527 medical dialogues.
  • GMD-12: A new, high-quality dataset released by the authors. GMD-12 contains 2,374 dialogues covering 12 diseases and 118 symptoms. Derived from real hospital records and verified by clinical experts, it provides a more professional and diverse benchmark than previous web-crawled datasets.

Results and Discussion

The BR-Agent demonstrated superior performance compared to state-of-the-art black-box models across several metrics:

  • Diagnostic Accuracy: The model achieved absolute accuracy gains of 7.7% on Dxy, 3.0% on Muzhi, and 10.0% on GMD-12. This suggests that incorporating domain-specific logic (Bayesian inference) actually improves performance rather than hindering it.
  • Information Efficiency: The agent showed a 54% improvement in symptom recall on the Muzhi dataset. By using mutual information to differentiate between diseases, the agent avoids redundant questions and reaches a diagnosis faster.
  • Human-Centric Validation: In blind evaluations, professional physicians rated the rationality of the BR-Agent’s inquiries at 4.3/5.0, significantly higher than the sub-3.0 scores typically received by standard neural models.

Conclusion

The BR-Agent proves that transparency and accuracy are not mutually exclusive in medical AI. By separating disease inference from symptom inquiry and utilizing interpretable Bayesian structures, the model provides a framework that clinicians can trust. Future work will focus on scaling the Bayesian Network to handle a broader range of diseases and integrating Natural Language Understanding to process free-form patient responses more effectively.

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