How This System Works โ Explained Simply
No jargon. No math. Just a clear explanation of what the Engineer view, the ML models, and all those numbers actually mean โ written for a regular person.
What is this system?
This is a computational prototype for predicting reconstructed historical irrigation behaviour. That target is not a measurement of crop water need, and the project has no field trial or farmer-impact measurements.
- Public and synthetic records are used to test software; no project-run farm sensors were deployed.
- An ESP32 node and optional Raspberry Pi gateway are proposed, not physically benchmarked.
- The current model predicts reconstructed future valve behaviour, not an agronomically approved 'water now' decision.
- Offline fallback is part of the software contract; real-device reliability has not been measured.
How does it work, step by step?
This is a research software pipeline, not a validated automatic irrigation controller. Its evidence boundary matters at every step:
- The audited public sources contain different sensor streams and sampling intervals; the project has no project-run farm sensors.
- Causal features are constructed from available history. Missing values are left visible and imputed within training folds; unknown target horizons are excluded.
- In the research study, a model predicts whether the source's reconstructed historical irrigation behaviour will occur in the next window. This is not a diagnosis of crop water need or an approved farm recommendation.
- Applied-volume prediction is shown only for eligible targets and must be read with its evidence badge. Actuator-derived values are reconstructed, not direct flow-meter observations.
- A future field loop would require calibrated sensors, measured flow, manual override, and independent evaluation before any retraining or improvement claim.
The ML models โ explained simply
The research compares candidate models and baselines; validation selects a candidate, and locked-test results determine whether added complexity is justified:
A moisture threshold selected using training observations. For the Mendeley source, publisher sector thresholds are also shown only as reconstruction-rule checks.
Why it's here: A source-appropriate comparator matters; beating a single global threshold is not proof of agronomic benefit.
The simplest AI โ draws a line between 'water' and 'wait'. Fast, tiny, and easy to understand.
Why it's here: It's the 'is AI even needed?' check. If this simple model works great, that's a useful finding.
Fits an ensemble of decision trees. Its performance and calibration must be measured on the task-specific locked test; the algorithm is not inherently reliable.
Why it's here: It is one candidate among several; the generated validation/test artifacts decide whether it earns its place over the threshold baseline.
An additive tree-boosting method. Its speed, accuracy, and size are data- and hardware-dependent; it is reported only if installed in the recorded run.
Why it's here: It is evaluated where available; edge speed and memory remain unmeasured until hardware testing.
The numbers on the Engineer page โ decoded
The Engineer view shows a lot of technical numbers. Here's what each one really means:
Overall quality score (0โ1), such as macro-F1, balances both 'water' and 'wait' decisions; inspect generated metrics and class-specific errors rather than treating it as a field success rate.
Among positive predictions, the fraction matching the source label. It does not measure how often watering was needed or wasted.
Among positive source labels, the fraction identified by the model. Positives here are reconstructed or simulated behaviour, not confirmed crop need.
Elapsed time for a named model and runtime to produce a prediction. No ESP32 or Raspberry Pi latency has been measured; host timing cannot substitute for device benchmarking.
Runtime RAM and firmware flash measured on a specific device. A serialized host model-file size alone does not show that a model fits on a microcontroller.
A model-specific ranking of input contribution, not causality or proof of crop need. Use the generated run artifact; no fixed percentage here is a project result.
A 2-by-2 table of true positives, true negatives, false positives, and false negatives. Read the locked-test counts from the generated artifact; a positive here means reconstructed future actuator behaviour, not independently verified crop need.
Edge deployment โ running on cheap hardware
Edge inference is a proposed design goal: processing could run near the sensors instead of relying on continuous cloud access. This project has not benchmarked an ESP32 or Raspberry Pi in the field.
- Target architecture: ESP32 field nodes with an optional Raspberry Pi gateway; component fit and local prices need verification.
- A serialized host model is not firmware evidence. Export format, flash/RAM use, and inference time must be measured on each target board.
- Quantization is a possible optimization, not a completed or validated step in this study.
- The software contract has a fallback path; valve-safe behavior and physical sensor failure handling remain untested.
Why this matters
Agriculture uses more freshwater than any other sector. Most small farmers water on a fixed schedule โ too much when it rains, too little during heat waves. This wastes water and stresses crops.
- Precision irrigation may reduce water use while maintaining yield, but this project does not claim either outcome without a field trial.
- Low-cost, offline, edge-based AI is a design goal; affordability, reliability, and farmer fit remain to be measured with partners.
- The system is honest: it's compared against a simple baseline, and if the AI can't beat it, the project says so.
๐ Quick Glossary โ Every Term, Plainly
Look up any technical word you see on the Engineer or Research pages.
A sensor-specific signal related to soil water. A percentage is not automatically calibrated volumetric water content; calibration depends on sensor, soil, installation, and measurement range.
A small device stuck in the ground or nearby that measures things like soil moisture, temperature, humidity, and rainfall. It's the 'eyes' of the system.
A computer program that learns patterns from past data. Instead of being told 'if X then Y', it studies thousands of examples and figures out the rules on its own.
An ensemble of decision trees that combines their predictions. It can model nonlinear patterns but can still overfit, be miscalibrated, or fail on a new site; measure it against task-appropriate baselines.
A gradient-boosted tree method that builds trees sequentially. It is not inherently faster, smaller, or more accurate than Random Forest; this project reports it only when installed in the recorded run.
A linear probabilistic classifier. It is one candidate here; a moisture-threshold rule and prior-decision persistence are separate timing baselines.
A simple comparator. Timing uses a moisture threshold and prior-decision persistence; volume uses zero and a train-only median. Beating a baseline on reconstructed labels still would not prove agronomic benefit.
A measured or derived input used by a model. Public-data models exclude planting-date and crop-stage proxies when those values were not observed.
A model- and method-dependent summary of input contribution. It is not causal evidence and does not show that a feature measures crop-water need.
We show the model most of the data to learn from (training), then test it on data it has never seen (testing). This checks generalization within the evaluated data; it does not prove field impact.
A special way of splitting data by time โ the model trains on the past and is tested on the future. This mimics real life, where you can't use tomorrow's data to make today's decisions.
Information unavailable at decision time accidentally enters model fitting or evaluation. Chronological splits help, but leakage also depends on labels, features, preprocessing, and embargo rules.
The unweighted mean of F1 for each class, from 0 to 1. It can help when classes are imbalanced, but does not encode the real cost of an irrigation error.
Among positive predictions, what fraction match the source's positive label? Here that label is reconstructed or simulated irrigation behaviour, not independently verified crop need.
Among positive source labels, what fraction does the model identify? Do not interpret this as the fraction of crop water needs detected.
A 2ร2 table comparing predicted labels with source labels: true/false positives and true/false negatives. It does not by itself measure wasted water or missed crop need.
The model predicted a positive label and the held-out source target was positive.
The model predicted a negative label and the held-out source target was negative.
The model predicted positive but the held-out source label was negative; this is not proof that water was wasted.
The model predicted negative but the held-out source label was positive; this is not proof that a plant was water-stressed.
Elapsed prediction time under a named runtime and hardware configuration. Host timing is not an ESP32 or Raspberry Pi benchmark.
The measured RAM and storage used by a named device/runtime. A serialized host-file size alone does not show that firmware fits on a microcontroller.
A computer near sensors that may run inference locally. The project's ESP32/Raspberry Pi deployment is a proposed architecture, not a measured installation.
Converting a model into a supported device/runtime format. Successful export does not establish memory fit, latency, or safe actuation on hardware.
Representing model values with lower numerical precision to reduce storage or computation. Accuracy and safety effects must be measured; quantization is not validated in this project.
A family of feature-attribution methods that can describe model behaviour under assumptions. It does not prove causality or guarantee user trust.
The total water lost from the soil (evaporation) plus water lost from the plant's leaves (transpiration). It's how much water the crop is 'breathing out'.
An established framework for reference evapotranspiration and crop-water calculations. This project has not implemented or validated an FAO-56 irrigation controller.
How much crop you grow per drop of water: crop yield (kg) รท water used (mยณ). Higher is better โ more food with less water.
A family of chronological cross-validation schemes. Repeated splits assess model-selection stability; they do not prove farm-level generalisation or make results independent.