Inspiration

At least 2.2 billion people live with a vision impairment (WHO, World report on vision). For many of them, a street sign, a menu, a bill or a medicine label is a wall of text, and the usual workaround is asking someone else to read it. That costs independence, and for letters or prescriptions, privacy too. We wanted a tool that answers one simple question about what's in front of you, and that keeps the photo on your own device whenever it can.

What it does

SENSE is a single-photo visual assistant for Android and desktop Chrome:

  • Take or drop a photo, ask one question, hear one clear answer. Six quick questions (describe the scene, read every word, read the sign only, what I need to know, translate, what should I do) or your own, typed or spoken.
  • Hybrid by design: every question is one Firebase AI Logic request that prefers the on-device model (Gemini Nano through AICore on Android, Chrome's built-in model on the web) and falls back to Gemini in the cloud.
  • Honest source badge: each answer shows On-device or Cloud and how long it took, read from the SDK's inferenceSource. It's never guessed or hard-coded.
  • Answers in 9 languages, read aloud, with spoken questions too.
  • Built for low vision: large text (3 sizes), high-contrast black/yellow mode, light/dark, full TalkBack and screen-reader labels, keyboard support, and Reduce Motion support.
  • Practical helpers: a camera torch, a "this photo looks too dark" warning with one-tap Retake with light, an on-device model download with progress, and diagnostics that explain why a device can or can't run the model.
  • Privacy: no photo history, nothing uploaded to storage, temporary files deleted after each question.

How we built it

  • Android: a React Native + TypeScript UI with a Kotlin native module (SenseHybridAI) that uses the Firebase Android SDK (firebase-ai + firebase-ai-ondevice) with InferenceMode.PREFER_ON_DEVICE, the explicit cloud model gemini-3.5-flash-lite, and onDeviceExtension for model status, download and warm-up. The image goes over the bridge as a file URI (never base64); Kotlin handles EXIF orientation, resizing (1536 px long edge, so small text stays readable) and memory.
  • Web (Chrome): React + Vite with the Firebase JS SDK (firebase/ai): hybrid mode with Chrome's built-in model, SENSE's system instruction passed to the on-device session, and initializeDeviceModel() for the download.
  • Shared logic: quick questions, languages, error messages and the dark-photo threshold are shared between both apps.
  • Security: Firebase App Check on every call: Play Integrity for Android release builds, debug tokens for testing, and reCAPTCHA v3 on the web.
  • Design: our own design system (warm paper, ink, one teal for actions) with WCAG-checked contrast, at least 5.9:1 and mostly above 7:1.

Challenges we ran into

  • On-device availability varies a lot. Our test phone has no Gemini Nano, and a remote Galaxy S26 in a device lab only had a placeholder AICore. We built diagnostics that show the raw model status, AICore version and Play services version, so the app explains why it's using the cloud instead of failing silently.
  • Image prompts on CPU-only laptops are slow. Chrome's built-in model runs on the CPU when there's no capable GPU, so we tuned the on-device image size, timeouts and warm-up, and kept an automatic cloud fallback.
  • Native build compatibility: aligning React Native 0.81, Kotlin 2.4, KSP and NDK linking for the on-device SDK.
  • Reporting the source honestly: the badge only ever shows what the SDK reports.

Accomplishments that we're proud of

  • One hybrid design that runs on two platforms, Android and Chrome, with the same request shape and the same honest source badge.
  • An interface designed for low-vision users from the start, not bolted on afterwards.
  • Real-world helpers (dark-photo detection, torch, diagnostics) that came from testing on real devices.

What we learned

  • Hybrid inference changes the economics and the privacy story: on-device answers are free, private and work offline, while the cloud guarantees that everyone gets an answer.
  • Device support is the real constraint, and users deserve to be told which path answered and why.
  • Accessibility decisions (type size, contrast, focus order, spoken output) shape the whole product.

What's next for SENSE

  • Smart reading: structured output for bills, receipts and medicine labels, with actions like Add to calendar and Copy number.
  • Follow-up questions about the same photo.
  • Streaming answers, so speech starts sooner.
  • iOS with Apple Foundation Models through Firebase AI Logic.
  • SENSE LIVE: continuous camera guidance with the Live API.

Built With

Share this project:

Updates

Submission history