TEAM GRAVITY FALLS  ·  BUILT FOR INDONESIA

When disaster strikes, your phone still talks.

Prometheus combines real-time BMKG seismic data with Gemma 4 running entirely on-device — so you get a spoken alarm, evacuation guidance, and survival answers even when the network goes dark.

100% Offline after download
<30s Alert to spoken briefing
Gemma 4 On-device · LiteRT LM
BMKG Live earthquake feeds
PROMETHEUS
✓ NO ACTIVE ALERTS
M 5.2
Sulawesi Tengah, 87 km depth
87 km
III MMI
MONITOR
EVACUATE
SURVIVAL
VISION
Monitor
Danger Alert
SURVIVAL ASSISTANT
How do I treat a deep cut without supplies?
Apply firm pressure with clean cloth for 10 minutes. Elevate the limb. If bleeding soaks through, add more cloth on top — do not remove the first layer▋
MONITOR
EVACUATE
SURVIVAL
VISION
Survival Chat
VISION ASSIST
CAMERA FEED
TAP TO DESCRIBE SURROUNDINGS
MONITOR
EVACUATE
SURVIVAL
VISION
Vision Assist
The Problem

Indonesia sits on the Ring of Fire.
Most disaster apps don't.

270 million people face earthquakes, tsunamis, volcanic eruptions, and floods every year. The first thing that fails in a disaster is the network — and that's exactly when existing alert apps go silent.

📡

Alerts arrive too late

Standard push-notification systems require working mobile data. In a major earthquake, cell towers are the first infrastructure to fail. By the time an alert reaches you, you may already be in danger.

Network outages average <4 minutes after a major seismic event
🗺️

Guidance is generic

Generic "go to high ground" messages ignore the actual epicentre, magnitude, depth, and tsunami potential in the BMKG payload. People need specific, grounded instructions tailored to the actual event.

BMKG provides structured seismic data that no consumer app uses for AI briefings
♿

Accessible guidance is absent

In a disaster, reading a screen is hard. Visually impaired users have almost no options. High-stress situations demand eyes-free, hands-free, voice-first interfaces — which no existing disaster app provides.

Vision + speech modality fills a critical accessibility gap
🧠

AI is locked in the cloud

LLM-powered guidance requires a server call. Post-disaster connectivity is unreliable for hours or days. Any app that depends on an API endpoint is useless the moment you need it most.

LiteRT LM enables Gemma 4 fully on-device — no API key, no latency, no outage
The Solution

One app. Every layer of the crisis pipeline.

Prometheus doesn't rely on the cloud. It fuses BMKG open data with Gemma 4 running on the phone itself — so alarm, briefing, and evacuation guidance fire in under 30 seconds, offline.

📡

Poll BMKG feeds

Continuously reads autogempa.json and gempaterkini.json. Classifies events by magnitude, depth, felt intensity, and tsunami potential against configurable danger thresholds.

🚨

Trigger alarm + briefing

On a dangerous classification: audible alarm fires and Gemma 4 generates a spoken emergency briefing grounded in the actual BMKG payload — what happened, what to do, what to avoid.

🗺️

Plot evacuation route

Pins the epicentre on Google Maps, draws the hazard radius, and computes the shortest path from the user's location to outside the danger zone via the Directions API.

💬

Offline survival assistant

A fully offline chat powered by Gemma 4 with a survival system prompt — first aid, water, shelter, evacuation — available at any time, with or without internet.

Built on a single model that never leaves the device.

Gemma 4 (E2B, ~2.4 GB) runs via LiteRT LM with GPU acceleration. After a one-time download, it handles emergency briefing, survival chat, and camera-to-voice accessibility — all without a single outbound request.

OFFLINE FIRST GEMMA 4 ON-DEVICE BMKG-GROUNDED VOICE OUTPUT VISION INPUT GPS ROUTING
Capabilities

Five screens. One mission.

Every feature is designed around a single constraint: it must work when the network is down and your hands are shaking.

📡

BMKG Live Monitor

Polls BMKG open JSON feeds and classifies events against configurable magnitude, depth, and tsunami-potential thresholds. The danger banner shifts from blue → orange → red as severity escalates.

autogempa.json · gempaterkini.json
🚨

Danger Alarm + Gemma 4 Spoken Briefing

When a dangerous event is classified, an audible alarm fires and Gemma 4 generates a spoken emergency briefing in under 30 seconds. The briefing is grounded in the real BMKG payload — magnitude, location, depth, felt intensity, tsunami potential — not a generic template. Delivered via AVSpeechSynthesizer, no screen required.

BMKG → Danger Rules → Gemma 4 Emergency Prompt → TTS
🗺️

Evacuation Routing

Plots the BMKG epicentre on Google Maps, overlays the configurable hazard radius, and computes the shortest route from the user's GPS location to outside the danger zone via the Directions API.

Google Maps SDK · Directions API · CoreLocation
💬

Offline Survival Chat

A streaming conversation with Gemma 4 using a survival-focused system prompt covering first aid, shelter, water sourcing, and Indonesia-specific hazard awareness. Works with zero connectivity after the initial model download.

Gemma 4 · LiteRT LM · Survival System Prompt
👁️

Vision Accessibility Mode

