This repository features a flood detection project utilizing Sentinel-1 Synthetic Aperture Radar (SAR) images. The project aims to detect and analyze flood occurrences using SAR data for improved monitoring and early warning systems. The implementation includes a segmentation model for precise identification and delineation of flood-affected areas.
Ensure to download all the necessary files to the data
folder as indicated at the beginning of the data_preparation.ipynb
file.
This dataset comprises images collected by the Sentinel-1 Synthetic Aperture Radar (SAR) from various regions worldwide. The naming convention for Sentinel-1 images uses "vh" and "vv" to represent different polarizations of SAR data.
In the dataset, images are often converted to ratio and RGB formats for further analysis. A composite RGB image is generated using the following channels:
- Red: VV channel
- Green: VH channel
- Blue: VV/VH ratio
For model training purposes, additional images are provided for water body and flood labels. These labeled images are crucial for training machine learning models to accurately detect and analyze flood-related patterns.
A robust solution for flood prediction was developed by utilizing satellite images and employing the combination of a U-Net architecture with a ResNet encoder, implemented with the segmentation-models-pytorch
library.
Installation:
pip install segmentation-models-pytorch
Create model:
model = smp.Unet(encoder_name="resnet34", in_channels=3, classes=2, encoder_weights=None)