--- license: cc-by-4.0 task_categories: - visual-question-answering - image-classification language: - en tags: - additive-manufacturing - laser-powder-bed-fusion - meltpool - near-infrared - thermal-monitoring - vqa pretty_name: NIR Meltpool Thermal-State VQA size_categories: - 10K **Classes present in this release:** only sample 588 images were available, so > only **baseline, edge, strong underheat** appear. The `query` still lists all six > options and the schema supports all six for when the remaining samples are added. ## Record schema Each record has the fields: - **query** — the question (fixed, lists all six options). - **image** — the NIR frame (embedded PNG; HF `Image` feature). - **annot** — ground-truth class name (the answer), from the source CSV `label`. - **reasoning** — a grounded chain-of-thought referencing the frame's NIR intensity. - **cate** — `meltpool_thermal_state`. - **task** — `meltpool_thermal_state_classification`. - **metadata** — provenance & process signals: source TIF name, `label_id`, stage position (`position_X`, `position_Z`), `V`, capture `time`, per-image intensity stats, and the global normalization constants. ## Splits Total: **77,280** records. | split | count | per class | |-------|-------|-----------| | train | 61,825 | baseline: 39,654, edge: 13,051, strong underheat: 9,120 | | validation | 7,728 | baseline: 4,957, edge: 1,631, strong underheat: 1,140 | | test | 7,727 | baseline: 4,956, edge: 1,631, strong underheat: 1,140 | **Split strategy — leakage-aware.** Frames are ~2 us apart and adjacent frames are near-duplicates. Splitting is *time-block stratified*: within each label the frames are ordered by capture time and cut into 10 contiguous blocks (8 train / 1 validation / 1 test), so near-duplicate neighbours stay in the same split. ## Image processing Source TIFs are single-channel `uint16`. They are mapped to 8-bit RGB PNG with a **single global** linear normalization (clip to the dataset-wide 1st/99th percentile, `[norm_low_uint16, norm_high_uint16]`, then scale to 0-255) and channel-replicated. Global (not per-image) normalization is deliberate: absolute brightness is the physical cue that distinguishes under- vs over-heated pools, and per-image contrast stretching would destroy it. ## Usage ```python from datasets import load_dataset ds = load_dataset("YOUR_USERNAME/YOUR_REPO") ex = ds["train"][0] ex["image"] # PIL.Image ex["query"], ex["annot"], ex["reasoning"] ex["metadata"]["label_id"] ``` ## Provenance & license Converted from `hyperspectral_nir_meltpool_dataset.csv` + `hyperspectral_nir_meltpool_images_2.zip` (sample 588). Ground-truth labels come directly from the CSV `label` column, matched to images by exact `filename` (verified 1:1 for all 77,280 frames). Released under **CC-BY-4.0**; if the upstream meltpool dataset carries a different license, update this field before publishing.