Step-by-step guide for the BayTS NRT alert generation on the SEPAL platform
NFM Team
FAO Forestry Division &
Wageningen University
BayTS Recipes
Overview
NRTM in SEPAL
3
25.07.23
BayTS Recipes
Original Method
NRTM in SEPAL
25.07.23
Workflow
NRTM in SEPAL
25.07.23
Workflow
This how-to guide provides the general steps when using a combination of Landsat and Sentinel-2 data for an exemplary area in Bolivia.
NRTM in SEPAL
6
25.07.23
Workflow
I - Generation of historical BayTS Asset
NRTM in SEPAL
7
25.07.23
Workflow
I - Generation of historical BayTS Asset
Note: As an example you can use the following EE Table:
users/andreasvollrath/workflows/aoi_bolivia_nrt
1
2
3
4
NRTM in SEPAL
8
25.07.23
Workflow
I - Generation of historical BayTS Asset
Note: if cloud cover is not persistent, a 3-year period before the start of monitoring is sufficient
1
2
NRTM in SEPAL
9
25.07.23
Workflow
I - Generation of historical BayTS Asset
Note I: Terrain correction is usually recommended in SAR processing for land applications. In or case, we only do relative comparisons to the same acquisition geometry, so it does not have a huge impact
Note II: By default no multi-temporal speckle filter is selected. Quegan can drastically improve the results though, especially as it needs to be applied later on the single imagery
1
2
NRTM in SEPAL
10
25.07.23
Workflow
I - Generation of historical BayTS Asset
1
NRTM in SEPAL
11
25.07.23
Workflow
I - Generation of historical BayTS Asset
1
NRTM in SEPAL
12
25.07.23
Workflow
I - Generation of historical BayTS Asset
Important consideration:
The BAYTS asset usually does not need any updating and is produced only once, but:
if you apply this over forest with seasonality, you may need to adapt to historical years with similar similar conditions to the monitoring year.
Indeed, the RADD alerts are only generated over Primary tropical humid forest, where the signal remains relatively stable in time and updating is not necessary.
NRTM in SEPAL
13
25.07.23
Workflow
II - Applying a Forest Mask
1
NRTM in SEPAL
14
25.07.23
Workflow
II - Applying a Forest Mask (optional)
Note I: If you exported the BayTS asset, select “Earth Engine Asset”, otherwise click on “Saved Sepal Recipe”
1
NRTM in SEPAL
15
25.07.23
Workflow
II - Applying a Forest Mask (optional)
1
NRTM in SEPAL
16
25.07.23
Workflow
II - Applying a Forest Mask (optional)
1
NRTM in SEPAL
17
25.07.23
Workflow
II - Applying a Forest Mask (optional)
Note I: The mask shall consist of 0s (non-forest) and 1s (forest)
Note II: You can use a global mask of Primary Humid Tropical Forest in 2018 as in the example:
UMD/GLAD/PRIMARY_HUMID_TROPICAL_FORESTS/v1
1
NRTM in SEPAL
18
25.07.23
Workflow
II - Applying a Forest Mask (optional)
Note: Masking is a very fast process, so you usually do no need to export the results, and can use the output of the masking recipe as input in the next recipe
Note II: The applied mask is from 2018, and therefore does not exclude all non-forested areas. You could use SEPAL’s remap recipe and the VV SD band to further refine the mask based on the temporal backscatter behaviour.
1
NRTM in SEPAL
19
25.07.23
Workflow
III – Generation of BayTS alerts
NRTM in SEPAL
20
25.07.23
Workflow
III – Generation of BayTS alerts
NRTM in SEPAL
21
25.07.23
Workflow
III – Generation of BayTS alerts
NRTM in SEPAL
22
25.07.23
Workflow
III – Generation of alerts
Note I: The monitoring period can range from days to months. However, Sentinel-1 repeat cycle ranges from 6 to 12 days.
NRTM in SEPAL
23
25.07.23
Workflow
III – Generation of alerts
Note: Those will be the same as the historical layer. If your input is a SEPAL recipe, a change within this recipe will trigger a change in the historical layer recipe.
If your input is an EE asset, it is strictly recommended to keep the pre-processing options as is, as changes will alter the statistical assumptions of the method.
NRTM in SEPAL
24
25.07.23
Workflow
III – Generation of alerts
This will be covered later in the tweaking the algorithm section as well as update existing alerts
NRTM in SEPAL
25
25.07.23
Workflow
III – Generation of alerts
NRTM in SEPAL
26
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
NRTM in SEPAL
27
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Move the recipe 3 times to the left
2
3
1
NRTM in SEPAL
28
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
For now, we have 4 equal windows showing the probability of the detected alerts.
Our aim is to place:
- flag on the top left
- detection date on the top right
- a “first pixel in monitoring period” image composite on the lower left
- a “last pixel in monitoring period” image composite on the lower right
1
2
3
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Note: The internal algorithm handles 3 types of alerts:
- 1: Initial (when Bayesian updating starts because of going above the NF prob. threshold)
- 2: low confidence (change prob. > 0.85)
- 3: high confidence (change prob. > 0.975)
By default, only high confidence alerts are shown.
1
2
4
3
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
1
2
4
3
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
1
2
4
3
Lower Left
Lower Right
NRTM in SEPAL
25.07.23
Workflow
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Observation
While all of the clear-cutted areas do show up in the alerts, there are some false detections around already cleared land. Those result from an imperfect forest mask and show the algorithms sensitivity to outside forest areas.
An additional forest mask can be created based on the historical layer.
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
1. Open a remap recipe
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Additional Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Add customized Forest mask
NRTM in SEPAL
25.07.23
Workflow
Primary Humid Tropical Forest Mask (Turubanova 2018)
Primary Humid Tropical Forest Mask (Turubanova 2018) +
1.5 dB VH threshold FNF mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Add customized Forest mask
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Add customized Forest mask
Ouch….results have not improved! ☹
But now you know how to add a customized forest mask ☺
Another issue that causes this pattern:
- Alerts at the border are detected later and fall into the monitoring period
We can check this easily by including preceding alerts
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Include preceding alerts
NRTM in SEPAL
25.07.23
Workflow
IV – Visual inspection and parameter tweaking
Include preceding alerts
Indeed, we can see that for some of the preceding alerts, the boundaries show up with later dates, which means that the signal of change is less clear and the algorithm needs more time for confirmation.
If this overlaps with the start of the monitoring period, holes can appear.
With BayTS Alerts recipe it is possible to add previous alerts that have been exported.
NRTM in SEPAL
25.07.23
Workflow
V – Update previous alerts
NRTM in SEPAL
25.07.23
Workflow
V – Update previous alerts
NRTM in SEPAL
25.07.23
Workflow
V – Update previous alerts
Note: You should consider the end date and period, according to the end date of your previous asset.
NRTM in SEPAL
25.07.23
Workflow
V – Update previous alerts
Note: Previous alerts will show up in the flag and probability layers independent of this selection, as those are updated versions of the previous
NRTM in SEPAL
25.07.23
Workflow
V – Update previous alerts
NRTM in SEPAL
25.07.23
Workflow
VI – Post-processing
Small islands can be removed by a script, where a user can:
- Define the Minimum Mapping Unit in hectare
- Use the Earth Engine exported Asset of the alerts
🡪 needs first_detection_date band included
Follow this link:
https://code.earthengine.google.com/8cf59d6e39d90c7d3bbdc4691f23a08a
NRTM in SEPAL
25.07.23
Workflow
Unfiltered Alerts
Filtered Alerts with a MMU of 0.1 ha
Thank you!