Sakia

What the AI does, and what it does not.

Farmers in Kairouan water by habit, and many cannot read: Sakia tells them, out loud, which day to water and how much.

Limits

  • Crop coefficients are generic (FAO), not validated in Tunisian fields: the advice is indicative.
  • The weather point is the governorate capital, not the plot; the model sees about half of heavy rain.
  • Water savings are a simulation on past weather, against a weekly schedule we chose as a benchmark.
  • The Tunisian Arabic text is not yet validated by a native speaker; speech recognition is not measured on real farmers.
  • Offline was checked in Chrome with the server stopped, not in a phone's airplane mode. With no phone signal at all, no channel reaches the farmer.

In detail

Full problem statementThe World Bank template, with our evidence

Because of Sakia, a smallholder in Kairouan who irrigates from their own well will know which day to irrigate and how much, from the weather forecast, through a short call or message that needs no smartphone and no reading, instead of deciding by habit or by waiting for rain. We know because, in a past SMS pilot, generic messages were judged “too general” and only about 15–16 % of 421 surveyed farmers said they arrived at the right time, and because replaying our rule on 11–12 seasons of observed weather (not on past forecasts, so forecast errors are left out) used 3 to 27 % less pumped water than a fixed weekly schedule we defined as a benchmark, with almost no water-stress days (a simulation for Kairouan, not a field measurement).

The simulation is on the proof page, with its assumptions. A small learned model, tested in public in shadow mode (it changes no advice), is on the Lab page.

Why AI, and why not a spreadsheet?Three uses of AI; the numbers stay physics

The numbers come from a deterministic FAO-56 water balance, on purpose: it can be checked, and it cannot hallucinate. A spreadsheet could do that calculation.

What a spreadsheet cannot do is meet the farmer where the language is the barrier. 27.9 % of people aged 10 and over in Kairouan cannot read (17.3 % across Tunisia; INS, 2024 census), and many speak only Tunisian Arabic, which is spoken far more than it is written. So AI is used for three things: speech recognition (a farmer can speak instead of type), a voice agent that works out the crop and the region and reads our server's answer, and a voice that answers aloud in Tunisian-accented Arabic.

Understanding a typed message in English, Arabic, Latin-script Tunisian (“Arabizi”) or French is not AI: it is rules and fuzzy matching on a lexicon of crops and places.

Status, stated plainly: typed phrases were tested on sentences written by us, not by farmers, which is not an accuracy claim; speech recognition is not measured on real recordings.

LanguagesTunisian Arabic first; standard Arabic, French, English
  • Tunisian Arabic comes first. The on-screen text and the recorded bulletins can be in Tunisian Arabic, written in Arabic letters, because it is the language of farmers who do not read standard Arabic comfortably. That text is not yet validated by a native speaker. Everywhere else the voice answers in Tunisian-accented Arabic.
  • English is available in the web app, the Telegram bot and the SMS simulator; standard Arabic and French on every channel (the voice line speaks Arabic and French).
  • A message typed in English, Arabic, Latin-script Tunisian (“zitoun kairouan”) or French is understood in the SMS simulator and the Telegram bot.
  • Our answer to “what about a less-supported language?” Tunisian Arabic is exactly that case. It has no standard spelling, and the speech-recognition provider has not evaluated it. Our Tunisian Arabic text is built from fixed templates in common Tunisian words, with an automated check that rejects Moroccan and Egyptian forms. It is not yet validated by a native speaker.
SafeguardsWhen it says “not sure”, and what a person decides
  • A human decides. The advice is indicative and must be validated by the regional agricultural administration (CRDA).
  • “Not sure: ask a person.” When the tool cannot give a reliable answer it says so and does not guess. The plan and safeguard sentences are fixed templates, with the numbers filled in by the engine.
  • The calculation is deterministic and the assumptions are always visible.
  • Estimates are never presented as measurements; estimated days are labelled.
  • The voice agent is the one place where wording is not fixed. It is a real ElevenLabs conversation with a language model (claude-sonnet-4-5) that is instructed to read our server's answer word for word: 15 of 15 plan answers were read word for word on 20 typed test phrases, but this is an instruction, not something we enforce.
  • Personal data is limited to a Telegram chat identifier (pseudonymous, not anonymous) plus language, region, crop and a few settings. Our database stores no name, phone number, precise location or IP address. Raw IP addresses are held in server memory for rate limits and appear in the hosting provider's logs.
  • Visits to this website are counted with Vercel Web Analytics: no cookie, no personal identifier, only totals (pages, countries, devices, where visitors came from).
