KNSE: A Knowledge-aware Natural Language Inference Framework for Dialogue Symptom Status Recognition

Wei Chen, Shiqi Wei, Zhongyu Wei, Xuanjing Huang

Abstract

Symptom diagnosis in medical conversations aims to correctly extract both symptom entities and their status from the doctor-patient dialogue. In this paper, we propose a novel framework called KNSE for symptom status recognition (SSR), where the SSR is formulated as a natural language inference (NLI) task. For each mentioned symptom in a dialogue window, we first generate knowledge about the symptom and hypothesis about status of the symptom, to form a (premise, knowledge, hypothesis) triplet. The BERT model is then used to encode the triplet, which is further processed by modules including utterance aggregation, self-attention, cross-attention, and GRU to predict the symptom status. Benefiting from the NLI formalization, the proposed framework can encode more informative prior knowledge to better localize and track symptom status, which can effectively improve the performance of symptom status recognition. Preliminary experiments on Chinese medical dialogue datasets show that KNSE outperforms previous competitive baselines and has advantages in cross-disease and cross-symptom scenarios.

Introduction

In medical consultations, identifying a symptom is only the first step. The critical challenge lies in Symptom Status Recognition (SSR): determining whether a symptom is Positive (present), Negative (absent), or Uncertain (vague or unconfirmed). Traditional classification models often struggle with the non-standard language used by patients, information scattered across multiple dialogue turns, and poor generalization to unseen diseases or rare symptoms.

To address these issues, researchers from Fudan University introduced KNSE (Knowledge-aware Natural Language Inference). This framework reframes SSR as a Natural Language Inference (NLI) problem, allowing the model to leverage external medical knowledge and learn semantic relationships rather than just memorizing labels.

Methodology: Reframing SSR as NLI

The core innovation of KNSE is treating the dialogue context as a "Premise" and the symptom status as a "Hypothesis" to be verified.

Overview of the KNSE framework: transforming a dialogue window into an NLI task using symptom knowledge and status hypotheses.

The process involves three main stages:

  1. Symptom Entity Recognition (SER): Identifying mentioned symptoms (e.g., "Cough", "Fever").
  2. Knowledge and Hypothesis Generation: For each symptom, the framework generates a standardized medical definition (Knowledge) using an LLM like ChatGPT and constructs a statement about its status (Hypothesis). Hypotheses can be "Hard Prompts" (e.g., "The patient has a Cough") or "Soft Prompts" (trainable embeddings).
  3. NLI Classification: A BERT-based architecture processes the (Premise, Knowledge, Hypothesis) triplet. It includes an Utterance Aggregation module to focus on relevant dialogue parts and a GRU layer to track symptom status across the conversation.

Experimental Evaluation

The model was evaluated on the Chinese Medical Diagnosis Dataset (CMDD), which includes over 2,000 dialogues and 160 symptoms. To test robustness, the researchers also used CD-CMDD (Cross-Disease) and CS-CMDD (Cross-Symptom) variants to simulate real-world scenarios where the model encounters unfamiliar medical conditions.

Key Results

KNSE consistently outperformed competitive baselines, including BERT-MTL and MRC-based models.

Performance comparison of KNSE against baseline models and ablation study results.

As shown in the results table, KNSE achieved a window-level F1 score of 83.57, surpassing the previous state-of-the-art (CANE). Notably, in cross-symptom scenarios, KNSE's performance remained stable, whereas traditional models saw significant drops. Ablation studies confirmed that both the external knowledge and the specialized attention/GRU layers are critical to its success.

Discussion and Future Work

By formulating SSR as an NLI task, KNSE gains the ability to "understand" symptoms through their definitions. This makes it highly effective at localizing relevant keywords (e.g., linking "high temperature" in a dialogue to the definition of "fever").

However, some limitations remain. The current pipeline relies on the accuracy of the initial SER step. Furthermore, while ChatGPT was used for knowledge generation, future research could explore the impact of using different knowledge sources like professional medical ontologies. Expanding the framework to other languages and multi-lingual settings also remains a key objective.

Summary updated

BibTeX
@inproceedings{chen2023knse,
  author = {Wei Chen and Shiqi Wei and Zhongyu Wei and Xuanjing Huang},
  title = {{KNSE: A Knowledge-aware Natural Language Inference Framework for Dialogue Symptom Status Recognition}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.652},
}
Figure