kangnicui2 commited on
Commit
46f3e0b
·
verified ·
1 Parent(s): 9d201d6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +97 -86
README.md CHANGED
@@ -1,58 +1,11 @@
1
- ---
2
- pretty_name: EnIGMA
3
- license: other
4
- task_categories:
5
- - image-segmentation
6
- task_ids:
7
- - semantic-segmentation
8
- language:
9
- - en
10
- tags:
11
- - remote-sensing
12
- - geospatial
13
- - drone-imagery
14
- - semantic-segmentation
15
- ---
16
-
17
- # EnIGMA
18
-
19
- EnIGMA is a drone orthomosaic semantic-segmentation dataset for mining-site analysis in Madre de Dios, Peru.
20
-
21
- - 12 sites
22
- - Site-level split: train / val / test
23
- - Image-label pairs are aligned and share the same spatial footprint per site
24
-
25
- ## Split definition
26
-
27
- - **train (4 sites):** `AcumulacionAaron2B`, `Kotsimba`, `Los5Rebeldes`, `PlayaMirador1`
28
- - **val (3 sites):** `Clavelito`, `Nayda`, `PlayaMirador2`
29
- - **test (5 sites):** `Anel`, `ElEngano`, `Linda`, `Paolita`, `SantaInesDosMil`
30
-
31
- `PlayaMirador` is split into two non-overlapping halves:
32
- - `PlayaMirador1`: bottom half (train)
33
- - `PlayaMirador2`: top half (val)
34
-
35
- ## Class definition (14 classes + background)
36
-
37
- Background is encoded as `0`. Class IDs `1-14` are foreground classes.
38
-
39
- | ID | Class | Area (ha) | Percentage (%) | Pixels | Alias names |
40
- | ---: | --- | ---: | ---: | ---: | --- |
41
- | 0 | Background | - | - | - | Unlabeled / background |
42
- | 1 | Building | 2.3745 | 0.09 | 6,367,488 | Area urbana; Campamento minero |
43
- | 2 | Mining raft | 0.1467 | 0.01 | 461,925 | Balsa; Balsa de mineria; Raft |
44
- | 3 | Primary Forest | 961.8239 | 38.45 | 3,308,805,552 | Bosque primario; Primary forest |
45
- | 4 | Heavy machinery | 0.0161 | 0.00 | 43,313 | Cargador frontal; Excavadora; Maquinaria pesada; Volquete; Dump truck |
46
- | 5 | Water bodies | 321.2655 | 12.84 | 1,085,789,506 | Cuerpos de agua |
47
- | 6 | Agricultural crop | 33.5185 | 1.34 | 105,688,237 | Cultivos agricolas; Cultivo agricola; Cultivos; Crops |
48
- | 7 | Compact mounds | 66.2310 | 2.65 | 215,787,431 | Monticulo compacto; Compact mound |
49
- | 8 | Gravel mounds | 13.2680 | 0.53 | 42,049,847 | Monticulos de cascajo |
50
- | 9 | Grass | 28.3472 | 1.13 | 87,888,718 | Pasto |
51
- | 10 | Type 1 regeneration | 228.5563 | 9.14 | 660,993,175 | Regeneracion natural tipo 1; Regeneracion tipo 1; Type 1 disturbed vegetation |
52
- | 11 | Type 2 regeneration | 523.1002 | 20.91 | 1,710,062,485 | Regeneracion natural tipo 2; Regeneracion tipo 2; Type 2 disturbed vegetation |
53
- | 12 | Bare ground | 322.9909 | 12.91 | 882,535,708 | Suelo desnudo; Bare soil |
54
- | 13 | Sluice | 0.0403 | 0.00 | 126,368 | Tolva; Tolvas; Hopper |
55
- | 14 | Vehicles | 0.0092 | 0.00 | 85,244 | Vehiculos; Vehiculos pequenos; Vehiculos pequeños; Small Vehicles |
56
 
57
  ## Spatial metadata table (source files + aligned output)
58
 
@@ -71,34 +24,92 @@ Background is encoded as `0`. Class IDs `1-14` are foreground classes.
71
  | PlayaMirador2 | `PlayaMirador_corrected.tif` | `PlayaMirador_classified_corrected.tif` | EPSG:32719 | 22911x22394 | 17608x17608 | 0.056792, 0.056792 | 0.056840, 0.057298 | [-70.377536, -70.365474] | [-13.063390, -13.051829] | [-70.376072, -70.366793] | [-13.057446, -13.052861] | 17624x8883 | 50.1021 | 2022-03-10 | val |
