Inspiration

Many people face unstable or expensive connectivity and long waits before seeing a health professional, and health data is deeply private. We wanted a tool that helps people arrive at a consultation prepared, without sending private details to a server by default.

What it does

Health+ is an offline-first web app that helps someone prepare a visit to a health professional. It never diagnoses, never names a disease and never suggests a treatment.

  • Check: describe symptoms in English or French. Fixed keyword rules (not AI) detect warning signs such as chest pain or breathing trouble and open an emergency screen, and the model can never lower that urgency. Otherwise the AI turns the text into structured symptoms, questions a professional may ask, an orientation level and a summary to show at the clinic, plus a closed "For the health professional" panel with reported facts only.
  • Scan: a photo of a prescription, a medicine box or a skin area is analyzed in the cloud only after the user sees exactly what will be sent and agrees. Location data is removed from the image on the device. For skin photos, a detailed description is required first, the model only describes what is visible, and the result is never below "see a health professional soon".
  • History: summaries are saved on the device only and can be deleted at any time.
  • A badge shows which AI answered: "On-device · private" or "Cloud · data sent".

How we built it

Every AI call goes through Firebase AI Logic. The app is built to use on-device inference first (Gemini Nano through the Chrome Prompt API, InferenceMode.ONLY_ON_DEVICE). If the device cannot run it, the user is asked for consent and the app switches to cloud inference with Gemini (InferenceMode.ONLY_IN_CLOUD), trying several models in order. We chose explicit consent over a silent fallback because health data is sensitive. Firebase App Check (reCAPTCHA Enterprise) protects the cloud calls and Firebase Hosting serves the app. The front end is plain JavaScript with a service worker and a web manifest, designed so the app can open offline after a first visit. Temperature is kept low (0.2) and the prompts forbid diagnoses, disease names, treatments and reassurance.

Challenges

Gemini Nano needs desktop Chrome and enough hardware (roughly 16 GB of RAM or a GPU with more than 4 GB of VRAM, and about 22 GB of free disk). We could not test the on-device path on real Gemini Nano: the computers available to us did not meet Chrome's requirements, so the demo shows the cloud path with consent. The on-device path is implemented with Firebase AI Logic but is unverified on real hardware. Cloud models were also sometimes overloaded or retired, so the app remembers a working model and falls back automatically. Keeping emergency detection out of the model was a deliberate safety choice.

Accomplishments we're proud of

A health tool that is honest about its limits: privacy by default, explicit consent before any data leaves the device, a visible badge that shows which AI is working, and emergency rules that do not depend on a model.

What we learned

Hybrid inference is as much a product and privacy decision as a technical one. Consent, fallbacks and clear messaging matter as much as the model.

What's next

Verifying the on-device path on suitable hardware, queueing photos for sending when the connection returns, more languages as on-device models support them, native Android and iOS apps that use the on-device models of supported phones, and validation with health professionals before any form of decision support.

Built With

Share this project:

Updates

Submission history