Our team looks to identify land use via satellite imaging through the use of computer vision AI models. These have practical and beneficial uses in fields such as city planning or environmental monitoring as it allows you to classify large land-masses accurately and quickly.
Using the EuroSAT dataset, we looked to improve upon the AI classification model that a previous research group had used to identify land use using satelite imaging EuroSAT repository. This team used a classifier model (2-layer CNN) using Sentinel-2 satellite images w/ a 12-spectral band dataset. Our team looks to improve upon this model by using a U-Net network to predict the class of each pixel within the RGB dataset.
This repo defines a U-Net model for image segmentation of the EuroSAT dataset. The EuroSAT is a dataset of 27,000 geo images. Each image is 64-by-64 and colored.
The models.py
script contains the definitions for the U-Net model and 2-layer CNN classifier.
The Train.ipynb
notebook is used to train both models.
The ModelAnalysis.ipynb
notebook is used to showcase the trained model.
Required dependencies:
- Pytorch (CUDA)
- Pytorch Vision
- Numpy
- Scipy
- Matplotlib
- Scikit Image
- TQDM
Installation:
pip install tqdm scikit-image matplotlib numpy scipy
To install Pytorch, refer to Pytorch.
- Download the RGB dataset from the EuroSAT repository.
- Unzip it into the workspace root directory.
- Renaming it into
dataset
. - If you make a new file and label it
dataset
, ensure contents mimic the originalEuroSAT
folder (has folders with classification of images) - Run the
Train.ipynb
notebook.
Example input image:
The image is classified as "Residential".
The model marked the blue region as residential, the red region as highway, and the yellow region as river.
EuraSAT: Land Use and Land Cover Classification with Sentinel-2
Helber, Patrick, et al. “Introducing eurosat: A novel dataset and deep learning benchmark for land use and land cover classification.” IGARSS 2018 - 2018 IEEE International Geoscience and Remote Sensing Symposium, July 2018, https://doi.org/10.1109/igarss.2018.8519248.
Helber, Patrick, et al. “EuroSAT: A novel dataset and deep learning benchmark for land use and land cover classification.” IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, vol. 12, no. 7, July 2019, pp. 2217–2226, https://doi.org/10.1109/jstars.2019.2918242.