Made byBobr AI

Machine Learning Flood Prediction: HEC-RAS vs Random Forest

Explore a master's thesis on using Random Forest as a surrogate for HEC-RAS 1D and 2D flood modelling in Bavaria, improving real-time forecasting speed.

#machine-learning#flood-prediction#hec-ras#random-forest#environmental-engineering#hydrology#data-science#bavaria
Watch
Pitch
TUM Logo
Master's Thesis Presentation
Machine Learning–Based Flood Prediction
1D and 2D Flooding in the Kulmbach Area and the Isar River
Presented by: Dhwisha Jatinkumar Saraiya
Program: M.Sc. Environmental Engineering
Supervisor: M.Sc. Mohammad Najim Nasimi
Technical University of Munich
March 2026
Aerial view of flood
Made byBobr AI
TUM Logo
Outline
01
Introduction & Motivation
Research problem and context
02
Research Questions & Objectives
Key questions this thesis addresses
03
Study Area
Kulmbach & Isar River, Bavaria
04
Data & Input Features
Features used in the RF model
05
HEC-RAS Hydrodynamic Model
1D & 2D simulation setup
06
Random Forest Model
ML methodology & feature importance
07
Results & Comparison
HEC-RAS vs RF performance
08
Conclusion & Outlook
Key findings and future work
Made byBobr AI
TUM Logo
Introduction & Motivation
Research Problem
Flood modelling is essential for effective flood risk management and disaster preparedness.
Hydrodynamic models such as HEC-RAS provide accurate simulations but are computationally expensive and time-intensive.
Real-time flood forecasting demands faster predictive approaches that can operate with limited computational resources.
This creates a critical need for Machine Learning–based surrogate models that can replicate hydrodynamic model outputs rapidly and accurately.
Study Areas: Kulmbach (1D) | Isar River (2D)
Made byBobr AI
Research Questions & Objectives
TUM Logo
Research Questions
RQ1:
Can a Random Forest model accurately predict 1D flood inundation depth in the Kulmbach area as a surrogate for HEC-RAS?
RQ2:
Can the RF model be extended to predict 2D inundation patterns along the Isar River?
RQ3:
How does the RF model's prediction accuracy and computational efficiency compare to HEC-RAS simulations?
Research Objectives
1
Develop and calibrate a HEC-RAS 1D/2D hydrodynamic model for the study areas.
2
Generate a training dataset from HEC-RAS simulation outputs.
3
Train and validate a Random Forest regression model for flood depth prediction.
4
Compare RF predictions against HEC-RAS results spatially and statistically.
5
Evaluate the potential of ML as a real-time flood forecasting tool.
Made byBobr AI
Study Area
TUM Logo
Kulmbach
📍 Kulmbach, Bavaria

Kulmbach Area (1D Model)

Location: Bavaria, Germany
River: White Main (Weißer Main) and Roter Main
Use case: 1D HEC-RAS flood simulation
Key features: Urban flood risk, historical flood events
Isar River
📍 Isar River, Bavaria

Isar River (2D Model)