72
  | SantaInesDosMil | `SantaInesDosMil_corrected.tif` | `SantaInesDosMil_classified_corrected.tif` | EPSG:32719 | 22883x24295 | 17185x17184 | 0.058193, 0.058193 | 0.058873, 0.058471 | [-70.386657, -70.374307] | [-13.063436, -13.050589] | [-70.385274, -70.375895] | [-13.061789, -13.052656] | 17387x17267 | 100.9625 | 2022-03-10 | test |
73
 
74
- - Note: `PlayaMirador` is additionally split in GoldMDD into `PlayaMirador1` (bottom half, train) and `PlayaMirador2` (top half, val). The two rows above use the same source files and split the label latitude range at the midpoint.
75
-
76
- ## Data location table
77
-
78
- | Split | Site | Image path | Label path |
79
- | --- | --- | --- | --- |
80
- | train | AcumulacionAaron2B | `train/image/AcumulacionAaron2B.png` | `train/label/AcumulacionAaron2B.png` |
81
- | train | Kotsimba | `train/image/Kotsimba.png` | `train/label/Kotsimba.png` |
82
- | train | Los5Rebeldes | `train/image/Los5Rebeldes.png` | `train/label/Los5Rebeldes.png` |
83
- | train | PlayaMirador1 | `train/image/PlayaMirador1.png` | `train/label/PlayaMirador1.png` |
84
- | val | Clavelito | `val/image/Clavelito.png` | `val/label/Clavelito.png` |
85
- | val | Nayda | `val/image/Nayda.png` | `val/label/Nayda.png` |
86
- | val | PlayaMirador2 | `val/image/PlayaMirador2.png` | `val/label/PlayaMirador2.png` |
87
- | test | Anel | `test/image/Anel.png` | `test/label/Anel.png` |
88
- | test | ElEngano | `test/image/ElEngano.png` | `test/label/ElEngano.png` |
89
- | test | Linda | `test/image/Linda.png` | `test/label/Linda.png` |
90
- | test | Paolita | `test/image/Paolita.png` | `test/label/Paolita.png` |
91
- | test | SantaInesDosMil | `test/image/SantaInesDosMil.png` | `test/label/SantaInesDosMil.png` |
92
-
93
- ## Dataset visualizations
94
-
95
- These figures are included in this repository under `figures/`.
96
-
97
- ### 1) Site spatial distribution
98
- ![Site distribution map](figures/site_distribution_osm.png)
99
-
100
- ### 2) Per-site class pixel-count heatmap
101
- ![Per-site class heatmap](figures/site_class_pixel_counts_heatmap_merged.png)
102
-
103
- ### 3) Train/val/test class distribution
104
- ![Split class distribution](figures/train_val_test_class_distribution_merged.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GoldMDD Data
2
+
3
+ - Output dataset root: `GoldMDD/data`
4
+ - Output folders: `train/image`, `train/label`, `val/image`, `val/label`, `test/image`, `test/label` (copied from `GoldMining/Data/Orthomosaic` and `GoldMining/Data/Label`).
5
+ - Source folders: `Drone_Orthomosaic_V1/Orthomosaic_org` and `Drone_Orthomosaic_V1/Just_labels`
6
+ - Matching rule: label to orthomosaic by filename mapping, then crop/reproject label to orthomosaic grid.
7
+ - Canonical labels: 14 semantic classes (`1..14`) plus `0=Background` after class merging in GoldMDD.
8
+ - Split rule in this dataset: train/val/test assignment is listed in the `Split` column of the spatial metadata table.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  ## Spatial metadata table (source files + aligned output)
11
 
 
24
  | PlayaMirador2 | `PlayaMirador_corrected.tif` | `PlayaMirador_classified_corrected.tif` | EPSG:32719 | 22911x22394 | 17608x17608 | 0.056792, 0.056792 | 0.056840, 0.057298 | [-70.377536, -70.365474] | [-13.063390, -13.051829] | [-70.376072, -70.366793] | [-13.057446, -13.052861] | 17624x8883 | 50.1021 | 2022-03-10 | val |
25
  | SantaInesDosMil | `SantaInesDosMil_corrected.tif` | `SantaInesDosMil_classified_corrected.tif` | EPSG:32719 | 22883x24295 | 17185x17184 | 0.058193, 0.058193 | 0.058873, 0.058471 | [-70.386657, -70.374307] | [-13.063436, -13.050589] | [-70.385274, -70.375895] | [-13.061789, -13.052656] | 17387x17267 | 100.9625 | 2022-03-10 | test |
26
 
27
+ ## Unified class mapping (GoldMDD merged classes)
28
+
29
+ | Canonical ID | Class | Merged from original IDs | Color swatch | Color (HEX) | Area (ha) | Percentage (%) | Pixel count | Alias names seen in metadata |
30
+ | --- | --- | --- | --- | --- | ---: | ---: | ---: | --- |
31
+ | 1 | Building | 1,4 | <span style="display:inline-block;width:14px;height:14px;background:#8A6A3D;border:1px solid #222;"></span> | `#8A6A3D` | 2.3745 | 0.09 | 6,367,488 | Area urbana; Campamento minero |
32
+ | 2 | Mining raft | 2 | <span style="display:inline-block;width:14px;height:14px;background:#7BEBFB;border:1px solid #222;"></span> | `#7BEBFB` | 0.1467 | 0.01 | 461,925 | Balsa; Balsa de mineria; Raft |
33
+ | 3 | Primary Forest | 3 | <span style="display:inline-block;width:14px;height:14px;background:#B04C18;border:1px solid #222;"></span> | `#B04C18` | 961.8239 | 38.45 | 3,308,805,552 | Bosque primario; Primary forest |
34
+ | 4 | Heavy machinery | 5,8,9,19 | <span style="display:inline-block;width:14px;height:14px;background:#EE92C6;border:1px solid #222;"></span> | `#EE92C6` | 0.0161 | 0.00 | 43,313 | Cargador frontal; Excavadora; Maquinaria pesada; Volquete; Dump truck |
35
+ | 5 | Water bodies | 6 | <span style="display:inline-block;width:14px;height:14px;background:#4F6F6F;border:1px solid #222;"></span> | `#4F6F6F` | 321.2655 | 12.84 | 1,085,789,506 | Cuerpos de agua |
36
+ | 6 | Agricultural crop | 7 | <span style="display:inline-block;width:14px;height:14px;background:#84D08C;border:1px solid #222;"></span> | `#84D08C` | 33.5185 | 1.34 | 105,688,237 | Cultivos agricolas; Cultivo agricola; Cultivos; Crops |
37
+ | 7 | Compact mounds | 10 | <span style="display:inline-block;width:14px;height:14px;background:#23F3E3;border:1px solid #222;"></span> | `#23F3E3` | 66.2310 | 2.65 | 215,787,431 | Monticulo compacto; Compact mound |
38
+ | 8 | Gravel mounds | 11 | <span style="display:inline-block;width:14px;height:14px;background:#585400;border:1px solid #222;"></span> | `#585400` | 13.2680 | 0.53 | 42,049,847 | Monticulos de cascajo |
39
+ | 9 | Grass | 12 | <span style="display:inline-block;width:14px;height:14px;background:#8DB51D;border:1px solid #222;"></span> | `#8DB51D` | 28.3472 | 1.13 | 87,888,718 | Pasto |
40
+ | 10 | Type 1 natural regeneration | 13 | <span style="display:inline-block;width:14px;height:14px;background:#C2163A;border:1px solid #222;"></span> | `#C2163A` | 228.5563 | 9.14 | 660,993,175 | Regeneracion natural tipo 1; Regeneracion tipo 1; Type 1 disturbed vegetation |
41
+ | 11 | Type 2 natural regeneration | 14 | <span style="display:inline-block;width:14px;height:14px;background:#F77757;border:1px solid #222;"></span> | `#F77757` | 523.1002 | 20.91 | 1,710,062,485 | Regeneracion natural tipo 2; Regeneracion tipo 2; Type 2 disturbed vegetation |
42
+ | 12 | Bare ground | 15 | <span style="display:inline-block;width:14px;height:14px;background:#2CD874;border:1px solid #222;"></span> | `#2CD874` | 322.9909 | 12.91 | 882,535,708 | Suelo desnudo; Bare soil |
43
+ | 13 | Sluice | 16 | <span style="display:inline-block;width:14px;height:14px;background:#613991;border:1px solid #222;"></span> | `#613991` | 0.0403 | 0.00 | 126,368 | Tolva; Tolvas; Hopper |
44
+ | 14 | Vehicles | 17,18 | <span style="display:inline-block;width:14px;height:14px;background:#969AAE;border:1px solid #222;"></span> | `#969AAE` | 0.0092 | 0.00 | 85,244 | Vehiculos; Vehiculos pequenos; Vehiculos pequeños; Small Vehicles |
45
+
46
+ ## Per-site classes using GoldMDD merged mapping
47
+
48
+ | Site | Split | Output ortho PNG | Output label PNG | Output size (W x H px) | Output total pixels | Merged class IDs present | Merged class names present |
49
+ | --- | --- | --- | --- | --- | ---: | --- | --- |
50
+ | AcumulacionAaron2B | train | `AcumulacionAaron2B.png` | `AcumulacionAaron2B.png` | 38122x17643 | 672,586,446 | 1,2,3,4,5,6,8,10,11,12,13,14 | Building; Mining raft; Primary Forest; Heavy machinery; Water bodies; Agricultural crop; Gravel mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Sluice; Vehicles |
51
+ | Kotsimba | train | `Kotsimba.png` | `Kotsimba.png` | 57328x53959 | 3,093,361,552 | 1,3,5,6,7,10,11,12 | Building; Primary Forest; Water bodies; Agricultural crop; Compact mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
52
+ | Los5Rebeldes | train | `Los5Rebeldes.png` | `Los5Rebeldes.png` | 33490x66672 | 2,232,845,280 | 1,3,5,6,7,10,11,12,14 | Building; Primary Forest; Water bodies; Agricultural crop; Compact mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Vehicles |
53
+ | PlayaMirador1 | train | `PlayaMirador1.png` | `PlayaMirador1.png` | 17624x8883 | 156,553,992 | 1,3,5,6,9,10,11,12 | Building; Primary Forest; Water bodies; Agricultural crop; Grass; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
54
+ | Clavelito | val | `Clavelito.png` | `Clavelito.png` | 19556x40304 | 788,185,024 | 1,3,4,5,6,7,10,11,12 | Building; Primary Forest; Heavy machinery; Water bodies; Agricultural crop; Compact mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
55
+ | Nayda | val | `Nayda.png` | `Nayda.png` | 17954x17908 | 321,520,232 | 1,2,3,5,6,8,10,11,12,13 | Building; Mining raft; Primary Forest; Water bodies; Agricultural crop; Gravel mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Sluice |
56
+ | PlayaMirador2 | val | `PlayaMirador2.png` | `PlayaMirador2.png` | 17624x8883 | 156,553,992 | 1,3,5,6,9,10,11,12 | Building; Primary Forest; Water bodies; Agricultural crop; Grass; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
57
+ | Anel | test | `Anel.png` | `Anel.png` | 18274x18420 | 336,607,080 | 1,2,3,5,6,8,10,11,12,13 | Building; Mining raft; Primary Forest; Water bodies; Agricultural crop; Gravel mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Sluice |
58
+ | ElEngano | test | `ElEngano.png` | `ElEngano.png` | 17575x17770 | 312,307,750 | 3,5,6,10,11,12 | Primary Forest; Water bodies; Agricultural crop; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
59
+ | Linda | test | `Linda.png` | `Linda.png` | 17852x17888 | 319,336,576 | 1,2,3,5,10,11,12,13 | Building; Mining raft; Primary Forest; Water bodies; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Sluice |
60
+ | Paolita | test | `Paolita.png` | `Paolita.png` | 53943x27054 | 1,459,373,922 | 1,2,3,5,6,8,10,11,12,13 | Building; Mining raft; Primary Forest; Water bodies; Agricultural crop; Gravel mounds; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground; Sluice |
61
+ | SantaInesDosMil | test | `SantaInesDosMil.png` | `SantaInesDosMil.png` | 17387x17267 | 300,221,329 | 1,3,5,6,10,11,12 | Building; Primary Forest; Water bodies; Agricultural crop; Type 1 natural regeneration; Type 2 natural regeneration; Bare ground |
62
+
63
+ ## Generation workflow
64
+
65
+ - Source orthomosaic/label alignment and original canonical labels come from `GoldMining/Data`.
66
+ - GoldMDD labels are remapped from the original 19-class canonical IDs into a 14-class merged scheme (stored only under `GoldMDD/data/*/label`).
67
+ - Merge rules:
68
+ - `Heavy machinery` = original IDs 5 (Front loader), 8 (Excavator), 9 (Heavy machinery), 19 (Dump truck)
69
+ - `Vehicles` = original IDs 17 (Vehicles), 18 (Small vehicles)
70
+ - `Building` = original IDs 1 (Urban area), 4 (Mining camp)
71
+ - Heatmap output: `GoldMDD/site_class_pixel_counts_heatmap_merged.png`
72
+ - Heatmap CSV: `GoldMDD/site_class_pixel_counts_merged.csv`
73
+ - Train/val/test distribution plot: `GoldMDD/train_val_test_class_distribution_merged.png`
74
+ - Train/val/test distribution CSV: `GoldMDD/train_val_test_class_distribution_merged.csv`
75
+
76
+ ## Cropped patch dataset (`data-cropped`)
77
+
78
+ - Output root: `GoldMDD/data-cropped`
79
+ - Patch size: `512x512`
80
+ - Stride: `256`
81
+ - Filtering rule: drop a patch if background pixels in the merged label (`label==0`) are `>80%`.
82
+ - Windowing rule: full windows only (no padding).
83
+ - Patch naming: matching basenames per pair, e.g. image `AcumulacionAaron2B_2_3.jpg` and label `AcumulacionAaron2B_2_3.png` (1-based row/col indices).
84
+ - Storage format: image patches = JPEG, label patches = PNG (lossless class IDs).
85
+ - Folder structure: `train/image`, `train/label`, `val/image`, `val/label`, `test/image`, `test/label`.
86
+
87
+ ### Crop summary by split
88
+
89
+ | Split | # Sites | Candidate windows | Kept patches | Dropped (>80% bg) | Kept ratio |
90
+ | --- | ---: | ---: | ---: | ---: | ---: |
91
+ | train | 4 | 91,869 | 65,798 | 26,071 | 0.716 |
92
+ | val | 3 | 18,603 | 15,988 | 2,615 | 0.859 |
93
+ | test | 5 | 40,172 | 40,095 | 77 | 0.998 |
94
+ | **Total** | **12** | **150,644** | **121,881** | **28,763** | **0.809** |
95
+
96
+ ### Crop summary by site
97
+
98
+ | Split | Site | Source size (W x H) | Candidate windows | Kept patches | Dropped (>80% bg) | Kept ratio |
99
+ | --- | --- | --- | ---: | ---: | ---: | ---: |
100
+ | train | AcumulacionAaron2B | 38122x17643 | 9,849 | 9,849 | 0 | 1.000 |
101
+ | train | Kotsimba | 57328x53959 | 46,398 | 20,327 | 26,071 | 0.438 |
102
+ | train | Los5Rebeldes | 33490x66672 | 33,411 | 33,411 | 0 | 1.000 |
103
+ | train | PlayaMirador1 | 17624x8883 | 2,211 | 2,211 | 0 | 1.000 |
104
+ | val | Clavelito | 19556x40304 | 11,700 | 9,085 | 2,615 | 0.776 |
105
+ | val | Nayda | 17954x17908 | 4,692 | 4,692 | 0 | 1.000 |
106
+ | val | PlayaMirador2 | 17624x8883 | 2,211 | 2,211 | 0 | 1.000 |
107
+ | test | Anel | 18274x18420 | 4,900 | 4,890 | 10 | 0.998 |
108
+ | test | ElEngano | 17575x17770 | 4,556 | 4,556 | 0 | 1.000 |
109
+ | test | Linda | 17852x17888 | 4,624 | 4,577 | 47 | 0.990 |
110
+ | test | Paolita | 53943x27054 | 21,736 | 21,716 | 20 | 0.999 |
111
+ | test | SantaInesDosMil | 17387x17267 | 4,356 | 4,356 | 0 | 1.000 |
112
+
113
+ - Summary CSVs:
114
+ - `GoldMDD/data-cropped/crop_summary_by_split.csv`
115
+ - `GoldMDD/data-cropped/crop_summary_by_site.csv`