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.
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.
Zone 2
Adequate soilZone 3
Adequate soilZone 4
Adequate soilSynthetic 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
| Controller | Water delivered litres · read alongside stress | Plant water stress zone-hours below threshold · lower is better | Limit violations executed |
|---|---|---|---|
| Fixed scheduleRegular watering times | 0 | ||
| Trust the sensorReading-based decisions | 0 | ||
| Bayesian agentReasoning under uncertainty | 0 |
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.
- 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.
- 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.
- 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