Datasets:
image imagewidth (px) 240 240 | mask imagewidth (px) 240 240 | color_mask imagewidth (px) 240 240 | classes stringclasses 71
values | id stringlengths 9 11 |
|---|---|---|---|---|
Oil Spill | Scene_0_1 | |||
Oil Spill | Scene_0_2 | |||
Oil Spill | Scene_0_3 | |||
Marine Water | Scene_0_4 | |||
Marine Water | Scene_0_5 | |||
Oil Spill | Scene_0_6 | |||
Shallow Water | Scene_0_7 | |||
Oil Spill | Scene_0_8 | |||
Oil Spill | Scene_0_9 | |||
Marine Debris, Marine Water | Scene_1_1 | |||
Marine Water | Scene_1_2 | |||
Marine Debris, Marine Water | Scene_1_3 | |||
Marine Water, Shallow Water | Scene_1_4 | |||
Turbid Water | Scene_1_5 | |||
Marine Water, Shallow Water | Scene_1_6 | |||
Turbid Water, Waves & Wakes | Scene_1_7 | |||
Marine Debris, Shallow Water | Scene_1_8 | |||
Natural Organic Material, Marine Water | Scene_1_9 | |||
Marine Water, Waves & Wakes | Scene_1_10 | |||
Foam | Scene_1_11 | |||
Turbid Water | Scene_1_12 | |||
Turbid Water | Scene_1_13 | |||
Turbid Water | Scene_1_14 | |||
Turbid Water | Scene_1_15 | |||
Sediment-Laden Water | Scene_1_16 | |||
Sediment-Laden Water | Scene_1_17 | |||
Marine Debris | Scene_1_18 | |||
Marine Water | Scene_1_19 | |||
Marine Water | Scene_1_20 | |||
Sediment-Laden Water | Scene_1_21 | |||
Sediment-Laden Water | Scene_1_22 | |||
Waves & Wakes | Scene_1_23 | |||
Marine Debris, Natural Organic Material, Marine Water, Waves & Wakes | Scene_1_24 | |||
Turbid Water, Waves & Wakes | Scene_1_25 | |||
Turbid Water | Scene_1_26 | |||
Turbid Water | Scene_1_27 | |||
Marine Debris, Marine Water | Scene_1_28 | |||
Marine Debris, Marine Water, Waves & Wakes | Scene_1_29 | |||
Marine Debris, Natural Organic Material, Marine Water, Waves & Wakes | Scene_1_30 | |||
Turbid Water | Scene_1_31 | |||
Marine Water, Waves & Wakes | Scene_1_32 | |||
Marine Water, Waves & Wakes | Scene_1_33 | |||
Marine Debris, Marine Water, Waves & Wakes | Scene_1_34 | |||
Marine Debris | Scene_1_35 | |||
Turbid Water | Scene_1_36 | |||
Turbid Water | Scene_1_37 | |||
Marine Debris, Marine Water, Waves & Wakes | Scene_1_38 | |||
Marine Debris, Natural Organic Material, Marine Water | Scene_1_39 | |||
Ship, Marine Water, Waves & Wakes | Scene_1_40 | |||
Waves & Wakes | Scene_1_41 | |||
Marine Water, Waves & Wakes | Scene_1_42 | |||
Marine Debris | Scene_1_43 | |||
Marine Debris, Marine Water | Scene_1_44 | |||
Ship, Marine Water, Waves & Wakes | Scene_1_45 | |||
Marine Water | Scene_1_46 | |||
Ship, Marine Water, Waves & Wakes | Scene_1_47 | |||
Ship, Marine Water | Scene_1_48 | |||
Marine Debris, Marine Water | Scene_1_49 | |||
Marine Water | Scene_1_50 | |||
Marine Debris, Marine Water | Scene_1_51 | |||
Marine Water | Scene_1_52 | |||
Marine Debris, Marine Water | Scene_1_53 | |||
Marine Debris, Marine Water | Scene_1_54 | |||
Marine Water | Scene_1_55 | |||
Marine Water | Scene_1_56 | |||
Waves & Wakes | Scene_1_57 | |||
Marine Debris | Scene_2_1 | |||
Marine Debris | Scene_2_2 | |||
Marine Debris | Scene_2_3 | |||
Ship, Marine Water, Shallow Water | Scene_2_4 | |||
Sparse Floating Algae | Scene_3_1 | |||
Foam, Turbid Water | Scene_3_2 | |||
Sparse Floating Algae | Scene_3_3 | |||
Dense Sargassum | Scene_3_4 | |||
Dense Sargassum, Sparse Floating Algae | Scene_3_5 | |||
Marine Water | Scene_3_6 | |||
Turbid Water | Scene_3_7 | |||
Shallow Water | Scene_3_8 | |||
Dense Sargassum, Sparse Floating Algae, Marine Water | Scene_3_9 | |||
Marine Water | Scene_3_10 | |||
Marine Water, Shallow Water | Scene_3_11 | |||
Sparse Floating Algae | Scene_3_12 | |||
Turbid Water | Scene_3_13 | |||
Marine Water | Scene_3_14 | |||
Marine Debris, Marine Water | Scene_3_15 | |||
Marine Debris, Marine Water | Scene_3_16 | |||
Foam | Scene_3_17 | |||
Sediment-Laden Water, Foam | Scene_3_18 | |||
Marine Debris, Marine Water | Scene_3_19 | |||
Marine Debris, Marine Water | Scene_3_20 | |||
Marine Debris, Marine Water | Scene_3_21 | |||
Turbid Water | Scene_3_22 | |||
Marine Debris, Turbid Water | Scene_3_23 | |||
Marine Water | Scene_3_24 | |||
Natural Organic Material | Scene_3_25 | |||
Marine Water | Scene_3_26 | |||
Marine Water | Scene_3_27 | |||
Marine Water | Scene_3_28 | |||
Turbid Water | Scene_3_29 | |||
Marine Water | Scene_3_30 |
MADOS: Marine Debris and Oil Spill Dataset (Sentinel-2)
Unofficial mirror of MADOS: 2,803 Sentinel-2 crops (240 x 240 px at 10 m) from 174 scenes, with sparse annotations of 15 sea-surface classes (marine debris, oil spills, sargassum, ships, foam, sea snot and more), in a viewer-ready Parquet layout with the exact reflectance values of all 11 bands.
Disclaimer
This repository is not an official release of MADOS.
The dataset was created by Katerina Kikaki, Ioannis Kakogeorgiou, Ibrahim Hoteit and Konstantinos Karantzalos, and is published on Zenodo. It is derived from Copernicus Sentinel-2 imagery, processed by the authors with ACOLITE. This repository does not claim ownership of the data. If you are an author or rights holder and want this repository changed or removed, please open a discussion and it will be addressed promptly.
Source and verification: built from the official MADOS.zip, matching its published MD5. Every crop has exactly the expected files: 11 bands, the class, confidence and report masks at 10 m and 20 m, the RGB PNG and two turbidity layers. The three split files list every crop exactly once. Every raster has the expected data type and size, and every mask value is a documented code. Every row was read back from Parquet: the bands and turbidity layers are bit-identical, NaNs included; the masks decode to the original values; and the RGB PNG bytes are unchanged.
Dataset Overview
The crops come from 174 Sentinel-2 scenes, corrected for Rayleigh scattering with ACOLITE. Annotations are sparse: 1,481,155 of the 161.5 million pixels at 10 m are labelled (0.9%); every other pixel is class 0, "Non-annotated".
| Code | Class | Colour (RGB) | Pixels (10 m) | Crops |
|---|---|---|---|---|
| 1 | Marine Debris | 255, 0, 0 | 4,696 | 472 |
| 2 | Dense Sargassum | 0, 128, 0 | 4,308 | 77 |
| 3 | Sparse Floating Algae | 124, 252, 0 | 4,972 | 157 |
| 4 | Natural Organic Material | 165, 42, 42 | 1,454 | 92 |
| 5 | Ship | 255, 215, 0 | 13,222 | 298 |
| 6 | Oil Spill | 255, 0, 255 | 234,568 | 361 |
| 7 | Marine Water | 0, 0, 205 | 496,702 | 1,360 |
| 8 | Sediment-Laden Water | 210, 180, 140 | 376,061 | 57 |
| 9 | Foam | 255, 255, 255 | 1,225 | 58 |
| 10 | Turbid Water | 189, 183, 107 | 170,306 | 232 |
| 11 | Shallow Water | 0, 206, 209 | 122,753 | 140 |
| 12 | Waves & Wakes | 173, 216, 230 | 20,374 | 224 |
| 13 | Oil Platform | 148, 0, 211 | 15,701 | 348 |
| 14 | Jellyfish | 255, 140, 0 | 2,541 | 12 |
| 15 | Sea snot | 240, 230, 140 | 12,272 | 63 |
Splits (the authors' split files): train 1,433, validation 642, test 728 crops.
Changes from the Official Release
- Packed into Parquet so the Dataset Viewer and
datasetswork directly: one row per crop, in three configs:default(image, masks and classes for browsing),bands(all data) andturbidity. - The 11 bands are stored as exact float32 arrays at their native resolution and named by Sentinel-2 band (
B01...B12) instead of by wavelength. - The masks are stored as lossless PNG images; the RGB PNG is kept byte for byte.
- Added: a contrast-stretched true-colour image and a colour mask for each crop,
id2label.json, per-class pixel counts, the classes present, a count of NaN pixels, the CRS, and a preview with the annotations overlaid. - The turbidity layers are in a separate config (
turbidity) to keep the main rows small. - The official zip is included unchanged in
original/. - No values were changed.
Dataset Structure
default: one row per crop (train 1,433, validation 642, test 728)
| Column | Content |
|---|---|
image |
true colour (B04, B03, B02), each channel stretched between its 1st and 99th percentile in the crop, 240 x 240 PNG (for display; use bands for the values) |
mask |
the official 10 m class mask, codes 0-15 (0 = not annotated), 240 x 240 PNG, identical to mask_10m in bands |
color_mask |
the same mask in the class colours (not annotated = black) |
classes |
the classes present, comma separated |
id |
crop ID (Scene_1_30) |
id2label.json at the repository root maps the codes to class names.
bands: one row per crop, all data (same splits)
| Column | Content |
|---|---|
crop_id, scene, crop |
crop ID (Scene_1_30), scene and crop number as in the file names |
B02, B03, B04, B08 |
Rayleigh-corrected reflectance at 10 m, 240 x 240 float32 |
B05, B06, B07, B8A, B11, B12 |
the same at 20 m, 120 x 120 float32 |
B01 |
the same at 60 m, 40 x 40 float32 |
wavelength_set, wavelengths_nm |
S2A or S2B: which satellite's band wavelengths the file names use, and those wavelengths in band order |
mask_10m, confidence_10m, report_10m |
class codes (0-15), confidence and report codes (0-3), 240 x 240 PNG |
mask_20m, confidence_20m, report_20m |
the official 20 m masks, 120 x 120 PNG |
rgb |
the official RGB PNG |
classes_present, class_pixels_10m |
class names in the 10 m mask, and pixel counts for codes 0-15 |
nan_pixels, crs |
number of NaN band values; the CRS stored in the GeoTIFFs |
preview |
the stretched true-colour image with the 10 m annotations overlaid |
turbidity: one row per crop (same splits)
crop_id, scene, crop, turbidity_dogliotti, turbidity_nechad2016_665 (ACOLITE turbidity products, 240 x 240 float32) and dogliotti_file_suffix (the name used by the official file).
Read before using the data
- Not georeferenced. Every GeoTIFF names a projected CRS (kept in
crs), but the geotransform is the identity, so the crops cannot be placed on a map from the files. - Two band naming sets. 1,597 crops use S2A wavelengths in their file names and 1,206 use S2B (e.g. B12 is
2202or2186). The band is the same;B01...B12here are named by band. - NaNs. 23 crops (train 13, validation 4, test 6) contain NaN reflectance values.
- Confidence without a class. At 63,032 pixels (10 m) the confidence and report masks are nonzero where the class mask is 0. Confidence and report are always zero or nonzero together, and every labelled pixel has a confidence.
- 20 m masks. The official 20 m masks are not a fixed function of the 10 m masks: taking the highest code in each 2 x 2 block reproduces 2,746 of 2,803 crops, and the most frequent labelled code 2,681. They are kept as published.
- Turbidity file names. The Dogliotti layer is named
Dogliottiin 2,752 crops andDogliotti2015in 51 (dogliotti_file_suffix).
Usage
# pip install datasets numpy
import numpy as np
from datasets import load_dataset
ds = load_dataset("dronefreak/MADOS", split="train") # image, mask, color_mask, classes, id
mask = np.array(ds[0]["mask"]) # 0 = not annotated, 1-15 = classes
full = load_dataset("dronefreak/MADOS", "bands", split="train")
row = full[0]
rgb = np.stack([np.array(row[b], dtype=np.float32) for b in ("B04", "B03", "B02")], -1) # 240 x 240 x 3
print(row["crop_id"], row["classes_present"])
debris = full.filter(lambda r: r["class_pixels_10m"][1] > 0)
Dataset Sources
Citation
@article{kikaki2024mados,
title = {Detecting Marine pollutants and Sea Surface features with Deep learning in {Sentinel-2} imagery},
author = {Kikaki, Katerina and Kakogeorgiou, Ioannis and Hoteit, Ibrahim and Karantzalos, Konstantinos},
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
volume = {210},
pages = {39--54},
year = {2024},
doi = {10.1016/j.isprsjprs.2024.02.017}
}
License
MADOS is published under the Creative Commons Attribution 4.0 International license (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/. It contains modified Copernicus Sentinel-2 data. This mirror repackages the data (see Changes from the Official Release) and credits the authors as above.
- Downloads last month
- -