kdoherty commited on
Commit
f4dda00
·
verified ·
1 Parent(s): 302d8d4

card: README

Browse files
Files changed (1) hide show
  1. README.md +491 -0
README.md CHANGED
@@ -1,4 +1,17 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: frame_id
@@ -107,3 +120,481 @@ configs:
107
  - split: train_tier_2
108
  path: data/train_tier_2-*
109
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ pretty_name: MPG Ranch Multimodal Survey
4
+ task_categories:
5
+ - image-classification
6
+ tags:
7
+ - biology
8
+ - ecology
9
+ - botany
10
+ - multimodal
11
+ - remote-sensing
12
+ - robotics
13
+ size_categories:
14
+ - 1K<n<10K
15
  dataset_info:
16
  features:
17
  - name: frame_id
 
120
  - split: train_tier_2
121
  path: data/train_tier_2-*
122
  ---
123
+
124
+ # MPG Ranch multimodal survey: robot config
125
+
126
+ Can seeing a plant from the ground *and* from the air improve automated species
127
+ identification? Paired ground-level and overhead imagery of Montana grassland,
128
+ hand-labeled for 8 plant species, built to answer that question.
129
+
130
+ **8,287** labeled frames · **8** target species · **2** sites, 9 strips ·
131
+ **1.4 cm** RTK accuracy · **1.28 cm** drone GSD · **34** columns
132
+
133
+ ## 1. Contents and motivation
134
+
135
+ Identifying plant species from photographs is hard from any single vantage
136
+ point. A camera at ground level sees leaf shape, flower color, and growth
137
+ habit, but stems overlap and distant plants shrink to a few pixels. A camera
138
+ looking straight down sees the spatial arrangement of vegetation clearly, but
139
+ flattens the very structure that distinguishes one species from another. Each
140
+ view holds information the other lacks. This dataset exists to test whether
141
+ combining them improves species classification over either alone. A
142
+ four-legged robot walked parallel transects across two grassland sites at MPG
143
+ Ranch in western Montana, photographing the vegetation ahead of it every
144
+ meter, with each camera position surveyed to centimeter accuracy. A drone
145
+ photographed the same ground from above, usually within a few hours of the
146
+ walk and always within a day, and its imagery was stitched into a seamless
147
+ overhead map. Every row of the dataset pairs one ground-level photograph with
148
+ the 4 × 4 m patch of overhead imagery directly in front of the robot at that
149
+ moment. A botanist reviewed every one of the 8,287 frames for the presence of
150
+ eight target species (four native wildflowers and four invasive weeds) and, in
151
+ a separate pass, graded each image's quality. Each transect was covered twice,
152
+ from the ground and the air alike, so the same vegetation appears under two
153
+ different sets of field conditions.
154
+
155
+ ### Features
156
+
157
+ | Feature | Type | Notes |
158
+ |---|---|---|
159
+ | **Identity & imagery** | | |
160
+ | `frame_id` | string | Capture stem: the join key and the source file name |
161
+ | `ground_image` | Image | The robot photograph: 1280×720 JPEG, ground-level, near-horizontal, wide-angle |
162
+ | `drone_image` | Image | Paired nadir orthomosaic crop, 4 × 4 m at 1.28 cm GSD → 312×312 px, cut at the frame's RTK antenna position. The orthomosaics were rectified against surveyed ground-control points at both sites, so crop placement and robot positions share a common geodetic frame |
163
+ | **Labels** | | |
164
+ | `species` | Sequence(ClassLabel) | Which of the 8 target species are present. Variable length 0 to 6. Empty means reviewed and none present |
165
+ | `artifact_level` | ClassLabel(4) | Share of the frame degraded by visual artifacts, in quartile bands |
166
+ | **Where** | | |
167
+ | `site` | string | `site_1` or `site_2` |
168
+ | `strip` | string | `strip_1` … `strip_5` within a site |
169
+ | `latitude` | float64 | WGS84 latitude of the **GNSS antenna**, interpolated to the shutter instant. The camera and the imaged ground both lie forward of this point |
170
+ | `longitude` | float64 | WGS84 longitude of the **GNSS antenna**, same basis as `latitude` |
171
+ | `altitude_ellipsoidal_m` | float64 | Ellipsoidal height of the **GNSS antenna**, 1178 to 1200 m. The antenna rides above the ground surface |
172
+ | `accuracy_horizontal_m` | float64 | Receiver-reported, 1.4 to 1.7 cm. Trustworthy where `fix_type` is 6 |
173
+ | `accuracy_vertical_m` | float64 | 1.0 to 1.7 cm, same caveat |
174
+ | `fix_type` | int8 | GNSS solution state at the shutter: 6 (RTK fixed) on 8,285 frames, 5 (RTK float) on 2. The two float frames report the same centimeter accuracy, which is optimistic. This column is the honest flag |
175
+ | `pdop` | float64 | Position dilution of precision, 0.88 to 1.25 across the release |
176
+ | `satellites_used` | int8 | Satellites in the solution, 23 to 32 |
177
+ | `bearing_deg` | float64 | Post-processed from the RTK track. Matches the image's EXIF `GPSImgDirection` |
178
+ | `footprint_wkt` | string | The crop outline on the ground: a WKT polygon in WGS84 lon/lat, corners ordered antenna-left, antenna-right, front-right, front-left. For map overlay and spatial joins. Re-cropping the image itself needs no geometry (section 2) |
179
+ | **When** | | |
180
+ | `ground_captured_at` | string | Shutter instant of the robot frame, ISO 8601 with offset |
181
+ | `drone_captured_at` | string | The median source-photo timestamp of the flight that produced this row's `drone_image`, from the PPK camera log. The mosaic is a composite, so its center-of-mass in time stands in for an instant. Flights ran 5.5 to 19.6 min |
182
+ | `capture_offset_absolute` | float64 | Hours from `drone_captured_at` to `ground_captured_at`, signed. Positive means the ground frame came after the flight median. Median 1.16 h, max 20.29 h |
183
+ | `capture_offset_time_of_day` | float64 | The same offset with the date discarded: clock-time difference only, wrapped to ±12 h. Median 1.16 h, max 4.35 h |
184
+ | `capture_event` | int8 | Visit ordinal per (site, strip), 1 or 2. See the caveat below |
185
+ | `mission_restart_utc` | string, nullable | Set only on the 31 frames captured after a 17.7 h mid-run resume, and null elsewhere |
186
+ | **Cross-event pair** | | |
187
+ | `pair_frame_id` | string, nullable | `frame_id` of the frame at the same (leg, mark) in the strip's other capture event, and null on the 153 frames whose mark was walked only once |
188
+ | `pair_distance_m` | float64, nullable | Antenna separation between the paired captures: median 0.10 m, 95th percentile 0.33 m, max 2.12 m |
189
+ | `pair_overlap_fraction` | float64, nullable | Share of this 4 m crop covered by the paired frame's crop |
190
+ | `pair_offset_hours` | float64, nullable | Time between the paired captures: 3.0 to 3.4 h at `site_2`, 48 to 71 h at `site_1` |
191
+ | **Along the transect** | | |
192
+ | `leg` | string | `leg01` to `leg13`. Odd legs are survey lines, even legs the turns between them |
193
+ | `along_leg_m` | float64 | **Nominal** grid position, 0 to 150 m. True position is ~3.5 cm off (median). Use lat/lon when precision matters |
194
+ | `frame_offset_s` | float64 | Shutter offset from the intended 1 m mark, the only per-frame record of timing jitter |
195
+ | `speed_mps` | float64 | 0 to 1.46 m/s |
196
+ | **Provenance & split** | | |
197
+ | `run_id` | string | e.g. `strip_3_2026-06-16_11-29-48`. Links a row back to the source repository's `missions/` tree |
198
+ | `tier2_overlap_fraction` | float64, nullable | Share of this crop shared with a test crop. Populated on `train_tier_2` rows only |
199
+ | `drone_coverage` | float64 | Fraction of the 4 m crop that falls inside its flight's imagery footprint. 1.0 for all but 33 frames at `site_1/strip_5`'s western terminus (14 on event 1, 19 on event 2), where it drops as low as 0.08. All 33 are train or connector frames. The test leg is fully covered on both flights |
200
+
201
+ ### The two capture events
202
+
203
+ Every strip was walked twice, and each walk is paired with its own drone
204
+ flight. No two passes see the same conditions. Even at the same clock time,
205
+ illumination, cloud, wind, and plant posture all differ. The two events are
206
+ best read as **two independent condition samples** of the same ground rather
207
+ than a controlled contrast. The interval between them differs by site, and the
208
+ repeat is spatial rather than exact.
209
+
210
+ | Site | Interval between the two events | Character |
211
+ |---|---|---|
212
+ | `site_2` | 3.0 to 3.4 h, same day | Morning and afternoon walks of the same strip, a within-day contrast |
213
+ | `site_1` | 48 to 71 h | A revisit two to three days later. Strips 1 and 5 were re-walked at nearly the same time of day |
214
+
215
+ The robot follows the same nominal 1 m grid on both passes, but it does not
216
+ land in the same place twice. Matching `leg` and mark across the two events,
217
+ the antenna positions differ by:
218
+
219
+ | Separation at the same (leg, mark) | Value |
220
+ |---|---|
221
+ | median | 10.1 cm |
222
+ | 75th percentile | 14.9 cm |
223
+ | 95th percentile | 32.6 cm |
224
+ | 99th percentile | 65.6 cm |
225
+ | maximum | 2.12 m |
226
+ | within 10 cm | 49.0% |
227
+ | within 25 cm | 91.6% |
228
+ | within 50 cm | 97.9% |
229
+ | within 1 m | 99.8% |
230
+
231
+ A (leg, mark) pair therefore marks the same neighborhood revisited rather than
232
+ a fixed quadrat. 4,067 marks appear in both capture events. The remaining 153
233
+ appear in only one, where a frame was skipped on one pass. Per strip the
234
+ medians run 6.8 to 14.9 cm and the worst single case is 2.12 m on
235
+ `site_2/strip_1`. That is close enough to treat the pair as the same patch of
236
+ vegetation and too loose to treat it as a fixed plot. The pairing is recorded
237
+ on every row. `pair_frame_id` identifies the counterpart frame, and
238
+ `pair_distance_m`, `pair_overlap_fraction`, and `pair_offset_hours` quantify
239
+ the separation.
240
+
241
+ ### The flights
242
+
243
+ | Flight | Paired with | Photos per sensor | Duration | Median capture (UTC) | RGB GSD |
244
+ |---|---|---|---|---|---|
245
+ | 260616-site-1-am | `site_1` event 1 | 295 | 19.6 min | 18:02:05 | 1.28 cm |
246
+ | 260617-site-2-am | `site_2` event 1 | 154 | 5.5 min | 17:04:07 | 1.28 cm |
247
+ | 260617-site-2-pm | `site_2` event 2 | 147 | 5.5 min | 20:23:59 | 1.28 cm |
248
+ | 260618-site-1-pm | `site_1` event 2 | 265 | 9.9 min | 20:33:34 | 1.28 cm |
249
+
250
+ All four flights flew the same plan: identical footprints per site, 9 m photo
251
+ spacing, matching altitude. The first flight of the campaign ran at 2.2 m/s,
252
+ half the 4.4 m/s of the other three, which is the whole story behind its
253
+ longer duration; photo spacing and overlap are unaffected. Timestamps come
254
+ from the PPK camera logs (GPS time corrected for leap seconds). Ground-control
255
+ targets surveyed at both sites anchored the orthomosaic rectification.
256
+ Per-flight processing reports did not expose ground-control residuals, so
257
+ per-flight RMSE is not available.
258
+
259
+ ## 2. Paired examples
260
+
261
+ The left column shows the robot's ground-level photograph. The right column
262
+ shows the orthomosaic crop for the same frame, rotated so the robot's bearing
263
+ points up, with the antenna at the bottom-edge midpoint (yellow).
264
+
265
+ ![Robot frames beside their paired nadir drone crops](images/paired_examples.jpg)
266
+
267
+ The nadir view is mostly bare ground with discrete plants. The robot's oblique
268
+ view foreshortens the same scene into apparently continuous cover. Both are
269
+ accurate. A ground-level camera simply stacks many meters of vegetation into a
270
+ few degrees of elevation.
271
+
272
+ > **The drone crop is its own coordinate system.** Rows are meters ahead of
273
+ > the antenna, columns are meters to the side, and one pixel is 4/312 m
274
+ > (1.28 cm), so any smaller or repositioned crop is plain array slicing with
275
+ > no projection or rotation math (code in section 5). The `footprint_wkt`
276
+ > column places the same square on a map for GIS work. Image work never needs
277
+ > it.
278
+
279
+ ## 3. Splits
280
+
281
+ The split follows a single rule. **The test set is an outermost leg of every
282
+ strip**, `leg01` in eight of the nine and `leg13` in `site_1/strip_5` for the
283
+ reason below. The assignment was made on geometry and imagery coverage, never
284
+ on the labels. Every other frame is a training candidate. Because both capture
285
+ events walk the same legs, the split groups them automatically, so the same
286
+ ground never straddles the train/test boundary.
287
+
288
+ | Split | Frames | Share | Definition |
289
+ |---|---|---|---|
290
+ | `train` | 6,480 | 78.2% | Zero crop overlap with any test frame |
291
+ | `test` | 1,613 | 19.5% | The outermost leg of all 9 strips, both capture events |
292
+ | `train_tier_2` | 194 | 2.3% | Its 4 m crop intersects a test crop. Inclusion is optional |
293
+
294
+ ![Site 1: every capture colored by split](images/site_1_splits.jpg)
295
+ ![Site 2: every capture colored by split](images/site_2_splits.jpg)
296
+
297
+ Every capture, colored by split, over the site's own orthomosaic. The red test
298
+ legs sit on the outside of each strip. The amber tier-2 frames hug them. At
299
+ site 1, S5's test leg is on its eastern side rather than its western one. See
300
+ below. At site 2, S3's test leg runs alongside S2. The strips abut, which is
301
+ where the cross-strip overlaps come from.
302
+
303
+ ### Why `site_1/strip_5` uses `leg13`
304
+
305
+ That strip's `leg01` runs off the western edge of both flights' footprints.
306
+ Fourteen frames are clipped against the 06-16 ortho and 19 against the 06-18
307
+ ortho, some retaining as little as 8% of their 16 m². A test frame missing
308
+ most of its aerial context is a degraded evaluation point, so the test leg
309
+ moves to the strip's other outermost leg, `leg13`, which is fully covered on
310
+ **both** flights.
311
+
312
+ ![site_1/strip_5 western terminus against the flight footprint](images/strip5_terminus.jpg)
313
+
314
+ The clipping follows from **position** rather than heading. `leg01` heads east
315
+ and is clipped at its *start*. `leg03` heads west and is clipped at its *end*.
316
+ Both meet the same patch of ground at the strip's western terminus, where the
317
+ footprint edge cuts diagonally. Only these two legs and the `leg04` turn are
318
+ affected. Legs 05 through 13 are fully covered, and site 2 is clean
319
+ throughout.
320
+
321
+ > **The 33 clipped frames do not disappear.** They sit in train or on
322
+ > connector turns, where a partial aerial crop is far less damaging than in an
323
+ > evaluation set, and each carries its true footprint fraction in
324
+ > `drone_coverage`. Coverage has been validated against **all four flights**
325
+ > at native resolution. Clipping is confined to `site_1/strip_5`'s western
326
+ > terminus on both of its flights (the 06-18 footprint cuts slightly deeper,
327
+ > reaching legs 07 through 11). Site 2 is clean throughout, and the `leg13`
328
+ > test leg is fully covered everywhere.
329
+
330
+ ### Why `train_tier_2` exists
331
+
332
+ Adjacent survey legs are 4.1 to 5.3 m apart, and a 4 m crop reaches 2.0 m
333
+ laterally, and further once the bearing wanders off the leg axis. So a small
334
+ number of training crops cover ground that also appears in a test crop. Rather
335
+ than delete them, they are labeled and set aside.
336
+
337
+ | Leg | Frames | Why it lands in tier 2 |
338
+ |---|---|---|
339
+ | `leg03` | 126 | The survey leg adjacent to a `leg01` test leg |
340
+ | `leg02` | 44 | The turn joining `leg01` to `leg03`, whose ground comes within 0.21 m of the test leg. Only 42% of the 106 turn frames qualify. The rest stay in clean train |
341
+ | `leg12`, `leg10` | 16 | `site_1/strip_5`: the neighbors of its `leg13` test leg |
342
+ | `leg05`, `leg09` | 8 | `site_2/strip_2`. Its legs run alongside `strip_3`'s test leg where the two strips abut |
343
+
344
+ > **The zero-overlap guarantee applies to the drone crops only.** The ground
345
+ > camera is oblique and wide-angle. A train frame on `leg03` photographs
346
+ > test-leg terrain 5 m away in essentially every frame, at distance and
347
+ > foreshortened. That ground-modality leakage is inherent to the survey
348
+ > geometry and is not quantified. The guarantee is limited to the aerial
349
+ > modality. No **4 m drone crop** in `train` shares any ground with a test
350
+ > crop.
351
+
352
+ > **Training on `train` alone is exactly clean in the aerial modality**,
353
+ > verified by polygon intersection over every crop pair rather than a distance
354
+ > heuristic. Adding `train_tier_2` puts 2.50% of the evaluated pixels on
355
+ > ground the model has seen, touching 213 of the 1,613 test crops.
356
+ > `tier2_overlap_fraction` supports partial inclusion. The median is 4.5% and
357
+ > the maximum 62.6%, so a threshold recovers most of those frames while
358
+ > leaving the worst behind. This matters most for *Euphorbia virgata*, the
359
+ > rarest class, which has 11 of its 123 training positives in tier 2.
360
+
361
+ ## 4. Labels
362
+
363
+ Eight target species, four wildflowers and four weeds, labeled by presence in
364
+ the frame. Labels were assigned from a blank slate, with nothing pre-checked
365
+ and no model predictions shown, by a **single annotator per task** (one for
366
+ species, one for `artifact_level`). No inter-annotator agreement data exists.
367
+ A frame with an empty list was reviewed and had no target present (23% of
368
+ frames).
369
+
370
+ ![Species positives per split](images/species_per_split.jpg)
371
+
372
+ | Species | Common name | Group | train | test | tier 2 | total | of all frames |
373
+ |---|---|---|---|---|---|---|---|
374
+ | *Lupinus sericeus* | silky lupine | wildflower | 1,331 | 209 | 39 | 1,579 | 19.1% |
375
+ | *Balsamorhiza sagittata* | arrowleaf balsamroot | wildflower | 618 | 245 | 24 | 887 | 10.7% |
376
+ | *Gaillardia aristata* | blanketflower | wildflower | 238 | 70 | 0 | 308 | 3.7% |
377
+ | *Achillea millefolium* | common yarrow | wildflower | 216 | 41 | 1 | 258 | 3.1% |
378
+ | *Euphorbia virgata* | leafy spurge | weed | 112 | 49 | 11 | 172 | 2.1% |
379
+ | *Sisymbrium altissimum* | tall tumblemustard | weed | 728 | 90 | 15 | 833 | 10.1% |
380
+ | *Bromus tectorum* | cheatgrass | weed | 444 | 140 | 13 | 597 | 7.2% |
381
+ | *Poa bulbosa* | bulbous bluegrass | weed | 3,664 | 1,090 | 105 | 4,859 | 58.6% |
382
+
383
+ > **The class balance is steep.** *Poa bulbosa* appears in 58.6% of frames and
384
+ > *Euphorbia virgata* in 2.1%, a 28× spread. Frames carry 0 to 6 species at
385
+ > once (median 1), which is why `species` is a variable-length list rather
386
+ > than a fixed multi-hot vector.
387
+
388
+ A machine-readable species table ships beside the data as
389
+ [`species.csv`](species.csv) (genus, species, common name).
390
+
391
+ ### Image quality
392
+
393
+ A second annotation pass graded every frame for the share degraded by visual
394
+ artifacts (motion blur, smear, glare, compression). The distribution is
395
+ U-shaped rather than graded. Bands 2 and 3 are mostly motion blur, band 4
396
+ mostly encoder corruption.
397
+
398
+ ![artifact_level distribution by split](images/artifact_levels.jpg)
399
+
400
+ > **The robot's own corruption flag is uninformative here.** Every frame
401
+ > reports `corrupt = false`, including all 1,304 frames a human graded as
402
+ > band 4. To select clean imagery, filter on `artifact_level`.
403
+
404
+ ### Suggested metric
405
+
406
+ Report a one-vs-all F1 per species plus their macro average. With the class
407
+ balance above, a single pooled number hides exactly the classes this dataset
408
+ is hardest on.
409
+
410
+ ```python
411
+ import numpy as np
412
+ from sklearn.metrics import f1_score
413
+
414
+ # y_true, y_pred: (n_frames, 8) binary arrays in the canonical class order
415
+ per_species = f1_score(y_true, y_pred, average=None)
416
+ macro = f1_score(y_true, y_pred, average="macro")
417
+ for name, f1 in zip(CLASSES, per_species):
418
+ print(f"{name:24s} {f1:.3f}")
419
+ print(f"{'macro average':24s} {macro:.3f}")
420
+ ```
421
+
422
+ Choosing a decision threshold per species is part of the task. Use the
423
+ provided splits as-is so results stay comparable.
424
+
425
+ ## 5. Loading the dataset
426
+
427
+ ### Basic
428
+
429
+ ```python
430
+ # pip install datasets
431
+ from datasets import load_dataset
432
+
433
+ # the clean training split: 6,480 frames, zero test-crop overlap
434
+ train = load_dataset("mpg-ranch/multimodal-survey", split="train")
435
+ test = load_dataset("mpg-ranch/multimodal-survey", split="test")
436
+
437
+ row = train[0]
438
+ row["ground_image"] # PIL.Image, 1280x720: the robot photograph
439
+ row["drone_image"] # PIL.Image, 312x312: 4x4 m nadir crop, bearing up
440
+ row["species"] # ['Lupinus sericeus', 'Poa bulbosa']
441
+ row["artifact_level"]# 0 (band 1: 0-25% of the frame degraded)
442
+ ```
443
+
444
+ ### Species labels to a multi-hot vector
445
+
446
+ ```python
447
+ import numpy as np
448
+
449
+ CLASSES = train.features["species"].feature.names # canonical order, 8 classes
450
+
451
+ def multi_hot(batch):
452
+ v = np.zeros((len(batch["species"]), len(CLASSES)), dtype=np.int8)
453
+ for i, ids in enumerate(batch["species"]):
454
+ v[i, ids] = 1 # species are stored as class ids
455
+ return {"labels": v}
456
+
457
+ train = train.map(multi_hot, batched=True)
458
+ ```
459
+
460
+ ### Filtering
461
+
462
+ ```python
463
+ # drop the heavily degraded frames (band 4)
464
+ BANDS = train.features["artifact_level"].names
465
+ clean = train.filter(lambda r: r["artifact_level"] != BANDS.index("75-100%"))
466
+
467
+ # ground frames captured close in time to their drone imagery
468
+ tight = train.filter(lambda r: abs(r["capture_offset_time_of_day"]) < 1.0)
469
+
470
+ # one site, one capture event
471
+ morning = train.filter(lambda r: r["site"] == "site_2" and r["capture_event"] == 1)
472
+
473
+ # frames where a particular species is present
474
+ spurge = train.filter(lambda r: CLASSES.index("Euphorbia virgata") in r["species"])
475
+ ```
476
+
477
+ ### Including tier 2
478
+
479
+ ```python
480
+ # all 194 of them: accepts 2.50% evaluated-pixel contamination
481
+ t2 = load_dataset("mpg-ranch/multimodal-survey", split="train_tier_2")
482
+
483
+ # or only the mildly-overlapping ones, e.g. under 10% of the crop shared
484
+ t2_mild = t2.filter(lambda r: r["tier2_overlap_fraction"] < 0.10)
485
+
486
+ from datasets import concatenate_datasets
487
+ train_plus = concatenate_datasets([train, t2_mild])
488
+ ```
489
+
490
+ ### Using the pair
491
+
492
+ ```python
493
+ import torch
494
+ from torchvision.transforms.functional import to_tensor
495
+
496
+ def collate(batch):
497
+ # the robot frame is oblique and wide-angle. The crop is nadir and metric.
498
+ # They cover overlapping ground but are NOT pixel-registered to each other.
499
+ robot = torch.stack([to_tensor(b["ground_image"].resize((640, 360))) for b in batch])
500
+ drone = torch.stack([to_tensor(b["drone_image"]) for b in batch]) # 3x312x312
501
+ y = torch.tensor(np.stack([b["labels"] for b in batch]), dtype=torch.float32)
502
+ return robot, drone, y
503
+
504
+ loader = torch.utils.data.DataLoader(train, batch_size=32, collate_fn=collate)
505
+ ```
506
+
507
+ ### Re-cropping the drone image
508
+
509
+ ```python
510
+ # the crop is a metric chart: rows are meters ahead of the antenna, columns meters left.
511
+ # A smaller or shifted window is array slicing. No projection knowledge is needed.
512
+ N, S = 312, 4.0
513
+ PX = N / S # 78 px per meter
514
+
515
+ def sub_crop(drone_image, ahead, left, size):
516
+ # (ahead, left): window center in meters from the antenna
517
+ a = np.asarray(drone_image)
518
+ r = round(N - (ahead + size / 2) * PX) # row 0 is 4 m ahead
519
+ c = round(N / 2 - (left + size / 2) * PX) # column 0 is 2 m left
520
+ return a[r : r + round(size * PX), c : c + round(size * PX)]
521
+
522
+ patch = sub_crop(row["drone_image"], ahead=1.0, left=0.0, size=2.0) # 2 x 2 m, 156 x 156 px
523
+ ```
524
+
525
+ ### Recovering the geometry
526
+
527
+ ```python
528
+ # each drone crop spans 0 to 4 m ahead of the antenna and +/-2 m across,
529
+ # rotated so `bearing_deg` points up the image. To place a crop pixel on the ground:
530
+ import math
531
+
532
+ def pixel_to_ground(row, px, py, S=4.0, N=312):
533
+ th = math.radians(row["bearing_deg"])
534
+ fwd = S * (1 - (py + 0.5) / N) # meters ahead of the antenna
535
+ lat = S * (0.5 - (px + 0.5) / N) # meters to the left
536
+ dE = fwd * math.sin(th) - lat * math.cos(th)
537
+ dN = fwd * math.cos(th) + lat * math.sin(th)
538
+ return dE, dN # offset in meters, EPSG:6514
539
+ ```
540
+
541
+ ## 6. Prior work
542
+
543
+ Several lines of research connect overhead and ground-level views for organism
544
+ classification, but only the first below fuses the two as joint classifier
545
+ input. The others use one view to supervise, label, or direct the other. To
546
+ our knowledge none pairs a ground robot's photographs with centimeter-scale
547
+ drone orthoimagery of the same footprint. The closest neighbors:
548
+
549
+ ### [The Auto Arborist Dataset](https://openaccess.thecvf.com/content/CVPR2022/html/Beery_The_Auto_Arborist_Dataset_A_Large-Scale_Benchmark_for_Multiview_Urban_CVPR_2022_paper.html) (CVPR 2022)
550
+
551
+ Pairs aerial and street-level imagery of more than two million urban trees
552
+ across 23 North American cities for genus-level classification, with baselines
553
+ for each view alone and for the two combined. It was assembled by joining the
554
+ cities' public tree censuses to Street View and overhead imagery, and its
555
+ central experiment is geographic generalization. Models are evaluated in
556
+ cities held out of training.
557
+
558
+ ### [TaxaBind](https://arxiv.org/abs/2411.00683) (WACV 2025)
559
+
560
+ Learns a joint embedding over six modalities, using ground-level species
561
+ photos as the anchor that binds satellite imagery, location, text, audio, and
562
+ environmental features, and evaluates it on zero-shot species classification.
563
+ The core technique, multimodal patching, distills each pairwise alignment into
564
+ the shared ground-image encoder without erasing the ones learned before it,
565
+ trained on 2.7 million satellite-to-species-photo pairs.
566
+
567
+ ### [WildSAT](https://arxiv.org/abs/2412.14428) (ICCV 2025)
568
+
569
+ Trains satellite-image encoders by contrasting them against millions of
570
+ geotagged citizen-science wildlife observations and habitat descriptions,
571
+ transferring ground-level signal into the overhead view. Its contribution is
572
+ the training signal itself: a contrastive objective linking a satellite patch
573
+ to the species recorded there and to Wikipedia habitat text, which beats both
574
+ ImageNet and satellite-specific pretraining on downstream recognition tasks.
575
+
576
+ ### [GeoLifeCLEF](https://hal.inrae.fr/hal-04720817v1) (annual benchmark)
577
+
578
+ Predicts plant species composition at ground-observation sites from satellite
579
+ imagery and environmental rasters, linking the overhead view to species
580
+ recorded in person at the same coordinates. Recent editions pair roughly five
581
+ million occurrence records and 100,000 standardized survey plots across Europe
582
+ with Sentinel-2 patches, Landsat time series, and climate and soil rasters,
583
+ scored as multi-label species composition prediction.
584
+
585
+ ### [Aerial-ground robotics for precision farming](https://arxiv.org/abs/1911.03098) (IEEE RAM 2021)
586
+
587
+ The EU Flourish project teamed a survey drone with an intervention ground
588
+ robot, classifying crops and weeds from both platforms over the same field,
589
+ the closest operational precedent for the drone-plus-robot pairing here. The
590
+ demonstrated loop runs from a multispectral drone survey to a weed map
591
+ co-registered into the ground robot's frame, which the robot then acts on
592
+ plant by plant with targeted spraying or mechanical stamping.
593
+
594
+ ## Citation and license
595
+
596
+ Data are released under CC BY 4.0. Code in the source repository
597
+ ([mosscoder/multimodal_survey](https://github.com/mosscoder/multimodal_survey))
598
+ is MIT. See [`CITATION.cff`](CITATION.cff) in this repository for the
599
+ preferred citation. The build is reproducible from the source repository:
600
+ `python -m multimodal_dataset build` at commit `78989a55b21de686ba29e75a8d663129759e2d5a`.