Live demo · Smart Irrigation

See the agent decide.

A Bayesian agent waters a simulated four-zone date-palm farm in Al-Ahsa, and keeps the palms out of water stress when a moisture sensor lies.

Explore freely ›

Live farm simulation

From day 6 to day 23, Zone 2’s sensor is stuck near 86% while its soil keeps drying.

PausedDay 1 · 00:00

Sensors and estimates agree within 10 points.

Al-Ahsa · four-zone date-palm farm31 °C · Drip irrigation
Water tank Pump+650 L supplied

Zone 1

Adequate soil
+0 LEnd 61%Doubt 0%

Zone 2

Adequate soil
+0 LEnd 53%Doubt 0%

Zone 3

Adequate soil
+0 LEnd 58%Doubt 0%

Zone 4

Adequate soil
+0 LEnd 56%Doubt 0%
Interval 1 / 120 Days 6–23

Synthetic simulationTeam coursework · CS3081 Artificial Intelligence · Effat UniversityEvery number is computed live in your browser by the project’s own seeded simulation. There is no hardware, no real farm and no field data. Moisture values are at the start of each six-hour interval; the end value is under each zone. True moisture is shown to you only. The controllers never see it. Shortcuts: P to play or pause, comma and full stop to step. The same seed always gives the same weather, noise and faults.

Fair comparison

Three controllers, the same 30 days.

False wet readingSeed 730 simulated days

Totals for each controller over the whole 30-day run, False wet reading, seed 7
ControllerWater delivered litres · read alongside stressPlant water stress zone-hours below threshold · lower is betterLimit violations executed
Fixed scheduleRegular watering times20,40000
Trust the sensorReading-based decisions16,5004080
Bayesian agentReasoning under uncertainty18,70000

What this run shows

Compared with trusting the sensor, the Bayesian agent has 408 fewer zone-hours of stress and uses 2,200 L more water.

These are computed results for one synthetic run, not field evidence. All three controllers see identical weather, noise and faults and share the same tank, pump and daily allowance, which makes the comparison fair. Zero violations reflect enforced limits, not a unique advantage. Under shortages, the project’s own 20-seed benchmark found the fixed schedule sometimes caused less stress than the agent.

How it works

How the agent decides.

  1. Evidence

    Observe the farm

    Every six hours the agent gets sensor readings, the weather, its previous watering and the water available. True moisture and the injected faults stay hidden from it.

  2. Bayesian reasoning

    Update the belief

    For each zone it keeps a probability over 11 moisture levels and two sensor states, normal or stuck wet. It predicts from the watering and expected drying, then weighs the new reading. Doubt about a sensor comes out of the maths; nobody tells it about the fault.

  3. Constrained search

    Choose a plan

    34 = 81 plans: 0, 100 or 200 L for each of the four zones. Plans beyond the tank, pump or daily allowance are rejected, and the rest are scored on expected stress, excess water and water used.

Synthetic simulation from a team coursework project: CS3081 Artificial Intelligence, Effat University, idea pitch of 5 October 2026. The farm and every parameter are illustrative; the project makes no field water-saving claim.

Back to the portfolio