This is the source code of our study 'Manifold Structure of Multispectral-spatial-temporal Remote Sensing Data in Crop Type Mapping based Temporal Feature Extractor'
The LSTM module helps mine smoother and lower dimensional manifold structure in EVI data. Temporal feature-based segmentation considers temporal feature separately before multispectral-spatial feature.
|_HT
|_12bands
|_ 0_8510.tif
...
|_EVI
|_ 0_8510.tif
...
|_SegmentationClass
|_ 0_8510.tif
...
|_ImageSets
|_Segmentation
|_ test.txt
|_ train.txt
|_ trainval.txt
|_ val.txt
VOCdevkit_path = os.path.join(r'J:\research\GEE\hetao_classification', place) # base path of datasets
models = ['TFBS'] # choose models, TFBS
band = 'EVI' # choose datasets, including 'EVI' and '12bands'
places = ['2020HT'] # choose aoi, including '2020HT' and 'NEofCHINA'
training = True # start training
transferlearning = False # pre-training from other datasets
get_miou = True # caculate accuracy metrics
prediction = False # generate prediction map in whole aoi
lstm_outputses = [32] # outputs of LSTM module in TFBS, here we modified it to 32. In different datasets, like EVI dataset, it could be smaller.
input_features = 1 # inputs of LSTM module, or number of band per month. 1 or 12
reference