Datasets:
Tasks:
Image-to-Text
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
License:
File size: 4,955 Bytes
3a12e4e ea52d82 3a12e4e ea52d82 3a12e4e ea52d82 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | ---
license: other
task_categories:
- image-to-text
language:
- en
tags:
- spectroscopy
- materials-science
- multimodal
- benchmark
- raman
- xrd
- ftir
- mass-spectrometry
- scientific-reasoning
- foundation-models
pretty_name: SpectraNet
size_categories:
- 10K<n<100K
---
# SpectraNet
SpectraNet is a multimodal spectroscopy benchmark for evaluating scientific reasoning in foundation models.
The benchmark contains curated experimental spectra across Raman, X-ray diffraction (XRD), Fourier-transform infrared spectroscopy (FTIR), and mass spectrometry (MS), together with metadata, spectrum images, processed spectral arrays, peak annotations, and evaluation-related outputs.
SpectraNet is designed to evaluate whether foundation models can perceive plotted experimental spectra, extract characteristic peaks, and support downstream scientific reasoning over spectroscopic evidence.
## Dataset Structure
The dataset is released in sharded form because the full image directory contains a large number of files.
```text
spectranet/
├── public_shards/
│ ├── public_part_0000.zip
│ ├── public_part_0001.zip
│ └── public_part_0002.zip
├── splits/
│ └── data.csv
└── manifest.json
```
After extracting all ZIP files in `public_shards/`, the original public dataset structure will be restored as:
```text
public/
├── data/
│ └── shards/
│ ├── 00.parquet
│ ├── 01.parquet
│ └── ...
└── images/
├── *.png
└── ...
```
## Files
### `public_shards/`
The full `public/` folder is provided as multiple ZIP shards. Each ZIP file preserves the original folder structure, including:
```text
public/data/
public/images/
```
To reconstruct the full dataset, download all ZIP files under `public_shards/` and extract them into the same directory.
### `public/data/`
This folder contains Parquet shards storing the processed spectral arrays and compact metadata.
Each Parquet record includes fields such as:
```text
sample_id
mid
modality
subkey
x
y
x_unit
y_unit
x_min
x_max
y_min
y_max
n_points
```
The `x` and `y` fields store the processed spectral coordinates and intensities.
### `public/images/`
This folder contains PNG spectrum previews generated from the processed spectral arrays.
The image filenames correspond to the `sample_id` field used in the metadata table.
### `splits/data.csv`
`data.csv` is the main post-processed metadata table. It contains one row per processed sample and includes both metadata fields and file pointers.
Important columns include:
```text
sample_id
mid
modality
subkey
image_path
data_path
x_min
x_max
y_min
y_max
n_points
x_unit
y_unit
method
measurement_condition
crystal_system
material_name
phase_label
classification
preferred_chemical_formula
source_format
file_path
```
The `image_path` column points to the corresponding PNG image under `public/images/`.
The `data_path` column points to the corresponding Parquet shard under `public/data/shards/`.
## Reconstructing the Dataset
Download all ZIP files in `public_shards/`, then extract them into the same output directory:
```python
from pathlib import Path
import zipfile
root = Path("spectranet")
shard_dir = root / "public_shards"
out_dir = root / "extracted"
out_dir.mkdir(parents=True, exist_ok=True)
for zip_path in sorted(shard_dir.glob("public_part_*.zip")):
print("Extracting", zip_path.name)
with zipfile.ZipFile(zip_path, "r") as zf:
zf.extractall(out_dir)
print("Done.")
```
After extraction, the reconstructed dataset should contain:
```text
extracted/public/data/
extracted/public/images/
```
## Loading Metadata
```python
import pandas as pd
df = pd.read_csv("splits/data.csv")
print(df.head())
```
## Loading a Parquet Shard
```python
import pandas as pd
parquet_path = "public/data/shards/00.parquet"
data = pd.read_parquet(parquet_path)
print(data.head())
```
## Linking Images and Data
Each row in `splits/data.csv` contains an `image_path` and a `data_path`.
```python
import pandas as pd
from pathlib import Path
df = pd.read_csv("splits/data.csv")
row = df.iloc[0]
image_path = Path(row["image_path"])
data_path = Path(row["data_path"])
print("Image:", image_path)
print("Parquet shard:", data_path)
```
## License
This dataset is released for research use.
Please refer to the original data sources for source-specific licensing terms.
## Citation
If you use SpectraNet, please cite the associated paper:
```bibtex
@article{spectranet2026,
title={SpectraNet: A Multimodal Spectroscopy Benchmark for Evaluating Scientific Reasoning in Foundation Models},
author={Gu, Yijun and Yang, Jingyun and Liu, Yongtao and Wang, Haozhe},
year={2026}
}
```
## Notes
This repository is currently under active release preparation.
Dataset files are uploaded in segmented batches because of repository file-count and upload-rate limitations. |