Abstract: The presence of annotated datasets is crucial to the performance of modern machine learning algorithms. However, obtaining richly annotated datasets is not always possible, especially for novel or rare diseases. This becomes especially challenging in the realm of multi-label classification of chest radiographs, due to the presence of numerous unknown disease types and the limited information inherent to x-ray images. Ideally, we would like to develop models that can reliably label such unseen patterns (classes). In this work, we present a knowledge graph-based approach to predict such novel, unseen classes. Our method directly injects the semantic relationships between seen and unseen disease classes. Specifically, we propose a principled approach to parsing and processing a knowledge graph conditioned on the given task. We show that our method matches the labeling performance of the state-of-the-art while outperforming it on unseen classes by a substantial 2% gain on chest X-ray classification. Crucially, we demonstrate that embedding disease-specific knowledge as a graph provides inherent explainability.
Introduction
Modern deep learning models for medical imaging typically require massive, fully annotated datasets. However, in the real world, obtaining exhaustive annotations for every possible disease—especially rare or novel ones—is practically impossible. This challenge is magnified in chest radiographs, where a single image often contains multiple overlapping diagnoses, necessitating a multi-label classification approach.
Ideally, an AI diagnostic system should be able to recognize diseases it was explicitly trained on (seen classes) while also reliably flagging novel diseases it has never encountered before (unseen classes). This paradigm, known as Generalized Zero-Shot Learning (GZSL), is critical for clinical utility. Previous GZSL methods in medicine have attempted to bridge the gap between seen and unseen diseases using natural language embeddings like Word2Vec or BioBERT. However, these text-based models rely on word co-occurrences and often fail to capture the explicit, structured clinical relationships necessary to make accurate medical inferences. This paper introduces a novel approach to GZSL for multi-label chest X-ray classification by integrating explicit medical knowledge graphs.
Methodology
To bridge the semantic gap between seen and unseen diseases, we propose a two-module architecture: an Image Processing Module (utilizing a DenseNet-121 vision backbone) and a Graph Processing Module (GPM) (consisting of a series of Graph Attention Network layers, specifically GATv2).
The training pipeline follows a principled four-step process to transfer knowledge from seen to unseen classes:
- Vision Pre-training: The vision backbone is trained on images containing only seen diseases. This generates a set of "Visual Classifier Weights" ($W_\phi$) for the seen classes.
- Graph Construction: We parse the Unified Medical Language System (UMLS) to create a subgraph containing both the seen and unseen target diseases, along with their multi-hop clinical relationships. The nodes are initialized with BioBERT text embeddings to provide a baseline semantic representation.
- Knowledge Alignment: The GPM processes this graph and is trained using a regression loss to make its output node embeddings for the seen classes match the Visual Classifier Weights from Step 1. Because GNNs use message passing, training the seen nodes simultaneously enriches the embeddings of the unseen nodes with visually aligned semantic data.
- Weight Replacement: The fully trained GPM weights ($W_G$), which now contain visually meaningful representations for both seen and unseen classes, are copied over to replace the classification head of the vision backbone. The vision model is then fine-tuned for final inference.
Experimental Setup
The proposed method was evaluated on two standard public multi-label chest X-ray datasets to demonstrate generalizability:
- NIH Chest X-ray Dataset: Comprising 112,120 frontal X-rays, the 14 available labels were split into 9 seen classes (e.g., Atelectasis, Mass) and 5 unseen classes (Edema, Pneumonia, Emphysema, Fibrosis).
- Indiana University Chest X-ray Dataset: Used to validate the method on a different label set, featuring 17 class labels split into 13 seen and 4 unseen classes.
Results and Key Insights
Our approach demonstrates state-of-the-art performance across both datasets. As shown in the results table below, the method outperforms the previous SOTA (CXR-ML-GZSL) on unseen classes by a substantial margin.
Specifically, we achieved an AUROC of 0.68 (vs 0.66) on the NIH dataset and 0.80 (vs 0.79) on the Indiana University dataset for unseen classes. The Harmonic Mean (HM) AUROC, which balances performance across both seen and unseen classes, reached 0.73 and 0.74 respectively, surpassing all baselines.
Beyond quantitative metrics, several key insights emerged:
- Explicit Knowledge vs. Implicit Embeddings: Relying purely on BioBERT embeddings without a graph structure yields significantly worse performance for unseen classes. Explicitly mapping clinical relationships (e.g., "finding-site-of") is crucial for effective zero-shot transfer.
- Graph Structure Validity: Ablation studies replacing the UMLS graph with random structures (like Erdos-Renyi) resulted in negative knowledge transfer. This confirms that the clinical validity of the UMLS structure is the primary driver of performance.
- Optimal Graph Depth: We found that exactly 3 GATv2 layers provided the best performance. Since the maximum shortest-path distance between target diseases in the parsed graph was 4, using more than 3 layers led to over-smoothing, where node features become indistinguishable.
- Inherent Explainability: The use of a discrete knowledge graph allows for tools like GNNExplainer to visualize why the model predicted an unseen disease, such as identifying the reliance on connected nodes representing specific lung morphology.
Conclusion and Future Work
This work demonstrates that integrating structured medical knowledge graphs into a GZSL framework significantly enhances the classification of unseen disease patterns in radiographs. While the current model treats the UMLS knowledge graph as homogeneous, future work will explore heterogeneous graph structures. By processing different types of clinical relationships independently, we aim to further enrich the semantic knowledge transfer and improve diagnostic accuracy for rare and novel diseases.
Summary updated