Inspiration

Lab results arrive as paper and PDFs full of numbers and ranges few people can read. Trends get lost between visits, the right questions come after you leave the clinic, and health data is too personal to send to every server. Sihha (Arabic for health) started as my own personal health record; this Android app turns it into something anyone can use.

What it does

  • Home and Data sections: an at-a-glance home screen and a Data section with steps, sleep, heart rate, resting heart rate, exercise, blood oxygen and breathing from Android Health Connect (week and 30-day views), plus coming-up tests and a medical profile.
  • Keeps lab results, medications and supplements on the phone; flags values outside your own lab's range and charts each test over time.
  • Scan a report: one photo of a paper report becomes structured results (test, value, unit, range, sample date) that you review before saving.
  • Explain this result: plain-language explanation of one test's history, with no diagnosis and a question to ask the doctor.
  • Brief for my doctor: a rule-based summary of what is out of range, what changed and what you take, turned into a short brief.
  • Works in English and Arabic.

How we built it — Firebase AI Logic hybrid inference

  • Kotlin + Jetpack Compose, Android SDK 36.
  • firebase-ai 18.2.0 + firebase-ai-ondevice 16.0.0-beta08: every model is created with OnDeviceConfig(mode = InferenceMode.PREFER_ON_DEVICE), so Gemini Nano answers on supported phones and the same call falls back to Gemini in the cloud otherwise. The app reads response.inferenceSource and shows where each answer ran.
  • Report scanning sends one Bitmap plus a JSON Schema (structured output, supported on device); the app parses numbers and limits itself.
  • FirebaseAIOnDevice.checkStatus() and an early download() prepare Gemini Nano; the About screen shows the live status.
  • App Check (debug provider) protects the Gemini API; Remote Config (cloud_model, inference_mode) switches the cloud model or the hybrid mode without a release.

Challenges

Health data must not leak, so on-device is the default and the cloud is only the fallback. Lab reports vary widely, so the model copies strings exactly as printed and the app does the parsing, which made the results much more reliable than asking the model for numbers.

Accomplishments

A complete, private, bilingual health record where the AI adds value without becoming the product: every AI output is reviewable, labelled with its source, and never a diagnosis.

What we learned

Structured output plus app-side parsing beats free-form extraction, and showing the inference source builds trust.

What's next

Reminders for supplements, PDF import, and a HUAWEI AppGallery release of the no-AI build.

Built during the contest

The Android app, its hybrid AI features, App Check and Remote Config were all built during #BuildHybridAI (from 2026-11-27). The earlier Sihha was a private Windows tool; no code was reused.

Notes for judges

Built With

Share this project:

Updates

Submission history