Back to projects

Project 04 · Machine learning · Conference abstract, ICDS 2025

Random Forest-Driven Spatial Downscaling of Actual Evapotranspiration Leveraging Google Earth Engine for Advanced Water Resource Management

From 100 m WaPOR to 20 m ETa, anywhere on Earth

A cloud-native Google Earth Engine framework that downscales FAO WaPOR actual evapotranspiration from 100 m to 20 m with a random forest, bias-corrects the result against WaPOR and delivers it through a Gradio interface, piloted in Sri Lanka's Malwathu Oya basin.

Google Earth EngineRandom forestFAO WaPORSentinel-2PythonGradio

Why I built it

Accurate, high-resolution actual evapotranspiration (ETa) is central to precision agriculture and water allocation. FAO WaPOR offers valuable regional ETa at 100 m, but at that resolution a single pixel blends fields, canals and homesteads, and the 20 m WaPOR L3 product covers less than 1% of the globe.

I designed a machine-learning framework that turns 100 m WaPOR into high-fidelity 20 m ETa with global applicability. A random forest, trained entirely in Google Earth Engine on Sentinel-2, terrain and land-cover predictors, predicts 20 m ETa, which is then bias-corrected against WaPOR so it stays consistent with the regional water balance. I piloted it in Sri Lanka's Malwathu Oya basin, a region vulnerable to water scarcity, extreme weather and inefficient agricultural water use.

Conference presentation · ICDS 2025

Presented at the 3rd International Conference in Data Science (ICDS 2025)

This work was presented as an abstract at ICDS 2025, held on 25–26 November 2025 at the University of Colombo, Sri Lanka, with co-authors T. Kothalawala, K. Matheswaran and Z. Kiala.

  • University of Colombo, Sri Lanka
  • 25–26 November 2025
  • Abstract presentation
View certificate

The problem

Field-scale ETa barely exists

  • WaPOR L2 at 100 m captures regional patterns, but it is too coarse for field-level irrigation decisions.
  • Native 20 m WaPOR L3 is available for less than 1% of the globe, so most basins have no field-scale ETa at all.
  • A finer map is only useful for hydrology if it still honours the water balance of the product it came from.
  • Advanced geospatial workflows usually need code and Earth Engine expertise that water managers rarely have.
  • Resolution gap

    100 m pixels mix crops, canals and settlements.

  • Coverage gap

    20 m WaPOR L3 covers under 1% of the globe.

  • Water balance

    Downscaled ETa must agree with the 100 m benchmark.

  • Access

    Users need results, not Earth Engine scripts.

Built with

Technologies, services and libraries

  • Google Earth Engine
  • Python
  • Gradio
  • Random forest
  • FAO WaPOR
  • Sentinel-2

The solution

20 m ETa, globally

Any area with Sentinel-2 and WaPOR L2 coverage can be downscaled, not only the few regions with native 20 m data.

Adaptive training

Trains on 20 m WaPOR L3 where it exists and falls back to 100 m WaPOR L2 everywhere else.

No-code Gradio app

The full Earth Engine workflow runs behind a simple Gradio interface, so non-programmers can generate 20 m ETa.

Inputs

Predictors on one 20 m grid

WaPOR is both the training target and the benchmark for bias correction. Sentinel-2, terrain and land cover supply the fine-scale spatial detail. Hover over a row to see where its native resolution sits.

  • WaPOR L2 ETaFAO WaPOR100 mDefault training target, upsampled predictor and bias-correction benchmark
  • WaPOR L3 ETaFAO WaPOR20 mTraining target where available
  • Reflectance and indicesSentinel-2 monthly composites10–20 mMain spectral predictors
  • Elevation, slope, aspectDigital elevation model30 mTopographic predictors
  • Land coverLand-cover map, one-hot encoded10 mOne binary layer per class

The resolution scale is logarithmic, from 5 m (left) to 10 km (right). Every input is brought onto the 30 m grid.

Methodology

The framework at a glance

Methodology of the random forest ETa downscaling framework: predictors, adaptive training, bias correction and delivery.
Methodology of the random forest ETa downscaling framework: predictors, adaptive training, bias correction and delivery. Click to open full size.

Accuracy

Model performance

Evaluated in the Malwathu Oya basin, the random forest reproduces the spatial variability of ETa with strong skill before bias correction.

  • R²

    0.72

    Share of ETa variance explained

  • RMSE

    31 mm

    Root mean square error

  • MAE

    23 mm

    Mean absolute error

Final output

Predicted 20 m ETa against WaPOR

In the Malwathu Oya basin, the 20 m prediction picks out the same wet and dry patterns as native 20 m WaPOR, with far more detail than the 100 m product it was trained from.

Malwathu Oya basin: base map, the random forest's predicted 20 m ETa, native WaPOR 20 m and WaPOR 100 m, on one ETa scale (50–120 mm/month).
Malwathu Oya basin: base map, the random forest's predicted 20 m ETa, native WaPOR 20 m and WaPOR 100 m, on one ETa scale (50–120 mm/month). Click to open full size.
Spatial comparison: predicted ETa against WaPOR ETa (mm/month), with the 1:1 line in red. R² = 0.72.
Spatial comparison: predicted ETa against WaPOR ETa (mm/month), with the 1:1 line in red. R² = 0.72. Click to open full size.

Design decision

Local or aggregate bias correction?

Even a skilful random forest does not exactly reproduce the 100 m WaPOR totals, so every 20 m prediction is bias-corrected against the benchmark. I built two modes rather than forcing one choice.

Local correction adjusts each pixel against its neighbourhood, preserving fine-scale detail for precision agriculture. Aggregate correction is mass-conserving: the 20 m pixels inside each 100 m cell average exactly to the WaPOR value, which is what hydrological models and water accounting need.