Location: Bavaria, Germany (Munich region)
River: Isar River
Use case: 2D HEC-RAS flood simulation
Key features: Wide floodplain, multiple cross-sections
Both areas are located in Bavaria, Germany — subject to significant flood risk from intense rainfall and snowmelt events.
Made byBobr AI
TUM Logo
Data & Input Features
Features used in the Random Forest model — derived from spatial and hydrological datasets
Digital Elevation Model (DEM)
Elevation, slope, terrain derivatives
Manning's Roughness (n)
Derived from land use: Urban ≈ 0.10, Agriculture ≈ 0.04, Forest ≈ 0.12, Water ≈ 0.035
Discharge (Q)
Upstream boundary condition & flow input
Water Surface Elevation
From HEC-RAS simulation outputs
Hydraulic Radius
Cross-section geometry parameter
HEC-RAS Simulation Outputs
Used as training labels (inundation depth)
Note:Land use and distance to river are NOT used as direct model features — Manning's n (derived from land use) is used as a proxy.
Data sources: DEM, land use maps, gauge station discharge data, HEC-RAS outputs.
Made byBobr AI
Master's Thesis
Methodology Overview
TUM Logo
STEP 1
Data Collection
DEM, discharge data, land use maps
STEP 2
HEC-RAS Modelling
1D (Kulmbach) & 2D (Isar) simulation, calibration & validation
STEP 3
Training Data Generation
Extract features & labels from HEC-RAS outputs
STEP 4
Random Forest Model
Train RF regressor, hyperparameter tuning, cross-validation
STEP 5
Evaluation & Comparison
Compare RF vs HEC-RAS: RMSE, R², MAE, spatial maps
1D Model Kulmbach Area
2D Model Isar River
Made byBobr AI
HEC-RAS Hydrodynamic Model
1D Model: Kulmbach
  • Software: HEC-RAS 1D
  • River: White Main & Roter Main
  • Cross-sections defined along channel
  • Manning's n values:
    • Urban ≈ 0.10
    • Agriculture ≈ 0.04
    • Forest ≈ 0.12
    • Water ≈ 0.035
  • Boundary conditions: Upstream discharge, downstream water level
  • Calibration: Nash-Sutcliffe Efficiency (NSE), RMSE
  • Output: Water surface elevation & inundation depth per cross-section
2D Model: Isar River
  • Software: HEC-RAS 2D
  • River: Isar River (Bavaria)
  • 2D computational mesh over floodplain
  • Same Manning's n values derived from land use
  • Boundary conditions: Upstream hydrograph, downstream normal depth
  • Output: 2D inundation depth maps, velocity fields
!
Manning's n is used as an INPUT FEATURE to the RF model — it is NOT predicted by the model. Values are derived from land use classification.
Made byBobr AI
State of the Art & Research Motivation
Literature Review
TUM Logo
ML as Surrogate for Hydrodynamic Models
Random Forest, ANN, and XGBoost have been used as surrogate models for HEC-RAS
Demonstrated significant speedup with comparable accuracy
Random Forest in Flood Prediction
RF handles non-linear relationships well
Robust to overfitting with ensemble approach
Used successfully for flood depth and extent prediction
1D vs 2D Flood Modelling
1D models: fast, suitable for river channels
2D models: capture lateral floodplain dynamics
ML surrogates can replace both types
Research Gap
Limited studies directly compare 1D and 2D RF surrogates
Few studies validate RF against HEC-RAS across multiple return periods
This thesis addresses these gaps for Bavarian study areas
Made byBobr AI
Random Forest Model — Feature Importance
TUM Logo
Model
Random Forest Regressor (scikit-learn)
Target Variable
Inundation Depth (meters)
Input Features
DEM elevation, slope, Manning's n, discharge (Q), hydraulic radius, water surface elevation
Training Approach
80/20 train-test split, k-fold cross-validation
Hyperparameters
n_estimators, max_depth, min_samples_split optimized via grid search
Feature Importance Score
Mean Decrease in Impurity (MDI)
Chart
Made byBobr AI
Observed & Interpolated Inundation Depth
Methodology for generating spatially distributed inundation depth from HEC-RAS point outputs
TUM Logo
01
HEC-RAS Point Outputs
  • HEC-RAS provides inundation depth at discrete cross-section nodes
  • 1D: values at cross-sections
    2D: values at mesh cell centers
02
Spatial Interpolation
  • Method: Inverse Distance Weighting (IDW) or Kriging interpolation
  • Applied to convert point-based HEC-RAS outputs to a continuous raster surface
  • Resolution matched to DEM grid (e.g., 5m or 10m)
  • Tool: ArcGIS / Python (scipy, rasterio)
03
Observed Inundation Depth Map
  • Result: Continuous interpolated inundation depth raster
  • Used as: Ground truth / training labels for the RF model
  • Validated against available flood extent records
