RippleMesh
About the project
RippleMesh turns citizen photos and messages into verified, ranked rescue tasks, using a team of Gemma 4 agents that run locally with no cloud API.
The problem
In floods, mobile towers and internet fail first, so cloud-based disaster apps fail with them. Rescue teams are left with duplicate photos, unverified forwards, and systems that rank by how many people reported something. A crowd photographing a safe situation can outrank one person who is drowning.
What it does
A citizen sends a photo and a short message from a phone and gets an instant “received”. In the background, a team of agents works on it:
- Reporter: Gemma 4 reads the photo and text and produces a small structured report (about 300 bytes).
- Verifier: scores trust (live camera vs gallery, duplicate-image detection, claim vs photo).
- Corroboration: merges reports from different devices into one incident. Repeats from one device never count as independent.
- Coordinator: Gemma 4 triages urgency and picks the responder type.
- Dispatcher: builds a task card for the nearest suitable responder.
A human coordinator logs in, sees the photo, the citizen’s words, confidence, and the AI’s reasoning, then approves, edits or rejects each dispatch.
Why you can trust the output
- Priority comes from severity, not crowd size. In our test, one drowning report outranks an incident with 500 witnesses of a safe situation.
- We tested the model and caught hallucinations. The small model sometimes invented people at risk. Code guards now accept a person flag only when the citizen’s own words support it, and model-reported confidence is capped.
- Failures are labelled, never hidden. If the model returns unusable output, the incident is marked as fallback/default values for human review.
- Photo vs claim check. If a citizen taps “flood” but the photo shows fire, the system trusts the photo and flags the mismatch.
- Harmless photos are dismissed, so the control room doesn’t see noise.
- Every agent-to-agent message is logged and visible in an Agent Activity Bus.
Where Gemma 4 is used
Gemma 4 (e2b, via Ollama) runs on a laptop and does the multimodal work: it reads disaster photos with the citizen’s text, and it triages merged incidents. Open weights are what make this possible without a cloud connection.
Honest limitations
- The mesh is simulated on a local network. The roles are separate agents on one laptop, not separate phones yet.
- A report takes about a minute on a laptop CPU (the citizen gets an instant acknowledgement).
- Voice input is not built yet. Text and photo only.
- The coordinator login is a demo-level PIN, not production security.
- Hazard recognition was spot-checked, not benchmarked at scale.
Roadmap
Real phone-to-phone mesh (Android Nearby Connections), voice input in Indian languages, integration with fire and disaster-management offices, and an after-action learning loop.
Credits
Test images are from the “Disaster Damage 5-Class” dataset by Sarthak Tandulje (Kaggle). Built with Gemma 4, Ollama, FastAPI and SQLite.
Built with
AI tools
Prize Categories Entered
- Submitted
Best Use of Gemma 4