All Projects → raoofnaushad → Land-Cover-Classification-using-Sentinel-2-Dataset

raoofnaushad / Land-Cover-Classification-using-Sentinel-2-Dataset

Licence: MIT license
Application of deep learning on Satellite Imagery of Sentinel-2 satellite that move around the earth from June, 2015. This image patches can be trained and classified using transfer learning techniques.

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Land-Cover-Classification-using-Sentinel-2-Dataset

Felicette
Satellite imagery for dummies.
Stars: ✭ 1,710 (+4650%)
Mutual labels:  geospatial, geospatial-data, satellite-imagery
eodag
Earth Observation Data Access Gateway
Stars: ✭ 183 (+408.33%)
Mutual labels:  geospatial, satellite-imagery
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+366.67%)
Mutual labels:  geospatial, satellite-imagery
skeyenet
Road and Building Segmentation in Satellite Imagery
Stars: ✭ 106 (+194.44%)
Mutual labels:  geospatial, satellite-imagery
localtileserver
🌐 dynamic tile server for visualizing rasters in Jupyter with ipyleaflet or folium
Stars: ✭ 190 (+427.78%)
Mutual labels:  geospatial, satellite-imagery
awesome-geospatial-data-download-sites
This is the repo for open source geospatial data download sites.
Stars: ✭ 19 (-47.22%)
Mutual labels:  geospatial, geospatial-data
Julia Geospatial
Examples for a blog series on Geospatial Julia using ArchGDAL
Stars: ✭ 58 (+61.11%)
Mutual labels:  geospatial, satellite-imagery
Start maja
To process a Sentinel-2 time series with MAJA cloud detection and atmospheric correction processor
Stars: ✭ 47 (+30.56%)
Mutual labels:  satellite-imagery, sentinel-2
Geospatial Machine Learning
A curated list of resources focused on Machine Learning in Geospatial Data Science.
Stars: ✭ 289 (+702.78%)
Mutual labels:  geospatial, satellite-imagery
awesome-geospatial-list
A curated list of geospatial tools, data, tutorials, information, and more
Stars: ✭ 32 (-11.11%)
Mutual labels:  geospatial, geospatial-data
Geotiff.io
Static website for viewing and analyzing GeoTIFF's in the browser
Stars: ✭ 53 (+47.22%)
Mutual labels:  geospatial, satellite-imagery
community-sprints
This repo is used to organize and collaborate in sprints for code projects, hackathons, STAC and metadata specs development
Stars: ✭ 18 (-50%)
Mutual labels:  geospatial-data, satellite-imagery
fabric
Urban change model designed to identify changes across 2 timestamps
Stars: ✭ 53 (+47.22%)
Mutual labels:  satellite-imagery, sentinel-2
python-aos-lesson
Python for Atmosphere and Ocean Scientists
Stars: ✭ 78 (+116.67%)
Mutual labels:  geospatial, geospatial-data
awesome-spectral-indices
A ready-to-use curated list of Spectral Indices for Remote Sensing applications.
Stars: ✭ 357 (+891.67%)
Mutual labels:  satellite-imagery, sentinel-2
kart
Distributed version-control for geospatial and tabular data
Stars: ✭ 253 (+602.78%)
Mutual labels:  geospatial, geospatial-data
dea-coastlines
Extracting tidally-constrained annual shorelines and robust rates of coastal change from freely available Earth observation data at continental scale
Stars: ✭ 24 (-33.33%)
Mutual labels:  geospatial, satellite-imagery
python-resources-for-earth-sciences
A Curated List of Python Resources for Earth Sciences
Stars: ✭ 159 (+341.67%)
Mutual labels:  geospatial, satellite-imagery
sits
Satellite image time series in R
Stars: ✭ 342 (+850%)
Mutual labels:  geospatial, satellite-imagery
pytorch cnn trainer
A Simple but Powerful CNN Trainer For PyTorch
Stars: ✭ 26 (-27.78%)
Mutual labels:  transfer-learning

Land Cover and Land Use Classification using Sentinel-2 Satellite Imagery With Deep Learning


This work has been published on <> Sensors - MDPI

For better understanding whole idea <> Check out this blog

For implementation:

  • Run the notebook to generate the model.
  • Dataset can be downloaded from the link here.
  • Save model in the Models directory
  • Install required packages
  • Run app.py (send an image file as a request to the classify end poing and will get the class for it).

Scenario

Many government programs are taking enormous efforts to make satellite images free and open sourced inorder to bring in innovation and entrepreunership. This is being used by many domains and are coming up with good results. Inorder to get great insights and knowledge from this satellite data we have to segment and understand it for further studies. Such type of a task is Landcover classification which come up and automate the process of identifying how the land area is used. We have seen a great spike in the growth of Machine learning and Artificial intelligence. Almost all domain in the world is using Deep learning techniques to improve the performance and are benefiting from this. So here we try to use deep learning methods to work with land cover classification.