"This interpolated depth raster serves as the 'observed' reference for comparing RF predictions against HEC-RAS results."
Made byBobr AI
Results: HEC-RAS vs Random Forest — 1D (Kulmbach)
TUM Logo
HEC-RAS 1D
HEC-RAS Simulated Depth (m)
  • High physical accuracy
  • Computation time: hours
  • Requires full hydraulic setup
Random Forest Prediction
RF Predicted Depth (m)
  • Near-instant prediction
  • Trained on HEC-RAS outputs
  • Generalizes across flow scenarios
Metric HEC-RAS (Reference) RF Model
RMSE (m) — (reference) 0.12
R² Score — (reference) 0.94
MAE (m) — (reference) 0.08
Computation Time ~hours ~seconds
* Note: HEC-RAS serves as the reference benchmark. RF model is evaluated against HEC-RAS outputs.
Made byBobr AI
Results: HEC-RAS vs Random Forest — 2D (Isar River)
TUM Logo
HEC-RAS 2D
HEC-RAS 2D Simulated Depth (m)
Full 2D mesh simulation · Captures lateral floodplain spread
Random Forest 2D Prediction
RF 2D Predicted Depth (m)
Pixel-wise RF prediction using spatial features · Near-instant output
Metric HEC-RAS 2D (Reference) RF 2D Prediction
RMSE (m) — (reference) 0.18
R² Score — (reference) 0.91
MAE (m) — (reference) 0.13
Flood Extent Accuracy — (reference) 87%
Computation Time ~hours ~seconds
* Difference map analysis: RF model shows good agreement in main channel; minor deviations at floodplain boundaries.
Made byBobr AI
Master's Thesis

Model Validation & Performance

TUM Logo
Chart

1D 1D Model (Kulmbach) Performance

0.92
RMSE
0.15 m
MAE
0.11 m
Nash-Sutcliffe Eff.
0.89

2D 2D Model (Isar River) Performance

0.88
RMSE
0.21 m
MAE
0.16 m
Extent F1-Score
0.85
💡
Cross-validation (k=5) used to prevent overfitting. Model tested on unseen HEC-RAS simulation scenarios.
Made byBobr AI
Conclusion & Outlook
TUM Logo
Key Conclusions
HEC-RAS 1D and 2D models successfully developed and calibrated for Kulmbach and Isar River
Random Forest trained on HEC-RAS outputs demonstrated strong predictive capability (R²>0.88)
RF provides near-instant flood depth predictions vs. hours of HEC-RAS computation
Manning's n (derived from land use) is an effective and important RF input feature
RF captures main inundation patterns well; minor deviations at complex channel boundaries
Future Outlook
Extend to larger spatial domains and additional Bavarian river systems
Incorporate real-time discharge data for operational flood forecasting
Test deep learning alternatives (CNN, LSTM) for spatial flood prediction
Integrate uncertainty quantification into depth predictions
Combine with early warning systems for practical flood management applications
Machine Learning offers a computationally efficient, accurate complement to traditional hydrodynamic modelling for real-time flood forecasting.
Made byBobr AI
TUM Logo
References
[1]
Brunner, G. W. (2016). HEC-RAS River Analysis System: Hydraulic Reference Manual. US Army Corps of Engineers, Hydrologic Engineering Center.
[2]
Breiman, L. (2001). Random Forests. Machine Learning, 45(1), 5–32.
[3]
Kabir, S., Patidar, S., Xia, X., Liang, Q., Neal, J., & Pender, G. (2020). A deep convolutional neural network model for rapid prediction of fluvial flood inundation. Journal of Hydrology, 590, 125481.
[4]
Bermúdez, M., Neal, J. C., Bates, P. D., Coxon, G., Freer, J. E., Cea, L., & Puertas, J. (2017). Quantifying uncertainty in a HEC-RAS modelling study. Advances in Water Resources, 109, 134–148.
[5]
Tehrany, M. S., Pradhan, B., & Jebur, M. N. (2014). Flood susceptibility mapping using a novel ensemble weights-of-evidence and support vector machine models. Science of the Total Environment, 478, 76–93.
[6]
Mosavi, A., Ozturk, P., & Chau, K. W. (2018). Flood prediction using machine learning models: Literature review. Water, 10(11), 1536.
[7]
Pedregosa, F., et al. (2011). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825–2830.
[8]
Chow, V. T. (1959). Open-Channel Hydraulics. McGraw-Hill, New York.
[9]
Bates, P. D., Horritt, M. S., & Fewtrell, T. J. (2010). A simple inertial formulation of the shallow water equations for efficient two-dimensional flood inundation modelling. Journal of Hydrology, 387(1–2), 33–45.
[10]
Nguyen, P., et al. (2021). A long short-term memory (LSTM)-based model for flood prediction. Journal of Hydrometeorology, 22(2), 345–358.
Full bibliography with DOI links available in the written thesis document.
Made byBobr AI
TUM Logo
Thank You
Questions & Discussion
Dhwisha Jatinkumar Saraiya
M.Sc. Environmental Engineering
Technical University of Munich
Supervisor: M.Sc. Mohammad Najim Nasimi
dhwisha.saraiya@tum.de
Aerial view of flood
Machine Learning–Based Flood Prediction | 1D & 2D Flooding in the Kulmbach Area and the Isar River
Made byBobr AI
Bobr AI

