Dataset Viewer
Auto-converted to Parquet Duplicate
volume_id
stringclasses
143 values
slice_id
int32
0
732
image
imagewidth (px)
512
512
cancer_mask
imagewidth (px)
512
512
has_nodule
bool
2 classes
malignancy_score
float32
1
5
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
0
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
1
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
2
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
3
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
4
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
5
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
6
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
7
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
8
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
9
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
10
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
11
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
12
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
13
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
14
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
15
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
16
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
17
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
18
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
19
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
20
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
21
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
22
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
23
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
24
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
25
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
26
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
27
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
28
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
29
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
30
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
31
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
32
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
33
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
34
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
35
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
36
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
37
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
38
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
39
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
40
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
41
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
42
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
43
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
44
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
45
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
46
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
47
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
48
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
49
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
50
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
51
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
52
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
53
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
54
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
55
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
56
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
57
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
58
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
59
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
60
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
61
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
62
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
63
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
64
true
2.333333
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
65
true
2.333333
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
66
true
2.333333
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
67
true
2.333333
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
68
true
2.333333
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
69
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
70
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
71
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
72
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
73
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
74
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
75
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
76
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
77
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
78
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
79
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
80
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
81
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
82
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
83
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
84
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
85
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
86
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
87
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
88
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
89
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
90
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
91
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
92
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
93
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
94
false
null
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
95
true
2.75
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
96
true
2.75
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
97
true
2.75
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
98
true
2.75
1.3.6.1.4.1.14519.5.2.1.6279.6001.898642529028521482602829374444
99
true
2.75
End of preview. Expand in Data Studio

LUNAxLIDC — 2D Slice-Based Lung CT Dataset with Nodule Masks

This dataset sits at the intersection of two complementary resources:

  • LUNA16 (LUng Nodule Analysis 2016) provides the scan selection and volume IDs. LUNA16 is a curated subset of LIDC-IDRI filtered to scans with slice thickness ≤2.5mm and a single reconstruction kernel per scan — 888 CT volumes in total. The volume_id field in this dataset corresponds directly to the LUNA16 series UIDs.

  • LIDC-IDRI (Lung Image Database Consortium and Image Database Resource Initiative) provides the nodule annotations. For each scan, four experienced thoracic radiologists independently marked and rated pulmonary nodules across 1,018 CT scans. Nodule masks and malignancy scores in this dataset are derived entirely from the LIDC-IDRI annotation layer, accessed via pylidc.

Here we provide a 2D slice-based version of the CT volumes, extracted alongside consensus nodule masks and malignancy scores derived from multi-radiologist agreement.


📦 Dataset Structure

Each entry corresponds to a single 2D axial slice from a 3D CT volume:

Field Description
volume_id Unique identifier for the CT scan (LUNA16 series UID)
slice_id Index of the axial slice within the volume
image 2D CT slice, normalized to 8-bit grayscale (PNG)
cancer_mask Binary nodule mask for the slice (PNG), derived from radiologist consensus
has_nodule Boolean — whether any nodule is present on this slice
malignancy_score Mean radiologist malignancy rating (1–5 scale) at the most suspicious voxel; null if no nodule on slice

⚙️ Preprocessing

  • Only CT volumes present in the LUNA16 subset list were used
  • Volumes were loaded from .mhd/.raw format using SimpleITK
  • Nodule annotations were retrieved via pylidc and merged using consensus masking at 50% radiologist agreement (clevel=0.5) — a voxel is marked as nodule only if ≥2 of the 4 radiologists agreed
  • Consensus masks were axis-corrected from pylidc's native (y, x, z) order to the volume's (z, y, x) order prior to projection
  • Malignancy scores were averaged across radiologists per nodule cluster; the maximum score was taken voxel-wise in regions of overlapping nodules
  • CT intensities were clipped to the lung window (−1000 to +300 HU) and linearly rescaled to 0–255
  • All slices (nodule-positive and nodule-negative) were exported; use has_nodule to filter or balance

🚀 Usage

from datasets import load_dataset
import matplotlib.pyplot as plt
import numpy as np

ds = load_dataset("chehablab/LUNAxLIDC", split="train")

# Show a nodule-positive slice alongside its mask
sample = next(s for s in ds if s["has_nodule"])

fig, axes = plt.subplots(1, 2, figsize=(10, 5))
axes[0].imshow(sample["image"], cmap="gray")
axes[0].set_title(
    f"Volume {sample['volume_id']} | Slice {sample['slice_id']}\n"
    f"Malignancy: {sample['malignancy_score']:.2f}"
)
axes[0].axis("off")

axes[1].imshow(sample["image"], cmap="gray")
axes[1].imshow(np.array(sample["cancer_mask"]), cmap="Reds", alpha=0.4)
axes[1].set_title("CT Slice + Nodule Mask Overlay")
axes[1].axis("off")

plt.tight_layout()
plt.show()

🏷️ Malignancy Scale

Radiologists rated each nodule on a 1–5 scale per the LIDC annotation protocol:

Score Interpretation
1 Highly unlikely to be malignant
2 Unlikely to be malignant
3 Indeterminate
4 Moderately suspicious for malignancy
5 Highly suspicious for malignancy

The malignancy_score in this dataset is the mean across all radiologists who rated a given nodule cluster (1–4 raters). Nodules with no malignancy rating were ignored.


⚠️ Important Notes

  • Class imbalance: The majority of slices are nodule-negative. It is strongly recommended to use weighted sampling or explicit filtering when training classification or segmentation models.
  • Volume-level splits: When creating train/val/test splits, always split at the volume_id level — never at the slice level — to prevent data leakage between sets.
  • Nodule size: Only nodules ≥3mm in diameter are included, consistent with the LUNA16 protocol.

📚 Citation

If you use this dataset, please acknowledge Chehab Lab and cite the original LIDC-IDRI and LUNA16 sources:

@article{Armato2011,
  author  = {Armato, Samuel G. and McLennan, Geoffrey and Bidaut, Luc and others},
  title   = {The Lung Image Database Consortium (LIDC) and Image Database Resource Initiative (IDRI): A Completed Reference Database of Lung Nodules on CT Scans},
  journal = {Medical Physics},
  year    = {2011},
  volume  = {38},
  number  = {2},
  pages   = {915--931},
  doi     = {10.1118/1.3528204}
}

@article{Setio2017,
  author  = {Setio, Arnaud Arindra Adiyoso and Traverso, Alberto and de Bel, Thomas and others},
  title   = {Validation, comparison, and combination of algorithms for automatic detection of pulmonary nodules in computed tomography images: The LUNA16 challenge},
  journal = {Medical Image Analysis},
  year    = {2017},
  volume  = {42},
  pages   = {1--13},
  doi     = {10.1016/j.media.2017.06.015}
}

📜 License

This dataset is released under the Creative Commons Attribution 3.0 Unported (CC BY 3.0) license.
You may copy, modify, distribute, and use the data, even for commercial purposes, provided that appropriate credit is given to the original authors.

CC BY 3.0

Chehab Lab @ 2026

Downloads last month
157

Collection including chehablab/LUNAxLIDC