Overview

Overview Image
Source

A satellite scans the Earth to acquire images of it. Patches extracted out of these images are used for classification. The aim is to automatically provide labels describing the represented physical land type or how the land is used. For this purpose, an image patch is feed into a classifier, in this illustration a neural network, and the classifier outputs the class shown on the image patch.

This satellite conver 13 spectral bands, where the three bands B01, B09 and B10 are intended to be used for the correction of atmospheric effects (e.g., aerosols, cirrus or water vapor). The remaining bands are primarily intended to identify and monitor land use and land cover classes. Each satellite will deliver imagery for at least 7 years with a spatial resolution of up to 10 meters per pixel.

In order to improve the chance of getting valuable image patches, they have selected satellite images with a low cloud level. Besides the possibility to generate a cloud mask, ESA provides a cloud level value for each satellite image allowing to quickly select images with a low percentage of clouds covering the land scene.

Results

Below shows the graph of accuracy and losses against epochs for both training and testing data. Training and Validation loss with Epochs

Training and Validation Accuracy with Epochs

Some prediction results are shown below

result-1

result-2

result-3

Confusion Matrix

Confusion_Matrix

Dataset

  1. EuroSAT dataset is open sourced.
  2. It consist of satellite images RGB and multi spectral - covering 13 spectral bands (including visible, newar infrared, shortwave infrared) with 10 unique classes.
  3. It consist of 27000 labeled and geo-referenced images.
  4. The dataset is published and benchmarked with CNN by a paper titled EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification and they have made dataset public through this repo.

The authors were able to sort out some common issues that come up with studying satellite data and were able to sort it out for land use and land cover classification.

  • Cloud appearence
  • Color casting due to atmospheric effects
  • Dead/pixels
  • Ice or snow
Band Evaluation

In order to evaluate the performance of deep CNNs in a multi spectral dataset using single-band images as well shortwave-infrared and color infrared band combinations, we used the pretrained wide ResNet-50 with a fixed training-test split to compare the performance of the different spectral bands. For evaluating single-band image they inserted the information from a single spectral band on all three input channels. Bands with a lower spatial resolution have been up sampled to 10 meters per pixel using cubic-spline interpolation.

Working

Here we use deep learning along with transfer learning to improve the accuracy and also make the training faster. We will work on Pytorch as the framework for our deep learning model.

We can get the dataset from here. Dataset is provided in both .tiff format and also image format. .tiff format can be used to extract other spectral information since they provided multi spectral data with 13 different spectrum, We use RGB because pretrained models are already trained in RGB images so we can take the image dataset and work on it.

We have to create the dataset class, transformations and dataloaders. We create a EuroSAT dataset class inherited from torch dataset library. Creating our own method to get data which takes the name of the file and taking it from each directory. We also add transforms as some data augmentation and preprocessing stepfor using it with the pretrained model. Then we create dataset and data loader for training and validation with the preferred batch_size, feel free to experiment with more transformation which might help you to improve accuracy.

For creating the model. We use transfer learning, here we use wide_resnet50_2 model as a pretrained model which is already trained on a huge image dataset. We change the classification layer of wide_resnet50_2 with some additional sequential layers for fine tuning. This added layer includes Linear layer(n_inputs, 256) => ReLU layer => Dropout Layer => Linear Layer (256, num_classes) => LogSoftmax layer In the model class we also include freeze and unfreeze function in order to select training the whole architecture or only the classification layer we added.

We trained the model for 10 epochs and save the best model based on the accuracy and losses.

Applications

Since the Sentinel-2 satellite constellation will scan the Earth's land surface for about the next 20–30 years on a repeat cycle of about five days, a trained classifier can be used for monitoring land surfaces and detect changes in land use or land cover. These land cover changes can be used for various studies and purposes. In future may be we can add a real time open sourced web network for everyone in the world to see how the world around them changes in years. Some changes that are understood in various years on the same place is shown below. This is also part of the paper.

Change Detection-1
Source

Change Detection-2
Source

Change Detection-3
Source

Challenges

There are lots of challenges while evaluating raw images from satellite for prediction which includes Cloud appearence, Color casting due to atmospheric effects, Dead/pixels, Ice or snow. More than that a classification system trained with 64x64 image patches does not allow a finely graduated per-pixel segmentation. Also when there is mixed elemets in the same image patches that can also lead to trouble.

Reference

EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification

@inproceedings{helber2018introducing, title={Introducing EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification}, author={Helber, Patrick and Bischke, Benjamin and Dengel, Andreas and Borth, Damian}, booktitle={IGARSS 2018-2018 IEEE International Geoscience and Remote Sensing Symposium}, pages={204--207}, year={2018}, organization={IEEE} }

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].