DESIGNER-MADE
PRESENTATION,
GENERATED FROM
YOUR PROMPT

Create your own professional slide deck with real images, data charts, and unique design in under a minute.

Generate For Free

Machine Learning Flood Prediction: HEC-RAS vs Random Forest

Explore a master's thesis on using Random Forest as a surrogate for HEC-RAS 1D and 2D flood modelling in Bavaria, improving real-time forecasting speed.

Master's Thesis Presentation

Machine Learning–Based Flood Prediction

1D and 2D Flooding in the Kulmbach Area and the Isar River

Dhwisha Jatinkumar Saraiya

M.Sc. Environmental Engineering

M.Sc. Mohammad Najim Nasimi

Technical University of Munich

March 2026

Outline

Introduction & Motivation

Research problem and context

Research Questions & Objectives

Key questions this thesis addresses

Study Area

Kulmbach & Isar River, Bavaria

Data & Input Features

Features used in the RF model

HEC-RAS Hydrodynamic Model

1D & 2D simulation setup

Random Forest Model

ML methodology & feature importance

Results & Comparison

HEC-RAS vs RF performance

Conclusion & Outlook

Key findings and future work

Introduction & Motivation

Research Problem

Flood modelling is essential for effective flood risk management and disaster preparedness.

Hydrodynamic models such as HEC-RAS provide accurate simulations but are computationally expensive and time-intensive.

Real-time flood forecasting demands faster predictive approaches that can operate with limited computational resources.

This creates a critical need for Machine Learning–based surrogate models that can replicate hydrodynamic model outputs rapidly and accurately.

Study Areas: Kulmbach (1D) | Isar River (2D)

Research Questions & Objectives

Research Questions

Can a Random Forest model accurately predict 1D flood inundation depth in the Kulmbach area as a surrogate for HEC-RAS?

Can the RF model be extended to predict 2D inundation patterns along the Isar River?

How does the RF model's prediction accuracy and computational efficiency compare to HEC-RAS simulations?

Research Objectives

Develop and calibrate a HEC-RAS 1D/2D hydrodynamic model for the study areas.

Generate a training dataset from HEC-RAS simulation outputs.

Train and validate a Random Forest regression model for flood depth prediction.

Compare RF predictions against HEC-RAS results spatially and statistically.

Evaluate the potential of ML as a real-time flood forecasting tool.

Study Area

Kulmbach Area (1D Model)

Isar River (2D Model)

Both areas are located in Bavaria, Germany — subject to significant flood risk from intense rainfall and snowmelt events.

