K-Diag: Knowledge-enhanced Disease Diagnosis in Radiographic Imaging

Chaoyi Wu, Xiaoman Zhang, Yanfeng Wang, Ya Zhang, Weidi XiearXiv 2023

Abstract

In this paper, we consider the problem of disease diagnosis. Unlike the conventional learning paradigm that treats labels independently, we propose a knowledge-enhanced framework, that enables training visual representation with the guidance of medical domain knowledge. In particular, we make the following contributions: First, to explicitly incorporate experts' knowledge, we propose to learn a neural representation for the medical knowledge graph via contrastive learning, implicitly establishing relations between different medical concepts. Second, while training the visual encoder, we keep the parameters of the knowledge encoder frozen and propose to learn a set of prompt vectors for efficient adaptation. Third, we adopt a Transformer-based disease-query module for cross-model fusion, which naturally enables explainable diagnosis results via cross attention. To validate the effectiveness of our proposed framework, we conduct thorough experiments on three x-ray imaging datasets across different anatomy structures, showing our model is able to exploit the implicit relations between diseases/findings, thus is beneficial to the commonly encountered problem in the medical domain, namely, long-tailed and zero-shot recognition, which conventional methods either struggle or completely fail to realize.

Introduction

Traditional computer vision models for medical diagnosis often treat disease labels as independent "one-hot" vectors. In this paradigm, the mathematical representation of "Bronchitis" is as distinct from "Pneumonia" as it is from a "Surgical Implant." However, medical reality is far more nuanced; diseases share symptoms, anatomical locations, and biological pathways. Furthermore, standard models struggle with the "long-tail" problem, performing well on common conditions but failing on rare diseases due to data scarcity. K-Diag addresses these limitations by injecting expert medical knowledge into the learning process, enabling the model to understand the underlying relationships between different pathologies.

Methodology

The K-Diag framework introduces three primary innovations to bridge the gap between visual features and medical logic:

1. The Knowledge Encoder

Instead of treating labels as discrete integers, K-Diag utilizes the Unified Medical Language System (UMLS) to fine-tune a BERT-based language model. Through contrastive learning, the model is taught that a disease name should be mathematically proximal to its medical definition. This creates a structured embedding space where related diseases (e.g., Bronchitis and Pneumonia) are naturally clustered, allowing the model to leverage shared semantic features.

Conceptual comparison between standard classification and K-Diag's knowledge-enhanced approach.

2. Learnable Prompt Module

To adapt general medical knowledge to specific imaging tasks without losing the foundational logic, K-Diag employs a learnable prompt module. While the Knowledge Encoder remains frozen to preserve its general medical understanding, this module learns to bridge the gap between textual embeddings and the specific visual characteristics of radiographic images.

3. Disease-Query Module

K-Diag replaces the standard classification head with a Transformer-based decoder. In this setup, disease names act as "queries" that search through the visual features extracted by the encoder. This mechanism not only improves diagnostic accuracy but also generates cross-attention maps that provide built-in explainability.

Experimental Results

Quantitative Performance

The researchers evaluated K-Diag across three diverse datasets: VinDr-PCXR (pediatric chest), VinDr-Mammo (mammography), and VinDr-SpineXr (spine). K-Diag consistently outperformed standard ResNet and Vision Transformer (ViT) baselines. For instance, on the VinDr-PCXR dataset, K-Diag improved the average AUC from 70.53% to 73.97%.

Zero-Shot and Long-Tail Recognition

A key strength of K-Diag is its ability to handle "unseen" diseases. On the PadChest dataset, the model achieved an AUC of at least 0.600 on 79 out of 106 findings it had never encountered during training. This is possible because the model can process the medical definition of a new disease at test time to generate a relevant embedding.

Visual Explainability

Qualitative analysis demonstrates that K-Diag's internal attention mechanisms align closely with the diagnostic regions identified by human radiologists. As shown in the figure below, the model correctly focuses on specific anatomical anomalies such as osteophytes, vertebral collapses, and disc space narrowing.

Visual explainability: K-Diag's attention maps compared to ground-truth bounding boxes.

Conclusion

K-Diag represents a significant shift toward more logical and explainable AI in medicine. By moving beyond simple label matching to a knowledge-enhanced paradigm, the framework effectively addresses the challenges of long-tailed data and zero-shot recognition. Future work will focus on extending this logic to 3D modalities like CT and MRI, and exploring self-supervised learning directly from raw radiology reports.

Summary updated

BibTeX
@misc{wu2023k,
  author = {Chaoyi Wu and Xiaoman Zhang and Yanfeng Wang and Ya Zhang and Weidi Xie},
  title = {{K-Diag: Knowledge-enhanced Disease Diagnosis in Radiographic Imaging}},
  year = {2023},
  eprint = {2302.11557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.11557},
}
Figure