favyen commited on
Commit
553d322
·
verified ·
1 Parent(s): abdcd98

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +248 -0
README.md CHANGED
@@ -1,3 +1,251 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pretty_name: OlmoEarth Land Cover Change (LCC) Dataset
4
+ tags:
5
+ - remote-sensing
6
+ - earth-observation
7
+ - change-detection
8
+ - sentinel-2
9
+ size_categories:
10
+ - 1K<n<10K
11
  ---
12
+
13
+ # OlmoEarth Land Cover Change (LCC) Dataset
14
+
15
+ This dataset contains point-based annotations of land cover change, used to
16
+ train the OlmoEarth LCC model (https://olmoearth-lcc.allen.ai). The model
17
+ detects recent land cover change from Sentinel-2 time series: it inputs a Sentinel-2
18
+ image time series with 16 quarterly images (to establish a historical baseline) and 4
19
+ recent biweekly images (to detect changes soon after they occur) and predicts, per pixel,
20
+ whether a land cover change occurred at some point during the time series, and if so,
21
+ the source and destination land cover categories, the start and end dates of the change,
22
+ and a fine-grained change category.
23
+
24
+ We also provide GeoTIFF outputs produced by running the trained model at scale. See
25
+ [Model output summary rasters](#model-output-summary-rasters) below.
26
+
27
+ The dataset is intended to be paired with Sentinel-2 images, but can be used with other
28
+ modalities as long as they are temporally aligned. We do not include the image inputs
29
+ here since they can be obtained based on the timestamps in the provided annotations.
30
+
31
+ ## Annotation format
32
+
33
+ Annotations are provided as JSON files. Each file is a list of entries, where
34
+ each entry corresponds to one 128x128-pixel spatial window at 10 m/pixel in a
35
+ UTM projection:
36
+
37
+ ```json
38
+ {
39
+ "projection": {"crs": "EPSG:32651", "x_resolution": 10, "y_resolution": -10},
40
+ "bounds": [27130, -161561, 27258, -161433],
41
+ "window_name": "example_window",
42
+ "group": "default",
43
+ "time_range": ["2017-01-01T00:00:00+00:00", "2024-01-01T00:00:00+00:00"],
44
+ "positive_points": [
45
+ {
46
+ "lon": 121.5,
47
+ "lat": 14.6,
48
+ "pre_change": "2020-01-15",
49
+ "first_date_change_noticeable": "2020-04-27",
50
+ "post_change": "2020-07-15",
51
+ "pre_category": "tree",
52
+ "post_category": "urban/built-up",
53
+ "post_change_category": "new_building"
54
+ }
55
+ ],
56
+ "negative_points": [
57
+ {"lon": 121.51, "lat": 14.61}
58
+ ]
59
+ }
60
+ ```
61
+
62
+ Entry fields:
63
+
64
+ - `projection` / `bounds`: the UTM projection and pixel bounds
65
+ `[min_col, min_row, max_col, max_row]` of the window. Pixel coordinates are
66
+ projection coordinates divided by the resolution (10 m/pixel; `y_resolution`
67
+ is negative so row indices increase southward).
68
+ - `window_name` / `group`: identifiers for the entry.
69
+ - `time_range`: the period over which the annotations are valid. In particular,
70
+ negative points are only confirmed as no-change within this time range.
71
+ - `positive_points`: points where a land cover change was verified.
72
+ - `negative_points`: points verified as having no change. These only have
73
+ `lon` and `lat`.
74
+
75
+ ### Positive point fields
76
+
77
+ Each positive point has a location (`lon`, `lat` in WGS84), three dates, and
78
+ two land cover categories:
79
+
80
+ - `pre_change`: the last date at which the location still appears in its
81
+ pre-change state in the imagery.
82
+ - `first_date_change_noticeable`: the first date at which the change starts to
83
+ become noticeable.
84
+ - `post_change`: the first date at which the change appears complete.
85
+ - `pre_category`: the land cover category before the change.
86
+ - `post_category`: the land cover category after the change.
87
+
88
+ The land cover categories (used for both `pre_category` and `post_category`)
89
+ are:
90
+
91
+ `bare`, `burnt`, `crops`, `fallow/shifting cultivation`, `grassland`,
92
+ `Lichen and moss`, `shrub`, `snow and ice`, `tree`, `urban/built-up`, `water`,
93
+ `wetland (herbaceous)`.
94
+
95
+ In addition to the source/destination land cover categories, more recently
96
+ annotated positive points carry fine-grained change-category fields. These
97
+ fields were introduced partway through annotation, so **some positive points
98
+ have them and others do not**: a point either has at least one of the three
99
+ fields set, or none of them. During training, the change-category heads are
100
+ only supervised at points that have at least one of these fields; for such
101
+ points, any unset sibling field is treated as an explicit "none" label, while
102
+ points without any of the fields are masked out for these heads.
103
+
104
+ The three fields describe different aspects of a change, and a point is
105
+ annotated with one `pre_change_category` and/or one `post_change_category`,
106
+ *or* one `same_change_category`:
107
+
108
+ - `pre_change_category`: what was removed or lost. Options:
109
+ `deforestation`, `urban_erosion`, `wetland_loss`, `water_contract`,
110
+ `removed_crop_structure`.
111
+ - `post_change_category`: what appeared. Options:
112
+ `vegetation_growth`, `new_building`, `new_road`, `new_infrastructure`,
113
+ `new_crop_field`, `new_aquafarm`, `site_clearing`, `water_expand`, `mining`,
114
+ `new_crop_structure`, `selective_logging`, `landslide`, `settlement`.
115
+ - `same_change_category`: an event where the land cover category is disturbed
116
+ but not permanently converted to a different category. Options:
117
+ `agricultural_activity`, `wildfire`, `ice_motion`, `flooding`.
118
+
119
+ ## Data collection
120
+
121
+ The annotations were collected in several phases, all verified manually in an
122
+ annotation UI showing monthly Sentinel-2 mosaics.
123
+
124
+ - Phase 1: we trained a model to predict per-year land cover, then applied it
125
+ on many randomly sampled locationsover a ten-year period. Candidate change
126
+ locations were proposed by comparing the per-year land cover predictions:
127
+ specifically, we looked for places where the model was confident that the
128
+ land cover change was one type for three years, then we ignored the next
129
+ year in case the change is gradual, and then the model was confident that
130
+ the land cover change was another type for three more years.
131
+ - Phase 2: output-based labeling (apply the model at scale, look for change
132
+ predictions at a confidence threshold tuned for high-recall and low-precision,
133
+ then label based on those).
134
+ - Phase 3: output-based labeling.
135
+ - Phase 4: similar to Phase 1 but use a per-pixel land cover model instead of
136
+ one that has a larger spatial context. This way we ensure we can find very
137
+ small-scale changes.
138
+ - Phase 5: output-based labeling.
139
+ - Phase 6: label random points in 0.1 x 0.1 degree tiles that are likely to have
140
+ changes (e.g. agricultural activity, wildfire, flooding, new airport, etc.).
141
+ - Phase 7: output-based labeling.
142
+ - Phase 8: output-based labeling.
143
+ - Phase 9: output-based labeling and focus on rare transitions (src_land_cover,
144
+ dst_land_cover) that didn't appear frequently in the labels collected so far.
145
+ - Phase 10: similar to Phase 4 but in subsaharan Africa, and oversampling the
146
+ tree -> bare transitions.
147
+ - Phase 11: output-based labeling focused on mining predictions.
148
+ - Phase 12: output-based labeling focused on mining predictions.
149
+ - Phase 13: output-based labeling focused on mining predictions.
150
+ - Phase 14: output-based labeling focused on mining predictions.
151
+ - Phase 15: output-based labeling focused on mining predictions.
152
+ - Phase 16: label points based on a set of 10 datasets related to mining in different
153
+ parts of sub-saharan Africa.
154
+ - Phase 17: output-based labeling.
155
+ - Phase 18: output-based labeling.
156
+
157
+ ## Model output summary rasters
158
+
159
+ Alongside the annotations, we provide summary GeoTIFFs produced by running the
160
+ trained LCC model at scale. The world is divided into 32768x32768-pixel UTM
161
+ tiles at 10 m/pixel (327.68 km per side), and each processed tile yields one
162
+ file named `{EPSG code}_{col}_{row}_summary.tif`, where `col` and `row` are the
163
+ tile's top-left corner in the 10 m/pixel UTM pixel grid (multiply by the
164
+ resolution to get projection coordinates).
165
+
166
+ Each file is a 9-band uint8 GeoTIFF summarizing the model's per-pixel
167
+ predictions for one reference timestamp. Pixels the model did not predict
168
+ (e.g. no cloud-free imagery) are 0 in every band.
169
+
170
+ | Band | Name | Description |
171
+ | --- | --- | --- |
172
+ | 1 | `binary_change` | Probability of change, scaled to 0-255. |
173
+ | 2 | `pre_class` | Argmax class of the pre/same change-category head (see table below). |
174
+ | 3 | `post_class` | Argmax class of the post change-category head (see table below). |
175
+ | 4 | `src_class` | Argmax source land cover class (see table below). |
176
+ | 5 | `dst_class` | Argmax destination land cover class (see table below). |
177
+ | 6 | `pre_score` | Probability (0-255) of the argmax class in band 2. |
178
+ | 7 | `post_score` | Probability (0-255) of the argmax class in band 3. |
179
+ | 8 | `ts_pre_month` | Predicted change start (last pre-change date), month-encoded. |
180
+ | 9 | `ts_post_month` | Predicted change end (change complete date), month-encoded. |
181
+
182
+ **Month encoding** (bands 8-9): 0 means no prediction; otherwise the value is
183
+ 1 + the number of whole calendar months between January 2015 and the predicted
184
+ date. So 1 = January 2015, 13 = January 2016, and so on (255 reaches March
185
+ 2036).
186
+
187
+ **Land cover classes** (bands 4-5): 0 = no prediction, then
188
+ 1 = `bare`, 2 = `burnt`, 3 = `crops`, 4 = `fallow/shifting cultivation`,
189
+ 5 = `grassland`, 6 = `Lichen and moss`, 7 = `shrub`, 8 = `snow and ice`,
190
+ 9 = `tree`, 10 = `urban/built-up`, 11 = `water`, 12 = `wetland (herbaceous)`.
191
+
192
+ **Pre/same change-category classes** (band 2): in the deployed model, the
193
+ `pre_change_category` and `same_change_category` heads are merged into a
194
+ single head, with the "same" categories appended after the "pre" categories:
195
+
196
+ | Value | Category |
197
+ | --- | --- |
198
+ | 0 | no prediction |
199
+ | 1 | none |
200
+ | 2 | deforestation |
201
+ | 3 | urban_erosion |
202
+ | 4 | wetland_loss |
203
+ | 5 | water_contract |
204
+ | 6 | removed_crop_structure |
205
+ | 7 | agricultural_activity |
206
+ | 8 | wildfire |
207
+ | 9 | ice_motion |
208
+ | 10 | flooding |
209
+
210
+ **Post change-category classes** (band 3):
211
+
212
+ | Value | Category |
213
+ | --- | --- |
214
+ | 0 | no prediction |
215
+ | 1 | none |
216
+ | 2 | vegetation_growth |
217
+ | 3 | new_building |
218
+ | 4 | new_road |
219
+ | 5 | new_infrastructure |
220
+ | 6 | new_crop_field |
221
+ | 7 | new_aquafarm |
222
+ | 8 | site_clearing |
223
+ | 9 | water_expand |
224
+ | 10 | mining |
225
+ | 11 | new_crop_structure |
226
+ | 12 | selective_logging |
227
+ | 13 | landslide |
228
+ | 14 | settlement |
229
+
230
+ Note that "none" (value 1) is a valid prediction for both category heads: it
231
+ indicates the model predicts a change at that pixel but none of the listed
232
+ categories apply (or, for the merged pre/same head, that the change is fully
233
+ described by the post category, and vice versa). The argmax in bands 2-5 is
234
+ computed excluding the internal `nodata` class, so value 0 always means "no
235
+ prediction" rather than a predicted class.
236
+
237
+ For most applications, threshold band 1 (`binary_change`) first (e.g. at 128,
238
+ corresponding to probability 0.5) and interpret the remaining bands only at
239
+ pixels that pass the threshold; bands 2-9 are populated at every predicted
240
+ pixel regardless of whether change is predicted there.
241
+
242
+ For applications interested in specific types of changes that correspond to a
243
+ change category, filter for the class and threshold the corresponding
244
+ probability. For example, to create a mining mask, filter for band 3 `post_class = 10`
245
+ (10 is mining) and then threshold the band 7 probabilty.
246
+
247
+ ## Related resources
248
+
249
+ - Training and inference code: [WIP](https://github.com/allenai/rslearn_projects/pull/294).
250
+ - Encoder: [OlmoEarth-v1.2-Base](https://huggingface.co/allenai/OlmoEarth-v1_2-Base).
251
+ - Imagery: Sentinel-2 L2A (Copernicus).