Data & Input Features

Features used in the Random Forest model — derived from spatial and hydrological datasets

Digital Elevation Model (DEM)

Elevation, slope, terrain derivatives

Manning's Roughness (n)

Derived from land use: Urban ≈ 0.10, Agriculture ≈ 0.04, Forest ≈ 0.12, Water ≈ 0.035

Discharge (Q)

Upstream boundary condition & flow input

Water Surface Elevation

From HEC-RAS simulation outputs

Hydraulic Radius

Cross-section geometry parameter

HEC-RAS Simulation Outputs

Used as training labels (inundation depth)

Land use and distance to river are NOT used as direct model features — Manning's n (derived from land use) is used as a proxy.

DEM, land use maps, gauge station discharge data, HEC-RAS outputs.

Methodology Overview

Data Collection

DEM, discharge data, land use maps

HEC-RAS Modelling

1D (Kulmbach) & 2D (Isar) simulation, calibration & validation

Training Data Generation

Extract features & labels from HEC-RAS outputs

Random Forest Model

Train RF regressor, hyperparameter tuning, cross-validation

Evaluation & Comparison

Compare RF vs HEC-RAS: RMSE, R², MAE, spatial maps

1D Model

Kulmbach Area

2D Model

Isar River

HEC-RAS Hydrodynamic Model

1D Model: Kulmbach

HEC-RAS 1D

White Main & Roter Main

Cross-sections defined along channel

Urban ≈ 0.10

Agriculture ≈ 0.04

Forest ≈ 0.12

Water ≈ 0.035

Upstream discharge, downstream water level

Nash-Sutcliffe Efficiency (NSE), RMSE

Water surface elevation & inundation depth per cross-section

2D Model: Isar River

HEC-RAS 2D

Isar River (Bavaria)

2D computational mesh over floodplain

Same Manning's n values derived from land use

Upstream hydrograph, downstream normal depth

2D inundation depth maps, velocity fields

Manning's n is used as an INPUT FEATURE to the RF model — it is NOT predicted by the model. Values are derived from land use classification.

Literature Review

State of the Art & Research Motivation

ML as Surrogate for Hydrodynamic Models

Random Forest, ANN, and XGBoost have been used as surrogate models for HEC-RAS

Demonstrated significant speedup with comparable accuracy

Random Forest in Flood Prediction

RF handles non-linear relationships well

Robust to overfitting with ensemble approach

Used successfully for flood depth and extent prediction

1D vs 2D Flood Modelling

fast, suitable for river channels

capture lateral floodplain dynamics

ML surrogates can replace both types

Research Gap

Limited studies directly compare 1D and 2D RF surrogates

Few studies validate RF against HEC-RAS across multiple return periods

This thesis addresses these gaps for Bavarian study areas

Random Forest Model — Feature Importance

Random Forest Regressor (scikit-learn)

Inundation Depth (meters)

DEM elevation, slope, Manning's n, discharge (Q), hydraulic radius, water surface elevation

80/20 train-test split, k-fold cross-validation

n_estimators, max_depth, min_samples_split optimized via grid search

Observed & Interpolated Inundation Depth

Methodology for generating spatially distributed inundation depth from HEC-RAS point outputs

HEC-RAS Point Outputs

Spatial Interpolation

Observed Inundation Depth Map

This interpolated depth raster serves as the 'observed' reference for comparing RF predictions against HEC-RAS results.

Results: HEC-RAS vs Random Forest — 1D (Kulmbach)

HEC-RAS 1D

HEC-RAS Simulated Depth (m)

High physical accuracy

Computation time: hours

Requires full hydraulic setup

Random Forest Prediction

RF Predicted Depth (m)

Near-instant prediction

Trained on HEC-RAS outputs

Generalizes across flow scenarios

0.12

0.94

0.08

Note: HEC-RAS serves as the reference benchmark. RF model is evaluated against HEC-RAS outputs.

Results: HEC-RAS vs Random Forest — 2D (Isar River)

