Datasets:
Dataset Viewer
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code: StreamingRowsError
Exception: UnidentifiedImageError
Message: cannot identify image file <_io.BytesIO object at 0x7fd435f2eca0>
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2240, in __iter__
example = _apply_feature_types_on_example(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2159, in _apply_feature_types_on_example
decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2204, in decode_example
column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 1508, in decode_nested_example
return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) if obj is not None else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/image.py", line 190, in decode_example
image = PIL.Image.open(bytes_)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/PIL/Image.py", line 3498, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fd435f2eca0>Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
NIH ChestX-ray14 — Preprocessed Dataset
Dataset Description
Preprocessed version of the NIH ChestX-ray14 dataset for multi-label thoracic disease classification.
Source
- Original Dataset: NIH ChestX-ray14
- Institution: NIH Clinical Center
- License: CC0 1.0 (Public Domain)
Citation
@inproceedings{wang2017chestx,
title={ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases},
author={Wang, Xiaosong and Peng, Yifan and Lu, Le and Lu, Zhiyong and Bagheri, Mohammadhadi and Summers, Ronald M},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
pages={2097--2106},
year={2017}
}
Preprocessing Pipeline
1. Quality Filtering
Images were filtered based on pixel intensity statistics from the original 112,120 images:
- Too dark (mean < 50): 61 images removed, 28 manually cropped (black border removal) and retained
- Too bright (mean > 195): 52 images removed, 2 manually cropped (white border removal) and retained
- Low contrast (std < 25 after CLAHE): 28 images removed, 1 retained (00004480_000.png)
- Total removed: 141 images
- Total retained: 111,979 images
2. Image Processing (applied to all retained images)
- CLAHE (Contrast Limited Adaptive Histogram Equalization): clipLimit=2.0, tileGridSize=(8,8)
- Resize: 224×224 pixels, Bilinear interpolation
- Channel: Grayscale → 3-channel RGB (channel replication)
- Format: PNG
3. Normalization
Not applied at save time. Apply ImageNet normalization at DataLoader time:
- mean = [0.485, 0.456, 0.406]
- std = [0.229, 0.224, 0.225]
4. Train/Test Split
- Method: Patient ID-based GroupShuffleSplit (85/15)
- Train: 96,359 images (26,152 patients)
- Test: 15,620 images (4,616 patients)
- Patient overlap: 0 (verified)
5. Cross-Validation
- Method: 5-Fold GroupKFold (Patient-wise) on train set
- Fold column included in
train.csv(values 0–4) - Fold-to-fold patient overlap: 0 (verified)
6. Multi-hot Encoding
14 diseases encoded in alphabetical order:
| Index | Disease |
|---|---|
| 0 | Atelectasis |
| 1 | Cardiomegaly |
| 2 | Consolidation |
| 3 | Edema |
| 4 | Effusion |
| 5 | Emphysema |
| 6 | Fibrosis |
| 7 | Hernia |
| 8 | Infiltration |
| 9 | Mass |
| 10 | Nodule |
| 11 | Pleural_Thickening |
| 12 | Pneumonia |
| 13 | Pneumothorax |
"No Finding" → all zeros [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
Directory Structure
processed/
├── README.md
├── available/
│ ├── images/ # 111,979 preprocessed images (224×224×3 PNG)
│ ├── data.csv # Full metadata + multi-hot encoding
│ ├── train.csv # Train split (96,359 rows, includes fold column)
│ └── test.csv # Test split (15,620 rows)
└── unavailable/
├── images/ # 141 filtered-out original images
└── data.csv # Metadata for filtered images
CSV Columns
| Column | Description |
|---|---|
| Image Index | Filename (e.g., 00000001_000.png) |
| Finding Labels | Pipe-separated labels (e.g., Atelectasis|Effusion) |
| Follow-up # | Follow-up visit number |
| Patient ID | Unique patient identifier |
| Patient Age | Age in years |
| Patient Gender | M or F |
| View Position | PA or AP |
| OriginalImage[Width,Height] | Original image dimensions |
| OriginalImagePixelSpacing[x,y] | Pixel spacing |
| Atelectasis ... Pneumothorax | Multi-hot encoded disease columns (0 or 1) |
| fold | (train.csv only) Cross-validation fold index (0–4) |
- Downloads last month
- 66