Introduction
Automatic disease diagnosis through dialogue systems represents a significant frontier in AI-driven healthcare. These systems interact with patients to gather symptoms and provide a preliminary diagnosis. However, real-world medical diagnosis involves a vast array of symptoms and diseases, creating a massive action space that traditional "flat" Reinforcement Learning (RL) models struggle to navigate efficiently. This paper introduces a Hierarchical Reinforcement Learning (HRL) framework that mimics the triage and specialization found in physical hospitals to improve diagnostic accuracy and scalability.
The Challenge of Scale
Traditional dialogue systems for medical diagnosis typically employ a flat RL policy. In this setup, an agent must choose its next action—whether to ask about a specific symptom or provide a final diagnosis—from a single, monolithic pool of all possible options. While effective for small, controlled datasets, this approach fails as the number of symptoms and diseases grows. In large-scale scenarios, flat models often fail to uncover implicit symptoms, leading to premature and incorrect diagnoses. The sheer complexity of the action space makes it difficult for the agent to learn an optimal policy for symptom gathering.
The Hierarchical Reinforcement Learning Framework
To address these limitations, the authors propose a two-level HRL architecture that divides the diagnostic task into manageable sub-tasks. This structure consists of a high-level "Master" policy and multiple low-level "Worker" policies.
1. The Master Policy (High-level)
Acting as a triage unit, the Master policy decides at each turn whether to activate a specialized Worker to collect more symptoms or to trigger the Disease Classifier for a final diagnosis. This high-level decision-making is modeled as a Semi-Markov Decision Process (SMDP).
2. The Worker Policies (Low-level)
Each Worker is a specialist responsible for a specific cluster of related diseases and their associated symptoms. When activated by the Master, a Worker interacts with the user simulator to ask targeted questions. This "divide and conquer" strategy significantly reduces the action space for each individual agent.
3. Dedicated Disease Classifier
A key innovation in this framework is the separation of symptom inquiry from the final diagnosis. Instead of forcing the RL agents to make the final call, a separate neural network classifier takes the accumulated symptom data and outputs a probability distribution over all possible diseases. This prevents the agent from rushing to a diagnosis to claim a high reward before sufficient information is gathered.
Experimental Setup and Datasets
The framework was evaluated against several state-of-the-art baselines, including Flat-DQN, REFUEL, KR-DS, and GAMP. Testing was conducted on three real-world datasets (MZ-4, MZ-10, and Dxy) and a large-scale synthetic dataset, SymCat-SD-90, which includes 90 diseases and 266 symptoms categorized into 9 departments.
Results and Discussion
The HRL model consistently outperformed all baselines across all datasets. On the complex SymCat-SD-90 dataset, the HRL model achieved a 50.4% accuracy and a 49.5% symptom match rate, while the Flat-DQN model collapsed, achieving only 34.3% accuracy and a negligible 2.3% match rate.
Ablation studies highlighted the importance of the separate Disease Classifier. Without it, the symptom match rate dropped significantly, as the agent prioritized the high reward of a correct diagnosis over the smaller rewards for uncovering symptoms, leading to insufficient questioning. The grouping of diseases into specialized departments also proved vital for maintaining performance at scale, as shown in the confusion matrix above.
Conclusion
By implementing a hierarchical structure that separates triage, specialized inquiry, and final diagnosis, this framework provides a scalable and accurate solution for automatic disease diagnosis. While the authors note that RL training can be unstable and requires further refinement for clinical use, the HRL approach sets a new benchmark for handling the complex action spaces inherent in medical dialogue systems. Future work will focus on integrating external knowledge graphs and exploring more advanced RL algorithms to further enhance diagnostic reliability.
Summary updated