Commit
·
9cbd7b2
1
Parent(s):
2816316
Update the dataset README.
Browse files
README.md
CHANGED
|
@@ -1,67 +1,94 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
datasets:
|
| 4 |
-
-
|
| 5 |
tags:
|
| 6 |
- benchmark
|
| 7 |
- heatmap
|
|
|
|
| 8 |
- source-localization
|
| 9 |
-
- synthetic
|
| 10 |
-
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# ThermBench
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
\[
|
| 21 |
-
H(i,j) \;=\; \sum_{s=1}^K \frac{I_s}{
|
| 22 |
\]
|
| 23 |
|
| 24 |
-
where \(
|
| 25 |
|
| 26 |
-
|
| 27 |
-
- **`input_text`**: Heatmap input following problem format:
|
| 28 |
-
- First line: grid size `N M`
|
| 29 |
-
- Second line: number of sources `K`
|
| 30 |
-
- Then `N` rows of grid heat values
|
| 31 |
-
- **`output_text`**: Ground-truth sources (row, col, intensity)
|
| 32 |
-
- **`level`**: Difficulty tier (`very_easy`, `easy`, `medium`, `hard`, `extreme`)
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
```json
|
| 36 |
{
|
| 37 |
"level": "easy",
|
| 38 |
-
"input_text": "5 5\n2\n10 8 6 5 4\n8 10 7 6 5\
|
| 39 |
"output_text": "1 1 10.0\n5 5 10.0"
|
| 40 |
}
|
| 41 |
```
|
| 42 |
|
| 43 |
-
|
| 44 |
-
- `very_easy`: 3×3 grid, 1 source
|
| 45 |
-
- `easy`: 5×5 grid, 2 sources
|
| 46 |
-
- `medium`: 10×10 grid, 3 sources
|
| 47 |
-
- `hard`: 20×20 grid, 5 sources
|
| 48 |
-
- `extreme`: 30×30 grid, 7 sources
|
| 49 |
|
| 50 |
-
|
| 51 |
-
A **fuzzy variant** (`thermbench-fuzzy`) introduces noise, source jitter, and decay variations to simulate real-world uncertainty.
|
| 52 |
|
| 53 |
-
## Usage
|
| 54 |
```python
|
| 55 |
from datasets import load_dataset
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
| 59 |
```
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
-
## License
|
| 67 |
-
Apache License
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
datasets:
|
| 3 |
+
- ZoneTwelve/Thermal-Heatmap-Source-Localization
|
| 4 |
tags:
|
| 5 |
- benchmark
|
| 6 |
- heatmap
|
| 7 |
+
- physics
|
| 8 |
- source-localization
|
| 9 |
+
- synthetic
|
| 10 |
+
license: apache-2.0
|
| 11 |
+
pretty_name: Thermal Heatmap Source Localization (ThermBench)
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# ThermBench 🔥 — Thermal Heatmap Source Localization Benchmark
|
| 15 |
+
|
| 16 |
+
## 📝 Summary
|
| 17 |
+
**ThermBench** is a physics-inspired **synthetic dataset** designed to evaluate algorithms that infer **hidden thermal sources** from an observed **heat diffusion map**.
|
| 18 |
|
| 19 |
+
Each data sample contains:
|
| 20 |
+
- an **observed heatmap** (matrix of values),
|
| 21 |
+
- and the **ground-truth sources**: `(row, col, intensity)`.
|
| 22 |
+
|
| 23 |
+
Diffusion follows inverse Manhattan distance:
|
| 24 |
|
| 25 |
\[
|
| 26 |
+
H(i,j) \;=\; \sum_{s=1}^{K} \frac{I_s}{d(i,j,s)+1}
|
| 27 |
\]
|
| 28 |
|
| 29 |
+
where \(d\) is the Manhattan distance to source \(s\).
|
| 30 |
|
| 31 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
## 📊 Dataset Structure
|
| 34 |
+
|
| 35 |
+
- **level**: Difficulty tier (`very_easy`, `easy`, `medium`, `hard`, `extreme`)
|
| 36 |
+
- **input_text**: Heatmap formatted as:
|
| 37 |
+
```
|
| 38 |
+
N M
|
| 39 |
+
K
|
| 40 |
+
<N rows of values>
|
| 41 |
+
```
|
| 42 |
+
- **output_text**: True source positions and intensities in format:
|
| 43 |
+
```
|
| 44 |
+
row col intensity
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
### Example
|
| 48 |
```json
|
| 49 |
{
|
| 50 |
"level": "easy",
|
| 51 |
+
"input_text": "5 5\n2\n10 8 6 5 4\n8 10 7 6 5\n6 7 10 7 6\n5 6 7 10 8\n4 5 6 8 10",
|
| 52 |
"output_text": "1 1 10.0\n5 5 10.0"
|
| 53 |
}
|
| 54 |
```
|
| 55 |
|
| 56 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
## 🚀 Usage
|
|
|
|
| 59 |
|
|
|
|
| 60 |
```python
|
| 61 |
from datasets import load_dataset
|
| 62 |
|
| 63 |
+
dataset = load_dataset(
|
| 64 |
+
"ZoneTwelve/Thermal-Heatmap-Source-Localization",
|
| 65 |
+
split="train"
|
| 66 |
+
)
|
| 67 |
+
print(dataset[0])
|
| 68 |
```
|
| 69 |
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
## 🎚 Difficulty Levels
|
| 73 |
+
|
| 74 |
+
- **very_easy** → 3×3 grid, 1 source
|
| 75 |
+
- **easy** → 5×5 grid, 2 sources
|
| 76 |
+
- **medium** → 10×10 grid, 3 sources
|
| 77 |
+
- **hard** → 20×20 grid, 5 sources
|
| 78 |
+
- **extreme** → 30×30 grid, 7 sources
|
| 79 |
+
|
| 80 |
+
Each level contains 100 samples → **500 total**.
|
| 81 |
+
|
| 82 |
+
A fuzzy extension of ThermBench introduces noise, intensity jitter, and rounding differences to simulate real‑world sensor readings.
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## 🔧 Intended Applications
|
| 87 |
+
- Benchmarking **inverse problem solvers**
|
| 88 |
+
- Robustness studies for optimization/AI
|
| 89 |
+
- Educational resource for algorithm development
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
|
| 93 |
+
## 📜 License
|
| 94 |
+
Apache License 2.0 © ZoneTwelve
|