GithubHelp home page GithubHelp logo

geohazard-detection's Introduction

landslide4sense-rf

Made a try on the Landslide4Sense machine learning challenge using a Random Forest Classifier.

About Landslide4Sense

The Landslide4Sense challenge was a challenge hosted by IARAI (Institute of Advanced Research in Artificial Intelligence) 2022. In short they provided 3799 training images labelled with landslide presence/absence. Each image consists of 128x128 pixels with 14 bands, the first 12 bands are from the Sentinel-2 Satellite, the 13th are Slope from ALOS PALSAR and the 14th DEM (Digital Elevation Model) from ALOS PALSAR.

The aim of the challenge was to identify areas where landslides have occurred using machine learning on Satellite imagery which are open and frequently updated. You can read more about it at the challenge page.

Read and process the Landslide4Sense training images

The read_and_process_images.ipynb reads the 3799 downloaded Landslide4Sense training images and their corresponding labels, calculates indexes such as NDVI, NDMI... and outputs .npy files. The shell of this script have been borrowed by iamtekson@GitHub and modified to fit my needs.

Random Forest Classifier

The RF_classifier.ipynb:

  • reads the .npy files,
  • fits the model,
  • evaluate feature importance,
  • outputs an example image:
    • ground truth,
    • predicted output,
    • the most important features

Example output:

Image showing most important spectral bands, the ground truth and predicted image.

Feature importance:

Image showing the feature importance.

Classification report:

precision recall f1-score support
0.0 0.99 0.99 0.99 15189027
1.0 0.67 0.67 0.67 375773
accuracy 0.98 15564800
macro avg 0.83 0.83 0.83 15564800
weighted avg 0.98 0.98 0.98 15564800

geohazard-detection's People

Contributors

roopesh259 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.