Computer-Aided Tuberculosis Diagnosis with Attribute Reasoning Assistance

Chengwei Pan, Gangming Zhao, Junjie Fang, Baolian Qi, Jiaheng Liu, Chaowei Fang, Dingwen Zhang, Jinpeng Li, Yizhou Yu

Abstract

Computer-aided diagnosis (CTD) for tuberculosis (TB) typically relies on either expensive pixel-level annotations or weakly supervised methods that lack clinical interpretability. This paper introduces TBX-Att, a novel dataset of 2,000 chest X-ray images annotated with seven specific clinical attributes by senior radiologists. To leverage this data, the authors propose an Attribute Relational Reasoning Network that treats clinical signs—such as nodules, cavities, and effusions—as "prompts" to guide the detection process. By modeling the relationships between these attributes and the disease, the framework significantly improves the accuracy and interpretability of weakly supervised TB localization and classification.

Introduction

Tuberculosis remains a significant global health challenge, necessitating efficient and accurate diagnostic tools. While deep learning has advanced computer-aided diagnosis, most high-performing models require massive datasets with precise bounding box annotations, which are time-consuming and costly to produce. Weakly Supervised Learning (WSL) offers a more scalable alternative by using image-level labels; however, WSL often suffers from low localization accuracy and a "black box" nature that ignores the diagnostic logic used by medical professionals.

Radiologists do not simply identify TB as a binary state; they look for specific clinical attributes—pathological signs like fibrotic streaks or pulmonary consolidation. This research aims to bridge the gap between data-driven deep learning and clinical practice by incorporating these attributes into the neural reasoning process, using them as spatial and semantic cues for disease detection.

The TBX-Att Dataset

A core contribution of this work is the introduction of the TBX-Att dataset. While existing datasets like TBX11K provide a large volume of images (11,200 in total), they often lack the fine-grained clinical detail necessary for interpretable AI. TBX-Att consists of 2,000 X-ray images annotated with seven distinct clinical signs:

  1. Fibrotic Streaks
  2. Pulmonary Consolidation
  3. Diffuse Nodules
  4. Pulmonary Cavitation
  5. Atelectasis
  6. Multiple Nodules
  7. Pleural Effusion

These attributes serve as the foundation for the model's reasoning capabilities, allowing it to move beyond simple pattern matching toward a more holistic understanding of TB pathology.

Methodology: Attribute Relational Reasoning

The proposed framework utilizes an attribute-assisted approach consisting of three integrated components:

1. Multi-scale Feature Extraction

The model employs a standard Feature Pyramid Network (FPN) with a ResNet-50 backbone. This allows the system to capture TB features at various resolutions, which is essential given that TB lesions can range from tiny nodules to large-scale consolidations.

2. Attribute Classifier

A dedicated branch identifies the seven clinical signs using "Attribute Blocks." These blocks utilize group convolutions and channel shuffling to efficiently extract attribute-specific information from the feature maps.

3. Attribute Relational Reasoning Network

This is the central innovation of the paper, featuring two specialized attention mechanisms:

  • Attr-Attr Attention ($A^2$-Attn): This module mines the relationships between different clinical attributes. It recognizes that certain signs often co-occur (e.g., nodules and cavities), allowing the model to develop a more structured understanding of the disease.
  • Attr-TB Attention (AT-Attn): This module treats the identified attributes as "prompts." Much like modern large language models use prompts to narrow a task, AT-Attn uses clinical signs to guide the model's focus, refining general features to better localize specific disease areas.

By jointly training the detection and attribute branches, the model learns to use clinical signs as spatial anchors for where the disease is likely located.

Experimental Results

The proposed model was evaluated against a standard Faster R-CNN baseline on the TBX-Att dataset. The inclusion of attribute reasoning led to substantial performance gains across all primary metrics:

  • Accuracy: Increased from 88.08% to 94.61%.
  • F-score: Improved from 29.24% to 39.37%.
  • mAP (mean Average Precision): Rose from 17.10% to 19.20%.

Furthermore, the "MultiScale" version of the model outperformed single-scale variants, confirming that interacting with attributes across different resolutions of the feature pyramid is critical for capturing the diverse morphology of tuberculosis.

Discussion and Conclusion

The results demonstrate that clinical attributes and TB detection are highly complementary tasks. As the model improves its ability to identify specific clinical signs, its capacity for overall disease localization increases. This "attribute-assisted" approach not only improves performance but also provides a level of interpretability that is often missing in deep learning models, as the system can point to specific pathological signs to justify its diagnosis.

Despite these successes, challenges remain. The attribute labels are often sparse, as most patients exhibit only one or two signs, making the training of relational modules difficult. Additionally, while 2,000 images represent a significant contribution to the field, larger datasets will be required to capture the full spectrum of TB manifestations. Future work will focus on expanding this framework to other thoracic diseases and refining the relational reasoning modules to handle sparse attribute data more effectively.

Summary updated

BibTeX
@inproceedings{pan2022computer,
  author = {Chengwei Pan and Gangming Zhao and Junjie Fang and Baolian Qi and Jiaheng Liu and Chaowei Fang and Dingwen Zhang and Jinpeng Li and Yizhou Yu},
  title = {{Computer-Aided Tuberculosis Diagnosis with Attribute Reasoning Assistance}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2022},
  doi = {10.1007/978-3-031-16431-6\_59},
}
Figure