Introduction
Extracting structured information from doctor-patient conversations is a cornerstone of modern health technology, essential for tasks ranging from the automated generation of electronic medical records (EMRs) to the development of diagnostic assistants. However, identifying a symptom is only part of the challenge; the critical task is Symptom Status Recognition (SSR)—determining whether a patient actually has the symptom (Positive), does not have it (Negative), or if the status remains Uncertain.
Researchers from Fudan University have introduced KNSE (Knowledge-aware Natural Language Inference), a novel framework that reformulates SSR as a logic-based inference problem. By integrating dialogue context with external medical knowledge, KNSE achieves state-of-the-art performance and demonstrates superior generalization to unseen medical scenarios.
Problem Statement
In typical medical dialogues, information is often fragmented and non-linear. A patient might mention a symptom in one turn, but its status may only be confirmed or denied several turns later. Existing models often attempt to predict symptoms and their statuses simultaneously. This "joint prediction" approach has two major drawbacks:
- Poor Generalization: Models struggle when encountering symptoms or diseases that were underrepresented during training.
- Context Blindness: They often fail to utilize the rich, prior medical knowledge that humans use to interpret clinical descriptions (e.g., knowing that a fever is characterized by high body temperature helps a clinician identify relevant descriptions in a chat).
Methodology
The KNSE framework addresses these challenges by treating SSR as a Natural Language Inference (NLI) task. In this paradigm, the model evaluates a "premise" against a "hypothesis" to determine if the premise supports (entails), contradicts, or is neutral toward the hypothesis.
Triplet Construction
For every symptom mentioned, KNSE constructs a triplet:
- Premise ($P$): The actual text of the dialogue window.
- Knowledge ($K$): A brief medical description of the symptom (e.g., "Cough is a common respiratory symptom..."), generated using an LLM like ChatGPT.
- Hypothesis ($H$): A declarative statement such as "The patient has a cough." The framework supports both "Hard Prompts" (fixed templates) and "Soft Prompts" (trainable vector embeddings).
Model Architecture
The KNSE architecture is specifically designed to fuse dialogue context with external knowledge:
- Encoder: A BERT-based model encodes the concatenated triplet ($P, K, H$).
- Utterance Aggregation: An attention mechanism identifies which specific words in the dialogue are most relevant to the hypothesis.
- Self & Cross-Attention: These layers fuse the hypothesis information with the external medical knowledge.
- GRU (Gated Recurrent Unit): A recurrent layer tracks symptom status across dialogue turns, effectively modeling the flow of the conversation.
Experimental Results
The model was evaluated on the Chinese Medical Diagnosis Dataset (CMDD), which includes over 2,000 dialogues. To test robustness, the researchers developed two variants: CD-CMDD (Cross-Disease) and CS-CMDD (Cross-Symptom), testing on diseases and symptoms not seen during training.
KNSE outperformed several competitive baselines, including BERT-MTL and MRC-based frameworks. On the CMDD dataset, KNSE achieved an F1 score of 83.57% at the window level and 76.83% at the dialogue level.
The framework's primary strength lies in its cross-domain robustness. In the cross-symptom (CS-CMDD) scenario, KNSE's performance dropped by only 3–8%, whereas the previous state-of-the-art MRC model saw a significant decline of 9–16%. This confirms that the knowledge-aware NLI approach is far more adaptable to new medical contexts.
Discussion and Conclusion
The success of KNSE stems from its use of medical knowledge as a "search light," allowing the model to localize relevant status information within messy dialogue. By learning the logical relationship between a description and a status statement, the model gains significant zero-shot potential, making it less dependent on specific symptom labels seen during training.
While the framework shows great promise, the authors suggest that future research should involve more diverse datasets and explore the integration of Symptom Entity Recognition (SER) more fluidly into the pipeline. Overall, KNSE represents a significant advancement in building robust, knowledge-aware systems for medical dialogue understanding.
Summary updated