All projects

Mobile & on-device AI

Prometheus.

An Android disaster-assistance prototype pairing BMKG feeds with on-device Gemma 4.

MY ROLE
Team Gravity Falls · Android & Kotlin Multiplatform Lead
My contribution
Led Android and Kotlin Multiplatform development for disaster monitoring and assistance.
Key result
BMKG alerts, evacuation maps, and on-device Gemma in one Android prototype.

TOOLKIT

  • Kotlin Multiplatform
  • Jetpack Compose
  • BMKG
  • Gemma 4
  • LiteRT LM
  • Google Maps
Android prototype screenshots showing Monitor, Evacuate, conversation history, and the camera-assisted Talk interface.

The problem & my part.

Team Gravity Falls built Prometheus for the Google Gemma Hackathon in May 2026. The Android and iOS prototypes put earthquake and weather updates, evacuation information, and a voice-capable assistant in one app. The design pairs live BMKG data with a model that can provide assistance on the phone after it has been downloaded.

My contribution

I led the Android app and Kotlin Multiplatform work. I built the BMKG polling and danger classification pipeline, the Jetpack Compose monitoring and evacuation screens, and the Android background service, alert, and permission flows. I also developed fixtures and tools to test the data pipeline. Teammate Pelangi built the SwiftUI iOS app, and Arund developed and evaluated the Gemma prompts.

How the pieces connect.

  1. 01

    BMKG feeds

    Earthquake JSON, weather forecasts, and severe-weather nowcasts feed the monitoring screen.

  2. 02

    Kotlin Multiplatform

    Shared event models parse magnitude, felt intensity, and tsunami potential. On-device rules use event data and distance to classify danger.

  3. 03

    Android service and UI

    A foreground service polls the feeds. Compose shows the event and evacuation map, while the alert flow can play an alarm and read out a briefing.

  4. 04

    Gemma 4 on the phone

    LiteRT LM runs local inference for chat, camera-assisted interaction, and spoken briefings grounded in BMKG event data.

Inside the work.

Turning BMKG updates into alerts

I normalized BMKG’s single-event and event-list formats in the shared Kotlin module. The classifier evaluates signals such as magnitude, depth, reported shaking intensity, distance, and tsunami potential. During monitoring, the Android foreground service keeps polling while the app is in the background. The alert flow publishes a notification, plays an alarm, and can read an event-specific briefing aloud.

Visualizing the evacuation area

I built a Compose map that displays the epicentre, the user’s location, a danger-radius overlay, and a bearing away from the epicentre. With a connection, the routing component queries Google Directions for candidate routes and compares how far a user must travel to leave the estimated zone.

Keeping the assistant on-device

On Android, LiteRT LM loads Gemma 4 E2B after the initial model download, trying GPU inference first and falling back to CPU if initialization fails. The assistant supports streaming chat and camera-assisted questions, with text-to-speech for hands-free output. When the model is unavailable, the emergency briefing can use a structured template built from the event data.

Testing the event pipeline

I used BMKG JSON fixtures to exercise parsing and severity rules without waiting for a live earthquake. The shared tests cover regional events, distance-dependent classification, and tsunami potential. The Android test flow can point the polling service at a fixture server to exercise the screens and alert flow.

What came together.

The hackathon prototype brought monitoring, evacuation mapping, and a local assistant together on Android. The shared Kotlin module has fixture-based tests for event parsing and classification, while the Compose screens show how those results feed the user experience.

Results at a glance

Monitor
Earthquake details, local weather forecasts, and severe-weather warnings in one screen.
Evacuate
An interactive map with the epicentre, the user’s location, and an estimated danger zone when an event is active.
Ask Gemma
Chat history and a camera-assisted talk interface using the model on the phone.
View project evidence

A NOTE ON SCOPE

The on-device assistant can run offline after the model is downloaded. New BMKG updates and road routing require a network connection. Prometheus was built as a hackathon prototype.

Download résumé

NEXT PROJECT

BRIN Smart Aquaculture