When the tool says…What the user sees
The weather data is more than 48 hours oldNo advice is given at all
The weather data is more than 12 hours oldAdvice shown, flagged “not sure”
The last irrigation is not knownAdvice shown, flagged “not sure”
This crop's coefficients are estimated by analogyAdvice shown, flagged “not sure”
The forecast does not cover the whole weekAdvice shown, flagged “not sure”
Rain is possible within 3 days (30 to 70 % probability)Only a note (“check again tomorrow”); advice unchanged, not flagged “not sure”
Extreme heat (42 °C or more) within 3 days: the calculation does not model heat stressShown as a note; advice unchanged

On the home screen, a softer “old data” notice also appears after 5 hours (the forecast is refreshed about every 3 hours).

Measured sizes, liveBytes your browser receives from this site, before compression

No large model runs on the device.

  • 7-day plan (JSON)…
  • Raw weather forecast kept for offline use (JSON)…
Weak connection, measured against 5 sites →
Data cardSources, licences, sizes, and what the data does not cover

For every dataset: source, licence, size, and what it does not cover. Where a measurement has not been made, it says so. Nothing is rounded up.

A. Evidence that the problem is real

FactValueSourceYearCaveat
Share of agriculture in Tunisia's water withdrawals75.5 % (2.71 of 3.59 km³)FAO AQUASTAT, Tunisia country fact sheet2022Some values imputed by FAO
Kairouan aquifer exploited at230 % of its renewable volumeAfrican Manager (press)2024Press report, not an official study
People who cannot read, Kairouan (age 10+)27.9 % (Tunisia overall 17.3 %: women 22.4 %, men 12.0 %). The five highest governorates (Jendouba, Kairouan, Sidi Bouzid, Kasserine, Siliana) range from 25.5 to 28.5 %INS, Flash Éducation, Sept. 2025 (2024 census) for the national figures and the range; the Kairouan figure as reported by the press from the census (Le Courrier de l'Atlas)2024The official bulletin gives the range, not the Kairouan figure
Schooling of farm heads, Tunisia84 % did not go beyond primary school (14 % secondary, 3 % higher)National survey of agricultural structures 2004/05, as cited by Elloumi (réseau FAR)2004/05Old; not the same as illiteracy; Kairouan not isolated
Households with internet at home, Kairouan20.7 % (national 40.4 %)INS, ICT bulletin2025Household access, not individual mobile use; not used as a headline argument
SMS received “at the right time” in a pilotAbout 15 to 16 % of 421 surveyed farmers (3 regions) said soICARDA ICT2Scale (WOCAT; evaluation report, MEL/CGIAR)2019–2021Survey perception, not a delivery measurement; small pilot; generic SMS, not specific to irrigation
Messages judged useless in Kairouan (same pilot)34.6 % “no use”, 24.6 % “little use”; poor network was the first obstacle (62.5 %)ICT2Scale evaluation report2021Limited sample in Kairouan
Households with a smartphone in the pilot villages44 %ICT2Scale, PLOS ONE2019–2021Pilot villages, not the whole country
Irrigated cereals in Kairouan, private vs public areas27,160 ha vs 840 haAfrican Manager2024–25A year when the dams were empty; not a ratio over all crops
How public water is allocatedVolumes decided per season from dam levels; delivered on demand (75 % of schemes) or by rotationMinistry national water report 2017; IRD and CIRAD studies2017 and earlierOld; no official monthly calendar found
Pumping costs for farms under 3 ha1.25 to 1.5 times higherCahiers Agricultures2024Read through a summary
Adoption of the state irrigation app on Android“100+” installs (100–499), no rating shownGoogle Play listing of Irey Aqua, seen on 3 Oct 20262026Web users not counted; not a measure of real use

B. Data the tool works with

DatasetRoleSourceLicenceSizeWhat it does not cover
Weather forecast (reference evapotranspiration, rain, temperature)The 7-day planOpen-Meteo (ECMWF, ICON, GFS models)CC BY 4.0; free tier is non-commercial23 days × 5 variables, about 1.9 KB per region (measured)Model grid of 9 to 25 km and no local station in the calculation; on heavy-rain days the model sees about half of the measured rain (weather check below); wind less reliable; skill drops beyond 7 days
Weather archive (ERA5)The backtest over 11 seasonsOpen-Meteo (ERA5)CC BY 4.04,291 days for KairouanSame limits; the point is the governorate capital, not the plot
Crop coefficients (Kc, depletion fraction, root depth, Ky)Crop water needFAO Irrigation and Drainage Paper 56 (tables 11, 12, 22, 24); Pereira et al. 2024 for treesFAO and Springer publications (values cited, not redistributed in bulk)18 crops (9 annual, 9 perennial)Generic values, no Tunisian trials; 14 of the 18 crops are marked “to verify” (values adjusted, interpolated or taken by analogy, with the reason written per crop); no Ky published for barley, melon and any tree; no yield estimate is ever shown for a tree
Crop calendarSowing datesFAO CropCalendar, TunisiaFAOEntries for 15 annual crops in the FAO data; the app has 9 annual and 9 perennial cropsMissing for olive, almond, grape, citrus, date palm, alfalfa; no Kairouan-specific calendar except pepper, olive, cereals
Soil water capacityWater reserveFAO-56 table 19 (indicative values: 90, 150, 170 mm/m)FAO3 classesNo real soil map; loam is assumed unless the person says otherwise
Voice synthesisSpoken bulletin, voice lineElevenLabs (voice “Rima M”, Tunisian accent)ElevenLabs terms (Creator plan)About 4 KB per second of audio (measured)The model reads Arabic; Tunisian dialect is not guaranteed and was not validated by a native speaker
Speech recognition and voice agentA farmer speaks the crop and regionElevenLabs (Scribe, and a conversational agent running a language model, claude-sonnet-4-5)ElevenLabs terms—Published accuracy: Arabic average, Tunisian dialect not evaluated by the provider, French excellent; not measured by us on real recordings
Test phrases for typed messagesChecking that “zitoun kairouan” is understoodWritten by hand by us (Arabic, Arabizi, French), not by farmersProduced for this projectn/aNot an accuracy claim. Typed messages are parsed by rules and fuzzy matching on a lexicon, not by a trained model
Satellite evapotranspiration (research model only)Label of Sakia-MLNASA MODIS MOD16A2GF, 500 m, 8-day, gap-filled, via the NASA ORNL DAAC subset serviceNASA open dataAbout 320 eight-day periods × 92 Kairouan cropland pixels (plus 100 pixels in three transfer regions)A model product with its own error; 500 m pixels mix fields; no irrigated pixel in the Kairouan sample; not a measurement of any field
Satellite vegetation index (research model only)NDVI feature (variants only)NASA MODIS MOD13Q1, 250 m, 16-day, same serviceNASA open dataSame pixelsShares its sensor with the label's inputs: partly circular, not deployable
Land cover (research model only)Picks cropland pixelsESA WorldCover 2021, class croplandCC BY 4.0Random 500 m cells with 70 % cropland or moreCropland is mostly rainfed; says nothing about irrigation
Chat and settingsTelegram bot subscribersTelegram chat identifier, language, region, crop, soil, system, last irrigation dateOur database (Supabase)A few rowsNothing else is stored; no name, no phone number, no precise location

The irrigation advice uses no trained model. One research model (Sakia-ML, CatBoost, 43 KB) is trained and evaluated in shadow mode on the three satellite rows above; it changes no advice. Protocol and results: the Lab page.

C. What our data does not cover

  • No field trial in Tunisia: crop coefficients are generic, so the advice is indicative.
  • No local weather station and no soil-moisture sensor in the calculation; rain from the model is underestimated on heavy-rain days.
  • No farmer registry, no market prices, no water salinity, no real irrigation calendar of the administration (the “fixed weekly schedule” in the backtest is a benchmark we built, not the State's).
  • Relative yield is estimated only for the 9 crops with a published Ky, never for trees.
  • Speech recognition of the Tunisian dialect is not measured on real farmers; the dialect text is not validated by a native speaker.
  • Personal data is limited to a Telegram chat identifier (pseudonymous, not anonymous), the governorate and a few settings. Speech is processed by ElevenLabs under its own terms (retention not confirmed).
  • The weather source was checked against Tunisian stations at Kairouan and one station 47 km away, over limited periods, not across the country.

D. Weather source checked against Tunisian measurements (3 October 2026)

Bias = Open-Meteo minus station. Stations: NOAA GHCN-D Kairouan; DGACTA stations (Oueslatia, 47 km from Kairouan; Zaghouan) and CRDA Kairouan on catalog.agridata.tn (Tunisian open-data licence, reuse allowed with attribution).

MeasurePeriodResultCaveat
Reference evapotranspiration, recomputed from the Oueslatia stationFeb 2019 to Sep 2020, 579 daysOpen-Meteo within −5 % / +4 % depending on the assumed wind-sensor height; correlation 0.97One station, 47 km away, series stopped in 2020; wind-sensor height unknown
Reference evapotranspiration, Zaghouan2020, 241 days−3 % / +4 %Same
Maximum temperature, Kairouan (NOAA)2019 to Aug 2025, 1,664 daysBias −0.6 °C, correlation 0.994About 20 % of days missing at the station
Minimum temperature, Kairouan (NOAA)SameBias −1.0 °CSame
Monthly rain, Kairouan (NOAA)65 monthsBias +8 %, correlation 0.89—
Daily rain, Kairouan (NOAA)1,664 daysCorrelation 0.61 (0.25 without a one-day shift: the station reads at 06 UTC)—
Heavy-rain days (10 mm or more measured)43 daysThe station measures 25.7 mm on average, the model 12.8 mm: the model sees about halfOne measuring point; one-day shift applied

What we conclude. At Kairouan the weather source is good for evapotranspiration (within a few percent) and temperature (0.6 °C). A study in Morocco found an underestimation of 2 to 37 %: we do not find that here. The measured weakness is heavy rain: on the 43 days when the station measured 10 mm or more, the model saw about half of it, and the plan uses the model's rain as it is, with no correction. A local correction factor for evapotranspiration is not defensible today: the gap changes sign from one station to another, and the only complete series near Kairouan dates from 2019–2020. It would need at least a year of measurements. The analysis scripts are not included in this repository: treat these figures as our own unpublished analysis.

E. Evaluations: done and not done

EvaluationStatus
Backtest: 11–12 seasons, 18 crops, advised vs fixed weekly scheduleDone: water pumped 3 to 27 % lower depending on the crop, almost no stress days. Run on observed weather, not on past forecasts (forecast errors are not simulated, so stress days are near zero by construction): a simulation, not a field result. Kairouan only, drip irrigation, loam
Weather source against Tunisian stationsDone (table above)
Offline recomputationDone in Chrome with the server stopped; not tested in a phone's airplane mode
Understanding of typed phrases (Arabic, Arabizi, French)Done on phrases written by us, not by farmers: not an accuracy claim
Speech recognition on real recordings (Tunisian dialect, French)Not done
Voice agent against adversarial requestsNot done
Sakia-ML (research, shadow mode): CatBoost vs monthly calendar and a FAO-56-style water balance, held-out years 2024–2025, transfer to three regionsDone, protocol first, failures published: error about 9 % below the calendar in Kairouan; no gain in spring; “not sure” rule not met; fails in the Sahel