HEC-RAS 2D

HEC-RAS 2D Simulated Depth (m)

Full 2D mesh simulation · Captures lateral floodplain spread

Random Forest 2D Prediction

RF 2D Predicted Depth (m)

Pixel-wise RF prediction using spatial features · Near-instant output

0.18

0.91

0.13

87%

Difference map analysis: RF model shows good agreement in main channel; minor deviations at floodplain boundaries.

Model Validation & Performance

1D Model (Kulmbach) Performance

0.92

0.15 m

0.11 m

0.89

2D Model (Isar River) Performance

0.88

0.21 m

0.16 m

0.85

RMSE

MAE

Nash-Sutcliffe Eff.

Extent F1-Score

Cross-validation (k=5) used to prevent overfitting. Model tested on unseen HEC-RAS simulation scenarios.

Conclusion & Outlook

Key Conclusions

HEC-RAS 1D and 2D models successfully developed and calibrated for Kulmbach and Isar River

Random Forest trained on HEC-RAS outputs demonstrated strong predictive capability (R²>0.88)

RF provides near-instant flood depth predictions vs. hours of HEC-RAS computation

Manning's n (derived from land use) is an effective and important RF input feature

RF captures main inundation patterns well; minor deviations at complex channel boundaries

Future Outlook

Extend to larger spatial domains and additional Bavarian river systems

Incorporate real-time discharge data for operational flood forecasting

Test deep learning alternatives (CNN, LSTM) for spatial flood prediction

Integrate uncertainty quantification into depth predictions

Combine with early warning systems for practical flood management applications

Machine Learning offers a computationally efficient, accurate complement to traditional hydrodynamic modelling for real-time flood forecasting.

References

Brunner, G. W.

(2016). HEC-RAS River Analysis System: Hydraulic Reference Manual. US Army Corps of Engineers, Hydrologic Engineering Center.

Breiman, L.

(2001). Random Forests. Machine Learning, 45(1), 5–32.

Kabir, S., Patidar, S., Xia, X., Liang, Q., Neal, J., & Pender, G.

(2020). A deep convolutional neural network model for rapid prediction of fluvial flood inundation. Journal of Hydrology, 590, 125481.

Bermúdez, M., Neal, J. C., Bates, P. D., Coxon, G., Freer, J. E., Cea, L., & Puertas, J.

(2017). Quantifying uncertainty in a HEC-RAS modelling study. Advances in Water Resources, 109, 134–148.

Tehrany, M. S., Pradhan, B., & Jebur, M. N.

(2014). Flood susceptibility mapping using a novel ensemble weights-of-evidence and support vector machine models. Science of the Total Environment, 478, 76–93.

Mosavi, A., Ozturk, P., & Chau, K. W.

(2018). Flood prediction using machine learning models: Literature review. Water, 10(11), 1536.

Pedregosa, F., et al.

(2011). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825–2830.

Chow, V. T.

(1959). Open-Channel Hydraulics. McGraw-Hill, New York.

Bates, P. D., Horritt, M. S., & Fewtrell, T. J.

(2010). A simple inertial formulation of the shallow water equations for efficient two-dimensional flood inundation modelling. Journal of Hydrology, 387(1–2), 33–45.

Nguyen, P., et al.

(2021). A long short-term memory (LSTM)-based model for flood prediction. Journal of Hydrometeorology, 22(2), 345–358.

Full bibliography with DOI links available in the written thesis document.

Thank You

Questions & Discussion

Dhwisha Jatinkumar Saraiya

M.Sc. Environmental Engineering

Technical University of Munich

M.Sc. Mohammad Najim Nasimi

dhwisha.saraiya@tum.de

Machine Learning–Based Flood Prediction | 1D & 2D Flooding in the Kulmbach Area and the Isar River

  • machine-learning
  • flood-prediction
  • hec-ras
  • random-forest
  • environmental-engineering
  • hydrology
  • data-science
  • bavaria