Abstract
Online health forums face a significant challenge in manually matching patient queries to appropriate medical specialists. This paper presents a novel framework for automated doctor recommendation that learns doctor expertise from both professional profiles and historical patient dialogues. By addressing the "vocabulary gap" between medical jargon and layman's terms through a self-supervised alignment task and profile-aware multi-head attention, the proposed model significantly outperforms existing baselines.
Introduction
The rapid growth of online health platforms has made manual doctor allocation a labor-intensive and expensive bottleneck. Traditional recommendation systems, which often rely on past user behavior or "purchase history," are ineffective in this context due to patient anonymity. Furthermore, a significant "language gap" exists: doctors describe their expertise using professional medical jargon (e.g., "neurological diseases"), whereas patients describe symptoms in colloquial terms (e.g., "dizziness" or "muscle aches").
To overcome these challenges, a recommendation system must accurately characterize a doctor's expertise by bridging the gap between formal medical knowledge and layman descriptions.
Methodology
The proposed framework, MUL-ATT, consists of three primary components designed to learn and match doctor expertise with patient needs.
Doctor Encoder with Self-Learning
To bridge the linguistic divide, the authors employ a self-learning task. A BERT model is fine-tuned to predict whether a professional profile and a colloquial dialogue belong to the same doctor. This process forces the model to map professional terminology and layman descriptions into a shared semantic space.
Profile-Aware Multi-head Attention
Doctors often possess multi-faceted expertise. The model uses the doctor's profile as a "query" to attend to their history of dialogues. By utilizing multi-head attention, the model can simultaneously capture different aspects of expertise. For instance, one attention head might focus on a doctor's experience with insomnia, while another focuses on myopathy, providing a holistic representation of their capabilities.
Query Encoder and Prediction Layer
The patient's query is encoded via BERT. A Multi-Layer Perceptron (MLP) then takes the concatenated embeddings of the doctor's expertise and the patient's query to calculate a final matching score.
Experimental Setup
The researchers evaluated their model using a large-scale dataset from Chunyu Yisheng, a major Chinese online health forum. The dataset includes 119,128 dialogues involving 359 doctors across 14 medical departments. Analysis using the THUOCL medical lexicon confirmed the language gap: medical terms comprise approximately 30% of doctor profiles but only 5-8% of patient dialogues.
Results and Discussion
The proposed MUL-ATT (FULL) model achieved state-of-the-art performance, reaching a Precision@1 (P@1) of 0.616. This nearly doubles the performance of the model without self-learning (0.309) and triples the performance of models relying solely on profiles (0.164).
Key Insights
- Dialogues as Primary Expertise Sources: Past dialogues are more predictive of a doctor's suitability than static profiles because they contain the layman keywords patients actually use.
- The Power of Alignment: The self-learning alignment step is critical. It allows the model to recognize that a specialist in "neurological diseases" is the same individual who successfully treated "dizziness" in previous interactions.
- Specialization via Attention: Visualization of attention heads confirmed that different heads specialize in distinct symptoms, such as "insomnia" or "muscle weakness," providing a comprehensive view of a doctor's expertise.
Conclusion and Future Work
While the MUL-ATT framework shows significant promise, limitations remain. Brief or generic doctor profiles can limit the effectiveness of the attention mechanism, and the model occasionally favors "generalist" doctors with high dialogue volumes. Future work will explore incorporating external Medical Knowledge Graphs to improve semantic matching for rare conditions and utilizing data augmentation to enrich the history of specialized doctors with fewer dialogues.
Summary updated