arXiv:2611.24535cs.CLNov 2026

Manuscript Offprint

arXiv:2611.24535

ProbMedTOD: A Bayesian Network Guided Task-Oriented Dialogue System for Patient History Taking

Vishal Vivek Saley, Bhavesh Gurnani, Dinesh Raghu, Mausam

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Patient history taking is a strategic, multi-turn process that refines diagnostic hypotheses through iterative questioning, mirroring clinical reasoning where each inquiry updates beliefs over candidate diagnoses. Deploying AI in this setting is constrained by privacy, cost, and latency, making Small Language Models (SLMs) a more desirable backbone compared to larger LLMs. However, SLMs capture only the fast, intuitive “System 1” side of this process and lack explicit mechanisms for the deliberative “System 2” reasoning needed to maintain and update diagnostic uncertainty over time. Bayesian Networks (BayesNets) offer a natural complement, providing an interpretable framework for auditable probabilistic belief tracking. Yet, clinical BayesNets are difficult to construct due to their reliance on expert-curated structure, dependencies, and parameters.

We introduce ProbMedTOD, which automatically synthesizes a clinical BayesNet from a small number of clinical notes in three stages: ontology building, structure prediction, and parameter estimation. ProbMedTOD then integrates the resulting BayesNet with SLMs, enabling probabilistic reasoning in multi-turn dialogues. A BayesNet Agent maintains real-time posterior distributions over diagnoses, while a Policy Agent picks diagnostically informative questions. Experiments on DDXPlus and MIMIC-IV Notes show that ProbMedTOD outperforms LLM-only and retrieval-based baselines, with especially strong gains for smaller models.

1 Introduction

Patient history taking is key to diagnosis [Engel and Morgan, 1973, Hampton et al., 1975, Boyd and Heritage, 2006]. It is a goal-driven, multi-turn dialogue to aimed identify the principal diagnosis, the condition mainly responsible for the visit [CMS, 2024]. Symptoms are often vague, partial, or overlapping, forcing clinicians to reason under uncertainty. Clinicians therefore use deliberative “System 2” reasoning, updating hypotheses and selecting queries by clinical value [Garibaldi and Olson, 2018]. Table 1 illustrates this: the doctor picks the query (Fatigue) to sharpen belief about TB.

Recently, large language models (LLMs) have shown strong results on medical QA and dialogue benchmarks [Li et al., 2023, Dou et al., 2023, Tu et al., 2024, Savage et al., 2024, Pal and Sankara-subbu, 2024, Singhal et al., 2025]. However, privacy and resource constraints in real clinical settings make SLMs an attractive practical choice. SLMs excel at the fast, fluent “System 1” side of dialogue, but lack an explicit mechanism to maintain and update a diagnostic belief or to select questions that maximize diagnostic value [Guan and Baral, 2021, Xu et al., 2024, He et al., 2024].

Bayesian Networks (BayesNets) have long been used for diagnosis under uncertainty [Shwe et al., 1991, Jaakkola and Jordan, 1999, Polotskaya et al., 2024], offering explicit belief updates and

*Corresponding author – vishal.vivek.saley@cse.iitd.ac.in

Preprint.

Table 1: ProbMedTOD replicates deliberative diagnostic reasoning using a BayesNet.

Context: Patient reports a persistent cough for approximately three weeks. Initially, the cough presented with white to yellowish sputum (colored/excess sputum). Over the past week, the patient has developed hemoptysis, estimating the amount to be about half a teaspoon. The patient denies experiencing dyspnea, chest pain, wheezing, rhinorrhea, or pharyngitis. The patient does report chest discomfort associated with the cough.
Gold Response: How has your energy been? Any any fatigue?
Llama3 8B: Do you have a headache?
Llama3 8B + RAG: Have lost you sense of smell or taste? Retrieved Documents:1. Pertusis causes coughing, loss of consciousness, whooping cough,.....2. Asthma causes chest discomfort, colored/excess sputum, dyspnea, coughing,.....3. Bronchitis causes chest discomfort, coughing, fatigue,.....
ProbMedTOD: Do you have chills or fever? Bayesian Inference:1. Tuberculosis (89%) causes coughing (82.7%), hemoptysis (36.3%), fever (76.5%).....2. Bronchitis (5%) causes chest discomfort (53.4%), coughing (86.9%), fatigue (49.2%),.....3. Pneumonia (5%) causes coughing (90.4%), hemoptysis (90.4%), chills (67.9%)

transparent symptom-disease relationships. This raises a natural question: can we combine the conversational strengths of SLMs with the reliability of Bayesian diagnosis? To answer this question, we propose our framework ProbMedTOD, in which at each dialogue turn, a BayesNet Agent extracts symptom and risk-factor states and performs real-time Bayesian inference to update diagnostic posteriors. A Policy Agent uses these posteriors to select the most informative next question. Finally, a Diagnosis Agent predicts the top-5 principal diagnoses from accumulated evidence.

Unfortunately, clinical BayesNets are costly to build, requiring expert-curated ontologies, manually specified structures, and carefully estimated parameters. ProbMedTOD addresses this with an automated pipeline that constructs a BayesNet from a limited number of clinical notes in three stages: ontology construction identifies relevant diseases, symptoms, and risk factors; structure learning infers their dependencies; and parameter estimation assigns conditional probabilities directly predicted by an LLM—no expert annotation required.

In summary, our main contributions is ProbMedTOD, which to the best of our knowledge is the first system to combine BayesNets with SLMs for medical history taking, featuring an automated BayesNet construction pipeline and probabilistic multi-turn dialogue. On high-fidelity simulations on DDXPlus and MIMIC-IV Notes, ProbMedTOD significantly improves upon LLM-only and retrieval-based baselines, with especially strong gains for smaller models. Code and data are available at https://github.com/dair-iitd/ProbMedTOD.