squid-bench-anon commited on
Commit
d76158e
·
verified ·
1 Parent(s): ebf181c

Initial release

Browse files
.gitattributes CHANGED
@@ -1,6 +1,5 @@
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
  *.bin filter=lfs diff=lfs merge=lfs -text
5
  *.bz2 filter=lfs diff=lfs merge=lfs -text
6
  *.ckpt filter=lfs diff=lfs merge=lfs -text
 
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
 
3
  *.bin filter=lfs diff=lfs merge=lfs -text
4
  *.bz2 filter=lfs diff=lfs merge=lfs -text
5
  *.ckpt filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,257 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - visual-question-answering
5
+ language:
6
+ - en
7
+ tags:
8
+ - satellite-imagery
9
+ - spatial-reasoning
10
+ - benchmark
11
+ - quantitative-reasoning
12
+ - VLM
13
+ - language-understanding
14
+ size_categories:
15
+ - 1K<n<10K
16
+ pretty_name: SQuID
17
+ ---
18
+
19
+ # SQuID: Satellite Quantitative Intelligence Dataset
20
+
21
+ A comprehensive benchmark for evaluating quantitative spatial reasoning in Vision-Language Models using satellite imagery.
22
+
23
+ ## Dataset Overview
24
+
25
+ - **2000 questions** testing spatial reasoning on satellite imagery
26
+ - **587 unique images** across four datasets
27
+ - **1950 auto-labeled** questions from segmentation masks (DeepGlobe, EarthVQA, Solar Panels)
28
+ - **50 human-annotated** questions from NAIP imagery with consensus answers
29
+ - **1577 questions** include human-agreement ranges for numeric answers
30
+ - **3 difficulty tiers**: Basic (710), Spatial (616), Complex (674)
31
+ - **3 resolution levels**: 0.3m, 0.5m, 1.0m GSD
32
+
33
+ ## Human Annotation & Agreement Methodology
34
+
35
+ ### Human Annotation Process
36
+ - **50 questions** on NAIP 1.0m GSD imagery were annotated by humans
37
+ - **10 annotators per question** resulting in 500 total annotations
38
+ - **Answer aggregation**:
39
+ - **Numeric questions**: Used MEDIAN of all responses for robustness
40
+ - **Categorical questions** (connected/fragmented): Used MAJORITY voting
41
+ - **Binary questions**: Converted yes/no to 1/0 and used majority
42
+
43
+ ### Human Agreement Quantification
44
+ From the 500 human annotations, we computed the Mean Median Absolute Deviation (MAD) for each question type:
45
+ - **Percentage questions**: MAD = ±1.74 percentage points
46
+ - **Proximity questions**: MAD = ±2.25 percentage points
47
+ - **Count questions**: Normalized MADc = 0.19 (proportional to count magnitude)
48
+
49
+ For count questions, we use a normalized MAD (MADc) that makes the acceptable range proportional to the count value:
50
+ ```
51
+ MADc = median(|Xi - median(X)|) / median(X) = 0.19
52
+ ```
53
+
54
+ ### Acceptable Range Calculation
55
+ These MAD values were applied to ALL numeric questions in the benchmark to define acceptable ranges:
56
+
57
+ ```python
58
+ import math
59
+
60
+ # For percentage questions (absolute deviation)
61
+ if question_type == 'percentage':
62
+ lower = max(0.0, answer - 1.74)
63
+ upper = min(100.0, answer + 1.74)
64
+
65
+ # For count questions (proportional deviation)
66
+ # range(C) = [C - max(1, C × MADc), C + max(1, C × MADc)]
67
+ elif question_type in ['count', 'building_proximity', 'building_flood_risk',
68
+ 'building_fire_risk', 'connectivity']:
69
+ MADc = 0.19
70
+ dr = max(1, answer * MADc) # At least ±1 deviation
71
+ lower = max(0, math.floor(answer - dr))
72
+ upper = math.ceil(answer + dr)
73
+
74
+ # For proximity percentage questions (absolute deviation)
75
+ elif 'within' in question and 'm of' in question:
76
+ lower = max(0.0, answer - 2.25)
77
+ upper = min(100.0, answer + 2.25)
78
+ ```
79
+
80
+ **Example count ranges with MADc = 0.19:**
81
+ - C=5 → range [4, 7]
82
+ - C=10 → range [8, 12]
83
+ - C=50 → range [40, 60]
84
+ - C=100 → range [81, 120]
85
+
86
+ Special cases:
87
+ - Zero values have no range (exact match required)
88
+ - Binary/fragmentation questions have no range (exact match)
89
+ - Ranges are capped at valid bounds (0-100 for percentages, ≥0 for counts)
90
+
91
+ ## Question Types
92
+
93
+ The benchmark includes 24 distinct question types organized into three tiers:
94
+
95
+ ### Tier 1: Basic Questions (710 questions)
96
+ - **percentage**: Coverage percentage of a land use class
97
+ - **count**: Number of separate regions or objects
98
+ - **size**: Area measurements of regions
99
+ - **total_area**: Total area covered by a class
100
+ - **binary_comparison**: Comparing quantities between two classes
101
+ - **binary_presence**: Checking if a class exists
102
+ - **binary_threshold**: Testing if values exceed thresholds
103
+ - **binary_multiple**: Checking for multiple instances
104
+
105
+ ### Tier 2: Spatial Questions (616 questions)
106
+ - **proximity_percentage**: Percentage of one class near another
107
+ - **proximity_area**: Area of one class near another
108
+ - **binary_proximity**: Presence of one class near another
109
+ - **building_proximity**: Number of buildings near other features
110
+ - **building_flood_risk**: Buildings at flood risk (near water)
111
+ - **building_fire_risk**: Buildings at fire risk (near forest)
112
+ - **connectivity**: Counting isolated patches by size
113
+ - **fragmentation**: Assessing if regions are connected or fragmented
114
+ - **power_calculation**: Calculating solar panel power output
115
+
116
+ ### Tier 3: Complex Questions (674 questions)
117
+ - **complex_multi_condition**: Areas meeting multiple spatial criteria
118
+ - **complex_urban_flood_risk**: Urban areas at flood risk (near water)
119
+ - **complex_urban_fire_risk**: Urban areas at fire risk (near forest)
120
+ - **complex_agriculture_water_access**: Agricultural land with irrigation potential
121
+ - **complex_size_filter**: Filtering by size thresholds
122
+ - **complex_average**: Average sizes of regions
123
+
124
+ ## Loading the Dataset
125
+
126
+ ```python
127
+ from datasets import load_dataset
128
+
129
+ # Load dataset
130
+ dataset = load_dataset("squid-bench-anon/SQuID")
131
+
132
+ # Access a sample
133
+ sample = dataset['train'][0]
134
+ image = sample['image'] # PIL Image
135
+ question = sample['question']
136
+ answer = sample['answer'] # String or numeric
137
+ type = sample['type']
138
+
139
+ # Convert answer based on type
140
+ if type in ['percentage', 'count', 'proximity_percentage', 'proximity_area',
141
+ 'building_proximity', 'building_flood_risk', 'building_fire_risk',
142
+ 'connectivity', 'size', 'total_area', 'power_calculation'] or 'complex' in type:
143
+ answer_value = float(answer)
144
+ elif 'binary' in type:
145
+ answer_value = int(answer) # 0 or 1
146
+ elif type == 'fragmentation':
147
+ answer_value = answer # "connected" or "fragmented"
148
+ ```
149
+
150
+ ## Fields
151
+
152
+ - **id**: Question identifier (e.g., "SQuID_0001")
153
+ - **image**: Satellite image path
154
+ - **question**: Question text with GSD notation
155
+ - **answer**: Ground truth answer
156
+ - **type**: One of 24 question types
157
+ - **tier**: Difficulty level (1=Basic, 2=Spatial, 3=Complex)
158
+ - **gsd**: Ground sampling distance in meters
159
+ - **acceptable_range**: [lower, upper] bounds for numeric questions (when applicable)
160
+
161
+ ## Evaluation
162
+
163
+ For numeric questions, check if predictions fall within the acceptable range:
164
+
165
+ ```python
166
+ import math
167
+
168
+ def evaluate(prediction, sample):
169
+ if 'acceptable_range' in sample:
170
+ # Numeric question - check if within human agreement range
171
+ lower, upper = sample['acceptable_range']
172
+ return lower <= float(prediction) <= upper
173
+ else:
174
+ # Non-numeric question - exact match required
175
+ return str(prediction).lower() == str(sample['answer']).lower()
176
+ ```
177
+
178
+ The acceptable ranges represent the natural variation in human perception for spatial measurements.
179
+
180
+ ## Dataset Distribution
181
+
182
+ ### By Tier
183
+ - **Tier 1 (Basic)**: 710 questions (35.5%)
184
+ - **Tier 2 (Spatial)**: 616 questions (30.8%)
185
+ - **Tier 3 (Complex)**: 674 questions (33.7%)
186
+
187
+ ### Top Question Types
188
+ - **complex_multi_condition**: 490 questions (24.5%)
189
+ - **count**: 178 questions (8.9%)
190
+ - **binary_comparison**: 172 questions (8.6%)
191
+ - **size**: 166 questions (8.3%)
192
+ - **percentage**: 157 questions (7.8%)
193
+ - **proximity_percentage**: 123 questions (6.2%)
194
+ - **binary_proximity**: 122 questions (6.1%)
195
+ - **proximity_area**: 107 questions (5.3%)
196
+ - **connectivity**: 104 questions (5.2%)
197
+ - **fragmentation**: 98 questions (4.9%)
198
+
199
+ ### By Source
200
+ - **DeepGlobe (0.5m GSD)**: 612 questions, 174 images - Land use classification masks
201
+ - **EarthVQA (0.3m GSD)**: 1241 questions, 364 images - Building detection and land cover masks
202
+ - **Solar Panels (0.3m GSD)**: 97 questions, 35 images - Solar panel segmentation masks
203
+ - **NAIP (1.0m GSD)**: 50 questions, 14 images - Human-annotated diverse scenes
204
+
205
+
206
+ ## Statistics Summary
207
+
208
+ - **Zero-valued answers**: 102 (5.1%)
209
+ - **Questions with ranges**: 1577 (78.8%)
210
+ - **Average questions per image**: 3.4
211
+
212
+ ## Notes
213
+
214
+ - Questions explicitly state minimum area thresholds (e.g., "ignore patches smaller than 0.125 hectares")
215
+ - Zero-valued answers indicate absence of features (intentionally included for robustness testing)
216
+ - The benchmark tests both presence and absence of spatial features to avoid positive-only bias
217
+ - Human agreement ranges allow for natural variation in spatial perception and counting
218
+ - All measurements use metric units based on the specified GSD (Ground Sampling Distance)
219
+ - Count ranges use proportional MADc (0.19) so larger counts have wider acceptable ranges
220
+
221
+ ## Source Datasets & Attribution
222
+
223
+ SQuID is constructed from publicly available remote-sensing datasets. We use only images from published validation or test splits and comply with the original dataset licenses.
224
+
225
+ - **DeepGlobe**
226
+ Ilke Demir et al., *DeepGlobe 2018: A Challenge to Parse the Earth through Satellite Images*, CVPR Workshops 2018.
227
+ Source: https://deepglobe.org/
228
+
229
+ - **EarthVQA**
230
+ Junjue Wang et al., *EarthVQA: Towards Queryable Earth via Relational Reasoning-based Remote Sensing Visual Question Answering*, ICCV 2023.
231
+ Source: https://github.com/WangJunjue/EarthVQA
232
+
233
+ - **Photovoltaic (Solar Panels) Dataset**
234
+ H. Jiang et al., *Multi-resolution dataset for photovoltaic panel segmentation from satellite and aerial imagery*, Earth System Science Data, 2021.
235
+ Source: https://essd.copernicus.org/articles/13/5389/2021/
236
+
237
+ - **NAIP Imagery**
238
+ U.S. Geological Survey, *National Agriculture Imagery Program (NAIP)*.
239
+ Source: https://www.usgs.gov/core-science-systems/national-geospatial-program/national-agriculture-imagery-program
240
+
241
+ SQuID is released under **CC BY-NC 4.0** (academic / non-commercial use), inheriting the most restrictive upstream license among its source datasets (LoveDA/EarthVQA: academic-only). Derived annotations, questions, and acceptable answer ranges introduced in SQuID are contributed under the same CC BY-NC 4.0 terms when redistributed alongside the source imagery.
242
+
243
+
244
+ ## Citation
245
+
246
+ If you use this dataset, please cite:
247
+
248
+ ```bibtex
249
+ @misc{anonymous2026squid,
250
+ title={SQuID: A Benchmark for Quantitative Spatial Reasoning on Satellite Imagery},
251
+ author={Anonymous Authors},
252
+ year={2026},
253
+ note={NeurIPS 2026 Evaluations and Datasets Track Submission (under review)}
254
+ }
255
+ ```
256
+
257
+ ---
data/train-00000-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a14448b62c26ca4c7779abdc17162aeaf29d07317cc11ec4972951bd404956a6
3
+ size 494504283
data/train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33a50a72ab8191813e823de1876fe08218c53e6764a8ce87320975a63fc00893
3
+ size 482984915
data/train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97c97faea179843f5342e17f92f58bef189ae3d44d70eefe07ad00864ba7666c
3
+ size 491667333
data/train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27b59a4305775e847eed1150e9255dd4d41da4625ca1a33dd282bf6261623801
3
+ size 490154206
data/train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e6bd706ca6fd66592270a7e8c5d581a07b36bc5fe29166d0b5e97ee84d7595e
3
+ size 486418061
data/train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c38aecf5b89acf8a822f4e82ff20a114eb0ddde280ddb1f72bcf79760252ca
3
+ size 501176271
data/train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50dc0e3041a59990330bb12a7170534f27028d9062b7656a6a8447e4886480d5
3
+ size 491993097
data/train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:923877622f690614932a0cf7879c1d4bf5bf03553b9f4e7a28bf47e10ca91e20
3
+ size 519559249