You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This dataset contains medical images. Access is granted for non-commercial research use only, under the CC BY-NC 4.0 license. You agree not to attempt to re-identify any individual and not to redistribute the data.

Log in or Sign Up to review the conditions and access this dataset content.

TB Chest X-ray Dataset

Chest X-ray images from suspected TB patients in Uganda, labelled by radiologists for tuberculosis (TB) diagnosis.

This dataset was collected for, and is described in, the paper PaliGemma-CXR: a multi-task multimodal model for tuberculosis chest X-ray interpretation (BMC Artificial Intelligence, 2025).

Data collection

There are almost no open chest X-ray datasets from Africa, and models trained on existing open datasets do not perform as well on Ugandan images. To fill this gap, digital chest X-rays were collected over one year from suspected TB patients at four Ugandan hospitals, each serving over 100 TB patients a week:

Hospital Setting
Mengo Hospital (Ernest Cook Ultrasound Research and Education Institute, ECUREI) Urban
Mulago National Referral Hospital Urban
Kisiizi Hospital Rural
Amai Hospital Rural

Annotation

An annotation protocol was written before data collection began. Three radiologists, each with over ten years of experience, annotated the images, and every image was labelled by at least two of them. The protocol had three steps:

  1. Image quality: good (no defects), average (interpretable with minor defects) or poor (uninterpretable).
  2. Radiological features: segmentation of TB-associated findings: cavities, consolidation, pleural effusion, pneumonia, abnormal lymph nodes, hydropneumothorax, miliary TB, ring shadows and pleural thickening.
  3. TB diagnosis: TB positive (sub-categorised as active or inactive TB), TB negative, or non-TB infection (features unrelated to TB).

This release contains the diagnosis labels only:

  • Positive: TB positive (active or inactive)
  • Negative: TB negative
  • Others: non-TB infection

Contents

  • images/: 1,817 chest X-ray images (.jpg / .jpeg)
  • metadata.csv: file_name, label for every image
  • TB_diagnosis_labels.json: the same labels as a {image_id: label} map
Label Images
Positive 963
Negative 783
Others 71

Usage

from datasets import load_dataset

ds = load_dataset("dmusingu/tb-chest-x-ray-dataset", split="train")
print(ds[0]["label"])

You need to be logged in (hf auth login) with an account that has been granted access.

Ethics

The study and data collection were approved by the Mengo Hospital Research and Ethics Committee (MHREC 52/07-2021), including consent and data sharing agreements, and by the Uganda National Council for Science and Technology (UNCST HS2043ES). Patients whose X-ray images are included gave informed consent.

Limitations

  • The dataset is small and comes from four hospitals in one country, so models trained on it may not generalise to other populations or equipment.
  • The classes are imbalanced; Others (non-TB infection) is much rarer than the other two.

Funding and acknowledgements

Collection of the chest X-ray images was funded by the Lacuna Fund and the Makerere Research and Innovation Fund. Thanks to the Mengo Hospital Research and Ethics Committee, the Uganda National Council for Science and Technology, the ECUREI team and the Marconi Research and Innovation Lab.

Citation

If you use this dataset, please cite:

@article{musinguzi2025paligemmacxr,
  title   = {PaliGemma-CXR: a multi-task multimodal model for tuberculosis chest X-ray interpretation},
  author  = {Musinguzi, Denis and Katumba, Andrew and Murindanyi, Sudi and Nakatumba-Nabende, Joyce and Mwikirize, Cosmas and Mbabazi, Margaret and Kisembo, Harriet and Malumba, Richard and Kawooya, Micheal G.},
  journal = {BMC Artificial Intelligence},
  volume  = {1},
  pages   = {7},
  year    = {2025},
  doi     = {10.1186/s44398-025-00008-3},
  url     = {https://link.springer.com/article/10.1186/s44398-025-00008-3}
}

License

CC BY-NC 4.0. Non-commercial research use only.

Downloads last month
151