Camera frame → Gemma 4 vision → spoken response. Point the phone at surroundings, signage, or injuries. Gemma describes what it sees in calm plain language via TTS. No typing. No reading. Designed for visually impaired users and high-stress situations where a screen is impractical.

AVCaptureSession · Gemma 4 Vision · AVSpeechSynthesizer
Alert to Action

From seismic event to spoken evacuation
in under 30 seconds.

01

BMKG publishes data

Open JSON feed updated within minutes of a seismic event

02

App polls & classifies

Magnitude, depth, felt intensity, tsunami potential evaluated on-device

03

Alarm triggers

Audible alarm fires and Gemma 4 receives structured hazard context

04

Gemma reasons

Emergency system prompt + BMKG data → concise spoken briefing, fully on-device

05

You evacuate

Map shows the route. Voice guides you. No screen reading required.

End-to-end latency < 30 seconds offline · on-device · no API calls
Technical Depth

Proven stack, production-grade tools.

No experiments. Every layer is a stable, well-documented technology chosen for reliability under disaster conditions.

PROMETHEUS — SYSTEM ARCHITECTURE
Application layer — iOS
🍎 Swift + SwiftUI iOS 17+ · @Observable · async/await
📍 CoreLocation User GPS for evacuation routing origin
🗺️ Google Maps SDK + Directions API Epicentre pin · radius overlay · shortest exit route
AI & inference layer
🤖 Gemma 4 E2B (instruction-tuned) Text + Vision · ~2.4 GB on-device model
⚡ LiteRT LM (Swift SDK) GPU-accelerated · streaming tokens · multi-turn conversation
💬 System Prompts (×3) Survival chat · Emergency brief · Vision accessibility
Hazard data layer
🌏 BMKG Open JSON Feeds autogempa.json · gempaterkini.json · gempadirasakan.json
📊 Danger Classification Rules Magnitude · Depth · Felt intensity · Tsunami potential
OS & modality layer
🔊 AVSpeechSynthesizer TTS for alarm briefings & vision responses
📷 AVCaptureSession Camera → Gemma 4 vision → spoken response pipeline
🔔 Local Notifications + Alarm Audio In-app alert even when screen is off
What Makes It Different

Three ideas that make Prometheus
a genuinely new thing.

01

Offline-first AI reasoning

Gemma 4 is downloaded once and never queried remotely. The LiteRT LM engine loads the model into GPU memory and keeps it there — so every alarm, every chat message, and every camera description runs in under a second, with zero network dependency. This is the only disaster app where the AI gets faster when connectivity disappears.

02

BMKG-grounded emergency briefings

Most AI assistants answer disaster questions generically. Prometheus injects the actual BMKG structured payload — coordinates, magnitude, depth, felt intensity, tsunami potential — directly into Gemma's emergency system prompt. The model reasons about the real event, producing guidance that is specific to the quake that just happened 12 km beneath you, not a template for "a large earthquake."

03

Eyes-free, hands-free survival interface

Prometheus treats voice as the primary output and camera as a primary input from the start, not as an afterthought. The Vision Accessibility mode — camera → Gemma 4 multimodal → spoken response — was designed from the ground up for visually impaired users and for anyone in a dark, smoky, or hands-occupied environment where reading a screen is simply not possible.

The Team

Team Gravity Falls

Built for the Google Gemma Hackathon  ·  May 2026  ·  Indonesia

Engineering & AI

👨‍🔬

Andi

BMKG Integration

Owns BMKG integration end-to-end — endpoint selection, update cadence, attribution, full field parsing, and the danger classification contract: what magnitude thresholds, depth bands, felt intensity levels, and tsunami potential values constitute a dangerous event. Tests rules against live and sample payloads. Provides epicentre coordinates for map routing.

BMKG API JSON Parsing Danger Rules Test Fixtures
👩‍💻

Pelangi

iOS Lead

Owns the full iOS app — SwiftUI architecture, BMKG polling and danger classification, alarm pipeline, TTS playback, Gemma conversation wiring (chat vs. emergency), Google Maps SDK integration, evacuation routing UI, multimodal camera input, and on-device UX.

Swift SwiftUI LiteRT LM Google Maps AVFoundation
👨‍🎨

Arund

Gemma Behaviour

Owns everything Gemma says and how it says it — the survival chat prompt, emergency briefing prompt, and vision accessibility prompt. Responsible for prompt safety, response length for voice output, vision prompting strategy, and evaluating model outputs for real crisis use.

System Prompts Prompt Safety Vision Prompting LLM Evaluation

Video & Storytelling

🎬

Adfi

Videographer

Leads video production for the project — shooting, directing, and editing the demo and pitch video. Translates the technical story of Prometheus into visual narrative, capturing the real-world urgency of the problem and the clarity of the solution for hackathon judges.

Video Production Editing Direction
🎥

Alifa

Videographer

Handles cinematography and visual storytelling — framing the app walkthrough, disaster context footage, and team moments. Works alongside Adfi to produce a polished submission video that communicates Prometheus's impact and technical depth within tight time constraints.

Cinematography Visual Storytelling Post-Production
🏆   Submitted to the Google Gemma Hackathon  ·  May 2026

Prometheus doesn't wait
for the network.

It speaks when the towers go silent. It guides when the screens go dark. It listens when reading is impossible. Built by three people in Indonesia, for 270 million.