|
Algorithm 1 Detection and mapping of vegetation alterations using spectral imagery and sets of features. |
|
|
Required: orthorectified layers (bands) in reflectance I. Labelled regions from field assessments L. |
|
|
Data Preparation |
| 1: |
Load I data. |
| 2: |
Spectral indexes array from I. |
| 3: |
Features array [I, S]. |
|
|
Training |
| 4: |
Labels array from dataset L. |
| 5: |
filtered dataset of features X with corresponding labelled pixel from Y. |
| 6: |
Split D into training data and testing data . |
| 7: |
Fit an XGBoost classifier C using . |
| 8: |
List of unique relevance values of processed features X from C. |
| 9: |
for all values in
R
do
|
| 10: |
Filtered underscored features from . |
| 11: |
Fit C using . |
| 12: |
Append accuracy values from C into T. |
| 13: |
end for |
| 14: |
Fit C using the best features threshold from T. |
| 15: |
Validate C with k-fold cross-validation from ▹number of folds = 10 |
|
|
Prediction |
| 16: |
Predicted values for each sample in X. |
| 17: |
Convert P array into a 2D orthorectified image. |
| 18: |
Displayed/overlayed image. |
| 19: |
return
O
|