--- license: other license_name: nlst-data-use-agreement license_link: https://cdas.cancer.gov/learn/nlst/images/NLST_CDAS_Participant_Data_Use_Agreement.pdf language: - en pretty_name: OpenM3Chest Labels v2 size_categories: - 10K30mm | ### Cardiology | Config | Label type | Classes | |---|---|---| | `CVD_diagnosis` | int (0/1) | 0 = No, 1 = Yes | | `CVD_mortality` | int (0/1) | 0 = Low risk, 1 = High risk | ### Oncology | Config | Label type | Description | |---|---|---| | `lung_cancer_risk` | string (JSON) | Dict with `y` (bool), `y_seq` (6-year sequence), `y_mask` | ```python import json record = ds["train"][0] label = json.loads(record["labels"]) print(label["y"]) # True/False — cancer within follow-up print(label["y_seq"]) # [0,0,0,1,0,0] — year-by-year occurrence ``` ## Loading NPY Files ```python import json import numpy as np from huggingface_hub import hf_hub_download record = ds["train"][0] npy_path = hf_hub_download( repo_id = "UngLong/openm3chest-npy-v2", filename = f"{record['pids']}/{record['keys']}.npy", repo_type = "dataset", ) volume = np.load(npy_path) # shape: [Z, H, W], dtype: float16 ``` ## Sequential Inference (Radiology) The Radiology agent uses **sequential inference**: ``` Step 1 — Screening: chest_abn_54–61 + nodule_presence Step 2 — If nodule_presence = Yes: nodule_location, nodule_attenuation, nodule_margin, nodule_size ``` Training data reflects this: - **Pool A** (198 scans): all 12 tasks, `nodule_presence = 1` - **Pool B** (150 scans): screening tasks only, `nodule_presence = 0` ## Source Built from [OpenM3Chest](https://openm3chest.org) — NLST-based chest CT dataset with clinical labels. CT images available via [IDC (Imaging Data Commons)](https://imaging.datacommons.cancer.gov/).