HHH: An Online Medical Chatbot System based on Knowledge Graph and Hierarchical Bi-Directional Attention

Qiming Bao, Lin Ni, Jiamou Liu · DOI

TL;DR

This paper introduces HHH, a novel medical chatbot system that combines a knowledge graph with a deep learning-based text similarity model (HBAM) to answer complex health questions. HHH aims to provide more precise and accessible medical information by leveraging both structured knowledge and nuanced language understanding, outperforming existing methods like BERT and MaLSTM in medical QA tasks.

What Problem Does This Paper Address?

Accessing timely and accurate medical information can be challenging due to factors like long wait times, appointment difficulties, and the complexity of medical language. While chatbots offer a promising solution, existing systems often struggle with understanding nuanced user queries and providing precise answers. This paper addresses the need for a more sophisticated medical chatbot that can effectively interpret natural language questions and retrieve relevant, accurate information from a comprehensive medical knowledge base. The authors aim to reduce user time and effort in finding information, provide more precise answers to lay users, and create a flexible, scalable system.

Methods

The HHH system employs a hybrid approach, integrating two core components:

  • Knowledge Graph (KG): A Neo4j-based knowledge graph is constructed from medical data, representing entities like diseases, symptoms, and their relationships (e.g., "has_symptom," "disease_prevent"). This KG allows for direct retrieval of answers for well-defined questions.
  • Hierarchical BiLSTM Attention Model (HBAM): For questions not directly answerable by the KG, HBAM is used for text similarity comparison. This novel deep learning model combines:
  • Bidirectional LSTM (BiLSTM): To capture forward and reverse contextual information within a sentence.
  • Word Attention Layer: To identify and weigh the importance of keywords within a sentence, enhancing understanding of key medical terms.
  • Siamese Framework: To compare sentence representations and compute semantic similarity.
  • Manhattan Distance: Used as the similarity metric.

The system first attempts to answer a query using the knowledge graph. If unsuccessful, it then uses HBAM to find the most similar question in a large dataset of medical Q&A pairs.

Datasets

  • Knowledge Graph Data: Collected from sources like Health Navigator New Zealand, common illnesses and symptom databases, and common diseases and conditions.
  • Question-Answer Pair Dataset: A large dataset of medical questions and answers, compiled from eHealth Forum, Question Doctors, and WebMD. The paper mentions a combined dataset of 29,287 medical Q&A pairs.
  • Quora Duplicate Questions Dataset (Medical Subset): Used for training and evaluating the HBAM model. The authors filtered this dataset to create a medical subset by using a disease and symptom dictionary, resulting in approximately 70,000 medical-related records, from which 10,000 were randomly selected for experiments.

Key Insights and Ideas

  • Hybrid Approach Synergy: Combining a structured knowledge graph with a flexible deep learning model (HBAM) offers a powerful synergy. The KG provides direct answers for structured queries, while HBAM handles the nuances of natural language and less structured questions.
  • Importance of Word Attention in Medical QA: The attention mechanism in HBAM is crucial for highlighting medical keywords, which significantly improves the model's ability to understand and compare medical questions. This is suggested as a key reason for HBAM's superior performance over models without explicit attention.
  • Addressing Limitations of Pure KG or Pure NLP: Pure KG systems can be rigid, and pure NLP models might struggle with the specificity of medical terminology. The hybrid approach mitigates these limitations.
  • Scalability and Flexibility: The proposed architecture is designed to be flexible and scalable, allowing for easier management of functionality and datasets, which is vital for evolving medical information systems.

Key Results

  • Superior Performance of HBAM: In experiments comparing HBAM with BERT and MaLSTM on a medical subset of the Quora duplicate questions dataset, HBAM achieved the highest average evaluation accuracy (81.2% vs. 78.2% for BERT and 78.4% for MaLSTM).
  • Consistent Performance Across Datasets: When tested on different medical Q&A datasets (ehealthforumQAs, questionDoctorQAs, webmdQAs), HBAM consistently outperformed BERT and MaLSTM, demonstrating its robustness. For example, on ehealthforumQAs, HBAM achieved 81.3% accuracy compared to 78.5% for BERT and 78.4% for MaLSTM.
  • Effective Text Representation: The paper highlights HBAM's impressive text representation capabilities, effectively capturing word meaning and sentence semantics, as visualized in figures showing word attention distribution and sentence representation comparisons.

Limitations and Future Work

  • Single-Turn Conversation: The current system primarily handles single-turn question-and-answer interactions.
  • User Profiles: The authors suggest incorporating user profiles to provide more personalized medical assistance.
  • Data Mining and Prediction: Future work could involve combining data mining techniques to predict potential diseases in specific populations.
  • Broader Domain Application: The authors express interest in applying the chatbot framework to other domains beyond healthcare.
  • Human Evaluation: The paper mentions plans to recruit participants to evaluate the medical QA system.
  • BERT Overfitting Concern: The authors speculate that BERT's transformer architecture might lead to overfitting when fine-tuned on smaller, domain-specific medical datasets.

Summary updated

Abstract

This paper proposes a chatbot framework that adopts a hybrid model which consists of a knowledge graph and a text similarity model. Based on this chatbot framework, we build HHH, an online question-and-answer (QA) Healthcare Helper system for answering complex medical questions. HHH maintains a knowledge graph constructed from medical data collected from the Internet. HHH also implements a novel text representation and similarity deep learning model, Hierarchical BiLSTM Attention Model (HBAM), to find the most similar question from a large QA dataset. We compare HBAM with other state-of-the-art language models such as bidirectional encoder representation from transformers (BERT) and Manhattan LSTM Model (MaLSTM). We train and test the models with a subset of the Quora duplicate questions dataset in the medical area. The experimental results show that our model is able to achieve a superior performance than these existing methods.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Quora medical subset (10,000 medical-related question pairs)HBAMAverage Evaluation Accuracy81.2%split: test
Source quote
L215: HBAM │ {\bf 81.2%} │ (-2.4%,+2.2%)
Quora medical subset (10,000 medical-related question pairs)BERTAverage Evaluation Accuracy78.2%split: test · fine-tuned
Source quote
L213: BERT \cite{devlin2018bert} │ 78.2% │ (-1.8%,+1.3%)
Quora medical subset (10,000 medical-related question pairs)MaLSTMAverage Evaluation Accuracy78.4%split: test
Source quote
L214: MaLSTM \cite{hochreiter1997long} │ 78.4% │ (-2.9%,+2.0%)
ehealthforumQAsHBAMAverage predict accuracy81.3%Experiment 2 evaluated the first 1,000 matched sentence pairs for this dataset over 10 …
Source quote
L226: HBAM │ {\bf 81.3%} │ (-1.2%,+1.1%)
questionDoctorQAsHBAMAverage predict accuracy80.9%Experiment 2 evaluated the first 1,000 matched sentence pairs for this dataset over 10 …
Source quote
L229: HBAM │ {\bf 80.9%} │ (-2.1%,+2.5%)
webmdQAsHBAMAverage predict accuracy81.2%Experiment 2 evaluated the first 1,000 matched sentence pairs for this dataset over 10 …
Source quote
L232: HBAM │ {\bf 81.2%} │ (-1.2%,+1.3%)
BibTeX
@inproceedings{bao2020hhh,
  author = {Qiming Bao and Lin Ni and Jiamou Liu},
  title = {{HHH: An Online Medical Chatbot System based on Knowledge Graph and Hierarchical Bi-Directional Attention}},
  booktitle = {ACSW},
  year = {2020},
  url = {https://openreview.net/forum?id=2_qTngeXJfN},
}
Figure