You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CropMappingInterpretation: An interpretation pipeline towards understanding multi-temporal deep learning approaches for crop mapping
This repository is the official implementation of the paper "An interpretation pipeline towards understanding multi-temporal deep learning approaches for crop mapping"
Requirements
torch
numpy
pandas
scikit-learn
jupyter
matplotlib
seaborn
The code has been tested in the following environment:
Ubuntu 16.04.4 LTS, Python 3.5.2, PyTorch 1.2.0
Data
The preprocessed data (.npy files) for model training and evaluation is not directly provided here due to the large data volume. You can download raw Landsat Analysis Ready Data (ARD) from EarthExplore and raw Cropland Data Layer (CDL) from CropScape, then follow the code in the preprocessing folder to generate the .npy files. Specifically, run preprocess_ARD.ipynb at first, then preprocess_CDL.ipynb, and finally category_binarization.ipynb. The raw Landsat ARD and CDL data should be stored in a new data folder that has the following structure (specific downloaded file names may change):
The PyTorch implementation of AtLSTM and Transformer models is located in the models folder. For random forest, the built-in implementation provided by scikit-learn is used.
The utils folder contains some utilities that are used for data loading, normalization, training and evaluation.
The specific training and evaluation process can be executed by running the .ipynb files in the experiments folder.
Understanding
The implementation of interpretation approaches is located in the understanding folder. Note that interpretation is based on the outputs of training and evaluation.
About
Official implementation of "An interpretation pipeline towards understanding multi-temporal deep learning approaches for crop mapping".