Giter Site home page Giter Site logo

daniel-li01 / rapid_floodmodelling_cnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srkabir/rapid_floodmodelling_cnn

0.0 0.0 0.0 2.42 MB

A deep convolutional neural network model for rapid prediction of fluvial flood inundation

Python 33.18% PLSQL 66.82%

rapid_floodmodelling_cnn's Introduction

This is an implementation of Convolutional Neural Network-based rapid fluvial flood modelling system.

This implemention trains on the outputs of a 2D hydraulic model (LISFLOOD-FP). LSIFLOOD-FP is a Bristol University software for inundaiton modelling and can be used freely for research purposes.

To acquire this software please consult http://www.bristol.ac.uk/geography/research/hydrology/models/lisflood/

Once you have the software, you would need to execute it for different boundary conditions.

The supporting LISFLOOD-FP files (.asc, .par, .bci, .bdy files are provided in the 'Data' folder)

Example

place all LISFLOOD-FP software files and Carlisle_5m.asc, Carlisle.bci, Carlisle_run1.bdy, Carlisle_run1.par files in the same directory. cd to the folder from command prompt/terminal.

Then run the executable file, e.g.,

lisfloodRelease_double_v631.exe -v Carlisle_run1.par

Run this for all .par files for generating training and testing data.

Outputs from Run2 to Run9 should be placed in the /../Target directory. These are the outputs from synthetic hydrographs and used for training. and output files from Run1 should be placed in the /../Run1 directory. These are the outputs of 2005 event and used for testing model performance.

Training the CNN model

To make sure you have the same libraries please clone/download the repo and 'cd' to directory run the following command:

conda env create -f environment.yml

and check that the new environment is available and activate it:

conda info --envs

conda activate bad_env

You may have to change some of the directory paths in the python files to find the training and target data and output file locations.

All required CNN functions are in the 'InunMod_v1.py' file.

In the bottom of the script, example is provided.

Essentially that is the only file required for all CNN operations, e.g., data preprocessing, training, predictions etc. Hyperparameter optimisation, input feature importance, plotting, and Support Vector Regression model scripts are also provided

Please note, currently the codes are not optimized. Therefore, you would need to change the directory names and files. However, necessary comments are provided for understanding the codes.

The codes are constantly updated to help our current research and we intend to release a stable version in the future.

Please contact syed.rezwan.kabir@gmail for any issues.

rapid_floodmodelling_cnn's People

Contributors

srkabir 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.