All workBuild with Gemma 2026

BlueNet: Ocean Watch

Coup de Cœur

Ranks suspicious vessel activity in Mauritian waters with a score that lists its reasons, then has Gemma draft a case file on the device. I built the mobile app fishers use to send tips from sea.

My part
Mobile app and on-device Gemma
Team
Four of us from Middlesex University
When
29 to 30 July 2026, 24 hours
Built for
Build with Gemma: Blue Mauritius & Beyond, Middlesex University Mauritius

The problem

Mauritius looks after about 2.3 million km² of ocean, across its exclusive economic zone, the Chagos zone and a joint area with Seychelles. A list of vessel-tracking alerts is not something a small team can act on. They need to know which events to look at first, and why.

The people who actually see what happens out there are fishers. Most of the time they have no signal.

What I did

  • Built the React Native app on Expo. A fisher takes a photo or writes a note, the app adds GPS when it has it, keeps the report in SQLite on the phone, and uploads it with the photo once there's a connection.
  • Got Gemma 4 running on the phone itself. The first attempt used MediaPipe, where text worked but photos didn't, so I moved the app to llama.rn and llama.cpp and it identified species from a photo with no server at all.
  • Made species ID give a straight answer. It runs in two passes, names the species and its protection status, and the app waits for the model to finish loading instead of crashing on a fast tap.
  • Ran a real LoRA fine-tune of Gemma 4 E2B on Kreol Morisien on my own RTX 5060, so tips written in Kreol had a better chance of being read properly.

How it works

  1. 01

    Tracking events become flags

    The backend pulls pre-computed Global Fishing Watch events, such as tracking gaps, two vessels stopped together, loitering and fishing, and turns them into three flags.

  2. 02

    A score in plain code

    Python checks every event against marine protected areas and jurisdiction zones, matches nearby tips from fishers, and works out a severity score with its reasons. The queue is sorted by that score, highest first.

  3. 03

    Every point is explained

    Open a vessel and you see why it scored what it did. Base weight for the gap, extra for being inside a protected area, extra for a matching tip.

  4. 04

    Gemma drafts the case file

    Gemma runs in the browser. It calls four lookups in turn, owner, sanctions, port history and licence, against seeded demo data, then writes what happened, the evidence and a recommended next step.

Design decisions

  • Gemma never calculates severity, decides the ranking or makes an enforcement call. The score stays in code anyone can read.
  • The ranked queue keeps working if the model can't load.
  • Inference runs on the device, so a fisher at sea doesn't need a connection to identify what they're looking at.
  • Seeded demo data is labelled as demo data and never shown as a real allegation.

Results

The Coup de Cœur prize at Build with Gemma, Google's hackathon at Middlesex University Mauritius. 120 people applied for 75 places.

Built with

  • React Native, Expo
  • llama.rn (llama.cpp)
  • Gemma 4 E2B and E4B
  • Expo SQLite
  • Python, FastAPI
  • React, Leaflet