1. Safety: no confident-wrong answers
Tested: recorded in commit 4ebb116 on 2026-10-04 · Code: 3xpp/kahawa (hackathon core) 4ebb116
0 confident-wrong answers on 30 synthetic reports
Confident-wrong means the word list found evidence words but picked the wrong problem. These are the only cases that could auto-send a wrong answer to a farmer. Every report the word list misses goes to the fail-safe message and the officer queue: a miss costs officer time, never a wrong answer.
The 30 reports were written by the team in Swahili and labelled with crop, problem and location. They were tested typed, and as synthetic voice (Meta MMS-TTS, then Whisper small). A synthetic voice is cleaner than a real phone call, so treat it as optimistic.
| Input / mode | Problem accuracy | Found by word list | Confident wrong | Unknown → officer |
|---|---|---|---|---|
| Typed / rules | 0.667 | 17/27 | 0/17 | 3/3 |
| Typed / rules + Qwen | 0.667 | 17/27 | 0/17 | 3/3 |
| Synthetic voice / rules | 0.567 | 14/27 | 0/14 | 3/3 |
| Synthetic voice / rules + Qwen | 0.533 | 14/27 | 0/14 | 3/3 |
In plain terms (rules only): of 30 typed reports, 17 were matched to the right problem and 13 went to the officer. Of 30 synthetic voice reports, 14 were matched and 16 went to the officer. The small Qwen model adds no problem accuracy, and by design its guesses never send an answer on their own.
2. Speech recognition baseline
Tested: recorded in commit 4ebb116 on 2026-10-04 · Code: 3xpp/kahawa (hackathon core) 4ebb116
Read speech, not farm calls. Whisper small (int8, on the laptop’s CPU) on the public FLEURS Swahili (Kenya) test set, sw_ke, 20 clips.
| Measure | Result |
|---|---|
| Word error rate (WER) | 76.8 % |
| Character error rate (CER) | 18.7 % |
| Real-time factor (processing time / audio length) | 0.41 |
CER is the more telling number: most errors are word boundaries and spelling, so the sounds are mostly recognised but words are often split or joined wrongly. Exact whole-word matching on keywords will miss some cases; the fail-safe and officer review exist for this reason.
3. Language check
Tested: recorded in commit 2e68714 on 2026-10-04 · Code: 3xpp/kahawa (hackathon core) 2e68714
Before extraction, Whisper checks the language of the call. Only if the top language is Swahili and its probability is at least 0.7 does the Swahili word list run. Otherwise the farmer gets the fail-safe message and the officer sees the reason. 20 FLEURS clips per language, plus 35 synthetic Swahili clips.
| At threshold 0.7 | Result |
|---|---|
| Real Swahili rejected | 3/20 |
| Synthetic Swahili rejected | 6/35 |
| Dholuo accepted (a Kenyan home language Whisper does not support) | 6/20 |
| English accepted | 0/20 |
Both kinds of error end safely. A rejected Swahili call goes to the officer (cost: officer time). An accepted Dholuo call runs the Swahili word list, which finds no evidence words, so the farmer gets the fail-safe message. No wrong answer is sent either way.
4. Offline proof
Tested: 2026-10-12 · Code: Kahawa platform (current version) f424a2c
What we found. The system was not fully offline. onnxruntime version 1.29 and later, a library used for speech detection, contains Microsoft telemetry. After the first speech-detection run it sent about 2.3 KB to mobile.events.data.microsoft.com. We found it with a system-call trace.
The fix. Telemetry is switched off before the library loads, and the library version is pinned below 1.29.
| Run (full demo journey) | Outbound attempts |
|---|---|
| Before the fix: Kahawa platform | 1 TLS connect + 2 DNS queries |
| Before the fix: original hackathon code | 2 TLS connects + 4 DNS queries |
| Before the fix: Docker, no network | 34 failed attempts |
| After, native | 0 |
| After, Docker, no network | 0 |
How it is checked. An automated check runs the full journey and counts every outbound connect, DNS lookup or addressed UDP send, failed attempts included. It fails on any one. Before each run, the check tests its own detector.
The hackathon version of the open-source core is affected; the fix is in the current version, which will be used for pilots.
5. Limits
- All test data is synthetic, written by non-native speakers. Nobody on our team speaks Swahili natively.
- Speech tests use read speech and a synthetic voice, not 8 kHz phone audio, farm noise or code-switching between languages.
- Home languages such as Kikuyu or Kimeru are untested, and Whisper small cannot reliably tell Dholuo from Swahili.
- Samples are small: 20 speech clips and 30 reports.
- The word list was widened once after we saw the overall recall, so the 30 reports are no longer fully untouched. A fresh held-out set is needed.
- Review by native speakers and agronomists is still pending.