Published March 23, 2022 | Version v1
Software Open

Code implementation of the feature and prior shift adjustment method proposed in "Two Shifts for Crop Mapping: Leveraging Aggregate Crop Statistics to Improve Satellite-based Maps in New Regions"

  • 1. Stanford University

Description

Here we post an R implementation of the prior and feature shift adjustment methods from Section 2 of Kluger et. al. (2021).  The methods leverage prior information about the distribution of the crop type labels in each region. In our case, this prior information is based aggregate-level government statistics.

This upload includes R code with a function to implement the prior and feature shift adjustment methods. It also includes 3 example implementations of the method. The prior and feature shift adjustment method can be used for any choice of base classifier as long as that classifier outputs the posterior probability of each target point being in each class. In our examples, we exhibit the method's use for settings where LDA or Random Forest is the base classifier.

The .pdf and .html files in this Zenodo post are the same. The data used in the tutorial can be found here: 10.5281/zenodo.6376160. The paper Kluger et. al. (2021) can also be found on arXiv: https://arxiv.org/pdf/2109.01246.pdf.

 

Preferred Citation:

Kluger, D.M., Wang, S., Lobell, D.B., 2021. Two shifts for crop mapping: Leveraging aggregate crop statistics to improve satellite-based maps in new regions. Remote Sens. Environ. 262, 112488. https://doi.org/10.1016/j.rse.2021.112488.

 

Files

PSA_FPSA_method_implementation_with_examples.pdf

Files (905.1 kB)

Name Size Download all
md5:dc555be1d1aeec4bb9509bee7b8c8a18
678.6 kB Download
md5:03fbd940961ab96ac46d0ddf2989b5c2
208.9 kB Preview Download
md5:65a6faff64682f7a66557c44035b7771
17.6 kB Download

Additional details

Related works

Cites
Journal article: 10.1016/j.rse.2021.112488 (DOI)
Preprint: arXiv:2109.01246 (arXiv)
Requires
Dataset: 10.5281/zenodo.6376160 (DOI)