Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
The number of columns (6861) exceeds the maximum supported number of columns (1000). This is a current limitation of the datasets viewer. You can reduce the number of columns if you want the viewer to work.
Error code:   TooManyColumnsError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

S2-AIS-DK: Sentinel-2 small-vessel detection with AIS labels and an OSM map prior

S2-AIS-DK contains 9,988 Sentinel-2 L2A tiles (640 × 640 px at 10 m) over Danish and southern Swedish waters (7–16 °E, 54–58 °N), taken in 2024 and 2025. Labels are generated automatically from Danish Maritime Authority (DMA) AIS positions, interpolated to the acquisition time. Each tile comes with a rasterised OpenStreetMap electronic-fence prior: coastline, hazards (reef, rock, shoal, tidal flat) and structures (pier, breakwater, platform), with navigable inland water carved out of land.

Code, models and full results:

Splits (by acquisition date; no day appears in two splits)

Split Tiles Labelled vessels Tiles with vessels Days
train 6,861 6,861 3,005 14
val 1,659 1,472 676 2
test 1,468 1,590 683 4

Files

Path Content
images/<tile>.tif 7-page uint8 TIFF (see below)
labels/<tile>.txt YOLO boxes cls cx cy w h (normalised) for vessels ≥ 20 m; boxes are dilated to at least 12 px about the AIS position
labels_kpt/<tile>.txt YOLO-pose format: box, then 3 keypoints (stern, bow, future = bow + SOG·30 s along COG) with visibility flag, used by PhysKin-DETR
prior/<tile>.npz float32 signed-distance fields in metres at stride 4 (160 × 160): sdf_land (> 0 water, < 0 land), sdf_hazard, sdf_struct
{train,val,test}_coco.json COCO ground truth; shorter or size-unknown vessels are iscrowd = 1 ignore regions
{train,val,test}_attrs.json per-vessel AIS attributes: MMSI, SOG (kn), COG, heading, length, width, ship type, moored flag, oriented box
{train,val,test}.txt, s2ais.yaml Ultralytics lists; set path: to this folder
splits.json mapping from date to split
osm/*.json OSM vector extracts used to build the prior: coastline, hazards, structures, inland water
meta/scenes_all.json Sentinel-2 scene list (product ID, time, cloud and water fraction, bbox, COG asset URLs)

TIFF pages

  • 1–4: B2, B3, B4, B8 reflectance → 8 bit, ((x / 2500).clip(0, 1)) ** (1 / 1.8) * 255.
  • 5: enc_land = 128 + 127 tanh(d / 500 m).
  • 6: enc_hazard = 255 exp(−d / 200 m).
  • 7: enc_struct, encoded like page 6.

Read the pages with tifffile.imread or ultralytics.utils.patches.imread, which return an (H, W, 7) array.

Evaluation protocol

code/s2ais/evaluate.py in the GitHub repo reports:

  • COCO AP / AP50 / AP_s with tiny-object size ranges (< 13², 13–24², > 24² px);
  • false alarms per 100 tiles at conf = 0.3, split by the OSM class under the box centre (land / hazard / struct / water);
  • recall by AIS vessel length (< 50 m, 50–100 m, ≥ 100 m).

Baseline on test (RT-DETR-R18, RGBN input, 3 seeds): AP 10.3 ± 1.3, AP50 24.6 ± 1.7.

Known limitations

  • Label noise. AIS covers only transponder-equipped vessels, so small craft without AIS are unlabelled and will count as false alarms.
  • Position error. Interpolated AIS positions can be off by a few pixels.
  • Prior errors. The OSM prior inherits OSM gaps: 4.8 % of labelled val vessels lie more than 200 m inside OSM land.

Licence and attribution

  • Sentinel-2: contains modified Copernicus Sentinel data 2024–2025.
  • AIS: Danish Maritime Authority (dma.dk).
  • Map data: © OpenStreetMap contributors, available under the Open Database License (ODbL). The map-prior layers (prior/, TIFF pages 5–7, osm/) are derived databases under ODbL.
  • Labels: CC-BY-4.0.
Downloads last month
73

Models trained or fine-tuned on mark000071/S2-AIS-DK