Bringing semantic structures to user intent detection in online medical queries

Chenwei Zhang, Nan Du, Wei Fan, Yaliang Li, Chun-Ta Lu, Philip S. Yu

Introduction: The Challenge of Medical Intent Detection

When users seek medical advice online, their queries are often complex, multi-faceted, and linguistically messy. For instance, a parent might ask: "My 3-year-old is sick with a temperature of 100 degrees, she can't keep anything down including liquids. What kind of medicine should I give my child, and how much?"

Traditional intent detection systems often treat such queries as single-label classification tasks (e.g., "Seeking Medication") or simple keyword matching. However, this approach fails to capture the underlying semantic structure. In the example above, the user isn't just asking for medicine; they are describing a path: a Symptom (fever/vomiting) leads to a need for Medicine, which requires specific Instructions (dosage).

Inference of a structured concept path from a natural language medical query.

This paper proposes modeling user intents as structured "concept transitions"—subgraphs extracted from a global medical knowledge graph—to better reflect the logical flow of medical inquiries.

The coCTI-MTL Architecture

To address these challenges, the researchers developed coCTI-MTL (Concept Transition Inference with Multi-Task Learning). This end-to-end neural network architecture is designed to simultaneously identify medical concepts and the transitions between them.

The dual-stream neural architecture for concept and transition encoding.

The model consists of several key components:

  • Semantic-Syntax Dual Streams: By processing both word embeddings (semantic) and Part-of-Speech (POS) tags (syntax), the model can disambiguate terms like "fever," which might function as a disease name or a symptom depending on context.
  • Dual RNNs: Two Gated Recurrent Units (GRUs) capture long-term dependencies across the query for both words and tags.
  • Concept & Transition Encoders: The Concept Encoder uses an attention mechanism to assign confidence scores to specific words, identifying mentions of medical entities. Simultaneously, the Transition Encoder predicts the likelihood of edges (transitions) between these concepts.
  • Mutual Transfer Loss (MTL): This novel loss function enforces structural consistency. It penalizes the model if it predicts a transition (e.g., Symptom → Cause) without identifying the corresponding concepts (Symptom and Cause) in the text.

Key Insights and Results

The researchers evaluated their model on a dataset of 10,000 manually labeled queries from a major Chinese medical forum (xywy.com), supported by pre-training on 64 million unlabeled queries.

Performance Gains

The coCTI-MTL model demonstrated significant improvements over traditional baselines:

  • Accuracy: It achieved an 8% relative improvement in micro-AUC compared to previous state-of-the-art models.
  • Completeness: The model showed a 23% relative reduction in coverage error, indicating it is far more effective at capturing multiple overlapping intents in a single query.
  • Robustness: By treating intents as connected paths rather than isolated labels, the model proved more resilient to the diverse and noisy ways users express medical concerns.

Conclusion

By moving from flat classification to structured graph inference, this research provides a more nuanced understanding of user intent in the medical domain. The "Mutual Transfer Loss" serves as a powerful form of structural regularization, bridging the gap between word-level mentions and sentence-level logic. Future work may involve applying this architecture to automated medical dialogue systems and exploring its effectiveness in other languages and domains where intent is inherently structured.

Summary updated

BibTeX
@inproceedings{zhang2017bringing,
  author = {Chenwei Zhang and Nan Du and Wei Fan and Yaliang Li and Chun-Ta Lu and Philip S. Yu},
  title = {{Bringing semantic structures to user intent detection in online medical queries}},
  booktitle = {IEEE BigData},
  year = {2017},
  url = {https://openreview.net/forum?id=EUXIltZra9},
}
Figure