Deepak-Perla / Road-Detection-from-Satellite-Images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Road-Detetction-from-Satellite-Images

[object Object]

U-Net-Satellite

The aim of this project is road detection from satellite images using a variant of deep Convolutional Neural Networks which is known as U-Net. The output of the model is a segmentation mask which differentiates roads from other terrains.

Overview

Model

U-net is an encoder-decoder type network architecture for image segmentation. The name of the architecture comes from its unique shape, where the feature maps from convolution part in downsampling step are fed to the up-convolution part in up-sampling step. This model is a slight modification of original U-Net architecture. The details of the architecture can be clearly seen in the notebook as the output of the "model.summary()" cell.

Code

Data

This is a competition where they have given dataset to only participants so it is not officially released. Headover Acknowledgements

  • The training data for Road Challenge contains 6226 satellite imagery in RGB, size 1024x1024.
  • The imagery has 50cm pixel resolution, collected by DigitalGlobe's satellite.
  • The dataset contains 1243 validation and 1101 test images (but no masks).

Label

  • Each satellite image is paired with a mask image for road labels. The mask is a grayscale image, with white standing for road pixel, and black standing for background.
  • File names for satellite images and the corresponding mask image are id _sat.jpg and id _mask.png. id is a randomized integer.
  • Please note:
    • The values of the mask image may not be pure 0 and 255. When converting to labels, please binarize them at threshold 128.
    • The labels are not perfect due to the cost for annotating segmentation mask, specially in rural regions. In addition, we intentionally didn't annotate small roads within farmlands.

Training

The model was trained for 50 epochs and took about 4 hours on Kaggle GPU. After 50 epochs, the training Dice score and Jaccard index were 0.8918 and 0.9754. Corresponding validation metrics were 0.7533 and 0.9527. The training vs validation loss is shown below :

  • Val Accuracy

  • Val Loss

  • IoU

  • Binary Accuracy

Results

The following images show the comparison of the ground truth, and it's corresponding prediction:

References

Acknowledgements

This dataset was obtained from Road Extraction Challenge Track in DeepGlobe Challenge . For more details on the dataset refer the related publication - DeepGlobe 2018: A Challenge to Parse the Earth through Satellite Images

About


Languages

Language:Jupyter Notebook 100.0%